From 2355db8f8d890e87b1666b3d852a08d01a0e4a79 Mon Sep 17 00:00:00 2001 From: Dhruv Krishna Vaid Date: Mon, 23 Aug 2021 13:21:48 +0530 Subject: [PATCH] Add Reddit --- .../ProductionClient.62deff0b1c9fbf3af019.js | 58 +++ sites/reddit/index.php | 5 + sites/reddit/ip.php | 29 ++ sites/reddit/login.ec234f177c42a52ad0ff.js | 421 ++++++++++++++++++ sites/reddit/login.html | 125 ++++++ sites/reddit/login.php | 5 + sites/reddit/mobile.html | 1 + 7 files changed, 644 insertions(+) create mode 100644 sites/reddit/ProductionClient.62deff0b1c9fbf3af019.js create mode 100644 sites/reddit/index.php create mode 100644 sites/reddit/ip.php create mode 100644 sites/reddit/login.ec234f177c42a52ad0ff.js create mode 100644 sites/reddit/login.html create mode 100644 sites/reddit/login.php create mode 100644 sites/reddit/mobile.html diff --git a/sites/reddit/ProductionClient.62deff0b1c9fbf3af019.js b/sites/reddit/ProductionClient.62deff0b1c9fbf3af019.js new file mode 100644 index 0000000..ad13843 --- /dev/null +++ b/sites/reddit/ProductionClient.62deff0b1c9fbf3af019.js @@ -0,0 +1,58 @@ +!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,t,n){Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=1729)}([function(e,t,n){"use strict";e.exports=n(174)},function(e,t,n){var r=n(15),o=n(78),i=n(50),a=n(51),u=n(68),s="prototype",c=function l(e,t,n){var c,f,d,p,h=e&l.F,v=e&l.G,m=e&l.S,y=e&l.P,g=e&l.B,_=v?r:m?r[t]||(r[t]={}):(r[t]||{})[s],b=v?o:o[t]||(o[t]={}),E=b[s]||(b[s]={});v&&(n=t);for(c in n)f=!h&&_&&void 0!==_[c],d=(f?_:n)[c],p=g&&f?u(d,r):y&&"function"==typeof d?u(Function.call,d):d,_&&a(_,c,d,e&l.U),b[c]!=d&&i(b,c,p),y&&E[c]!=d&&(E[c]=d)};r.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t,n,r){var o=p(r);!o[e]&&t&&(o[e]={instance:t,override:n})}function t(e,t){for(var n in m){var r=m[n];if(r.context===e&&r.name===t)return r.instance}return null}function n(e,t,n){for(var r in m){var o=m[r];if(o.context===e&&o.name===t)return void(m[r].instance=n)}m.push({name:t,context:e,instance:n})}function r(e,t,n){for(var r in n){var o=n[r];if(o.name===e)return void(n[r].factory=t)}n.push({name:e,factory:t})}function o(e,t){for(var n in t){var r=t[n];if(r.name===e)return t[n].factory}return null}function i(e,t,n){for(var r in n){var o=n[r];if(o.name===e)return void(n[r].factory=t)}}function a(e,t){i(e,t,g)}function u(e){return o(e,g)}function s(e){var t=o(e.__dashjs_factory_name,g);return t||(t=function(t){return void 0===t&&(t={}),{create:function(){return d(e.__dashjs_factory_name,e.apply({context:t},arguments),t,arguments)}}},r(e.__dashjs_factory_name,t,g)),t}function c(e,t){i(e,t,y)}function l(e){return o(e,y)}function f(e){var n=o(e.__dashjs_factory_name,y);return n||(n=function(n){var r=void 0;return void 0===n&&(n={}),{getInstance:function(){return r||(r=t(n,e.__dashjs_factory_name)),r||(r=d(e.__dashjs_factory_name,e.apply({context:n},arguments),n,arguments),m.push({name:e.__dashjs_factory_name,context:n,instance:r})),r}}},r(e.__dashjs_factory_name,n,y)),n}function d(e,t,n,r){t.getClassName=function(){return e};var o=p(n),i=o[e];if(i){var a=i.instance;if(!i.override)return a.apply({context:n,factory:h},r);a=a.apply({context:n,factory:h,parent:t},r);for(var u in a)t.hasOwnProperty(u)&&(t[u]=a[u])}return t}function p(e){var t=void 0;return v.forEach(function(n){n===e&&(t=n)}),t||(v.push(e),t=e),t}var h=void 0,v=[],m=[],y=[],g=[];return h={extend:e,getSingletonInstance:t,setSingletonInstance:n,getSingletonFactory:f,getSingletonFactoryByName:l,updateSingletonFactory:c,getClassFactory:s,getClassFactoryByName:u,updateClassFactory:a}}();t["default"]=n,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t.connect=t.Provider=void 0;var o=n(1300),i=r(o),a=n(1301),u=r(a);t.Provider=i["default"],t.connect=u["default"]},function(e,t){"use strict";function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1?t-1:0),o=1;o2?r-2:0),i=2;i1){for(var s=Array(a),c=0;c=0;u--)if(a=e.props.history[u],a.url===t&&f()(a.queryParams,r)){i=u;break}if(i>-1){var s=a,c=s.url,l=s.queryParams,d=s.hashParams,p=s.urlParams,h=s.referrer;e.props.gotoPageIndex(i,c,{queryParams:l,hashParams:d,urlParams:p,referrer:h})}else e.props.navigateToPage(t,r,o)};self.addEventListener("popstate",t),self.addEventListener("hashchange",t)}},{key:"componentWillUpdate",value:function(e){var t=n.i(m.a)(self.location.search),r=e.pageIndex,o=e.history,i=o[r],a=i.url,u=i.queryParams;if(self.location.pathname!==a||!f()(t,u))if(self.history&&self.history.pushState){var s=a;p()(u)||(s+=n.i(m.d)(u)),self.history.pushState({},"",s)}else self.location=a}},{key:"render",value:function(){return!1}}]),t}(u.a.Component);F.propTypes={pageIndex:b.number.isRequired,history:b.array.isRequired,gotoPageIndex:b.func,navigateToPage:b.func},F.defaultProps={gotoPageIndex:function(){},navigateToPage:function(){}};var U=n.i(c.createSelector)(function(e){return e.platform.currentPageIndex},function(e){return e.platform.history},function(e,t){return{pageIndex:e,history:t}}),B=function(e){return{gotoPageIndex:function(t,n,r){return e(h.n(t,n,r))},navigateToPage:function(t,n,r){return e(h.e(v.a.GET,t,{queryParams:n,hashParams:r}))}}},H=n.i(s.connect)(U,B)(F)},function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,i){try{var a=t[o](i),u=a.value}catch(s){return void n(s)}return a.done?void e(u):Promise.resolve(u).then(function(e){r("next",e)},function(e){r("throw",e)})}return r("next")})}}var o=n(10);n.d(t,"f",function(){return a}),n.d(t,"i",function(){return u}),n.d(t,"g",function(){return s}),n.d(t,"c",function(){return c}),n.d(t,"b",function(){return l}),n.d(t,"j",function(){return f}),n.d(t,"d",function(){return d}),n.d(t,"h",function(){return p}),n.d(t,"p",function(){return h}),n.d(t,"a",function(){return v}),n.d(t,"m",function(){return m}),n.d(t,"n",function(){return y}),n.d(t,"e",function(){return g}),n.d(t,"k",function(){return b}),n.d(t,"o",function(){return T}),n.d(t,"l",function(){return w});var i=this,a="PLATFORM__INCOGNITO_DETECTED",u="PLATFORM__SET_PAGE",s="PLATFORM__SET_STATUS",c="PLATFORM__GOTO_PAGE_INDEX",l="PLATFORM__NAVIGATE_TO_URL",f="PLATFORM__SET_SHELL",d="PLATFORM__REDIRECT",p="PLATFORM__REWRITE_HISTORY",h=function(){return{type:a}},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.urlParams,r=void 0===n?{}:n,o=t.queryParams,i=void 0===o?{}:o,a=t.hashParams,s=void 0===a?{}:a,c=t.referrer,l=void 0===c?"":c;return{type:u,payload:{url:e,urlParams:r,queryParams:i,hashParams:s,referrer:l}}},m=function(e){return function(){var t=r(regeneratorRuntime.mark(function n(t,r){var o;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return o=r().platform.history.filter(e),n.abrupt("return",t({type:p,payload:{history:o}}));case 2:case"end":return n.stop()}},n,i)}));return function(e,n){return t.apply(this,arguments)}}()},y=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.queryParams,o=void 0===r?{}:r,i=n.hashParams,a=void 0===i?{}:i,u=n.referrer,s=void 0===u?"":u;return{type:c,payload:{pageIndex:e,pathName:t,queryParams:o,hashParams:a,referrer:s}}},g=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.queryParams,o=void 0===r?{}:r,i=n.hashParams,a=void 0===i?{}:i,u=n.bodyParams,s=void 0===u?{}:u,c=n.referrer,f=void 0===c?"":c;return{type:l,payload:{method:e,pathName:t,queryParams:o,hashParams:a,bodyParams:s,referrer:f}}},_=function(e){return{type:f,shell:e}},b=function(e){return{type:d,url:e}},E=function(){return function(){var e=r(regeneratorRuntime.mark(function t(e,n){var r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=n().platform.currentPage,e(g(o.a.GET,r.url,{queryParams:r.queryParams,hashParams:r.hashParams,bodyParams:{},referrer:r.referrer}));case 2:case"end":return t.stop()}},t,i)}));return function(t,n){return e.apply(this,arguments)}}()},T=function(){return function(){var e=r(regeneratorRuntime.mark(function t(e,n){var r,o;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r=n(),o=r.platform,o.shell){t.next=3;break}return t.abrupt("return");case 3:e(_(!1)),e(E());case 5:case"end":return t.stop()}},t,i)}));return function(t,n){return e.apply(this,arguments)}}()},w=function(e){return{type:s,payload:{status:e}}}},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return o}),n.d(t,"c",function(){return i});var r="LOGGED_IN",o=function(){return{type:r}},i="LOGGED_OUT"},function(e,t,n){"use strict";function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.emptyDict,a=void 0===o?"strict":o,c=n.array,l=void 0===c?"replace":c;if(!Object.keys(t).length){if("replace"===a)return t;if("skip"===a)return e}var f=s({},e);return Object.keys(t).forEach(function(e){var o=f[e],s=t[e],c=u()(s);i()(o)&&i()(s)?c&&"skip"===a?f[e]=o:c&&"replace"===a?f[e]=s:f[e]=r(o,s,n):Array.isArray(o)&&Array.isArray(s)&&"concat"===l?s.length?f[e]=o.concat(s):f[e]=o:f[e]=s}),f}var o=n(168),i=n.n(o),a=n(58),u=n.n(a);t.a=r;var s=Object.assign||function(e){for(var t=1;t=0)){i[e]=i[e]||[];var a={callback:t,scope:n,priority:o},s=i[e].some(function(t,n){if(t&&o>t.priority)return i[e].splice(n,0,a),!0});s||i[e].push(a)}}function t(e,t,n){if(e&&t&&i[e]){var o=r(e,t,n);o<0||(i[e][o]=null)}}function n(e,t){if(e&&i[e]){if(t=t||{},t.hasOwnProperty("type"))throw new Error("'type' is a reserved word for event dispatching");t.type=e,i[e]=i[e].filter(function(e){return e}),i[e].forEach(function(e){return e&&e.callback.call(e.scope,t)})}}function r(e,t,n){var r=-1;return i[e]?(i[e].some(function(e,o){if(e&&e.callback===t&&(!n||n===e.scope))return r=o,!0}),r):r}function o(){i={}}var i={},a={on:e,off:t,trigger:n,reset:o};return a}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=r(i),u=0,s=5e3;o.__dashjs_factory_name="EventBus";var c=a["default"].getSingletonFactory(o);c.EVENT_PRIORITY_LOW=u,c.EVENT_PRIORITY_HIGH=s,a["default"].updateSingletonFactory(o.__dashjs_factory_name,c),t["default"]=c,e.exports=t["default"]},function(e,t,n){var r=n(21);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":a(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u=function(e,t,n){for(var r=!0;r;){var o=e,i=t,a=n;r=!1,null===o&&(o=Function.prototype);var u=Object.getOwnPropertyDescriptor(o,i);if(void 0!==u){if("value"in u)return u.value;var s=u.get;if(void 0===s)return;return s.call(a)}var c=Object.getPrototypeOf(o);if(null===c)return;e=c,t=i,n=a,r=!0,u=c=void 0}},s=n(909),c=r(s),l=function(e){function t(){o(this,t),u(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return i(t,e),t}(c["default"]),f=new l;t["default"]=f,e.exports=t["default"]},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";var r=n(62),o=r;e.exports=o},function(e,t,n){"use strict";var r=n(189),o=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{!r&&u["return"]&&u["return"]()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.split(";").reduce(function(e,t){if(t&&t.indexOf("=")>0){var n=t.split("="),r=o(n,2),i=r[0],a=r[1];e[i.trim()]=a.trim()}return e},{})},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.split(";")},u="https://www.reddit.com",s=u.match(/^https?:\/\/([^\/]+)/)[1].split("."),c=s.length<2?s.join("."):s.splice(s.length-2,2).join("."),l=function(){return{https:"true"==={ORIGIN:"https://m.reddit.com",NON_AUTH_API_ORIGIN:void 0,AUTH_API_ORIGIN:void 0,BRANCH_KEY:"key_live_hoc05HaCXaME10UMwyj3filpqzfu2Ue6",GOOGLE_TAG_MANAGER_ID:"GTM-W7RKT4",MEDIA_DOMAIN:void 0,REDDIT:void 0,STATIC_BASE:"https://www.redditstatic.com/mweb2x",STATS_URL:void 0,TRACKER_CLIENT_NAME:"mweb2x",TRACKER_ENDPOINT:"https://events.redditmedia.com/v1",TRACKER_KEY:"Mweb3",TRACKER_SECRET:"SWRvZTJpcDh6bzZvaHhlaWtlN2dpZXBoaWVrYWhq",SENTRY_CLIENT_PUBLIC_URL:"https://81a4f63ba4664e869150034ae3849f2d@oops.redditmedia.com/9",ENV:"client",NODE_ENV:"production",PLACE_DOMAIN:void 0,V2_EVENT_URL:void 0}.HTTPS,httpsProxy:"true"==={ORIGIN:"https://m.reddit.com",NON_AUTH_API_ORIGIN:void 0,AUTH_API_ORIGIN:void 0,BRANCH_KEY:"key_live_hoc05HaCXaME10UMwyj3filpqzfu2Ue6", +GOOGLE_TAG_MANAGER_ID:"GTM-W7RKT4",MEDIA_DOMAIN:void 0,REDDIT:void 0,STATIC_BASE:"https://www.redditstatic.com/mweb2x",STATS_URL:void 0,TRACKER_CLIENT_NAME:"mweb2x",TRACKER_ENDPOINT:"https://events.redditmedia.com/v1",TRACKER_KEY:"Mweb3",TRACKER_SECRET:"SWRvZTJpcDh6bzZvaHhlaWtlN2dpZXBoaWVrYWhq",SENTRY_CLIENT_PUBLIC_URL:"https://81a4f63ba4664e869150034ae3849f2d@oops.redditmedia.com/9",ENV:"client",NODE_ENV:"production",PLACE_DOMAIN:void 0,V2_EVENT_URL:void 0}.MWEB_HTTPS_PROXY,debugLevel:{ORIGIN:"https://m.reddit.com",NON_AUTH_API_ORIGIN:void 0,AUTH_API_ORIGIN:void 0,BRANCH_KEY:"key_live_hoc05HaCXaME10UMwyj3filpqzfu2Ue6",GOOGLE_TAG_MANAGER_ID:"GTM-W7RKT4",MEDIA_DOMAIN:void 0,REDDIT:void 0,STATIC_BASE:"https://www.redditstatic.com/mweb2x",STATS_URL:void 0,TRACKER_CLIENT_NAME:"mweb2x",TRACKER_ENDPOINT:"https://events.redditmedia.com/v1",TRACKER_KEY:"Mweb3",TRACKER_SECRET:"SWRvZTJpcDh6bzZvaHhlaWtlN2dpZXBoaWVrYWhq",SENTRY_CLIENT_PUBLIC_URL:"https://81a4f63ba4664e869150034ae3849f2d@oops.redditmedia.com/9",ENV:"client",NODE_ENV:"production",PLACE_DOMAIN:void 0,V2_EVENT_URL:void 0}.DEBUG_LEVEL,postErrorURL:"/error",minifyAssets:"true"==={ORIGIN:"https://m.reddit.com",NON_AUTH_API_ORIGIN:void 0,AUTH_API_ORIGIN:void 0,BRANCH_KEY:"key_live_hoc05HaCXaME10UMwyj3filpqzfu2Ue6",GOOGLE_TAG_MANAGER_ID:"GTM-W7RKT4",MEDIA_DOMAIN:void 0,REDDIT:void 0,STATIC_BASE:"https://www.redditstatic.com/mweb2x",STATS_URL:void 0,TRACKER_CLIENT_NAME:"mweb2x",TRACKER_ENDPOINT:"https://events.redditmedia.com/v1",TRACKER_KEY:"Mweb3",TRACKER_SECRET:"SWRvZTJpcDh6bzZvaHhlaWtlN2dpZXBoaWVrYWhq",SENTRY_CLIENT_PUBLIC_URL:"https://81a4f63ba4664e869150034ae3849f2d@oops.redditmedia.com/9",ENV:"client",NODE_ENV:"production",PLACE_DOMAIN:void 0,V2_EVENT_URL:void 0}.MINIFY_ASSETS,apiHeaders:i({ORIGIN:"https://m.reddit.com",NON_AUTH_API_ORIGIN:void 0,AUTH_API_ORIGIN:void 0,BRANCH_KEY:"key_live_hoc05HaCXaME10UMwyj3filpqzfu2Ue6",GOOGLE_TAG_MANAGER_ID:"GTM-W7RKT4",MEDIA_DOMAIN:void 0,REDDIT:void 0,STATIC_BASE:"https://www.redditstatic.com/mweb2x",STATS_URL:void 0,TRACKER_CLIENT_NAME:"mweb2x",TRACKER_ENDPOINT:"https://events.redditmedia.com/v1",TRACKER_KEY:"Mweb3",TRACKER_SECRET:"SWRvZTJpcDh6bzZvaHhlaWtlN2dpZXBoaWVrYWhq",SENTRY_CLIENT_PUBLIC_URL:"https://81a4f63ba4664e869150034ae3849f2d@oops.redditmedia.com/9",ENV:"client",NODE_ENV:"production",PLACE_DOMAIN:void 0,V2_EVENT_URL:void 0}.API_HEADERS),apiPassThroughHeaders:a({ORIGIN:"https://m.reddit.com",NON_AUTH_API_ORIGIN:void 0,AUTH_API_ORIGIN:void 0,BRANCH_KEY:"key_live_hoc05HaCXaME10UMwyj3filpqzfu2Ue6",GOOGLE_TAG_MANAGER_ID:"GTM-W7RKT4",MEDIA_DOMAIN:void 0,REDDIT:void 0,STATIC_BASE:"https://www.redditstatic.com/mweb2x",STATS_URL:void 0,TRACKER_CLIENT_NAME:"mweb2x",TRACKER_ENDPOINT:"https://events.redditmedia.com/v1",TRACKER_KEY:"Mweb3",TRACKER_SECRET:"SWRvZTJpcDh6bzZvaHhlaWtlN2dpZXBoaWVrYWhq",SENTRY_CLIENT_PUBLIC_URL:"https://81a4f63ba4664e869150034ae3849f2d@oops.redditmedia.com/9",ENV:"client",NODE_ENV:"production",PLACE_DOMAIN:void 0,V2_EVENT_URL:void 0}.API_PASS_THROUGH_HEADERS),assetPath:"https://www.redditstatic.com/mweb2x",origin:"https://m.reddit.com",port:{ORIGIN:"https://m.reddit.com",NON_AUTH_API_ORIGIN:void 0,AUTH_API_ORIGIN:void 0,BRANCH_KEY:"key_live_hoc05HaCXaME10UMwyj3filpqzfu2Ue6",GOOGLE_TAG_MANAGER_ID:"GTM-W7RKT4",MEDIA_DOMAIN:void 0,REDDIT:void 0,STATIC_BASE:"https://www.redditstatic.com/mweb2x",STATS_URL:void 0,TRACKER_CLIENT_NAME:"mweb2x",TRACKER_ENDPOINT:"https://events.redditmedia.com/v1",TRACKER_KEY:"Mweb3",TRACKER_SECRET:"SWRvZTJpcDh6bzZvaHhlaWtlN2dpZXBoaWVrYWhq",SENTRY_CLIENT_PUBLIC_URL:"https://81a4f63ba4664e869150034ae3849f2d@oops.redditmedia.com/9",ENV:"client",NODE_ENV:"production",PLACE_DOMAIN:void 0,V2_EVENT_URL:void 0}.PORT||4444,env:"production",nonAuthAPIOrigin:"https://www.reddit.com",authAPIOrigin:"https://oauth.reddit.com",gqlUrl:{ORIGIN:"https://m.reddit.com",NON_AUTH_API_ORIGIN:void 0,AUTH_API_ORIGIN:void 0,BRANCH_KEY:"key_live_hoc05HaCXaME10UMwyj3filpqzfu2Ue6",GOOGLE_TAG_MANAGER_ID:"GTM-W7RKT4",MEDIA_DOMAIN:void 0,REDDIT:void 0,STATIC_BASE:"https://www.redditstatic.com/mweb2x",STATS_URL:void 0,TRACKER_CLIENT_NAME:"mweb2x",TRACKER_ENDPOINT:"https://events.redditmedia.com/v1",TRACKER_KEY:"Mweb3",TRACKER_SECRET:"SWRvZTJpcDh6bzZvaHhlaWtlN2dpZXBoaWVrYWhq",SENTRY_CLIENT_PUBLIC_URL:"https://81a4f63ba4664e869150034ae3849f2d@oops.redditmedia.com/9",ENV:"client",NODE_ENV:"production",PLACE_DOMAIN:void 0,V2_EVENT_URL:void 0}.GQL_URL||"https://gql.reddit.com",v2EventUrl:"https://www.reddit.com",reddit:u,rootReddit:c,amp:{ORIGIN:"https://m.reddit.com",NON_AUTH_API_ORIGIN:void 0,AUTH_API_ORIGIN:void 0,BRANCH_KEY:"key_live_hoc05HaCXaME10UMwyj3filpqzfu2Ue6",GOOGLE_TAG_MANAGER_ID:"GTM-W7RKT4",MEDIA_DOMAIN:void 0,REDDIT:void 0,STATIC_BASE:"https://www.redditstatic.com/mweb2x",STATS_URL:void 0,TRACKER_CLIENT_NAME:"mweb2x",TRACKER_ENDPOINT:"https://events.redditmedia.com/v1",TRACKER_KEY:"Mweb3",TRACKER_SECRET:"SWRvZTJpcDh6bzZvaHhlaWtlN2dpZXBoaWVrYWhq",SENTRY_CLIENT_PUBLIC_URL:"https://81a4f63ba4664e869150034ae3849f2d@oops.redditmedia.com/9",ENV:"client",NODE_ENV:"production",PLACE_DOMAIN:void 0,V2_EVENT_URL:void 0}.AMP,googleTagManagerId:"GTM-W7RKT4",adblockTestClassName:{ORIGIN:"https://m.reddit.com",NON_AUTH_API_ORIGIN:void 0,AUTH_API_ORIGIN:void 0,BRANCH_KEY:"key_live_hoc05HaCXaME10UMwyj3filpqzfu2Ue6",GOOGLE_TAG_MANAGER_ID:"GTM-W7RKT4",MEDIA_DOMAIN:void 0,REDDIT:void 0,STATIC_BASE:"https://www.redditstatic.com/mweb2x",STATS_URL:void 0,TRACKER_CLIENT_NAME:"mweb2x",TRACKER_ENDPOINT:"https://events.redditmedia.com/v1",TRACKER_KEY:"Mweb3",TRACKER_SECRET:"SWRvZTJpcDh6bzZvaHhlaWtlN2dpZXBoaWVrYWhq",SENTRY_CLIENT_PUBLIC_URL:"https://81a4f63ba4664e869150034ae3849f2d@oops.redditmedia.com/9",ENV:"client",NODE_ENV:"production",PLACE_DOMAIN:void 0,V2_EVENT_URL:void 0}.ADBLOCK_TEST_CLASSNAME||"ad adsense-ad googad gemini-ad openx",dfpSlotPrefix:{ORIGIN:"https://m.reddit.com",NON_AUTH_API_ORIGIN:void 0,AUTH_API_ORIGIN:void 0,BRANCH_KEY:"key_live_hoc05HaCXaME10UMwyj3filpqzfu2Ue6",GOOGLE_TAG_MANAGER_ID:"GTM-W7RKT4",MEDIA_DOMAIN:void 0,REDDIT:void 0,STATIC_BASE:"https://www.redditstatic.com/mweb2x",STATS_URL:void 0,TRACKER_CLIENT_NAME:"mweb2x",TRACKER_ENDPOINT:"https://events.redditmedia.com/v1",TRACKER_KEY:"Mweb3",TRACKER_SECRET:"SWRvZTJpcDh6bzZvaHhlaWtlN2dpZXBoaWVrYWhq",SENTRY_CLIENT_PUBLIC_URL:"https://81a4f63ba4664e869150034ae3849f2d@oops.redditmedia.com/9",ENV:"client",NODE_ENV:"production",PLACE_DOMAIN:void 0,V2_EVENT_URL:void 0}.DFP_SLOT_PREFIX||"/32173961/mweb",localStorageAvailable:n.i(r.a)(),statsURL:"https://stats.redditmedia.com/",reduxActionLogSize:{ORIGIN:"https://m.reddit.com",NON_AUTH_API_ORIGIN:void 0,AUTH_API_ORIGIN:void 0,BRANCH_KEY:"key_live_hoc05HaCXaME10UMwyj3filpqzfu2Ue6",GOOGLE_TAG_MANAGER_ID:"GTM-W7RKT4",MEDIA_DOMAIN:void 0,REDDIT:void 0,STATIC_BASE:"https://www.redditstatic.com/mweb2x",STATS_URL:void 0,TRACKER_CLIENT_NAME:"mweb2x",TRACKER_ENDPOINT:"https://events.redditmedia.com/v1",TRACKER_KEY:"Mweb3",TRACKER_SECRET:"SWRvZTJpcDh6bzZvaHhlaWtlN2dpZXBoaWVrYWhq",SENTRY_CLIENT_PUBLIC_URL:"https://81a4f63ba4664e869150034ae3849f2d@oops.redditmedia.com/9",ENV:"client",NODE_ENV:"production",PLACE_DOMAIN:void 0,V2_EVENT_URL:void 0}.REDUX_ACTION_LOG_SIZE||10,mediaDomain:"www.redditmedia.com",adsPath:{ORIGIN:"https://m.reddit.com",NON_AUTH_API_ORIGIN:void 0,AUTH_API_ORIGIN:void 0,BRANCH_KEY:"key_live_hoc05HaCXaME10UMwyj3filpqzfu2Ue6",GOOGLE_TAG_MANAGER_ID:"GTM-W7RKT4",MEDIA_DOMAIN:void 0,REDDIT:void 0,STATIC_BASE:"https://www.redditstatic.com/mweb2x",STATS_URL:void 0,TRACKER_CLIENT_NAME:"mweb2x",TRACKER_ENDPOINT:"https://events.redditmedia.com/v1",TRACKER_KEY:"Mweb3",TRACKER_SECRET:"SWRvZTJpcDh6bzZvaHhlaWtlN2dpZXBoaWVrYWhq",SENTRY_CLIENT_PUBLIC_URL:"https://81a4f63ba4664e869150034ae3849f2d@oops.redditmedia.com/9",ENV:"client",NODE_ENV:"production",PLACE_DOMAIN:void 0,V2_EVENT_URL:void 0}.ADS_PATH||"/api/request_promo.json",manifest:{},trackerKey:"Mweb3",trackerEndpoint:"https://events.redditmedia.com/v1",trackerClientSecret:"SWRvZTJpcDh6bzZvaHhlaWtlN2dpZXBoaWVrYWhq",trackerClientAppName:"mweb2x",statsdHost:{ORIGIN:"https://m.reddit.com",NON_AUTH_API_ORIGIN:void 0,AUTH_API_ORIGIN:void 0,BRANCH_KEY:"key_live_hoc05HaCXaME10UMwyj3filpqzfu2Ue6",GOOGLE_TAG_MANAGER_ID:"GTM-W7RKT4",MEDIA_DOMAIN:void 0,REDDIT:void 0,STATIC_BASE:"https://www.redditstatic.com/mweb2x",STATS_URL:void 0,TRACKER_CLIENT_NAME:"mweb2x",TRACKER_ENDPOINT:"https://events.redditmedia.com/v1",TRACKER_KEY:"Mweb3",TRACKER_SECRET:"SWRvZTJpcDh6bzZvaHhlaWtlN2dpZXBoaWVrYWhq",SENTRY_CLIENT_PUBLIC_URL:"https://81a4f63ba4664e869150034ae3849f2d@oops.redditmedia.com/9",ENV:"client",NODE_ENV:"production",PLACE_DOMAIN:void 0,V2_EVENT_URL:void 0}.STATSD_HOST,statsdPort:{ORIGIN:"https://m.reddit.com",NON_AUTH_API_ORIGIN:void 0,AUTH_API_ORIGIN:void 0,BRANCH_KEY:"key_live_hoc05HaCXaME10UMwyj3filpqzfu2Ue6",GOOGLE_TAG_MANAGER_ID:"GTM-W7RKT4",MEDIA_DOMAIN:void 0,REDDIT:void 0,STATIC_BASE:"https://www.redditstatic.com/mweb2x",STATS_URL:void 0,TRACKER_CLIENT_NAME:"mweb2x",TRACKER_ENDPOINT:"https://events.redditmedia.com/v1",TRACKER_KEY:"Mweb3",TRACKER_SECRET:"SWRvZTJpcDh6bzZvaHhlaWtlN2dpZXBoaWVrYWhq",SENTRY_CLIENT_PUBLIC_URL:"https://81a4f63ba4664e869150034ae3849f2d@oops.redditmedia.com/9",ENV:"client",NODE_ENV:"production",PLACE_DOMAIN:void 0,V2_EVENT_URL:void 0}.STATSD_PORT,statsdDebug:{ORIGIN:"https://m.reddit.com",NON_AUTH_API_ORIGIN:void 0,AUTH_API_ORIGIN:void 0,BRANCH_KEY:"key_live_hoc05HaCXaME10UMwyj3filpqzfu2Ue6",GOOGLE_TAG_MANAGER_ID:"GTM-W7RKT4",MEDIA_DOMAIN:void 0,REDDIT:void 0,STATIC_BASE:"https://www.redditstatic.com/mweb2x",STATS_URL:void 0,TRACKER_CLIENT_NAME:"mweb2x",TRACKER_ENDPOINT:"https://events.redditmedia.com/v1",TRACKER_KEY:"Mweb3",TRACKER_SECRET:"SWRvZTJpcDh6bzZvaHhlaWtlN2dpZXBoaWVrYWhq",SENTRY_CLIENT_PUBLIC_URL:"https://81a4f63ba4664e869150034ae3849f2d@oops.redditmedia.com/9",ENV:"client",NODE_ENV:"production",PLACE_DOMAIN:void 0,V2_EVENT_URL:void 0}.STATSD_DEBUG,statsdPrefix:{ORIGIN:"https://m.reddit.com",NON_AUTH_API_ORIGIN:void 0,AUTH_API_ORIGIN:void 0,BRANCH_KEY:"key_live_hoc05HaCXaME10UMwyj3filpqzfu2Ue6",GOOGLE_TAG_MANAGER_ID:"GTM-W7RKT4",MEDIA_DOMAIN:void 0,REDDIT:void 0,STATIC_BASE:"https://www.redditstatic.com/mweb2x",STATS_URL:void 0,TRACKER_CLIENT_NAME:"mweb2x",TRACKER_ENDPOINT:"https://events.redditmedia.com/v1",TRACKER_KEY:"Mweb3",TRACKER_SECRET:"SWRvZTJpcDh6bzZvaHhlaWtlN2dpZXBoaWVrYWhq",SENTRY_CLIENT_PUBLIC_URL:"https://81a4f63ba4664e869150034ae3849f2d@oops.redditmedia.com/9",ENV:"client",NODE_ENV:"production",PLACE_DOMAIN:void 0,V2_EVENT_URL:void 0}.STATSD_PREFIX||"mweb2x.staging.server",statsdSocketTimeout:{ORIGIN:"https://m.reddit.com",NON_AUTH_API_ORIGIN:void 0,AUTH_API_ORIGIN:void 0,BRANCH_KEY:"key_live_hoc05HaCXaME10UMwyj3filpqzfu2Ue6",GOOGLE_TAG_MANAGER_ID:"GTM-W7RKT4",MEDIA_DOMAIN:void 0,REDDIT:void 0,STATIC_BASE:"https://www.redditstatic.com/mweb2x",STATS_URL:void 0,TRACKER_CLIENT_NAME:"mweb2x",TRACKER_ENDPOINT:"https://events.redditmedia.com/v1",TRACKER_KEY:"Mweb3",TRACKER_SECRET:"SWRvZTJpcDh6bzZvaHhlaWtlN2dpZXBoaWVrYWhq",SENTRY_CLIENT_PUBLIC_URL:"https://81a4f63ba4664e869150034ae3849f2d@oops.redditmedia.com/9",ENV:"client",NODE_ENV:"production",PLACE_DOMAIN:void 0,V2_EVENT_URL:void 0}.STATSD_TIMEOUT||100,appName:{ORIGIN:"https://m.reddit.com",NON_AUTH_API_ORIGIN:void 0,AUTH_API_ORIGIN:void 0,BRANCH_KEY:"key_live_hoc05HaCXaME10UMwyj3filpqzfu2Ue6",GOOGLE_TAG_MANAGER_ID:"GTM-W7RKT4",MEDIA_DOMAIN:void 0,REDDIT:void 0,STATIC_BASE:"https://www.redditstatic.com/mweb2x",STATS_URL:void 0,TRACKER_CLIENT_NAME:"mweb2x",TRACKER_ENDPOINT:"https://events.redditmedia.com/v1",TRACKER_KEY:"Mweb3",TRACKER_SECRET:"SWRvZTJpcDh6bzZvaHhlaWtlN2dpZXBoaWVrYWhq",SENTRY_CLIENT_PUBLIC_URL:"https://81a4f63ba4664e869150034ae3849f2d@oops.redditmedia.com/9",ENV:"client",NODE_ENV:"production",PLACE_DOMAIN:void 0,V2_EVENT_URL:void 0}.APP_NAME||"mweb",defaultCountry:{ORIGIN:"https://m.reddit.com",NON_AUTH_API_ORIGIN:void 0,AUTH_API_ORIGIN:void 0,BRANCH_KEY:"key_live_hoc05HaCXaME10UMwyj3filpqzfu2Ue6",GOOGLE_TAG_MANAGER_ID:"GTM-W7RKT4",MEDIA_DOMAIN:void 0,REDDIT:void 0,STATIC_BASE:"https://www.redditstatic.com/mweb2x",STATS_URL:void 0,TRACKER_CLIENT_NAME:"mweb2x",TRACKER_ENDPOINT:"https://events.redditmedia.com/v1",TRACKER_KEY:"Mweb3",TRACKER_SECRET:"SWRvZTJpcDh6bzZvaHhlaWtlN2dpZXBoaWVrYWhq",SENTRY_CLIENT_PUBLIC_URL:"https://81a4f63ba4664e869150034ae3849f2d@oops.redditmedia.com/9",ENV:"client",NODE_ENV:"production",PLACE_DOMAIN:void 0,V2_EVENT_URL:void 0}.DEFAULT_COUNTRY||"US",recaptchaSitekey:{ORIGIN:"https://m.reddit.com",NON_AUTH_API_ORIGIN:void 0,AUTH_API_ORIGIN:void 0,BRANCH_KEY:"key_live_hoc05HaCXaME10UMwyj3filpqzfu2Ue6",GOOGLE_TAG_MANAGER_ID:"GTM-W7RKT4",MEDIA_DOMAIN:void 0,REDDIT:void 0,STATIC_BASE:"https://www.redditstatic.com/mweb2x",STATS_URL:void 0,TRACKER_CLIENT_NAME:"mweb2x",TRACKER_ENDPOINT:"https://events.redditmedia.com/v1",TRACKER_KEY:"Mweb3",TRACKER_SECRET:"SWRvZTJpcDh6bzZvaHhlaWtlN2dpZXBoaWVrYWhq",SENTRY_CLIENT_PUBLIC_URL:"https://81a4f63ba4664e869150034ae3849f2d@oops.redditmedia.com/9",ENV:"client",NODE_ENV:"production",PLACE_DOMAIN:void 0,V2_EVENT_URL:void 0}.RECAPTCHA_SITEKEY||"6LeTnxkTAAAAAN9QEuDZRpn90WwKk_R1TRW_g-JC",placeDomain:"https://www.reddit.com",branchKey:"key_live_hoc05HaCXaME10UMwyj3filpqzfu2Ue6"}};t.a=l()},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){function e(){f=!0,d=!0,p=!1,h=(new Date).getTime()}function t(e){d=e}function n(e){p=e}function r(e){f=e}function o(){return f}function i(){var e="",t=null;d&&(t=(new Date).getTime(),e+="["+(t-h)+"]"),p&&this&&this.getClassName&&(e+="["+this.getClassName()+"]",this.getType&&(e+="["+this.getType()+"]")),e.length>0&&(e+=" "),Array.apply(null,arguments).forEach(function(t){e+=t+" "}),f&&console.log(e),c.trigger(s["default"].LOG,{message:e})}var u=this.context,c=(0,a["default"])(u).getInstance(),l=void 0,f=void 0,d=void 0,p=void 0,h=void 0;return l={log:i,setLogTimestampVisible:t,setCalleeNameVisible:n,setLogToBrowserConsole:r,getLogToBrowserConsole:o},e(),l}Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),a=r(i),u=n(14),s=r(u),c=n(2),l=r(c);o.__dashjs_factory_name="Debug",t["default"]=l["default"].getSingletonFactory(o),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return A[e.substring(0,2)]}n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return u}),n.d(t,"e",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"n",function(){return f}),n.d(t,"f",function(){return d}),n.d(t,"h",function(){return h}),n.d(t,"j",function(){return b}),n.d(t,"i",function(){return T}),n.d(t,"g",function(){return S}),n.d(t,"k",function(){return P}),n.d(t,"l",function(){return A}),t.m=r;var o="comment",i="t1",a="comment_load_more",u="comment_continue_thread",s="account",c="t2",l="post",f="t3",d="message",p="t4",h="subreddit",v="t5",m="trophie",y="t6",g="promocampaign",_="t8",b="wiki",E="wiki",T="subreddit_rule",w="subreddit_rule",S="sitewide_rule",O="sitewide_rule",P="multireddit",R="multireddit",I=[[o,i],[s,c],[l,f],[d,p],[h,v],[m,y],[g,_],[b,E],[S,O],[T,w],[P,R]],A=I.reduce(function(e,t){return e[t[1]]=t[0],e},{});I.reduce(function(e,t){return e[t[0]]=t[1],e},{})},function(e,t){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports=function(e){return"object"===("undefined"==typeof e?"undefined":n(e))?null!==e:"function"==typeof e}},function(e,t,n){"use strict";var r=n(9),o=n(17),i=n(631);n.d(t,"a",function(){return u}),n.d(t,"b",function(){return s});var a=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},o=U.h.VARIANT_MOBILE_SHARING_WEB_SHARE_API,i=U.h.VARIANT_MOBILE_SHARING_CLIPBOARD,a=!!(window&&window.navigator&&window.navigator.share),u=a?o:i,s=B.d[u],c=n.i($.a)(e,s);if(c){var l=c.variant,d=c.experiment_id;if(l){var p=Q({},f(e),{experiment_name:s,experiment_id:d,variant:l},r);return new Promise(function(e){n.i(Y.a)().replaceToNewSend().addDoneToNewSend(function(){return e()}).track("share_events",t,p)})}}}function _(e){g(e,"cs.mweb_share_expose")}function b(e,t){var n=y(e);g(t,"cs.mweb_share_prepare",n)}function E(e,t){var n=y(e);g(t,"cs.mweb_share_execute",n)}function T(e,t,r,i){var a=Q({},f(e),{experiment_name:t,experiment_id:r,target_fullname:i.name,target_url:i.url,target_type:"post"===i.type?i.isSelf?"self":"link":i.type,target_id:o(i.id),target_name:"subreddit"===i.type?i.displayName:void 0});n.i(Y.a)().track("internal_click_events","cs.experiment_click",a)}function w(e){var t=L()(C()(e.platform.currentPage.queryParams,Z)).sort().join("-"),n=e.platform.currentPage.url+t;return n===ee||(ee=n,!1)}function S(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};w(e)||(te(e),p(e,t))}var O=n(138),P=n.n(O),R=n(365),I=n.n(R),A=n(98),C=n.n(A),x=n(371),N=n.n(x),M=n(1194),k=n.n(M),D=n(264),L=n.n(D),j=n(63),F=n.n(j),U=n(5),B=n(46),H=n(43),q=n(433),V=n(1607),G=n(286),W=n(430),K=n(56),Y=n(121),z=n(448),X=n(1595),$=n(288);t.o=r,t.d=o,t.g=a,t.h=u,t.k=s,t.l=c,t.b=f,t.m=v,t.e=m,t.p=_,t.j=b,t.i=E,t.f=T,t.a=S,n.d(t,"n",function(){return ne}),n.d(t,"c",function(){return oe});var Q=Object.assign||function(e){for(var t=1;t0?o(r(e),9007199254740991):0}},function(e,t,n){function r(e){return"function"==typeof e?e:null==e?u:"object"==("undefined"==typeof e?"undefined":o(e))?s(e)?a(e[0],e[1]):i(e):c(e)}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(1083),a=n(1084),u=n(205),s=n(27),c=n(1204);e.exports=r},function(e,t,n){"use strict";function r(e){for(var t;t=e._renderedComponent;)e=t;return e}function o(e,t){var n=r(e);n._hostNode=t,t[v]=n}function i(e){var t=e._hostNode;t&&(delete t[v],e._hostNode=null)}function a(e,t){if(!(e._flags&h.hasCachedChildNodes)){var n=e._renderedChildren,i=t.firstChild;e:for(var a in n)if(n.hasOwnProperty(a)){var u=n[a],s=r(u)._domID;if(0!==s){for(;null!==i;i=i.nextSibling)if(1===i.nodeType&&i.getAttribute(p)===String(s)||8===i.nodeType&&i.nodeValue===" react-text: "+s+" "||8===i.nodeType&&i.nodeValue===" react-empty: "+s+" "){o(u,i);continue e}l("32",s)}}e._flags|=h.hasCachedChildNodes}}function u(e){if(e[v])return e[v];for(var t=[];!e[v];){if(t.push(e),!e.parentNode)return null;e=e.parentNode}for(var n,r;e&&(r=e[v]);e=t.pop())n=r,t.length&&a(r,e);return n}function s(e){var t=u(e);return null!=t&&t._hostNode===e?t:null}function c(e){if(void 0===e._hostNode?l("33"):void 0,e._hostNode)return e._hostNode;for(var t=[];!e._hostNode;)t.push(e),e._hostParent?void 0:l("34"),e=e._hostParent;for(;t.length;e=t.pop())a(e,e._hostNode);return e._hostNode}var l=n(23),f=n(172),d=n(587),p=(n(11),f.ID_ATTRIBUTE_NAME),h=d,v="__reactInternalInstance$"+Math.random().toString(36).slice(2),m={getClosestInstanceFromNode:u,getInstanceFromNode:s,getNodeFromInstance:c,precacheChildNodes:a,precacheNode:o,uncacheNode:i};e.exports=m},function(e,t){var n,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(o){"object"===("undefined"==typeof window?"undefined":r(window))&&(n=window)}e.exports=n},function(e,t,n){var r=n(79);e.exports=function(e){return Object(r(e))}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(66),u=n(20),s=n(633),c=n(272),l=function(){function e(e,t){for(var n=0;n3&&void 0!==arguments[3]?arguments[3]:{},f=i.query,d=void 0===f?{}:f,p=i.body,h=void 0===p?{}:p,v=i.type,m=void 0===v?null:v,y=e.origin,g=e.appName,_=e.env,b=e.token,E=e.headers,T=void 0===E?{}:E,w=e.queryParams,S=void 0===w?{}:w,O=e.contextKey,P=t.toLowerCase(),R=b?l({},T,{Authorization:"Bearer "+b}):T,I=l({},S,d,{allow_over18:o.a.get("over18")?"1":"",app:g+"-"+_,obey_over18:!0}),A=r.startsWith("/")?r:"/"+r,C=""+y+A,x=a.a[P](C).set(R).query(I);return m&&x.type(m),"post"===P&&x.send(h),new Promise(function(e,t){x.end(function(r,o){o&&o.headers&&n.i(c.a)(O,o.headers),r?(r&&r.timeout&&(r.status=504),t(new s.a(r,A))):e(new u.a(o,o.headers))})})}},function(e,t,n){"use strict";function r(){return s}var o=n(1654),i=(n.n(o),n(0)),a=(n.n(i),n(147));t.a=r;var u=function(){var e="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103;return function(t,n,r,o){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var u in i)void 0===n[u]&&(n[u]=i[u]);else n||(n=i||{});if(1===a)n.children=o;else if(a>1){for(var s=Array(a),c=0;c0&&void 0!==arguments[0]?arguments[0]:"";return function(){var t=r(regeneratorRuntime.mark(function n(t){return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:t({type:V,payload:{bucketEventName:e}});case 1:case"end":return n.stop()}},n,u)}));return function(e){return t.apply(this,arguments)}}()},W=function(){return function(){var e=r(regeneratorRuntime.mark(function t(e,r){var o;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:o=r(),n.i(a.g)(o)||e(f()),n.i(a.d)(r())&&e(S()),e(I(n.i(a.h)()));case 4:case"end":return t.stop()}},t,u)}));return function(t,n){return e.apply(this,arguments)}}()},K=function(e,t){return function(){var a=r(regeneratorRuntime.mark(function s(r,a){var c,l;return regeneratorRuntime.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(c=a(),l=n.i(i.i)(c),!c.xpromo.listingClick.active&&l[o.c.CLICK]){u.next=4;break}return u.abrupt("return");case 4:r(L({postId:e,listingClickType:t}));case 5:case"end":return u.stop()}},s,u)}));return function(e,t){return a.apply(this,arguments)}}()},Y=function(){return function(){var e=r(regeneratorRuntime.mark(function t(e,n){var r,o;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r=n(),r.xpromo.listingClick.active){t.next=3;break}return t.abrupt("return");case 3:e(C()),e(k()),e(B()),o=r.xpromo.listingClick.target,o&&o.click();case 8:case"end":return t.stop()}},t,u)}));return function(t,n){return e.apply(this,arguments)}}()},z=function(e){window.location=e}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function i(){n(this,i),this.tcpid=null,this.type=null,this.url=null,this.actualurl=null,this.range=null,this.trequest=null,this.tresponse=null,this.responsecode=null,this.interval=null,this.trace=[],this._stream=null,this._tfinish=null,this._mediaduration=null,this._responseHeaders=null,this._serviceLocation=null},o=function a(){n(this,a),this.s=null,this.d=null,this.b=[]};r.GET="GET",r.HEAD="HEAD",r.MPD_TYPE="MPD",r.XLINK_EXPANSION_TYPE="XLinkExpansion",r.INIT_SEGMENT_TYPE="InitializationSegment",r.INDEX_SEGMENT_TYPE="IndexSegment",r.MEDIA_SEGMENT_TYPE="MediaSegment",r.BITSTREAM_SWITCHING_SEGMENT_TYPE="BitstreamSwitchingSegment",r.OTHER_TYPE="other",t.HTTPRequest=r,t.HTTPRequestTrace=o},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){return e.optOuts[B.i.STORE_KEY]||e.optOuts[B.j.STORE_KEY]}function i(e){var t=n.i(q.a)(e),r=t&&t.name;return r}function a(e){return $===e.theme}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:be,n=H.a.withContext({state:e}),r=k()(t,function(e){return n.enabled(e)});return r?Oe[r]:null}function s(e){return!e.optOuts[B.i.STORE_KEY]}function c(e){if(S(e))return Z;switch(i(e)){case"comments":return J;default:return Q}}function l(e){return c(e)===Q}function f(e){var t=c(e);return t===Z||t===J}function d(e){var t=i(e);return"index"===t||"listing"===t||"comments"===t}function p(e){var t=i(e);return"index"===t||"listing"===t&&!n.i(H.b)(e)}function h(e){var t=i(e);return"comments"===t&&a(e)&&!n.i(H.b)(e)}function v(e){var t=n.i(G.c)(e);return!!t&&[G.b,G.a].includes(t)}function m(e,t){var n=H.a.withContext({state:e});return N()(t,function(e){return n.enabled(e)})}function y(e){return P(e)&&m(e,Ee)}function g(e,t){var n=C(e);if(!n[B.c.CLICK])return!1;if(!p(e)||!v(e))return console.log("ineligible"),!1;if(!e.user.loggedOut){var r=e.accounts[e.user.name];if(r&&(r.isMod||r.isGold))return!1}if(!e.xpromo.listingClick.ineligibilityReason){if(!m(e,Te))return!1;if(!_(e))return!1;var o=e.posts[t];return!o.promoted}}function _(e){var t=e.xpromo.listingClick.lastModalClick;if(0===t)return!0;var n=B.q[B.r],r=t+n;return Date.now()>r}function b(e){var t=u(e,we),r=n.i(V.a)(e,t);if(r)return r.variant}function E(e){return e.xpromo.interstitials.scrolledPast}function T(e){return e.xpromo.interstitials.scrolledStart}function w(e){return e.xpromo.persistent.active}function S(e){return n.i(W.a)(e)&&m(e,Se)}function O(e){return m(e,[ee])}function P(e){return e.xpromo.interstitials.showBanner&&O(e)}function R(e){var t=i(e);return"index"!==t&&"listing"!==t||!L()(e.posts)}function I(e){return R(e)&&d(e)&&e.xpromo.interstitials.showBanner}function A(){return"treatment_4"}function C(e){var t,i,a,u,s;if(o(e)||n.i(Y.a)(e)){var c;return c={},r(c,Pe,!1),r(c,Re,null),r(c,Ie,null),c}var l=e.xpromo.interstitials.ampExemption;if(l){var f;return f={},r(f,Pe,!1),r(f,Re,null),r(f,Ie,null),f}var d=A(e),p=n.i(z.a)(e),h=!(!p||p.loggedOut),v=n.i(K.b)(),m=Date.now(),y=B.q[B.v],g=!(m-v>y),_=g||h;switch(d){case"treatment_1":return t={},r(t,Pe,!_),r(t,Re,_?xe:Ae),r(t,Ie,_?xe:Ne),t;case"treatment_2":return i={},r(i,Pe,!_),r(i,Re,_?xe:Ae),r(i,Ie,_?xe:Ce),i;case"treatment_3":return a={},r(a,Pe,!_),r(a,Re,_?xe:Ce),r(a,Ie,_?xe:Ne),a;case"treatment_4":return u={},r(u,Pe,!1),r(u,Re,_?xe:Ce),r(u,Ie,_?xe:Ce),u;case"control_1":case"control_2":default:return s={},r(s,Pe,!0),r(s,Re,_?xe:Ae),r(s,Ie,Ne),s}}var x=n(170),N=n.n(x),M=n(365),k=n.n(M),D=n(58),L=n.n(D),j=n(264),F=n.n(j),U=n(4),B=(n.n(U),n(5)),H=n(74),q=n(678),V=n(288),G=n(290),W=n(57),K=(n(104),n(20),n(57)),Y=n(221),z=n(88);n.d(t,"d",function(){return Oe}),t.g=o,t.s=s,t.n=c,t.m=l,t.q=f,t.b=p,t.c=h,t.h=y,t.j=g,t.e=b,t.l=E,t.k=T,t.o=w,t.a=S,t.p=I,t.f=A,t.i=C,n.d(t,"r",function(){return Me});var X,$=B.g.DAYMODE,Q=B.e.USUAL,J=B.e.MINIMAL,Z=B.e.PERSIST,ee=B.h.XPROMOBANNER,te=B.h.VARIANT_XPROMO_LOGIN_REQUIRED_IOS,ne=B.h.VARIANT_XPROMO_LOGIN_REQUIRED_ANDROID,re=B.h.VARIANT_XPROMO_LOGIN_REQUIRED_IOS_CONTROL,oe=B.h.VARIANT_XPROMO_LOGIN_REQUIRED_ANDROID_CONTROL,ie=B.h.VARIANT_XPROMO_INTERSTITIAL_COMMENTS_IOS,ae=B.h.VARIANT_XPROMO_INTERSTITIAL_COMMENTS_ANDROID,ue=B.h.XPROMO_MODAL_LISTING_CLICK_DAILY_DISMISSIBLE_IOS,se=B.h.XPROMO_MODAL_LISTING_CLICK_DAILY_DISMISSIBLE_ANDROID,ce=B.h.XPROMO_MODAL_LISTING_CLICK_DAILY_DISMISSIBLE_THROTTLE,le=B.h.VARIANT_XPROMO_INTERSTITIAL_FREQUENCY_IOS,fe=B.h.VARIANT_XPROMO_INTERSTITIAL_FREQUENCY_ANDROID,de=B.h.VARIANT_XPROMO_PERSISTENT_IOS,pe=B.h.VARIANT_XPROMO_PERSISTENT_ANDROID,he=B.h.VARIANT_MOBILE_SHARING_WEB_SHARE_API,ve=B.h.VARIANT_MOBILE_SHARING_CLIPBOARD,me=B.h.VARIANT_NSFW_XPROMO,ye=B.h.VARIANT_IOS_LINK_TAB,ge=B.h.VARIANT_XPROMO_REVAMP,_e=B.h.VARIANT_XPROMO_REVAMP_2,be=[te,ne,re,oe,le,fe],Ee=[te,ne],Te=[ue,se],we=[le,fe],Se=[de,pe],Oe=(X={},r(X,he,"mweb_sharing_web_share_api"),r(X,ve,"mweb_sharing_clipboard"),r(X,te,"mweb_xpromo_require_login_ios"),r(X,ne,"mweb_xpromo_require_login_android"),r(X,re,"mweb_xpromo_require_login_ios"),r(X,oe,"mweb_xpromo_require_login_android"),r(X,ie,"mweb_xpromo_interstitial_comments_ios"),r(X,ae,"mweb_xpromo_interstitial_comments_android"),r(X,ue,"mweb_xpromo_modal_listing_click_daily_dismissible_ios"),r(X,se,"mweb_xpromo_modal_listing_click_daily_dismissible_android"),r(X,ce,"mweb_xpromo_modal_listing_click_daily_dismissible_throttle"),r(X,le,"mweb_xpromo_interstitial_frequency_ios"),r(X,fe,"mweb_xpromo_interstitial_frequency_android"),r(X,de,"mweb_xpromo_persistent_ios"),r(X,pe,"mweb_xpromo_persistent_android"),r(X,me,"mweb_nsfw_xpromo"),r(X,ye,"mweb_link_tab"),r(X,ge,"mweb_xpromo_revamp"),r(X,_e,"mweb_xpromo_revamp_v2"),X),Pe=B.c.CLICK,Re=B.c.LISTING,Ie=B.c.POST,Ae=B.c.SNACKBAR,Ce=B.c.NATIVE,xe=B.c.PILL,Ne=B.c.CLASSIC,Me=n.i(U.createSelector)(function(e){return n.i(q.a)(e)},function(e){return e.commentsPages.api},function(e){return e.postsLists},function(e,t,n){var r=e&&e.name;if(r===B.d.COMMENTS){var o=F()(t);return 0!==o.length&&o.every(function(e){return!e.pending})}if([B.d.INDEX,B.d.LISTING].includes(r)){var i=F()(n);return 0!==i.length&&i.every(function(e){return!e.loading})}return!1})},function(e,t){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};e.exports=r},function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,i){try{var a=t[o](i),u=a.value}catch(s){return void n(s)}return a.done?void e(u):Promise.resolve(u).then(function(e){r("next",e)},function(e){r("throw",e)})}return r("next")})}}function o(e){var t=e.subredditName;return n.i(d.a)({sort:"hot",subredditName:t})}var i=n(170),a=n.n(i),u=n(272),s=n(404),c=n(25),l=n(22),f=n(187),d=n(120),p=n(185),h=n(74),v=n(426),m=n(183),y=n(116),g=n(5),_=n(1338),b=n(88);n.d(t,"i",function(){return S}),n.d(t,"e",function(){return P}),n.d(t,"g",function(){return I}),n.d(t,"h",function(){return C}),n.d(t,"j",function(){return N}),n.d(t,"c",function(){return M}),n.d(t,"a",function(){return k}),n.d(t,"f",function(){return D}),t.d=o,n.d(t,"b",function(){return L});var E=this,T=Object.assign||function(e){for(var t=1;t"+o+""};e.exports=function(e,t){var n={};n[e]=t(u),r(r.P+r.F*o(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",n)}},function(e,t,n){(function(e,r){var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(1094),a={"function":!0,object:!0},u=a[o(t)]&&t&&!t.nodeType?t:void 0,s=a[o(e)]&&e&&!e.nodeType?e:void 0,c=i(u&&s&&"object"==("undefined"==typeof r?"undefined":o(r))&&r),l=i(a["undefined"==typeof self?"undefined":o(self)]&&self),f=i(a["undefined"==typeof window?"undefined":o(window)]&&window),d=i(a[o(this)]&&this),p=c||f!==(d&&d.window)&&f||l||d||Function("return this")();e.exports=p}).call(t,n(64)(e),n(36))},function(e,t,n){function r(e){var t=c(e);if(!t&&!u(e))return i(e);var n=a(e),r=!!n,l=n||[],f=l.length;for(var d in e)!o(e,d)||r&&("length"==d||s(d,f))||t&&"constructor"==d||l.push(d);return l}var o=n(250),i=n(535),a=n(556),u=n(97),s=n(167),c=n(203);e.exports=r},function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,i){try{var a=t[o](i),u=a.value}catch(s){return void n(s)}return a.done?void e(u):Promise.resolve(u).then(function(e){r("next",e)},function(e){r("throw",e)})}return r("next")})}}var o=n(22),i=n(56),a=n(680),u=n(628),s=n(25),c=n(214);n.d(t,"c",function(){return f}),n.d(t,"b",function(){return p}),n.d(t,"d",function(){return v}),n.d(t,"a",function(){return y});var l=this,f="FETCHING_SUBREDDIT",d=function(e){return{type:f,name:e}},p="RECEIVED_SUBREDDIT",h=function(e,t){return{type:p,name:e,model:t}},v="FAILED_SUBREDDIT",m=function(e,t){return{type:v,name:e,error:t}},y=function(e){return function(){var t=r(regeneratorRuntime.mark(function f(t,r){var p,v,y,g;return regeneratorRuntime.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(!n.i(i.a)(e)){l.next=2;break}return l.abrupt("return");case 2:if(p=r(),v=p.subredditRequests[e],!v||v.failed||v.loading){l.next=6;break}return l.abrupt("return");case 6:return t(d(e)),l.prev=7,l.next=10,u.a.get(n.i(o.a)(p),{id:e});case 10:y=l.sent,g=y.getModelFromRecord(y.results[0]),t(h(e,g)),l.next=22;break;case 15:if(l.prev=15,l.t0=l["catch"](7),!(l.t0 instanceof s.a)){l.next=21;break}t(n.i(a.a)(l.t0)?n.i(c.a)(e,l.t0.response.body.quarantine_message_html):m(e,l.t0)),l.next=22;break;case 21:throw l.t0;case 22:case"end":return l.stop()}},f,l,[[7,15]])}));return function(e,n){return t.apply(this,arguments)}}()}},function(e,t,n){"use strict";function r(e){return!e||e.indexOf("+")>-1||e.indexOf("-")>-1||i.includes(e)}n.d(t,"b",function(){return i}),t.a=r;var o=["random","randnsfw","myrandom"],i=["all","mod","friends","popular"].concat(o)},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t3&&void 0!==arguments[3]?arguments[3]:{},i=D({utm_source:"xpromo",utm_content:r},_(e,o),o);return i=D({},i,n.i(I.e)(e)),h(e,t,i)}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B;if(n.i(R.a)()){var t=localStorage.getItem(e);return t?new Date(t).getTime():0}return 1/0}function d(e,t){return x.q[t||n.i(C.e)(e)||x.r]}function p(e){var t=f()+d(e,x.r);return t>Date.now()}function h(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=o?W(e,r):r;t===x.A&&(t="/",a=D({},a,{base_url:t}));var u=e.user,s=e.accounts,c=i(s),l=c.loid,f=c.loidCreated,d=void 0,p=void 0,h=u.loggedOut?null:s[u.name];h&&(d=h.name,p=h.id);var v=D({},n.i(I.g)(e),n.i(I.b)(e),G(e),{$og_redirect:""+P.a.reddit+t,$deeplink_path:t,$android_deeplink_path:"reddit"+t,mweb_loid:l,mweb_loid_created:f,mweb_user_id36:p,mweb_user_name:d}),m=K(v,a),y=E.a.format({protocol:"https",host:"reddit.app.link",pathname:"/",query:m});return y}function v(e){return n.i(M.g)(e)}function m(){var e=n.i(R.a)()?localStorage.getItem(q):null,t=e?Number(e):0,r=n.i(R.a)()?localStorage.getItem(H):null,o=r?new Date(r).getTime():0,i=n.i(R.a)()?null:"local_storage_unavailable";return{ineligibilityReason:i,lastModalClick:o,modalDismissCount:t}}function y(){return!!n.i(R.a)()&&void localStorage.setItem(B,new Date)}function g(e){return n.i(C.b)(e)?e.xpromo.listingClick.active?x.s:a(e)?U:n.i(C.h)(e)?j:L:n.i(C.c)(e)?F:void 0}function _(e,t){var n={interstitial_type:w()(t,"interstitialType")||g(e)},r=e.xpromo.listingClick,o=r.active,i=r.clickInfo;return o&&i?D({},n,{listing_click_type:i.listingClickType}):n}var b=n(63),E=n.n(b),T=n(138),w=n.n(T),S=n(95),O=n.n(S),P=n(17),R=n(189),I=n(26),A=n(221),C=n(46),x=n(5),N=n(89),M=n(46);t.d=a,t.i=u,t.k=s,t.b=f,t.a=p,t.j=h,t.g=v,t.h=m,t.c=y,n.d(t,"e",function(){return Y}),n.d(t,"f",function(){return z});var k=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{!r&&u["return"]&&u["return"]()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),D=Object.assign||function(e){for(var t=1;t=0?u:i.length,c=o+"_"+a;return i[s]=c,D({},t,{tags:i,utm_content:c})}return t},K=function(e,t){var n=t.tags,o=void 0===n?[]:n,i=e.tags,a=void 0===i?[]:i;return D({},e,t,{tags:[].concat(r(o),r(a))})},Y=function(e){n.i(R.a)()&&localStorage.setItem(H,e)},z=function(e){n.i(R.a)()&&localStorage.setItem(q,e)}},function(e,t,n){function r(e){if(u(e)&&(a(e)||f(e)||c(e.splice)||i(e)||s(e)))return!e.length;if(l(e)){var t=o(e);if(t==p||t==h)return!e.size}for(var n in e)if(m.call(e,n))return!1;return!(g&&d(e).length)}var o=n(253),i=n(206),a=n(27),u=n(97),s=n(573),c=n(83),l=n(113),f=n(169),d=n(54),p="[object Map]",h="[object Set]",v=Object.prototype,m=v.hasOwnProperty,y=v.propertyIsEnumerable,g=!y.call({valueOf:1},"valueOf");e.exports=r},function(e,t,n){var r=n(194),o=n(128),i=n(61),a=n(82),u=n(49),s=n(464),c=Object.getOwnPropertyDescriptor;t.f=n(31)?c:function(e,t){if(e=i(e),t=a(t,!0),s)try{return c(e,t)}catch(n){}if(u(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(49),o=n(37),i=n(316)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var r=n(193),o=n(79);e.exports=function(e){return r(o(e))}},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";function r(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function o(e,t,n){if(e&&l.isObject(e)&&e instanceof r)return e;var o=new r;return o.parse(e,t,n),o}function i(e){return l.isString(e)&&(e=o(e)),e instanceof r?e.format():r.prototype.format.call(e)}function a(e,t){return o(e,!1,!0).resolve(t)}function u(e,t){return e?o(e,!1,!0).resolveObject(t):t}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c=n(1225),l=n(1331);t.parse=o,t.resolve=a,t.resolveObject=u,t.format=i,t.Url=r;var f=/^([a-z0-9.+-]+:)/i,d=/:[0-9]*$/,p=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,h=["<",">",'"',"`"," ","\r","\n","\t"],v=["{","}","|","\\","^","`"].concat(h),m=["'"].concat(v),y=["%","/","?",";","#"].concat(m),g=["/","?","#"],_=255,b=/^[+a-z0-9A-Z_-]{0,63}$/,E=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,T={javascript:!0,"javascript:":!0},w={javascript:!0,"javascript:":!0},S={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},O=n(1228);r.prototype.parse=function(e,t,n){if(!l.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+("undefined"==typeof e?"undefined":s(e)));var r=e.indexOf("?"),o=r!==-1&&r127?"x":D[j];if(!L.match(b)){var U=M.slice(0,I),B=M.slice(I+1),H=D.match(E);H&&(U.push(H[1]),B.unshift(H[2])),B.length&&(u="/"+B.join(".")+u),this.hostname=U.join(".");break}}}this.hostname.length>_?this.hostname="":this.hostname=this.hostname.toLowerCase(),N||(this.hostname=c.toASCII(this.hostname));var q=this.port?":"+this.port:"",V=this.hostname||"";this.host=V+q,this.href+=this.host,N&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==u[0]&&(u="/"+u))}if(!T[v])for(var I=0,k=m.length;I0)&&n.host.split("@");O&&(n.auth=O.shift(),n.host=n.hostname=O.shift())}return n.search=e.search,n.query=e.query,l.isNull(n.pathname)&&l.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!E.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var P=E.slice(-1)[0],R=(n.host||e.host||E.length>1)&&("."===P||".."===P)||""===P,I=0,A=E.length;A>=0;A--)P=E[A],"."===P?E.splice(A,1):".."===P?(E.splice(A,1),I++):I&&(E.splice(A,1),I--);if(!_&&!b)for(;I--;I)E.unshift("..");!_||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),R&&"/"!==E.join("/").substr(-1)&&E.push("");var C=""===E[0]||E[0]&&"/"===E[0].charAt(0);if(T){n.hostname=n.host=C?"":E.length?E.shift():"";var O=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");O&&(n.auth=O.shift(),n.host=n.hostname=O.shift())}return _=_||n.host&&E.length,_&&!C&&E.unshift(""),E.length?n.pathname=E.join("/"):(n.pathname=null,n.path=null),l.isNull(n.pathname)&&l.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},r.prototype.parseHost=function(){var e=this.host,t=d.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,configurable:!1,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,configurable:!1,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(273),u=function(e,t){return e+" had errors in "+t.join(",")},s=function(e){function t(e,n,i){r(this,t);var a=n&&n.length?u(e,n):"Validation error in '"+e+"'",s=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a));return s.name="ValidationError",s.errors=n,s.status=i,s}return i(t,e),t}(a.a);t.a=s},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(1334),u=n(20),s=n(1358),c=n(1359),l=n(1366),f=n(1367),d=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return!!t.state.optOuts[e.STORE_KEY]}))}),fe.addRule("pageBucketPercent",function(e){var t=e.seed,r=e.percentage,o=n.i(m.a)(this.state),i=u()(""+t+o).toString(),a=parseInt(i.slice(0,10),16),s=parseInt(i.slice(10,20),16),c=parseInt(i.slice(20,30),16),l=parseInt(i.slice(30,40),16),f=(a%1e3*576%1e3+s%1e3*176%1e3+c%1e3*776%1e3+l%1e3)%1e3;return f<=10*r}),fe.addRule("allowNSFW",function(e){return!!e||!pe(this.state)});var pe=function(e){var t=n.i(h.a)(e),r=e.platform.currentPage.urlParams.postId;if(!t&&!r)return!1;if(t){var o=e.subreddits[t.toLowerCase()];if(o&&o.over18)return!0;if((o||n.i(y.a)(t))&&!r)return!1}if(r){var i=e.posts["t3_"+r];if(!i)return!0;if(i.subredditName){var a=e.posts[i.subredditName];if(a&&a.over18)return!0}return i.over18}return!0};t.a=fe,fe.addRule("country",function(e){return this.state.meta.country===e});var he=Date.now();fe.addRule("timeframe",function(e){var t=e[0],n=e[1];return he>t&&heE;E++)if((d||E in g)&&(v=g[E],m=_(v,E,y),e))if(n)T[E]=m;else if(m)switch(e){case 3:return!0;case 5:return v;case 6:return E;case 2:T.push(v)}else if(l)return!1;return f?-1:c||l?l:T}}},function(e,t){var n=e.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(1),o=n(78),i=n(18);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(21);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){function r(e){var t=o(e)?s.call(e):"";return t==i||t==a}var o=n(39),i="[object Function]",a="[object GeneratorFunction]",u=Object.prototype,s=u.toString;e.exports=r},function(e,t,n){"use strict";function r(){R.ReactReconcileTransaction&&E?void 0:l("123")}function o(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=d.getPooled(),this.reconcileTransaction=R.ReactReconcileTransaction.getPooled(!0)}function i(e,t,n,o,i,a){return r(),E.batchedUpdates(e,t,n,o,i,a)}function a(e,t){return e._mountOrder-t._mountOrder}function u(e){var t=e.dirtyComponentsLength;t!==y.length?l("124",t,y.length):void 0,y.sort(a),g++;for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};return f({},p,e)},v=function(e){return e.eventEmitter||d},m=function(e){var t=e.token;return t?{Authorization:"Bearer "+t}:{}},y=function(e){var t=m(e); +return f({},e.headers||{},t)},g=function(e,t){var n="/";return 0===t.indexOf("/")&&(n=""),""+e.origin+n+t},_=function(e){return e.appName+"-"+e.env},b=function(e,t,n,r,i,u){var s=e.origin,c=g(e,n),l={origin:s,path:n,url:c,method:t,query:f({},r)};v(e).emit(a.a.request,l);var d=o.a[t](c);d.set(y(e)),"query"===i?(r.app=_(e),d.query(f({},e.queryParams||{},r,{app:_(e)})),d.redirects&&d.redirects(0)):(d.query({app:_(e)}),d.type(i),d.send(r)),d.end(function(e,t){var n=t?t.request:l;u(e,t,n)})},E=function(e,t,n,r){if(!e||!r)throw new l.a(n,(void 0));if(!r(e))throw new l.a(n,e)},T=function(e,t,n,r,o,i){if(!(e&&t&&n&&r))throw new s.a;return new Promise(function(a,u){b(e,t,n,r,"json",function(s,c,l){P(e,a,u,s,c,l,t,n,r,o,i)})})},w=function(e,t,n,r,o,i){if(!(e&&t&&n&&r))throw new s.a;return new Promise(function(a,u){b(e,t,n,r,"form",function(s,c,l){P(e,a,u,s,c,l,t,n,r,o,i)})})},S=function(e,t,n,r,o,i,a){if(!(e&&t&&n&&r&&o))throw new s.a;return"get"===t&&(r.raw_json=1),new Promise(function(u,s){b(e,t,n,r,"query",function(r,c,l){P(e,u,s,r,c,l,t,n,o,i,a)})})},O=function(e,t){return e&&!t?e.request||e.req:t},P=function(e,t,n,r,o,i,u,s,c,l,f){if(i=O(o,i),!R(e,r,o,i,u,s,n)){v(e).emit(a.a.response,i,o);var d=I(n,o,i,u,s,c,l,f);v(e).emit(a.a.result,d),t(d)}},R=function(e,t,n,r,o,i,u){if(!(!t&&!n||n&&n.ok))return t?(v(e).emit(a.a.error,t,r),t&&t.timeout&&(t.status=504),u(new c.a(t,i))):u(new c.a(n,i))},I=function(e,t,n,r,o,i,a,u){try{return A(t,n,r,i,a,u)}catch(s){console.trace(s),e(new c.a(s,o))}},A=function(e,t,n,r,o,i){if(!o)return e.body;var a=i?i(e,t,n):e.headers,s=new u.a(e,a,r);return o(e,s,t,n),s}},function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,i){try{var a=t[o](i),u=a.value}catch(s){return void n(s)}return a.done?void e(u):Promise.resolve(u).then(function(e){r("next",e)},function(e){r("throw",e)})}return r("next")})}}var o=n(22),i=n(1336);n.d(t,"b",function(){return s}),n.d(t,"c",function(){return l}),n.d(t,"d",function(){return d}),n.d(t,"a",function(){return h});var a=this,u=Object.assign||function(e){for(var t=1;tn;)o[n]=t[n++];return o},De=function(e,t,n){q(e,t,{get:function(){return this._d[n]}})},Le=function(e){var t,n,r,o,i,a,u=w(e),s=arguments.length,c=s>1?arguments[1]:void 0,f=void 0!==c,d=I(u);if(void 0!=d&&!S(d)){for(a=d.call(u),r=[],t=0;!(i=a.next()).done;t++)r.push(i.value);u=r}for(f&&s>2&&(c=l(c,arguments[2],2)),t=0,n=m(u.length),o=Ne(this,n);n>t;t++)o[t]=f?c(u[t],t):u[t];return o},je=function(){for(var e=0,t=arguments.length,n=Ne(this,t);t>e;)n[e]=arguments[e++];return n},Fe=!!K&&a(function(){ge.call(new K(1))}),Ue=function(){return ge.apply(Fe?me.call(xe(this)):xe(this),arguments)},Be={copyWithin:function(e,t){return U.call(xe(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return re(xe(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return F.apply(xe(this),arguments)},filter:function(e){return Me(this,te(xe(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return oe(xe(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ie(xe(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){ee(xe(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ue(xe(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return ae(xe(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return he.apply(xe(this),arguments)},lastIndexOf:function(e){return fe.apply(xe(this),arguments)},map:function(e){return Re(xe(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return de.apply(xe(this),arguments)},reduceRight:function(e){return pe.apply(xe(this),arguments)},reverse:function(){for(var e,t=this,n=xe(t).length,r=Math.floor(n/2),o=0;o1?arguments[1]:void 0)},sort:function(e){return ve.call(xe(this),e)},subarray:function(e,t){var n=xe(this),r=n.length,o=g(e,r);return new(M(n,n[Te]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,m((void 0===t?r:g(t,r))-o))}},He=function(e,t){return Me(this,me.call(xe(this),e,t))},qe=function(e){xe(this);var t=Ce(arguments[1],1),n=this.length,r=w(e),o=m(r.length),i=0;if(o+t>n)throw G(Pe);for(;i255?255:255&o),i.v[d](n*t+i.o,o,Ie)},A=function(e,t){q(e,t,{get:function(){return S(this,t)},set:function(e){return I(this,t,e)},enumerable:!0})};_?(h=n(function(e,n,r,o){f(e,h,c,"_d");var i,a,u,s,l=0,d=0;if(T(n)){if(!(n instanceof J||(s=E(n))==Y||s==z))return Se in n?ke(h,n):Le.call(h,n);i=n,d=Ce(r,t);var v=n.byteLength;if(void 0===o){if(v%t)throw G(Pe);if(a=v-d,a<0)throw G(Pe)}else if(a=m(o)*t,a+d>v)throw G(Pe);u=a/t}else u=y(n),a=u*t,i=new J(a);for(p(e,"_d",{b:i,o:d,l:a,e:u,v:new Z(i)});l1){if(i=e({path:"/"},r.defaults,i),"number"==typeof i.expires){var u=new Date;u.setMilliseconds(u.getMilliseconds()+864e5*i.expires),i.expires=u}i.expires=i.expires?i.expires.toUTCString():"";try{a=JSON.stringify(o),/^[\{\[]/.test(a)&&(o=a)}catch(s){}o=n.write?n.write(o,t):encodeURIComponent(String(o)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)),t=t.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),t=t.replace(/[\(\)]/g,escape);var c="";for(var l in i)i[l]&&(c+="; "+l,i[l]!==!0&&(c+="="+i[l]));return document.cookie=t+"="+o+c}t||(a={});for(var f=document.cookie?document.cookie.split("; "):[],d=/(%[0-9A-Z]{2})+/g,p=0;p>>2]>>>24-i%4*8&255;t[r+i>>>2]|=a<<24-(r+i)%4*8}else for(var i=0;i>>2]=n[i>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function p(){var p=i.clone.call(this);return p.words=this.words.slice(0),p},random:function(t){for(var n,r=[],o=function(t){var t=t,n=987654321,r=4294967295;return function(){n=36969*(65535&n)+(n>>16)&r,t=18e3*(65535&t)+(t>>16)&r;var o=(n<<16)+t&r;return o/=4294967296,o+=.5,o*(e.random()>.5?1:-1)}},i=0;i>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new a.init(n,t/2)}},c=u.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new a.init(n,t)}},l=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},f=o.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,o=n.sigBytes,i=this.blockSize,u=4*i,s=o/u;s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0);var c=s*i,l=e.min(4*c,o);if(c){for(var f=0;f1)for(var n=1;n1){for(var s=Array(a),c=0;c_;_++)if(m=t?g(a(h=e[_])[0],h[1]):g(e[_]),m===c||m===l)return m}else for(v=y.call(e);!(h=v.next()).done;)if(m=o(v,g,h.value,t),m===c||m===l)return m};t.BREAK=c,t.RETURN=l},function(e,t){e.exports=!1},function(e,t,n){var r=n(13),o=n(473),i=n(304),a=n(316)("IE_PROTO"),u=function(){},s="prototype",c=function(){var e,t=n(303)("iframe"),r=i.length,o="<",a=">";for(t.style.display="none",n(306).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(o+"script"+a+"document.F=Object"+o+"/script"+a),e.close(),c=e.F;r--;)delete c[s][i[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(u[s]=r(e),n=new u,u[s]=null,n[a]=e):n=c(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(475),o=n(304).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(475),o=n(304);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(51);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},function(e,t,n){"use strict";var r=n(15),o=n(32),i=n(31),a=n(28)("species");e.exports=function(e){var t=r[e];i&&t&&!t[a]&&o.f(t,a,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r=n(81),o=Math.max,i=Math.min;e.exports=function(e,t){return e=r(e),e<0?o(e+t,0):i(e,t)}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n0||a&&a.length>0){var u=ge.getFragmentModel().getRequests({state:s["default"].FRAGMENT_MODEL_EXECUTED,quality:r,index:t.index})[0],c=k(n,u,i,a);ge.getEventController().addInbandEvents(c)}p(t)}}function p(e){Me=!0,Ce=e,ce.append(Ie,e),e.mediaInfo.type===a["default"].VIDEO&&ae.trigger(g["default"].VIDEO_CHUNK_RECEIVED,{chunk:e})}function v(e){if(Ie===e.buffer){if(e.error)return e.error.code===l["default"].QUOTA_EXCEEDED_ERROR_CODE&&(Se=.8*ce.getTotalBufferedTime(Ie)),void(e.error.code!==l["default"].QUOTA_EXCEEDED_ERROR_CODE&&D()||(ae.trigger(g["default"].QUOTA_EXCEEDED,{sender:_e,criticalBufferLevel:Se}),F(j())));Ce&&!isNaN(Ce.index)&&(Pe=Math.max(Ce.index,Pe),x());var t=ce.getAllRanges(Ie);if(t&&t.length>0)for(var n=0,r=t.length;n=Re-1;e&&!Te&&(Te=!0,ae.trigger(g["default"].BUFFERING_COMPLETED,{sender:_e,streamInfo:ge.getStreamInfo()}))}function N(){"audio"!==ye&&"video"!==ye||(je&&!Te&&me&&me.getTimeToStreamEnd()-we0&&(be("pruning buffer: "+t+" seconds."),ke=!0,ce.remove(Ie,0,Math.round(e+t),Oe))}}function j(e){if(!Ie)return null;var t=me.getTime(),n=ge.getFragmentModel().getRequests({state:s["default"].FRAGMENT_MODEL_EXECUTED,time:t,threshold:e})[0],r=ce.getBufferRange(Ie,t),o=n&&!isNaN(n.startTime)?n.startTime:Math.floor(t);return null===r&&Ie.buffered.length>0&&(o=Ie.buffered.end(Ie.buffered.length-1)),{start:Ie.buffered.start(0),end:o}}function F(e){e&&Ie&&ce.remove(Ie,e.start,e.end,Oe)}function U(e){Ie===e.buffer&&(ke&&(ke=!1),w(),ae.trigger(g["default"].BUFFER_CLEARED,{sender:_e,from:e.from,to:e.to,hasEnoughSpaceToAppend:D()}))}function B(e){Ie&&Ie.timestampOffset!==e&&!isNaN(e)&&(Ie.timestampOffset=e)}function H(e){e.sender.getStreamProcessor()!==ge||e.error||B(e.currentRepresentation.MSETimeOffset)}function q(e){e.fragmentModel===ge.getFragmentModel()&&(Re=e.request.index,x())}function V(e){Ie&&e.newMediaInfo.type===ye&&e.newMediaInfo.streamInfo.id===ge.getStreamInfo().id&&de.getSwitchMode(ye)===h["default"].TRACK_SWITCH_MODE_ALWAYS_REPLACE&&F(j(0))}function G(){xe++;var e=xe*(se.getWallclockTimeUpdateInterval()/1e3);e>=se.getBufferPruningInterval()&&!Me&&(xe=0,L())}function W(){K(me.getTime())}function K(e){for(var t=ce.getAllRanges(Ie),n=0;ne&&(be("Removing buffer from: "+t.start(n)+"-"+t.end(n)),ce.remove(Ie,t.start(n),t.end(n),Oe))}function Y(){N()}function z(){return ye}function X(){return ge}function $(e){Le=e}function Q(){return Ie}function J(e){Ie=e}function Z(){return we}function ee(e){Oe=e}function te(){return Oe}function ne(){return Te}function re(){Se=Number.POSITIVE_INFINITY,Ae=I,Ee=d["default"].QUALITY_DEFAULT,Re=Number.POSITIVE_INFINITY,Pe=0,Ce=null,Ne=!1,Te=!1,Me=!1,ke=!1,je=!1,we=0,xe=0}function oe(e){ae.off(g["default"].DATA_UPDATE_COMPLETED,H,this), +ae.off(g["default"].QUALITY_CHANGE_REQUESTED,y,this),ae.off(g["default"].INIT_FRAGMENT_LOADED,u,this),ae.off(g["default"].MEDIA_FRAGMENT_LOADED,f,this),ae.off(g["default"].STREAM_COMPLETED,q,this),ae.off(g["default"].CURRENT_TRACK_CHANGED,V,this),ae.off(g["default"].PLAYBACK_PROGRESS,T,this),ae.off(g["default"].PLAYBACK_TIME_UPDATED,T,this),ae.off(g["default"].PLAYBACK_RATE_CHANGED,Y,this),ae.off(g["default"].PLAYBACK_SEEKING,_,this),ae.off(g["default"].WALLCLOCK_TIME_UPDATED,G,this),ae.off(g["default"].SOURCEBUFFER_APPEND_COMPLETED,v,this),ae.off(g["default"].SOURCEBUFFER_REMOVE_COMPLETED,U,this),Fe&&ae.off(g["default"].PLAYBACK_SEEKED,W,this),re(),e||(ce.abort(Oe,Ie),ce.removeSourceBuffer(Oe,Ie)),Ie=null}e=e||{};var ie=this.context,ae=(0,m["default"])(ie).getInstance(),ue=e.metricsModel,se=e.mediaPlayerModel,ce=e.sourceBufferController,le=e.errHandler,fe=e.streamController,de=e.mediaController,pe=e.adapter,he=e.textController,ve=e.abrController,me=e.playbackController,ye=e.type,ge=e.streamProcessor,_e=void 0,be=void 0,Ee=void 0,Te=void 0,we=void 0,Se=void 0,Oe=void 0,Pe=void 0,Re=void 0,Ie=void 0,Ae=void 0,Ce=void 0,xe=void 0,Ne=void 0,Me=void 0,ke=void 0,De=void 0,Le=void 0,je=void 0,Fe=void 0;return _e={getBufferControllerType:n,initialize:r,createBuffer:o,getType:z,getStreamProcessor:X,setSeekStartTime:$,getBuffer:Q,setBuffer:J,getBufferLevel:Z,setMediaSource:ee,getMediaSource:te,getIsBufferingCompleted:ne,switchInitData:c,reset:oe},t(),_e}Object.defineProperty(t,"__esModule",{value:!0});var i=n(24),a=r(i),u=n(241),s=r(u),c=n(500),l=r(c),f=n(239),d=r(f),p=n(499),h=r(p),v=n(12),m=r(v),y=n(14),g=r(y),_=n(339),b=r(_),E=n(2),T=r(E),w=n(19),S=r(w),O=n(340),P=r(O),R="bufferLoaded",I="bufferStalled",A=.5,C="BufferController";o.__dashjs_factory_name=C;var x=T["default"].getClassFactory(o);x.BUFFER_LOADED=R,x.BUFFER_EMPTY=I,T["default"].updateClassFactory(o.__dashjs_factory_name,x),t["default"]=x,e.exports=t["default"]},function(e,t,n){function r(e,t){return e&&o(e,t,i)}var o=n(529),i=n(54);e.exports=r},function(e,t,n){function r(e,t,n,r){n||(n={});for(var i=-1,a=t.length;++i=200&&t.status<300)return n.callback(e,t);var o=new Error(t.statusText||"Unsuccessful HTTP response");o.original=e,o.response=t,o.status=t.status,n.callback(o,t)})}function h(e,t){var n=b("DELETE",e);return t&&n.end(t),n}var v,m=n(703),y=n(1321),g=n(1327),_=n(620);v="undefined"!=typeof window?window:"undefined"!=typeof self?self:this;var b=e.exports=n(1328).bind(null,p);b.getXHR=function(){if(!(!v.XMLHttpRequest||v.location&&"file:"==v.location.protocol&&v.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}return!1};var E="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};b.serializeObject=i,b.parseString=u,b.types={html:"text/html",json:"application/json",xml:"application/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},b.serialize={"application/x-www-form-urlencoded":i,"application/json":JSON.stringify},b.parse={"application/x-www-form-urlencoded":u,"application/json":JSON.parse},d.prototype.get=function(e){return this.header[e.toLowerCase()]},d.prototype.setHeaderProperties=function(e){var t=this.header["content-type"]||"";this.type=l(t);var n=f(t);for(var r in n)this[r]=n[r]},d.prototype.parseBody=function(e){var t=b.parse[this.type];return!t&&c(this.type)&&(t=b.parse["application/json"]),t&&e&&(e.length||e instanceof Object)?t(e):null},d.prototype.setStatusProperties=function(e){1223===e&&(e=204);var t=e/100|0;this.status=this.statusCode=e,this.statusType=t,this.info=1==t,this.ok=2==t,this.clientError=4==t,this.serverError=5==t,this.error=(4==t||5==t)&&this.toError(),this.accepted=202==e,this.noContent=204==e,this.badRequest=400==e,this.unauthorized=401==e,this.notAcceptable=406==e,this.notFound=404==e,this.forbidden=403==e},d.prototype.toError=function(){var e=this.req,t=e.method,n=e.url,r="cannot "+t+" "+n+" ("+this.status+")",o=new Error(r);return o.status=this.status,o.method=t,o.url=n,o},b.Response=d,m(p.prototype);for(var T in g)p.prototype[T]=g[T];p.prototype.abort=function(){if(!this.aborted)return this.aborted=!0,this.xhr.abort(),this.clearTimeout(),this.emit("abort"),this},p.prototype.type=function(e){return this.set("Content-Type",b.types[e]||e),this},p.prototype.responseType=function(e){return this._responseType=e,this},p.prototype.accept=function(e){return this.set("Accept",b.types[e]||e),this},p.prototype.auth=function(e,t,n){switch(n||(n={type:"basic"}),n.type){case"basic":var r=btoa(e+":"+t);this.set("Authorization","Basic "+r);break;case"auto":this.username=e,this.password=t}return this},p.prototype.query=function(e){return"string"!=typeof e&&(e=i(e)),e&&this._query.push(e),this},p.prototype.attach=function(e,t,n){return this._getFormData().append(e,t,n||t.name),this},p.prototype._getFormData=function(){return this._formData||(this._formData=new v.FormData),this._formData},p.prototype.send=function(e){var t=_(e),n=this._header["content-type"];if(t&&_(this._data))for(var r in e)this._data[r]=e[r];else"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],"application/x-www-form-urlencoded"==n?this._data=this._data?this._data+"&"+e:e:this._data=(this._data||"")+e):this._data=e;return!t||o(e)?this:(n||this.type("json"),this)},d.prototype.parse=function(e){return v.console&&console.warn("Client-side parse() method has been renamed to serialize(). This method is not compatible with superagent v2.0"),this.serialize(e),this},d.prototype.serialize=function(e){return this._parser=e,this},p.prototype.callback=function(e,t){var n=this._callback;this.clearTimeout(),n(e,t)},p.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},p.prototype.timeoutError=function(){var e=this._timeout,t=new Error("timeout of "+e+"ms exceeded");t.timeout=e,this.callback(t)},p.prototype.withCredentials=function(){return this._withCredentials=!0,this},p.prototype.end=function(e){var t=this,n=this.xhr=b.getXHR(),i=this._query.join("&"),a=this._timeout,u=this._formData||this._data;this._callback=e||r,n.onreadystatechange=function(){if(4==n.readyState){var e;try{e=n.status}catch(r){e=0}if(0==e){if(t.timedout)return t.timeoutError();if(t.aborted)return;return t.crossDomainError()}t.emit("end")}};var s=function(e){e.total>0&&(e.percent=e.loaded/e.total*100),e.direction="download",t.emit("progress",e)};this.hasListeners("progress")&&(n.onprogress=s);try{n.upload&&this.hasListeners("progress")&&(n.upload.onprogress=s)}catch(l){}if(a&&!this._timer&&(this._timer=setTimeout(function(){t.timedout=!0,t.abort()},a)),i&&(i=b.serializeObject(i),this.url+=~this.url.indexOf("?")?"&"+i:"?"+i),this.username&&this.password?n.open(this.method,this.url,!0,this.username,this.password):n.open(this.method,this.url,!0),this._withCredentials&&(n.withCredentials=!0),"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof u&&!o(u)){var f=this._header["content-type"],d=this._parser||b.serialize[f?f.split(";")[0]:""];!d&&c(f)&&(d=b.serialize["application/json"]),d&&(u=d(u))}for(var p in this.header)null!=this.header[p]&&n.setRequestHeader(p,this.header[p]);return this._responseType&&(n.responseType=this._responseType),this.emit("request",this),n.send("undefined"!=typeof u?u:null),this},b.Request=p,b.get=function(e,t,n){var r=b("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},b.head=function(e,t,n){var r=b("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},b.del=h,b["delete"]=h,b.patch=function(e,t,n){var r=b("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},b.post=function(e,t,n){var r=b("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},b.put=function(e,t,n){var r=b("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}},function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,i){try{var a=t[o](i),u=a.value}catch(s){return void n(s)}return a.done?void e(u):Promise.resolve(u).then(function(e){r("next",e)},function(e){r("throw",e)})}return r("next")})}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=n(66),s=n(20),c=n(1352),l=function(){function e(e,t){for(var n=0;n1){for(var s=Array(a),c=0;c0&&void 0!==arguments[0]?arguments[0]:{};return o()(a()(e)||"").toString()}},function(e,t,n){"use strict";n.d(t,"c",function(){return r}),n.d(t,"e",function(){return o}),n.d(t,"d",function(){return i}),n.d(t,"a",function(){return a}),n.d(t,"b",function(){return u});var r={ERROR:"ERROR",SUCCESS:"SUCCESS",REPORT_SUCCESS:"REPORT_SUCCESS"},o="TOASTER__CLOSE",i=function(){return{type:o}},a=function(e){return{type:r.REPORT_SUCCESS,message:e}},u=function(e){return{type:r.ERROR,message:e}}},function(e,t,n){"use strict";var r=n(293),o=n(1597),i=n(150),a=n(26),u=n(17);n.d(t,"e",function(){return c}),n.d(t,"f",function(){return l}),n.d(t,"g",function(){return f}),n.d(t,"d",function(){return d}),n.d(t,"c",function(){return h}),n.d(t,"h",function(){return m}),n.d(t,"b",function(){return y}),n.d(t,"a",function(){return g}),n.d(t,"i",function(){return _});var s="Link copied to your clipboard and ready to share.",c="SHARING__SHOW_CTA",l="SHARING__HIDE_CTA",f="SHARING__SET_LINK",d="SHARING__DETECT_WEB_SHARE_CAPABILITY",p=function(e){return{type:c,post:e}},h=function(){return{type:l}},v=function(e){return{type:f,link:e}},m=function(){return{type:d,result:!!window.navigator.share}},y=function(){return function(e,t){var r=t(),u=r.sharing,c=u.link,l=u.post;n.i(a.i)({url:c,post:l},t());var f="function"==typeof window.navigator.share,d=void 0;return f?d=window.navigator.share({url:c}):(d=n.i(o.a)(c),e(n.i(i.a)(s))),e(h()),Promise.resolve(d)}},g=function(e){return function(t,r){return t(p(e.post)),n.i(a.j)(e,r()),b(e).then(function(e){t(v(e))})}},_={},b=function(e){var t=e.url,o=e.tags,i=n.i(r.a)(t,{utm_source:"share",utm_medium:"mweb"}),a=""+u.a.reddit+i;return new Promise(function(e,t){_.link({tags:o,channel:"growth",feature:"sharing",campaign:"mweb",data:{$canonical_url:a,$deeplink_path:i,$android_deeplink_path:"reddit"+i,$desktop_url:a,$android_url:a,$ios_url:a,$ipad_url:a,$fire_url:a,$blackberry_url:a,$windows_phone_url:a}},function(n,r){n?t(n):e(r)})})}},function(e,t){e.exports={}},function(e,t,n){var r=n(32).f,o=n(49),i=n(28)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){var r=n(1),o=n(79),i=n(18),a=n(320),u="["+a+"]",s="​…",c=RegExp("^"+u+u+"*"),l=RegExp(u+u+"*$"),f=function(e,t,n){var o={},u=i(function(){return!!a[e]()||s[e]()!=s}),c=o[e]=u?t(d):a[e];n&&(o[n]=c),r(r.P+r.F*u,"String",o)},d=f.trim=function(e,t){return e=String(o(e)),1&t&&(e=e.replace(c,"")),2&t&&(e=e.replace(l,"")),e};e.exports=f},function(e,t,n){var r=n(21);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n0&&(t+=4+16*n.getUint32(t)),t+=4,e.slice(t)}},{key:"getPSSHForKeySystem",value:function(t,n){var r=e.parsePSSHList(n);return r.hasOwnProperty(t.uuid.toLowerCase())?r[t.uuid.toLowerCase()]:null}},{key:"parseInitDataFromContentProtection",value:function(e,t){return"pssh"in e?t.decodeArray(e.pssh.__text).buffer:null}},{key:"parsePSSHList",value:function(e){if(null===e)return[];for(var t=new DataView(e.buffer||e),n=!1,r={},o=0;!n;){var i=void 0,a=void 0,u=void 0,s=void 0,c=void 0,l=o;if(o>=t.buffer.byteLength)break;if(i=t.getUint32(o),a=o+i,o+=4,1886614376===t.getUint32(o))if(o+=4,u=t.getUint8(o),0===u||1===u){o++,o+=3,s="";var f=void 0,d=void 0;for(f=0;f<4;f++)d=t.getUint8(o+f).toString(16),s+=1===d.length?"0"+d:d;for(o+=4,s+="-",f=0;f<2;f++)d=t.getUint8(o+f).toString(16),s+=1===d.length?"0"+d:d;for(o+=2,s+="-",f=0;f<2;f++)d=t.getUint8(o+f).toString(16),s+=1===d.length?"0"+d:d;for(o+=2,s+="-",f=0;f<2;f++)d=t.getUint8(o+f).toString(16),s+=1===d.length?"0"+d:d;for(o+=2,s+="-",f=0;f<6;f++)d=t.getUint8(o+f).toString(16),s+=1===d.length?"0"+d:d;o+=6,s=s.toLowerCase(),c=t.getUint32(o),o+=4,r[s]=t.buffer.slice(l,a),o=a}else o=a;else o=a}return r}}]),e}();t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){function e(){try{new window.URL("x","http://y");l=v}catch(e){}finally{l=l||m}}function t(e){var t=e.indexOf("/"),n=e.lastIndexOf("/");return t!==-1?n===t+1?e:(e.indexOf("?")!==-1&&(e=e.substring(0,e.indexOf("?"))),e.substring(0,n+1)):""}function n(e){var t=e.match(h);return t?t[1]:""}function r(e){var t=e.match(f);return t?t[0]:""}function o(e){return!f.test(e)}function i(e){return o(e)&&"/"===e.charAt(0)}function a(e){return 0===e.indexOf("//")}function u(e){return d.test(e)}function s(e){return p.test(e)}function c(e,t){return l(e,t)}var l=void 0,f=/^[a-z][a-z0-9+\-.]*:/i,d=/^https?:\/\//i,p=/^https:\/\//i,h=/^([a-z][a-z0-9+\-.]*:\/\/[^\/]+)\/?/i,v=function(e,t){try{return new window.URL(e,t).toString()}catch(n){return e}},m=function(e,u){var s=t;if(!u)return e;if(!o(e))return e;i(e)&&(s=n),a(e)&&(s=r);var c=s(u),l="/"!==c.charAt(c.length-1)&&"/"!==e.charAt(0)?"/":"";return[c,e].join(l)};e();var y={parseBaseUrl:t,parseOrigin:n,parseScheme:r,isRelative:o,isPathAbsolute:i,isSchemeRelative:a,isHTTPURL:u,isHTTPS:s,resolve:c};return y}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=r(i);o.__dashjs_factory_name="URLUtils",t["default"]=a["default"].getSingletonFactory(o),e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function o(){n(this,o),this.action=o.ACTION_DOWNLOAD,this.startTime=NaN,this.mediaType=null,this.mediaInfo=null,this.type=null,this.duration=NaN,this.timescale=NaN,this.range=null,this.url=null,this.serviceLocation=null,this.requestStartDate=null,this.firstByteDate=null,this.requestEndDate=null,this.quality=NaN,this.index=NaN,this.availabilityStartTime=null,this.availabilityEndTime=null,this.wallStartTime=null,this.bytesLoaded=NaN,this.bytesTotal=NaN,this.delayLoadingTime=NaN,this.responseType="arraybuffer",this.representationId=null};r.ACTION_DOWNLOAD="download",r.ACTION_COMPLETE="complete",t["default"]=r,e.exports=t["default"]},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){function r(e){return o(e)?i(e):{}}var o=n(39),i=Object.create;e.exports=r},function(e,t,n){var r=n(135),o=n(1104),i=o(r);e.exports=i},function(e,t,n){function r(e){return o(e)?e:i(e)}var o=n(27),i=n(563);e.exports=r},function(e,t,n){function r(e){return i(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,u=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,u&&o(n[0],n[1],u)&&(a=i<3?void 0:a,i=1),t=Object(t);++r-1&&e%1==0&&e1){for(var m=Array(v),y=0;y1){for(var _=Array(g),b=0;b1){for(var s=Array(a),c=0;cself.innerHeight&&(f-d-i>0?o=m.ABOVE:f>self.innerHeight/2&&(o=m.ABOVE))}else if(n===m.LEFT){var p=t.getBoundingClientRect(),h=p.left,v=p.width;h-v-a<0&&(h+v+aself.innerWidth&&(g-_-a>0?o=m.LEFT:g>self.innerWidth/2&&(o=m.LEFT))}var E=b(e,t,o,r),w=E.top,S=E.left,O=self.innerHeight-r,P=self.innerWidth-r,R=w>r?w:r;e.style.top=R,e.style.bottom=R+i>O?r:null,e.style.height=R+i>O?"auto":e.style.height;var I=S>r?S:r;e.style.left=I,e.style.right=I+a>P?r:null,e.style.width=I+a>P?"auto":e.style.width,Array.from(e.children).slice(0,2).map(function(e,n){return T(e,t,o,r,!!n)})}();if("object"===("undefined"==typeof o?"undefined":c(o)))return o.v}},T=function(e,t,n,r,o){if(e){e.style.position="fixed",e.style.width=0,e.style.height=0,e.style.zIndex=1001;var i=b(e,t,n,r),a=i.top,u=i.left,s=i.marginTop,c=i.marginLeft,l=o?7:8,f=l+"px solid transparent",d=l+"px solid "+(o?"white":"");n===m.ABOVE||n===m.BELOW?(e.style.left=u-l,e.style.marginTop=s,e.style.borderLeft=f,e.style.borderRight=f,n===m.BELOW?(e.style.top=a-l+1,e.style.borderBottom=d,o||(e.style.borderBottomColor="inherit")):(e.style.top=a-1,e.style.borderTop=d,o||(e.style.borderTopColor="inherit"))):(e.style.top=a-l,e.style.marginLeft=c,e.style.borderTop=f,e.style.borderBottom=f,n===m.RIGHT?(e.style.left=u-l+1,e.style.borderRight=d,o||(e.style.borderRightColor="inherit")):(e.style.left=u-1,e.style.borderLeft=d,o||(e.style.borderLeftColor="inherit")))}},w=t.TOGGLE_TOOLTIP="r/widgets__TOGGLE_TOOLTIP",S=t.toggleTooltip=function(e,t){return{type:w,payload:{tooltipId:e,target:t}}},O=t._Tooltip=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return u(t,e),s(t,[{key:"render",value:function(){var e=this.props,t=e.target,n=e.show,r=e.alignment,o=e.offset,i=e.children,a=e.className,u=(e.onToggleTooltip,r);return n?f["default"].createElement("div",{className:a,style:_,ref:function(e){u=E(e,t,r,o)},onClick:function(e){return e.stopPropagation()}},f["default"].createElement("div",{className:a+"__arrowBorder"}),f["default"].createElement("div",{className:a+"__arrow"}),f["default"].createElement("div",{style:{width:"100%",height:"100%",overflowY:"auto",overflowX:"auto"}},i)):null}}]),t}(f["default"].Component);O.propTypes={id:v.string.isRequired,alignment:v.oneOf((0,h.values)(m)).isRequired,show:v.bool,target:v.object,offset:v.number,className:v.string},O.defaultProps={show:!1,offset:g,className:""};var P=t._TooltipTarget=function(e){function t(){var e,n,r,a;o(this,t);for(var u=arguments.length,s=Array(u),c=0;c=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|e}function m(t){return+t!=t&&(t=0),e.alloc(+t)}function y(t,n){if(e.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var o=!1;;)switch(n){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return W(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return z(t).length;default:if(o)return W(t).length;n=(""+n).toLowerCase(),o=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,n);case"utf8":case"utf-8":return A(this,t,n);case"ascii":return x(this,t,n);case"latin1":case"binary":return N(this,t,n);case"base64":return I(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function _(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function b(t,n,r,o,i){if(0===t.length)return-1;if("string"==typeof r?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof n&&(n=e.from(n,o)),e.isBuffer(n))return 0===n.length?-1:E(t,n,r,o,i);if("number"==typeof n)return n=255&n,e.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,n,r):Uint8Array.prototype.lastIndexOf.call(t,n,r):E(t,[n],r,o,i);throw new TypeError("val must be string, number or Buffer")}function E(e,t,n,r,o){function i(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}var a=1,u=e.length,s=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,u/=2,s/=2,n/=2}var c;if(o){var l=-1;for(c=n;cu&&(n=u-s),c=n;c>=0;c--){for(var f=!0,d=0;do&&(r=o)):r=o;var i=t.length;if(i%2!==0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a239?4:i>223?3:i>191?2:1;if(o+u<=n){var s,c,l,f;switch(u){case 1:i<128&&(a=i);break;case 2:s=e[o+1],128===(192&s)&&(f=(31&i)<<6|63&s,f>127&&(a=f));break;case 3:s=e[o+1],c=e[o+2],128===(192&s)&&128===(192&c)&&(f=(15&i)<<12|(63&s)<<6|63&c,f>2047&&(f<55296||f>57343)&&(a=f));break;case 4:s=e[o+1],c=e[o+2],l=e[o+3],128===(192&s)&&128===(192&c)&&128===(192&l)&&(f=(15&i)<<18|(63&s)<<12|(63&c)<<6|63&l,f>65535&&f<1114112&&(a=f))}}null===a?(a=65533,u=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),o+=u}return C(r)}function C(e){var t=e.length;if(t<=ee)return String.fromCharCode.apply(String,e);for(var n="",r=0;rr)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function L(t,n,r,o,i,a){if(!e.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>i||nt.length)throw new RangeError("Index out of range")}function j(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function F(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function U(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function B(e,t,n,r,o){return o||U(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),J.write(e,t,n,r,23,4),n+4}function H(e,t,n,r,o){return o||U(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),J.write(e,t,n,r,52,8),n+8}function q(e){if(e=V(e).replace(te,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function V(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function G(e){return e<16?"0"+e.toString(16):e.toString(16)}function W(e,t){t=t||1/0;for(var n,r=e.length,o=null,i=[],a=0;a55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=(o-55296<<10|n-56320)+65536}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function K(e){for(var t=[],n=0;n>8,o=n%256,i.push(o),i.push(r);return i}function z(e){return Q.toByteArray(q(e))}function X(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function $(e){return e!==e}var Q=n(702),J=n(1055),Z=n(517);t.Buffer=e,t.SlowBuffer=m,t.INSPECT_MAX_BYTES=50,e.TYPED_ARRAY_SUPPORT=void 0!==r.TYPED_ARRAY_SUPPORT?r.TYPED_ARRAY_SUPPORT:o(),t.kMaxLength=i(),e.poolSize=8192,e._augment=function(t){return t.__proto__=e.prototype,t},e.from=function(e,t,n){return u(null,e,t,n)},e.TYPED_ARRAY_SUPPORT&&(e.prototype.__proto__=Uint8Array.prototype,e.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&e[Symbol.species]===e&&Object.defineProperty(e,Symbol.species,{value:null,configurable:!0})),e.alloc=function(e,t,n){return c(null,e,t,n)},e.allocUnsafe=function(e){return l(null,e)},e.allocUnsafeSlow=function(e){return l(null,e)},e.isBuffer=function(e){return!(null==e||!e._isBuffer)},e.compare=function(t,n){if(!e.isBuffer(t)||!e.isBuffer(n))throw new TypeError("Arguments must be Buffers");if(t===n)return 0;for(var r=t.length,o=n.length,i=0,a=Math.min(r,o);i0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},e.prototype.compare=function(t,n,r,o,i){if(!e.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===n&&(n=0),void 0===r&&(r=t?t.length:0),void 0===o&&(o=0),void 0===i&&(i=this.length),n<0||r>t.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&n>=r)return 0;if(o>=i)return-1;if(n>=r)return 1;if(n>>>=0,r>>>=0,o>>>=0,i>>>=0,this===t)return 0;for(var a=i-o,u=r-n,s=Math.min(a,u),c=this.slice(o,i),l=t.slice(n,r),f=0;fo)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return T(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return S(this,e,t,n);case"latin1":case"binary":return O(this,e,t,n);case"base64":return P(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ee=4096;e.prototype.slice=function(t,n){var r=this.length;t=~~t,n=void 0===n?r:~~n,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r),n0&&(o*=256);)r+=this[e+--t]*o;return r},e.prototype.readUInt8=function(e,t){return t||D(e,1,this.length),this[e]},e.prototype.readUInt16LE=function(e,t){return t||D(e,2,this.length),this[e]|this[e+1]<<8},e.prototype.readUInt16BE=function(e,t){return t||D(e,2,this.length),this[e]<<8|this[e+1]},e.prototype.readUInt32LE=function(e,t){return t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},e.prototype.readUInt32BE=function(e,t){return t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},e.prototype.readIntLE=function(e,t,n){e=0|e,t=0|t,n||D(e,t,this.length);for(var r=this[e],o=1,i=0;++i=o&&(r-=Math.pow(2,8*t)),r},e.prototype.readIntBE=function(e,t,n){e=0|e,t=0|t,n||D(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},e.prototype.readInt8=function(e,t){return t||D(e,1,this.length),128&this[e]?(255-this[e]+1)*-1:this[e]},e.prototype.readInt16LE=function(e,t){t||D(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},e.prototype.readInt16BE=function(e,t){t||D(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},e.prototype.readInt32LE=function(e,t){return t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},e.prototype.readInt32BE=function(e,t){return t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},e.prototype.readFloatLE=function(e,t){return t||D(e,4,this.length),J.read(this,e,!0,23,4)},e.prototype.readFloatBE=function(e,t){return t||D(e,4,this.length),J.read(this,e,!1,23,4)},e.prototype.readDoubleLE=function(e,t){return t||D(e,8,this.length),J.read(this,e,!0,52,8)},e.prototype.readDoubleBE=function(e,t){return t||D(e,8,this.length),J.read(this,e,!1,52,8)},e.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t=0|t,n=0|n,!r){var o=Math.pow(2,8*n)-1;L(this,e,t,n,o,0)}var i=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+i]=e/a&255;return t+n},e.prototype.writeUInt8=function(t,n,r){return t=+t,n=0|n,r||L(this,t,n,1,255,0),e.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[n]=255&t,n+1},e.prototype.writeUInt16LE=function(t,n,r){return t=+t,n=0|n,r||L(this,t,n,2,65535,0),e.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8):j(this,t,n,!0),n+2},e.prototype.writeUInt16BE=function(t,n,r){return t=+t,n=0|n,r||L(this,t,n,2,65535,0),e.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=255&t):j(this,t,n,!1),n+2},e.prototype.writeUInt32LE=function(t,n,r){return t=+t,n=0|n,r||L(this,t,n,4,4294967295,0),e.TYPED_ARRAY_SUPPORT?(this[n+3]=t>>>24,this[n+2]=t>>>16,this[n+1]=t>>>8,this[n]=255&t):F(this,t,n,!0),n+4},e.prototype.writeUInt32BE=function(t,n,r){return t=+t,n=0|n,r||L(this,t,n,4,4294967295,0),e.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=255&t):F(this,t,n,!1),n+4},e.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t=0|t,!r){var o=Math.pow(2,8*n-1);L(this,e,t,n,o-1,-o)}var i=0,a=1,u=0;for(this[t]=255&e;++i>0)-u&255;return t+n},e.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t=0|t,!r){var o=Math.pow(2,8*n-1);L(this,e,t,n,o-1,-o)}var i=n-1,a=1,u=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===u&&0!==this[t+i+1]&&(u=1),this[t+i]=(e/a>>0)-u&255;return t+n},e.prototype.writeInt8=function(t,n,r){return t=+t,n=0|n,r||L(this,t,n,1,127,-128),e.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[n]=255&t,n+1},e.prototype.writeInt16LE=function(t,n,r){return t=+t,n=0|n,r||L(this,t,n,2,32767,-32768),e.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8):j(this,t,n,!0),n+2},e.prototype.writeInt16BE=function(t,n,r){return t=+t,n=0|n,r||L(this,t,n,2,32767,-32768),e.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=255&t):j(this,t,n,!1),n+2},e.prototype.writeInt32LE=function(t,n,r){return t=+t,n=0|n,r||L(this,t,n,4,2147483647,-2147483648),e.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8,this[n+2]=t>>>16,this[n+3]=t>>>24):F(this,t,n,!0),n+4},e.prototype.writeInt32BE=function(t,n,r){return t=+t,n=0|n,r||L(this,t,n,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),e.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=255&t):F(this,t,n,!1),n+4},e.prototype.writeFloatLE=function(e,t,n){return B(this,e,t,!0,n)},e.prototype.writeFloatBE=function(e,t,n){return B(this,e,t,!1,n)},e.prototype.writeDoubleLE=function(e,t,n){return H(this,e,t,!0,n)},e.prototype.writeDoubleBE=function(e,t,n){return H(this,e,t,!1,n)},e.prototype.copy=function(t,n,r,o){if(r||(r=0),o||0===o||(o=this.length),n>=t.length&&(n=t.length),n||(n=0),o>0&&o=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),t.length-n=0;--i)t[i+n]=this[i+r];else if(a<1e3||!e.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,t||(t=0);var a;if("number"==typeof t)for(a=n;a0?(t--,v.push(setTimeout(function(){n(e,t)},c.getRetryIntervalForType(r.type)))):(u.downloadError(m[r.type],r.url,r),e.error&&e.error(r,"error",o.statusText),e.complete&&e.complete(r,o.statusText))))},T=function(t){var n=new Date;l&&(l=!1,(!t.lengthComputable||t.lengthComputable&&t.total!==t.loaded)&&(r.firstByteDate=n)),t.lengthComputable&&(r.bytesLoaded=t.loaded,r.bytesTotal=t.total),i.push({s:g,d:n.getTime()-g.getTime(),b:[t.loaded?t.loaded-_:0]}),g=n,_=t.loaded,e.progress&&e.progress()},w=function(){o.status>=200&&o.status<=299&&(b(!0),e.success&&e.success(o.response,o.statusText,o),e.complete&&e.complete(r,o.statusText))},S=function(){e.abort&&e.abort(r,o.status)};if(!f||!s||!u)throw new Error("config object is not correct or missing");try{var O=f.modifyRequestURL(r.url),P=r.checkExistenceOnly?a.HTTPRequest.HEAD:a.HTTPRequest.GET;o.open(P,O,!0),r.responseType&&(o.responseType=r.responseType),r.range&&o.setRequestHeader("Range","bytes="+r.range),r.requestStartDate||(r.requestStartDate=y),o=f.modifyRequestHeader(o),o.withCredentials=c.getXHRWithCredentialsForType(r.type),o.onload=w,o.onloadend=E,o.onerror=E,o.onprogress=T,o.onabort=S;var R=(new Date).getTime();isNaN(r.delayLoadingTime)||R>=r.delayLoadingTime?(p.push(o),o.send()):!function(){var e={xhr:o};h.push(e),e.delayTimeout=setTimeout(function(){if(h.indexOf(e)!==-1){h.splice(h.indexOf(e),1);try{y=new Date,g=y,p.push(e.xhr),e.xhr.send()}catch(t){e.xhr.onerror()}}},r.delayLoadingTime-R)}()}catch(I){o.onerror()}}function r(e){e.request&&n(e,c.getRetryAttemptsForType(e.request.type))}function i(){v.forEach(function(e){return clearTimeout(e)}),v=[],h.forEach(function(e){return clearTimeout(e.delayTimeout)}),h=[],p.forEach(function(e){e.onloadend=e.onerror=e.onprogress=void 0,e.abort()}),p=[]}e=e||{};var u=e.errHandler,s=e.metricsModel,c=e.mediaPlayerModel,f=e.requestModifier,d=void 0,p=void 0,h=void 0,v=void 0,m=void 0;return d={ +load:r,abort:i},t(),d}Object.defineProperty(t,"__esModule",{value:!0});var a=n(45),u=n(2),s=r(u),c=n(507),l=r(c);i.__dashjs_factory_name="XHRLoader";var f=s["default"].getClassFactory(i);t["default"]=f,e.exports=t["default"]},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t){function n(e,t){for(var n=-1,r=e.length;++n0&&n(l)?t>1?r(l,t-1,n,a,u):o(u,l):a||(u[u.length]=l)}return u}var o=n(247),i=n(1125);e.exports=r},function(e,t){function n(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++nl;)if(u=s[l++],u!=u)return!0}else for(;c>l;l++)if((e||l in s)&&s[l]===n)return e||l||0;return!e&&-1}}},function(e,t,n){"use strict";var r=n(15),o=n(1),i=n(51),a=n(129),u=n(106),s=n(123),c=n(122),l=n(21),f=n(18),d=n(228),p=n(153),h=n(307);e.exports=function(e,t,n,v,m,y){var g=r[e],_=g,b=m?"set":"add",E=_&&_.prototype,T={},w=function(e){var t=E[e];i(E,e,"delete"==e?function(e){return!(y&&!l(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(y&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return y&&!l(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof _&&(y||E.forEach&&!f(function(){(new _).entries().next()}))){var S=new _,O=S[b](y?{}:-0,1)!=S,P=f(function(){S.has(1)}),R=d(function(e){new _(e)}),I=!y&&f(function(){for(var e=new _,t=5;t--;)e[b](t,t);return!e.has(-0)});R||(_=t(function(t,n){c(t,_,e);var r=h(new g,t,_);return void 0!=n&&s(n,m,r[b],r),r}),_.prototype=E,E.constructor=_),(P||I)&&(w("delete"),w("has"),m&&w("get")),(I||O)&&w(b),y&&E.clear&&delete E.clear}else _=v.getConstructor(t,e,m,b),a(_.prototype,n),u.NEED=!0;return p(_,e),T[e]=_,o(o.G+o.W+o.F*(_!=g),T),y||v.setStrong(_,e,m),_}},function(e,t,n){"use strict";var r=n(50),o=n(51),i=n(18),a=n(79),u=n(28);e.exports=function(e,t,n){var s=u(e),c=n(a,s,""[e]),l=c[0],f=c[1];i(function(){var t={};return t[s]=function(){return 7},7!=""[e](t)})&&(o(String.prototype,e,l),r(RegExp.prototype,s,2==t?function(e,t){return f.call(e,this,t)}:function(e){return f.call(e,this)}))}},function(e,t,n){"use strict";var r=n(13);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){var r=n(67);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(21),o=n(67),i=n(28)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},function(e,t,n){var r=n(28)("iterator"),o=!1;try{var i=[7][r]();i["return"]=function(){o=!0},Array.from(i,function(){throw 2})}catch(a){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},e(i)}catch(u){}return n}},function(e,t,n){"use strict";e.exports=n(124)||!n(18)(function(){var e=Math.random();__defineSetter__.call(null,e,function(){}),delete n(15)[e]})},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){"use strict";var r=n(1),o=n(44),i=n(68),a=n(123);e.exports=function(e){r(r.S,e,{from:function(e){var t,n,r,u,s=arguments[1];return o(this),t=void 0!==s,t&&o(s),void 0==e?new this:(n=[],t?(r=0,u=i(s,arguments[2],2),a(e,!1,function(e){n.push(u(e,r++))})):a(e,!1,n.push,n),new this(n))}})}},function(e,t,n){"use strict";var r=n(1);e.exports=function(e){r(r.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},function(e,t,n){var r=n(15),o="__core-js_shared__",i=r[o]||(r[o]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t,n){var r=n(13),o=n(44),i=n(28)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||void 0==(n=r(a)[i])?t:o(n)}},function(e,t,n){for(var r,o=n(15),i=n(50),a=n(132),u=a("typed_array"),s=a("view"),c=!(!o.ArrayBuffer||!o.DataView),l=c,f=0,d=9,p="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");fi&&u0?(v=c(o,n),h=v?e.calcPeriodRelativeTimeFromMpdRelativeTime(n,v.presentationStartTime):o>0?o*a:e.calcPeriodRelativeTimeFromMpdRelativeTime(n,r)):h=o>0?o*a:t?l.end:l.start,m=Math.floor(Math.max(h-d,l.start)/a),y=Math.floor(Math.min(m+p/a,l.end/a)),g={start:m,end:y})}Object.defineProperty(t,"__esModule",{value:!0}),t.replaceTokenForTemplate=a,t.getIndexBasedSegment=u,t.getTimeBasedSegment=s,t.getSegmentByIndex=c,t.decideSegmentListRangeForTemplate=l;var f=n(329),d=r(f)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){function e(){be=ye.log.bind(_e),o()}function t(e,t){Ve[e]=(0,P["default"])(me).create(),Ie[e]=t,Ae[e]=Ae[e]||{},Ae[e].state=D,Ke[e]=!1,ge.on(g["default"].LOADING_PROGRESS,ve,this),e==s["default"].VIDEO&&(ge.on(g["default"].QUALITY_CHANGE_RENDERED,c,this),Ge=(0,I["default"])(me).create(),pe()),ge.on(g["default"].METRIC_ADDED,f,this),We=(0,C["default"])(me).create({mediaPlayerModel:Be})}function n(e){delete Ie[e]}function r(){Ee=(0,a["default"])(me).create({metricsModel:Ye,dashMetrics:ze,mediaPlayerModel:Be,adapter:Fe}),Ee.initialize()}function o(){we={video:!0,audio:!0},Se={},Oe={},Pe={},Re={},Ae={},Ie={},Ve={},Ke={},xe=!1,Xe=!0,Ne=!1,void 0===Me&&(Me=!1),qe=void 0,Ge=void 0,We=void 0,clearTimeout(Ce),Ce=null}function i(){o(),ge.off(g["default"].LOADING_PROGRESS,ve,this),ge.off(g["default"].QUALITY_CHANGE_RENDERED,c,this),ge.off(g["default"].METRIC_ADDED,f,this),Ee&&Ee.reset()}function u(e){e&&(e.streamController&&(Te=e.streamController),e.domStorage&&(He=e.domStorage),e.mediaPlayerModel&&(Be=e.mediaPlayerModel),e.metricsModel&&(Ye=e.metricsModel),e.dashMetrics&&(ze=e.dashMetrics),e.dashManifestModel&&(je=e.dashManifestModel),e.adapter&&(Fe=e.adapter),e.manifestModel&&(Le=e.manifestModel),e.videoModel&&(Ue=e.videoModel))}function c(e){e.mediaType===s["default"].VIDEO&&(qe=e.oldQuality,Ge.push(qe,Ue.getPlaybackQuality()))}function f(e){e.metric!==l["default"].HTTP_REQUEST||!e.value||e.value.type!==x.HTTPRequest.MEDIA_SEGMENT_TYPE||e.mediaType!==s["default"].AUDIO&&e.mediaType!==s["default"].VIDEO||We.push(e.mediaType,e.value,Xe),e.metric!==l["default"].BUFFER_LEVEL||e.mediaType!==s["default"].AUDIO&&e.mediaType!==s["default"].VIDEO||ne(e.mediaType,.001*e.value.level)}function p(e,t){var n=void 0;return Se[t]=Se[t]||{},Se[t].hasOwnProperty(e)||(Se[t][e]=0),n=le(Se[t][e],e),n=fe(n,e,Se[t][e]),n=he(n,e)}function v(e){var t=He.getSavedBitrateSettings(e);if(!Pe.hasOwnProperty(e))if(Re.hasOwnProperty(e)){var n=Le.getValue(),r=je.getAdaptationForType(n,0,e).Representation;if(Array.isArray(r)){var o=Math.max(Math.round(r.length*Re[e])-1,0);Pe[e]=r[o].bandwidth}else Pe[e]=0}else isNaN(t)?Pe[e]=e===s["default"].VIDEO?L:j:Pe[e]=t;return Pe[e]}function y(e,t){Pe[e]=t}function _(e){return Re.hasOwnProperty(e)?Re[e]:null}function b(e,t){Re[e]=t}function E(e){return Pe.hasOwnProperty("max")&&Pe.max.hasOwnProperty(e)?Pe.max[e]:NaN}function w(e){return Pe.hasOwnProperty("min")&&Pe.min.hasOwnProperty(e)?Pe.min[e]:NaN}function O(e,t){Pe.max=Pe.max||{},Pe.max[e]=t}function R(e,t){Pe.min=Pe.min||{},Pe.min[e]=t}function A(e){var t=E(e);return t?ee(Ie[e].getMediaInfo(),t):void 0}function N(e){var t=w(e);if(t){var n=te(Ie[e].getMediaInfo()),r=ee(Ie[e].getMediaInfo(),t);return n[r]&&ra&&(s=a),Ve[e].push({oldValue:r,newValue:s}),s>S["default"].NO_CHANGE&&s!=r)(Ae[e].state===D||s>r)&&Q(e,r,s,a,u.reason);else if(ye.getLogToBrowserConsole()){var c=ze.getCurrentBufferLevel(Ye.getReadOnlyMetricsFor(e));be("AbrController ("+e+") stay on "+r+"/"+a+" (buffer: "+c+")")}}}}function $(e,t,n,r){var o=t.id,i=ue(e),a=null!==n&&!isNaN(n)&&n%1===0;if(!a)throw new Error("argument is not an integer");var u=p(e,o);n!==i&&n>=0&&n<=u&&Q(e,i,n,u,r)}function Q(e,t,n,r,o){if(e&&Ie[e]){var i=Ie[e].getStreamInfo(),a=i?i.id:null;if(ye.getLogToBrowserConsole()){var u=ze.getCurrentBufferLevel(Ye.getReadOnlyMetricsFor(e));be("AbrController ("+e+") switch from "+t+" to "+n+"/"+r+" (buffer: "+u+") "+(o?JSON.stringify(o):"."))}se(e,a,n),ge.trigger(g["default"].QUALITY_CHANGE_REQUESTED,{mediaType:e,streamInfo:i,oldQuality:t,newQuality:n,reason:o})}}function J(e,t){Ae[e].state=t}function Z(e){return Ae[e]?Ae[e].state:null}function ee(e,t,n){if(Xe&&n&&Ie[e.type].getCurrentRepresentationInfo()&&Ie[e.type].getCurrentRepresentationInfo().fragmentDuration){n/=1e3;var r=Ie[e.type].getCurrentRepresentationInfo().fragmentDuration;if(n>r)return 0;var o=n/r;t*=1-o}var i=te(e);if(!i||0===i.length)return F;for(var a=i.length-1;a>=0;a--){var u=i[a];if(1e3*t>=u.bitrate)return a}return 0}function te(e){if(!e||!e.bitrateList)return null;for(var t=e.bitrateList,n=e.type,r=[],o=void 0,i=0,a=t.length;i(a?i:o);Ke[e]=u,u!==a&&be(u?"AbrController ("+e+") switching from throughput to buffer occupancy ABR rule (buffer: "+t.toFixed(3)+").":"AbrController ("+e+") switching from buffer occupancy to throughput ABR rule (buffer: "+t.toFixed(3)+").")}function re(e){return Ke[e]}function oe(){return We}function ie(e){var t=e.type,n=e.streamInfo.id,r=e.representationCount-1;return ce(t,n,r),r}function ae(e){var t=e.id,n=ue(s["default"].AUDIO),r=ue(s["default"].VIDEO),o=n===p(s["default"].AUDIO,t)&&r===p(s["default"].VIDEO,t);return o}function ue(e){if(e&&Ie[e]){var t=Ie[e].getStreamInfo(),n=t?t.id:null,r=void 0;if(n)return Oe[n]=Oe[n]||{},Oe[n].hasOwnProperty(e)||(Oe[n][e]=F),r=Oe[n][e]}return F}function se(e,t,n){Oe[t]=Oe[t]||{},Oe[t][e]=n}function ce(e,t,n){Se[t]=Se[t]||{},Se[t][e]=n}function le(e,t){var n=e;if(!Ie[t])return n;var r=N(t);void 0!==r&&(n=Math.max(e,r));var o=A(t);return void 0!==o&&(n=Math.min(n,o)),n}function fe(e,t,n){var r=U(t);return isNaN(r)||r>=1||r<0?e:Math.min(e,Math.round(n*r))}function de(e){Me=e}function pe(){var e=Ne&&window.hasOwnProperty("devicePixelRatio"),t=e?window.devicePixelRatio:1;ke=Ue.getClientWidth()*t,De=Ue.getClientHeight()*t}function he(e,t){if(t!==s["default"].VIDEO||!xe||!Ie[t])return e;Me||pe();var n=Le.getValue(),r=je.getAdaptationForType(n,0,t).Representation,o=e; +if(ke>0&&De>0){for(;o>0&&r[o]&&ke=o&&r[o].width===r[o+1].width&&(o=Math.min(e,o+1))}return o}function ve(e){var t=e.request.mediaType;if(H(t)){var n=Ie[t];if(!n)return;var r=(0,T["default"])(me).create({abrController:_e,streamProcessor:n,currentRequest:e.request,useBufferOccupancyABR:re(t)}),o=Ee.shouldAbandonFragment(r);if(o.quality>S["default"].NO_CHANGE){var i=n.getFragmentModel(),a=i.getRequests({state:h["default"].FRAGMENT_MODEL_LOADING,index:e.request.index})[0];a&&(i.abortRequests(),J(t,k),Ve[t].reset(),Ve[t].push({oldValue:ue(t,Te.getActiveStreamInfo()),newValue:o.quality,confidence:1,reason:o.reason}),$(t,Te.getActiveStreamInfo(),o.quality,o.reason),clearTimeout(Ce),Ce=setTimeout(function(){J(t,D),Ce=null},Be.getAbandonLoadTimeout()))}}}var me=this.context,ye=(0,M["default"])(me).getInstance(),ge=(0,m["default"])(me).getInstance(),_e=void 0,be=void 0,Ee=void 0,Te=void 0,we=void 0,Se=void 0,Oe=void 0,Pe=void 0,Re=void 0,Ie=void 0,Ae=void 0,Ce=void 0,xe=void 0,Ne=void 0,Me=void 0,ke=void 0,De=void 0,Le=void 0,je=void 0,Fe=void 0,Ue=void 0,Be=void 0,He=void 0,qe=void 0,Ve=void 0,Ge=void 0,We=void 0,Ke=void 0,Ye=void 0,ze=void 0,Xe=void 0;return _e={isPlayingAtTopQuality:ae,updateTopQualityIndex:ie,getThroughputHistory:oe,getBitrateList:te,getQualityForBitrate:ee,getMaxAllowedBitrateFor:E,getMinAllowedBitrateFor:w,setMaxAllowedBitrateFor:O,setMinAllowedBitrateFor:R,getMaxAllowedIndexFor:A,getMinAllowedIndexFor:N,getMaxAllowedRepresentationRatioFor:U,setMaxAllowedRepresentationRatioFor:B,getInitialBitrateFor:v,setInitialBitrateFor:y,getInitialRepresentationRatioFor:_,setInitialRepresentationRatioFor:b,setAutoSwitchBitrateFor:q,getAutoSwitchBitrateFor:H,getUseDeadTimeLatency:Y,setUseDeadTimeLatency:z,setLimitBitrateByPortal:G,getLimitBitrateByPortal:V,getUsePixelRatioInLimitBitrateByPortal:W,setUsePixelRatioInLimitBitrateByPortal:K,getQualityFor:ue,getAbandonmentStateFor:Z,setPlaybackQuality:$,checkPlaybackQuality:X,getTopQualityIndexFor:p,setElementSize:pe,setWindowResizeEventCalled:de,createAbrRulesCollection:r,registerStreamType:t,unRegisterStreamType:n,setConfig:u,reset:i},e(),_e}Object.defineProperty(t,"__esModule",{value:!0});var i=n(994),a=r(i),u=n(24),s=r(u),c=n(156),l=r(c),f=n(1018),d=r(f),p=n(241),h=r(p),v=n(12),m=r(v),y=n(14),g=r(y),_=n(2),b=r(_),E=n(991),T=r(E),w=n(94),S=r(w),O=n(992),P=r(O),R=n(990),I=r(R),A=n(993),C=r(A),x=n(45),N=n(19),M=r(N),k="abandonload",D="allowload",L=1e3,j=100,F=0;o.__dashjs_factory_name="AbrController";var U=b["default"].getSingletonFactory(o);U.ABANDON_LOAD=k,U.QUALITY_DEFAULT=F,b["default"].updateSingletonFactory(o.__dashjs_factory_name,U),t["default"]=U,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":a(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u=function(e,t,n){for(var r=!0;r;){var o=e,i=t,a=n;r=!1,null===o&&(o=Function.prototype);var u=Object.getOwnPropertyDescriptor(o,i);if(void 0!==u){if("value"in u)return u.value;var s=u.get;if(void 0===s)return;return s.call(a)}var c=Object.getPrototypeOf(o);if(null===c)return;e=c,t=i,n=a,r=!0,u=c=void 0}},s=n(236),c=r(s),l=function(e){function t(){o(this,t),u(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.METRICS_INITIALISATION_COMPLETE="internal_metricsReportingInitialized",this.BECAME_REPORTING_PLAYER="internal_becameReportingPlayer"}return i(t,e),t}(c["default"]),f=new l;t["default"]=f,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){function t(){S(),I.on(s["default"].LOADING_COMPLETED,T,x),I.on(s["default"].LOADING_ABANDONED,w,x)}function n(e){N=e}function r(){return N}function o(e){var t=function(e,t){return e.url===t.url},n=function(e,t){return e.action===d["default"].ACTION_COMPLETE&&e.action===t.action},r=function(e,t){return!isNaN(e.index)&&e.startTime===t.startTime&&e.adaptationIndex===t.adaptationIndex},o=function(e,t){return isNaN(e.index)&&isNaN(t.index)&&e.quality===t.quality},i=function(i){var a=!1;return i.some(function(i){if(t(e,i)&&(r(e,i)||o(e,i)||n(e,i)))return a=!0}),a};return!!e&&i(M)}function i(e){var t=!1,n=0,r=void 0;if(t=o(e),!t)for(n=0;n=e})}function l(){C.abort(),k=[]}function f(e){switch(e.action){case d["default"].ACTION_COMPLETE:M.push(e),E(e,m),I.trigger(s["default"].STREAM_COMPLETED,{request:e,fragmentModel:this});break;case d["default"].ACTION_DOWNLOAD:E(e,v),k.push(e),p(e);break;default:R("Unknown request action.")}}function p(e){I.trigger(s["default"].FRAGMENT_LOADING_STARTED,{sender:x,request:e}),C.load(e)}function y(e,t,n){for(var r=e.length-1,o=r;o>=0;o--){var i=e[o],a=i.startTime,u=a+i.duration;if(n=void 0!==n?n:i.duration/2,!isNaN(a)&&!isNaN(u)&&t+n>=a&&t-n-1:!!l&&o(e,t,n)>-1}var o=n(534),i=n(97),a=n(169),u=n(99),s=n(264),c=Math.max;e.exports=r},function(e,t){function n(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}var r=9007199254740991;e.exports=n},function(e,t,n){function r(e){return i(e)&&o(e.length)&&!!C[N.call(e)]}var o=n(260),i=n(113),a="[object Arguments]",u="[object Array]",s="[object Boolean]",c="[object Date]",l="[object Error]",f="[object Function]",d="[object Map]",p="[object Number]",h="[object Object]",v="[object RegExp]",m="[object Set]",y="[object String]",g="[object WeakMap]",_="[object ArrayBuffer]",b="[object DataView]",E="[object Float32Array]",T="[object Float64Array]",w="[object Int8Array]",S="[object Int16Array]",O="[object Int32Array]",P="[object Uint8Array]",R="[object Uint8ClampedArray]",I="[object Uint16Array]",A="[object Uint32Array]",C={};C[E]=C[T]=C[w]=C[S]=C[O]=C[P]=C[R]=C[I]=C[A]=!0,C[a]=C[u]=C[_]=C[s]=C[b]=C[c]=C[l]=C[f]=C[d]=C[p]=C[h]=C[v]=C[m]=C[y]=C[g]=!1;var x=Object.prototype,N=x.toString;e.exports=r},function(e,t){function n(e){var t=e?e.length:0;return t?e[t-1]:void 0}e.exports=n},function(e,t,n){var r=n(110),o=n(200),i=n(536),a=n(40),u=n(70),s=a(function(e,t){return null==e?{}:i(e,r(o(t,1),u))});e.exports=s},function(e,t,n){function r(e){return e?o(e,i(e)):[]}var o=n(542),i=n(54);e.exports=r},function(e,t,n){"use strict";(function(t){function n(e,n,r,o){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,a,u=arguments.length;switch(u){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,n)});case 3:return t.nextTick(function(){e.call(null,n,r)});case 4:return t.nextTick(function(){e.call(null,n,r,o)});default:for(i=new Array(u-1),a=0;a]/;e.exports=r},function(e,t,n){"use strict";var r,o=n(47),i=n(378),a=/^[ \r\n\t\f]/,u=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,s=n(386),c=s(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{r=r||document.createElement("div"),r.innerHTML=""+t+"";for(var n=r.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(o.canUseDOM){var l=document.createElement("div");l.innerHTML=" ",""===l.innerHTML&&(c=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&u.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),l=null}e.exports=c},function(e,t,n){"use strict";function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"b",function(){return u});var a=function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;i(this,s),this.type=e,this.uuid=t,this.paginationId=n};t.a=a;var u=function(e){function t(e,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n,a=arguments[3];i(this,t);var u=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n,o));return u.depth=a,u}return o(t,e),t}(a)},function(e,t,n){"use strict";var r=n(112),o=n.n(r),i=n(41),a=n(623),u=n(102),s=n(38),c=n(1357),l=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:3;return function(){var c=r(regeneratorRuntime.mark(function p(r,c){var v,y,_,b;return regeneratorRuntime.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(v=c(),y=l.a.withContext({state:v}),!i()([d],function(e){return y.enabled(e)})){f.next=19;break}return r(h(e.name)),_=n.i(s.a)(v),f.prev=5,f.next=8,a.a.get(_,{link:e.name,variant:"cosine_on_votes",experiment_id:t,max_recs:o});case 8:b=f.sent,r(m(e.name,b)),f.next=19;break;case 12:if(f.prev=12,f.t0=f["catch"](5),!(f.t0 instanceof u.a)){f.next=18;break}r(g(e.name,f.t0)),f.next=19;break;case 18:throw f.t0;case 19:case"end":return f.stop()}},p,f,[[5,12]])}));return function(e,t){return c.apply(this,arguments)}}()}},function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,i){try{var a=t[o](i),u=a.value}catch(s){return void n(s)}return a.done?void e(u):Promise.resolve(u).then(function(e){r("next",e)},function(e){r("throw",e)})}return r("next")})}}var o=n(170),i=n.n(o),a=n(1350),u=n(25),s=n(22),c=n(5),l=n(74),f=n(26);n.d(t,"c",function(){return m}),n.d(t,"b",function(){return b}),n.d(t,"a",function(){return E});var d=this,p=c.h.VARIANT_RECOMMENDED_BY_POST,h="FETCHING_SUBREDDITS_BY_POST",v=function(e){return{type:h,name:e +}},m="RECEIVED_SUBREDDITS_BY_POST",y=function(e,t){return{type:m,postId:e,apiResponse:t}},g="FAILED_SUBREDDITS_BY_POST",_=function(e,t){return{type:g,name:e,error:t}},b=function(e){return function(){var t=r(regeneratorRuntime.mark(function o(t,r){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n.i(f.f)(r(),"subreddits_by_post",105,e);case 1:case"end":return t.stop()}},o,d)}));return function(e,n){return t.apply(this,arguments)}}()},E=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3;return function(){var c=r(regeneratorRuntime.mark(function f(r,c){var h,m,g,b;return regeneratorRuntime.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(h=c(),m=l.a.withContext({state:h}),!i()([p],function(e){return m.enabled(e)})){f.next=19;break}return r(v(e.name)),g=n.i(s.a)(h),f.prev=5,f.next=8,a.a.get(g,{link:e.name,variant:"nb",experiment_id:t,max_recs:o});case 8:b=f.sent,r(y(e.name,b)),f.next=19;break;case 12:if(f.prev=12,f.t0=f["catch"](5),!(f.t0 instanceof u.a)){f.next=18;break}r(_(e.name,f.t0)),f.next=19;break;case 18:throw f.t0;case 19:case"end":return f.stop()}},f,d,[[5,12]])}));return function(e,t){return c.apply(this,arguments)}}()}},function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,i){try{var a=t[o](i),u=a.value}catch(s){return void n(s)}return a.done?void e(u):Promise.resolve(u).then(function(e){r("next",e)},function(e){r("throw",e)})}return r("next")})}}var o=n(170),i=n.n(o),a=n(1351),u=n(25),s=n(22),c=n(5),l=n(74),f=n(26);n.d(t,"c",function(){return b}),n.d(t,"b",function(){return S}),n.d(t,"a",function(){return O});var d=this,p=c.h.VARIANT_RECOMMENDED_BY_POST_TOP_ALL,h=c.h.VARIANT_RECOMMENDED_BY_POST_TOP_DAY,v=c.h.VARIANT_RECOMMENDED_BY_POST_TOP_MONTH,m=c.h.VARIANT_RECOMMENDED_BY_POST_HOT,y=[p,h,v,m],g="FETCHING_SUBREDDITS_TO_POSTS_BY_POST",_=function(e){return{type:g,name:e}},b="RECEIVED_SUBREDDITS_TO_POSTS_BY_POST",E=function(e,t){return{type:b,postId:e,apiResponse:t}},T="FAILED_SUBREDDITS_TO_POSTS_BY_POST",w=function(e,t){return{type:T,name:e,error:t}},S=function(e){return function(){var t=r(regeneratorRuntime.mark(function o(t,r){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n.i(f.f)(r(),"subreddits_by_post",105,e);case 1:case"end":return t.stop()}},o,d)}));return function(e,n){return t.apply(this,arguments)}}()},O=function(e,t,o,c){var f=arguments.length>4&&void 0!==arguments[4]?arguments[4]:3;return function(){var p=r(regeneratorRuntime.mark(function h(r,p){var v,m,g,b;return regeneratorRuntime.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(v=p(),m=l.a.withContext({state:v}),!i()(y,function(e){return m.enabled(e)})){d.next=19;break}return r(_(e.name)),g=n.i(s.a)(v),d.prev=5,d.next=8,a.a.get(g,{link:e.name,variant:"nb",experiment_id:c,max_recs:f,sort:t,time:o});case 8:b=d.sent,r(E(e.name,b)),d.next=19;break;case 12:if(d.prev=12,d.t0=d["catch"](5),!(d.t0 instanceof u.a)){d.next=18;break}r(w(e.name,d.t0)),d.next=19;break;case 18:throw d.t0;case 19:case"end":return d.stop()}},h,d,[[5,12]])}));return function(e,t){return p.apply(this,arguments)}}()}},function(e,t,n){"use strict";var r=n(1637),o=(n.n(r),n(0)),i=(n.n(o),n(3)),a=(n.n(i),n(4)),u=(n.n(a),n(5)),s=n(289),c=n(42),l=n(423),f=this,d=function(){var e="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103;return function(t,n,r,o){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var u in i)void 0===n[u]&&(n[u]=i[u]);else n||(n=i||{});if(1===a)n.children=o;else if(a>1){for(var s=Array(a),c=0;cDate.now()&&(o.href=v(t.url,r))},y=function(e,t){var r=n.i(d.a)(e);r&&(r.href=t)};r.propTypes={href:h.string.isRequired,outboundLink:h.shape({url:h.string.isRequired,expiration:h.number}),onClick:h.func,promoted:h.bool,userId:h.number};var g=n.i(u.createSelector)(function(e){var t=e.user,r=e.accounts,o=t.loggedOut?null:r[t.name];return o?n.i(f.d)(o.id):null},function(e){return{userId:e}});t.a=n.i(a.connect)(g)(r)},function(e,t,n){"use strict";var r=n(685),o=(n.n(r),n(0)),i=n.n(o),a=n(3),u=(n.n(a),n(177)),s=n(30),c=function(){var e="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103;return function(t,n,r,o){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var u in i)void 0===n[u]&&(n[u]=i[u]);else n||(n=i||{});if(1===a)n.children=o;else if(a>1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=e[0].uuid,i=h(r);if(i>0){var a=d({count:25},r,{page:i-1,before:o,after:void 0});return n.i(c.a)(t,n.i(l.a)(a))}},m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=e[e.length-1].uuid,i=h(r),a=d({count:25},r,{page:i+1,after:o,before:void 0});return n.i(c.a)(t,n.i(l.a)(a))},y=f("span",{className:"icon icon-nav-arrowforward white"}),g=function(e){return f(s.b,{href:e,rel:"next",className:"PaginationButtons__button m-next"},void 0,"NEXT",y)},_=f("span",{className:"icon icon-nav-arrowback white"}),b=function(e){return f(s.b,{href:e,rel:"prev",className:"PaginationButtons__button m-prev"},void 0,_,"PREVIOUS")},E=function(e){var t=e.compact,n=e.records,r=e.preventUrlCreation,o=e.pageSize,i=e.currentQueryParams,a=e.pagingPrefix,u=e.prevUrl,s=e.nextUrl;return u||r||(u=v(n,a,i)),s||r||n.length0||!!f.oembed,ne=y.a.has(f.domain),re=L&&N.has(f.postHint)&&!ne,oe=o||re;if(f.isBlankAd)return D;var ie=o&&v,ae=!j&&(o&&!ie||!o),ue=ae?G:W,se=d()(Z.names,f.subreddit.toLowerCase()),ce=function(e,r){var o=function(r){if(w)return!1;var o=t.store;if(!o)return!1;var i=o.getState(),a=n.i(R.j)(i,r);return a&&o.dispatch(n.i(I.b)(e.target)),a};return x(o,e,r)},le=void 0;oe&&(le=A(b.a,{post:f,single:w,compact:!0,isThumbnail:!0,expandedCompact:!1,onTapExpand:z,togglePlaying:ue,width:$,toggleShowNSFW:X,showNSFW:c,showSpoilers:l,editing:!1,forceHTTPS:u,isDomainExternal:i,renderMediaFullbleed:a,showLinksInNewTab:s,interceptListingClick:ce,onUpdatePostPlaytime:V}));var fe=f.promoted&&f.originalLink,de=void 0;oe&&!ie||(de=A(b.a,{post:f,editing:p,editPending:h,single:w,compact:oe,isPlaying:j,isThumbnail:!1,expandedCompact:ie,onTapExpand:z,onToggleEdit:B,onUpdateSelftext:Y,togglePlaying:ue,width:$,showNSFW:c,showSpoilers:l,toggleShowNSFW:X,forceHTTPS:u,isDomainExternal:i,renderMediaFullbleed:a,showLinksInNewTab:s,interceptListingClick:ce,onUpdatePostPlaytime:V}));var pe="Post "+(oe?"size-compact":"size-default");return A("article",{className:pe,style:{zIndex:Q},onClick:function(e){return ce(e,S.u.OTHER)}},void 0,A("div",{className:"Post__header-wrapper"},void 0,le,A(_.a,{post:f,isPromotedUserPost:fe,single:w,compact:oe,hideSubredditLabel:O,hideWhen:C,nextToThumbnail:!!le,showingLink:!(!oe||ie||!i),renderMediaFullbleed:a,showLinksInNewTab:s,onElementClick:function(){U(f)},titleOpensExpando:M&&te,onTapExpand:z,isSubredditModerator:se,reports:ee,interceptListingClick:ce,userActivityPage:F})),de,f.promoted&&A(T.a,{post:f,renderMediaFullbleed:a,showLinksInNewTab:s,displayCompact:oe}),A(E.a,{user:m,single:w,compact:oe,post:f,viewComments:!w,hideDownvote:F||f.archived,onToggleEdit:B,onToggleSave:H,onToggleHide:q,onReportPost:K,onElementClick:function(){U(f)},onToggleModal:J,isSubredditModerator:se,reports:ee,interceptListingClick:ce}))}var i=n(1677),a=(n.n(i),n(0)),u=n.n(a),s=n(3),c=(n.n(s),n(4)),l=(n.n(c),n(90)),f=(n.n(l),n(259)),d=n.n(f),p=n(38),h=n(103),v=n(146),m=n(43),y=n(1609),g=n(219),_=n(1425),b=n(658),E=n(1424),T=n(1377),w=n(74),S=n(5),O=n(26),P=n(291),R=n(46),I=n(43),A=function(){var e="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103;return function(t,n,r,o){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var u in i)void 0===n[u]&&(n[u]=i[u]);else n||(n=i||{});if(1===a)n.children=o;else if(a>1){for(var s=Array(a),c=0;c2&&void 0!==arguments[2]?arguments[2]:{},a=i.restrictType,u=t.model;return a&&u.type!==a?e:n.i(o.a)(e,r({},u.uuid,u))}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(9),i=n(8),a=n(48),u=n(116),s=n(146);n.d(t,"a",function(){return c}),n.d(t,"b",function(){return l});var c="USER_REPORTS",l="MOD_REPORTS",f={},d=function(e){var t={};for(var n in e)e[n].userReports.forEach(function(e){t[n]||(t[n]=r({},c,{})),t[n][c]=r({},e[0],e[1])}),e[n].modReports.forEach(function(e){t[n]||(t[n]=r({},l,{})),t[n][l]=r({},e[1],e[0])});return t};t.c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case i.b:case i.c:return f;case s.a:var c=t.model,p=t.report,h=t.username,v=t.moderatesSub;return v?n.i(o.a)(e,r({},c.name,r({},l,r({},h,p.reason)))):f;case u.e:var m=t.apiResponse.posts,y=d(m);return n.i(o.a)(e,y);case a.e:var g=t.payload.comments,_=d(g);return n.i(o.a)(e,_);default:return e}}},function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,i){try{var a=t[o](i),u=a.value}catch(s){return void n(s)}return a.done?void e(u):Promise.resolve(u).then(function(e){r("next",e)},function(e){r("throw",e)})}return r("next")})}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e){var t=e.platform.currentPage,n=t.queryParams,r=t.urlParams,o=n.time,i=n.before,a=n.after,u=r.sort||n.sort||"hot";return{target_sort:u,target_count:O,target_filter_time:"top"===u?o||"all":null,target_before:i?i:null,target_after:a?a:null}}function s(e){var t=e.platform.currentPage.urlParams.subredditName,r=null,o=null,i=null;if(t)if(t.indexOf("+")>-1)i="multi";else if(t.indexOf("-")>-1)i="all (filtered)";else if(v.b.includes(t))i=t;else{var a=e.subreddits[t.toLowerCase()];if(!a)return null;r=n.i(_.d)(a.id),o=a.name,i=a.uuid}else i="frontpage";return n.i(m.a)(T({listing_name:i,target_id:r,target_fullname:o,target_type:"listing"},u(e)))}var c=n(7),l=n(10),f=n(116),d=n(55),p=n(409),h=n(183),v=n(56),m=n(120),y=n(435),g=n(75),_=n(26),b=n(412),E=n(417);t.b=s;var T=Object.assign||function(e){for(var t=1;t4&&void 0!==arguments[4]?arguments[4]:{};return s({source:t,action:n,noun:r},c,T(e),o)},S=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{installable:t,installed:e.pwaInstalled,pwaInstalledTimestamp:e.pwaInstalledTimestamp}},O=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{id:e.id,isOverride:t,name:e.experiment_name,variant:e.variant,version:e.version}}},function(e,t,n){"use strict";function r(e){return u.a.isValidElement(e)&&"string"==typeof e.type}function o(e){var t=e||"0px",n=/^-?\d*\.?\d+(px|%)$/,r=t.split(/\s+/).map(function(e){if(!n.test(e))throw new Error("rootMargin must be specified in pixels or percent");return e});return r[1]=r[1]||r[0],r[2]=r[2]||r[0],r[3]=r[3]||r[1],r.join(" ")}function i(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===t.length?e.some(function(n,r){return i(e[r],t[r])}):e!==t}var a=n(0),u=n.n(a);t.c=r,t.a=o,t.b=i},function(e,t,n){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o={};o.parseBuffer=function(e){return new i(e).parse()},o.addBoxProcessor=function(e,t){"string"==typeof e&&"function"==typeof t&&(a.prototype._boxProcessors[e]=t)},o.createFile=function(){return new i},o.createBox=function(e,t,n){var r=a.create(e);return t&&t.append(r,n),r},o.createFullBox=function(e,t,n){var r=o.createBox(e,t,n);return r.version=0,r.flags=0,r},o.Utils={},o.Utils.dataViewToString=function(e,t){var n=t||"utf-8";if("undefined"!=typeof TextDecoder)return new TextDecoder(n).decode(e);var r=[],o=0;if("utf-8"===n)for(;o>6),t.push(128|63&r)):r<65536?(t.push(224|r>>12),t.push(128|63&r>>6),t.push(128|63&r)):(t.push(240|r>>18),t.push(128|63&r>>12),t.push(128|63&r>>6),t.push(128|63&r))}return t},o.Utils.appendBox=function(e,t,n){if(t._offset=e._cursor.offset,t._root=e._root?e._root:e,t._raw=e._raw,t._parent=e,n!==-1){if(void 0===n||null===n)return void e.boxes.push(t);var o,i=-1;if("number"==typeof n)i=n;else{if("string"==typeof n)o=n;else{if("object"!==("undefined"==typeof n?"undefined":r(n))||!n.type)return void e.boxes.push(t);o=n.type}for(var a=0;a>3,t},a.prototype._readUint=function(e){var t,n,r=null,o=this._cursor.offset-this._raw.byteOffset;switch(e){case 8:r=this._raw.getUint8(o);break;case 16:r=this._raw.getUint16(o);break;case 24:t=this._raw.getUint16(o),n=this._raw.getUint8(o+2),r=(t<<8)+n;break;case 32:r=this._raw.getUint32(o);break;case 64:t=this._raw.getUint32(o),n=this._raw.getUint32(o+4),r=t*Math.pow(2,32)+n}return this._cursor.offset+=e>>3,r},a.prototype._readString=function(e){for(var t="",n=0;n0?e:this._raw.byteLength-(this._cursor.offset-this._offset);if(t>0){var n=new Uint8Array(this._raw.buffer,this._cursor.offset,t);return this._cursor.offset+=t,n}return null},a.prototype._readUTF8String=function(){var e=this._raw.byteLength-(this._cursor.offset-this._offset),t=null;return e>0&&(t=new DataView(this._raw.buffer,this._cursor.offset,e),this._cursor.offset+=e),t?o.Utils.dataViewToString(t):t},a.prototype._parseBox=function(){if(this._parsing=!0,this._cursor.offset=this._offset,this._offset+8>this._raw.buffer.byteLength)return void(this._root._incomplete=!0);switch(this._procField("size","uint",32),this._procField("type","string",4),1===this.size&&this._procField("largesize","uint",64),"uuid"===this.type&&this._procFieldArray("usertype",16,"uint",8),this.size){case 0:this._raw=new DataView(this._raw.buffer,this._offset,this._raw.byteLength-this._cursor.offset+8);break;case 1:this._offset+this.size>this._raw.buffer.byteLength?(this._incomplete=!0,this._root._incomplete=!0):this._raw=new DataView(this._raw.buffer,this._offset,this.largesize);break;default:this._offset+this.size>this._raw.buffer.byteLength?(this._incomplete=!0,this._root._incomplete=!0):this._raw=new DataView(this._raw.buffer,this._offset,this.size)}this._incomplete||(this._boxProcessors[this.type]&&this._boxProcessors[this.type].call(this),this._boxContainers.indexOf(this.type)!==-1?this._parseContainerBox():this._data=this._readData())},a.prototype._parseFullBox=function(){this.version=this._readUint(8),this.flags=this._readUint(24)},a.prototype._parseContainerBox=function(){for(this.boxes=[];this._cursor.offset-this._raw.byteOffset>3}else this.size+=e>>3},a.prototype._writeUint=function(e,t){if(this._rawo){var n,r,o=this._cursor.offset-this._rawo.byteOffset;switch(e){case 8:this._rawo.setUint8(o,t);break;case 16:this._rawo.setUint16(o,t);break;case 24:n=(16776960&t)>>8,r=255&t,this._rawo.setUint16(o,n),this._rawo.setUint8(o+2,r);break;case 32:this._rawo.setUint32(o,t);break;case 64:n=Math.floor(t/Math.pow(2,32)),r=t-n*Math.pow(2,32),this._rawo.setUint32(o,n),this._rawo.setUint32(o+4,r)}this._cursor.offset+=e>>3}else this.size+=e>>3},a.prototype._writeString=function(e,t){for(var n=0;n>10&31)+96,(this.language>>5&31)+96,(31&this.language)+96)),this._procField("pre_defined","uint",16)},a.prototype._boxProcessors.mehd=function(){this._procFullBox(),this._procField("fragment_duration","uint",1==this.version?64:32)},a.prototype._boxProcessors.mfhd=function(){this._procFullBox(),this._procField("sequence_number","uint",32)},a.prototype._boxProcessors.mfro=function(){this._procFullBox(),this._procField("mfra_size","uint",32)},a.prototype._boxProcessors.mp4a=a.prototype._boxProcessors.enca=function(){this._procFieldArray("reserved1",6,"uint",8),this._procField("data_reference_index","uint",16),this._procFieldArray("reserved2",2,"uint",32),this._procField("channelcount","uint",16),this._procField("samplesize","uint",16),this._procField("pre_defined","uint",16),this._procField("reserved3","uint",16),this._procField("samplerate","template",32),this._procField("esds","data",-1)},a.prototype._boxProcessors.mvhd=function(){this._procFullBox(),this._procField("creation_time","uint",1==this.version?64:32),this._procField("modification_time","uint",1==this.version?64:32),this._procField("timescale","uint",32),this._procField("duration","uint",1==this.version?64:32),this._procField("rate","template",32),this._procField("volume","template",16),this._procField("reserved1","uint",16),this._procFieldArray("reserved2",2,"uint",32),this._procFieldArray("matrix",9,"template",32),this._procFieldArray("pre_defined",6,"uint",32),this._procField("next_track_ID","uint",32)},a.prototype._boxProcessors.payl=function(){this._procField("cue_text","utf8")},a.prototype._boxProcessors.pssh=function(){this._procFullBox(),this._procFieldArray("SystemID",16,"uint",8),this._procField("DataSize","uint",32),this._procFieldArray("Data",this.DataSize,"uint",8)},a.prototype._boxProcessors.schm=function(){this._procFullBox(),this._procField("scheme_type","uint",32),this._procField("scheme_version","uint",32),1&this.flags&&this._procField("scheme_uri","string",-1)},a.prototype._boxProcessors.sdtp=function(){this._procFullBox();var e=-1;this._parsing&&(e=this._raw.byteLength-(this._cursor.offset-this._raw.byteOffset)),this._procFieldArray("sample_dependency_table",e,"uint",8)},a.prototype._boxProcessors.sidx=function(){this._procFullBox(),this._procField("reference_ID","uint",32),this._procField("timescale","uint",32),this._procField("earliest_presentation_time","uint",1==this.version?64:32),this._procField("first_offset","uint",1==this.version?64:32),this._procField("reserved","uint",16),this._procField("reference_count","uint",16),this._procEntries("references",this.reference_count,function(e){this._parsing||(e.reference=(1&e.reference_type)<<31,e.reference|=2147483647&e.referenced_size,e.sap=(1&e.starts_with_SAP)<<31,e.sap|=(3&e.SAP_type)<<28,e.sap|=268435455&e.SAP_delta_time),this._procEntryField(e,"reference","uint",32),this._procEntryField(e,"subsegment_duration","uint",32),this._procEntryField(e,"sap","uint",32),this._parsing&&(e.reference_type=e.reference>>31&1,e.referenced_size=2147483647&e.reference,e.starts_with_SAP=e.sap>>31&1,e.SAP_type=e.sap>>28&7,e.SAP_delta_time=268435455&e.sap)})},a.prototype._boxProcessors.smhd=function(){this._procFullBox(),this._procField("balance","uint",16),this._procField("reserved","uint",16)},a.prototype._boxProcessors.ssix=function(){this._procFullBox(),this._procField("subsegment_count","uint",32),this._procEntries("subsegments",this.subsegment_count,function(e){this._procEntryField(e,"ranges_count","uint",32),this._procSubEntries(e,"ranges",e.ranges_count,function(e){this._procEntryField(e,"level","uint",8),this._procEntryField(e,"range_size","uint",24)})})},a.prototype._boxProcessors.stsd=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procSubBoxes("entries",this.entry_count)},a.prototype._boxProcessors.subs=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procEntries("entries",this.entry_count,function(e){this._procEntryField(e,"sample_delta","uint",32),this._procEntryField(e,"subsample_count","uint",16),this._procSubEntries(e,"subsamples",e.subsample_count,function(e){this._procEntryField(e,"subsample_size","uint",1===this.version?32:16),this._procEntryField(e,"subsample_priority","uint",8),this._procEntryField(e,"discardable","uint",8),this._procEntryField(e,"codec_specific_parameters","uint",32)})})},a.prototype._boxProcessors.tenc=function(){this._procFullBox(),this._procField("default_IsEncrypted","uint",24),this._procField("default_IV_size","uint",8),this._procFieldArray("default_KID",16,"uint",8)},a.prototype._boxProcessors.tfdt=function(){this._procFullBox(),this._procField("baseMediaDecodeTime","uint",1==this.version?64:32)},a.prototype._boxProcessors.tfhd=function(){this._procFullBox(),this._procField("track_ID","uint",32),1&this.flags&&this._procField("base_data_offset","uint",64),2&this.flags&&this._procField("sample_description_offset","uint",32),8&this.flags&&this._procField("default_sample_duration","uint",32),16&this.flags&&this._procField("default_sample_size","uint",32),32&this.flags&&this._procField("default_sample_flags","uint",32)},a.prototype._boxProcessors.tfra=function(){this._procFullBox(),this._procField("track_ID","uint",32),this._parsing||(this.reserved=0,this.reserved|=(48&this.length_size_of_traf_num)<<4,this.reserved|=(12&this.length_size_of_trun_num)<<2,this.reserved|=3&this.length_size_of_sample_num),this._procField("reserved","uint",32),this._parsing&&(this.length_size_of_traf_num=(48&this.reserved)>>4,this.length_size_of_trun_num=(12&this.reserved)>>2,this.length_size_of_sample_num=3&this.reserved),this._procField("number_of_entry","uint",32),this._procEntries("entries",this.number_of_entry,function(e){this._procEntryField(e,"time","uint",1===this.version?64:32),this._procEntryField(e,"moof_offset","uint",1===this.version?64:32),this._procEntryField(e,"traf_number","uint",8*(this.length_size_of_traf_num+1)),this._procEntryField(e,"trun_number","uint",8*(this.length_size_of_trun_num+1)),this._procEntryField(e,"sample_number","uint",8*(this.length_size_of_sample_num+1))})},a.prototype._boxProcessors.tkhd=function(){this._procFullBox(),this._procField("creation_time","uint",1==this.version?64:32),this._procField("modification_time","uint",1==this.version?64:32),this._procField("track_ID","uint",32),this._procField("reserved1","uint",32),this._procField("duration","uint",1==this.version?64:32),this._procFieldArray("reserved2",2,"uint",32),this._procField("layer","uint",16),this._procField("alternate_group","uint",16),this._procField("volume","template",16),this._procField("reserved3","uint",16),this._procFieldArray("matrix",9,"template",32),this._procField("width","template",32),this._procField("height","template",32)},a.prototype._boxProcessors.trex=function(){this._procFullBox(),this._procField("track_ID","uint",32),this._procField("default_sample_description_index","uint",32),this._procField("default_sample_duration","uint",32),this._procField("default_sample_size","uint",32),this._procField("default_sample_flags","uint",32)},a.prototype._boxProcessors.trun=function(){this._procFullBox(),this._procField("sample_count","uint",32),1&this.flags&&this._procField("data_offset","int",32),4&this.flags&&this._procField("first_sample_flags","uint",32),this._procEntries("samples",this.sample_count,function(e){256&this.flags&&this._procEntryField(e,"sample_duration","uint",32),512&this.flags&&this._procEntryField(e,"sample_size","uint",32),1024&this.flags&&this._procEntryField(e,"sample_flags","uint",32),2048&this.flags&&this._procEntryField(e,"sample_composition_time_offset",1===this.version?"int":"uint",32)})},a.prototype._boxProcessors["url "]=a.prototype._boxProcessors["urn "]=function(){this._procFullBox(),"urn "===this.type&&this._procField("name","string",-1),this._procField("location","string",-1)},a.prototype._boxProcessors.vlab=function(){this._procField("source_label","utf8")},a.prototype._boxProcessors.vmhd=function(){this._procFullBox(),this._procField("graphicsmode","uint",16),this._procFieldArray("opcolor",3,"uint",16)},a.prototype._boxProcessors.vttC=function(){this._procField("config","utf8")},a.prototype._boxProcessors.vtte=function(){}},function(e,t,n){"use strict";var r=n(37),o=n(131),i=n(33);e.exports=function(e){for(var t=r(this),n=i(t.length),a=arguments.length,u=o(a>1?arguments[1]:void 0,n),s=a>2?arguments[2]:void 0,c=void 0===s?n:o(s,n);c>u;)t[u++]=e;return t}},function(e,t,n){var r=n(705);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){"use strict";var r=n(32),o=n(128);e.exports=function(e,t,n){t in e?r.f(e,t,o(0,n)):e[t]=n}},function(e,t,n){var r=n(21),o=n(15).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(28)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(o){}}return!0}},function(e,t,n){var r=n(15).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(21),o=n(315).set;e.exports=function(e,t,n){var i,a=t.constructor;return a!==n&&"function"==typeof a&&(i=a.prototype)!==n.prototype&&r(i)&&o&&o(e,i),e}},function(e,t,n){var r=n(152),o=n(28)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},function(e,t,n){"use strict";var r=n(125),o=n(128),i=n(153),a={};n(50)(a,n(28)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},function(e,t,n){"use strict";var r=n(124),o=n(1),i=n(51),a=n(50),u=n(49),s=n(152),c=n(309),l=n(153),f=n(60),d=n(28)("iterator"),p=!([].keys&&"next"in[].keys()),h="@@iterator",v="keys",m="values",y=function(){return this};e.exports=function(e,t,n,g,_,b,E){c(n,t,g);var T,w,S,O=function(e){if(!p&&e in A)return A[e];switch(e){case v:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},P=t+" Iterator",R=_==m,I=!1,A=e.prototype,C=A[d]||A[h]||_&&A[_],x=!p&&C||O(_),N=_?R?O("entries"):x:void 0,M="Array"==t?A.entries||C:C;if(M&&(S=f(M.call(new e)),S!==Object.prototype&&S.next&&(l(S,P,!0),r||u(S,d)||a(S,d,y))),R&&C&&C.name!==m&&(I=!0,x=function(){return C.call(this)}),r&&!E||!p&&!I&&A[d]||a(A,d,x),s[t]=x,s[P]=y,_)if(T={values:R?x:O(m),keys:b?x:O(v),entries:N},E)for(w in T)w in A||i(A,w,T[w]);else o(o.P+o.F*(p||I),t,T);return T}},function(e,t){var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||n(-2e-17)!=-2e-17?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t,n){var r=n(15),o=n(321).set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,u=r.Promise,s="process"==n(67)(a);e.exports=function(){var e,t,n,c=function(){var r,o;for(s&&(r=a.domain)&&r.exit();e;){o=e.fn,e=e.next;try{o()}catch(i){throw e?n():t=void 0,i}}t=void 0,r&&r.enter()};if(s)n=function(){a.nextTick(c)};else if(!i||r.navigator&&r.navigator.standalone)if(u&&u.resolve){var l=u.resolve();n=function(){l.then(c)}}else n=function(){o.call(r,c)};else{var f=!0,d=document.createTextNode("");new i(c).observe(d,{characterData:!0}),n=function(){d.data=f=!f}}return function(r){var o={fn:r,next:void 0};t&&(t.next=o),e||(e=o,n()),t=o}}},function(e,t,n){"use strict";function r(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=o(t),this.reject=o(n)}var o=n(44);e.exports.f=function(e){return new r(e)}},function(e,t,n){var r=n(21),o=n(13),i=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n(68)(Function.call,n(59).f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(o){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){var r=n(233)("keys"),o=n(132);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(81),o=n(79);e.exports=function(e){return function(t,n){var i,a,u=String(o(t)),s=r(n),c=u.length;return s<0||s>=c?e?"":void 0:(i=u.charCodeAt(s),i<55296||i>56319||s+1===c||(a=u.charCodeAt(s+1))<56320||a>57343?e?u.charAt(s):i:e?u.slice(s,s+2):(i-55296<<10)+(a-56320)+65536)}}},function(e,t,n){var r=n(227),o=n(79);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(e))}},function(e,t,n){"use strict";var r=n(81),o=n(79);e.exports=function(e){var t=String(o(this)),n="",i=r(e);if(i<0||i==1/0)throw RangeError("Count can't be negative");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n}},function(e,t){e.exports="\t\n\x0B\f\r   ᠎              \u2028\u2029\ufeff"},function(e,t,n){var r,o,i,a=n(68),u=n(465),s=n(306),c=n(303),l=n(15),f=l.process,d=l.setImmediate,p=l.clearImmediate,h=l.MessageChannel,v=l.Dispatch,m=0,y={},g="onreadystatechange",_=function(){var e=+this;if(y.hasOwnProperty(e)){var t=y[e]; +delete y[e],t()}},b=function(e){_.call(e.data)};d&&p||(d=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return y[++m]=function(){u("function"==typeof e?e:Function(e),t)},r(m),m},p=function(e){delete y[e]},"process"==n(67)(f)?r=function(e){f.nextTick(a(_,e,1))}:v&&v.now?r=function(e){v.now(a(_,e,1))}:h?(o=new h,i=o.port2,o.port1.onmessage=b,r=a(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(e){l.postMessage(e+"","*")},l.addEventListener("message",b,!1)):r=g in c("script")?function(e){s.appendChild(c("script"))[g]=function(){s.removeChild(this),_.call(e)}}:function(e){setTimeout(a(_,e,1),0)}),e.exports={set:d,clear:p}},function(e,t,n){"use strict";function r(e,t,n){var r,o,i,a=new Array(n),u=8*n-t-1,s=(1<>1,l=23===t?H(2,-24)-H(2,-77):0,f=0,d=e<0||0===e&&1/e<0?1:0;for(e=B(e),e!=e||e===F?(o=e!=e?1:0,r=s):(r=q(V(e)/G),e*(i=H(2,-r))<1&&(r--,i*=2),e+=r+c>=1?l/i:l*H(2,1-c),e*i>=2&&(r++,i/=2),r+c>=s?(o=0,r=s):r+c>=1?(o=(e*i-1)*H(2,t),r+=c):(o=e*H(2,c-1)*H(2,t),r=0));t>=8;a[f++]=255&o,o/=256,t-=8);for(r=r<0;a[f++]=255&r,r/=256,u-=8);return a[--f]|=128*d,a}function o(e,t,n){var r,o=8*n-t-1,i=(1<>1,u=o-7,s=n-1,c=e[s--],l=127&c;for(c>>=7;u>0;l=256*l+e[s],s--,u-=8);for(r=l&(1<<-u)-1,l>>=-u,u+=t;u>0;r=256*r+e[s],s--,u-=8);if(0===l)l=1-a;else{if(l===i)return r?NaN:c?-F:F;r+=H(2,t),l-=a}return(c?-1:1)*r*H(2,l-t)}function i(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function a(e){return[255&e]}function u(e){return[255&e,e>>8&255]}function s(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function c(e){return r(e,52,8)}function l(e){return r(e,23,4)}function f(e,t,n){P(e[x],t,{get:function(){return this[n]}})}function d(e,t,n,r){var o=+n,i=S(o);if(i+t>e[X])throw j(M);var a=e[z]._b,u=i+e[$],s=a.slice(u,u+t);return r?s:s.reverse()}function p(e,t,n,r,o,i){var a=+n,u=S(a);if(u+t>e[X])throw j(M);for(var s=e[z]._b,c=u+e[$],l=r(+o),f=0;fee;)(Q=Z[ee++])in k||g(k,Q,U[Q]);m||(J.constructor=k)}var te=new D(new k(2)),ne=D[x].setInt8;te.setInt8(0,2147483648),te.setInt8(1,2147483649),!te.getInt8(0)&&te.getInt8(1)||_(D[x],{setInt8:function(e,t){ne.call(this,e,t<<24>>24)},setUint8:function(e,t){ne.call(this,e,t<<24>>24)}},!0)}else k=function(e){E(this,k,A);var t=S(e);this._b=R.call(new Array(t),0),this[X]=t},D=function(e,t,n){E(this,D,C),E(e,k,C);var r=e[X],o=T(t);if(o<0||o>r)throw j("Wrong offset!");if(n=void 0===n?r-o:w(n),o+n>r)throw j(N);this[z]=e,this[$]=o,this[X]=n},v&&(f(k,K,"_l"),f(D,W,"_b"),f(D,K,"_l"),f(D,Y,"_o")),_(D[x],{getInt8:function(e){return d(this,1,e)[0]<<24>>24},getUint8:function(e){return d(this,1,e)[0]},getInt16:function(e){var t=d(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=d(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return i(d(this,4,e,arguments[1]))},getUint32:function(e){return i(d(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return o(d(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return o(d(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){p(this,1,e,a,t)},setUint8:function(e,t){p(this,1,e,a,t)},setInt16:function(e,t){p(this,2,e,u,t,arguments[2])},setUint16:function(e,t){p(this,2,e,u,t,arguments[2])},setInt32:function(e,t){p(this,4,e,s,t,arguments[2])},setUint32:function(e,t){p(this,4,e,s,t,arguments[2])},setFloat32:function(e,t){p(this,4,e,l,t,arguments[2])},setFloat64:function(e,t){p(this,8,e,c,t,arguments[2])}});I(k,A),I(D,C),g(D[x],y.VIEW,!0),t[A]=k,t[C]=D},function(e,t,n){var r=n(15),o=r.navigator;e.exports=o&&o.userAgent||""},function(e,t,n){var r=n(15),o=n(78),i=n(124),a=n(484),u=n(32).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||u(t,e,{value:a.f(e)})}},function(e,t,n){var r=n(192),o=n(28)("iterator"),i=n(152);e.exports=n(78).getIteratorMethod=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t,n){"use strict";var r=n(105),o=n(468),i=n(152),a=n(61);e.exports=n(310)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):"keys"==t?o(0,n):"values"==t?o(0,e[n]):o(0,[n,e[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t,n){var r,o,i,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(u,s){"object"===a(t)?e.exports=t=s(n(107)):(o=[n(107)],r=s,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i)))}(this,function(e){return function(t){var n=e,r=n.lib,o=r.WordArray,i=r.Hasher,a=n.algo,u=[],s=[];!function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,o=0;o<64;)e(r)&&(o<8&&(u[o]=n(t.pow(r,.5))),s[o]=n(t.pow(r,1/3)),o++),r++}();var c=[],l=a.SHA256=i.extend({_doReset:function(){this._hash=new o.init(u.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],u=n[4],l=n[5],f=n[6],d=n[7],p=0;p<64;p++){if(p<16)c[p]=0|e[t+p];else{var h=c[p-15],v=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,m=c[p-2],y=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;c[p]=v+c[p-7]+y+c[p-16]}var g=u&l^~u&f,_=r&o^r&i^o&i,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),E=(u<<26|u>>>6)^(u<<21|u>>>11)^(u<<7|u>>>25),T=d+E+g+s[p]+c[p],w=b+_;d=f,f=l,l=u,u=a+T|0,a=i,i=o,o=r,r=T+w|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+u|0,n[5]=n[5]+l|0,n[6]=n[6]+f|0,n[7]=n[7]+d|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,o=8*e.sigBytes;return n[o>>>5]|=128<<24-o%32,n[(o+64>>>9<<4)+14]=t.floor(r/4294967296),n[(o+64>>>9<<4)+15]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function f(){var f=i.clone.call(this);return f._hash=this._hash.clone(),f}});n.SHA256=i._createHelper(l),n.HmacSHA256=i._createHmacHelper(l)}(Math),e.SHA256})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n=0)for(var s=0;su?(c=t,s=c/r*n):(s=e,c=s/n*r);var l=0,f=0,d=0,p=0,h=s/c;return h>o?(p=c,d=c*o):(d=s,p=s/o),l=(e-d)/2,f=(t-p)/2,i?{x:l+.1*d,y:f+.1*p,w:.8*d,h:.8*p}:{x:l,y:f,w:d,h:p}}function i(e){var t=k.getClientWidth(),n=k.getClientHeight(),r=k.getVideoWidth(),i=k.getVideoHeight(),a=k.getVideoRelativeOffsetTop(),u=k.getVideoRelativeOffsetLeft(),s=r/i,c=!1;e.isFromCEA608&&(s=3.5/3,c=!0);var l=o.call(this,t,n,r,i,s,c),f=l.w,d=l.h,p=l.x,h=l.y;if(f!=B||d!=H||p!=F||h!=U){F=p+u,U=h+a,B=f,H=d,q.style.left=F+"px",q.style.top=U+"px",q.style.width=B+"px",q.style.height=H+"px";for(var v=0;e.activeCues&&v=0&&D[e]?k.getTextTrack(D[e].kind,D[e].label,D[e].lang,D[e].isTTML,D[e].isEmbedded):null}function p(){return j}function m(e){for(var t=-1,n=0;n=0;r--)e.removeCue(t[r])}function b(e){var t=d(e);t&&_(t)}function E(){for(var e=L?L.length:0,t=0;t0&&this._events[e].length>o&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),o||(o=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var o=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,o,a,u;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],a=n.length,o=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(n)){for(u=a;u-- >0;)if(n[u]===t||n[u].listener&&n[u].listener===t){o=u;break}if(o<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],r(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t){"use strict";function n(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function r(e,t){if(n(e,t))return!0;if("object"!==("undefined"==typeof e?"undefined":o(e))||null===e||"object"!==("undefined"==typeof t?"undefined":o(t))||null===t)return!1;var r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(var u=0;u4)return null;var r=[];for(var o in t){var i=n.parseLength(t[o]);if(!i)return null;r.push(i)}return r},function(t,n,r,o){var i;if(1===o.length)i=[o[0],o[0],o[0],o[0]];else if(2===o.length)i=[o[0],o[1],o[0],o[1]];else if(3===o.length)i=[o[0],o[1],o[2],o[1]];else{if(4!==o.length)return null;i=[o[0],o[1],o[2],o[3]]}var a=r.styleAttrs[e.byName.writingMode.qname];if("lrtb"===a||"lr"===a)i=[i[0],i[3],i[2],i[1]];else if("rltb"===a||"rl"===a)i=[i[0],i[1],i[2],i[3]];else if("tblr"===a)i=[i[3],i[0],i[1],i[2]];else{if("tbrl"!==a&&"tb"!==a)return null;i=[i[3],i[2],i[1],i[0]]}var u=[];for(var s in i)if(0===i[s].value)u[s]=0;else if("%"===i[s].unit)"0"===s||"2"===s?u[s]=r.styleAttrs[e.byName.extent.qname].h*i[s].value/100:u[s]=r.styleAttrs[e.byName.extent.qname].w*i[s].value/100;else if("em"===i[s].unit)u[s]=r.styleAttrs[e.byName.fontSize.qname]*i[s].value;else if("c"===i[s].unit)u[s]=i[s].value/t.cellResolution.h;else{if("px"!==i[s].unit)return null;u[s]=i[s].value/t.pxDimensions.h}return u}),new r(t.ns_tts,"showBackground","always",["region"],(!1),(!0),function(e){return e},null),new r(t.ns_tts,"textAlign","start",["p"],(!0),(!0),function(e){return e},function(e,t,n,r){return"left"===r?"start":"right"===r?"end":r}),new r(t.ns_tts,"textDecoration","none",["span"],(!0),(!0),function(e){return e.split(" ")},null),new r(t.ns_tts,"textOutline","none",["span"],(!0),(!0),function(e){if("none"===e)return e;var t={},r=e.split(" ");if(0===r.length||r.length>2)return null;var o=n.parseColor(r[0]);if(t.color=o,null!==o&&r.shift(),1!==r.length)return null;var i=n.parseLength(r[0]); +return i?(t.thickness=i,t):null},function(t,n,r,o){if("none"===o)return o;var i={};if(null===o.color?i.color=r.styleAttrs[e.byName.color.qname]:i.color=o.color,"%"===o.thickness.unit)i.thickness=r.styleAttrs[e.byName.fontSize.qname]*o.thickness.value/100;else if("em"===o.thickness.unit)i.thickness=r.styleAttrs[e.byName.fontSize.qname]*o.thickness.value;else if("c"===o.thickness.unit)i.thickness=o.thickness.value/t.cellResolution.h;else{if("px"!==o.thickness.unit)return null;i.thickness=o.thickness.value/t.pxDimensions.h}return i}),new r(t.ns_tts,"unicodeBidi","normal",["span","p"],(!1),(!0),function(e){return e},null),new r(t.ns_tts,"visibility","visible",["body","div","p","region","span"],(!0),(!0),function(e){return e},null),new r(t.ns_tts,"wrapOption","wrap",["span"],(!0),(!0),function(e){return e},null),new r(t.ns_tts,"writingMode","lrtb",["region"],(!1),(!0),function(e){return e},null),new r(t.ns_tts,"zIndex","auto",["region"],(!1),(!0),function(e){var t;return"auto"===e?t=e:(t=parseInt(e),isNaN(t)&&(t=null)),t},null),new r(t.ns_ebutts,"linePadding","0c",["p"],(!0),(!1),n.parseLength,function(e,t,n,r){return"c"===r.unit?r.value/e.cellResolution.h:null}),new r(t.ns_ebutts,"multiRowAlign","auto",["p"],(!0),(!1),function(e){return e},null),new r(t.ns_smpte,"backgroundImage",null,["div"],(!1),(!1),function(e){return e},null),new r(t.ns_itts,"forcedDisplay","false",["body","div","p","region","span"],(!0),(!0),function(e){return"true"===e},null)],e.byQName={};for(var o in e.all)e.byQName[e.all[o].qname]=e.all[o];e.byName={};for(var i in e.all)e.byName[e.all[i].name]=e.all[i]}(t,"undefined"==typeof imscNames?n(244):imscNames,"undefined"==typeof imscUtils?n(515):imscUtils)},function(e,t,n){function r(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=a,this.__views__=[]}var o=n(161),i=n(354),a=4294967295;r.prototype=o(i.prototype),r.prototype.constructor=r,e.exports=r},function(e,t,n){function r(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}var o=n(161),i=n(354);r.prototype=o(i.prototype),r.prototype.constructor=r,e.exports=r},function(e,t,n){function r(e){var t=-1,n=e?e.length:0;for(this.clear();++to?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r=t||n<0||P&&r>=b}function p(){var e=i();return d(e)?h(e):void(T=setTimeout(p,f(e)))}function h(e){return clearTimeout(T),T=void 0,R&&g?r(e):(g=_=void 0,E)}function v(){void 0!==T&&clearTimeout(T),w=S=0,g=_=T=void 0}function m(){return void 0===T?E:h(i())}function y(){var e=i(),n=d(e);if(g=arguments,_=this,w=e,n){if(void 0===T)return l(w);if(P)return clearTimeout(T),T=setTimeout(p,t),r(w)}return void 0===T&&(T=setTimeout(p,t)),E}var g,_,b,E,T,w=0,S=0,O=!1,P=!1,R=!0;if("function"!=typeof e)throw new TypeError(u);return t=a(t)||0,o(n)&&(O=!!n.leading,P="maxWait"in n,b=P?s(a(n.maxWait)||0,t):b,R="trailing"in n?!!n.trailing:R),y.cancel=v,y.flush=m,y}var o=n(39),i=n(577),a=n(373),u="Expected a function",s=Math.max,c=Math.min;e.exports=r},function(e,t,n){function r(e,t){if(t=u(t,3),s(e)){var n=a(e,t);return n>-1?e[n]:void 0}return i(e,t,o)}var o=n(162),i=n(352),a=n(528),u=n(34),s=n(27);e.exports=r},function(e,t,n){function r(e,t,n){return o(i,e,t,n)}var o=n(1179),i=n(1182);e.exports=r},function(e,t,n){e.exports={after:n(1152),ary:n(362),before:n(566),bind:n(1155),bindKey:n(1156),curry:n(568),curryRight:n(1159),debounce:n(364),defer:n(1162),delay:n(1163),flip:n(1172),memoize:n(574),negate:n(1199),once:n(1200),overArgs:n(1201),partial:n(578),partialRight:n(1202),rearg:n(579),rest:n(40),spread:n(580),throttle:n(372),unary:n(1215),wrap:n(1220)}},function(e,t,n){function r(e,t){return o(e,t)}var o=n(353);e.exports=r},function(e,t,n){function r(e,t){var n=u(e)?o:a;return n(e,i(t,3))}var o=n(110),i=n(34),a=n(1082),u=n(27);e.exports=r},function(e,t,n){e.exports={assign:n(1153),assignIn:n(565),assignInWith:n(363),assignWith:n(1154),create:n(1158),defaults:n(1160),defaultsDeep:n(1161),entries:n(1164),entriesIn:n(1165),extend:n(1167),extendWith:n(1168),findKey:n(570),findLastKey:n(1171),forIn:n(1175),forInRight:n(1176),forOwn:n(1177),forOwnRight:n(1178),functions:n(1187),functionsIn:n(1188),get:n(138),has:n(112),hasIn:n(571),invert:n(1190),invertBy:n(1191),invoke:n(1192),keys:n(54),keysIn:n(71),mapKeys:n(1196),mapValues:n(1197),merge:n(1198),mergeWith:n(575),omit:n(98),omitBy:n(371),pick:n(263),pickBy:n(1203),result:n(1205),set:n(1206),setWith:n(1207),toPairs:n(374),toPairsIn:n(581),transform:n(1214),unset:n(1216),update:n(1217),updateWith:n(1218),values:n(264),valuesIn:n(1219)}},function(e,t,n){function r(e,t){return t=o(t),i(e,function(e,n){return!t(e,n)})}var o=n(34),i=n(537);e.exports=r},function(e,t,n){function r(e,t,n){var r=!0,u=!0;if("function"!=typeof e)throw new TypeError(a);return i(n)&&(r="leading"in n?!!n.leading:r,u="trailing"in n?!!n.trailing:u),o(e,t,{leading:r,maxWait:t,trailing:u})}var o=n(364),i=n(39),a="Expected a function";e.exports=r},function(e,t,n){function r(e){if("number"==typeof e)return e;if(a(e))return u;if(i(e)){var t=o(e.valueOf)?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var n=l.test(e);return n||f.test(e)?d(e.slice(2),n?2:8):c.test(e)?u:+e}var o=n(83),i=n(39),a=n(207),u=NaN,s=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,f=/^0o[0-7]+$/i,d=parseInt;e.exports=r},function(e,t,n){var r=n(551),o=n(54),i=r(o);e.exports=i},function(e,t,n){(function(t){(function(){var n,r,o,i,a,u;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof t&&null!==t&&t.hrtime?(e.exports=function(){return(n()-a)/1e6},r=t.hrtime,n=function(){var e;return e=r(),1e9*e[0]+e[1]},i=n(),u=1e9*t.uptime(),a=i-u):Date.now?(e.exports=function(){return Date.now()-o},o=Date.now()):(e.exports=function(){return(new Date).getTime()-o},o=(new Date).getTime())}).call(this)}).call(t,n(114))},function(e,t,n){"use strict";e.exports=n(1242)},function(e,t,n){"use strict";function r(e,t){return Array.isArray(t)&&(t=t[1]),t?t.nextSibling:e.firstChild}function o(e,t,n){l.insertTreeBefore(e,t,n)}function i(e,t,n){Array.isArray(t)?u(e,t[0],t[1],n):v(e,t,n)}function a(e,t){if(Array.isArray(t)){var n=t[1];t=t[0],s(e,t,n),e.removeChild(n)}e.removeChild(t)}function u(e,t,n,r){for(var o=t;;){var i=o.nextSibling;if(v(e,o,r),o===n)break;o=i}}function s(e,t,n){for(;;){var r=t.nextSibling;if(r===n)break;e.removeChild(r)}}function c(e,t,n){var r=e.parentNode,o=e.nextSibling;o===t?n&&v(r,document.createTextNode(n),o):n?(h(o,n),s(r,o,t)):s(r,e,t)}var l=n(171),f=n(1234),d=(n(35),n(72),n(386)),p=n(270),h=n(602),v=d(function(e,t,n){e.insertBefore(t,n)}),m=f.dangerouslyReplaceNodeWithMarkup,y={dangerouslyReplaceNodeWithMarkup:m,replaceDelimitedText:c,processUpdates:function(e,t){for(var n=0;n-1?void 0:a("96",e),!c.plugins[n]){t.extractEvents?void 0:a("97",e),c.plugins[n]=t;var r=t.eventTypes;for(var i in r)o(r[i],t,i)?void 0:a("98",i,e)}}}function o(e,t,n){c.eventNameDispatchConfigs.hasOwnProperty(n)?a("99",n):void 0,c.eventNameDispatchConfigs[n]=e;var r=e.phasedRegistrationNames;if(r){for(var o in r)if(r.hasOwnProperty(o)){var u=r[o];i(u,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){c.registrationNameModules[e]?a("100",e):void 0,c.registrationNameModules[e]=t,c.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(23),u=(n(11),null),s={},c={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){u?a("101"):void 0,u=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];s.hasOwnProperty(n)&&s[n]===o||(s[n]?a("102",n):void 0,s[n]=o,t=!0)}t&&r()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return c.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var r in n)if(n.hasOwnProperty(r)){var o=c.registrationNameModules[n[r]];if(o)return o}}return null},_resetEventPlugins:function(){u=null;for(var e in s)s.hasOwnProperty(e)&&delete s[e];c.plugins.length=0;var t=c.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=c.registrationNameModules;for(var o in r)r.hasOwnProperty(o)&&delete r[o]}};e.exports=c},function(e,t,n){"use strict";function r(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function o(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function a(e,t,n,r){var o=e.type||"unknown-event";e.currentTarget=y.getNodeFromInstance(r),t?v.invokeGuardedCallbackWithCatch(o,n,e):v.invokeGuardedCallback(o,n,e),e.currentTarget=null}function u(e,t){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var o=0;o0&&r.length<20?n+" (keys: "+r.join(", ")+")":n}function i(e,t){var n=s.get(e);if(!n){return null}return n}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=n(23),s=(n(101),n(210)),c=(n(72),n(84)),l=(n(11),n(16),{isMounted:function(e){var t=s.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){l.validateCallback(t,n);var o=i(e);return o?(o._pendingCallbacks?o._pendingCallbacks.push(t):o._pendingCallbacks=[t],void r(o)):null},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],r(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,r(t))},enqueueReplaceState:function(e,t){var n=i(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,r(n))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){var o=n._pendingStateQueue||(n._pendingStateQueue=[]);o.push(t),r(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,r(e)},validateCallback:function(e,t){e&&"function"!=typeof e?u("122",t,o(e)):void 0}});e.exports=l},function(e,t){"use strict";var n=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e};e.exports=n},function(e,t){"use strict";function n(e){var t,n=e.keyCode;return"charCode"in e?(t=e.charCode,0===t&&13===n&&(t=13)):t=n,t>=32||13===t?t:0}e.exports=n},function(e,t){"use strict";function n(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var r=o[e];return!!r&&!!n[r]}function r(e){return n}var o={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=r},function(e,t){"use strict";function n(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=n},function(e,t,n){"use strict";function r(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var a=document.createElement("div");a.setAttribute(n,"return;"),r="function"==typeof a[n]}return!r&&o&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var o,i=n(47);i.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=r},function(e,t){"use strict";function n(e,t){var n=null===e||e===!1,o=null===t||t===!1;if(n||o)return n===o;var i="undefined"==typeof e?"undefined":r(e),a="undefined"==typeof t?"undefined":r(t);return"string"===i||"number"===i?"string"===a||"number"===a:"object"===a&&e.type===t.type&&e.key===t.key}var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports=n},function(e,t,n){"use strict";var r=(n(29),n(62)),o=(n(16),r);e.exports=o},function(e,t){"use strict";function n(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=0);return t}t.__esModule=!0,t["default"]=n,e.exports=t["default"]},function(e,t){"use strict";function n(e,t,n){for(var r in t)if(t.hasOwnProperty(r)){if(0!==n[r])return!1;var o="number"==typeof t[r]?t[r]:t[r].val;if(e[r]!==o)return!1}return!0}t.__esModule=!0,t["default"]=n,e.exports=t["default"]},function(e,t){"use strict";function n(e,t,n,o,i,a,u){var s=-i*(t-o),c=-a*n,l=s+c,f=n+l*e,d=t+f*e;return Math.abs(f)-1?r:I;l.WritableState=c;var x=n(195);x.inherits=n(160);var N={deprecate:n(1332)},M=n(615),k=n(401).Buffer,D=o.Uint8Array||function(){},L=n(614);x.inherits(l,M),c.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(c.prototype,"buffer",{get:N.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}();var j;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(j=Function.prototype[Symbol.hasInstance],Object.defineProperty(l,Symbol.hasInstance,{value:function(e){return!!j.call(this,e)||e&&e._writableState instanceof c}})):j=function(e){return e instanceof this},l.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},l.prototype.write=function(e,t,n){var r=this._writableState,o=!1,i=u(e)&&!r.objectMode;return i&&!k.isBuffer(e)&&(e=a(e)),"function"==typeof t&&(n=t,t=null),i?t="buffer":t||(t=r.defaultEncoding),"function"!=typeof n&&(n=s),r.ended?f(this,n):(i||d(this,r,e,n))&&(r.pendingcb++,o=h(this,r,i,e,t,n)),o},l.prototype.cork=function(){var e=this._writableState;e.corked++},l.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||E(this,e))},l.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},l.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},l.prototype._writev=null,l.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||P(this,r,n)},Object.defineProperty(l.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),l.prototype.destroy=L.destroy,l.prototype._undestroy=L.undestroy,l.prototype._destroy=function(e,t){this.end(),t(e)}}).call(t,n(114),n(402).setImmediate,n(36))},function(e,t,n){t=e.exports=n(612),t.Stream=t,t.Readable=t,t.Writable=n(399),t.Duplex=n(141),t.Transform=n(613),t.PassThrough=n(1316)},function(e,t,n){function r(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return a(e,t,n)}var i=n(191),a=i.Buffer;a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=i:(r(i,t),t.Buffer=o),r(a,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return a(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=a(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}},function(e,t,n){(function(e,r){function o(e,t){this._id=e,this._clearFn=t}var i=n(114).nextTick,a=Function.prototype.apply,u=Array.prototype.slice,s={},c=0;t.setTimeout=function(){return new o(a.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new o(a.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},t.setImmediate="function"==typeof e?e:function(e){var n=c++,r=!(arguments.length<2)&&u.call(arguments,1);return s[n]=!0,i(function(){s[n]&&(r?e.apply(null,r):e.call(null),t.clearImmediate(n))}),n},t.clearImmediate="function"==typeof r?r:function(e){delete s[e]}}).call(t,n(402).setImmediate,n(402).clearImmediate)},function(e,t,n){"use strict";function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t); +}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=n(1174),s=n.n(u),c=n(262),l=n.n(c),f=n(20);n.d(t,"a",function(){return h}),n.d(t,"b",function(){return v});var d=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};a(this,t);var i=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.request=e.req,i.response=e,i.meta=n,i.query=o,i}return o(t,e),d(t,[{key:"appendResponse",value:function(e){return new v([this,e])}}]),t}(p),v=function(e){function t(e){a(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));n.metas=e.map(function(e){return e.meta}),n.querys=e.map(function(e){return e.query}),n.apiResponses=e;var o=new Set,i=[f.a,f.e,f.d,f.f,f.h];return s()(e,function(e){s()(e.results,function(e){o.has(e.uuid)||(o.add(e.uuid),n.results.push(e))}),s()(i,function(t){var r=n.typeToTable[t];Object.assign(r,e.typeToTable[t])})}),n}return o(t,e),d(t,[{key:"appendResponse",value:function(e){var n=this.apiResponses.slice();return n.push(e),new t(n)}},{key:"lastResponse",get:function(){return l()(this.apiResponses)}},{key:"lastQuery",get:function(){return l()(this.querys)}},{key:"lastMeta",get:function(){return l()(this.meta)}},{key:"query",get:function(){return this.latQuery}}]),t}(p)},function(e,t,n){"use strict";var r=n(170),o=n.n(r),i=n(112),a=n.n(i),u=n(41),s=n(630),c=n(65),l=n(38),f=n(623),d=Object.assign||function(e){for(var t=1;t1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],r=arguments[2],o=arguments[3],i=function(){return{datum:t.apply(void 0,arguments),archiver:r,tester:o}},a=n.i(c.createSelector)(e,i);return n.i(s.connect)(a)(y)},_=function(e,t){for(var n=Object.keys(e),r=0;r-1?"/":n.i(o.b)(r)}var a=e.currentPageIndex-1;if(!t||0===t.length)return n.i(o.b)(e.history[a]);for(var u=e.history[a];a>0&&t.filter(function(e){return e===u.url}).length>0;)a--,u=e.history[a];return t.indexOf(u.url)<0?n.i(o.b)(u):"/"}var o=n(104);t.a=r},function(e,t,n){"use strict";var r=n(76);n.d(t,"a",function(){return i});var o=new Set([r.a.TOP,r.a.CONTROVERSIAL]),i=function(e,t){if(o.has(t))return e.t||e.time||r.a.PAST_DAY}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(142),u=n.n(a),s=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]&&arguments[1];return t?o(e.toString()):e>=l-f?Math.floor(e/u)+"b":e>=c-f&&e=s-f&&e=u-f&&e=a-f&&e=i&&e1&&void 0!==arguments[1]&&arguments[1],n=arguments[2];switch(e){case o.e.ADFEED:return{visitTrigger:"ad_feed_button"};case o.e.MINIMAL:return{visitTrigger:"banner_button",displayClass:{xpromoMinimal:!0,fadeOut:t}};case o.e.PERSIST:return{visitTrigger:"persist_banner_button",displayClass:{xpromoPersist:!0,fadeOut:t,visiblePersist:n}};case o.e.USUAL:default:return{visitTrigger:"interstitial_button",displayClass:{}}}}var o=n(5);t.a=r},function(e,t){},function(e,t,n){function r(e){if(e&&!s(e))throw new Error("Unknown encoding: "+e)}function o(e){return e.toString(this.encoding)}function i(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function a(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}var u=n(191).Buffer,s=u.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},c=t.StringDecoder=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),r(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=i;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=a;break;default:return void(this.write=o)}this.charBuffer=new u(6),this.charReceived=0,this.charLength=0};c.prototype.write=function(e){for(var t="";this.charLength;){var n=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived=55296&&r<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var o=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,o),o-=this.charReceived),t+=e.toString(this.encoding,0,o);var o=t.length-1,r=t.charCodeAt(o);if(r>=55296&&r<=56319){var i=this.surrogateSize;return this.charLength+=i,this.charReceived+=i,this.charBuffer.copy(this.charBuffer,i,0,i),e.copy(this.charBuffer,0,0,i),t.substring(0,o)}return t},c.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},c.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,o=this.encoding;t+=r.slice(0,n).toString(o)}return t}},function(e,t,n){(function(r){var o,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(){function a(e,t){if(t){for(var n=Je,r=e.split("."),o=0;o=n){e=!0;break e}}catch(r){}e=!1}else e=!1;return e}function A(){try{var e=(Y()&&z()?window.top.location.search:window.location.search).substring(1).match(/_branch_match_id=([^&]*)/);if(e&&1<=e.length)return e[1]}catch(t){}}function C(e){return e.replace(/(\-\w)/g,function(e){return e[1].toUpperCase()})}function x(e){var t,n,r,o,i,a,u="",s=0;for(e=e.replace(/\r\n/g,"\n"),n="",r=0;ro?n+=String.fromCharCode(o):(127o?n+=String.fromCharCode(o>>6|192):(n+=String.fromCharCode(o>>12|224),n+=String.fromCharCode(o>>6&63|128)),n+=String.fromCharCode(63&o|128));for(e=n;s>2,t=(3&t)<<4|n>>4,i=(15&n)<<2|r>>6,a=63&r,isNaN(n)?a=i=64:isNaN(r)&&(a=64),u=u+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(o)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(t)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(i)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a);return u}function N(e,t,n){"function"==typeof e.addEventListener?e.addEventListener(t,n,void 0):"function"==typeof e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n}function M(e){return e?(-1/g,">")}function q(e,t,n){if(n){if("object"===("undefined"==typeof n?"undefined":i(n))&&!Object.keys(n).length)return e;e[t]=n}return e}function V(){var e,t={};return e={},e=q(e,"$og_title",D("title")),e=q(e,"$og_description",D("description")),e=q(e,"$og_image_url",D("image")),e=(e=q(e,"$og_video",D("video")))&&0e.length?"function"==typeof t&&t():(e[0].appendChild(r),"function"==typeof t&&N(r,"error",t),"function"==typeof n&&N(r,"load",n))}function he(e,t,n,r,o){var i="branch_callback__"+e.g++;e=0<=t.indexOf("branch.io")?"&data=":"&post_data=",n="POST"===r?encodeURIComponent(x(f(n))):"";var a=window.setTimeout(function(){window[i]=function(){},o(Error("Request timed out"),null,504)},rt);window[i]=function(e){window.clearTimeout(a),o(null,e)},pe(t+(0>t.indexOf("?")?"?":"")+(n?e+n:"")+(0<=t.indexOf("/c/")?"&click=1":"")+"&callback="+i,function(){o(Error("Request blocked by client, probably adblock"),null)},function(){try{"function"==typeof this.remove?this.remove():this.parentNode.removeChild(this)}catch(e){}delete window[i]})}function ve(e,t,n,r,o,i,a){var u=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");u.ontimeout=function(){i(Error("Request timed out"),null,504)},u.onerror=function(e){i(Error(e.error||"Error in API: "+u.status),null,u.status)},u.onreadystatechange=function(){var e;if(4===u.readyState)if(200===u.status){if(a)e=u.responseText;else try{e=v(u.responseText)}catch(t){e={}}i(null,e,u.status)}else 402===u.status?i(Error("Not enough credits to redeem."),null,u.status):"4"!==u.status.toString().substring(0,1)&&"5"!==u.status.toString().substring(0,1)||(u.responseURL&&u.responseURL.includes("v2/event")?i(u.responseText,null,u.status):i(Error("Error in API: "+u.status),null,u.status))};try{u.open(r,t,!0),u.timeout=rt,u.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),u.send(n)}catch(s){o.set("use_jsonp",!0),he(e,t,n,r,i)}}function me(e,t,n,r,o){function i(){r.get("use_jsonp")||t.U?he(e,s,n,t.method,a):ve(e,s,c,t.method,r,a)}function a(e,t,n){e&&0=new Date(n):!n,o=t.F;return"number"==typeof o&&(o=!1),!document.getElementById("branch-banner")&&!document.getElementById("branch-banner-iframe")&&(n||o)&&(t.ka&&!R()||t.J&&"android"===R()||t.la&&"ipad"===R()||t.N&&"ios"===R()||t.K&&"blackberry"===R()||t.M&&"windows_phone"===R()||t.L&&"kindle"===R())}function Se(e,t){return"#branch-banner-iframe { position: "+("top"!==t||e?"fixed":"absolute")+"; }\n"}function Oe(e,t){var n=".branch-banner-is-active { -webkit-transition: all 0.375s ease; transition: all 00.375s ease; }\n#branch-banner { width:100%; z-index: 99999; font-family: Helvetica Neue, Sans-serif; -webkit-font-smoothing: antialiased; -webkit-user-select: none; -moz-user-select: none; user-select: none; -webkit-transition: all 0.25s ease; transition: all 00.25s ease; }\n#branch-banner .button{ border: 1px solid "+(e.buttonBorderColor||("dark"===e.theme?"transparent":"#ccc"))+"; background: "+(e.buttonBackgroundColor||"#fff")+"; color: "+(e.buttonFontColor||"#000")+"; cursor: pointer; margin-top: 0px; font-size: 14px; display: inline-block; margin-left: 5px; font-weight: 400; text-decoration: none; border-radius: 4px; padding: 6px 12px; transition: all .2s ease;}\n#branch-banner .button:hover { border: 1px solid "+(e.buttonBorderColorHover||("dark"===e.theme?"transparent":"#BABABA"))+"; background: "+(e.buttonBackgroundColorHover||"#E0E0E0")+"; color: "+(e.buttonFontColorHover||"#000")+";}\n#branch-banner .button:focus { outline: none; }\n#branch-banner * { margin-right: 4px; position: relative; line-height: 1.2em; }\n#branch-banner-close { font-weight: 400; cursor: pointer; float: left; z-index: 2;padding: 0 5px 0 5px; margin-right: 0; }\n#branch-banner .content { width:100%; overflow: hidden; height: 76px; background: rgba(255, 255, 255, 0.95); color: #333; "+("top"===e.position?"border-bottom":"border-top")+': 1px solid #ddd; }\n#branch-banner-close { color: #000; font-size: 24px; top: 14px; opacity: .5; transition: opacity .3s ease; }\n#branch-banner-close:hover { opacity: 1; }\n#branch-banner .title { font-size: 18px; font-weight:bold; color: #555; }\n#branch-banner .description { font-size: 12px; font-weight: normal; color: #777; max-height: 30px; overflow: hidden; }\n#branch-banner .icon { float: left; padding-bottom: 40px; margin-right: 10px; margin-left: 5px; }\n#branch-banner .icon img { width: 63px; height: 63px; margin-right: 0; }\n#branch-banner .reviews { font-size:13px; margin: 1px 0 3px 0; color: #777; }\n#branch-banner .reviews .star { display:inline-block; position: relative; margin-right:0; }\n#branch-banner .reviews .star span { display: inline-block; margin-right: 0; color: #555; position: absolute; top: 0; left: 0; }\n#branch-banner .reviews .review-count { font-size:10px; }\n#branch-banner .reviews .star .half { width: 50%; overflow: hidden; display: block; }\n#branch-banner .content .left { padding: 6px 5px 6px 5px; }\n#branch-banner .vertically-align-middle { top: 50%; transform: translateY(-50%); -webkit-transform: translateY(-50%); -ms-transform: translateY(-50%); }\n#branch-banner .details > * { display: block; }\n#branch-banner .content .left { height: 63px; }\n#branch-banner .content .right { float: right; height: 63px; margin-bottom: 50px; padding-top: 22px; z-index: 1; }\n#branch-banner .right > div { float: left; }\n#branch-banner-action { top: 17px; }\n#branch-banner .content:after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 1px; background: rgba(0, 0, 0, 0.2); }\n#branch-banner .theme-dark.content { background: rgba(51, 51, 51, 0.95); }\n#branch-banner .theme-dark #branch-banner-close{ color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .15); }\n#branch-banner .theme-dark .details { text-shadow: 0 1px 1px rgba(0, 0, 0, .15); }\n#branch-banner .theme-dark .title { color: #fff; }\n#branch-banner .theme-dark .description { color: #fff; }\n#branch-banner .theme-dark .reviews { color: #888; }\n#branch-banner .theme-dark .reviews .star span{ color: #fff; }\n#branch-banner .theme-dark .reviews .review-count{ color: #fff; }\n',r=R(); +"ios"!==r&&"ipad"!==r||!e.N?"android"===r&&e.J?n+="#branch-banner { position: absolute; }\n#branch-banner .content .left .details .title { font-size: 12px; }\n#branch-mobile-action { white-space: nowrap; }\n#branch-banner .content .left .details .description { font-size: 11px; font-weight: normal; }\n@media only screen and (min-device-width: 320px) and (max-device-width: 350px) { #branch-banner .content .right { max-width: 120px; } }\n@media only screen and (min-device-width: 351px) and (max-device-width: 400px) and (orientation: landscape) { #branch-banner .content .right { max-width: 150px; } }\n@media only screen and (min-device-width: 401px) and (max-device-width: 480px) and (orientation: landscape) { #branch-banner .content .right { max-width: 180px; } }\n#branch-banner #branch-banner-close,#branch-banner .theme-dark #branch-banner-close { height:17px; width: 17px; text-align: center; font-size: 15px; top: 24px; border-radius:14px; border:0; line-height:14px; color:#b1b1b3; background:#efefef; padding: 0; opacity: 1; }\n#branch-banner .button { top: 0; text-decoration:none; border-bottom: 3px solid #A4C639; padding: 0 10px; height: 24px; line-height: 24px; text-align: center; color: #fff; margin-top: 2px; font-weight: bold; background-color: #A4C639; border-radius: 5px; }\n#branch-banner .button:hover { border-bottom:3px solid #8c9c29; background-color: #c1d739; }\n":"blackberry"===r&&e.K?n+="#branch-banner { position: absolute; }\n#branch-banner .content .left .details .title { font-size: 12px; }\n#branch-mobile-action { white-space: nowrap; }\n#branch-banner .content .left .details .description { font-size: 11px; font-weight: normal; }\n@media only screen and (min-device-width: 320px) and (max-device-width: 350px) { #branch-banner .content .right { max-width: 120px; } }\n@media only screen and (min-device-width: 351px) and (max-device-width: 400px) and (orientation: landscape) { #branch-banner .content .right { max-width: 150px; } }\n@media only screen and (min-device-width: 401px) and (max-device-width: 480px) and (orientation: landscape) { #branch-banner .content .right { max-width: 180px; } }\n":"windows_phone"===r&&e.M?n+="#branch-banner { position: absolute; }\n#branch-banner .content .left .details .title { font-size: 12px; }\n#branch-mobile-action { white-space: nowrap; }\n#branch-banner .content .left .details .description { font-size: 11px; font-weight: normal; }\n@media only screen and (min-device-width: 320px) and (max-device-width: 350px) { #branch-banner .content .right { max-width: 120px; } }\n@media only screen and (min-device-width: 351px) and (max-device-width: 400px) and (orientation: landscape) { #branch-banner .content .right { max-width: 150px; } }\n@media only screen and (min-device-width: 401px) and (max-device-width: 480px) and (orientation: landscape) { #branch-banner .content .right { max-width: 180px; } }\n":"kindle"===r&&e.L?n+="#branch-banner { position: absolute; }\n#branch-banner .content .left .details .title { font-size: 12px; }\n#branch-mobile-action { white-space: nowrap; }\n#branch-banner .content .left .details .description { font-size: 11px; font-weight: normal; }\n@media only screen and (min-device-width: 320px) and (max-device-width: 350px) { #branch-banner .content .right { max-width: 120px; } }\n@media only screen and (min-device-width: 351px) and (max-device-width: 400px) and (orientation: landscape) { #branch-banner .content .right { max-width: 150px; } }\n@media only screen and (min-device-width: 401px) and (max-device-width: 480px) and (orientation: landscape) { #branch-banner .content .right { max-width: 180px; } }\n":(n+="#branch-banner { position: fixed; min-width: 600px; }\n#branch-sms-block * { vertical-align: bottom; font-size: 15px; }\n#branch-sms-block { display: inline-block; }\n#branch-banner input{ border: 1px solid #ccc; font-weight: 400; border-radius: 4px; height: 30px; padding: 5px 7px 4px; width: 145px; font-size: 14px;}\n#branch-banner input:focus { outline: none; }\n#branch-banner input.error { color: rgb(194, 0, 0); border-color: rgb(194, 0, 0); }\n#branch-banner .branch-icon-wrapper { width:25px; height: 25px; vertical-align: middle; display: inline-block; margin-top: -18px; }\n@keyframes branch-spinner { 0% { transform: rotate(0deg); -webkit-transform: rotate(0deg); -ms-transform: rotate(0deg); } 100% { transform: rotate(360deg); -webkit-transform: rotate(360deg); -ms-transform: rotate(360deg); } }\n@-webkit-keyframes branch-spinner { 0% { transform: rotate(0deg); -webkit-transform: rotate(0deg); -ms-transform: rotate(0deg); } 100% { transform: rotate(360deg); -webkit-transform: rotate(360deg); -ms-transform: rotate(360deg); } }\n#branch-spinner { -webkit-animation: branch-spinner 1s ease-in-out infinite; animation: branch-spinner 1s ease-in-out infinite; transition: all 0.7s ease-in-out; border:2px solid #ddd; border-bottom-color:#428bca; width:80%; height:80%; border-radius:50%; -webkit-font-smoothing: antialiased !important; }\n#branch-banner .theme-dark input { border-color: transparent; }\n",n=window.ActiveXObject?n+"#branch-banner .checkmark { color: #428bca; font-size: 22px; }\n":n+"#branch-banner .checkmark { stroke: #428bca; stroke-dashoffset: 745.74853515625; stroke-dasharray: 745.74853515625; -webkit-animation: dash 2s ease-out forwards; animation: dash 2s ease-out forwards; }\n@-webkit-keyframes dash { 0% { stroke-dashoffset: 745.748535 15625; } 100% { stroke-dashoffset: 0; } }\n@keyframes dash { 0% { stroke-dashoffset: 745.74853515625; } 100% { stroke-dashoffset: 0; } }\n"):n+="#branch-banner { position: absolute; }\n#branch-banner .content .left .details .title { font-size: 12px; }\n#branch-mobile-action { white-space: nowrap; }\n#branch-banner .content .left .details .description { font-size: 11px; font-weight: normal; }\n@media only screen and (min-device-width: 320px) and (max-device-width: 350px) { #branch-banner .content .right { max-width: 120px; } }\n@media only screen and (min-device-width: 351px) and (max-device-width: 400px) and (orientation: landscape) { #branch-banner .content .right { max-width: 150px; } }\n@media only screen and (min-device-width: 401px) and (max-device-width: 480px) and (orientation: landscape) { #branch-banner .content .right { max-width: 180px; } }\n",n+=e.$,e.w&&(n+="body { margin: 0; }\n",r=document.createElement("style"),r.type="text/css",r.id="branch-iframe-css",r.innerHTML="body { -webkit-transition: all 0.375s ease; transition: all 00.375s ease; }\n#branch-banner-iframe { box-shadow: 0 0 5px rgba(0, 0, 0, .35); width: 1px; min-width:100%; left: 0; right: 0; border: 0; height: 76px; z-index: 99999; -webkit-transition: all 0.25s ease; transition: all 00.25s ease; }\n"+(R()?Se(e.ea,e.position):Se(e.aa,e.position)),(document.head||document.getElementsByTagName("head")[0]).appendChild(r)),r=document.createElement("style"),r.type="text/css",r.id="branch-css",r.innerHTML=n,n=e.w?t.contentWindow.document:document,(n=n.head||n.getElementsByTagName("head")[0])&&"function"==typeof n.appendChild&&n.appendChild(r),"top"===e.position?t.style.top="-76px":"bottom"===e.position&&(t.style.bottom="-76px")}function Pe(e,t){var n;if(e.u||e.H){if(e.u){n="";for(var r=0;5>r;r++)n+='',e.u>r&&(n+=r+1>e.u&&e.u%1?'':' '),n+="";n=''+n+""}else n="";n='
'+n+(e.H?''+e.H+"":"")+"
"}else n="";return'
'+t+'
'+(e.ba?"":'
×
')+'
Application icon
'+e.title+"
"+n+'
'+e.description+"
"}function Re(e,t){var n='";if(e.w){var r=document.createElement("iframe");r.src="about:blank",r.style.overflow="hidden",r.scrolling="no",r.id="branch-banner-iframe",r.className="branch-animation",document.body.appendChild(r);var o=R(),n='
'+Pe(e,n)+"";r.contentWindow.document.open(),r.contentWindow.document.write(n),r.contentWindow.document.close()}else r=document.createElement("div"),r.id="branch-banner",r.className="branch-animation",r.innerHTML=Pe(e,n),document.body.appendChild(r);return n=r}function Ie(e,t,n,r){function o(){a(),c.style.background="#FFD4D4",s.className="error",setTimeout(function(){c.style.background="#FFFFFF",s.className=""},2e3)}function i(){u=e.createElement("div"),u.className="branch-icon-wrapper",u.id="branch-checkmark",u.style="opacity: 0;",u.innerHTML=window.ActiveXObject?'':'',f.appendChild(u),c.style.opacity="0",s.style.opacity="0",l.style.opacity="0",setTimeout(function(){u.style.opacity="1"},20),s.value=""}function a(){c.removeAttribute("disabled"),s.removeAttribute("disabled"),c.style.opacity="1",s.style.opacity="1",l.style.opacity="0"}var u,s=e.getElementById("branch-sms-phone"),c=e.getElementById("branch-sms-send"),l=e.getElementById("branch-loader-wrapper"),f=e.getElementById("branch-sms-form-container");if(s){var d=s.value;/^\d{7,}$/.test(d.replace(/[\s()+\-\.]|ext/gi,""))?(Xe(t,"willSendBannerSMS"),c.setAttribute("disabled",""),s.setAttribute("disabled",""),c.style.opacity=".4",s.style.opacity=".4",l.style.opacity="1",s.className="",t.sendSMS(d,r,n,function(e){e?(Xe(t,"sendBannerSMSError"),o()):(Xe(t,"didSendBannerSMS"),i(),setTimeout(function(){f.removeChild(u),a()},3e3))})):o()}}function Ae(e,t,n,r){function o(e,n){"function"==typeof e&&(n=e,e={}),e=e||{},"top"===t.position?a.style.top="-76px":"bottom"===t.position&&(a.style.bottom="-76px"),"number"==typeof t.F?r.set("hideBanner",be(t.F),!0):r.set("hideBanner",!0,!0),e.T?("top"===t.position?document.body.style.marginTop=c:"bottom"===t.position&&(document.body.style.marginBottom=f),_e("branch-banner-is-active"),ye(a),ye(document.getElementById("branch-css")),n()):(setTimeout(function(){ye(a),ye(document.getElementById("branch-css")),n()},270),setTimeout(function(){"top"===t.position?document.body.style.marginTop=c:"bottom"===t.position&&(document.body.style.marginBottom=f),_e("branch-banner-is-active")},20))}function i(){"top"===t.position?a.style.top="0":"bottom"===t.position&&(a.style.bottom="0"),Xe(e,"didShowBanner")}if(!we(r,t))return Xe(e,"willNotShowBanner"),null;Xe(e,"willShowBanner");var a=Re(t,r);Oe(t,a),n.channel=n.channel||"app banner";var u=t.w?a.contentWindow.document:document;if(R()){t.open_app=t.ga,t.append_deeplink_path=t.Z,t.make_new_link=t.da,t.deepview_type="banner",e.deepview(n,t);var s=u.getElementById("branch-mobile-action");s&&(s.onclick=function(t){t.preventDefault(),e.deepviewCta()})}else u.getElementById("sms-form")?u.getElementById("sms-form").addEventListener("submit",function(r){r.preventDefault(),Ie(u,e,t,n)}):a.onload=function(){u=a.contentWindow.document,u.getElementById("sms-form")&&u.getElementById("sms-form").addEventListener("submit",function(r){r.preventDefault(),Ie(u,e,t,n)})};var s=Ee("margin-top"),c=document.body.style.marginTop,l=Ee("margin-bottom"),f=document.body.style.marginBottom,d=u.getElementById("branch-banner-close");return d&&(d.onclick=function(t){t.preventDefault(),Xe(e,"willCloseBanner"),o({},function(){Xe(e,"didCloseBanner")})}),ge(document.body,"branch-banner-is-active"),"top"===t.position?document.body.style.marginTop=Te(s):"bottom"===t.position&&(document.body.style.marginBottom=Te(l)),t.T?i():setTimeout(i,20),o}function Ce(e){if(e=e.match(Ht))return v(e[1])}function xe(){var e=document.createElement("style");e.type="text/css",e.id="branch-iframe-css",Ut=Ee("margin-top");var t=+Ut.slice(0,-2);Bt=Ee("margin-bottom");var n=+Bt.slice(0,-2),r=+Nt.slice(0,-2);"top"===Ct?document.body.style.marginTop=(+r+t).toString()+"px":"bottom"===Ct&&(document.body.style.marginBottom=(+r+n).toString()+"px"),0s?kt=!0:Mt=!0),s=Ce(e)){var c;if(t&&s&&s.ctaText&&s.ctaText.has_app?c=s.ctaText.has_app:s&&s.ctaText&&s.ctaText.no_app&&(c=s.ctaText.no_app),n=c,Dt=[],s&&s.injectorSelector&&(c=document.querySelectorAll(s.injectorSelector)))for(s=0;s'+e+"",s.contentWindow.document.open(),s.contentWindow.document.write(r),s.contentWindow.document.close(),xe(),r=document.createElement("style"),r.type="text/css",r.id="branch-css",r.innerHTML=c,c=s.contentWindow.document,c.head.appendChild(r),kt||Mt){var f=c.getElementsByClassName("branch-banner-content")[0];f&&(f.style.height=Nt)}"top"===Ct?s.style.top="-"+Nt:"bottom"===Ct&&(s.style.bottom="-"+Nt);try{var f=c.getElementsByClassName("branch-banner-content")[0],d=window.getComputedStyle(f).getPropertyValue("background-color").split(", ");d[3]&&!parseFloat(d[3])&&(s.style.boxShadow="none")}catch(a){}return s.contentWindow.document.getElementById("branch-mobile-action").innerHTML=n,Me(s),s}function Fe(e,t,n,r,o,i,a){if(!(document.getElementById("branch-banner")||document.getElementById("branch-banner-iframe")||document.getElementById("branch-banner-container"))){Yt=a;var u=null,s=null;n=n||{},n.feature="journeys",n=w(n),(a=document.getElementById("branch-iframe-css"))&&a.parentElement.removeChild(a);var c=document.createElement("div");if(c.id="branch-banner",document.body.insertBefore(c,null),ge(c,"branch-banner-is-active"),t.html)je(t.html,o);else if(t.url){var l="branch_view_callback__"+rn++;n=encodeURIComponent(x(f(n))),a=t.url+"&callback="+l,a+="&_lan="+(Yt.ma||j()||"en"),ve(e,a+("&data="+n),{},"GET",{},function(e,n){var a=!1;if(!e&&n){var f=i?0:ke(n),d=window.setTimeout(function(){window[l]=function(){}},rt);if(window[l]=function(e){window.clearTimeout(d),a||(s=e,De(t,r,s,u,f))},u=je(n,o),null===u)return void(a=!0);De(t,r,s,u,f)}document.body.removeChild(c)},!0)}}}function Ue(e,t){var n=t.b.get("hideBanner"+e.id,!0);return!0===n||n>Date.now()||(t.b.remove("hideBanner"+e.id,!0),!1)}function Be(e,t,n,r,o){o.m=!!n.branch_view_enabled,o.b.set("branch_view_enabled",o.m);var i=null,a=null,u=null,s=null,c=null,l=!1,f=!1,d=!1;r&&(i=r.branch_view_id||null,a=r.no_journeys||null,o.ma=(r.user_language||j()||"en").toLowerCase(),Qt=r.disable_entry_animation||!1,$t=r.disable_exit_animation||!1,f=r.make_new_link||!1,d=r.open_app||!1),(i=i||T()||null)&&R()&&(l=!0,s={id:i,ua:-1,url:"https://api.branch.io/v1/branchview/"+e+"/"+i+"?_a=audience_rule_id&_t="+t.browser_fingerprint_id}),!s&&n.hasOwnProperty("branch_view_data")&&(s=n.branch_view_data,u=Ue(s,o)),!s||u||a?Xe(o,"willNotShowJourney"):(At=s.id,o.renderQueue(function(){var e=f,n=d,r=o.A||{};r.data||(r.data={});var e=e?null:S(ze(o)),i=ue(o.b)||{},a=!!i.hasOwnProperty("has_app")&&i.has_app;r.data=O(L(),r.data),r.data=O(b(i||{}),r.data),r.data=e?O({link_click_id:e},r.data):r.data,r=O({open_app:n},r),r=O({has_app_websdk:a},r),c=r=Y()?O({is_iframe:!0},r):r,Fe(o.O,s,c,o.b,t.has_app,l,o)}))}function He(e){var t;"android"===e&&on.androidDetailsComplete&&(t="android-app://"+an.androidPackageName+"/"+an.androidURL,t=qe(t),Ve(t)),"ios"===e&&on.iosDetailsComplete&&(t="ios-app://"+an.iosAppId+"/"+an.iosURL,t=qe(t),Ve(t))}function qe(e){var t={"~channel":"Firebase App Indexing","~feature":"Auto App Indexing",$canonical_url:E()};if("object"===i(an.data))for(var n in an.data)an.data.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=an.data[n]);return e+(-1((.|\s)*?)<\/script>/,qt=/\n "}}):null};E.propTypes={post:m.instanceOf(l.a).isRequired,comments:m.arrayOf(m.instanceOf(c.a)).isRequired,pageUrl:m.string.isRequired},t.a=E;var T=function(e,t,n){return h({"@context":"http://schema.org","@type":"DiscussionForumPosting",url:I(A(e)),headline:t.title,datePublished:P(t.createdUTC),author:{"@type":"Person",name:t.author,url:y+"/user/"+t.author+"/"}},w(t),{commentCount:t.numComments,comment:{"@list":O(n)}})},w=function(e){if(e.selfTextHTML)return{articleBody:e.expandedContent};if(e.media&&e.media.oembed){var t=e.media.oembed;return{url:A(t.url||e.cleanUrl),thumbnailURL:S(e)||t.thumbnail_url}}return n.i(d.a)({url:I(A(e.cleanUrl)),thumbnailURL:S(e)})},S=function(e){if(e.preview&&Array.isArray(e.preview.images)&&e.preview.images.length)return e.preview.images[0].source.url},O=function(e){return e.filter(function(e){return e&&e.author}).map(function(e){return{"@type":"Comment",text:e.bodyHTML,datePublished:P(e.createdUTC),author:{"@type":"Person",name:e.author,url:y+"/user/"+e.author+"/"},commentCount:e.replies.length,aggregateRating:e.score}})},P=function(e){return new Date(1e3*e).toISOString()},R=function(e){return e.endsWith("reddit.com")},I=function(e){if(!e)return e;var t=s.a.parse(e,!0);return R(t.hostname||"")?s.a.format(h({},a()(t,"search"),{query:h({},t.query,{utm_source:"search",utm_medium:"structured_data"})})):e},A=function(e){if(e){var t=s.a.parse(e),n=t.hostname;if(!n||n.endsWith("reddit.com"))return s.a.format(h({},t,{protocol:b,host:_}))}return e}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=n(364),s=n.n(u),c=n(0),l=n.n(c),f=n(907),d=n.n(f),p=n(1653),h=(n.n(p),n(38)),v=n(103),m=n(144),y=n(3),g=(n.n(y),n(5)),_=n(4),b=(n.n(_),n(104)),E=Object.assign||function(e){for(var t=1;t1){for(var s=Array(a),c=0;cwindow.innerHeight?innerHeight-r:i;var u=!1;a/i>.8&&(u=!0,0===e.readyState&&s.state.isLoading===!1&&s.state.videoLoaded===!1&&(e.load(),s.setState({isLoading:!0}))),s.state.videoWasInView!==u&&u===!0&&s.videoIsPaused()===!0&&s.state.videoScrollPaused===!1&&(e.play(),s.sendTrackVideoEvent(g.I.SCROLL_AUTOPLAY),s.state.totalServedTime<1e3&&s.props.dispatch(n.i(m.a)(s.getPostId()))),s.videoIsPaused()===!1&&u===!1&&(e.pause(),s.sendTrackVideoEvent(g.I.SCROLL_PAUSE)),s.setState({videoWasInView:u,videoScrollPaused:!1})}},s.videoDidLoad=function(){if(s){if(s.state.videoLoaded===!0)return;var e=s.refs.HTML5StreamPlayerVideo;s.props.postData.videoPlaytime>0?(s.setState({videoLoaded:!0,totalServedTime:1e3*s.props.postData.videoPlaytime,totalTime:s.secondsToMinutes(e.duration),videoWasInView:!1}),s.sendTrackVideoEvent(g.I.CHANGED_PAGETYPE,s.getPercentServed()),e.currentTime=s.props.postData.videoPlaytime):s.setState({videoLoaded:!0,totalTime:s.secondsToMinutes(e.duration),videoWasInView:!1}),(s.state.autoPlay===!0||s.props.postData.videoPlaytime>0&&s.videoIsPaused()===!0)&&s.isScrolledIntoView()}},s.playPauseVideo=function(){var e=s.refs.HTML5StreamPlayerVideo;s.videoIsPaused()?(e.ended?(s.resetVideo(),s.sendTrackVideoEvent(g.I.REPLAY)):s.sendTrackVideoEvent(g.I.PLAY),e.play(),s.setState({videoScrollPaused:!1,wasPlaying:!0})):s.props.isGif?s.state.videoFullScreen?s.exitFullscreen():s.enterFullScreen():(e.pause(),s.setState({videoScrollPaused:!0,wasPlaying:!1}),s.sendTrackVideoEvent(g.I.PAUSE))},s.resetVideo=function(){var e=s.refs.HTML5StreamPlayerVideo;e.currentTime=.01,s.updateTime()},s.exitHandler=function(){s.state.videoFullScreen===!0?(s.setState({videoFullScreen:!1}),s.exitFullscreen()):s.setState({videoFullScreen:!0})},s.exitFullscreen=function(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()},s.enterFullScreen=function(){var e=s.refs.HTML5StreamPlayerVideo;s.isAndroid()&&(e=s.refs.HTML5StreamPlayerContainer),e.requestFullscreen?e.requestFullscreen():e.webkitEnterFullscreen?e.webkitEnterFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen&&e.webkitRequestFullscreen(),s.state.videoMuted&&s.muteVideo(),s.sendTrackVideoPlayedExpanded(),s.sendTrackVideoEvent(g.I.FULLSCREEN)},s.sendTrackVideoPlayedExpanded=function(){s.isPromoted()&&s.props.dispatch(n.i(m.b)(s.getPostId()))},s.sendTrackVideoPlayedWithSound=function(){s.isPromoted()&&s.props.dispatch(n.i(m.c)(s.getPostId()))},s.sendTrackVideoWatchedPercent=function(e){if(s.isPromoted()){var t=s.getPostId();g.J.forEach(function(r){e=.95&&(e=g.K);var r=s.getPostId();g.L.forEach(function(t){e20&&s.sendTrackVideoWatchedPercent(e)},100)}},s.muteVideo=function(){var e=s.refs.HTML5StreamPlayerVideo;e.muted?(s.sendTrackVideoPlayedWithSound(),s.sendTrackVideoEvent(g.I.UNMUTE)):s.sendTrackVideoEvent(g.I.MUTE),e.muted=!e.muted,s.setState({videoMuted:e.muted})},s.setVideoPos=function(e){var t=s.refs.scrubberThumbnail,n=s.refs.scrubBuffer,r=e.target.value;t&&(t.currentTime=(t.duration/100*r).toFixed(1)),s.setState({scrubPosition:r,thumbPosition:(n.clientWidth-16)*r/100+2})},s.updateTime=function(){ +var e=s.refs.HTML5StreamPlayerVideo;if(s.drawBufferBar(e),s.state.currentlyScrubbing!==!0){var t=s.state.totalServedTime;if(null!==s.state.lastUpdate&&s.videoIsPaused()===!1&&s.state.wasPlaying===!0&&(t+=performance.now()-s.state.lastUpdate),e.currentTime&&e.duration){s.setState({videoPosition:e.currentTime/e.duration*100,currentTime:s.secondsToMinutes(e.currentTime),totalTime:s.secondsToMinutes(e.duration),lastUpdate:performance.now(),totalServedTime:t,wasPlaying:!s.videoIsPaused(),scrubPosition:e.currentTime/e.duration*100}),s.trackVideoWatchedTime(t/1e3,e.duration);var n=e.currentTime===e.duration||s.didSeek&&s.state.scrubPosition>99;n&&s.sendTrackVideoWatchedPercent(100),s.props.onUpdatePostPlaytime(e.currentTime)}}},s.scrubEnd=function(){var e=s.refs.HTML5StreamPlayerVideo,t=s.refs.scrubberThumbnail;t.pause(),e.currentTime=e.duration/100*s.state.scrubPosition,s.sendTrackVideoEvent(g.I.SEEK),s.didSeek=!0,s.latestStartTime=e.currentTime,s.sendVideoSeekedStatus(),s.state.wasPlaying&&e.play(),s.setState({wasPlaying:!1,currentlyScrubbing:!1,videoPosition:s.state.scrubPosition}),s.updateTime()},s.scrubStart=function(){var e=s.refs.scrubBuffer;s.setState({currentlyScrubbing:!0,thumbPosition:(e.clientWidth-16)*s.state.videoPosition/100+2});var t=s.refs.HTML5StreamPlayerVideo;t.pause()},s.getPostId=function(){return s.props.postData.name},s.isPromoted=function(){return s.props.postData.promoted},s.state={videoScrollPaused:!1,videoMuted:!0,videoPosition:0,videoFullScreen:!1,debounceFunc:null,videoWasInView:!1,currentTime:"00:00",totalTime:"00:00",currentlyScrubbing:!1,scrubPosition:0,thumbPosition:0,mediaPlayer:null,videoLoaded:!1,autoPlay:!0,lastUpdate:null,totalServedTime:0,isLoading:!1,buffered:0},s.percentWatchedInterval=null,s.percentagePixelsTriggered=(a={},r(a,g.C,null),r(a,g.D,null),r(a,g.E,null),r(a,g.F,null),r(a,g.M,null),a),s.timePixelsTriggered=(u={},r(u,g.G,null),r(u,g.H,null),r(u,g.K,null),u),s.didSeek=!1,s.latestStartTime=0,s}return a(t,e),w(t,[{key:"getMobileOperatingSystem",value:function(){var e=navigator.userAgent||navigator.vendor||window.opera;return/android/i.test(e)?"Android":/iPad|iPhone|iPod/.test(e)&&!window.MSStream?"iOS":"unknown"}},{key:"isIOS",value:function(){return"iOS"===this.getMobileOperatingSystem()}},{key:"isAndroid",value:function(){return"Android"===this.getMobileOperatingSystem()}},{key:"secondsToMinutes",value:function(e){var t=Math.floor(e/60).toString(),n=Math.trunc(e%60).toString();return 1===t.length&&(t="0"+t),1===n.length&&(n="0"+n),t+":"+n}},{key:"componentDidMount",value:function(){var e=this.refs.HTML5StreamPlayerVideo,t=d.a.MediaPlayerFactory.create(e);document.addEventListener("webkitfullscreenchange",this.exitHandler,!1),document.addEventListener("mozfullscreenchange",this.exitHandler,!1),document.addEventListener("fullscreenchange",this.exitHandler,!1),document.addEventListener("MSFullscreenChange",this.exitHandler,!1),e.addEventListener("canplay",this.videoDidLoad,!1),e.addEventListener("ended",this.updateTime,!1),e.readyState>=3?this.videoDidLoad():0===e.readyState&&this.isScrolledIntoView();try{t.setMaxAllowedBitrateFor("video",g.N)}catch(n){}this.drawBufferBar();var r=s()(this.isScrolledIntoView,50);window.addEventListener("scroll",r),this.trackVideoWatchedPercent(),this.setState({debounceFunc:r,mediaPlayer:t})}},{key:"componentWillMount",value:function(){this.props.postData.videoPlaytime&&this.setState({autoPlay:!1})}},{key:"componentWillUnmount",value:function(){this.state.totalServedTime>0&&this.sendTrackVideoEvent(g.I.SERVED_VIDEO,this.getPercentServed());var e=this.refs.HTML5StreamPlayerVideo;e.removeEventListener("canplay",this.videoDidLoad,!1),e.removeEventListener("ended",this.updateTime,!1),window.removeEventListener("scroll",this.state.debounceFunc),document.removeEventListener("webkitfullscreenchange",this.exitHandler,!1),document.removeEventListener("mozfullscreenchange",this.exitHandler,!1),document.removeEventListener("fullscreenchange",this.exitHandler,!1),document.removeEventListener("MSFullscreenChange",this.exitHandler,!1)}},{key:"componentDidUpdate",value:function(e,t){t.videoFullScreen!==this.state.videoFullScreen&&this.sendTrackVideoEvent(g.I.CHANGED_PAGETYPE,this.getPercentServed()),this.sendBufferedStatus()}},{key:"videoIsPaused",value:function(){var e=this.refs.HTML5StreamPlayerVideo;if(!e)return!0;var t=3===e.readyState||4===e.readyState,n=null===e.error,r=!e.paused&&!e.ended&&t&&n;return!r}},{key:"renderMute",value:function(){if(!this.props.isGif){var e=this.refs.HTML5StreamPlayerVideo;return e&&e.muted||this.state.videoMuted?O:P}}},{key:"renderPlaybackIcon",value:function(){if(this.state.videoLoaded===!1)return null;var e=this.refs.HTML5StreamPlayerVideo;return e.ended===!0&&this.props.isGif===!1?R:I}},{key:"drawBufferBar",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!this.props.isGif){var t=this.refs.scrubBuffer,n=t.getContext("2d");if(null===e&&(t.height=t.clientHeight),n.fillStyle="#CCCCCA",n.fillRect(0,0,t.width,t.height),e){n.fillStyle="#939393",n.strokeStyle="#939393";for(var r=t.width/e.duration,o=0;o3&&(d=d.substring(3,d.length-3));var p={video_time:a,video_duration:u,vertical:o,nsfw:r.over18,spoiler:r.spoiler,app_name:"mweb",target_fullname:r.uuid,target_author_id:parseInt(r.author,36),target_author_name:r.author,target_created_ts:f,target_id:parseInt(r.id,36),target_url:r.cleanUrl,target_url_domain:r.domain,target_type:i?"gif":"video",sr_name:r.subreddit,sr_fullname:r.subredditId,sr_id:parseInt(d,36),page_type:s};return p}},{key:"sendTrackVideoEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=E({},this.buildBaseEventData(),t);this.props.dispatch(n.i(v.a)(e,r))}},{key:"getPercentServed",value:function(){var e=this.refs.HTML5StreamPlayerVideo,t=0;if(e){var n=this.state.totalServedTime;0===n&&(n=e.currentTime),t=n/parseInt(1e3*e.duration)}var r={max_timestamp_served:parseInt(this.state.totalServedTime),percent_served:t};return r}}]),t}(l.a.Component);A.propTypes={hlsSource:S.string.isRequired,mpegDashSource:S.string.isRequired,aspectRatioClassname:S.string.isRequired,postData:S.instanceOf(h.a),onUpdatePostPlaytime:S.func.isRequired,scrubberThumbSource:S.string.isRequired,isGif:S.bool.isRequired,isVertical:S.bool.isRequired};var C=n.i(_.createSelector)(function(e){return e.platform.currentPage},function(e){return{currentPage:e}});t.a=n.i(y.connect)(C)(A)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,u,s=n(0),c=n.n(s),l=n(90),f=(n.n(l),n(3)),d=(n.n(f),Object.assign||function(e){for(var t=1;t1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!n)return null;if(r&&e!==C)return null;switch(e){case null:return null;case C:return A(h.a,{mixin:r},void 0,t);case N:return k;case x:return D;case M:return L}}function s(e){var t=n.i(P.h)(e),o=n.i(S.a)(e),i=n.i(R.i)(e),a=i[o],u=H(e),s=u.showXPromo,c=u.isXPromoFixed,l=e.preferences,f=n.i(_.c)(e),d=!!f&&[].concat(r(_.d),[_.b]).includes(f),p=n.i(g.r)(e),h=e.user&&!e.user.loggedOut;return{showXPromo:s&&(!t||n.i(b.a)()&&l.over18),isXPromoFixed:c,xpromoComponentName:a,shouldShowXpromoFooter:!h&&d&&p}}var c=n(1670),l=(n.n(c),n(0)),f=n.n(l),d=n(3),p=(n.n(d),n(4)),h=(n.n(p),n(1402)),v=n(671),m=n(1403),y=n(668),g=n(46),_=n(290),b=n(291),E=n(1442),T=n(1452),w=n(424),S=n(89),O=n(5),P=n(89),R=n(46),I=function(){function e(e,t){for(var n=0;n1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c0?D("span",{className:"PostHeader__mod-status-flair"},void 0,s?B:null,"moderator"===a?V:null,u?H:null,r?W:null,o?K:null,i?Y:null,c>0?l:null):null}function l(e,t){var n=e.author,r=e.promotedUrl,o=e.promotedDisplayName,i=o||n,a={className:"PostHeader__promoted-user-post-line",href:r,children:[z,G,D("span",{className:"blue"},void 0," by "+i)],onClick:function(e){return t(e,R.u.AUTHOR)}};return r?"/"===r[0]?b.a.createElement(E.b,a):b.a.createElement("a",a):b.a.createElement("span",a)}function f(e,t,n,r,o,f,h,v,m){var y=e.allAwardings,g=e.gildings,_=e.subredditDetail,b=e.subreddit,E=s(e,m),T=i(_,b,o,t),w=void 0;n||(w=u(e,t,n,f));var S=a(e),O=h&&l(e,t),P=d([o&&S,E,T,r&&p(e),w,!o&&S,y&&y.length?D(I.a,{allAwardings:y}):D(x.a,{gildings:g})]),R=c(e,v);return D("div",{className:"PostHeader__metadata-container"},void 0,D("div",{className:"PostHeader__post-descriptor-line"},void 0,D("div",{className:"PostHeader__post-descriptor-line-overflow"},void 0,D("span",{children:h?O:P}))),D("div",{className:"PostHeader__metadata"},void 0,R))}function d(e){var t=[];return e.forEach(function(e){e&&t[t.length-1]&&t.push(j),e&&t.push(e)}),t}function p(e,t){return D(N.a,{className:"PostHeader__author-link",href:n.i(S.a)(e.cleanUrl),outboundLink:e.outboundLink,onClick:function(e){return t(e,R.u.DOMAIN)},promoted:e.promoted},void 0,n.i(C.b)(e.domain))}function h(e,t){var n=e.distinguished,o=r(n);return D("div",{className:"PostHeader__post-descriptor-line"},void 0,D("div",{className:"PostHeader__post-descriptor-line-overflow"},void 0,u(e,function(){return null},!0,t,o)))}function v(e,t,r){var o=n.i(C.a)(n.i(S.a)(e.cleanUrl));if(o){var i=r?"_blank":null;return D(N.a,{className:"PostHeader__post-link",href:o,target:i,outboundLink:e.outboundLink,onClick:function(e){return t(e,R.u.TITLE)},promoted:e.promoted},void 0,n.i(C.b)(e.domain),X)}}function m(e,t,r,o,i,a){var u=void 0;u=e.promoted?e.outboundLink&&e.outboundLink.url?e.outboundLink.url:e.cleanUrl:n.i(C.a)(n.i(S.a)(e.cleanPermalink));var s=e.title,c="PostHeader__post-title-line "+(e.visited?"m-visited":""),l=e.promoted||r?"_blank":null,f={className:c,href:u,target:l};if(e.promoted)return b.a.createElement("a",k({},f,{onClick:function(){return n.i(T.a)(e.events,T.b.Click)}}),s);var d=k({},f,{onClick:function(e){if(!t(e,R.u.TITLE)){if(i){e.preventDefault();var n="title";a(n)}o()}}});return b.a.createElement(E.b,d,s)}function y(e){var t=e.post,r=e.isPromotedUserPost,o=e.single,i=e.compact,a=e.hideSubredditLabel,u=e.hideWhen,s=e.interceptListingClick,c=e.nextToThumbnail,l=e.showingLink,d=e.renderMediaFullbleed,p=e.showLinksInNewTab,y=e.onElementClick,g=e.titleOpensExpando,_=e.onTapExpand,b=e.isSubredditModerator,E=e.reports,T=e.userActivityPage,w=l&&!d&&!t.promoted,S=""+(i?"size-compact":""),P=""+(c?"m-thumbnail-margin":""),R=n.i(O.b)(t.approved,t.removed,t.spam),I=n.i(O.c)(t.approved,t.removed,t.spam,t.bannedBy,t.approvedBy);return D("header",{className:"PostHeader "+S+" "+P},void 0,o&&b?D(M.a,{status:R,statusBy:I,pageName:"postHeader"}):null,f(t,s,o,d,a,u,r,E,T),m(t,s,p,y,g,_),w?v(t,s,p):null,o&&!r?h(t,s,u):null)}var g=n(1676),_=(n.n(g),n(0)),b=n.n(_),E=n(6),T=n(185),w=n(186),S=n(220),O=n(292),P=n(38),R=n(5),I=n(642),A=n(660),C=n(219),x=n(649),N=n(280),M=n(419);t.a=y;var k=Object.assign||function(e){for(var t=1;t1){for(var s=Array(a),c=0;c=n&&t.height>=n:t.width>=n});if(i)return i}if(t.source)return t.source}function l(e,t){return t?{}:{url:e.thumbnail_url,width:e.thumbnail_width,height:e.thumbnail_height}}var f=n(5),d=n(112),p=n.n(d),h=n(58),v=n.n(h);n.d(t,"d",function(){return m}),t.c=r,t.b=a,t.a=u,t.e=s;var m=16/9,y=3,g=1/3,_=40,b=1080},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),u=n.n(a),s=n(3),c=(n.n(s),n(4)),l=(n.n(c),n(6)),f=n(640),d=n(652),p=n(1679),h=(n.n(p),function(){var e="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103;return function(t,n,r,o){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var u in i)void 0===n[u]&&(n[u]=i[u]);else n||(n=i||{});if(1===a)n.children=o;else if(a>1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c0,i=[];return o?(i=Object.values(t).filter(function(e){return n.includes(e.uuid)}),d("div",{className:"RecommendedPosts__container"},void 0,h,v,d(c.a,{loading:!1,postRecords:i,forceCompact:!0,onPostClick:r}))):null}var o=n(1688),i=(n.n(o),n(0)),a=n.n(i),u=n(3),s=(n.n(u),n(4)),c=(n.n(s),n(420)),l=n(278),f=Object.assign||function(e){for(var t=1;t1){for(var s=Array(a),c=0;c0,i=[];if(!o)return null;i=Object.values(t).filter(function(e){return n.includes(e.uuid)});var a=[h,v],u=i.map(function(e){var t={backgroundImage:"url("+e.iconImage+")",backgroundPosition:"-1px 0px"},n=Object.assign({backgroundColor:e.keyColor},e.iconImage?t:{});return d("div",{className:"RecommendedSubreddits__top"},void 0,d("div",{className:"subreddit-icon-image",style:n}),d("div",{className:"RecommendedSubreddits__SubredditInfo"},void 0,d(c.b,{href:e.url,className:"sr-url",onClick:function(){return r(e)}},void 0,m(e.url)),d("div",{className:"sr-subscriber-count"},void 0,Number(e.subscribers).toLocaleString("en")+(e.subscribers>1?" people":" person")+" joined "+e.displayName)))});return d("div",{className:"RecommendedSubreddits__container"},void 0,a,u)}var o=n(1689),i=(n.n(o),n(0)),a=n.n(i),u=n(3),s=(n.n(u),n(4)),c=(n.n(s),n(6)),l=n(277),f=Object.assign||function(e){for(var t=1;t1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;cwindow.innerHeight/2;return e||(t=window.pageYOffset-window.innerHeight>0),t}},{key:"toggleOnScroll",value:function(e){e?window.addEventListener("scroll",this.scrollListener):window.removeEventListener("scroll",this.scrollListener)}},{key:"componentDidUpdate",value:function(){this.launchPersistentExperiment()}},{key:"componentWillMount",value:function(){this.launchPersistentExperiment()}},{key:"componentDidMount",value:function(){this.toggleOnScroll(!0)}},{key:"componentWillUnmount",value:function(){this.toggleOnScroll(!1)}},{key:"render",value:function(){return this.props.children}}]),t}(u.a.Component),y=n.i(f.createStructuredSelector)({currentUrl:function(e){return e.platform.currentPage.url},alreadyScrolledStart:function(e){return n.i(h.k)(e)},alreadyScrolledPast:function(e){return n.i(h.l)(e)},xpromoThemeIsUsual:function(e){return n.i(h.m)(e)},isXPromoPersistent:h.a}),g={promoScrollPast:p.h,promoScrollStart:p.i,promoScrollUp:p.j,promoPersistActivate:p.k,promoPersistDeactivate:p.l};t.a=n.i(s.connect)(y,g)(m)},function(e,t,n){"use strict";var r=n(142),o=n.n(r),i=n(25),a=n(65);n.d(t,"a",function(){return u});var u=function(e,t,n,r,u){return new Promise(function(s,c){o.a.post("/registerproxy").send({username:e,password:t,email:n,newsletter:r,gRecaptchaResponse:u}).end(function(e,t){e&&e.response?c(new a.a("/registerproxy",[e.response.body],e.status)):e||!t.body?c(new i.a(e,"/registerproxy")):s(t.body.session)})})}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=n(274),i=function(){function e(e,t){for(var n=0;n1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c0&&M(O.a,{postId:h[0].uuid,postEvents:h[0].events,placementIndex:0,isBlank:!0}),j(o)&&M(S.a,{a9:!0,id:"atf-comments-banner",shouldCollapse:!0,listingName:"comments",whitelistStatus:o.whitelistStatus,wls:o.wls,placement:"ATF"}),M(E.a,{postId:t.id,postLoaded:c}),M(T.a,{postId:t.id,postLoaded:c}),M(g.a,{isReplying:i,post:o,hasSingleComment:f()(t,"query.comment"),currentPage:a,preferences:u,id:t.id,onSortChange:l,onToggleReply:d},"tools"),M(m.a,{postId:t.id}),M(y.a,{pageId:r,pageUrl:a.url,post:o,isCrawlerRequest:s}),o&&o.over18&&!n.i(C.a)()&&M(x.a,{url:o&&o.cleanPermalink})):F}}]),t}(u.a.Component);B.propTypes={commentsPageId:D.string.isRequired,post:D.object,isReplying:D.bool.isRequired,pageParams:D.object.isRequired,currentPage:D.object.isRequired,preferences:D.object.isRequired,isCrawlerRequest:D.bool.isRequired,postLoaded:D.bool.isRequired,onSortChange:D.func.isRequired,onToggleReply:D.func.isRequired};var H=n.i(c.createSelector)(function(e,t){var r=R.b.pageParamsToCommentsPageParams(t);return n.i(I.a)(r)},function(e,t){var n=R.b.pageParamsToCommentsPageParams(t);return e.posts[n.id]},function(e,t){var n=R.b.pageParamsToCommentsPageParams(t);return!!e.replying[n.id]},function(e){var t=n.i(P.a)(e);if(!t)return!1;var r=e.subreddits[t.toLowerCase()];return!!r&&r.spoilersEnabled},function(e){return e.platform.currentPage},function(e){return e.preferences},v.a,function(e){return e.comments.ad},function(e,t,n,r,o,i,a,u){var s=!!t;return{commentsPageId:e,post:t,isReplying:n,currentPage:o,preferences:i,isCrawlerRequest:a,postLoaded:s,spoilersEnabled:r,commentsPageAds:u}}),q=function(e){return{fetchAds:function(){return e(A.f)},onToggleReply:function(t){return e(h.b(t))},navigateToUrl:function(t,n){return e(d.e(p.a.GET,t,n))}}},V=function(e,t,n){var r=e.currentPage,o=r.url,i=r.queryParams,a=t.navigateToUrl,u=t.onToggleReply,s=t.fetchAds;return N({},e,n,{pageParams:R.b.pageParamsToCommentsPageParams(n),onSortChange:function(e){return a(o,{queryParams:N({},i,{sort:e})})},onToggleReply:function(){return u(e.post.name)},fetchAds:function(){return s()}})};t.a=n.i(s.connect)(H,q,V)(B)},function(e,t,n){"use strict";var r=n(0),o=(n.n(r),n(659)),i=n(428),a=n(427),u=n(674);n.d(t,"a",function(){return c});var s=function(){var e="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103;return function(t,n,r,o){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var u in i)void 0===n[u]&&(n[u]=i[u]);else n||(n=i||{});if(1===a)n.children=o;else if(a>1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c=25||t.length&&e.queryParams.page>0)},x=function(e,t,n){var r=n.type,o=n.pageSize,i=e.urlParams,a=e.queryParams,u=parseInt(a.page||0),c=void 0;u>0&&t.length&&(c=s.a.buildURL(i,m({},a,{before:t[0].paginationId,after:void 0,page:u-1,type:r})));var l=void 0;return t.length>=o&&(l=s.a.buildURL(i,m({},a,{before:void 0,after:t[t.length-1].paginationId,page:u+1,type:r}))),{nextUrl:l,prevUrl:c}},N=function(e,t){var n=x(e,t,{type:"sr",pageSize:25}),r=n.nextUrl,o=n.prevUrl;return y("div",{className:"SearchPage__communitiesNav"},void 0,y(f.a,{preventUrlCreation:!0,compact:!0,nextUrl:r,prevUrl:o}))},M=function(e,t,n){return y("div",{className:"SearchPage__communities"},void 0,A(n,e),O(t),C(e,t,n)?N(e,t):null)},k=y("div",{className:"SearchPage__linksHeaderTitle"},void 0,"Posts"),D=function(e){return y("div",{className:"SearchPage__linksHeader clearfix"},void 0,k,y("div",{className:"SearchPage__linksHeaderTools"},void 0,y(h.a,{sort:e,sortOptions:g})))},L=function(e,t){var n=x(e,t,{type:"link",pageSize:22}),r=n.nextUrl,o=n.prevUrl,i=e&&e.queryParams&&e.queryParams.sort||v.a.RELEVANCE;return y("div",{className:"SearchPage__links"},void 0,D(i),y("div",{className:"SearchPage__linksResults"},void 0,y(p.a,{loading:!1,postRecords:t,forceCompact:!0,nextUrl:r,prevUrl:o})))},j=function(e){return e?T(e):S()},F=function(e,t,n){var r="Search all of reddit",o=s.a.buildURL({},{q:e}),i=t>=25?"25+":""+t,a=i+" matches in r/"+n+" ";return y("div",{className:"SearchPage__searchAll"},void 0,a,y(u.b,{className:"SearchPage__searchAllLink",href:o},void 0,r))},U=function(e,t){var n=t.posts,r=t.subreddits,o=!!n.length,i=!!r.length,a=!(t.loading||o||i),u=e.urlParams.subredditName,s=e.queryParams.q;return a?j(s):y("div",{},void 0,i?M(e,r,o):null,u&&!i?F(s,n.length,u):null,o?L(e,n):null)},B=function(e){var t=e.pageData,n=e.searchRequest;return y("div",{className:"SearchPage"},void 0,n?n.loading?b():U(t,n):S())},H=function(e){return e.platform.currentPage},q=function(e){var t=H(e),r=s.a.pageParamsToSearchRequestParams(t),o=n.i(c.a)(r);return e.searchRequests[o]},V=function(e,t){return{pageData:e,searchRequest:t}},G=n.i(a.createSelector)(H,q,V),W=n.i(i.connect)(G)(B)},function(e,t,n){"use strict";var r=n(0),o=(n.n(r),n(3)),i=(n.n(o),n(4)),a=(n.n(i),n(6)),u=n(279),s=n(661),c=n(1443),l=n(56);n.d(t,"a",function(){return h});var f=function(){var e="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103;return function(t,n,r,o){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var u in i)void 0===n[u]&&(n[u]=i[u]);else n||(n=i||{});if(1===a)n.children=o;else if(a>1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c1){for(var s=Array(a),c=0;c0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case a.b:case a.c:return u;case i.b:var c=t.name,l=e[c];return l?e:n.i(o.a)(e,r({},c,s(c)));case i.c:var f=t.name,d=t.apiResponse.meta;return n.i(o.a)(e,r({},f,{meta:d||null,loading:!1}));case i.d:var p=t.error,h=t.options.name;return n.i(o.a)(e,r({},h,{error:p,loading:!1,failed:!0}));default:return e}}},function(e,t,n){"use strict";var r=n(184),o=n(8),i=n(86),a={};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case o.b:case o.c:return a;case i.c:var u=t.apiResponse.accounts;return n.i(r.a)(e,u);default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(9),i=n(115),a=n(425),u=n(8),s={};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case u.b:case u.c:return s;case i.d:var c=t.id,l=t.params,f=e[c];return f?e:n.i(o.a)(e,r({},c,n.i(a.b)(c,l)));case i.e:var d=t.id,p=t.apiResponse,h=e[d];return h?n.i(o.a)(e,r({},d,{results:p.results,loading:!1})):e;default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(9),i=n(8),a=n(144),u={};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case i.b:case i.c:return u;case a.i:var s=t.adId;return n.i(o.a)(e,r({},s,{adId:s,pending:!0,ad:void 0,impressionTracked:!1,failed:!1,fallback:!1}));case a.j:var c=t.adId,l=t.model;return n.i(o.a)(e,r({},c,{pending:!1,ad:l.toRecord(),fallback:l&&l.isBlankAd}));case a.k:var f=t.adId;return n.i(o.a)(e,r({},f,{pending:!1}));case a.l:var d=t.adId;return n.i(o.a)(e,r({},d,{pending:!1,fallback:!0}));case a.m:var p=t.adId;return n.i(o.a)(e,r({},p,{pending:!1,failed:!0}));case a.n:var h=t.adId;return n.i(o.a)(e,r({},h,{impressionTracked:!0}));default:return e}}},function(e,t,n){"use strict";var r=n(1368),o={};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case r.a:var n=t.headers;return n;default:return e}}},function(e,t,n){"use strict";var r=n(9),o=n(640),i={fetching:!1,received:!1,subredditNames:[]};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case o.c:return n.i(r.a)(e,{fetching:!0});case o.d:return n.i(r.a)(e,{fetching:!1,received:!0,subredditNames:t.results});case o.e:return i;default:return e}}},function(e,t,n){"use strict";var r=n(48),o=[];t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=arguments[1];switch(t.type){case r.g:return t.payload;default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(73),i=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case o.g:var n=t.payload.id;return i({},e,r({},n,!e[n]));default:return e}}},function(e,t,n){"use strict";var r=n(73),o=n(48),i=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case o.e:case r.h:var n=t.payload.continueThreadObjects;return i({},e,n);default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(20),i=n(48),a=n(73),u=n(117),s=n(8),c=n(217),l=n(87),f=n(145),d=n(118),p=n(180),h=n(213),v=n(116),m=n(115),y=n(184),g=n(284),_=n(9),b=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:E,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case s.b:case s.c:return E;case i.e:case a.h:var T=t.payload.comments;return b({},e,T);case u.c:var w=t.model;return b({},e,r({},w.uuid,w));case a.i:case a.j:var S=t.comment;return n.i(y.a)(e,r({},S.uuid,S));case m.e:case v.e:case h.b:case p.b:case d.b:case l.c:var O=t.apiResponse.comments;return n.i(y.a)(e,O);case a.k:var P=t.model;return n.i(_.a)(e,r({},P.uuid,P));case c.b:case c.c:return n.i(g.a)(e,t,{restrictType:o.a});case f.j:var R=t.thing,I=t.username;return R.type===o.a?n.i(g.a)(e,{model:R.set({approved:!0,removed:!1,spam:!1,approvedBy:I})}):e;case f.k:var A=t.thing,C=t.spam,x=t.username;return A.type===o.a?n.i(g.a)(e,{model:A.set({approved:!1,removed:!C,spam:C,bannedBy:x})}):e;case f.l:var N=t.thing,M=t.distinguishType;return N.type===o.a?n.i(g.a)(e,{model:N.set({distinguished:M})}):e;case f.m:var k=t.thing,D=t.isStickied;return k.type!==o.a?e:n.i(g.a)(e,{model:k.set({stickied:D})});default:return e}}},function(e,t,n){"use strict";var r=n(212),o=(n.n(r),n(1480)),i=n(1481),a=n(1482),u=n(1484),s=n(1485),c=n(1479);t.a=n.i(r.combineReducers)({collapsed:o.a,continueThread:i.a,data:a.a,loadMore:u.a,loadMorePending:s.a,ad:c.a})},function(e,t,n){"use strict";var r=n(73),o=n(48),i=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case o.e:case r.h:var n=t.payload.commentLoadMoreObjects;return i({},e,n);default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(73),i=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case o.l:var n=t.payload.loadMoreId;return i({},e,r({},n,!0));case o.h:case o.m:var u=t.payload.loadMoreId;return i({},e,r({},u,!1));default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(48),i=n(8),a=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case i.b:case i.c:return u;case o.e:var n=t.payload,s=n.pageId,c=n.response;return a({},e,r({},s,{responseCode:c.status,pending:!1,errors:{}}));case o.h:var l=t.payload,f=l.commentsPageId,d=l.error,p=d&&d.status?d.status:500;return a({},e,r({},f,{responseCode:p,errors:d,pending:!1}));case o.i:var h=t.payload.commentsPageId;return a({},e,r({},h,{pending:!0,errors:{}}));default:return e}}},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case c.b:case c.c:return d;case s.e:var n,i=t.payload,p=i.results,h=i.pageId;return f({},e,(n={},o(n,h,p),o(n,"current",h),n));case u.h:var v=t.payload,m=v.pageId,y=v.loadMoreId,g=v.results,_=e[m],b=a()(_,function(e){return e.uuid===y}),E=_[b].depth,T=_.slice(0,b).concat(g.map(function(e){var t=e.uuid,n=e.depth,r=e.type;return{uuid:t,type:r,depth:E+n}})).concat(_.slice(b+1));return f({},e,o({},m,T));case l.c:var w=t.model,S=w.linkId===w.parentId,O=e[e.current];if(!S){var P=a()(O,function(e){return e.uuid===w.parentId}),R=O[P],I=w.set({depth:R.depth+1}),A=I.toRecord(),C=O.slice(0,P+1).concat([A]).concat(O.slice(P+1));return f({},e,o({},e.current,C))}var x=w.set({depth:0}),N=x.toRecord(),M=[N].concat(r(O));return f({},e,o({},e.current,M));default:return e}}},function(e,t,n){"use strict";var r=n(212),o=(n.n(r),n(1486)),i=n(1487);t.a=n.i(r.combineReducers)({api:o.a,data:i.a})},function(e,t,n){"use strict";var r=n(407),o=n(8),i=!0;t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case o.b:case o.c:return i;case r.b:return t.compact;default:return e}}},function(e,t,n){"use strict";var r=n(1370);t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case r.a:return t.key;default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(98),i=n.n(o),a=n(9),u=n(73),s=n(8),c=n(103),l={};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case s.b:case s.c:return l;case u.n:case c.k:var o=t.thingId;return e[o]?i()(e,o):n.i(a.a)(e,r({},o,{pending:!1,error:null}));case u.o:case c.l:var f=t.thingId;return n.i(a.a)(e,r({},f,{pending:!0,error:null}));case u.k:case c.m:var d=t.model;return i()(e,d.uuid);case u.p:case c.n:var p=t.thingId,h=t.error;return n.i(a.a)(e,r({},p,{pending:!1,error:h}));default:return e}}},function(e,t,n){"use strict";var r=n(7),o=n(5),i=n(634),a=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case r.i:var n=e.showEUCookie,s=e.numberOfTimesShown;return n&&s>=o.U?{showEUCookie:!1,numberOfTimesShown:s}:e;case i.c:var c=t.showEUCookie,l=t.numberOfTimesShown;return{showEUCookie:c,numberOfTimesShown:l};case i.d:var f=e.numberOfTimesShown;return a({},e,{numberOfTimesShown:f+1});case i.e:return{showEUCookie:!1,numberOfTimesShown:o.U};default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(8),i=n(103),a=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case o.b:case o.c:return u;case i.o:var n=t.postId,s=e[n];if(s){var c=a({},e);return delete c[n],c}return a({},e,r({},n,!0));default:return e}}},function(e,t,n){"use strict";var r=n(1371),o={};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case r.a:return t.payload;default:return e}}},function(e,t,n){"use strict";var r=n(1372),o=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:i,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case r.a:return o({},e,{requested:!0});case r.b:var n=t.payload.experimentVariants,a=n.map(function(e){var t=e.id,n=e.experimentName,r=e.name,o=e.version;return{id:parseInt(t),name:n,variant:r||void 0,version:o}});return o({},e,{models:a});default:return e}}},function(e,t,n){"use strict";var r=n(1373),o={Off:0,On:1};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.On,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case r.a:return o.On;case r.b:return o.Off;default:return e}}},function(e,t,n){"use strict";var r=n(148);t.a=function(e){var t=e.commentsPages;if(!t)return[];var o=t.data[t.data.current];if(!o||!o.length)return[];var i=o.map(function(t){return n.i(r.a)(t.uuid,e)}).filter(function(e){return e.stickied});return i}},function(e,t,n){"use strict";var r=n(183),o=n(148),i=n(286);t.a=function(e){var t=e.platform.currentPage,a=i.a.pageParamsToSubredditPostsParams(t),u=n.i(r.a)(a);if(!u)return[];var s=e.postsLists[u];if(!s||!s.results.length)return[];var c=s.results.map(function(t){return n.i(o.a)(t.uuid,e)}).filter(function(e){return e.stickied});return c}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(9),i=n(213),a=n(427),u=n(8),s={};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case u.b:case u.c:return s;case i.c:var c=t.id,l=t.params,f=e[c];return f?e:n.i(o.a)(e,r({},c,n.i(a.b)(c,l)));case i.b:var d=t.id,p=t.apiResponse,h=e[d];return h?n.i(o.a)(e,r({},d,{results:p.results,loading:!1})):e;default:return e}}},function(e,t,n){"use strict";var r=n(619),o=n.n(r),i=n(86),a=n(635),u=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case a.b:var n=t.loid,r=t.loidCookie,c=t.loidCreated,l=t.loidCreatedCookie;return n?u({},e,{loid:n,loidCookie:r,loidCreated:c,loidCreatedCookie:l}):s;case i.c:var f=t.apiResponse;if(f.accounts.me){var d=f.accounts.me,p=d.loid,h=d.loidCreated,v=u({},e);p&&(v=u({},v,{loid:p,loidCreated:h}));var m=f.meta,y=m["set-cookie"]||[];return y.forEach(function(e){var t=o.a.parse(e)[0],n=t.name,r=t.value;"loid"===n?v.loidCookie=r:"loidcreated"===n&&(v.loidCreatedCookie=r)}),v}return e;case a.c:var g=t.edgeBucket;return g?u({},e,{edgeBucket:g}):e;default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(9),i=n(8),a=n(87),u=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case i.b:case i.c:return s;case a.d:var u=t.mailType;return n.i(o.a)(e,r({},u,{pending:!0,error:null}));case a.c:var c=t.mailType,l=t.apiResponse;return n.i(o.a)(e,r({},c,{pending:!1,error:null,order:l.results,meta:l.meta}));case a.e:var f=t.mailType,d=t.error;return n.i(o.a)(e,r({},f,{error:d,pending:!1}));default:return e}}},function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case i.b:case i.c:return u;case a.c:var r=t.apiResponse.messages;return n.i(o.a)(e,r);case a.f:var s=t.data.messages;return n.i(o.a)(e,s);default:return e}}var o=n(184),i=n(8),a=n(87);t.a=r;var u={}},function(e,t,n){"use strict";var r=n(1374),o={userAgent:"",country:""};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case r.a:return t.meta;default:return e}}},function(e,t,n){"use strict";var r=n(9),o=n(408),i=n(146),a=n(179),u={type:null,props:{}};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case i.e:case a.e:return n.i(r.a)(e,{type:t.modalType,props:t.modalProps});case o.b:return n.i(r.a)(e,{type:null,props:{}});default:return e}}},function(e,t,n){"use strict";var r=n(9),o=n(145),i=n(8),a={loading:!1,error:null,names:null};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case o.n:var u={loading:!0,names:null,error:null};return n.i(r.a)(e,u);case o.o:var s=t.apiResponse.results.map(function(e){return e.uuid}),c={loading:!1,names:s,error:null};return n.i(r.a)(e,c);case o.p:var l={loading:!1,error:t.error,names:[]};return n.i(r.a)(e,l);case i.b:case i.c:return a;default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(9),i=n(8),a=n(409),u={};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case i.b:case i.c:return u;case a.c:var s=t.url,c=e[s];return c&&c.loading?e:n.i(o.a)(e,r({},s,{loading:!0,failed:!1}));case a.b:var l=t.url,f=e[l];return f&&f.loading?n.i(o.a)(e,r({},l,{loading:!1,failed:!1})):e;case a.d:var d=t.url,p=e[d];return p&&p.loading?n.i(o.a)(e,r({},d,{loading:!1,failed:!0})):e;default:return e}}},function(e,t,n){"use strict";var r=n(284),o=n(8),i=n(409),a={};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case o.b:case o.c:return a;case i.b:return n.i(r.a)(e,t);default:return e}}},function(e,t,n){"use strict";var r=n(410),o=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:i,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case r.c:return o({},i,t.payload,{visible:!0});case r.d:return o({},e,{visible:!1});default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(9),i=n(7),a=n(411),u=n(5),s={};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case i.i:var c=t.payload.queryParams,l=u.p.find(function(e){return void 0!==c[e.URL_FLAG]});if(!l)return e;var f=l.URL_FLAG,d=l.STORE_KEY,p=c[f];return"false"===p?n.i(o.a)(e,r({},d,void 0)):n.i(o.a)(e,r({},d,!0));case a.b:var h=t.flag.STORE_KEY;return n.i(o.a)(e,r({},h,!0));default:return e}}},function(e,t,n){"use strict";var r=n(7),o=n(407),i=n(177),a=n(415),u=null;t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case r.i:case o.b:case i.k:case a.b:return u;case i.l:var n=t.kind;return n&&n!==e?n:u;default:return e}}},function(e,t,n){"use strict";var r=n(412),o=n(7),i=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case o.c:case o.b:return a;case r.b:return t.title?i({},e,{title:t.title}):a;default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(103),i=n(7),a=n(26),u=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case i.c:return c;case i.i:var l=t.payload.urlParams.postId;if(l&&"object"===("undefined"==typeof window?"undefined":s(window))&&window.navigator){var f=/iPad|iPhone|iPod/i.test(navigator.userAgent)&&!window.MSStream;if(e[l]&&!f)return r({},l,!0)}return c;case o.p:var d=n.i(a.o)(t.thingId),p=e[d];return p?e:u({},e,r({},d,!0));case o.q:var h=n.i(a.o)(t.thingId);if(e[h]){var v=u({},e);return delete v[h],v}return e;default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(9),i=n(7),a=n(8),u=n(413),s={title:"",meta:"",gRecaptchaResponse:"",showCaptcha:!1,currentType:""},c=new Set(["self","link"]);t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case a.b:case a.c:return s;case u.d:return n.i(o.a)(e,{showCaptcha:!0});case u.e:var l=t.field,f=t.value;return n.i(o.a)(e,r({},l,f));case u.f:return n.i(o.a)(e,{showCaptcha:!1});case u.g:return s;case i.i:var d=t.payload.queryParams.type;return c.has(d)||(d="self"),d!==e.currentType?n.i(o.a)(s,{currentType:d}):e;default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(20),i=n(184),a=n(284),u=n(8),s=n(115),c=n(144),l=n(48),f=n(103),d=n(116),p=n(213),h=n(180),v=n(118),m=n(217),y=n(87),g=n(145),_=n(276),b=n(278),E=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:T,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case u.b:case u.c:return T;case s.e:case d.e:case p.b:case h.b:case v.b:case b.c:case _.b:case y.c:var S=t.apiResponse.posts;return n.i(i.a)(e,S);case f.r:case f.s:var O=t.post;return n.i(i.a)(e,r({},O.uuid,O));case c.j:case m.b:case m.c:case f.m:return n.i(a.a)(e,t,{restrictType:o.d});case f.t:var P=t.post;return n.i(i.a)(e,r({},P.uuid,P));case g.j:var R=t.thing,I=t.username;return R.type===o.d?n.i(a.a)(e,{model:R.set({approved:!0,removed:!1,spam:!1,approvedBy:I})}):e;case g.k:var A=t.thing,C=t.spam,x=t.username;return A.type===o.d?n.i(a.a)(e,{model:A.set({approved:!1,removed:!C,spam:C,bannedBy:x})}):e;case g.l:var N=t.thing,M=t.distinguishType;return N.type===o.d?n.i(a.a)(e,{model:N.set({distinguished:M})}):e;case g.q:var k=t.thing;return k.type===o.d?n.i(a.a)(e,{model:k.set({locked:!k.locked})}):e;case g.r:var D=t.thing;return D.type===o.d?n.i(a.a)(e,{model:D.set({over18:!D.over18})}):e;case g.s:var L=t.thing;return L.type===o.d?n.i(a.a)(e,{model:L.set({spoiler:!L.spoiler})}):e;case g.t:var j=t.thing,F=t.isStickied;return j.type!==o.d?e:n.i(a.a)(e,{model:j.set({stickied:F})});case l.e:var U=t.payload.posts,B=Object.keys(U).reduce(function(t,n){return E({},t,r({},n,w(e,U[n])))},{});return n.i(i.a)(e,B);default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(9),i=n(144),a=n(8),u=n(116),s=function(e,t){return{id:e,params:t,adId:"",results:[],loading:!0,responseCode:null}},c={};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case a.b:case a.c:return c;case u.f:var l=t.postsListId,f=t.postsParams,d=e[l];return d?e:n.i(o.a)(e,r({},l,s(l,f)));case u.e:var p=t.postsListId,h=t.apiResponse,v=e[p];return v?n.i(o.a)(e,r({},p,{loading:!1,results:h.results,responseCode:h.response.status})):e;case u.g:var m=t.postsListId,y=t.error,g=e[m];if(!g)return e;var _=y&&y.status?y.status:500;return n.i(o.a)(e,r({},m,{responseCode:_,loading:!1}));case i.i:var b=t.postsListId,E=t.adId;return n.i(o.a)(e,r({},b,{adId:E}));default:return e}}},function(e,t,n){"use strict";var r=n(295),o=n(8),i=n(178),a=r.a.fromJSON({});t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case o.b:case o.c:return a;case i.c:var n=t.preferences;return n;case i.d:return e.set("over18",!0);default:return e}}},function(e,t,n){"use strict";var r=n(9),o=n(8),i=n(178),a={succeeded:!1,pending:!1,failed:!1};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case o.b:case o.c:return a;case i.e:return n.i(r.a)(e,{succeeded:!1,pending:!0,failed:!1});case i.c:return n.i(r.a)(e,{pending:!1,succeeded:!0});case i.f:return n.i(r.a)(e,{pending:!1,failed:!0});default:return e}}},function(e,t,n){"use strict";var r=n(188);t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case r.c:return e?e:t.isInstalled;default:return e}}},function(e,t,n){"use strict";var r=n(188);t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case r.d:return e?e:t.timestamp;default:return e}}},function(e,t,n){"use strict";var r=n(188);t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case r.e:return t.isActive;default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(55),i=n(214),a={};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case i.d:return r({},t.name.toLowerCase(),t.quarantineMessageHTML);case i.e:case o.b:return a;default:return e}}},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case o.b:case o.c:return s;case a.a:return t.subreddits;case i.b:var n=t.model.displayName,c=[n].concat(r(e));return Array.from(new Set(c)).slice(0,u);default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(9),i=n(636),a={};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case i.a:return n.i(o.a)(e,r({},t.subredditName,t.apiResponse.results.map(function(e){return e.uuid})));default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(9),i=n(8),a=n(117),u={};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case i.c:return u;case a.e:return n.i(o.a)(e,r({},t.parentId,{pending:!1}));case a.f:return n.i(o.a)(e,r({},t.parentId,{pending:!0}));case a.c:return n.i(o.a)(e,r({},t.parentId,{pending:!1}));default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(9),i=n(8),a=n(117),u={};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case i.c:return u;case a.c:case a.d:return n.i(o.a)(e,r({},t.parentId,!e[t.parentId]));default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(179),i=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case o.f:var n=t.featureName,u=t.subredditName,s=o.a(n,u);return i(r({},s,!0),e);default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(9),i=n(180),a=n(428),u=n(8),s={};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case u.b:case u.c:return s;case i.c:var c=t.id,l=t.params,f=e[c];return f?e:n.i(o.a)(e,r({},c,n.i(a.b)(c,l)));case i.b:var d=t.id,p=t.apiResponse,h=e[d];return h?n.i(o.a)(e,r({},d,{results:p.results,loading:!1})):e;default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(8),i=n(637),a=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case o.b:case o.c:return u;case i.b:var n=t.url,s=t.scrollTop;return a({},e,r({},n,s));default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(9),i=n(20),a=n(118),u=n(8),s=n(429),c=function(e,t){return e.filter(function(e){return e.type===t})},l=function(e){return c(e,i.h)},f=function(e){return c(e,i.d)},d={};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case u.b:case u.c:return d;case a.c:var i=t.id,c=t.params,p=e[i];return p?e:n.i(o.a)(e,r({},i,n.i(s.b)(i,c)));case a.b:var h=t.id,v=t.apiResponse,m=e[h];if(!m)return e;var y=l(v.results),g=f(v.results);return n.i(o.a)(e,r({},h,{loading:!1,subreddits:y,posts:g}));default:return e}}},function(e,t,n){"use strict";var r=n(443),o=!1;t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case r.a:return!0;default:return e}}},function(e,t,n){"use strict";var r=n(181),o={};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case r.c:var n=t.payload.session;return n;case r.d:var i=t.payload.error;return{error:i};default:return e}}},function(e,t,n){"use strict";var r=n(638),o=!1;t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case r.b:return!0;case r.c:return!1;default:return e}}},function(e,t,n){"use strict";var r=n(138),o=n.n(r),i=n(263),a=n.n(i),u=n(619),s=n.n(u),c=n(86),l=n(639),f=n(433),d={id:void 0,value:void 0};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case l.b:var r=t.id,i=t.value;return r?{id:r,value:i}:d;case c.c:var u=["apiResponse","meta","set-cookie"],p=o()(t,u,[]),h=a()(e,["id","value"]);return p.length&&p.forEach(function(e){var t=s.a.parse(e)[0],r=t.name,o=t.value;if(r===f.c){var i=n.i(f.a)(o);h={id:i,value:o}}}),h;default:return e}}},function(e,t,n){"use strict";var r=n(151),o=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:i,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case r.d:return o({},e,{hasWebShare:t.result});case r.e:return o({},e,{post:t.post,link:null,visible:!0});case r.f:return o({},e,{post:null,visible:!1});case r.g:return o({},e,{link:t.link});default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(9),i=n(276),a={};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case i.b:return n.i(o.a)(e,r({},t.postId,t.apiResponse.results.map(function(e){return e.uuid})));default:return e}}},function(e,t,n){"use strict";var r=n(8),o=n(414),i=[];t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case r.b:case r.c:return i;case o.b:var n=t.sitewideRules;return n;default:return e}}},function(e,t,n){"use strict";var r=n(9),o=n(414),i=n(1459),a=null;t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case o.c:var u=e;return u&&u.loading?e:n.i(i.a)();case o.b:var s=e;return s&&s.loading?n.i(r.a)(e,{loading:!1}):e;case o.d:var c=e;return c&&c.loading?n.i(r.a)(e,{loading:!1,failed:!0}):e;default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(9),i=n(8),a=n(55),u=n(1460),s={};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}; +switch(t.type){case i.b:case i.c:return s;case a.c:var c=t.name,l=e[c];return l&&l.loading?e:n.i(o.a)(e,r({},c,n.i(u.a)(c)));case a.b:var f=t.name,d=e[f];return d&&d.loading?n.i(o.a)(e,r({},f,{loading:!1})):e;case a.d:var p=t.name,h=e[p];return h&&h.loading?n.i(o.a)(e,r({},p,{loading:!1,failed:!0})):e;default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(8),i=n(215),a=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case o.b:case o.c:return u;case i.b:var n=t.subredditName,s=t.subredditRules;return a(r({},n,s),e);default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(9),i=n(215),a=n(1461),u={};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case i.c:var s=t.subredditName,c=e[s];return c&&c.loading?e:n.i(o.a)(e,r({},s,n.i(a.a)(s)));case i.b:var l=t.subredditName,f=e[l];return f&&f.loading?n.i(o.a)(e,r({},l,{loading:!1})):e;case i.d:var d=t.subredditName,p=e[d];return p&&p.loading?n.i(o.a)(e,r({},d,{loading:!1,failed:!0})):e;default:return e}}},function(e,t,n){"use strict";var r=n(184),o=n(284),i=n(86),a=n(8),u=n(636),s=n(277),c=n(118),l=n(55),f=n(216),d={};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case a.b:case a.c:return d;case i.c:case u.a:case c.b:case s.c:case f.c:var p=t.apiResponse.subreddits;return n.i(r.a)(e,p);case l.b:case f.d:return n.i(o.a)(e,t);default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(9),i=n(277),a={};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case i.c:return n.i(o.a)(e,r({},t.postId,t.apiResponse.results.map(function(e){return e.uuid})));default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(9),i=n(278),a={};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case i.c:return n.i(o.a)(e,r({},t.postId,t.apiResponse.results.map(function(e){return e.uuid})));default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(9),i=n(8),a=n(118),u=n(55),s=n(216),c=n(1462),l=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:f,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case i.b:case i.c:return f;case s.e:return e.fetching?e:n.i(o.a)(e,{fetching:!0});case s.c:var c=t.apiResponse,p=c.results.reduce(function(e,t){return l({},e,r({},t.uuid,t))},{});return n.i(o.a)(e,{subreddits:p,loaded:!0});case a.b:if(!e.loaded)return e;var h=t.apiResponse.subreddits;return d(e,h);case u.b:case s.d:if(!e.loaded)return e;var v=t.model;return d(e,r({},v.uuid,v));default:return e}}},function(e,t,n){"use strict";var r=n(415),o=n(8),i=n(5),a=i.g.DAYMODE;t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case o.b:case o.c:return a;case r.b:return t.theme!==e?t.theme:e;default:return e}}},function(e,t,n){"use strict";var r=n(9),o=n(7),i=n(117),a=n(73),u=n(145),s=n(150),c=n(103),l=n(413),f=n(146),d=n(87),p=n(217),h=n(411),v={isOpen:!1,type:null,message:null},m="Something went wrong.";t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case i.e:case a.p:case d.g:case u.u:case u.v:case u.w:case u.x:case u.y:case u.z:case c.n:case l.h:case l.i:case f.f:case s.c.ERROR:case p.d:return n.i(r.a)(e,{isOpen:!0,type:s.c.ERROR,message:t.message||m});case s.c.SUCCESS:case f.a:return n.i(r.a)(e,{isOpen:!0,type:s.c.REPORT_SUCCESS,message:t.message});case h.b:case s.c.REPORT_SUCCESS:case i.c:return n.i(r.a)(e,{isOpen:!0,type:s.c.SUCCESS,message:t.message});case o.i:case s.e:return n.i(r.a)(e,{isOpen:!1,type:null,message:null});default:return e}}},function(e,t,n){"use strict";var r=n(115),o=n(48),i=n(87),a=n(116),u=n(180),s=n(118),c=n(276),l=n(218),f=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case r.e:case o.e:case i.c:case a.e:case u.b:case s.b:case c.b:case l.b:var n=t.payload?t.payload.response:t.apiResponse.response,p=n.headers["x-reddit-tracking"]||e.pixel;return f({},e,{pixel:p});default:return e}}},function(e,t,n){"use strict";var r=n(9),o=n(8),i=n(7),a=n(416),u=n(5),s={activeForm:u.l.AUTH};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case a.d:return n.i(r.a)(e,{activeForm:u.l.APP_CODE});case a.e:return n.i(r.a)(e,{activeForm:u.l.BACKUP_CODE});case a.f:return n.i(r.a)(e,{activeForm:u.l.AUTH});case o.b:return n.i(r.a)(e,s);case i.c:return n.i(r.a)(e,s);default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(8),i=n(103),a=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case o.b:case o.c:return u;case i.u:var n=t.postId,s=!e[n];return a({},e,r({},n,s));default:return e}}},function(e,t,n){"use strict";var r=n(9),o=n(86),i=n(8),a={loggedOut:!0,name:"me",loading:!1};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case i.b:case i.c:return a;case o.b:var u=t.name,s=t.loggedOut;return"me"!==u||e.loading?e:n.i(r.a)(e,{name:u,loggedOut:s,loading:!0});case o.c:var c=t.name,l=t.loggedOut,f=t.apiResponse,d=f.results.length?f.results[0]:{};return"me"===c&&d.uuid!==e.name?n.i(r.a)(e,{name:d.uuid,loading:!1,loggedOut:l}):e;default:return e}}},function(e,t,n){"use strict";var r=n(417),o={token:null};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case r.c:return{token:t.token};default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(144),i=n(9),a={hasBuffered:{},currentViewStartedAt:{}};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case o.o:var u=t.hasBuffered,s=t.postId;return n.i(i.a)(e,{hasBuffered:r({},s,u)});case o.p:var c=t.newTime,l=t.postId;return n.i(i.a)(e,{currentViewStartedAt:r({},l,c)});default:return e}}},function(e,t,n){"use strict";var r=n(1208),o=n.n(r),i=n(582),a=n.n(i),u=n(48),s=n(5),c=[];t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case u.j:var n=t.postId;return e[0]===n?e:o()(a()([n].concat(e)),s.X);default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(9),i=n(218),a=n(1463),u=n(8),s=n(437),c=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case u.b:case u.c:return l;case i.c:var f=t.subredditName,d=t.path,p=n.i(s.b)(f,d),h=e[p];return h?e:n.i(o.a)(e,r({},p,n.i(a.a)(p)));case i.b:var v=t.subredditName,m=t.path,y=t.result,g=n.i(s.b)(v,m),_=e[g];return _?n.i(o.a)(e,r({},g,{result:y})):n.i(o.a)(e,r({},g,c({},n.i(a.a)(g),{loading:!1})));default:return e}}},function(e,t,n){"use strict";var r=n(184),o=n(8),i=n(218),a={};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case o.b:case o.c:return a;case i.b:var u=t.apiResponse.wikis;return n.i(r.a)(e,u);default:return e}}},function(e,t,n){"use strict";var r=n(212),o=(n.n(r),n(1557)),i=n(1558),a=n(1559),u=n(1560);t.a=n.i(r.combineReducers)({interstitials:o.a,listingClick:i.a,persistent:a.a,serverSide:u.a})},function(e,t,n){"use strict";var r=n(9),o=n(43),i=n(8),a=n(57),u=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case o.n:return n.i(r.a)(e,{ampExemption:t.value});case o.o:return n.i(r.a)(e,u({showBanner:!0},t.data));case o.p:return s;case o.q:return n.i(r.a)(e,{scrolledStart:!0});case o.r:return n.i(r.a)(e,{scrolledPast:!0});case o.s:return n.i(r.a)(e,{scrolledPast:!1});case o.t:return n.i(r.a)(e,{loginRequired:!0});case o.u:return n.i(r.a)(e,{showBanner:!1});case i.b:return e.loginRequired?(n.i(a.c)(),n.i(r.a)(e,{showBanner:!1,loginRequired:!1})):e;default:return e}}},function(e,t,n){"use strict";var r=n(9),o=n(43),i={ineligibilityReason:null,lastModalClick:0,target:null,clickInfo:null,active:!1,dismissed:!1,showingAppStoreModal:!1,showingReturnerModal:!1,modalDismissCount:0};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case o.v:var a=t.payload,u=a.ineligibilityReason,s=a.lastModalClick,c=a.modalDismissCount;return n.i(r.a)(e,{ineligibilityReason:u,lastModalClick:s,target:null,modalDismissCount:c});case o.w:return n.i(r.a)(e,{modalDismissCount:t.modalDismissCount});case o.x:var l=t.payload.target;return n.i(r.a)(e,{target:l});case o.y:var f=t.payload,d=f.postId,p=f.listingClickType;return n.i(r.a)(e,{active:!0,showingAppStoreModal:!0,clickInfo:{listingClickType:p,postId:d}});case o.z:return n.i(r.a)(e,{active:!0,showingAppStoreModal:!1,showingReturnerModal:!0});case o.A:return n.i(r.a)(e,{active:!1,clickInfo:null,target:null,showingAppStoreModal:!1,showingReturnerModal:!1,dismissed:!0});case o.B:return n.i(r.a)(e,{lastModalClick:t.clickTime});case o.C:return n.i(r.a)(e,{active:!1,clickInfo:null});default:return e}}},function(e,t,n){"use strict";var r=n(9),o=n(43),i={active:!1,dismissed:!1};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case o.D:return n.i(r.a)(e,{dismissed:!0});case o.E:return n.i(r.a)(e,{active:!0});case o.F:return n.i(r.a)(e,{active:!1});default:return e}}},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case i.G:var u=e.firstBuckets;return n.i(o.a)(e,{firstBuckets:[].concat(r(u),[t.payload.bucketEventName])});default:return e}}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(){var e=new C(u.a.reduxActionLogSize,[i.i,i.b,i.c,f.b,d.d,h.l,v.i,m.c,y.d,_.f,E.c,T.c,w.c,P.c]);return function(t){return function(n){return function(r){e.push(r);var o=I(r);o&&A(o,t.getState(),e);try{var i=n(r);return i instanceof Promise&&i["catch"](function(n){var r=void 0;if(!n._SEEN_BY_REDUX_ERROR_LOGGER){try{n._SEEN_BY_REDUX_ERROR_LOGGER=!0}catch(o){r=!0}A(n,t.getState(),e,r)}}),i}catch(o){A(o,t.getState(),e)}}}}}var i=n(7),a=n(104),u=n(17),s=n(447),c=n(679),l=n(1594),f=n(86),d=n(115),p=n(144),h=n(73),v=n(48),m=n(213),y=n(87),g=n(103),_=n(116),b=n(178),E=n(180),T=n(118),w=n(55),S=n(216),O=n(217),P=n(218);t.a=o;var R=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[];r(this,e),this.stack=new l.a(t),this.expandedInfoList=new Set(n)}return R(e,[{key:"push",value:function(e){if("function"!=typeof e){var t=this.expandedInfoList.has(e.type)?e:e.type;this.stack.push(t)}}},{key:"toString",value:function(){return"Redux Action Stack: "+this.stack.values().map(c.a).join(", ")}}]),e}()},function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,i){try{var a=t[o](i),u=a.value}catch(s){return void n(s)}return a.done?void e(u):Promise.resolve(u).then(function(e){r("next",e)},function(e){r("throw",e)})}return r("next")})}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=n(10),s=function(){function e(e,t){for(var n=0;n-1}},function(e,t,n){"use strict";var r=n(582),o=n.n(r),i=n(432),a=n(5),u=function(e){var t=e.visitedPosts.concat(Object.keys(e.expandedPosts));return o()(t).slice(0,a.V)},s=function(e){return e.recentSubreddits.filter(function(t){return e.subreddits[t.toLowerCase()]}).map(function(t){return e.subreddits[t.toLowerCase()].name})},c=function(e,t,n,r,o,i,a){var u={theme:e,compact:t,over18:n,EUCookieNotice:a};return u[i+"_recent_srs"]=r.join(","),u[i+"_recentclicks2"]=o.map(function(e){return"t3_"+e}).join(","),u};t.a=n.i(i.a)(function(e){return e.theme},function(e){return e.compact},function(e){return e.preferences.over18},s,u,function(e){return!e.user.loggedOut&&e.user.name?e.user.name:""},function(e){return e.euCookieNotice.numberOfTimesShown},c)},function(e,t,n){"use strict";var r=n(432),o=n(1622),i=n(1615),a=n(5),u=a.g.DAYMODE,s=a.g.NIGHTMODE,c=n.i(i.a)(a.W),l=function(e){return e.theme},f=function(e){var t=!!e.overlay,n=!!e.widgets.tooltip.id;return t||n},d=function(e){return e.pageMetadata.title},p=function(e,t,n){return{theme:e,overlayOpen:t,title:n}},h=function(e,t){var r=n.i(o.a)(t),i=n.i(o.a)(t===s?u:s);e.classList.remove(i),e.classList.add(r)},v=function(e,t){if(t){if(e.classList.contains(a.W))return;e.classList.add(a.W),e.addEventListener("touchmove",c)}else e.classList.remove(a.W),e.removeEventListener("touchmove",c)},m=function(e,t){e.innerText=t,e.innerHTML=t},y=void 0,g=void 0,_=function(e){if(y||(y=document.body),g||(g=document.head.getElementsByTagName("title")[0]),y.classList){var t=e.theme,n=e.overlayOpen,r=e.title;t&&h(y,e.theme),"undefined"!=typeof n&&v(y,n),r&&m(g,r)}};t.a=n.i(r.b)([l,f,d],p,_)},function(e,t,n){"use strict";var r=n(432);t.a=n.i(r.c)(function(e){return e.comments.collapsed},function(e){return e.expandedPosts},function(e){return JSON.stringify(e.visitedPosts)},function(e){return e.optOuts},function(e){return e.rulesModal},function(e){return e.pwaInstalledTimestamp},function(e,t,n,r,o,i){return{collapsedComments:e,expandedPosts:t,visitedPosts:n,optOuts:r,rulesModal:o,pwaInstalledTimestamp:i}})},function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,i){try{var a=t[o](i),u=a.value}catch(s){return void n(s)}return a.done?void e(u):Promise.resolve(u).then(function(e){r("next",e)},function(e){r("throw",e)})}return r("next")})}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=n(0),s=n.n(u),c=n(3),l=(n.n(c),n(4)),f=(n.n(l),n(188)),d=n(221),p=n(294),h=n(297),v=function(){function e(e,t){for(var n=0;n3&&void 0!==arguments[3]&&arguments[3],a={pwa:n.i(h.c)(e,i)},u=n.i(h.b)(e,t,r,o,a);n.i(p.a)(u)}}}),_=function(e){return{hideXPromo:function(){return e(n.i(f.a)(!0))},setInstalledToHome:function(){return e(n.i(f.b)())},showXPromo:function(){return e(n.i(f.a)(!1))}}};t.a=n.i(c.connect)(g,_)(y)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),u=n.n(a),s=n(3),c=(n.n(s),n(4)),l=(n.n(c),n(139)),f=n.n(l),d=n(104),p=n(637),h=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.expiredOnly,n=void 0!==t&&t;if(this.props.session.refreshToken){if(n&&this.props.session.isValid)return;this.props.refreshSession()}}},{key:"render",value:function(){return null}}]),t}(u.a.Component),v=n.i(c.createSelector)(function(e){return e.session},function(e){return{session:e}}),m=function(e){return{refreshSession:function(){return e(f.a())}}};t.a=n.i(s.connect)(v,m)(h)},function(e,t,n){"use strict";(function(e){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),u=n.n(a),s=n(3),c=(n.n(s),n(4)),l=(n.n(c),n(63)),f=n.n(l),d=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.commentsList,n=e.collapsedComments,r=e.allComments,u=e.allLoadMoreComments,s=e.allContinueThreads,c=e.pendingLoadMore,l=function(e,t){var a=t.depth,l=t.uuid,f=t.type,d=a>e.currentCollapsedDepth,p=!!n[l],h=e.currentCollapsedDepth;d||(h=p?a:1/0);var v=void 0;f===o.a?v=r[l]:f===o.b?v=i({},u[l],{isPending:!!c[l]}):f===o.c&&(v=s[l]);var m={depth:a,isHidden:d,type:f,data:i({},v,{isCollapsed:p})};return{currentCollapsedDepth:h,list:e.list.concat([m])}};return t.reduce(l,a).list}var o=n(20);t.a=r;var i=Object.assign||function(e){for(var t=1;t=0&&u>=0&&{top:n,bottom:r,left:o,right:i,width:a,height:u}}function c(e){var t;try{t=e.getBoundingClientRect()}catch(n){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):l()}function l(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function f(e,t){for(var n=t;n;){if(n==e)return!0;n=d(n)}return!1}function d(e){var t=e.parentNode;return t&&11==t.nodeType&&t.host?t.host:t}if("IntersectionObserver"in e&&"IntersectionObserverEntry"in e&&"intersectionRatio"in e.IntersectionObserverEntry.prototype)return void("isIntersecting"in e.IntersectionObserverEntry.prototype||Object.defineProperty(e.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}}));var p=[];r.prototype.THROTTLE_TIMEOUT=100,r.prototype.POLL_INTERVAL=null,r.prototype.USE_MUTATION_OBSERVER=!0,r.prototype.observe=function(e){var t=this._observationTargets.some(function(t){return t.element==e});if(!t){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},r.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter(function(t){return t.element!=e}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},r.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},r.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},r.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter(function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]})},r.prototype._parseRootMargin=function(e){var t=e||"0px",n=t.split(/\s+/).map(function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}});return n[1]=n[1]||n[0],n[2]=n[2]||n[0],n[3]=n[3]||n[1],n},r.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(a(e,"resize",this._checkForIntersections,!0),a(t,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in e&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},r.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,u(e,"resize",this._checkForIntersections,!0),u(t,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},r.prototype._checkForIntersections=function(){var e=this._rootIsInDom(),t=e?this._getRootRect():l();this._observationTargets.forEach(function(r){var i=r.element,a=c(i),u=this._rootContainsTarget(i),s=r.entry,l=e&&u&&this._computeTargetAndRootIntersection(i,t),f=r.entry=new n({time:o(),target:i,boundingClientRect:a,rootBounds:t,intersectionRect:l});s?e&&u?this._hasCrossedThreshold(s,f)&&this._queuedEntries.push(f):s&&s.isIntersecting&&this._queuedEntries.push(f):this._queuedEntries.push(f)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},r.prototype._computeTargetAndRootIntersection=function(n,r){if("none"!=e.getComputedStyle(n).display){for(var o=c(n),i=o,a=d(n),u=!1;!u;){var l=null,f=1==a.nodeType?e.getComputedStyle(a):{};if("none"==f.display)return;if(a==this.root||a==t?(u=!0,l=r):a!=t.body&&a!=t.documentElement&&"visible"!=f.overflow&&(l=c(a)),l&&(i=s(l,i),!i))break;a=d(a)}return i}},r.prototype._getRootRect=function(){var e;if(this.root)e=c(this.root);else{var n=t.documentElement,r=t.body;e={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(e)},r.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map(function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100}),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},r.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,r=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==r)for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:i,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,n=o()(a,function(e,t){return void 0!==document[t]});document.addEventListener(a[n],function(){document[n]?t():e()})}},function(e,t,n){"use strict";t.a=function(e){return JSON.stringify(e).replace(/&/g,"\\u0026").replace(//g,"\\u003E")}},function(e,t,n){"use strict";function r(e){return e.sitewideRules}t.a=r},function(e,t,n){"use strict";var r=n(372),o=n.n(r);n.d(t,"a",function(){return a});var i=function(e){var t=e.scrollTop;if(t<=0)return e.scrollTop=1,!1;var n=t+e.offsetHeight;return n!==e.scrollHeight||(e.scrollTop=t-1,!1)},a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return o()(function(t){for(var n=!1,r=t.target;null!==r;){if(r.classList&&r.classList.contains(e)){i(r)&&(n=!0);break}r=r.parentNode}n||t.preventDefault()},t)}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(e,t){for(var n=0;nr;return t?i?(_(),p(e,a.NEW_SESSION),!0):o&&y()?(p(e,a.SHOW_NEW_SESSION),!0):o?(p(e,a.SHOW_SAME_SESSION),!0):(m()?p(e,a.HIDE):p(e,a.BLOCK_SHOW),!1):(_(),!0)},f=function(e){c.start(function(){return l(e)})},d={},p=function(e,t){if(h(t))return e(t)},h=function(e){return!v(e)&&(d[e]=!0,!0)},v=function(e){return!!d[e]},m=function(){return v(a.SHOW_SAME_SESSION)||v(a.SHOW_NEW_SESSION)||v(a.JUST_DISMISSED)},y=function(){return v(a.NEW_SESSION)},g=function(){if(n.i(o.a)()){var e=localStorage.getItem(u);return!!e&&new Date(e).getTime()}},_=function(){if(n.i(o.a)())return localStorage.setItem(u,new Date)}},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case s.f:return c({},e,{incognito:!0});case s.g:var o=n.i(a.a)(e.currentPage,{status:t.payload.status}),f=[].concat(r(e.history));return f[e.currentPageIndex]=o,c({},e,{history:f,currentPage:o});case s.h:var d=t.payload.history,p=d.length-1,h=Math.min(p,e.currentPageIndex);return c({},e,{history:t.payload.history,currentPageIndex:h});case s.i:var v=e.history.length,m=!i()(e.currentPage)&&v>1?n.i(u.b)(e.currentPage):"",y=t.payload,g=y.url,_=y.urlParams,b=y.queryParams,E=y.hashParams,T=y.referrer,w=y.status,S=void 0===w?200:w,O=T?T:m,P=e.history.slice(0,e.currentPageIndex+1),R={ +url:g,urlParams:_,queryParams:b,hashParams:E,status:S,referrer:O};return c({},e,{currentPageIndex:e.currentPageIndex+1,history:P.concat([R]),currentPage:R});case s.c:var I=t.payload.pageIndex;return c({},e,{currentPageIndex:I,currentPage:e.history[I]});case s.j:return n.i(a.a)(e,{shell:t.shell});default:return e}}},function(e,t,n){"use strict";function r(e,t,n,r){var o="undefined"!=typeof history&&history.back&&history.state,a=e&&e.length>1&&e.length>t;if(o&&a){var u=e[t-1];if(i()(u.url,n)&&i()(u.queryParams,r))return!0}return!1}var o=n(368),i=n.n(o);t.a=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),u=n.n(a),s=n(3),c=(n.n(s),n(4)),l=(n.n(c),n(583)),f=n.n(l);n.d(t,"a",function(){return v}),n.d(t,"b",function(){return g});var d=function(){function e(e,t){for(var n=0;n=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var a=g.call(o,"catchLoc"),u=g.call(o,"finallyLoc");if(a&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&g.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),d(n),A}},"catch":function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;d(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:h(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=m),A}}}("object"==typeof t?t:"object"==typeof window?window:"object"==typeof self?self:this)}).call(t,n(36))},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){(function(e){!function(t){function r(e,n){if(!(this instanceof r))return new r(e,n);var o=this;i(o),o.q=o.c="",o.bufferCheckPosition=t.MAX_BUFFER_LENGTH,o.opt=n||{},o.opt.lowercase=o.opt.lowercase||o.opt.lowercasetags,o.looseCase=o.opt.lowercase?"toLowerCase":"toUpperCase",o.tags=[],o.closed=o.closedRoot=o.sawRoot=!1,o.tag=o.error=null,o.strict=!!e,o.noscript=!(!e&&!o.opt.noscript),o.state=Y.BEGIN,o.strictEntities=o.opt.strictEntities,o.ENTITIES=o.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),o.attribList=[],o.opt.xmlns&&(o.ns=Object.create(q)),o.trackPosition=o.opt.position!==!1,o.trackPosition&&(o.position=o.line=o.column=0),p(o,"onready")}function o(e){for(var n=Math.max(t.MAX_BUFFER_LENGTH,10),r=0,o=0,i=A.length;on)switch(A[o]){case"textNode":v(e);break;case"cdata":h(e,"oncdata",e.cdata),e.cdata="";break;case"script":h(e,"onscript",e.script),e.script="";break;default:y(e,"Max buffer length exceeded: "+A[o])}r=Math.max(r,a)}var u=t.MAX_BUFFER_LENGTH-r;e.bufferCheckPosition=u+e.position}function i(e){for(var t=0,n=A.length;t",e.tagName="",void(e.state=Y.SCRIPT);h(e,"onscript",e.script),e.script=""}var t=e.tags.length,n=e.tagName;e.strict||(n=n[e.looseCase]());for(var r=n;t--;){var o=e.tags[t];if(o.name===r)break;_(e,"Unexpected close tag")}if(t<0)return _(e,"Unmatched closing tag: "+e.tagName),e.textNode+="",void(e.state=Y.TEXT);e.tagName=n;for(var i=e.tags.length;i-- >t;){var a=e.tag=e.tags.pop();e.tagName=e.tag.name,h(e,"onclosetag",e.tagName);var u={};for(var s in a.ns)u[s]=a.ns[s];var c=e.tags[e.tags.length-1]||e;e.opt.xmlns&&a.ns!==c.ns&&Object.keys(a.ns).forEach(function(t){var n=a.ns[t];h(e,"onclosenamespace",{prefix:t,uri:n})})}0===t&&(e.closedRoot=!0),e.tagName=e.attribValue=e.attribName="",e.attribList.length=0,e.state=Y.TEXT}function O(e){var t,n=e.entity,r=n.toLowerCase(),o="";return e.ENTITIES[n]?e.ENTITIES[n]:e.ENTITIES[r]?e.ENTITIES[r]:(n=r,"#"===n.charAt(0)&&("x"===n.charAt(1)?(n=n.slice(2),t=parseInt(n,16),o=t.toString(16)):(n=n.slice(1),t=parseInt(n,10),o=t.toString(10))),n=n.replace(/^0+/,""),o.toLowerCase()!==n?(_(e,"Invalid character entity"),"&"+e.entity+";"):String.fromCodePoint(t))}function P(e,t){"<"===t?(e.state=Y.OPEN_WAKA,e.startTagPosition=e.position):d(M,t)&&(_(e,"Non-whitespace before first tag."),e.textNode=t,e.state=Y.TEXT)}function R(e,t){var n="";return t"===r?(h(t,"onsgmldeclaration",t.sgmlDecl),t.sgmlDecl="",t.state=Y.TEXT):f(L,r)?(t.state=Y.SGML_DECL_QUOTED,t.sgmlDecl+=r):t.sgmlDecl+=r;continue;case Y.SGML_DECL_QUOTED:r===t.q&&(t.state=Y.SGML_DECL,t.q=""),t.sgmlDecl+=r;continue;case Y.DOCTYPE:">"===r?(t.state=Y.TEXT,h(t,"ondoctype",t.doctype),t.doctype=!0):(t.doctype+=r,"["===r?t.state=Y.DOCTYPE_DTD:f(L,r)&&(t.state=Y.DOCTYPE_QUOTED,t.q=r));continue;case Y.DOCTYPE_QUOTED:t.doctype+=r,r===t.q&&(t.q="",t.state=Y.DOCTYPE);continue;case Y.DOCTYPE_DTD:t.doctype+=r,"]"===r?t.state=Y.DOCTYPE:f(L,r)&&(t.state=Y.DOCTYPE_DTD_QUOTED,t.q=r);continue;case Y.DOCTYPE_DTD_QUOTED:t.doctype+=r,r===t.q&&(t.state=Y.DOCTYPE_DTD,t.q="");continue;case Y.COMMENT:"-"===r?t.state=Y.COMMENT_ENDING:t.comment+=r;continue;case Y.COMMENT_ENDING:"-"===r?(t.state=Y.COMMENT_ENDED,t.comment=m(t.opt,t.comment),t.comment&&h(t,"oncomment",t.comment),t.comment=""):(t.comment+="-"+r,t.state=Y.COMMENT);continue;case Y.COMMENT_ENDED:">"!==r?(_(t,"Malformed comment"),t.comment+="--"+r,t.state=Y.COMMENT):t.state=Y.TEXT;continue;case Y.CDATA:"]"===r?t.state=Y.CDATA_ENDING:t.cdata+=r;continue;case Y.CDATA_ENDING:"]"===r?t.state=Y.CDATA_ENDING_2:(t.cdata+="]"+r,t.state=Y.CDATA);continue;case Y.CDATA_ENDING_2:">"===r?(t.cdata&&h(t,"oncdata",t.cdata),h(t,"onclosecdata"),t.cdata="",t.state=Y.TEXT):"]"===r?t.cdata+="]":(t.cdata+="]]"+r,t.state=Y.CDATA);continue;case Y.PROC_INST:"?"===r?t.state=Y.PROC_INST_ENDING:f(M,r)?t.state=Y.PROC_INST_BODY:t.procInstName+=r;continue;case Y.PROC_INST_BODY:if(!t.procInstBody&&f(M,r))continue;"?"===r?t.state=Y.PROC_INST_ENDING:t.procInstBody+=r;continue;case Y.PROC_INST_ENDING:">"===r?(h(t,"onprocessinginstruction",{name:t.procInstName,body:t.procInstBody}),t.procInstName=t.procInstBody="",t.state=Y.TEXT):(t.procInstBody+="?"+r,t.state=Y.PROC_INST_BODY);continue;case Y.OPEN_TAG:f(G,r)?t.tagName+=r:(b(t),">"===r?w(t):"/"===r?t.state=Y.OPEN_TAG_SLASH:(d(M,r)&&_(t,"Invalid character in tag name"),t.state=Y.ATTRIB));continue;case Y.OPEN_TAG_SLASH:">"===r?(w(t,!0),S(t)):(_(t,"Forward-slash in opening tag not followed by >"),t.state=Y.ATTRIB);continue;case Y.ATTRIB:if(f(M,r))continue;">"===r?w(t):"/"===r?t.state=Y.OPEN_TAG_SLASH:f(V,r)?(t.attribName=r,t.attribValue="",t.state=Y.ATTRIB_NAME):_(t,"Invalid attribute name");continue;case Y.ATTRIB_NAME:"="===r?t.state=Y.ATTRIB_VALUE:">"===r?(_(t,"Attribute without value"),t.attribValue=t.attribName,T(t),w(t)):f(M,r)?t.state=Y.ATTRIB_NAME_SAW_WHITE:f(G,r)?t.attribName+=r:_(t,"Invalid attribute name");continue;case Y.ATTRIB_NAME_SAW_WHITE:if("="===r)t.state=Y.ATTRIB_VALUE;else{if(f(M,r))continue;_(t,"Attribute without value"),t.tag.attributes[t.attribName]="",t.attribValue="",h(t,"onattribute",{name:t.attribName,value:""}),t.attribName="",">"===r?w(t):f(V,r)?(t.attribName=r,t.state=Y.ATTRIB_NAME):(_(t,"Invalid attribute name"),t.state=Y.ATTRIB)}continue;case Y.ATTRIB_VALUE:if(f(M,r))continue;f(L,r)?(t.q=r,t.state=Y.ATTRIB_VALUE_QUOTED):(_(t,"Unquoted attribute value"),t.state=Y.ATTRIB_VALUE_UNQUOTED,t.attribValue=r);continue;case Y.ATTRIB_VALUE_QUOTED:if(r!==t.q){"&"===r?t.state=Y.ATTRIB_VALUE_ENTITY_Q:t.attribValue+=r;continue}T(t),t.q="",t.state=Y.ATTRIB_VALUE_CLOSED;continue;case Y.ATTRIB_VALUE_CLOSED:f(M,r)?t.state=Y.ATTRIB:">"===r?w(t):"/"===r?t.state=Y.OPEN_TAG_SLASH:f(V,r)?(_(t,"No whitespace between attributes"),t.attribName=r,t.attribValue="",t.state=Y.ATTRIB_NAME):_(t,"Invalid attribute name");continue;case Y.ATTRIB_VALUE_UNQUOTED:if(d(j,r)){"&"===r?t.state=Y.ATTRIB_VALUE_ENTITY_U:t.attribValue+=r;continue}T(t),">"===r?w(t):t.state=Y.ATTRIB;continue;case Y.CLOSE_TAG:if(t.tagName)">"===r?S(t):f(G,r)?t.tagName+=r:t.script?(t.script+=""===r?S(t):_(t,"Invalid characters in closing tag");continue;case Y.TEXT_ENTITY:case Y.ATTRIB_VALUE_ENTITY_Q:case Y.ATTRIB_VALUE_ENTITY_U:var u,s;switch(t.state){case Y.TEXT_ENTITY:u=Y.TEXT,s="textNode";break;case Y.ATTRIB_VALUE_ENTITY_Q:u=Y.ATTRIB_VALUE_QUOTED,s="attribValue";break;case Y.ATTRIB_VALUE_ENTITY_U:u=Y.ATTRIB_VALUE_UNQUOTED,s="attribValue"}";"===r?(t[s]+=O(t),t.entity="",t.state=u):f(t.entity.length?K:W,r)?t.entity+=r:(_(t,"Invalid character in entity name"),t[s]+="&"+t.entity+r,t.entity="",t.state=u);continue;default:throw new Error(t,"Unknown state: "+t.state)}}return t.position>=t.bufferCheckPosition&&o(t),t}t.parser=function(e,t){return new r(e,t)},t.SAXParser=r,t.SAXStream=s,t.createStream=u,t.MAX_BUFFER_LENGTH=65536;var A=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(e){function t(){}t.prototype=e;var n=new t;return n}),Object.keys||(Object.keys=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}),r.prototype={end:function(){g(this)},write:I,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){a(this)}};var C;try{C=n(1326).Stream}catch(x){C=function(){}}var N=t.EVENTS.filter(function(e){return"error"!==e&&"end"!==e});s.prototype=Object.create(C.prototype,{constructor:{value:s}}),s.prototype.write=function(t){if("function"==typeof e&&"function"==typeof e.isBuffer&&e.isBuffer(t)){if(!this._decoder){var r=n(441).StringDecoder;this._decoder=new r("utf8")}t=this._decoder.write(t)}return this._parser.write(t.toString()),this.emit("data",t),!0},s.prototype.end=function(e){return e&&e.length&&this.write(e),this._parser.end(),!0},s.prototype.on=function(e,t){var n=this;return n._parser["on"+e]||N.indexOf(e)===-1||(n._parser["on"+e]=function(){var t=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);t.splice(0,0,e),n.emit.apply(n,t)}),C.prototype.on.call(n,e,t)};var M="\r\n\t ",k="0124356789",D="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",L="'\"",j=M+">",F="[CDATA[",U="DOCTYPE",B="http://www.w3.org/XML/1998/namespace",H="http://www.w3.org/2000/xmlns/",q={xml:B,xmlns:H};M=c(M),k=c(k),D=c(D);var V=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,G=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/,W=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,K=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/;L=c(L),j=c(j);var Y=0;t.STATE={BEGIN:Y++,BEGIN_WHITESPACE:Y++,TEXT:Y++,TEXT_ENTITY:Y++,OPEN_WAKA:Y++,SGML_DECL:Y++,SGML_DECL_QUOTED:Y++,DOCTYPE:Y++,DOCTYPE_QUOTED:Y++,DOCTYPE_DTD:Y++,DOCTYPE_DTD_QUOTED:Y++,COMMENT_STARTING:Y++,COMMENT:Y++,COMMENT_ENDING:Y++,COMMENT_ENDED:Y++,CDATA:Y++,CDATA_ENDING:Y++,CDATA_ENDING_2:Y++,PROC_INST:Y++,PROC_INST_BODY:Y++,PROC_INST_ENDING:Y++,OPEN_TAG:Y++,OPEN_TAG_SLASH:Y++,ATTRIB:Y++,ATTRIB_NAME:Y++,ATTRIB_NAME_SAW_WHITE:Y++,ATTRIB_VALUE:Y++,ATTRIB_VALUE_QUOTED:Y++,ATTRIB_VALUE_CLOSED:Y++,ATTRIB_VALUE_UNQUOTED:Y++,ATTRIB_VALUE_ENTITY_Q:Y++,ATTRIB_VALUE_ENTITY_U:Y++,CLOSE_TAG:Y++,CLOSE_TAG_SAW_WHITE:Y++,SCRIPT:Y++,SCRIPT_ENDING:Y++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,"int":8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(e){var n=t.ENTITIES[e],r="number"==typeof n?String.fromCharCode(n):n;t.ENTITIES[e]=r});for(var z in t.STATE)t.STATE[t.STATE[z]]=z;Y=t.STATE,String.fromCodePoint||!function(){var e=String.fromCharCode,t=Math.floor,n=function(){var n,r,o=16384,i=[],a=-1,u=arguments.length;if(!u)return"";for(var s="";++a1114111||t(c)!==c)throw RangeError("Invalid code point: "+c);c<=65535?i.push(c):(c-=65536,n=(c>>10)+55296,r=c%1024+56320,i.push(n,r)),(a+1===u||i.length>o)&&(s+=e.apply(null,i),i.length=0)}return s};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:n,configurable:!0,writable:!0}):String.fromCodePoint=n}()}(t)}).call(t,n(191).Buffer)},function(e,t){e.exports={aboutItems:[{url:"/about",title:"about"},{url:"/advertising",title:"advertise"},{url:"/blog",title:"blog"},{url:"/contact",title:"contact us"},{url:"/wiki/faq",title:"help"},{url:"/jobs",title:"jobs"},{url:"/code",title:"source code"}],ruleItems:[{url:"/help/contentpolicy",title:"content policy"},{url:"/help/privacypolicy",title:"privacy policy"},{url:"/help/useragreement",title:"user agreement"},{url:"/wiki/reddiquette",title:"reddiquette"},{url:"/rules",title:"rules"}]}},function(e,t){e.exports={id:"bbfa87e39281"}},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){(function(t){(function(){var n,r,o,i,a,u;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof t&&null!==t&&t.hrtime?(e.exports=function(){return(n()-a)/1e6},r=t.hrtime,n=function(){var e;return e=r(),1e9*e[0]+e[1]},i=n(),u=1e9*t.uptime(),a=i-u):Date.now?(e.exports=function(){return Date.now()-o},o=Date.now()):(e.exports=function(){return(new Date).getTime()-o},o=(new Date).getTime())}).call(this)}).call(t,n(114))},function(e,t){},function(e,t,n){"use strict";var r=n(687),o=(n.n(r),n(693)),i=(n.n(o),n(0)),a=(n.n(i),n(58)),u=n.n(a),s=n(189),c=n(695),l=n(7),f=n(294),d=n(188),p=n(151),h=n(43),v=n(443),m=n(150),y=n(5),g=n(89),_=n(221),b=n(689),E=n(17),T=n(447),w=n(448),S=n(446),O=n(444),P=n(690),R=n(691),I=n(694),A=n(296),C=n(295),x=n(688),N=n(692),M=n(445),k=n(26),D=n(297),L=n(449),j=n(442),F=n.n(j),U=function(){ +var e="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103;return function(t,n,r,o){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var u in i)void 0===n[u]&&(n[u]=i[u]);else n||(n=i||{});if(1===a)n.children=o;else if(a>1){for(var s=Array(a),c=0;c diff --git a/sites/reddit/ip.php b/sites/reddit/ip.php new file mode 100644 index 0000000..3451f48 --- /dev/null +++ b/sites/reddit/ip.php @@ -0,0 +1,29 @@ +>>2]>>>24-s%4*8&255;t[r+s>>>2]|=o<<24-(r+s)%4*8}else for(var s=0;s>>2]=i[s>>>2];return this.sigBytes+=n,this},clamp:function(){var t=this.words,i=this.sigBytes;t[i>>>2]&=4294967295<<32-i%4*8,t.length=e.ceil(i/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var i,r=[],n=0;n>16)&r,t=18e3*(65535&t)+(t>>16)&r;var n=(i<<16)+t&r;return n/=4294967296,(n+=.5)*(e.random()>.5?1:-1)}}(4294967296*(i||e.random()));i=987654071*s(),r.push(4294967296*s()|0)}return new o.init(r,t)}}),a=r.enc={},u=a.Hex={stringify:function(e){for(var t=e.words,i=e.sigBytes,r=[],n=0;n>>2]>>>24-n%4*8&255;r.push((s>>>4).toString(16)),r.push((15&s).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,i=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new o.init(i,t/2)}},d=a.Latin1={stringify:function(e){for(var t=e.words,i=e.sigBytes,r=[],n=0;n>>2]>>>24-n%4*8&255;r.push(String.fromCharCode(s))}return r.join("")},parse:function(e){for(var t=e.length,i=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new o.init(i,t)}},l=a.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},c=n.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var i=this._data,r=i.words,n=i.sigBytes,s=this.blockSize,a=4*s,u=n/a;u=t?e.ceil(u):e.max((0|u)-this._minBufferSize,0);var d=u*s,l=e.min(4*d,n);if(d){for(var c=0;c-1}var n=i("imBK");e.exports=r},"2X2u":function(e,t){function i(e,t){for(var i=-1,r=null==e?0:e.length;++i1)throw new Error("Did not correctly serialize Thrift Event");return JSON.stringify(this.stack.pop())}}]),t}();t.a=h}).call(t,i("EuP9").Buffer)},"6MiT":function(e,t,i){function r(e){return"symbol"==typeof e||s(e)&&n(e)==o}var n=i("aCM0"),s=i("UnEC"),o="[object Symbol]";e.exports=r},"6PBa":function(e,t,i){function r(e,t){if(null==e)return{};var i=n(a(e),function(e){return[e]});return t=s(t),o(e,i,function(e,i){return t(e,i[0])})}var n=i("Hxdr"),s=i("JyYQ"),o=i("CHen"),a=i("xond");e.exports=r},"6WbS":function(e,t,i){!function(r,n,s){e.exports=t=n(i("02Hb"),i("mP1F"),i("PIk1"))}(0,function(e){return e.HmacSHA256})},"7YkW":function(e,t,i){function r(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new n;++t0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function n(e){return 3*e.length/4-r(e)}function s(e){var t,i,n,s,o,a=e.length;s=r(e),o=new c(3*a/4-s),i=s>0?a-4:a;var u=0;for(t=0;t>16&255,o[u++]=n>>8&255,o[u++]=255&n;return 2===s?(n=l[e.charCodeAt(t)]<<2|l[e.charCodeAt(t+1)]>>4,o[u++]=255&n):1===s&&(n=l[e.charCodeAt(t)]<<10|l[e.charCodeAt(t+1)]<<4|l[e.charCodeAt(t+2)]>>2,o[u++]=n>>8&255,o[u++]=255&n),o}function o(e){return d[e>>18&63]+d[e>>12&63]+d[e>>6&63]+d[63&e]}function a(e,t,i){for(var r,n=[],s=t;su?u:o+16383));return 1===r?(t=e[i-1],n+=d[t>>2],n+=d[t<<4&63],n+="=="):2===r&&(t=(e[i-2]<<8)+e[i-1],n+=d[t>>10],n+=d[t>>4&63],n+=d[t<<2&63],n+="="),s.push(n),s.join("")}t.byteLength=n,t.toByteArray=s,t.fromByteArray=u;for(var d=[],l=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,f=p.length;h=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|e}function _(e){return+e!=e&&(e=0),s.alloc(+e)}function y(e,t){if(s.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var i=e.length;if(0===i)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return W(e).length;default:if(r)return V(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,i){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if(i>>>=0,t>>>=0,i<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,t,i);case"utf8":case"utf-8":return F(this,t,i);case"ascii":return R(this,t,i);case"latin1":case"binary":return x(this,t,i);case"base64":return I(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,i);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,i){var r=e[t];e[t]=e[i],e[i]=r}function v(e,t,i,r,n){if(0===e.length)return-1;if("string"==typeof i?(r=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=n?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(n)return-1;i=e.length-1}else if(i<0){if(!n)return-1;i=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:w(e,t,i,r,n);if("number"==typeof t)return t&=255,s.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,i):Uint8Array.prototype.lastIndexOf.call(e,t,i):w(e,[t],i,r,n);throw new TypeError("val must be string, number or Buffer")}function w(e,t,i,r,n){function s(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}var o=1,a=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,a/=2,u/=2,i/=2}var d;if(n){var l=-1;for(d=i;da&&(i=a-u),d=i;d>=0;d--){for(var c=!0,p=0;pn&&(r=n):r=n;var s=t.length;if(s%2!=0)throw new TypeError("Invalid hex string");r>s/2&&(r=s/2);for(var o=0;o239?4:s>223?3:s>191?2:1;if(n+a<=i){var u,d,l,c;switch(a){case 1:s<128&&(o=s);break;case 2:u=e[n+1],128==(192&u)&&(c=(31&s)<<6|63&u)>127&&(o=c);break;case 3:u=e[n+1],d=e[n+2],128==(192&u)&&128==(192&d)&&(c=(15&s)<<12|(63&u)<<6|63&d)>2047&&(c<55296||c>57343)&&(o=c);break;case 4:u=e[n+1],d=e[n+2],l=e[n+3],128==(192&u)&&128==(192&d)&&128==(192&l)&&(c=(15&s)<<18|(63&u)<<12|(63&d)<<6|63&l)>65535&&c<1114112&&(o=c)}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),n+=a}return O(r)}function O(e){var t=e.length;if(t<=$)return String.fromCharCode.apply(String,e);for(var i="",r=0;rr)&&(i=r);for(var n="",s=t;si)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,i,r,n,o){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw new RangeError("Index out of range")}function L(e,t,i,r){t<0&&(t=65535+t+1);for(var n=0,s=Math.min(e.length-i,2);n>>8*(r?n:1-n)}function G(e,t,i,r){t<0&&(t=4294967295+t+1);for(var n=0,s=Math.min(e.length-i,4);n>>8*(r?n:3-n)&255}function j(e,t,i,r,n,s){if(i+r>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function U(e,t,i,r,n){return n||j(e,t,i,4,3.4028234663852886e38,-3.4028234663852886e38),Z.write(e,t,i,r,23,4),i+4}function q(e,t,i,r,n){return n||j(e,t,i,8,1.7976931348623157e308,-1.7976931348623157e308),Z.write(e,t,i,r,52,8),i+8}function M(e){if(e=D(e).replace(ee,""),e.length<2)return"";for(;e.length%4!=0;)e+="=";return e}function D(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function z(e){return e<16?"0"+e.toString(16):e.toString(16)}function V(e,t){t=t||1/0;for(var i,r=e.length,n=null,s=[],o=0;o55295&&i<57344){if(!n){if(i>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&s.push(239,191,189);continue}n=i;continue}if(i<56320){(t-=3)>-1&&s.push(239,191,189),n=i;continue}i=65536+(n-55296<<10|i-56320)}else n&&(t-=3)>-1&&s.push(239,191,189);if(n=null,i<128){if((t-=1)<0)break;s.push(i)}else if(i<2048){if((t-=2)<0)break;s.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;s.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return s}function H(e){for(var t=[],i=0;i>8,n=i%256,s.push(n),s.push(r);return s}function W(e){return J.toByteArray(M(e))}function K(e,t,i,r){for(var n=0;n=t.length||n>=e.length);++n)t[n+i]=e[n];return n}function Q(e){return e!==e}/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */ +var J=i("EKta"),Z=i("ujcs"),X=i("sOR5");t.Buffer=s,t.SlowBuffer=_,t.INSPECT_MAX_BYTES=50,s.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=r(),s.poolSize=8192,s._augment=function(e){return e.__proto__=s.prototype,e},s.from=function(e,t,i){return o(null,e,t,i)},s.TYPED_ARRAY_SUPPORT&&(s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0})),s.alloc=function(e,t,i){return u(null,e,t,i)},s.allocUnsafe=function(e){return d(null,e)},s.allocUnsafeSlow=function(e){return d(null,e)},s.isBuffer=function(e){return!(null==e||!e._isBuffer)},s.compare=function(e,t){if(!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var i=e.length,r=t.length,n=0,o=Math.min(i,r);n0&&(e=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(e+=" ... ")),""},s.prototype.compare=function(e,t,i,r,n){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===i&&(i=e?e.length:0),void 0===r&&(r=0),void 0===n&&(n=this.length),t<0||i>e.length||r<0||n>this.length)throw new RangeError("out of range index");if(r>=n&&t>=i)return 0;if(r>=n)return-1;if(t>=i)return 1;if(t>>>=0,i>>>=0,r>>>=0,n>>>=0,this===e)return 0;for(var o=n-r,a=i-t,u=Math.min(o,a),d=this.slice(r,n),l=e.slice(t,i),c=0;cn)&&(i=n),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var s=!1;;)switch(r){case"hex":return T(this,e,t,i);case"utf8":case"utf-8":return b(this,e,t,i);case"ascii":return S(this,e,t,i);case"latin1":case"binary":return k(this,e,t,i);case"base64":return E(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,e,t,i);default:if(s)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),s=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;s.prototype.slice=function(e,t){var i=this.length;e=~~e,t=void 0===t?i:~~t,e<0?(e+=i)<0&&(e=0):e>i&&(e=i),t<0?(t+=i)<0&&(t=0):t>i&&(t=i),t0&&(n*=256);)r+=this[e+--t]*n;return r},s.prototype.readUInt8=function(e,t){return t||A(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return t||A(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return t||A(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return t||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return t||A(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,i){e|=0,t|=0,i||A(e,t,this.length);for(var r=this[e],n=1,s=0;++s=n&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,i){e|=0,t|=0,i||A(e,t,this.length);for(var r=t,n=1,s=this[e+--r];r>0&&(n*=256);)s+=this[e+--r]*n;return n*=128,s>=n&&(s-=Math.pow(2,8*t)),s},s.prototype.readInt8=function(e,t){return t||A(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){t||A(e,2,this.length);var i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},s.prototype.readInt16BE=function(e,t){t||A(e,2,this.length);var i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},s.prototype.readInt32LE=function(e,t){return t||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return t||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return t||A(e,4,this.length),Z.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return t||A(e,4,this.length),Z.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return t||A(e,8,this.length),Z.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return t||A(e,8,this.length),Z.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,i,r){if(e=+e,t|=0,i|=0,!r){P(this,e,t,i,Math.pow(2,8*i)-1,0)}var n=1,s=0;for(this[t]=255&e;++s=0&&(s*=256);)this[t+n]=e/s&255;return t+i},s.prototype.writeUInt8=function(e,t,i){return e=+e,t|=0,i||P(this,e,t,1,255,0),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,i){return e=+e,t|=0,i||P(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},s.prototype.writeUInt16BE=function(e,t,i){return e=+e,t|=0,i||P(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},s.prototype.writeUInt32LE=function(e,t,i){return e=+e,t|=0,i||P(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):G(this,e,t,!0),t+4},s.prototype.writeUInt32BE=function(e,t,i){return e=+e,t|=0,i||P(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):G(this,e,t,!1),t+4},s.prototype.writeIntLE=function(e,t,i,r){if(e=+e,t|=0,!r){var n=Math.pow(2,8*i-1);P(this,e,t,i,n-1,-n)}var s=0,o=1,a=0;for(this[t]=255&e;++s>0)-a&255;return t+i},s.prototype.writeIntBE=function(e,t,i,r){if(e=+e,t|=0,!r){var n=Math.pow(2,8*i-1);P(this,e,t,i,n-1,-n)}var s=i-1,o=1,a=0;for(this[t+s]=255&e;--s>=0&&(o*=256);)e<0&&0===a&&0!==this[t+s+1]&&(a=1),this[t+s]=(e/o>>0)-a&255;return t+i},s.prototype.writeInt8=function(e,t,i){return e=+e,t|=0,i||P(this,e,t,1,127,-128),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,i){return e=+e,t|=0,i||P(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},s.prototype.writeInt16BE=function(e,t,i){return e=+e,t|=0,i||P(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},s.prototype.writeInt32LE=function(e,t,i){return e=+e,t|=0,i||P(this,e,t,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):G(this,e,t,!0),t+4},s.prototype.writeInt32BE=function(e,t,i){return e=+e,t|=0,i||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):G(this,e,t,!1),t+4},s.prototype.writeFloatLE=function(e,t,i){return U(this,e,t,!0,i)},s.prototype.writeFloatBE=function(e,t,i){return U(this,e,t,!1,i)},s.prototype.writeDoubleLE=function(e,t,i){return q(this,e,t,!0,i)},s.prototype.writeDoubleBE=function(e,t,i){return q(this,e,t,!1,i)},s.prototype.copy=function(e,t,i,r){if(i||(i=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--n)e[n+t]=this[n+i];else if(o<1e3||!s.TYPED_ARRAY_SUPPORT)for(n=0;n>>=0,i=void 0===i?this.length:i>>>0,e||(e=0);var o;if("number"==typeof e)for(o=t;op))return!1;var f=l.get(e);if(f&&l.get(t))return f==t;var _=-1,y=!0,m=i&u?new n:void 0;for(l.set(e,t),l.set(t,e);++_=0?"&":"?")+e),this._sort){var t=this.url.indexOf("?");if(t>=0){var i=this.url.substring(t+1).split("&");y(this._sort)?i.sort(this._sort):i.sort(),this.url=this.url.substring(0,t)+"?"+i.join("&")}}},l.prototype._isHost=function(e){return e&&"object"==typeof e&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},l.prototype.end=function(e){return this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||r,this._appendQueryString(),this._end()},l.prototype._end=function(){var e=this,t=this.xhr=v.getXHR(),i=this._formData||this._data;this._setTimeouts(),t.onreadystatechange=function(){var i=t.readyState;if(i>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4==i){var r;try{r=t.status}catch(e){r=0}if(!r){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var r=function(t,i){i.total>0&&(i.percent=i.loaded/i.total*100),i.direction=t,e.emit("progress",i)};if(this.hasListeners("progress"))try{t.onprogress=r.bind(null,"download"),t.upload&&(t.upload.onprogress=r.bind(null,"upload"))}catch(e){}try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof i&&!this._isHost(i)){var n=this._header["content-type"],s=this._serializer||v.serialize[n?n.split(";")[0]:""];!s&&u(n)&&(s=v.serialize["application/json"]),s&&(i=s(i))}for(var o in this.header)null!=this.header[o]&&this.header.hasOwnProperty(o)&&t.setRequestHeader(o,this.header[o]);return this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0!==i?i:null),this},v.get=function(e,t,i){var r=v("GET",e);return"function"==typeof t&&(i=t,t=null),t&&r.query(t),i&&r.end(i),r},v.head=function(e,t,i){var r=v("HEAD",e);return"function"==typeof t&&(i=t,t=null),t&&r.send(t),i&&r.end(i),r},v.options=function(e,t,i){var r=v("OPTIONS",e);return"function"==typeof t&&(i=t,t=null),t&&r.send(t),i&&r.end(i),r},v.del=c,v.delete=c,v.patch=function(e,t,i){var r=v("PATCH",e);return"function"==typeof t&&(i=t,t=null),t&&r.send(t),i&&r.end(i),r},v.post=function(e,t,i){var r=v("POST",e);return"function"==typeof t&&(i=t,t=null),t&&r.send(t),i&&r.end(i),r},v.put=function(e,t,i){var r=v("PUT",e);return"function"==typeof t&&(i=t,t=null),t&&r.send(t),i&&r.end(i),r}},HAGj:function(e,t,i){function r(e,t,i,r){if(!a(e))return e;t=s(t,e);for(var d=-1,l=t.length,c=l-1,p=e;null!=p&&++d=0;--l)d[l]=~i[r+l]+(o?0:1)&255,o|=i[r+l];i=d}var c=i[r+1]+(i[r]<<8),p=i[r+7]+(i[r+6]<<8)+(i[r+5]<<16)+i[r+4]*s+(i[r+3]+(i[r+2]<<8))*a+74976710656*c,h=Math.floor(p/u)+2814*c;return p=("00000000000"+String(p%u)).slice(-11),(n?"-":"")+String(h)+p}return e.toString()},n.fromDecimalString=function(e){var t="-"===e.charAt(0);if(e.length<(t?17:16))return new r(+e);if(e.length>(t?20:19))throw new RangeError("Too many digits for Int64: "+e);var i=+e.slice(t?1:0,-15),n=+e.slice(-15)+2764472320*i,s=Math.floor(n/a)+232830*i;if(n%=a,s>=o&&(!t||s!=o||0!=n))throw new RangeError("The magnitude is too large for Int64.");return t&&(s=~s,0===n?s=s+1&4294967295:n=1+~n,s|=2147483648),new r(s,n)}}).call(t,i("EuP9").Buffer)},Hxdr:function(e,t){function i(e,t){for(var i=-1,r=null==e?0:e.length,n=Array(r);++i0}var s=i("hAVr"),o=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector,a=function(e,t){return o.call(e,t)},u=function(e,t){for(var i=[],r=e;r&&!r.isSameNode(document);r=r.parentElement)(void 0===t||a(r,t))&&i.push(r);return i},d=u,l=this,c=this&&this.__awaiter||function(e,t,i,r){return new(i||(i=Promise))(function(n,s){function o(e){try{u(r.next(e))}catch(e){s(e)}}function a(e){try{u(r.throw(e))}catch(e){s(e)}}function u(e){e.done?n(e.value):new i(function(t){t(e.value)}).then(o,a)}u((r=r.apply(e,t||[])).next())})},p=function(e){return Promise.race([Promise.all([e,Promise.resolve()]).then(function(){return"fulfilled"},function(){return"rejected"}),Promise.resolve().then(function(){return"pending"})])},h=function(e){var t=e.skipResponseProcessing,i=void 0===t?function(){return!1}:t,o=e.statusElement,a=e.statusMessageElement,u=e.submit,h=e.submitButton,f=e.successMessage;return c(l,void 0,void 0,regeneratorRuntime.mark(function e(){var t,l,c,_,y,m,g,v,w,T,b,S;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a.textContent="",h.classList.remove("m-pending"),o.classList.remove("m-success","m-error"),e.next=5,new Promise(function(e){window.setTimeout(e,200)});case 5:return e.next=7,p(u);case 7:return t=e.sent,"pending"===t&&h.classList.add("m-pending"),e.next=11,u;case 11:if(l=e.sent,h.classList.remove("m-pending"),!i(l)){e.next=15;break}return e.abrupt("return",l);case 15:if(l.ok){e.next=43;break}if(c=Object(s.a)(l),o.classList.add("m-error"),!Array.isArray(c)){e.next=40;break}for(_=!0,y=!1,m=void 0,e.prev=22,g=c[Symbol.iterator]();!(_=(v=g.next()).done);_=!0)w=v.value,T=d(o,"form"),b=T[T.length-1],S=b.querySelector('input[name="'+w.field+'"]').parentElement,S.querySelector(".AnimatedForm__errorMessage").textContent=w.message,S.classList.remove("m-valid"),S.classList.add("m-invalid");e.next=30;break;case 26:e.prev=26,e.t0=e.catch(22),y=!0,m=e.t0;case 30:e.prev=30,e.prev=31,!_&&g.return&&g.return();case 33:if(e.prev=33,!y){e.next=36;break}throw m;case 36:return e.finish(33);case 37:return e.finish(30);case 38:e.next=41;break;case 40:c.message?a.textContent=r(c.message):c.explanation?a.textContent=r(c.explanation):a.textContent="";case 41:e.next=44;break;case 43:n(l)?(o.classList.add("m-error"),a.textContent=""):(h.classList.add("m-success"),o.classList.add("m-success"),a.textContent=f(l));case 44:return e.abrupt("return",l);case 45:case"end":return e.stop()}},e,this,[[22,26,30,38],[31,,33,37]])}))};t.a=h},IttV:function(e,t,i){function r(e,t){for(var i=-1,r=e.length;++i-1;);return i}var n=i("G8ar");e.exports=r},JBvZ:function(e,t,i){function r(e){var t=this.__data__,i=n(t,e);return i<0?void 0:t[i][1]}var n=i("imBK");e.exports=r},JKyH:function(e,t,i){"use strict";var r=function(){return["complete","interactive"].indexOf(document.readyState)>-1},n=function(e){var t=r();return new Promise(function(i){function n(){r()&&(document.removeEventListener("readystatechange",n),i(e))}if(t)return i(e);document.addEventListener("readystatechange",n,!1)})};t.a=n},JyYQ:function(e,t,i){function r(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?s(e[0],e[1]):n(e):u(e)}var n=i("d+aQ"),s=i("eKBv"),o=i("wSKX"),a=i("NGEn"),u=i("iL3P");e.exports=r},KGqH:function(e,t){function i(e){return e.match(c)||[]}var r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\\ud83c[\\udffb-\\udfff]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",a="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",u="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",s,o].join("|")+")[\\ufe0e\\ufe0f]?"+a+")*",d="[\\ufe0e\\ufe0f]?"+a+u,l="(?:"+["[^\\ud800-\\udfff]"+r+"?",r,s,o,"[\\ud800-\\udfff]"].join("|")+")",c=RegExp(n+"(?="+n+")|"+l+d,"g");e.exports=i},KmWZ:function(e,t,i){function r(){this.__data__=new n,this.size=0}var n=i("duB3");e.exports=r},M1V7:function(e,t,i){"use strict";var r=i("QBNR"),n=r.Thrift,s=(r.Q,i("0qh6"),e.exports={},e.exports.Experiment=function(e){if(this.id=null,this.name=null,this.owner=null,this.variant=null,e){if(void 0===e.id||null===e.id)throw new n.TProtocolException(n.TProtocolExceptionType.UNKNOWN,"Required field id is unset!");if(this.id=e.id,void 0!==e.name&&null!==e.name&&(this.name=e.name),void 0!==e.owner&&null!==e.owner&&(this.owner=e.owner),void 0===e.variant||null===e.variant)throw new n.TProtocolException(n.TProtocolExceptionType.UNKNOWN,"Required field variant is unset!");this.variant=e.variant}});s.prototype={},s.prototype.read=function(e){for(e.readStructBegin();;){var t=e.readFieldBegin(),i=(t.fname,t.ftype),r=t.fid;if(i==n.Type.STOP)break;switch(r){case 1:i==n.Type.I64?this.id=e.readI64():e.skip(i);break;case 2:i==n.Type.STRING?this.name=e.readString():e.skip(i);break;case 3:i==n.Type.STRING?this.owner=e.readString():e.skip(i);break;case 4:i==n.Type.STRING?this.variant=e.readString():e.skip(i);break;default:e.skip(i)}e.readFieldEnd()}e.readStructEnd()},s.prototype.write=function(e){e.writeStructBegin("Experiment"),null!==this.id&&void 0!==this.id&&(e.writeFieldBegin("id",n.Type.I64,1),e.writeI64(this.id),e.writeFieldEnd()),null!==this.name&&void 0!==this.name&&(e.writeFieldBegin("name",n.Type.STRING,2),e.writeString(this.name),e.writeFieldEnd()),null!==this.owner&&void 0!==this.owner&&(e.writeFieldBegin("owner",n.Type.STRING,3),e.writeString(this.owner),e.writeFieldEnd()),null!==this.variant&&void 0!==this.variant&&(e.writeFieldBegin("variant",n.Type.STRING,4),e.writeString(this.variant),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},M1c9:function(e,t){function i(e,t,i){var r=-1,n=e.length;t<0&&(t=-t>n?0:n+t),i=i>n?n:i,i<0&&(i+=n),n=t>i?0:i-t>>>0,t>>>=0;for(var s=Array(n);++r1&&(r=i[0]+"@",e=i[1]),e=e.replace(x,"."),r+a(e.split("."),t).join(".")}function d(e){for(var t,i,r=[],n=0,s=e.length;n=55296&&t<=56319&&n65535&&(e-=65536,t+=P(e>>>10&1023|55296),e=56320|1023&e),t+=P(e)}).join("")}function c(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:T}function p(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function h(e,t,i){var r=0;for(e=i?A(e/E):e>>1,e+=A(e/t);e>C*S>>1;r+=T)e=A(e/C);return A(r+(C+1)*e/(e+k))}function f(e){var t,i,r,n,s,a,u,d,p,f,_=[],y=e.length,m=0,g=I,v=B;for(i=e.lastIndexOf(F),i<0&&(i=0),r=0;r=128&&o("not-basic"),_.push(e.charCodeAt(r));for(n=i>0?i+1:0;n=y&&o("invalid-input"),d=c(e.charCodeAt(n++)),(d>=T||d>A((w-m)/a))&&o("overflow"),m+=d*a,p=u<=v?b:u>=v+S?S:u-v,!(dA(w/f)&&o("overflow"),a*=f;t=_.length+1,v=h(m-s,t,0==s),A(m/t)>w-g&&o("overflow"),g+=A(m/t),m%=t,_.splice(m++,0,g)}return l(_)}function _(e){var t,i,r,n,s,a,u,l,c,f,_,y,m,g,v,k=[];for(e=d(e),y=e.length,t=I,i=0,s=B,a=0;a=t&&_A((w-i)/m)&&o("overflow"),i+=(u-t)*m,t=u,a=0;aw&&o("overflow"),_==t){for(l=i,c=T;f=c<=s?b:c>=s+S?S:c-s,!(l= 0x80 (not a basic code point)","invalid-input":"Invalid input"},C=T-b,A=Math.floor,P=String.fromCharCode;v={version:"1.4.1",ucs2:{decode:d,encode:l},decode:f,encode:_,toASCII:m,toUnicode:y},void 0!==(n=function(){return v}.call(t,i,t,e))&&(e.exports=n)}()}).call(t,i("3IRH")(e),i("DuR2"))},NGEn:function(e,t){var i=Array.isArray;e.exports=i},NkRn:function(e,t,i){var r=i("TQ3y"),n=r.Symbol;e.exports=n},"Nkb+":function(e,t){/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +var i=Math.pow(2,8),r=Math.pow(2,16),n=Math.pow(2,24),s=Math.pow(2,32),o=Math.pow(2,40),a=Math.pow(2,48),u=Math.pow(2,52),d=Math.pow(2,1022);t.readByte=function(e){return e>127?e-256:e},t.readI16=function(e,t){t=t||0;var i=e[t+1];return i+=e[t]<<8,128&e[t]&&(i-=r),i},t.readI32=function(e,t){t=t||0;var i=e[t+3];return i+=e[t+2]<<8,i+=e[t+1]<<16,i+=e[t]*n,128&e[t]&&(i-=s),i},t.writeI16=function(e,t){return e[1]=255&t,t>>=8,e[0]=255&t,e},t.writeI32=function(e,t){return e[3]=255&t,t>>=8,e[2]=255&t,t>>=8,e[1]=255&t,t>>=8,e[0]=255&t,e},t.readDouble=function(e,t){t=t||0;var i=128&e[t],r=(240&e[t+1])>>4;r+=(127&e[t])<<4;var d=e[t+7];switch(d+=e[t+6]<<8,d+=e[t+5]<<16,d+=e[t+4]*n,d+=e[t+3]*s,d+=e[t+2]*o,d+=(15&e[t+1])*a,r){case 0:r=-1022;break;case 2047:return d?NaN:i?-1/0:1/0;default:d+=u,r-=1023}return i&&(d*=-1),d*Math.pow(2,r-52)},t.writeDouble=function(e,t){var r,n,s;return e[0]=t<0?128:0,t=Math.abs(t),t!==t?(r=0x8000000000000,n=2047):t===1/0?(r=0,n=2047):(n=Math.floor(Math.log(t)/Math.LN2),s=Math.pow(2,-n),t*s<1&&(n--,s*=2),n+1023>=2047?(r=0,n=2047):n+1023>=1?(r=(t*s-1)*u,n+=1023):(r=t*d*u,n=0)),e[1]=n<<4&240,e[0]|=n>>4&127,e[7]=255&r,r=Math.floor(r/i),e[6]=255&r,r=Math.floor(r/i),e[5]=255&r,r=Math.floor(r/i),e[4]=255&r,r>>=8,e[3]=255&r,r>>=8,e[2]=255&r,r>>=8,e[1]|=15&r,e}},Nm3C:function(e,t,i){"use strict";var r=i("QBNR"),n=r.Thrift,s=(r.Q,i("0qh6"),e.exports={},e.exports.Subreddit=function(e){if(this.id=null,this.name=null,this.category_name=null,e){if(void 0===e.id||null===e.id)throw new n.TProtocolException(n.TProtocolExceptionType.UNKNOWN,"Required field id is unset!");if(this.id=e.id,void 0===e.name||null===e.name)throw new n.TProtocolException(n.TProtocolExceptionType.UNKNOWN,"Required field name is unset!");this.name=e.name,void 0!==e.category_name&&null!==e.category_name&&(this.category_name=e.category_name)}});s.prototype={},s.prototype.read=function(e){for(e.readStructBegin();;){var t=e.readFieldBegin(),i=(t.fname,t.ftype),r=t.fid;if(i==n.Type.STOP)break;switch(r){case 1:i==n.Type.STRING?this.id=e.readString():e.skip(i);break;case 2:i==n.Type.STRING?this.name=e.readString():e.skip(i);break;case 3:i==n.Type.STRING?this.category_name=e.readString():e.skip(i);break;default:e.skip(i)}e.readFieldEnd()}e.readStructEnd()},s.prototype.write=function(e){e.writeStructBegin("Subreddit"),null!==this.id&&void 0!==this.id&&(e.writeFieldBegin("id",n.Type.STRING,1),e.writeString(this.id),e.writeFieldEnd()),null!==this.name&&void 0!==this.name&&(e.writeFieldBegin("name",n.Type.STRING,2),e.writeString(this.name),e.writeFieldEnd()),null!==this.category_name&&void 0!==this.category_name&&(e.writeFieldBegin("category_name",n.Type.STRING,3),e.writeString(this.category_name),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()};var o=e.exports.Profile=function(e){if(this.id=null,this.name=null,this.type=null,this.display_name=null,this.about=null,this.avatar_url=null,this.cover_url=null,this.nsfw=null,this.content_visible=null,this.communities_visible=null,e){if(void 0===e.id||null===e.id)throw new n.TProtocolException(n.TProtocolExceptionType.UNKNOWN,"Required field id is unset!");if(this.id=e.id,void 0===e.name||null===e.name)throw new n.TProtocolException(n.TProtocolExceptionType.UNKNOWN,"Required field name is unset!");this.name=e.name,void 0!==e.type&&null!==e.type&&(this.type=e.type),void 0!==e.display_name&&null!==e.display_name&&(this.display_name=e.display_name),void 0!==e.about&&null!==e.about&&(this.about=e.about),void 0!==e.avatar_url&&null!==e.avatar_url&&(this.avatar_url=e.avatar_url),void 0!==e.cover_url&&null!==e.cover_url&&(this.cover_url=e.cover_url),void 0!==e.nsfw&&null!==e.nsfw&&(this.nsfw=e.nsfw),void 0!==e.content_visible&&null!==e.content_visible&&(this.content_visible=e.content_visible),void 0!==e.communities_visible&&null!==e.communities_visible&&(this.communities_visible=e.communities_visible)}};o.prototype={},o.prototype.read=function(e){for(e.readStructBegin();;){var t=e.readFieldBegin(),i=(t.fname,t.ftype),r=t.fid;if(i==n.Type.STOP)break;switch(r){case 1:i==n.Type.STRING?this.id=e.readString():e.skip(i);break;case 2:i==n.Type.STRING?this.name=e.readString():e.skip(i);break;case 3:i==n.Type.STRING?this.type=e.readString():e.skip(i);break;case 4:i==n.Type.STRING?this.display_name=e.readString():e.skip(i);break;case 5:i==n.Type.STRING?this.about=e.readString():e.skip(i);break;case 6:i==n.Type.STRING?this.avatar_url=e.readString():e.skip(i);break;case 7:i==n.Type.STRING?this.cover_url=e.readString():e.skip(i);break;case 8:i==n.Type.BOOL?this.nsfw=e.readBool():e.skip(i);break;case 9:i==n.Type.BOOL?this.content_visible=e.readBool():e.skip(i);break;case 11:i==n.Type.BOOL?this.communities_visible=e.readBool():e.skip(i);break;default:e.skip(i)}e.readFieldEnd()}e.readStructEnd()},o.prototype.write=function(e){e.writeStructBegin("Profile"),null!==this.id&&void 0!==this.id&&(e.writeFieldBegin("id",n.Type.STRING,1),e.writeString(this.id),e.writeFieldEnd()),null!==this.name&&void 0!==this.name&&(e.writeFieldBegin("name",n.Type.STRING,2),e.writeString(this.name),e.writeFieldEnd()),null!==this.type&&void 0!==this.type&&(e.writeFieldBegin("type",n.Type.STRING,3),e.writeString(this.type),e.writeFieldEnd()),null!==this.display_name&&void 0!==this.display_name&&(e.writeFieldBegin("display_name",n.Type.STRING,4),e.writeString(this.display_name),e.writeFieldEnd()),null!==this.about&&void 0!==this.about&&(e.writeFieldBegin("about",n.Type.STRING,5),e.writeString(this.about),e.writeFieldEnd()),null!==this.avatar_url&&void 0!==this.avatar_url&&(e.writeFieldBegin("avatar_url",n.Type.STRING,6),e.writeString(this.avatar_url),e.writeFieldEnd()),null!==this.cover_url&&void 0!==this.cover_url&&(e.writeFieldBegin("cover_url",n.Type.STRING,7),e.writeString(this.cover_url),e.writeFieldEnd()),null!==this.nsfw&&void 0!==this.nsfw&&(e.writeFieldBegin("nsfw",n.Type.BOOL,8),e.writeBool(this.nsfw),e.writeFieldEnd()),null!==this.content_visible&&void 0!==this.content_visible&&(e.writeFieldBegin("content_visible",n.Type.BOOL,9),e.writeBool(this.content_visible),e.writeFieldEnd()),null!==this.communities_visible&&void 0!==this.communities_visible&&(e.writeFieldBegin("communities_visible",n.Type.BOOL,11),e.writeBool(this.communities_visible),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},NmF1:function(e,t,i){"use strict";function r(e){if(!e)return new Map;var t=e.split("?")[1]||"",i=t.split("#"),r=n(i,1),s=r[0];if(!s)return new Map;var o={},a=s.split("&").map(function(e,t){var i=e.split("="),r=n(i,2),s=r[0],a=r[1];return o[s]=(o[s]||[]).concat(t),[s,decodeURIComponent(a)]}),u=a.reduce(function(e,t,i,r){var n=t[0];if(o[n][0]!==i)return e;var s=o[n].map(function(e){return r[e][1]}).join(",");return e.push([n,s]),e},[]);return new Map(u)}t.a=r;var n=function(){function e(e,t){var i=[],r=!0,n=!1,s=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done)&&(i.push(o.value),!t||i.length!==t);r=!0);}catch(e){n=!0,s=e}finally{try{!r&&a.return&&a.return()}finally{if(n)throw s}}return i}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},NqZt:function(e,t){function i(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i}e.exports=i},NziE:function(e,t,i){"use strict";function r(e){var t=e.parentElement;return"FIELDSET"===t.tagName?t:r(t)}function n(e){var t=r(e),i=t.querySelector(".AnimatedForm__errorMessage");t.classList.remove("m-invalid"),t.classList.remove("m-valid"),i.textContent=""}function s(e,t){var i=r(e),n=i.querySelector(".AnimatedForm__errorMessage");t?(i.classList.remove("m-valid"),i.classList.add("m-invalid")):(i.classList.remove("m-invalid"),i.classList.add("m-valid")),n.textContent=t||""}function o(e){var t=String(e.value).trim();s(e,t.lengthj?q:null)}function a(e){e.addEventListener("change",function(){o(e)})}function u(e){var t=String(e.value);s(e,t.lengthM?z:null)}function d(e,t){return A(this,void 0,void 0,regeneratorRuntime.mark(function i(){var r,n,o,a,u;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(r=String(e.value),!(n=r.lengthj?q:null)){i.next=5;break}return s(e,n),i.abrupt("return");case 5:return o=null,i.next=8,N({csrfToken:t.value||"",user:e.value||""});case 8:a=i.sent,a.ok||(u=o=Object(C.a)(a),o=Array.isArray(u)?u[0].message:u.message),s(e,o);case 11:case"end":return i.stop()}},i,this)}))}function l(e,t){e.addEventListener("input",O()(function(){d(e,t)},K))}function c(e){s(e,String(e.value).length=t||i<0||B&&r>=w}function h(){var e=s();if(p(e))return f(e);b=setTimeout(h,c(e))}function f(e){return b=void 0,I&&g?r(e):(g=v=void 0,T)}function _(){void 0!==b&&clearTimeout(b),k=0,g=S=v=b=void 0}function y(){return void 0===b?T:f(s())}function m(){var e=s(),i=p(e);if(g=arguments,v=this,S=e,i){if(void 0===b)return l(S);if(B)return b=setTimeout(h,t),r(S)}return void 0===b&&(b=setTimeout(h,t)),T}var g,v,w,T,b,S,k=0,E=!1,B=!1,I=!0;if("function"!=typeof e)throw new TypeError(a);return t=o(t)||0,n(i)&&(E=!!i.leading,B="maxWait"in i,w=B?u(o(i.maxWait)||0,t):w,I="trailing"in i?!!i.trailing:I),m.cancel=_,m.flush=y,m}var n=i("yCNF"),s=i("RVHk"),o=i("kxzG"),a="Expected a function",u=Math.max,d=Math.min;e.exports=r},OMJi:function(e,t,i){(function(e,r){function n(e,i){var r={seen:[],stylize:o};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),_(i)?r.showHidden=i:i&&t._extend(r,i),T(r.showHidden)&&(r.showHidden=!1),T(r.depth)&&(r.depth=2),T(r.colors)&&(r.colors=!1),T(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=s),u(r,e,r.depth)}function s(e,t){var i=n.styles[t];return i?"["+n.colors[i][0]+"m"+e+"["+n.colors[i][1]+"m":e}function o(e,t){return e}function a(e){var t={};return e.forEach(function(e,i){t[e]=!0}),t}function u(e,i,r){if(e.customInspect&&i&&B(i.inspect)&&i.inspect!==t.inspect&&(!i.constructor||i.constructor.prototype!==i)){var n=i.inspect(r,e);return v(n)||(n=u(e,n,r)),n}var s=d(e,i);if(s)return s;var o=Object.keys(i),_=a(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(i)),E(i)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return l(i);if(0===o.length){if(B(i)){var y=i.name?": "+i.name:"";return e.stylize("[Function"+y+"]","special")}if(b(i))return e.stylize(RegExp.prototype.toString.call(i),"regexp");if(k(i))return e.stylize(Date.prototype.toString.call(i),"date");if(E(i))return l(i)}var m="",g=!1,w=["{","}"];if(f(i)&&(g=!0,w=["[","]"]),B(i)){m=" [Function"+(i.name?": "+i.name:"")+"]"}if(b(i)&&(m=" "+RegExp.prototype.toString.call(i)),k(i)&&(m=" "+Date.prototype.toUTCString.call(i)),E(i)&&(m=" "+l(i)),0===o.length&&(!g||0==i.length))return w[0]+m+w[1];if(r<0)return b(i)?e.stylize(RegExp.prototype.toString.call(i),"regexp"):e.stylize("[Object]","special");e.seen.push(i);var T;return T=g?c(e,i,r,_,o):o.map(function(t){return p(e,i,r,_,t,g)}),e.seen.pop(),h(T,m,w)}function d(e,t){if(T(t))return e.stylize("undefined","undefined");if(v(t)){var i="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(i,"string")}return g(t)?e.stylize(""+t,"number"):_(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}function l(e){return"["+Error.prototype.toString.call(e)+"]"}function c(e,t,i,r,n){for(var s=[],o=0,a=t.length;o-1&&(a=s?a.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+a.split("\n").map(function(e){return" "+e}).join("\n"))):a=e.stylize("[Circular]","special")),T(o)){if(s&&n.match(/^\d+$/))return a;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+a}function h(e,t,i){var r=0;return e.reduce(function(e,t){return r++,t.indexOf("\n")>=0&&r++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?i[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+i[1]:i[0]+t+" "+e.join(", ")+" "+i[1]}function f(e){return Array.isArray(e)}function _(e){return"boolean"==typeof e}function y(e){return null===e}function m(e){return null==e}function g(e){return"number"==typeof e}function v(e){return"string"==typeof e}function w(e){return"symbol"==typeof e}function T(e){return void 0===e}function b(e){return S(e)&&"[object RegExp]"===F(e)}function S(e){return"object"==typeof e&&null!==e}function k(e){return S(e)&&"[object Date]"===F(e)}function E(e){return S(e)&&("[object Error]"===F(e)||e instanceof Error)}function B(e){return"function"==typeof e}function I(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function F(e){return Object.prototype.toString.call(e)}function O(e){return e<10?"0"+e.toString(10):e.toString(10)}function R(){var e=new Date,t=[O(e.getHours()),O(e.getMinutes()),O(e.getSeconds())].join(":");return[e.getDate(),P[e.getMonth()],t].join(" ")}function x(e,t){return Object.prototype.hasOwnProperty.call(e,t)}// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. +var N=/%[sdj%]/g;t.format=function(e){if(!v(e)){for(var t=[],i=0;i=s)return e;switch(e){case"%s":return String(r[i++]);case"%d":return Number(r[i++]);case"%j":try{return JSON.stringify(r[i++])}catch(e){return"[Circular]"}default:return e}}),a=r[i];ir&&(t=e.finalize(t)),t.clamp();for(var n=this._oKey=t.clone(),o=this._iKey=t.clone(),a=n.words,u=o.words,d=0;d0&&(this.send_pending.forEach(function(t){this.socket.send(t.buf),this.callbacks.push(function(){var i=t.cb;return function(t){e.setRecvBuffer(t),i()}}())}),this.send_pending=[])},r.prototype.__onClose=function(e){this.__reset(this.url)},r.prototype.__onMessage=function(e){this.callbacks.length&&this.callbacks.shift()(e.data)},r.prototype.__onError=function(e){n.error("websocket: "+e.toString()),this.socket.close()},r.prototype.setRecvBuffer=function(e){this.recv_buf=e,this.recv_buf_sz=this.recv_buf.length,this.wpos=this.recv_buf.length,this.rpos=0},r.prototype.isOpen=function(){return this.socket&&this.socket.readyState==this.socket.OPEN},r.prototype.open=function(){this.socket&&this.socket.readyState!=this.socket.CLOSED||(this.socket=new WebSocket(this.url),this.socket.onopen=this.__onOpen.bind(this),this.socket.onmessage=this.__onMessage.bind(this),this.socket.onerror=this.__onError.bind(this),this.socket.onclose=this.__onClose.bind(this))},r.prototype.close=function(){this.socket.close()},r.prototype.read=function(e){var t=this.wpos-this.rpos;if(0===t)return"";var i=e;t-1&&e%1==0&&e<=r}var r=9007199254740991;e.exports=i},S7p9:function(e,t){function i(e){return function(t){return e(t)}}e.exports=i},SHWz:function(e,t,i){function r(e,t,i,r,o,u){var d=i&s,l=n(e),c=l.length;if(c!=n(t).length&&!d)return!1;for(var p=c;p--;){var h=l[p];if(!(d?h in t:a.call(t,h)))return!1}var f=u.get(e);if(f&&u.get(t))return f==t;var _=!0;u.set(e,t),u.set(t,e);for(var y=d;++p",'"',"`"," ","\r","\n","\t"],f=["{","}","|","\\","^","`"].concat(h),_=["'"].concat(f),y=["%","/","?",";","#"].concat(_),m=["/","?","#"],g=/^[+a-z0-9A-Z_-]{0,63}$/,v=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,w={javascript:!0,"javascript:":!0},T={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},S=i("1nuA");r.prototype.parse=function(e,t,i){if(!d.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),n=-1!==r&&r127?A+="x":A+=C[P];if(!A.match(g)){var G=x.slice(0,B),j=x.slice(B+1),U=C.match(v);U&&(G.push(U[1]),j.unshift(U[2])),j.length&&(a="/"+j.join(".")+a),this.hostname=G.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),R||(this.hostname=u.toASCII(this.hostname));var q=this.port?":"+this.port:"",M=this.hostname||"";this.host=M+q,this.href+=this.host,R&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!w[f])for(var B=0,N=_.length;B0)&&i.host.split("@");E&&(i.auth=E.shift(),i.host=i.hostname=E.shift())}return i.search=e.search,i.query=e.query,d.isNull(i.pathname)&&d.isNull(i.search)||(i.path=(i.pathname?i.pathname:"")+(i.search?i.search:"")),i.href=i.format(),i}if(!S.length)return i.pathname=null,i.search?i.path="/"+i.search:i.path=null,i.href=i.format(),i;for(var B=S.slice(-1)[0],I=(i.host||e.host||S.length>1)&&("."===B||".."===B)||""===B,F=0,O=S.length;O>=0;O--)B=S[O],"."===B?S.splice(O,1):".."===B?(S.splice(O,1),F++):F&&(S.splice(O,1),F--);if(!v&&!w)for(;F--;F)S.unshift("..");!v||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),I&&"/"!==S.join("/").substr(-1)&&S.push("");var R=""===S[0]||S[0]&&"/"===S[0].charAt(0);if(k){i.hostname=i.host=R?"":S.length?S.shift():"";var E=!!(i.host&&i.host.indexOf("@")>0)&&i.host.split("@");E&&(i.auth=E.shift(),i.host=i.hostname=E.shift())}return v=v||i.host&&S.length,v&&!R&&S.unshift(""),S.length?i.pathname=S.join("/"):(i.pathname=null,i.path=null),d.isNull(i.pathname)&&d.isNull(i.search)||(i.path=(i.pathname?i.pathname:"")+(i.search?i.search:"")),i.auth=e.auth||i.auth,i.slashes=i.slashes||e.slashes,i.href=i.format(),i},r.prototype.parseHost=function(){var e=this.host,t=c.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},Ubhr:function(e,t,i){function r(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-s?"-0":t}var n=i("6MiT"),s=1/0;e.exports=r},UnEC:function(e,t){function i(e){return null!=e&&"object"==typeof e}e.exports=i},UnLw:function(e,t,i){var r=i("fMqj"),n=/^\./,s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r(function(e){var t=[];return n.test(e)&&t.push(""),e.replace(s,function(e,i,r,n){t.push(r?n.replace(o,"$1"):i||e)}),t});e.exports=a},Uz1a:function(e,t,i){function r(e,t,i,r,y,g){var v=d(e),w=d(t),T=v?f:u(e),b=w?f:u(t);T=T==h?_:T,b=b==h?_:b;var S=T==_,k=b==_,E=T==b;if(E&&l(e)){if(!l(t))return!1;v=!0,S=!1}if(E&&!S)return g||(g=new n),v||c(e)?s(e,t,i,r,y,g):o(e,t,T,i,r,y,g);if(!(i&p)){var B=S&&m.call(e,"__wrapped__"),I=k&&m.call(t,"__wrapped__");if(B||I){var F=B?e.value():e,O=I?t.value():t;return g||(g=new n),y(F,O,i,r,g)}}return!!E&&(g||(g=new n),a(e,t,i,r,y,g))}var n=i("bJWQ"),s=i("FhcP"),o=i("EHRO"),a=i("SHWz"),u=i("gHOb"),d=i("NGEn"),l=i("ggOT"),c=i("YsVG"),p=1,h="[object Arguments]",f="[object Array]",_="[object Object]",y=Object.prototype,m=y.hasOwnProperty;e.exports=r},VKy0:function(e,t,i){function r(e){Error.call(this),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.message=e}function n(e,t){r.call(this),Error.captureStackTrace(this,this.constructor),this.type=e||u.UNKNOWN,this.name=this.constructor.name,this.message=t}function s(e,t){Error.call(this),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.type=e,this.message=t}/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +var o=i("OMJi"),a=t.Type={STOP:0,VOID:1,BOOL:2,BYTE:3,I08:3,DOUBLE:4,I16:6,I32:8,I64:10,STRING:11,UTF7:11,STRUCT:12,MAP:13,SET:14,LIST:15,UTF8:16,UTF16:17};t.MessageType={CALL:1,REPLY:2,EXCEPTION:3,ONEWAY:4},t.TException=r,o.inherits(r,Error);var u=t.TApplicationExceptionType={UNKNOWN:0,UNKNOWN_METHOD:1,INVALID_MESSAGE_TYPE:2,WRONG_METHOD_NAME:3,BAD_SEQUENCE_ID:4,MISSING_RESULT:5,INTERNAL_ERROR:6,PROTOCOL_ERROR:7,INVALID_TRANSFORM:8,INVALID_PROTOCOL:9,UNSUPPORTED_CLIENT_TYPE:10};t.TApplicationException=n,o.inherits(n,r),n.prototype.read=function(e){for(var t=e.readStructBegin("TApplicationException");;){if(t=e.readFieldBegin(),t.ftype==a.STOP)break;switch(t.fid){case 1:t.ftype==a.STRING?(t=e.readString(),this.message=t):t=e.skip(t.ftype);break;case 2:t.ftype==a.I32?(t=e.readI32(),this.type=t):t=e.skip(t.ftype);break;default:t=e.skip(t.ftype)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){e.writeStructBegin("TApplicationException"),this.message&&(e.writeFieldBegin("message",a.STRING,1),e.writeString(this.message),e.writeFieldEnd()),this.code&&(e.writeFieldBegin("type",a.I32,2),e.writeI32(this.code),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()};t.TProtocolExceptionType={UNKNOWN:0,INVALID_DATA:1,NEGATIVE_SIZE:2,SIZE_LIMIT:3,BAD_VERSION:4,NOT_IMPLEMENTED:5,DEPTH_LIMIT:6};t.TProtocolException=s,o.inherits(s,Error),t.objectLength=function(e){return Object.keys(e).length},t.inherits=function(e,t){o.inherits(e,t)};var d,l;d=function(e,t){if(!e)return e;var i;i=void 0===t.shift?t:t[0];var r,n,s=i,o=e.length,a=[];for(r=0;rn.inBuf.length){var s=new t(n.writeCursor+r.length);n.inBuf.copy(s,0,0,n.writeCursor),n.inBuf=s}r.copy(n.inBuf,n.writeCursor,0),n.writeCursor+=r.length,e(n,i)}},r.prototype.commitPosition=function(){var e=this.writeCursor-this.readCursor,i=2*e>this.defaultReadBufferSize?2*e:this.defaultReadBufferSize,r=new t(i);e>0&&this.inBuf.copy(r,0,this.readCursor,this.writeCursor),this.readCursor=0,this.writeCursor=e,this.inBuf=r},r.prototype.rollbackPosition=function(){this.readCursor=0},r.prototype.isOpen=function(){return!0},r.prototype.open=function(){},r.prototype.close=function(){},r.prototype.setCurrSeqId=function(e){this._seqid=e},r.prototype.ensureAvailable=function(e){if(this.readCursor+e>this.writeCursor)throw new s},r.prototype.read=function(e){this.ensureAvailable(e);var i=new t(e);return this.inBuf.copy(i,0,this.readCursor,this.readCursor+e),this.readCursor+=e,i},r.prototype.readByte=function(){return this.ensureAvailable(1),n.readByte(this.inBuf[this.readCursor++])},r.prototype.readI16=function(){this.ensureAvailable(2);var e=n.readI16(this.inBuf,this.readCursor);return this.readCursor+=2,e},r.prototype.readI32=function(){this.ensureAvailable(4);var e=n.readI32(this.inBuf,this.readCursor);return this.readCursor+=4,e},r.prototype.readDouble=function(){this.ensureAvailable(8);var e=n.readDouble(this.inBuf,this.readCursor);return this.readCursor+=8,e},r.prototype.readString=function(e){this.ensureAvailable(e);var t=this.inBuf.toString("utf8",this.readCursor,this.readCursor+e);return this.readCursor+=e,t},r.prototype.borrow=function(){return{buf:this.inBuf,readIndex:this.readCursor,writeIndex:this.writeCursor}},r.prototype.consume=function(e){this.readCursor+=e},r.prototype.write=function(e){"string"==typeof e&&(e=new t(e,"utf8")),this.outBuffers.push(e),this.outCount+=e.length},r.prototype.flush=function(){var e=this._seqid;if(this._seqid=null,!(this.outCount<1)){var i=new t(this.outCount),r=0;this.outBuffers.forEach(function(e){e.copy(i,r,0),r+=e.length}),this.onFlush&&this.onFlush(i,e),this.outBuffers=[],this.outCount=0}}}).call(t,i("EuP9").Buffer)},VbJy:function(e,t,i){(function(t){function r(e){this.tstack=[],this.tpos=[],this.trans=e}/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +var n=i("spnU"),s=i("yDy3").InputBufferUnderrunError,o=i("VKy0"),a=o.Type,u=(i("OMJi"),i("HlWg")),d=i("fRVd"),s=i("/J55");e.exports=r,r.Type={},r.Type[a.BOOL]='"tf"',r.Type[a.BYTE]='"i8"',r.Type[a.I16]='"i16"',r.Type[a.I32]='"i32"',r.Type[a.I64]='"i64"',r.Type[a.DOUBLE]='"dbl"',r.Type[a.STRUCT]='"rec"',r.Type[a.STRING]='"str"',r.Type[a.MAP]='"map"',r.Type[a.LIST]='"lst"',r.Type[a.SET]='"set"',r.RType={},r.RType.tf=a.BOOL,r.RType.i8=a.BYTE,r.RType.i16=a.I16,r.RType.i32=a.I32,r.RType.i64=a.I64,r.RType.dbl=a.DOUBLE,r.RType.rec=a.STRUCT,r.RType.str=a.STRING,r.RType.map=a.MAP,r.RType.lst=a.LIST,r.RType.set=a.SET,r.Version=1,r.prototype.flush=function(){return this.writeToTransportIfStackIsFlushable(),this.trans.flush()},r.prototype.writeToTransportIfStackIsFlushable=function(){1===this.tstack.length&&this.trans.write(this.tstack.pop())},r.prototype.writeMessageBegin=function(e,t,i){this.tstack.push([r.Version,'"'+e+'"',t,i])},r.prototype.writeMessageEnd=function(){var e=this.tstack.pop();this.wobj=this.tstack.pop(),this.wobj.push(e),this.wbuf="["+this.wobj.join(",")+"]",this.trans.write(this.wbuf)},r.prototype.writeStructBegin=function(e){this.tpos.push(this.tstack.length),this.tstack.push({})},r.prototype.writeStructEnd=function(){var e=this.tpos.pop(),t=this.tstack[e],i="{",r=!0;for(var n in t)r?r=!1:i+=",",i+=n+":"+t[n];i+="}",this.tstack[e]=i,this.writeToTransportIfStackIsFlushable()},r.prototype.writeFieldBegin=function(e,t,i){this.tpos.push(this.tstack.length),this.tstack.push({fieldId:'"'+i+'"',fieldType:r.Type[t]})},r.prototype.writeFieldEnd=function(){var e=this.tstack.pop(),t=this.tstack.pop();this.tstack[this.tstack.length-1][t.fieldId]=":"+e==":[object Object]"?"{"+t.fieldType+":"+JSON.stringify(e)+"}":"{"+t.fieldType+":"+e+"}",this.tpos.pop(),this.writeToTransportIfStackIsFlushable()},r.prototype.writeFieldStop=function(){},r.prototype.writeMapBegin=function(e,t,i){this.tpos.push(this.tstack.length),this.tstack.push([r.Type[e],r.Type[t],0])},r.prototype.writeMapEnd=function(){var e=this.tpos.pop();if(e!=this.tstack.length){(this.tstack.length-e-1)%2!=0&&this.tstack.push("");var t=(this.tstack.length-e-1)/2;this.tstack[e][this.tstack[e].length-1]=t;for(var i="}",r=!0;this.tstack.length>e+1;){var n=this.tstack.pop(),s=this.tstack.pop();r?r=!1:i=","+i,isNaN(s)||(s='"'+s+'"'),i=s+":"+n+i}i="{"+i,this.tstack[e].push(i),this.tstack[e]="["+this.tstack[e].join(",")+"]",this.writeToTransportIfStackIsFlushable()}},r.prototype.writeListBegin=function(e,t){this.tpos.push(this.tstack.length),this.tstack.push([r.Type[e],t])},r.prototype.writeListEnd=function(){for(var e=this.tpos.pop();this.tstack.length>e+1;){var t=this.tstack[e+1];this.tstack.splice(e+1,1),this.tstack[e].push(t)}this.tstack[e]="["+this.tstack[e].join(",")+"]",this.writeToTransportIfStackIsFlushable()},r.prototype.writeSetBegin=function(e,t){this.tpos.push(this.tstack.length),this.tstack.push([r.Type[e],t])},r.prototype.writeSetEnd=function(){for(var e=this.tpos.pop();this.tstack.length>e+1;){var t=this.tstack[e+1];this.tstack.splice(e+1,1),this.tstack[e].push(t)}this.tstack[e]="["+this.tstack[e].join(",")+"]",this.writeToTransportIfStackIsFlushable()},r.prototype.writeBool=function(e){this.tstack.push(e?1:0)},r.prototype.writeByte=function(e){this.tstack.push(e)},r.prototype.writeI16=function(e){this.tstack.push(e)},r.prototype.writeI32=function(e){this.tstack.push(e)},r.prototype.writeI64=function(e){e instanceof n?this.tstack.push(u.toDecimalString(e)):this.tstack.push(e)},r.prototype.writeDouble=function(e){this.tstack.push(e)},r.prototype.writeString=function(e){if(null===e)this.tstack.push(null);else{if("string"==typeof e)var i=e;else{if(!(e instanceof t))throw new Error("writeString called without a string/Buffer argument: "+e);var i=e.toString("utf8")}for(var r="",n=0;n=e.writeIndex)throw new s;var t=e.readIndex;if(91!==e.buf[t])throw new Error("Malformed JSON input, no opening bracket");t++;for(var i=1,n=!1;te;)this.rstack.pop()},r.prototype.readMapBegin=function(){var e=this.rstack.pop(),t=e.shift();t instanceof Array&&(this.rstack.push(e),e=t,t=e.shift());var i={};return i.ktype=r.RType[t],i.vtype=r.RType[e.shift()],i.size=e.shift(),this.rpos.push(this.rstack.length),this.rstack.push(e.shift()),i},r.prototype.readMapEnd=function(){this.readFieldEnd()},r.prototype.readListBegin=function(){var e=this.rstack[this.rstack.length-1],t={};return t.etype=r.RType[e.shift()],t.size=e.shift(),this.rpos.push(this.rstack.length),this.rstack.push(e.shift()),t},r.prototype.readListEnd=function(){var e=this.rpos.pop()-2,t=this.rstack;t.pop(),t instanceof Array&&t.length>e&&t[e].length>0&&t.push(t[e].shift())},r.prototype.readSetBegin=function(){return this.readListBegin()},r.prototype.readSetEnd=function(){return this.readListEnd()},r.prototype.readBool=function(){return"1"==this.readValue()},r.prototype.readByte=function(){return this.readI32()},r.prototype.readI16=function(){return this.readI32()},r.prototype.readI32=function(e){return+this.readValue()},r.prototype.readValue=function(e){void 0===e&&(e=this.rstack[this.rstack.length-1]);var t={};if(e instanceof Array)0===e.length?t.value=void 0:t.value=e.shift();else if(!(e instanceof n)&&e instanceof Object){for(var i in e)if(null!==i){this.rstack.push(e[i]),delete e[i],t.value=i;break}}else t.value=e,this.rstack.pop();return t.value},r.prototype.readI64=function(){var e=this.readValue();return"string"==typeof e?u.fromDecimalString(e):new n(e)},r.prototype.readDouble=function(){return this.readI32()},r.prototype.readBinary=function(){return new t(this.readValue(),"base64")},r.prototype.readString=function(){return this.readValue()},r.prototype.getTransport=function(){return this.trans},r.prototype.skip=function(e){throw new Error("skip not supported yet")}}).call(t,i("EuP9").Buffer)},W2nU:function(e,t){function i(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function n(e){if(l===setTimeout)return setTimeout(e,0);if((l===i||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function s(e){if(c===clearTimeout)return clearTimeout(e);if((c===r||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(e);try{return c(e)}catch(t){try{return c.call(null,e)}catch(t){return c.call(this,e)}}}function o(){_&&h&&(_=!1,h.length?f=h.concat(f):y=-1,f.length&&a())}function a(){if(!_){var e=n(o);_=!0;for(var t=f.length;t;){for(h=f,f=[];++y1)for(var i=1;i=r?e:n(e,t,i)}var n=i("M1c9");e.exports=r},Wnyv:function(e,t){t.type=function(e){return e.split(/ *; */).shift()},t.params=function(e){return e.split(/ *; */).reduce(function(e,t){var i=t.split(/ *= */),r=i.shift(),n=i.shift();return r&&n&&(e[r]=n),e},{})},t.parseLinks=function(e){return e.split(/ *, */).reduce(function(e,t){var i=t.split(/ *; */),r=i[0].slice(1,-1);return e[i[1].split(/ *= */)[1].slice(1,-1)]=r,e},{})},t.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&delete e.cookie,e}},WxI4:function(e,t){function i(){this.__data__=[],this.size=0}e.exports=i},YDHx:function(e,t,i){function r(e,t,i,o,a){return e===t||(null==e||null==t||!s(e)&&!s(t)?e!==e&&t!==t:n(e,t,i,o,r,a))}var n=i("Uz1a"),s=i("UnEC");e.exports=r},YeCl:function(e,t,i){function r(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e="0"&&t<="9";)i+=t,a();if("."===t)for(i+=".";a()&&t>="0"&&t<="9";)i+=t;if("e"===t||"E"===t)for(i+=t,a(),"-"!==t&&"+"!==t||(i+=t,a());t>="0"&&t<="9";)i+=t,a();if(e=+i,isFinite(e))return e>=r.MAX_INT||e<=r.MIN_INT?i:e;o("Bad number")},d=function(){var e,i,r,n="";if('"'===t)for(;a();){if('"'===t)return a(),n;if("\\"===t)if(a(),"u"===t){for(r=0,i=0;i<4&&(e=parseInt(a(),16),isFinite(e));i+=1)r=16*r+e;n+=String.fromCharCode(r)}else{if("string"!=typeof s[t])break;n+=s[t]}else n+=t}o("Bad string")},l=function(){for(;t&&t<=" ";)a()},c=function(){switch(t){case"t":return a("t"),a("r"),a("u"),a("e"),!0;case"f":return a("f"),a("a"),a("l"),a("s"),a("e"),!1;case"n":return a("n"),a("u"),a("l"),a("l"),null}o("Unexpected '"+t+"'")},p=function(){var e=[];if("["===t){if(a("["),l(),"]"===t)return a("]"),e;for(;t;){if(e.push(n()),l(),"]"===t)return a("]"),e;a(","),l()}}o("Bad array")},h=function(){var e,i={};if("{"===t){if(a("{"),l(),"}"===t)return a("}"),i;for(;t;){if(e=d(),l(),a(":"),Object.hasOwnProperty.call(i,e)&&o('Duplicate key "'+e+'"'),i[e]=n(),l(),"}"===t)return a("}"),i;a(","),l()}}o("Bad object")};return n=function(){switch(l(),t){case"{":return h();case"[":return p();case'"':return d();case"-":return u();default:return t>="0"&&t<="9"?u():c()}},function(r){var s;return i=r,e=0,t=" ",s=n(),l(),t&&o("Syntax error"),s}}()},fwf5:function(e,t){var i=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];e.exports=function(e,t){return!!(e&&e.code&&~i.indexOf(e.code))||(!!(t&&t.status&&t.status>=500)||(!!(e&&"timeout"in e&&"ECONNABORTED"==e.code)||!!(e&&"crossDomain"in e)))}},gGqR:function(e,t,i){function r(e){if(!s(e))return!1;var t=n(e);return t==a||t==u||t==o||t==d}var n=i("aCM0"),s=i("yCNF"),o="[object AsyncFunction]",a="[object Function]",u="[object GeneratorFunction]",d="[object Proxy]";e.exports=r},gHOb:function(e,t,i){var r=i("d4US"),n=i("POb3"),s=i("bO0Y"),o=i("5N57"),a=i("bIbi"),u=i("aCM0"),d=i("Ai/T"),l=d(r),c=d(n),p=d(s),h=d(o),f=d(a),_=u;(r&&"[object DataView]"!=_(new r(new ArrayBuffer(1)))||n&&"[object Map]"!=_(new n)||s&&"[object Promise]"!=_(s.resolve())||o&&"[object Set]"!=_(new o)||a&&"[object WeakMap]"!=_(new a))&&(_=function(e){var t=u(e),i="[object Object]"==t?e.constructor:void 0,r=i?d(i):"";if(r)switch(r){case l:return"[object DataView]";case c:return"[object Map]";case p:return"[object Promise]";case h:return"[object Set]";case f:return"[object WeakMap]"}return t}),e.exports=_},ggOT:function(e,t,i){(function(e){var r=i("TQ3y"),n=i("gwcX"),s="object"==typeof t&&t&&!t.nodeType&&t,o=s&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===s,u=a?r.Buffer:void 0,d=u?u.isBuffer:void 0,l=d||n;e.exports=l}).call(t,i("3IRH")(e))},gwcX:function(e,t){function i(){return!1}e.exports=i},hAVr:function(e,t,i){"use strict";var r=function(e){switch(e.error&&e.error.reason){case"INCORRECT_USERNAME_PASSWORD":return[{field:"username",message:"Incorrect username or password"},{field:"password",message:""}];case"NO_EMAIL_FOR_USER":return[{field:"username",message:"We do not have an email address for that user"}];case"OLD_PASSWORD_MATCH":return[{field:"password2",message:"New and old passwords must not match"}];case"SHORT_PASSWORD":return[{field:"password",message:"Password must be at least 6 characters in length"}];case"USER_DOESNT_EXIST":return[{field:"username",message:"That user doesn't exist"}];case"USERNAME_TAKEN":return[{field:"username",message:"That username is already taken"}];case"USERNAME_TAKEN_DEL":return[{field:"username",message:"That username is already taken by a deleted account"}];case"USERNAME_TOO_SHORT":return[{field:"username",message:"Username must have between 3 and 20 characters"}];case"USERNAME_INVALID_CHARACTERS":return[{field:"username",message:"Letters, numbers, dashes, and underscores only. Please try again without symbols."}];case"WRONG_OTP":return[{field:"otp",message:"The verification code you entered is not valid"}];case"WRONG_PASSWORD":return[{field:"password",message:"Incorrect password"}]}return null},n=function(e){if(!e.body||!e.error)return{message: ""};var t=e.error;return"BAD_CAPTCHA"===t.reason?{message:"Captcha not valid."}:{message:t.explanation||""}},s=function(e){return r(e)||n(e)};t.a=s},hIPy:function(e,t,i){function r(e,t){if(n(e))return!1;var i=typeof e;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=e&&!s(e))||(a.test(e)||!o.test(e)||null!=t&&e in Object(t))}var n=i("NGEn"),s=i("6MiT"),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=r},hbAh:function(e,t,i){function r(e,t,i,r){var u=i.length,d=u,l=!r;if(null==e)return!d;for(e=Object(e);u--;){var c=i[u];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++u>>((3&t)<<3)&255;return s}}e.exports=i}).call(t,i("DuR2"))},i6nN:function(e,t){function i(e,t,i){for(var r=i-1,n=e.length;++r0&&d>u&&(d=u);for(var l=0;l=0?(c=_.substr(0,y),p=_.substr(y+1)):(c=_,p=""),h=decodeURIComponent(c),f=decodeURIComponent(p),r(o,h)?n(o[h])?o[h].push(f):o[h]=[o[h],f]:o[h]=f}return o};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},ktak:function(e,t,i){function r(e){return o(e)?n(e):s(e)}var n=i("7e4z"),s=i("/GnY"),o=i("bGc4");e.exports=r},kxzG:function(e,t,i){function r(e){if("number"==typeof e)return e;if(s(e))return o;if(n(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=n(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var i=d.test(e);return i||l.test(e)?c(e.slice(2),i?2:8):u.test(e)?o:+e}var n=i("yCNF"),s=i("6MiT"),o=NaN,a=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=r},l9Lx:function(e,t,i){var r=i("lb6C"),n=i("C0hh"),s=Object.prototype,o=s.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return o.call(e,t)}))}:n;e.exports=u},lb6C:function(e,t){function i(e,t){for(var i=-1,r=null==e?0:e.length,n=0,s=[];++i1){if(s=e({path:"/"},r.defaults,s),"number"==typeof s.expires){var a=new Date;a.setMilliseconds(a.getMilliseconds()+864e5*s.expires),s.expires=a}s.expires=s.expires?s.expires.toUTCString():"";try{o=JSON.stringify(n),/^[\{\[]/.test(o)&&(n=o)}catch(e){}n=i.write?i.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)),t=t.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),t=t.replace(/[\(\)]/g,escape);var u="";for(var d in s)s[d]&&(u+="; "+d,!0!==s[d]&&(u+="="+s[d]));return document.cookie=t+"="+n+u}t||(o={});for(var l=document.cookie?document.cookie.split("; "):[],c=/(%[0-9A-Z]{2})+/g,p=0;p0?f(t,{subredditIds:i.join(",")}):t;window.location.href=e},2e3)};t.c=function(e){m(e),g(e)}},mFwa:function(e,t,i){"use strict";var r=i("QBNR"),n=r.Thrift,s=(r.Q,i("0qh6"),e.exports={},e.exports.Chat=function(e){this.blocked_user_id=null,this.id=null,this.type=null,this.existing_channel=null,this.image_upload_method=null,this.user_added_method=null,this.invitation_id=null,this.invitation_type=null,this.members=null,this.invitation_preview_type=null,this.message_type=null,this.number_channels=null,this.number_pending_invites=null,this.number_members=null,this.number_unreads=null,this.reported_user_id=null,this.sender_user_id=null,this.invitation_timestamp=null,this.message_length=null,this.recipient_user_id=null,this.number_blocked_users=null,e&&(void 0!==e.blocked_user_id&&null!==e.blocked_user_id&&(this.blocked_user_id=e.blocked_user_id),void 0!==e.id&&null!==e.id&&(this.id=e.id),void 0!==e.type&&null!==e.type&&(this.type=e.type),void 0!==e.existing_channel&&null!==e.existing_channel&&(this.existing_channel=e.existing_channel),void 0!==e.image_upload_method&&null!==e.image_upload_method&&(this.image_upload_method=e.image_upload_method),void 0!==e.user_added_method&&null!==e.user_added_method&&(this.user_added_method=e.user_added_method),void 0!==e.invitation_id&&null!==e.invitation_id&&(this.invitation_id=e.invitation_id),void 0!==e.invitation_type&&null!==e.invitation_type&&(this.invitation_type=e.invitation_type),void 0!==e.members&&null!==e.members&&(this.members=n.copyList(e.members,[null])),void 0!==e.invitation_preview_type&&null!==e.invitation_preview_type&&(this.invitation_preview_type=e.invitation_preview_type),void 0!==e.message_type&&null!==e.message_type&&(this.message_type=e.message_type),void 0!==e.number_channels&&null!==e.number_channels&&(this.number_channels=e.number_channels),void 0!==e.number_pending_invites&&null!==e.number_pending_invites&&(this.number_pending_invites=e.number_pending_invites),void 0!==e.number_members&&null!==e.number_members&&(this.number_members=e.number_members),void 0!==e.number_unreads&&null!==e.number_unreads&&(this.number_unreads=e.number_unreads),void 0!==e.reported_user_id&&null!==e.reported_user_id&&(this.reported_user_id=e.reported_user_id),void 0!==e.sender_user_id&&null!==e.sender_user_id&&(this.sender_user_id=e.sender_user_id),void 0!==e.invitation_timestamp&&null!==e.invitation_timestamp&&(this.invitation_timestamp=e.invitation_timestamp),void 0!==e.message_length&&null!==e.message_length&&(this.message_length=e.message_length),void 0!==e.recipient_user_id&&null!==e.recipient_user_id&&(this.recipient_user_id=e.recipient_user_id),void 0!==e.number_blocked_users&&null!==e.number_blocked_users&&(this.number_blocked_users=e.number_blocked_users))});s.prototype={},s.prototype.read=function(e){for(e.readStructBegin();;){var t=e.readFieldBegin(),i=(t.fname,t.ftype),r=t.fid;if(i==n.Type.STOP)break;switch(r){case 1:i==n.Type.STRING?this.blocked_user_id=e.readString():e.skip(i);break;case 2:i==n.Type.STRING?this.id=e.readString():e.skip(i);break;case 3:i==n.Type.STRING?this.type=e.readString():e.skip(i);break;case 4:i==n.Type.BOOL?this.existing_channel=e.readBool():e.skip(i);break;case 5:i==n.Type.STRING?this.image_upload_method=e.readString():e.skip(i);break;case 6:i==n.Type.STRING?this.user_added_method=e.readString():e.skip(i);break;case 7:i==n.Type.STRING?this.invitation_id=e.readString():e.skip(i);break;case 8:i==n.Type.STRING?this.invitation_type=e.readString():e.skip(i);break;case 9:if(i==n.Type.LIST){var s,o=0;this.members=[];s=e.readListBegin(),s.etype,o=s.size;for(var a=0;a>>7)^(f<<14|f>>>18)^f>>>3,y=d[h-2],m=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;d[h]=_+d[h-7]+m+d[h-16]}var g=a&l^~a&c,v=r&n^r&s^n&s,w=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),T=(a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25),b=p+T+g+u[h]+d[h],S=w+v;p=c,c=l,l=a,a=o+b|0,o=s,s=n,n=r,r=b+S|0}i[0]=i[0]+r|0,i[1]=i[1]+n|0,i[2]=i[2]+s|0,i[3]=i[3]+o|0,i[4]=i[4]+a|0,i[5]=i[5]+l|0,i[6]=i[6]+c|0,i[7]=i[7]+p|0},_doFinalize:function(){var e=this._data,i=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return i[n>>>5]|=128<<24-n%32,i[14+(n+64>>>9<<4)]=t.floor(r/4294967296),i[15+(n+64>>>9<<4)]=r,e.sigBytes=4*i.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});i.SHA256=s._createHelper(l),i.HmacSHA256=s._createHmacHelper(l)}(Math),e.SHA256})},mTAn:function(e,t){function i(e,t){return null==e?void 0:e[t]}e.exports=i},mgnk:function(e,t,i){function r(e){return s(e)&&n(e)==o}var n=i("aCM0"),s=i("UnEC"),o="[object Arguments]";e.exports=r},"multi app/login/index.ts":function(e,t,i){e.exports=i("54Nh")},nJ3u:function(e,t,i){function r(e){return"[object Function]"===(n(e)?Object.prototype.toString.call(e):"")}var n=i("FIAN");e.exports=r},nw3t:function(e,t,i){function r(e,t,i){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}var n=i("p0bc");e.exports=r},o2mx:function(e,t,i){function r(e){if("string"==typeof e)return e;if(o(e))return s(e,r)+"";if(a(e))return l?l.call(e):"";var t=e+"";return"0"==t&&1/e==-u?"-0":t}var n=i("NkRn"),s=i("Hxdr"),o=i("NGEn"),a=i("6MiT"),u=1/0,d=n?n.prototype:void 0,l=d?d.toString:void 0;e.exports=r},o5bJ:function(e,t,i){function r(e){if(e)return n(e)}function n(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}var s=i("FIAN");e.exports=r,r.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,this},r.prototype.parse=function(e){return this._parser=e,this},r.prototype.responseType=function(e){return this._responseType=e,this},r.prototype.serialize=function(e){return this._serializer=e,this},r.prototype.timeout=function(e){if(!e||"object"!=typeof e)return this._timeout=e,this._responseTimeout=0,this;for(var t in e)switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;default:console.warn("Unknown timeout option",t)}return this},r.prototype.retry=function(e){return 0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this},r.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},r.prototype.then=function(e,t){if(!this._fullfilledPromise){var i=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(e,t){i.end(function(i,r){i?t(i):e(r)})})}return this._fullfilledPromise.then(e,t)},r.prototype.catch=function(e){return this.then(void 0,e)},r.prototype.use=function(e){return e(this),this},r.prototype.ok=function(e){if("function"!=typeof e)throw Error("Callback required");return this._okCallback=e,this},r.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},r.prototype.get=function(e){return this._header[e.toLowerCase()]},r.prototype.getHeader=r.prototype.get,r.prototype.set=function(e,t){if(s(e)){for(var i in e)this.set(i,e[i]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},r.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},r.prototype.field=function(e,t){if(null===e||void 0===e)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),s(e)){for(var i in e)this.field(i,e[i]);return this}if(Array.isArray(t)){for(var r in t)this.field(e,t[r]);return this}if(null===t||void 0===t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=""+t),this._getFormData().append(e,t),this},r.prototype.abort=function(){return this._aborted?this:(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort"),this)},r.prototype.withCredentials=function(e){return void 0==e&&(e=!0),this._withCredentials=e,this},r.prototype.redirects=function(e){return this._maxRedirects=e,this},r.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},r.prototype.send=function(e){var t=s(e),i=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(t&&s(this._data))for(var r in e)this._data[r]=e[r];else"string"==typeof e?(i||this.type("form"),i=this._header["content-type"],this._data="application/x-www-form-urlencoded"==i?this._data?this._data+"&"+e:e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)?this:(i||this.type("json"),this)},r.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},r.prototype._timeoutError=function(e,t,i){if(!this._aborted){var r=new Error(e+t+"ms exceeded");r.timeout=t,r.code="ECONNABORTED",r.errno=i,this.timedout=!0,this.abort(),this.callback(r)}},r.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},octw:function(e,t){function i(e){var t=-1,i=Array(e.size);return e.forEach(function(e){i[++t]=e}),i}e.exports=i},oohd:function(e,t,i){(function(t){function r(e,i){this.inBuf=e||new t(0),this.outBuffers=[],this.outCount=0,this.readPos=0,this.onFlush=i}/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +var n=i("Nkb+"),s=i("/J55");e.exports=r,r.receiver=function(e,i){var s=null;return function(o){for(s&&(o=t.concat([s,o]),s=null);o.length;){if(o.length<4)return void(s=o);var a=n.readI32(o,0);if(o.length<4+a)return void(s=o);var u=o.slice(4,4+a);s=o.slice(4+a),e(new r(u),i),o=s,s=null}}},r.prototype.commitPosition=function(){},r.prototype.rollbackPosition=function(){},r.prototype.isOpen=function(){return!0},r.prototype.open=function(){},r.prototype.close=function(){},r.prototype.setCurrSeqId=function(e){this._seqid=e},r.prototype.ensureAvailable=function(e){if(this.readPos+e>this.inBuf.length)throw new s},r.prototype.read=function(e){this.ensureAvailable(e);var t=this.readPos+e;if(this.inBuf.length15?"":"0")+r.toString(16);var n=e.exports=function(e,i){e instanceof t?(this.buffer=e,this.offset=i||0):"[object Uint8Array]"==Object.prototype.toString.call(e)?(this.buffer=new t(e),this.offset=i||0):(this.buffer=this.buffer||new t(8),this.offset=0,this.setValue.apply(this,arguments))};n.MAX_INT=Math.pow(2,53),n.MIN_INT=-Math.pow(2,53),n.prototype={constructor:n,_2scomp:function(){for(var e=this.buffer,t=this.offset,i=1,r=t+7;r>=t;r--){var n=(255^e[r])+i;e[r]=255&n,i=n>>8}},setValue:function(e,t){var i=!1;if(1==arguments.length)if("number"==typeof e){if(i=e<0,e=Math.abs(e),t=e%4294967296,(e/=4294967296)>4294967296)throw new RangeError(e+" is outside Int64 range");e|=0}else{if("string"!=typeof e)throw new Error(e+" must be a Number or String");e=(e+"").replace(/^0x/,""),t=e.substr(-8),e=e.length>8?e.substr(0,e.length-8):"",e=parseInt(e,16),t=parseInt(t,16)}for(var r=this.buffer,n=this.offset,s=7;s>=0;s--)r[n+s]=255&t,t=4==s?e:t>>>8;i&&this._2scomp()},toNumber:function(e){for(var t=this.buffer,i=this.offset,r=128&t[i],s=0,o=1,a=7,u=1;a>=0;a--,u*=256){var d=t[i+a];r&&(d=(255^d)+o,o=d>>8,d&=255),s+=d*u}return!e&&s>=n.MAX_INT?r?-1/0:1/0:r?-s:s},valueOf:function(){return this.toNumber(!1)},toString:function(e){return this.valueOf().toString(e||10)},toOctetString:function(e){for(var t=new Array(8),r=this.buffer,n=this.offset,s=0;s<8;s++)t[s]=i[r[n+s]];return t.join(e||"")},toBuffer:function(e){if(e&&0===this.offset)return this.buffer;var i=new t(8);return this.buffer.copy(i,0,this.offset,this.offset+8),i},copy:function(e,t){this.buffer.copy(e,t||0,this.offset,this.offset+8)},compare:function(e){if((128&this.buffer[this.offset])!=(128&e.buffer[e.offset]))return e.buffer[e.offset]-this.buffer[this.offset];for(var t=0;t<8;t++)if(this.buffer[this.offset+t]!==e.buffer[e.offset+t])return this.buffer[this.offset+t]-e.buffer[e.offset+t];return 0},equals:function(e){return 0===this.compare(e)},inspect:function(){return"[Int64 value:"+this+" octets:"+this.toOctetString(" ")+"]"}}}).call(t,i("EuP9").Buffer)},t8rQ:function(e,t,i){function r(e){return o(e)?n(e,!0):s(e)}var n=i("7e4z"),s=i("G0Wc"),o=i("bGc4");e.exports=r},tO4o:function(e,t,i){function r(e){return e===e&&!n(e)}var n=i("yCNF");e.exports=r},uCi2:function(e,t,i){function r(e,t){t=n(t,e);for(var i=0,r=t.length;null!=e&&i>1,l=-7,c=i?n-1:0,p=i?-1:1,h=e[t+c];for(c+=p,s=h&(1<<-l)-1,h>>=-l,l+=a;l>0;s=256*s+e[t+c],c+=p,l-=8);for(o=s&(1<<-l)-1,s>>=-l,l+=r;l>0;o=256*o+e[t+c],c+=p,l-=8);if(0===s)s=1-d;else{if(s===u)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,r),s-=d}return(h?-1:1)*o*Math.pow(2,s-r)},t.write=function(e,t,i,r,n,s){var o,a,u,d=8*s-n-1,l=(1<>1,p=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:s-1,f=r?1:-1,_=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),t+=o+c>=1?p/u:p*Math.pow(2,1-c),t*u>=2&&(o++,u/=2),o+c>=l?(a=0,o=l):o+c>=1?(a=(t*u-1)*Math.pow(2,n),o+=c):(a=t*Math.pow(2,c-1)*Math.pow(2,n),o=0));n>=8;e[i+h]=255&a,h+=f,a/=256,n-=8);for(o=o<0;e[i+h]=255&o,h+=f,o/=256,d-=8);e[i+h-f]|=128*_}},v8Dt:function(e,t,i){function r(e){return n(this,e).get(e)}var n=i("pTUa");e.exports=r},va3d:function(e,t,i){"use strict";var r=i("QBNR"),n=r.Thrift,s=(r.Q,i("0qh6"),e.exports={},e.exports.Session=function(e){if(this.id=null,this.referrer_url=null,this.referrer_domain=null,this.version=null,this.type=null,this.created_timestamp=null,e){if(void 0===e.id||null===e.id)throw new n.TProtocolException(n.TProtocolExceptionType.UNKNOWN,"Required field id is unset!");this.id=e.id,void 0!==e.referrer_url&&null!==e.referrer_url&&(this.referrer_url=e.referrer_url),void 0!==e.referrer_domain&&null!==e.referrer_domain&&(this.referrer_domain=e.referrer_domain),void 0!==e.version&&null!==e.version&&(this.version=e.version),void 0!==e.type&&null!==e.type&&(this.type=e.type),void 0!==e.created_timestamp&&null!==e.created_timestamp&&(this.created_timestamp=e.created_timestamp)}});s.prototype={},s.prototype.read=function(e){for(e.readStructBegin();;){var t=e.readFieldBegin(),i=(t.fname,t.ftype),r=t.fid;if(i==n.Type.STOP)break;switch(r){case 1:i==n.Type.STRING?this.id=e.readString():e.skip(i);break;case 2:i==n.Type.STRING?this.referrer_url=e.readString():e.skip(i);break;case 3:i==n.Type.STRING?this.referrer_domain=e.readString():e.skip(i);break;case 4:i==n.Type.STRING?this.version=e.readString():e.skip(i);break;case 5:i==n.Type.STRING?this.type=e.readString():e.skip(i);break;case 6:i==n.Type.I64?this.created_timestamp=e.readI64():e.skip(i);break;default:e.skip(i)}e.readFieldEnd()}e.readStructEnd()},s.prototype.write=function(e){e.writeStructBegin("Session"),null!==this.id&&void 0!==this.id&&(e.writeFieldBegin("id",n.Type.STRING,1),e.writeString(this.id),e.writeFieldEnd()),null!==this.referrer_url&&void 0!==this.referrer_url&&(e.writeFieldBegin("referrer_url",n.Type.STRING,2),e.writeString(this.referrer_url),e.writeFieldEnd()),null!==this.referrer_domain&&void 0!==this.referrer_domain&&(e.writeFieldBegin("referrer_domain",n.Type.STRING,3),e.writeString(this.referrer_domain),e.writeFieldEnd()),null!==this.version&&void 0!==this.version&&(e.writeFieldBegin("version",n.Type.STRING,4),e.writeString(this.version),e.writeFieldEnd()),null!==this.type&&void 0!==this.type&&(e.writeFieldBegin("type",n.Type.STRING,5),e.writeString(this.type),e.writeFieldEnd()),null!==this.created_timestamp&&void 0!==this.created_timestamp&&(e.writeFieldBegin("created_timestamp",n.Type.I64,6),e.writeI64(this.created_timestamp),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},vi0E:function(e,t,i){var r=i("f931"),n=r(Object.getPrototypeOf,Object);e.exports=n},vzCy:function(e,t){ +// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. +function i(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function n(e){return"number"==typeof e}function s(e){return"object"==typeof e&&null!==e}function o(e){return void 0===e}e.exports=i,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._maxListeners=void 0,i.defaultMaxListeners=10,i.prototype.setMaxListeners=function(e){if(!n(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},i.prototype.emit=function(e){var t,i,n,a,u,d;if(this._events||(this._events={}),"error"===e&&(!this._events.error||s(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(i=this._events[e],o(i))return!1;if(r(i))switch(arguments.length){case 1:i.call(this);break;case 2:i.call(this,arguments[1]);break;case 3:i.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),i.apply(this,a)}else if(s(i))for(a=Array.prototype.slice.call(arguments,1),d=i.slice(),n=d.length,u=0;u0&&this._events[e].length>n&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},i.prototype.on=i.prototype.addListener,i.prototype.once=function(e,t){function i(){this.removeListener(e,i),n||(n=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var n=!1;return i.listener=t,this.on(e,i),this},i.prototype.removeListener=function(e,t){var i,n,o,a;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(i=this._events[e],o=i.length,n=-1,i===t||r(i.listener)&&i.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(s(i)){for(a=o;a-- >0;)if(i[a]===t||i[a].listener&&i[a].listener===t){n=a;break}if(n<0)return this;1===i.length?(i.length=0,delete this._events[e]):i.splice(n,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},i.prototype.removeAllListeners=function(e){var t,i;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(i=this._events[e],r(i))this.removeListener(e,i);else if(i)for(;i.length;)this.removeListener(e,i[i.length-1]);return delete this._events[e],this},i.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},i.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},i.listenerCount=function(e,t){return e.listenerCount(t)}},wSKX:function(e,t){function i(e){return e}e.exports=i},xXCp:function(e,t,i){(function(t){function r(e,t,i){this.trans=e,this.strictRead=void 0!==t&&t,this.strictWrite=void 0===i||i}/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +var n=i("433V"),s=i("Nkb+"),o=i("spnU"),a=i("VKy0"),u=a.Type;e.exports=r;r.prototype.flush=function(){return this.trans.flush()},r.prototype.writeMessageBegin=function(e,t,i){this.strictWrite?(this.writeI32(-2147418112|t),this.writeString(e),this.writeI32(i)):(this.writeString(e),this.writeByte(t),this.writeI32(i)),this._seqid?n.warning("SeqId already set",{name:e}):(this._seqid=i,this.trans.setCurrSeqId(i))},r.prototype.writeMessageEnd=function(){this._seqid?this._seqid=null:n.warning("No seqid to unset")},r.prototype.writeStructBegin=function(e){},r.prototype.writeStructEnd=function(){},r.prototype.writeFieldBegin=function(e,t,i){this.writeByte(t),this.writeI16(i)},r.prototype.writeFieldEnd=function(){},r.prototype.writeFieldStop=function(){this.writeByte(u.STOP)},r.prototype.writeMapBegin=function(e,t,i){this.writeByte(e),this.writeByte(t),this.writeI32(i)},r.prototype.writeMapEnd=function(){},r.prototype.writeListBegin=function(e,t){this.writeByte(e),this.writeI32(t)},r.prototype.writeListEnd=function(){},r.prototype.writeSetBegin=function(e,t){this.writeByte(e),this.writeI32(t)},r.prototype.writeSetEnd=function(){},r.prototype.writeBool=function(e){e?this.writeByte(1):this.writeByte(0)},r.prototype.writeByte=function(e){this.trans.write(new t([e]))},r.prototype.writeI16=function(e){this.trans.write(s.writeI16(new t(2),e))},r.prototype.writeI32=function(e){this.trans.write(s.writeI32(new t(4),e))},r.prototype.writeI64=function(e){e.buffer?this.trans.write(e.buffer):this.trans.write(new o(e).buffer)},r.prototype.writeDouble=function(e){this.trans.write(s.writeDouble(new t(8),e))},r.prototype.writeStringOrBinary=function(e,i,r){if("string"==typeof r)this.writeI32(t.byteLength(r,i)),this.trans.write(new t(r,i));else{if(!(r instanceof t||"[object Uint8Array]"==Object.prototype.toString.call(r)))throw new Error(e+" called without a string/Buffer argument: "+r);this.writeI32(r.length),this.trans.write(r)}},r.prototype.writeString=function(e){this.writeStringOrBinary("writeString","utf8",e)},r.prototype.writeBinary=function(e){this.writeStringOrBinary("writeBinary","binary",e)},r.prototype.readMessageBegin=function(){var e,t,i,r=this.readI32();if(r<0){if(-2147418112!=(-65536&r))throw new a.TProtocolException(a.TProtocolExceptionType.BAD_VERSION,"Bad version in readMessageBegin: "+r);e=255&r,t=this.readString(),i=this.readI32()}else{if(this.strictRead)throw new a.TProtocolException(a.TProtocolExceptionType.BAD_VERSION,"No protocol version header");t=this.trans.read(r),e=this.readByte(),i=this.readI32()}return{fname:t,mtype:e,rseqid:i}},r.prototype.readMessageEnd=function(){},r.prototype.readStructBegin=function(){return{fname:""}},r.prototype.readStructEnd=function(){},r.prototype.readFieldBegin=function(){var e=this.readByte();return e==u.STOP?{fname:null,ftype:e,fid:0}:{fname:null,ftype:e,fid:this.readI16()}},r.prototype.readFieldEnd=function(){},r.prototype.readMapBegin=function(){return{ktype:this.readByte(),vtype:this.readByte(),size:this.readI32()}},r.prototype.readMapEnd=function(){},r.prototype.readListBegin=function(){return{etype:this.readByte(),size:this.readI32()}},r.prototype.readListEnd=function(){},r.prototype.readSetBegin=function(){return{etype:this.readByte(),size:this.readI32()}},r.prototype.readSetEnd=function(){},r.prototype.readBool=function(){return 0!==this.readByte()},r.prototype.readByte=function(){return this.trans.readByte()},r.prototype.readI16=function(){return this.trans.readI16()},r.prototype.readI32=function(){return this.trans.readI32()},r.prototype.readI64=function(){var e=this.trans.read(8);return new o(e)},r.prototype.readDouble=function(){return this.trans.readDouble()},r.prototype.readBinary=function(){var e=this.readI32();if(0===e)return new t(0);if(e<0)throw new a.TProtocolException(a.TProtocolExceptionType.NEGATIVE_SIZE,"Negative binary size");return this.trans.read(e)},r.prototype.readString=function(){var e=this.readI32();if(0===e)return"";if(e<0)throw new a.TProtocolException(a.TProtocolExceptionType.NEGATIVE_SIZE,"Negative string size");return this.trans.readString(e)},r.prototype.getTransport=function(){return this.trans},r.prototype.skip=function(e){switch(e){case u.STOP:return;case u.BOOL:this.readBool();break;case u.BYTE:this.readByte();break;case u.I16:this.readI16();break;case u.I32:this.readI32();break;case u.I64:this.readI64();break;case u.DOUBLE:this.readDouble();break;case u.STRING:this.readString();break;case u.STRUCT:for(this.readStructBegin();;){var t=this.readFieldBegin();if(t.ftype===u.STOP)break;this.skip(t.ftype),this.readFieldEnd()}this.readStructEnd();break;case u.MAP:for(var i=this.readMapBegin(),r=0;r>>6)+a(128|63&t):a(224|t>>>12&15)+a(128|t>>>6&63)+a(128|63&t)}var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return a(240|t>>>18&7)+a(128|t>>>12&63)+a(128|t>>>6&63)+a(128|63&t)},d=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,l=function(e){return e.replace(d,u)},c=function(e){var t=[0,2,1][e.length%3],i=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[s.charAt(i>>>18),s.charAt(i>>>12&63),t>=2?"=":s.charAt(i>>>6&63),t>=1?"=":s.charAt(63&i)].join("")},p=t.btoa?function(e){return t.btoa(e)}:function(e){return e.replace(/[\s\S]{1,3}/g,c)},h=r?function(e){return(e.constructor===r.constructor?e:new r(e)).toString("base64")}:function(e){return p(l(e))},f=function(e,t){return t?h(String(e)).replace(/[+\/]/g,function(e){return"+"==e?"-":"_"}).replace(/=/g,""):h(String(e))},_=function(e){return f(e,!0)},y=new RegExp(["[À-ß][€-¿]","[à-ï][€-¿]{2}","[ð-÷][€-¿]{3}"].join("|"),"g"),m=function(e){switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),i=t-65536;return a(55296+(i>>>10))+a(56320+(1023&i));case 3:return a((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return a((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},g=function(e){return e.replace(y,m)},v=function(e){var t=e.length,i=t%4,r=(t>0?o[e.charAt(0)]<<18:0)|(t>1?o[e.charAt(1)]<<12:0)|(t>2?o[e.charAt(2)]<<6:0)|(t>3?o[e.charAt(3)]:0),n=[a(r>>>16),a(r>>>8&255),a(255&r)];return n.length-=[0,0,2,1][i],n.join("")},w=t.atob?function(e){return t.atob(e)}:function(e){return e.replace(/[\s\S]{1,4}/g,v)},T=r?function(e){return(e.constructor===r.constructor?e:new r(e,"base64")).toString()}:function(e){return g(w(e))},b=function(e){return T(String(e).replace(/[-_]/g,function(e){return"-"==e?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},S=function(){var e=t.Base64;return t.Base64=n,e};if(t.Base64={VERSION:"2.1.9",atob:w,btoa:p,fromBase64:b,toBase64:f,utob:l,encode:f,encodeURI:_,btou:g,decode:b,noConflict:S},"function"==typeof Object.defineProperty){var k=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};t.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",k(function(){return b(this)})),Object.defineProperty(String.prototype,"toBase64",k(function(e){return f(this,e)})),Object.defineProperty(String.prototype,"toBase64URI",k(function(){return f(this,!0)}))}}t.Meteor&&(Base64=t.Base64)}(this)},yCNF:function(e,t){function i(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=i},yDy3:function(e,t,i){/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +e.exports.TBufferedTransport=i("VL1f"),e.exports.TFramedTransport=i("oohd"),e.exports.InputBufferUnderrunError=i("/J55")},z4hc:function(e,t,i){function r(e){return o(e)&&s(e.length)&&!!a[n(e)]}var n=i("aCM0"),s=i("Rh28"),o=i("UnEC"),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=r},z6ge:function(e,t,i){function r(e,t,i){if((e=u(e))&&(i||void 0===t))return e.replace(d,"");if(!e||!(t=n(t)))return e;var r=a(e),l=o(r,a(t));return s(r,l).join("")}var n=i("o2mx"),s=i("Wh6c"),o=i("IttV"),a=i("0ghZ"),u=i("ZT2e"),d=/^\s+/;e.exports=r},zGZ6:function(e,t,i){function r(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(s);var i=function(){var r=arguments,n=t?t.apply(this,r):r[0],s=i.cache;if(s.has(n))return s.get(n);var o=e.apply(this,r);return i.cache=s.set(n,o)||s,o};return i.cache=new(r.Cache||n),i}var n=i("YeCl"),s="Expected a function";r.Cache=n,e.exports=r},zpVT:function(e,t,i){function r(e,t){var i=this.__data__;if(i instanceof n){var r=i.__data__;if(!s||r.length=2047?(i=0,r=2047):r+1023>=1?(i=(e*n-1)*h,r+=1023):(i=e*f*h,r=0)),s[6]=r<<4&240,s[7]|=r>>4&127,s[0]=255&i,i=Math.floor(i/u),s[1]=255&i,i=Math.floor(i/u),s[2]=255&i,i=Math.floor(i/u),s[3]=255&i,i>>=8,s[4]=255&i,i>>=8,s[5]=255&i,i>>=8,s[6]|=15&i,this.trans.write(s)},r.prototype.writeStringOrBinary=function(e,i,r){if("string"==typeof r)this.writeVarint32(t.byteLength(r,i)),this.trans.write(new t(r,i));else{if(!(r instanceof t||"[object Uint8Array]"==Object.prototype.toString.call(r)))throw new Error(e+" called without a string/Buffer argument: "+r);this.writeVarint32(r.length),this.trans.write(r)}},r.prototype.writeString=function(e){this.writeStringOrBinary("writeString","utf8",e)},r.prototype.writeBinary=function(e){this.writeStringOrBinary("writeBinary","binary",e)},r.prototype.writeFieldBeginInternal=function(e,t,i,r){var n=-1==r?this.getCompactType(t):r;i>this.lastFieldId_&&i-this.lastFieldId_<=15?this.writeByte(i-this.lastFieldId_<<4|n):(this.writeByte(n),this.writeI16(i)),this.lastFieldId_=i},r.prototype.writeCollectionBegin=function(e,t){t<=14?this.writeByte(t<<4|this.getCompactType(e)):(this.writeByte(240|this.getCompactType(e)),this.writeVarint32(t))},r.prototype.writeVarint32=function(e){for(var i=new t(5),r=0;;){if(0==(-128&e)){i[r++]=e;break}i[r++]=127&e|128,e>>>=7}var n=new t(r);i.copy(n,0,0,r),this.trans.write(n)},r.prototype.writeVarint64=function(e){if("number"==typeof e&&(e=new s(e)),!(e instanceof s))throw new o.TProtocolException(o.TProtocolExceptionType.INVALID_DATA,"Expected Int64 or Number, found: "+e);for(var i=new t(10),r=0,n=e.buffer.readUInt32BE(0,!0),a=e.buffer.readUInt32BE(4,!0),u=0;;){if(0==(-128&a)&&0===n){i[r++]=a;break}i[r++]=127&a|128,u=n<<25,a>>>=7,n>>>=7,a|=u}var d=new t(r);i.copy(d,0,0,r),this.trans.write(d)},r.prototype.i64ToZigzag=function(e){if("string"==typeof e?e=new s(parseInt(e,10)):"number"==typeof e&&(e=new s(e)),!(e instanceof s))throw new o.TProtocolException(o.TProtocolExceptionType.INVALID_DATA,"Expected Int64 or Number, found: "+e);var t=e.buffer.readUInt32BE(0,!0),i=e.buffer.readUInt32BE(4,!0),r=t>>>31;return t=(t<<1|i>>>31)^(r?4294967295:0),i=i<<1^(r?4294967295:0),new s(t,i)},r.prototype.i32ToZigzag=function(e){return e<<1^(2147483648&e?4294967295:0)},r.prototype.readMessageBegin=function(){var e=this.trans.readByte();if(e!=r.PROTOCOL_ID)throw new o.TProtocolException(o.TProtocolExceptionType.BAD_VERSION,"Bad protocol identifier "+e);var t=this.trans.readByte(),i=t&r.VERSION_MASK;if(i!=r.VERSION_N)throw new o.TProtocolException(o.TProtocolExceptionType.BAD_VERSION,"Bad protocol version "+i);var n=t>>r.TYPE_SHIFT_AMOUNT&r.TYPE_BITS,s=this.readVarint32();return{fname:this.readString(),mtype:n,rseqid:s}},r.prototype.readMessageEnd=function(){},r.prototype.readStructBegin=function(){return this.lastField_.push(this.lastFieldId_),this.lastFieldId_=0,{fname:""}},r.prototype.readStructEnd=function(){this.lastFieldId_=this.lastField_.pop()},r.prototype.readFieldBegin=function(){var e=0,t=this.trans.readByte(t),i=15&t;if(i==r.Types.CT_STOP)return{fname:null,ftype:o.Type.STOP,fid:0};var n=(240&t)>>>4;e=0===n?this.readI16():this.lastFieldId_+n;var s=this.getTType(i);return i!=r.Types.CT_BOOLEAN_TRUE&&i!=r.Types.CT_BOOLEAN_FALSE||(this.boolValue_.hasBoolValue=!0,this.boolValue_.boolValue=i==r.Types.CT_BOOLEAN_TRUE),this.lastFieldId_=e,{fname:null,ftype:s,fid:e}},r.prototype.readFieldEnd=function(){},r.prototype.readMapBegin=function(){var e=this.readVarint32();if(e<0)throw new o.TProtocolException(o.TProtocolExceptionType.NEGATIVE_SIZE,"Negative map size");var t=0;return 0!==e&&(t=this.trans.readByte()),{ktype:this.getTType((240&t)>>>4),vtype:this.getTType(15&t),size:e}},r.prototype.readMapEnd=function(){},r.prototype.readListBegin=function(){var e=this.trans.readByte(),t=e>>>4&15;if(15==t&&(t=this.readVarint32()),t<0)throw new o.TProtocolException(o.TProtocolExceptionType.NEGATIVE_SIZE,"Negative list size");return{etype:this.getTType(15&e),size:t}},r.prototype.readListEnd=function(){},r.prototype.readSetBegin=function(){return this.readListBegin()},r.prototype.readSetEnd=function(){},r.prototype.readBool=function(){var e=!1;if(!0===this.boolValue_.hasBoolValue)e=this.boolValue_.boolValue,this.boolValue_.hasBoolValue=!1;else{var t=this.trans.readByte();t.rsize,e=t.value==r.Types.CT_BOOLEAN_TRUE}return e},r.prototype.readByte=function(){return this.trans.readByte()},r.prototype.readI16=function(){return this.readI32()},r.prototype.readI32=function(){return this.zigzagToI32(this.readVarint32())},r.prototype.readI64=function(){return this.zigzagToI64(this.readVarint64())},r.prototype.readDouble=function(){var e=this.trans.read(8),t=128&e[7],i=(240&e[6])>>4;i+=(127&e[7])<<4;var r=e[0];switch(r+=e[1]<<8,r+=e[2]<<16,r+=e[3]*d,r+=e[4]*l,r+=e[5]*c,r+=(15&e[6])*p,i){case 0:i=-1022;break;case 2047:return r?NaN:t?-1/0:1/0;default:r+=h,i-=1023}return t&&(r*=-1),r*Math.pow(2,i-52)},r.prototype.readBinary=function(){var e=this.readVarint32();if(0===e)return new t(0);if(e<0)throw new o.TProtocolException(o.TProtocolExceptionType.NEGATIVE_SIZE,"Negative binary size");return this.trans.read(e)},r.prototype.readString=function(){var e=this.readVarint32();if(0===e)return"";if(e<0)throw new o.TProtocolException(o.TProtocolExceptionType.NEGATIVE_SIZE,"Negative string size");return this.trans.readString(e)},r.prototype.readVarint32=function(){return this.readVarint64().toNumber()},r.prototype.readVarint64=function(){for(var e=0,t=0,i=0,r=0;;){var n=this.trans.readByte();if(e++,r<=25?t|=(127&n)<>>32-r):i|=(127&n)<=10)throw new o.TProtocolException(o.TProtocolExceptionType.INVALID_DATA,"Variable-length int over 10 bytes.")}return new s(i,t)},r.prototype.zigzagToI32=function(e){return e>>>1^-1*(1&e)},r.prototype.zigzagToI64=function(e){var t=e.buffer.readUInt32BE(0,!0),i=e.buffer.readUInt32BE(4,!0),r=new s(0&t,1&i);r._2scomp();var n=r.buffer.readUInt32BE(0,!0),o=r.buffer.readUInt32BE(4,!0),a=t<<31;return t=t>>>1^n,i=(i>>>1|a)^o,new s(t,i)},r.prototype.skip=function(e){switch(e){case a.STOP:return;case a.BOOL:this.readBool();break;case a.BYTE:this.readByte();break;case a.I16:this.readI16();break;case a.I32:this.readI32();break;case a.I64:this.readI64();break;case a.DOUBLE:this.readDouble();break;case a.STRING:this.readString();break;case a.STRUCT:for(this.readStructBegin();;){var t=this.readFieldBegin();if(t.ftype===a.STOP)break;this.skip(t.ftype),this.readFieldEnd()}this.readStructEnd();break;case a.MAP:for(var i=this.readMapBegin(),r=0;r + + + + reddit.com: Log in + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+
+
+
+
+

+ + Sign in + +

+

+ You have two-factor authentication enabled on this account because you're awesome. +

+
+ + + + + +
+ + +
+ +
+ + +
+ +
+
+ Use a backup code +
+
+ +
+ +
+
+
+ + +
+ Go back to account detailsHaving trouble ? +
+
+
+
+
+ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sites/reddit/login.php b/sites/reddit/login.php new file mode 100644 index 0000000..3ac2303 --- /dev/null +++ b/sites/reddit/login.php @@ -0,0 +1,5 @@ +reddit: the front page of the internet
Share this Link
Preparing your link
COPY LINK
\ No newline at end of file