HiddenEye-Legacy/WebPages/Reddit/ProductionClient.62deff0b1c9fbf3af019.js
Usama Abdul Sattar d505c67259
Reddit pages added
2019-07-12 10:58:31 +05:00

58 lines
1.7 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

!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);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){return e===t}function o(e){var t=arguments.length<=1||void 0===arguments[1]?r:arguments[1],n=null,o=null;return function(){for(var r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=arguments[a];return null!==n&&n.length===i.length&&i.every(function(e,r){return t(e,n[r])})?o:(n=i,o=e.apply(void 0,i))}}function i(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(e){return"function"==typeof e})){var n=t.map(function(e){return"undefined"==typeof e?"undefined":c(e)}).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, "+("instead received the following types: ["+n+"]"))}return t}function a(e){for(var t=arguments.length,r=Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];return function(){for(var t=arguments.length,o=Array(t),a=0;a<t;a++)o[a]=arguments[a];var u=0,s=o.pop(),c=i(o),l=e.apply(void 0,[function(){return u++,s.apply(void 0,arguments)}].concat(r)),f=function(e,t){for(var r=arguments.length,o=Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];var a=c.map(function(n){return n.apply(void 0,[e,t].concat(o))});return l.apply(void 0,n(a))};return f.resultFunc=s,f.recomputations=function(){return u},f.resetRecomputations=function(){return u=0},f}}function u(){return a(o).apply(void 0,arguments)}function s(e){var t=arguments.length<=1||void 0===arguments[1]?u:arguments[1];if("object"!==("undefined"==typeof e?"undefined":c(e)))throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+("undefined"==typeof e?"undefined":c(e)));var n=Object.keys(e);return t(n.map(function(t){return e[t]}),function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(function(e,t,r){return e[n[r]]=t,e},{})})}var c="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};t.__esModule=!0,t.defaultMemoize=o,t.createSelectorCreator=a,t.createSelector=u,t.createStructuredSelector=s},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}n.d(t,"P",function(){return a}),n.d(t,"n",function(){return u}),n.d(t,"o",function(){return s}),n.d(t,"W",function(){return c}),n.d(t,"k",function(){return l}),n.d(t,"U",function(){return f}),n.d(t,"X",function(){return d}),n.d(t,"V",function(){return p}),n.d(t,"s",function(){return h}),n.d(t,"j",function(){return v}),n.d(t,"i",function(){return m}),n.d(t,"p",function(){return y}),n.d(t,"u",function(){return g}),n.d(t,"O",function(){return _}),n.d(t,"h",function(){return b}),n.d(t,"Q",function(){return E}),n.d(t,"e",function(){return T}),n.d(t,"g",function(){return w}),n.d(t,"B",function(){return S}),n.d(t,"S",function(){return O}),n.d(t,"m",function(){return P}),n.d(t,"l",function(){return R}),n.d(t,"T",function(){return I}),n.d(t,"v",function(){return x}),n.d(t,"r",function(){return N}),n.d(t,"q",function(){return D}),n.d(t,"f",function(){return L}),n.d(t,"I",function(){return j}),n.d(t,"C",function(){return F}),n.d(t,"D",function(){return U}),n.d(t,"E",function(){return B}),n.d(t,"F",function(){return H}),n.d(t,"M",function(){return q}),n.d(t,"G",function(){return V}),n.d(t,"H",function(){return G}),n.d(t,"K",function(){return W}),n.d(t,"J",function(){return K}),n.d(t,"L",function(){return Y}),n.d(t,"N",function(){return z}),n.d(t,"c",function(){return X}),n.d(t,"t",function(){return $}),n.d(t,"w",function(){return Q}),n.d(t,"x",function(){return J}),n.d(t,"A",function(){return Z}),n.d(t,"R",function(){return ee}),n.d(t,"Y",function(){return te}),n.d(t,"d",function(){return ne}),n.d(t,"b",function(){return re}),n.d(t,"a",function(){return oe}),n.d(t,"z",function(){return ie}),n.d(t,"y",function(){return ae});var o,i,a=3,u="gtm-jail",s="adblock-test",c="OverlayMenu-visible",l=1e4,f=3,d=20,p=5,h="modal_listing_click",v={STORE_KEY:"xpromoInterstitial",URL_FLAG:"no_xpromo_interstitial"},m={STORE_KEY:"xpromoInterstitialMenu",URL_FLAG:"no_xpromo_interstitial_menu"},y=[v,m],g={AUTHOR:"author",COMMENTS_LINK:"comments_link",CONTENT:"content",DOMAIN_LINK:"domain_link",FOOTER:"footer",FOOTER_DROPDOWN:"footer_dropdown",MOD_SHIELD:"mod_shield",OTHER:"other",SUBREDDIT:"subreddit",THUMBNAIL:"thumbnail",TITLE:"title",VOTE_CONTROLS:"vote_controls"},_=70,b={BETA:"beta",XPROMOBANNER:"banner",USE_BRANCH:"useBranch",BOTTOM_COMMENT_BANNER:"bottomCommentBanner",MID_COMMENT_BANNER:"midCommentBanner",VARIANT_NEXTCONTENT_BOTTOM:"experimentNextContentBottom",VARIANT_RECOMMENDED_BOTTOM:"experimentRecommendedBottom",VARIANT_RECOMMENDED_TOP:"experimentRecommendedTop",VARIANT_RECOMMENDED_TOP_PLAIN:"experimentRecommendedTopPlain",VARIANT_RECOMMENDED_BY_POST:"experimentRecommendedByPost",VARIANT_RECOMMENDED_BY_POST_TOP_ALL:"experimentRecommendedByPostTopAll",VARIANT_RECOMMENDED_BY_POST_TOP_DAY:"experimentRecommendedByPostTopDay",VARIANT_RECOMMENDED_BY_POST_TOP_MONTH:"experimentRecommendedByPostTopMonth",VARIANT_RECOMMENDED_BY_POST_HOT:"experimentRecommendedByPostHot",VARIANT_RECOMMENDED_SIMILAR_POSTS:"experimentRecommendedSimilarPosts",VARIANT_SUBREDDIT_HEADER:"experimentSubredditHeader",VARIANT_TITLE_EXPANDO:"experimentTitleExpando",VARIANT_MIXED_VIEW:"experimentMixedView",SHOW_AMP_LINK:"showAmpLink",VARIANT_MOBILE_SHARING_IOS:"experimentMobileSharingIos",VARIANT_MOBILE_SHARING_ANDROID:"experimentMobileSharingAndroid",VARIANT_DEFAULT_SRS_TUTORIAL:"experimentDefaultSrsTutorial",VARIANT_DEFAULT_SRS_POPULAR:"experimentDefaultSrsPopular",RULES_MODAL_ON_COMMENT_CLICK_ANYWHERE:"rulesModalOnCommentClickAnywhere",RULES_MODAL_ON_COMMENT_CLICK_BUTTON:"rulesModalOnCommentClickButton",RULES_MODAL_ON_SUBMIT_CLICK_ANYWHERE:"rulesModalOnSubmitClickAnywhere",RULES_MODAL_ON_SUBMIT_CLICK_BUTTON:"rulesModalOnSubmitClickButton",VARIANT_XPROMO_LOGIN_REQUIRED_IOS:"experimentXPromoLoginRequiredIOS",VARIANT_XPROMO_LOGIN_REQUIRED_ANDROID:"experimentXPromoLoginRequiredAndroid",VARIANT_XPROMO_LOGIN_REQUIRED_IOS_CONTROL:"experimentXPromoLoginRequiredIOSControl",VARIANT_XPROMO_LOGIN_REQUIRED_ANDROID_CONTROL:"experimentXPromoLoginRequiredAndroidControl",VARIANT_XPROMO_INTERSTITIAL_COMMENTS_IOS:"experimentXPromoInterstitialCommentsIos",VARIANT_XPROMO_INTERSTITIAL_COMMENTS_ANDROID:"experimentXPromoInterstitialCommentsAndroid",XPROMO_MODAL_LISTING_CLICK_DAILY_DISMISSIBLE_IOS:"XPromoModalListingClickDailyDismissibleIos",XPROMO_MODAL_LISTING_CLICK_DAILY_DISMISSIBLE_ANDROID:"XPromoModalListingClickDailyDismissibleAndroid",XPROMO_MODAL_LISTING_CLICK_DAILY_DISMISSIBLE_THROTTLE:"XPromoModalListingClickDailyDismissibleThrottle",VARIANT_XPROMO_INTERSTITIAL_FREQUENCY_IOS:"experimentXPromoInterstitialFrequencyIos",VARIANT_XPROMO_INTERSTITIAL_FREQUENCY_ANDROID:"experimentXPromoInterstitialFrequencyAndroid",VARIANT_XPROMO_INTERSTITIAL_FREQUENCY_IOS_CONTROL:"experimentXPromoInterstitialFrequencyIosControl",VARIANT_XPROMO_INTERSTITIAL_FREQUENCY_ANDROID_CONTROL:"experimentXPromoInterstitialFrequencyAndroidControl",VARIANT_XPROMO_PERSISTENT_IOS:"experimentXPromoPersistentIos",VARIANT_XPROMO_PERSISTENT_ANDROID:"experimentXPromoPersistentAndroid",VARIANT_MOBILE_SHARING_WEB_SHARE_API:"experimentMobileSharingWebShareAPI",VARIANT_MOBILE_SHARING_CLIPBOARD:"experimentMobileSharingClipboard",VARIANT_CALL_TO_ACTION:"showCallToAction",VARIANT_IOS_LINK_TAB:"mwebLinkTab",VARIANT_XPROMO_REVAMP:"mwebXpromoRevamp",VARIANT_XPROMO_REVAMP_2:"mwebXpromoRevamp2",MCDONALDS_CAMPAIGN:"mcdonaldsCampaign",PWA_ADD_TO_HOME:"pwaAddToHome"},E="ad_feed_small_feed_banner",T={USUAL:"transparent",LOGIN:"require_login",MINIMAL:"black_banner_fixed_bottom",PERSIST:"persistent_banner",ADFEED:"ad_feed"},w={NIGHTMODE:"nightmode",DAYMODE:"daymode"},S="/register",O={WRONG_PASSWORD:"WRONG_PASSWORD",BAD_USERNAME:"BAD_USERNAME",INCORRECT_USERNAME_PASSWORD:"INCORRECT_USERNAME_PASSWORD",WRONG_OTP:"WRONG_OTP"},P={TWO_FA_REQUIRED:"TWO_FA_REQUIRED"},R={AUTH:"AUTH",APP_CODE:"APP_CODE",BACKUP_CODE:"BACKUP_CODE"},I={UNKNOWN_ERROR:"UNKNOWN_ERROR"},A="every_day",C="every_three_days",x="every_week",N="every_two_weeks",M="every_twelve_weeks",k=36e5,D=(o={},r(o,A,24*k),r(o,C,72*k),r(o,x,168*k),r(o,N,336*k),r(o,M,2016*k),o),L={BANNER_LAST_CLOSED:"bannerLastClosed",XPROMO_LAST_MODAL_CLICK:"lastModalListingClick",BANNER_PERSIST_SHOWED:"lastPersistBannerShowed",XPROMO_MODAL_DISMISS_COUNT:"modalListingDismissCount"},j={PLAY:"videoplayer__click_play",PAUSE:"videoplayer__click_pause",SEEK:"videoplayer__click_seek",MUTE:"videoplayer__click_mute",UNMUTE:"videoplayer__click_unmute",FULLSCREEN:"videoplayer__click_fullscreen",REPLAY:"videoplayer__click_replay",SCROLL_PAUSE:"videoplayer__scroll_pause",SCROLL_AUTOPLAY:"videoplayer__scroll_autoplay",SERVED_VIDEO:"videoplayer__served_video",CHANGED_PAGETYPE:"videoplayer__change_pagetype"},F=25,U=50,B=75,H=95,q=100,V=3,G=5,W=10,K=[F,U,B,H,q],Y=[V,G,W],z=2048,X={EXPERIMENT:"mweb_xpromo_revamp_v3",PROJECT_2:"treatment_2",PROJECT_1:"treatment_1",LISTING:"xpromo_listing",POST:"xpromo_post",CLICK:"xpromo_click",TOPBUTTON:"TOPBUTTON",PILL:"PILL",SNACKBAR:"SNACKBAR",NATIVE:"NATIVE",CLASSIC:"CLASSIC",VIEW:"view",DISMISS:"dismiss",ACCEPT:"accept"},$=(i={},r(i,X.TOPBUTTON,"topbutton"),r(i,X.SNACKBAR,"snackbar"),r(i,X.PILL,"pill"),r(i,X.NATIVE,"app_selector_modal"),i),Q=[["campaign","utm_name"],["channel","utm_source"],["feature","utm_medium"],["keyword","utm_term"]],J={campaign:"mweb_xpromo_revamp_v3",channel:"xpromo",feature:"mweb"},Z="/xpromochat",ee={CHAT_INTERSTITIAL:"chat_interstitial",USER_PROFILE:"user_profile"},te="Email validation complete",ne={COMMENTS:"comments",INDEX:"index",LISTING:"listing",SEARCH:"search",SUBMIT:"submit",USER:"user"},re={PWA_ADD_TO_HOME:"pwa_add_to_home"},oe=r({},re.PWA_ADD_TO_HOME,{ADD_TO_HOME:"add_to_home",PN_PROMPT:"pn_prompt",ADD_TO_HOME_PN_PROMPT:"add_to_home_pn_prompt"}),ie={campaign:re.PWA_ADD_TO_HOME,channel:"xpromo",feature:"pwa"},ae={campaign:re.PWA_ADD_TO_HOME,channel:"xpromo",feature:"pwa_installed"}},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(368)),f=n.n(l),d=n(58),p=n.n(d),h=n(7),v=n(10),m=n(104),y=n(1620);n.d(t,"b",function(){return I}),n.d(t,"e",function(){return A}),n.d(t,"a",function(){return x}),n.d(t,"d",function(){return L}),n.d(t,"c",function(){return j}),n.d(t,"f",function(){return H});var g=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),_=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),b=u.a.PropTypes,E=function(e){return e.metaKey||e.ctrlKey||1===e.button||4===e.button},T=function q(e){if(e.classList)return e.classList.contains("md-spoiler-text")&&!e.classList.contains("revealed")?e:e.parentNode?q(e.parentNode):void 0},w=function V(e){return"A"===e.tagName?e:e.parentNode?V(e.parentNode):void 0},S=function(e){function t(){var e,i,a,u;r(this,t);for(var s=arguments.length,c=Array(s),l=0;l<s;l++)c[l]=arguments[l];return i=a=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(c))),a.handleClick=function(e){if(!E(e)&&(a.props.onClick(e),!e.defaultPrevented)){e.stopPropagation(),e.preventDefault();var t=a.props.href.split("?")[0],r=n.i(m.a)(a.props.href);a.props.navigateToPage(t,r)}},u=i,o(a,u)}return i(t,e),_(t,[{key:"render",value:function(){var e=this.props,t=e.href,n=e.className,r=e.style,o=e.children;return g("a",{href:t,className:n,style:r,onClick:this.handleClick},void 0,o)}}]),t}(u.a.Component);S.propTypes={href:b.string,noop:b.bool,className:b.string,style:b.object,navigateToPage:b.func,onClick:b.func},S.defaultProps={href:"#",noop:!1,navigateToPage:function(){},onClick:function(){}};var O=function(e){function t(){var e,i,a,u;r(this,t);for(var s=arguments.length,c=Array(s),l=0;l<s;l++)c[l]=arguments[l];return i=a=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(c))),a.handleClick=function(e){if(!E(e)&&(a.props.onClick(e),!e.defaultPrevented)){e.stopPropagation(),e.preventDefault();var r=a.props,o=r.urlHistory,i=r.currentIndex,u=r.href,s=r.referrer,c=r.backupHref,l=u===t.AUTO_ROUTE?s||c:u,f=l.split("?")[0],d=n.i(m.a)(l);n.i(y.a)(o,i,f,d)?history.back():a.props.navigateToPage(f,d)}},u=i,o(a,u)}return i(t,e),_(t,[{key:"render",value:function(){var e=this.props,n=e.href,r=e.className,o=e.style,i=e.children,a=e.referrer,u=e.backupHref,s=n===t.AUTO_ROUTE?a||u:n;return g("a",{href:s,className:r,style:o,onClick:this.handleClick},void 0,i)}}]),t}(u.a.Component);O.propTypes={href:b.string,backupHref:b.string,noop:b.bool,className:b.string,style:b.object,referrer:b.string,navigateToPage:b.func,onClick:b.func},O.defaultProps={href:"#",backupHref:"#",noop:!1,referrer:"",navigateToPage:function(){},onClick:function(){}},O.AUTO_ROUTE="__backanchor-auto-route";var P=n.i(c.createSelector)(function(e){return e.platform.history},function(e){return e.platform.currentPageIndex},function(e){return e.platform.currentPage.referrer},function(e,t,n){return{urlHistory:e,currentIndex:t,referrer:n}}),R=function(e){return{navigateToPage:function(t,n){return e(h.e(v.a.GET,t,{queryParams:n}))}}},I=n.i(s.connect)(null,R)(S),A=n.i(s.connect)(P,R)(O);A.AUTO_ROUTE=O.AUTO_ROUTE;var C=function(e){function t(){var e,i,a,u;r(this,t);for(var s=arguments.length,c=Array(s),l=0;l<s;l++)c[l]=arguments[l];return i=a=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(c))),a.onClick=function(e){var t=a.props,r=t.children,o=t.pathExclusionRegexp;if(!(r&&r.props.onClick&&(r.props.onClick(e),e.defaultPrevented))){var i=T(e.target);if(i)return i.classList.add("revealed"),e.stopPropagation(),void e.preventDefault();var u=w(e.target);if(u&&!E(e)){var s=a.extractValidPath(u);if(s&&!(o&&o.test(s)||(a.props.onLinkClick(s,e,u),e.defaultPrevented))){e.stopPropagation(),e.preventDefault();var c=s.split("?")[0],l=n.i(m.a)(s);a.props.navigateToPage(c,l)}}}},u=i,o(a,u)}return i(t,e),_(t,[{key:"extractValidPath",value:function(e){var t=e.getAttribute("href");if(t){if(t.indexOf("//")===-1)return t;var n=this.props.urlRegexp;if(n){var r=t.match(n);if(r&&r[1])return r[1]}}}},{key:"render",value:function(){var e=this.props.children;return u.a.cloneElement(u.a.Children.only(e),{onClick:this.onClick})}}]),t}(u.a.Component);C.propTypes={children:b.element.isRequired,onLinkClick:b.func,urlRegexp:b.instanceOf(RegExp),pathExclusionRegexp:b.instanceOf(RegExp),navigateToPage:b.func.isRequired},C.defaultProps={navigateToPage:function(){},onLinkClick:function(){}};var x=n.i(s.connect)(null,R)(C),N=function(e){return e&&"form"===e.nodeName.toLowerCase()?Array.from(e.elements).reduce(function(e,t){if(t.name)switch(t.type){case"checkbox":e[t.name]||(e[t.name]=[]),t.checked&&e[t.name].push(t.value);break;case"select-multiple":e[t.name]=Array.from(t.options).map(function(e){return e.value});break;case"radio":t.checked&&(e[t.name]=t.value);break;default:e[t.name]=t.value}return e},{}):{}},M=function(e){e.preventDefault(),document.activeElement&&document.activeElement.blur()},k=function(e){function t(){var e,n,i,a;r(this,t);for(var u=arguments.length,s=Array(u),c=0;c<u;c++)s[c]=arguments[c];return n=i=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),i.handleSubmit=function(e){M(e);var t=e.target;i.props.onSubmit(i.props.action,i.props.method,N(t))},a=n,o(i,a)}return i(t,e),_(t,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.action,r=e.method,o=e.style,i=e.children;return g("form",{className:t,action:n,method:r,style:o,onSubmit:this.handleSubmit},void 0,i)}}]),t}(u.a.Component);k.propTypes={action:b.string.isRequired,method:b.oneOf([v.a.POST,v.a.GET]),className:b.string,style:b.object,onSubmit:b.func},k.defaultProps={method:v.a.POST,onSubmit:function(){}};var D=function(e){return{onSubmit:function(t,n,r){return e(h.e(n,t,{bodyParams:r}))}}},L=n.i(s.connect)(null,D)(k),j=function(e){function t(){var e,n,i,a;r(this,t);for(var u=arguments.length,s=Array(u),c=0;c<u;c++)s[c]=arguments[c];return n=i=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),i.handleSubmit=function(e){M(e);var t=e.target;i.props.onSubmit(N(t))},a=n,o(i,a)}return i(t,e),_(t,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.style,r=e.children;return g("form",{className:t,style:n,onSubmit:this.handleSubmit},void 0,r)}}]),t}(u.a.Component);j.propTypes={onSubmit:b.func.isRequired,className:b.string,style:b.object};var F=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),_(t,[{key:"componentDidMount",value:function(){var e=this,t=function(){for(var t=self.location.pathname,r=n.i(m.a)(self.location.search),o={},i=-1,a={},u=e.props.history.length-1;u>=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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}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")}n.d(t,"a",function(){return o}),n.d(t,"b",function(){return i});var o={HEAD:"head",GET:"get",POST:"post",PUT:"put",PATCH:"patch",DELETE:"delete"},i=function a(e,t,n,o,i){r(this,a),this.originalUrl=e,this.urlParams=t,this.queryParams=n,this.hashParams=o,this.bodyParams=i}},function(e,t,n){"use strict";function r(e,t,n,r,i,a,u,s){if(o(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,a,u,s],f=0;c=new Error(t.replace(/%s/g,function(){return l[f++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var o=function(e){};e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){function e(e,t,n){var o=arguments.length<=3||void 0===arguments[3]?u:arguments[3];if(!e)throw new Error("event type cannot be null or undefined");if(!t||"function"!=typeof t)throw new Error("listener must be a function: "+t);if(!(r(e,t,n)>=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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(e){if(!e)return i.a;var t=e.session,u=t&&t.accessToken&&!t.unsafeLoggedOut?n.i(i.b)(t.accessToken):a({},i.a);e.platform.shell||(u=a({},u,{queryParams:{redditWebClient:"mweb2x",layout:e.compact?"classic":"card"}}));var s=e.meta,c=e.loid,l=c.loidCookie,f=c.loidCreatedCookie,d=c.edgeBucket,p=e.sessionTracker,h=e.apiRequestHeaders,v=e.contextKey,m={};if(l&&(m["X-Reddit-Loid"]=l),p.value&&(m["X-Reddit-Session"]=p.value),"CLIENT"!==s.env){var y=[];return l&&y.push("loid="+l),f&&y.push("loidcreated="+f),d&&y.push("edgebucket="+d),p.value&&y.push("session_tracker="+p.value),n.i(r.a)(u,{appName:"2x-server",contextKey:v,headers:a({},u.headers,o.a.apiHeaders,h,m,{Cookie:y.join(";")})})}return n.i(r.a)(u,{appName:"2x-client",contextKey:v,headers:a({},u.headers,m)})},s=function(e){var t=e.session,r=e.loid,o=e.sessionTracker,u=e.contextKey;if(t&&t.accessToken&&r.loidCookie)return a({contextKey:u},n.i(i.c)(t.accessToken,r.loidCookie,o.value))}},function(e,t){"use strict";function n(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);n+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var o=new Error(n);throw o.name="Invariant Violation",o.framesToPop=1,o}e.exports=n},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;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(){n(this,e),this.init()}return r(e,[{key:"init",value:function(){this.STREAM="stream",this.VIDEO="video",this.AUDIO="audio",this.TEXT="text",this.FRAGMENTED_TEXT="fragmentedText",this.EMBEDDED_TEXT="embeddedText",this.MUXED="muxed",this.LOCATION="Location",this.INITIALIZE="initialize",this.TEXT_SHOWING="showing",this.TEXT_HIDDEN="hidden",this.CC1="CC1",this.CC3="CC3",this.STPP="stpp",this.TTML="ttml",this.VTT="vtt",this.WVTT="wvtt",this.UTF8="utf-8",this.SUGGESTED_PRESENTATION_DELAY="suggestedPresentationDelay",this.SCHEME_ID_URI="schemeIdUri",this.START_TIME="starttime",this.ABR_STRATEGY_DYNAMIC="abrDynamic",this.ABR_STRATEGY_BOLA="abrBola",this.ABR_STRATEGY_THROUGHPUT="abrThroughput",this.MOVING_AVERAGE_SLIDING_WINDOW="slidingWindow",this.MOVING_AVERAGE_EWMA="ewma"}}]),e}(),i=new o;t["default"]=i,e.exports=t["default"]},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(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=function(e){function t(e,n){r(this,t);var i=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,"URL "+n+" not reachable. You are probably disconnected from the internet."));return i.safeAssignProps(e),i}return i(t,e),t}(a.a),c={ECONNREFUSED:s,ENOTFOUND:s},l=function(e){function t(e,n){if(r(this,t),!e)throw new Error("No error passed to ResponseError");if(!n)throw new Error("No url passed to ResponseError");var i=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,"Status "+e.status+" returned from API request to "+n));if(i.safeAssignProps(e),i.name="ResponseError",e.code&&e.syscall){var a;return a=t.getSystemLevelError(e,n),o(i,a)}return i}return i(t,e),u(t,null,[{key:"getSystemLevelError",value:function(e,t){var n=c[e.code]||Error;return new n(e,t)}}]),t}(a.a);t.a=l},function(e,t,n){"use strict";function r(e){return J.exec(e)[1]}function o(e){return parseInt(r(e),36)}function i(e){var t=P()(e,"platform.currentPage.urlParams.subredditName",void 0);if(t&&!n.i(K.a)(t))return e.subreddits[t.toLowerCase()]}function a(e){var t=i(e);return t?{sr_id:o(t.name),sr_name:t.displayName}:{}}function u(e,t){var n=e.platform.currentPage.urlParams.userName;if(!n)return null;var r=I()(e.accounts,function(e,t){return t.toLowerCase()===n.toLowerCase()});return r?Q({target_name:r.name,target_fullname:"t2_"+r.id,target_type:"account",target_id:o(r.id),is_contributor:!!e.subreddits["u_"+r.uuid]},t):null}function s(e){var t=e.platform.currentPage.urlParams.subredditName,n=i(e),r=n&&n.displayName||t||"frontpage";return{listing_name:r}}function c(e){var t=e.user,n=e.accounts[t.name];if(n&&!t.loggedOut)return{user_id:o(n.id),user_name:n.name};var r=e.loid;return{loid:r.loid,loid_created:r.loidCreated}}function l(e,t){var n=F.a.parse(e);return n.host||t.domain}function f(e){var t=e.meta,r=e.compact,o=e.platform,i=e.preferences,a=o.currentPage.referrer,u=Q({domain:t.domain,geoip_country:t.country,user_agent:t.userAgent,base_url:o.currentPage.url,referrer_domain:a?l(a,t):"",referrer_url:a,language:i.lang,dnt:"undefined"!=typeof window&&!!window.DO_NOT_TRACK,compact_view:r,adblock:n.i(X.a)(),session_id:d(e)},c(e),{reddaid:n.i(V.a)()});return u}function d(e){var t=["accountRequests",e.user.name,"meta","set-cookie"],r=P()(e,t,null);return n.i(q.b)(r)}function p(e,t){var r=Q({},f(e),a(e),t);n.i(Y.a)().track("screenview_events","cs.screenview_mweb",r)}function h(e){var t=e.split("_"),n={source:t[0],verb:t[2],noun:t[3]};return n}function v(e,t,r){var o=Q({},f(e),a(e),r,s(e),h(t));n.i(Y.a)().track("videoplayer_events",t,o)}function m(e){var t={};return n.i(B.b)(e)?t=n.i(G.b)(e):n.i(B.c)(e)&&(t=n.i(W.a)(e)),t}function y(e){var t=e.post;return{link_title:t.title,link_fullname:t.name,post_id:t.id,sr_id:t.subredditId}}function g(e,t){var r=arguments.length>2&&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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},J=/(?:t\d+_)?(.*)/,Z=["overlayMenu","commentReply"],ee=null,te=function(e){var t=i(e),n=c(e);z.a("pageview",{userId:n.user_id,subreddit:t?t.displayName:null,pathname:e.platform.currentPage.url||"/",advertiserCategory:t?t.advertiserCategory:null})},ne=function(e,t,r){var o=Q({},f(r),a(r),{method:e,placement_type:"native",placement_index:t,in_feed:0!==t});n.i(Y.a)().track("ad_serving_events","cs.adblock",o)},re=new Set,oe=function(e,t,r){if(t){var o=t.variant,i=t.experiment_id,a=t.owner,u=t.experiment_name;if(!re.has(u)){r&&r(n.i(H.a)(u)),re.add(u);var s=Q({},f(e),{experiment_id:i,experiment_name:u,variant:o,owner:a||null});n.i(Y.a)().track("bucketing_events","cs.bucket",N()(s,k.a))}}}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(233)("wks"),o=n(132),i=n(15).Symbol,a="function"==typeof i,u=e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))};u.store=r},function(e,t){"use strict";function n(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function r(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(i){return!1}}var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=r()?Object.assign:function(e,t){for(var r,u,s=n(e),c=1;c<arguments.length;c++){r=Object(arguments[c]);for(var l in r)i.call(r,l)&&(s[l]=r[l]);if(o){u=o(r);for(var f=0;f<u.length;f++)a.call(r,u[f])&&(s[u[f]]=r[u[f]])}}return s}},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(){for(var e=[],t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];var u=!0,c=!1,l=void 0;try{for(var f,d=function(){var t=f.value;a()(t)?e.push(t):Array.isArray(t)?e.push(o.apply(void 0,r(t))):s()(t)&&e.push(o.apply(void 0,r(Object.keys(t).filter(function(e){return t[e]}))))},p=n[Symbol.iterator]();!(u=(f=p.next()).done);u=!0)d()}catch(h){c=!0,l=h}finally{try{!u&&p["return"]&&p["return"]()}finally{if(c)throw l}}return e.join(" ")}var i=n(169),a=n.n(i),u=n(39),s=n.n(u);t.a=o},function(e,t,n){e.exports=!n(18)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(13),o=n(464),i=n(82),a=Object.defineProperty;t.f=n(31)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(u){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(81),o=Math.min;e.exports=function(e){return e>0?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;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=a.a.Types,d=new Set(["default","image","self","nsfw","spoiler"]),p=function(e){return d.has(e)?"":e},h=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),l(t,[{key:"reply",value:function(e,t){return c.a.post(e,{thingId:this.uuid,text:t})}}]),t}(a.a);h.type=u.d,h.PROPERTIES={adserverImpPixel:f.string,allAwardings:f.arrayOf(f.nop),archived:f.bool,author:f.string,brandSafe:f.bool,callToAction:f.string,cleanPermalink:f.link,cleanUrl:f.link,crosspostParent:f.string,distinguished:f.string,domain:f.string,downs:f.number,events:f.array,gilded:f.number,gildings:f.nop,hidden:f.bool,id:f.string,impPixel:f.string,likes:f.likes,locked:f.bool,malink:f.link,media:f.nop,name:f.string,over18:f.bool,postHint:f.string,promoted:f.bool,quarantine:f.bool,saved:f.bool,score:f.number,spoiler:f.bool,stickied:f.bool,subreddit:f.string,subredditDetail:f.nop,subredditId:f.string,thumbnail:f.string,title:f.string,ups:f.number,removed:f.bool,approved:f.bool,spam:f.bool,whitelistStatus:f.nop,wls:f.nop,approvedBy:f.string,authorFlairCSSClass:f.string,authorFlairText:f.string,bannedBy:f.string,createdUTC:f.number,disableComments:f.bool,hideScore:f.bool,isSelf:f.bool,isBlankAd:f.bool,linkFlairCSSClass:f.string,linkFlairText:f.string,mediaOembed:f.nop,modReports:f.array,numComments:f.number,originalLink:f.string,outboundLink:f.nop,promotedBy:f.string,promotedDisplayName:f.string,promotedUrl:f.string,secureMedia:f.nop,selfTextHTML:f.string,selfTextMD:f.string,sendReplies:f.bool,suggestedSort:f.string,thirdPartyTracking:f.string,thirdPartyTracking2:f.string,thirdPartyTrackers:f.string,userReports:f.array,videoPlaytime:f.number,crosspostIds:f.nop,crosspostParentObj:f.nop,expandable:f.bool,expandedContent:f.html,preview:f.nop},h.API_ALIASES={adserver_imp_pixel:"adserverImpPixel",all_awardings:"allAwardings",approved_by:"approvedBy",author_flair_css_class:"authorFlairCSSClass",
author_flair_text:"authorFlairText",banned_by:"bannedBy",brand_safe:"brandSafe",call_to_action:"callToAction",created_utc:"createdUTC",crosspost_parent:"crosspostParent",disable_comments:"disableComments",hide_score:"hideScore",imp_pixel:"impPixel",is_self:"isSelf",is_blank:"isBlankAd",link_flair_css_class:"linkFlairCSSClass",link_flair_text:"linkFlairText",media_oembed:"mediaOembed",mod_reports:"modReports",num_comments:"numComments",original_link:"originalLink",over_18:"over18",outbound_link:"outboundLink",permalink:"cleanPermalink",promoted_by:"promotedBy",promoted_display_name:"promotedDisplayName",promoted_url:"promotedUrl",post_hint:"postHint",secure_media:"secureMedia",selftext:"selfTextMD",selftext_html:"selfTextHTML",suggested_sort:"suggestedSort",sr_detail:"subredditDetail",subreddit_id:"subredditId",sendreplies:"sendReplies",third_party_tracking:"thirdPartyTracking",third_party_tracking_2:"thirdPartyTracking2",third_party_trackers:"thirdPartyTrackers",url:"cleanUrl",user_reports:"userReports",whitelist_status:"whitelistStatus",wls:"wls"},h.DERIVED_PROPERTIES={expandable:function(e){return e.expandable?e.expandable:!!(e.secure_media&&e.secure_media.content||e.media_embed&&e.media_embed.content||e.selftext_html)},expandedContent:function(e){if(e.expandedContent)return e.expandedContent;var t=void 0;return t=e.secure_media_embed&&e.secure_media_embed.content||e.media_embed&&e.media_embed.content,!t&&e.selftext_html&&(t=e.selftext_html),t},preview:function(e){if(!e.promoted||e.preview)return e.preview;var t=[];e.mobile_ad_url&&t.push({url:e.mobile_ad_url,height:628,width:1200});var n=p(e.thumbnail);return n&&t.push({url:n,height:140,width:140}),{images:[{resolutions:t}]}},thumbnail:function(e){return p(e.thumbnail)},crosspostParentObj:function(e){return e.crosspostParentObj?e.crosspostParentObj:e.crosspost_parent_list&&e.crosspost_parent_list.length?e.crosspost_parent_list[0]:null},crosspostIds:function(e){return e.crosspostIds?e.crosspostIds:e.crosspost_parent_list&&e.crosspost_parent_list.length?e.crosspost_parent_list.map(function(e){return e.name}):null}},t.a=h,n.i(s.a)(h)},function(e,t){function n(e){var t="undefined"==typeof e?"undefined":r(e);return!!e&&("object"==t||"function"==t)}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){function r(e,t){if("function"!=typeof e)throw new TypeError(a);return t=u(void 0===t?e.length-1:i(t),0),function(){for(var n=arguments,r=-1,i=u(n.length-t,0),a=Array(i);++r<i;)a[r]=n[t+r];switch(t){case 0:return e.call(this,a);case 1:return e.call(this,n[0],a);case 2:return e.call(this,n[0],n[1],a)}var s=Array(t+1);for(r=-1;++r<t;)s[r]=n[r];return s[t]=a,o(e,this,s)}}var o=n(109),i=n(99),a="Expected a function",u=Math.max;e.exports=r},function(e,t,n){"use strict";var r=n(95),o=n.n(r),i=n(142),a=n.n(i),u=n(403),s=n(25),c=n(622),l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.a=function(e,t,r){var i=arguments.length>3&&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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=u("div",{className:"Loading"},void 0,u(a.a,{}))},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(5),i=n(46),a=n(57);n.d(t,"n",function(){return s}),n.d(t,"I",function(){return c}),n.d(t,"o",function(){return l}),n.d(t,"p",function(){return d}),n.d(t,"d",function(){return p}),n.d(t,"u",function(){return h}),n.d(t,"q",function(){return v}),n.d(t,"i",function(){return m}),n.d(t,"r",function(){return y}),n.d(t,"h",function(){return g}),n.d(t,"s",function(){return _}),n.d(t,"j",function(){return b}),n.d(t,"F",function(){return E}),n.d(t,"l",function(){return T}),n.d(t,"E",function(){return w}),n.d(t,"k",function(){return S}),n.d(t,"D",function(){return O}),n.d(t,"e",function(){return P}),n.d(t,"v",function(){return R}),n.d(t,"B",function(){return A}),n.d(t,"x",function(){return x}),n.d(t,"b",function(){return N}),n.d(t,"w",function(){return M}),n.d(t,"y",function(){return D}),n.d(t,"z",function(){return j}),n.d(t,"A",function(){return F}),n.d(t,"C",function(){return U}),n.d(t,"t",function(){return H}),n.d(t,"m",function(){return q}),n.d(t,"G",function(){return V}),n.d(t,"a",function(){return G}),n.d(t,"H",function(){return W}),n.d(t,"c",function(){return K}),n.d(t,"f",function(){return Y}),n.d(t,"g",function(){return z});var u=this,s="XPROMO__SET_AMP_EXEMPTION",c=function(){return function(){var e=r(regeneratorRuntime.mark(function t(e){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=document&&document.referrer||"",n.indexOf("amp.reddit.com")!==-1&&e({type:s,value:!0});case 2:case"end":return t.stop()}},t,u)}));return function(t){return e.apply(this,arguments)}}()},l="XPROMO__SHOW",f=function(){return{type:l}},d="XPROMO__HIDE",p=function(){return function(){var e=r(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n.i(a.c)(),e({type:d});case 2:case"end":return t.stop()}},t,u)}));return function(t){return e.apply(this,arguments)}}()},h="XPROMO__PROMO_CLICKED",v="XPROMO__SCROLLSTART",m=function(){return{type:v}},y="XPROMO__SCROLLPAST",g=function(){return{type:y}},_="XPROMO__SCROLLUP",b=function(){return{type:_}},E="XPROMO__PERSIST_DEACTIVE",T=function(){return{type:E}},w="XPROMO__PERSIST_ACTIVE",S=function(){return function(){var e=r(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e({type:w}),e(f());case 2:case"end":return t.stop()}},t,u)}));return function(t){return e.apply(this,arguments)}}()},O="XPROMO__DISMISS_CLICKED",P=function(){return function(){var e=r(regeneratorRuntime.mark(function t(e,r){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e({type:O}),n.i(a.d)(r())&&e(S());case 2:case"end":return t.stop()}},t,u)}));return function(t,n){return e.apply(this,arguments)}}()},R="XPROMO__LISTING_CLICK_INITIAL_STATE",I=function(e){var t=e.ineligibilityReason,n=void 0===t?"":t,r=e.lastModalClick,o=void 0===r?0:r,i=e.modalDismissCount,a=void 0===i?0:i;return{type:R,payload:{ineligibilityReason:n,lastModalClick:o,modalDismissCount:a}}},A="XPROMO__MARK_MODAL_LISTING_CLICK_TIMESTAMP",C=function(){return function(){var e=r(regeneratorRuntime.mark(function t(e){var r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=new Date,e({type:A,clickTime:r.getTime()}),n.i(a.e)(r);case 3:case"end":return t.stop()}},t,u)}));return function(t){return e.apply(this,arguments)}}()},x="XPROMO__SET_LISTING_CLICK_TARGET",N=function(e){return{type:x,payload:{target:e}}},M="XPROMO__INCREMENT_MODAL_DISMISS_COUNT",k=function(){return function(){var e=r(regeneratorRuntime.mark(function t(e,r){var o,i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:o=r(),i=o.xpromo.listingClick.modalDismissCount||0,e({type:M,modalDismissCount:i+1}),n.i(a.f)(i+1);case 4:case"end":return t.stop()}},t,u)}));return function(t,n){return e.apply(this,arguments)}}()},D="XPROMO__LISTING_CLICK_MODAL_ACTIVATED",L=function(e){var t=e.postId,n=void 0===t?"":t,r=e.listingClickType,o=void 0===r?"":r;return{type:D,payload:{postId:n,listingClickType:o}}},j="XPROMO__LISTING_CLICK_RETURNER_MODAL_ACTIVATED",F="XPROMO__LISTING_CLICK_MODAL_HIDDEN",U="XPROMO__LISTING_CLICK_MODAL_CANCELLED",B=function(){return{type:F}},H="XPROMO__LOGIN_REQUIRED",q=function(){return{type:H}},V="XPROMO__ADD_BUCKET_EVENT",G=function(){var e=arguments.length>0&&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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w=g.h.VARIANT_NEXTCONTENT_BOTTOM,S="FETCHING_COMMENTS_PAGE",O=function(e,t){return{type:S,payload:{commentsPageId:e,commentsPageParams:t}}},P="RECEIVED_COMMENTS_PAGE",R=function(e,t){return{type:P,payload:T({pageId:e},t)}},I="RECEIVED_COMMENTS_PAGE_ADS",A=function(e){return{type:I,payload:e}},C="FAILED_COMMENTS_PAGE",x=function(e,t){return{type:C,payload:{commentsPageId:e,error:t}}},N="VISITED_COMMENTS_PAGE",M=function(e){return{type:N,postId:e}},k=function(e){return function(){var t=r(regeneratorRuntime.mark(function o(t,r){var i,a,s,c,f,d,h;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(i=r(),a=n.i(v.a)(e),s=i.commentsPages.api[a],!s){o.next=5;break}return o.abrupt("return");case 5:return t(O(a,e)),o.prev=6,c=n.i(l.a)(i),o.next=10,u.a.get(c,e);case 10:f=o.sent,d=e.id,h=i.posts[d],h&&h.promoted&&n.i(p.a)(h.events,p.b.CommentsView),t(R(a,f)),o.next=20;break;case 17:o.prev=17,o.t0=o["catch"](6),t(x(a,o.t0));case 20:case"end":return o.stop()}},o,E,[[6,17]])}));return function(e,n){return t.apply(this,arguments)}}()},D=function(){var e=r(regeneratorRuntime.mark(function t(e,r){var o,i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=n.i(l.a)(r()),t.next=3,_.a.get(o);case 3:i=t.sent,e(A(i));case 5:case"end":return t.stop()}},t,E)}));return function(t,n){return e.apply(this,arguments)}}(),L=function(){return function(){var e=r(regeneratorRuntime.mark(function t(e,i,u){var d=u.waitForState;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,d(f.a,r(regeneratorRuntime.mark(function u(){var t,r,d,p,v,g,_,T,S;return regeneratorRuntime.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(t=i(),r=h.a.withContext({state:t}),d=n.i(f.a)(t),!a()([w],function(e){return r.enabled(e)})){u.next=26;break}if(p=o({subredditName:d}),v=n.i(m.a)(p),g=t.postsLists[v],!g){u.next=9;break}return u.abrupt("return");case 9:return e(y.b(v,p)),_=n.i(l.a)(t),T=n.i(b.a)(t),u.prev=12,u.next=15,s.a.get(_,p,T);case 15:S=u.sent,e(y.c(v,S)),u.next=26;break;case 19:if(u.prev=19,u.t0=u["catch"](12),!(u.t0 instanceof c.a)){u.next=25;break}e(y.d(v,u.t0)),u.next=26;break;case 25:throw u.t0;case 26:case"end":return u.stop()}},u,E,[[12,19]])})));case 2:case"end":return t.stop()}},t,E)}));return function(t,n,r){return e.apply(this,arguments)}}()}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(32),o=n(128);e.exports=n(31)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(15),o=n(50),i=n(49),a=n(132)("src"),u="toString",s=Function[u],c=(""+s).split(u);n(78).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,u){var s="function"==typeof n;s&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(s&&(i(n,a)||o(n,a,e[t]?""+e[t]:c.join(String(t)))),e===r?e[t]=n:u?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,u,function(){return"function"==typeof this&&this[a]||s.call(this)})},function(e,t,n){var r=n(1),o=n(18),i=n(79),a=/"/g,u=function(e,t,n,r){var o=String(i(e)),u="<"+t;return""!==n&&(u+=" "+n+'="'+String(r).replace(a,"&quot;")+'"'),u+">"+o+"</"+t+">"};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);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){if(e.me)return{loid:e.me.loid,loidCreated:e.me.loidCreated};var t=O.a.get("loid"),n=O.a.get("loidcreated");return{loid:t,loidCreated:n}}function a(e){return n.i(C.a)(e)}function u(e,t){var n={interstitial_type:t,tags:[t]},r=e.platform.currentPage.url;return l(e,r,t,n)}function s(e,t,n){var r=e.posts[t];if(!r)throw new Error("XPromoListingClickLink called with invalid postId: "+t);var o=c(e,r,n);return l(e,o,x.s,{utm_content:x.t[x.c.NATIVE],tags:[x.t[x.c.NATIVE]]})}function c(e,t,n){switch(n){case x.u.AUTHOR:var r=t.author;return"/u/"+r;case x.u.SUBREDDIT:var o=t.subreddit;return"/r/"+o;default:if(t.promoted){var i=e.platform.currentPage.urlParams.subredditName;return i?"/r/"+i:"/"}return t.cleanPermalink}}function l(e,t,r){var o=arguments.length>3&&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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},L=x.e.USUAL,j=x.e.LOGIN,F=x.e.MINIMAL,U=x.e.PERSIST,B=x.f.BANNER_LAST_CLOSED,H=(x.f.CHAT_BADGE_HIDDEN,x.f.XPROMO_LAST_MODAL_CLICK),q=x.f.XPROMO_MODAL_DISMISS_COUNT,V=function(e){return x.w.reduce(function(t,n){var r=k(n,2),i=r[0],a=r[1];return D({},e[i]&&o({},a,e[i]),t)},e)},G=function(e){var t=n.i(C.f)(e),r=x.x,o=n.i(A.b)(e);return o&&(t=o,r=e.pwaInstalled?x.y:x.z),V(D({},r,{keyword:t}))},W=function(e,t){var r=t.tags,o=t.utm_content;if(o&&r){var i=r.slice(),a=n.i(N.a)(e),u=i.indexOf(o),s=u>=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&&r<e.indexOf("#")?"?":"#",i=e.split(o),a=/\\/g;i[0]=i[0].replace(a,"/"),e=i.join(o);var u=e;if(u=u.trim(),!n&&1===e.split("#").length){var d=p.exec(u);if(d)return this.path=u,this.href=u,this.pathname=d[1],d[2]?(this.search=d[2],t?this.query=O.parse(this.search.substr(1)):this.query=this.search.substr(1)):t&&(this.search="",this.query={}),this}var h=f.exec(u);if(h){h=h[0];var v=h.toLowerCase();this.protocol=v,u=u.substr(h.length)}if(n||h||u.match(/^\/\/[^@\/]+@[^@\/]+/)){var P="//"===u.substr(0,2);!P||h&&w[h]||(u=u.substr(2),this.slashes=!0)}if(!w[h]&&(P||h&&!S[h])){
for(var R=-1,I=0;I<g.length;I++){var A=u.indexOf(g[I]);A!==-1&&(R===-1||A<R)&&(R=A)}var C,x;x=R===-1?u.lastIndexOf("@"):u.lastIndexOf("@",R),x!==-1&&(C=u.slice(0,x),u=u.slice(x+1),this.auth=decodeURIComponent(C)),R=-1;for(var I=0;I<y.length;I++){var A=u.indexOf(y[I]);A!==-1&&(R===-1||A<R)&&(R=A)}R===-1&&(R=u.length),this.host=u.slice(0,R),u=u.slice(R),this.parseHost(),this.hostname=this.hostname||"";var N="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!N)for(var M=this.hostname.split(/\./),I=0,k=M.length;I<k;I++){var D=M[I];if(D&&!D.match(b)){for(var L="",j=0,F=D.length;j<F;j++)L+=D.charCodeAt(j)>127?"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;I<k;I++){var G=m[I];if(u.indexOf(G)!==-1){var W=encodeURIComponent(G);W===G&&(W=escape(G)),u=u.split(G).join(W)}}var K=u.indexOf("#");K!==-1&&(this.hash=u.substr(K),u=u.slice(0,K));var Y=u.indexOf("?");if(Y!==-1?(this.search=u.substr(Y),this.query=u.substr(Y+1),t&&(this.query=O.parse(this.query)),u=u.slice(0,Y)):t&&(this.search="",this.query={}),u&&(this.pathname=u),S[v]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var q=this.pathname||"",z=this.search||"";this.path=q+z}return this.href=this.format(),this},r.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,i="";this.host?o=e+this.host:this.hostname&&(o=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&l.isObject(this.query)&&Object.keys(this.query).length&&(i=O.stringify(this.query));var a=this.search||i&&"?"+i||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||S[t])&&o!==!1?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),a&&"?"!==a.charAt(0)&&(a="?"+a),n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}),a=a.replace("#","%23"),t+o+n+a+r},r.prototype.resolve=function(e){return this.resolveObject(o(e,!1,!0)).format()},r.prototype.resolveObject=function(e){if(l.isString(e)){var t=new r;t.parse(e,!1,!0),e=t}for(var n=new r,o=Object.keys(this),i=0;i<o.length;i++){var a=o[i];n[a]=this[a]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var u=Object.keys(e),s=0;s<u.length;s++){var c=u[s];"protocol"!==c&&(n[c]=e[c])}return S[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!S[e.protocol]){for(var f=Object.keys(e),d=0;d<f.length;d++){var p=f[d];n[p]=e[p]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||w[e.protocol])n.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),n.pathname=h.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var v=n.pathname||"",m=n.search||"";n.path=v+m}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var y=n.pathname&&"/"===n.pathname.charAt(0),g=e.host||e.pathname&&"/"===e.pathname.charAt(0),_=g||y||n.host&&e.pathname,b=_,E=n.pathname&&n.pathname.split("/")||[],h=e.pathname&&e.pathname.split("/")||[],T=n.protocol&&!S[n.protocol];if(T&&(n.hostname="",n.port=null,n.host&&(""===E[0]?E[0]=n.host:E.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),_=_&&(""===h[0]||""===E[0])),g)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,E=h;else if(h.length)E||(E=[]),E.pop(),E=E.concat(h),n.search=e.search,n.query=e.query;else if(!l.isNullOrUndefined(e.search)){if(T){n.hostname=n.host=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.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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=function m(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:m(o,t,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},v=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),p(t,[{key:"makeUUID",value:function(e){return n.i(s.a)(e.name)?e.name:n.i(s.a)(e.id)?e.id:h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"makeUUID",this).call(this,e)}},{key:"getType",value:function(e,r){return h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getType",this).call(this,e,r)||u.l[e.kind]||n.i(u.m)(r)||"Unknown"}}]),t}(a.a);v.Types=d({},a.a.Types,{html:function(e){return a.a.Types.string(e)},link:function(e){return n.i(c.a)(a.a.Types.string(e))}}),v.MockTypes=d({},a.a.MockTypes,{html:l.a,link:f.a}),t.a=v},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(44);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){"use strict";var r=n(18);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){function r(e){if("string"==typeof e||o(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}var o=n(207),i=1/0;e.exports=r},function(e,t,n){function r(e){for(var t=-1,n=u(e),r=o(e),s=r.length,l=i(e),f=!!l,d=l||[],p=d.length;++t<s;){var h=r[t];f&&("length"==h||a(h,p))||"constructor"==h&&(n||!c.call(e,h))||d.push(h)}return d}var o=n(1081),i=n(556),a=n(167),u=n(203),s=Object.prototype,c=s.hasOwnProperty;e.exports=r},function(e,t,n){"use strict";var r=null;e.exports={debugTool: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(272),a=n(102),u=n(624),s=n(405),c=n(25),l=n(65);n.d(t,"n",function(){return p}),n.d(t,"a",function(){return h}),n.d(t,"o",function(){return v}),n.d(t,"k",function(){return y}),n.d(t,"p",function(){return _}),n.d(t,"b",function(){return E}),n.d(t,"g",function(){return T}),n.d(t,"e",function(){return w}),n.d(t,"i",function(){return S}),n.d(t,"j",function(){return P}),n.d(t,"d",function(){return I}),n.d(t,"c",function(){return A}),n.d(t,"l",function(){return C}),n.d(t,"h",function(){return x}),n.d(t,"m",function(){return N}),n.d(t,"f",function(){return L});var f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=this,p="COMMENT__TOGGLE_EDIT_FORM",h=function(e){return{type:p,thingId:e}},v="COMMENT__UPDATING_BODY",m=function(e){return{type:v,thingId:e}},y="COMMENT__UPDATED_BODY",g=function(e){return{type:y,model:e}},_="COMMENT__FAILED_UPDATE_BODY",b=function(e,t){return{type:_,thingId:e,error:t,message:"Sorry, something went wrong with updating your comment"}},E=function(e,t){return function(){var i=r(regeneratorRuntime.mark(function a(r,i){var s,f;return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return r(m(e)),s=n.i(o.a)(i()),a.prev=2,a.next=5,u.a.post(s,{thingId:e,text:t});case 5:f=a.sent,r(g(f)),a.next=16;break;case 9:if(a.prev=9,a.t0=a["catch"](2),!(a.t0 instanceof l.a||a.t0 instanceof c.a)){a.next=15;break}r(b(e,a.t0)),a.next=16;break;case 15:throw a.t0;case 16:case"end":return a.stop()}},a,d,[[2,9]])}));return function(e,t){return i.apply(this,arguments)}}()},T="COMMENT__TOGGLE_COLLAPSE",w=function(e){return{type:T,payload:{id:e}}},S="COMMENT__SAVED",O=function(e){return{type:S,comment:e}},P="COMMENT__DELETED",R=function(e){return{type:P,comment:e}},I=function(e){return function(){var t=r(regeneratorRuntime.mark(function i(t,r){var u,c,l,p;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return u=r(),c=u.comments.data[e],l=c.saved?"del":"post",i.next=5,s.a[l](n.i(o.a)(u),{id:e});case 5:p=a.a.fromJSON(f({},c.toJSON(),{saved:!c.saved})),t(O(p));case 7:case"end":return i.stop()}},i,d)}));return function(e,n){return t.apply(this,arguments)}}()},A=function(e){return function(){var t=r(regeneratorRuntime.mark(function u(t,r){var s,c,l,p;return regeneratorRuntime.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return s=r(),c=s.comments.data[e],l=n.i(o.a)(s),u.next=5,i.a.del(l,e);case 5:p=a.a.fromJSON(f({},c.toJSON(),{author:"[deleted]",bodyHTML:"[deleted]"})),t(R(p));case 7:case"end":return u.stop()}},u,d)}));return function(e,n){return t.apply(this,arguments)}}()},C="COMMENTS__MORE_FETCHING",x="COMMENTS__MORE_RECEIVED",N="COMMENTS__MORE_FAILURE",M=function(e){return{payload:{loadMoreId:e},type:C}},k=function(e,t,n){return{payload:f({pageId:t,loadMoreId:n},e),type:x}},D=function(e,t){return{payload:{error:t,loadMoreId:e},type:N}},L=function(e,t,a){return function(){var u=r(regeneratorRuntime.mark(function s(r,u){var l,f,p;return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return l=u().comments.loadMore[e],f=l.children,r(M(l.uuid)),s.prev=3,s.next=6,i.a.get(n.i(o.a)(u()),{linkId:a,commentIds:f,sort:"confidence"});case 6:p=s.sent,r(k(p,t,e)),s.next=17;break;case 10:if(s.prev=10,s.t0=s["catch"](3),!(s.t0 instanceof c.a)){s.next=16;break}r(D(e,s.t0)),s.next=17;break;case 16:throw s.t0;case 17:case"end":return s.stop()}},s,d,[[3,10]])}));return function(e,t){return u.apply(this,arguments)}}()}},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(696),i=n.n(o),a=n(490),u=n.n(a),s=n(327),c=n.n(s),l=n(63),f=n.n(l),d=n(5),p=n(1592),h=n(187),v=n(678),m=n(1606),y=n(56),g=n(290),_=n(26),b=n(288);n.d(t,"b",function(){return pe});var E,T=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")}}(),w=d.h.BETA,S=d.h.XPROMOBANNER,O=d.h.USE_BRANCH,P=d.h.BOTTOM_COMMENT_BANNER,R=d.h.MID_COMMENT_BANNER,I=d.h.VARIANT_NEXTCONTENT_BOTTOM,A=d.h.VARIANT_RECOMMENDED_BOTTOM,C=d.h.VARIANT_RECOMMENDED_TOP,x=d.h.VARIANT_RECOMMENDED_TOP_PLAIN,N=d.h.VARIANT_RECOMMENDED_BY_POST,M=d.h.VARIANT_RECOMMENDED_BY_POST_TOP_ALL,k=d.h.VARIANT_RECOMMENDED_BY_POST_TOP_DAY,D=d.h.VARIANT_RECOMMENDED_BY_POST_TOP_MONTH,L=d.h.VARIANT_RECOMMENDED_BY_POST_HOT,j=d.h.VARIANT_RECOMMENDED_SIMILAR_POSTS,F=d.h.VARIANT_SUBREDDIT_HEADER,U=d.h.VARIANT_TITLE_EXPANDO,B=d.h.VARIANT_MIXED_VIEW,H=d.h.SHOW_AMP_LINK,q=d.h.RULES_MODAL_ON_SUBMIT_CLICK_ANYWHERE,V=d.h.RULES_MODAL_ON_SUBMIT_CLICK_BUTTON,G=d.h.RULES_MODAL_ON_COMMENT_CLICK_ANYWHERE,W=d.h.RULES_MODAL_ON_COMMENT_CLICK_BUTTON,K=d.h.VARIANT_DEFAULT_SRS_TUTORIAL,Y=d.h.VARIANT_DEFAULT_SRS_POPULAR,z=d.h.VARIANT_XPROMO_LOGIN_REQUIRED_IOS,X=d.h.VARIANT_XPROMO_LOGIN_REQUIRED_ANDROID,$=d.h.VARIANT_XPROMO_LOGIN_REQUIRED_IOS_CONTROL,Q=d.h.VARIANT_XPROMO_LOGIN_REQUIRED_ANDROID_CONTROL,J=d.h.VARIANT_XPROMO_INTERSTITIAL_COMMENTS_IOS,Z=d.h.VARIANT_XPROMO_INTERSTITIAL_COMMENTS_ANDROID,ee=d.h.XPROMO_MODAL_LISTING_CLICK_DAILY_DISMISSIBLE_IOS,te=d.h.XPROMO_MODAL_LISTING_CLICK_DAILY_DISMISSIBLE_ANDROID,ne=d.h.VARIANT_XPROMO_INTERSTITIAL_FREQUENCY_IOS,re=d.h.VARIANT_XPROMO_INTERSTITIAL_FREQUENCY_ANDROID,oe=d.h.VARIANT_XPROMO_INTERSTITIAL_FREQUENCY_IOS_CONTROL,ie=d.h.VARIANT_XPROMO_INTERSTITIAL_FREQUENCY_ANDROID_CONTROL,ae=d.h.VARIANT_XPROMO_PERSISTENT_IOS,ue=d.h.VARIANT_XPROMO_PERSISTENT_ANDROID,se=d.h.MCDONALDS_CAMPAIGN,ce=d.h.PWA_ADD_TO_HOME,le=(E={},r(E,w,!0),r(E,S,{and:[{notOptedOut:d.p},{allowedPages:["index","listing","comments"]},{allowNSFW:!1},{allowedDevices:[g.a,g.b]},{not:{subreddits:p.a}}]}),r(E,O,!0),r(E,P,{url:"mweb_comments_banner",and:[{variant:"mweb_comments_banner:banner"},{loggedin:!1}]}),r(E,R,{url:"mweb_comments_banner",and:[{variant:"mweb_comments_banner:banner"},{loggedin:!1}]}),r(E,I,{url:"experimentnextcontentbottom",and:[{variant:"nextcontent_mweb:bottom"},{loggedin:!1}]}),r(E,A,{url:"experimentrecommendedbottom",and:[{variant:"recommended_srs:bottom"},{loggedin:!1},{seoReferrer:!0}]}),r(E,C,{url:"experimentrecommendedtop",and:[{variant:"recommended_srs:top"},{loggedin:!1},{seoReferrer:!0}]}),r(E,x,{url:"experimentrecommendedtopplain",and:[{variant:"recommended_srs:plain_list_top"},{loggedin:!1},{seoReferrer:!0}]}),r(E,N,{url:"experimentrecommendedposttosubreddits",and:[{loggedin:!1},{variant:"subreddits_by_post:sr_by_post"}]}),r(E,M,{url:"experimentrecommendedposttosubredditstopoststopall",and:[{loggedin:!1},{variant:"subreddits_by_post:posts_by_sr_by_post_top_all"}]}),r(E,k,{url:"experimentrecommendedposttosubredditstopoststopday",and:[{loggedin:!1},{variant:"subreddits_by_post:posts_by_sr_by_post_top_day"}]}),r(E,D,{url:"experimentrecommendedposttosubredditstopoststopmonth",and:[{loggedin:!1},{variant:"subreddits_by_post:posts_by_sr_by_post_top_month"}]}),r(E,L,{url:"experimentrecommendedposttosubredditstopostshot",and:[{loggedin:!1},{variant:"subreddits_by_post:posts_by_sr_by_post_hot"}]}),r(E,j,{url:"experimentrecommendedsimilarposts",and:[{loggedin:!1},{variant:"subreddits_by_post:similar_posts"}]}),r(E,F,{url:"experimentsubredditheader",and:[{variant:"recommended_srs:sr_name_top"},{loggedin:!1},{seoReferrer:!0}]}),r(E,z,{and:[{loggedin:!1},{allowedDevices:[g.a]},{allowedPages:["index","listing"]},{or:[{url:"xpromologinrequired"},{variant:"mweb_xpromo_require_login_ios:login_required"}]}]}),r(E,$,{and:[{loggedin:!1},{allowedDevices:[g.a]},{allowedPages:["index","listing"]},{or:[{variant:"mweb_xpromo_require_login_ios:control_1"},{variant:"mweb_xpromo_require_login_ios:control_2"}]}]}),r(E,X,{and:[{loggedin:!1},{allowedDevices:[g.b]},{allowedPages:["index","listing"]},{or:[{url:"xpromologinrequired"},{variant:"mweb_xpromo_require_login_android:login_required"}]}]}),r(E,Q,{and:[{loggedin:!1},{allowedDevices:[g.b]},{allowedPages:["index","listing"]},{or:[{variant:"mweb_xpromo_require_login_android:control_1"},{variant:"mweb_xpromo_require_login_android:control_2"}]}]}),r(E,ne,{and:[{allowedDevices:[g.a]},{or:[{variant:"mweb_xpromo_interstitial_frequency_ios:every_day"},{variant:"mweb_xpromo_interstitial_frequency_ios:every_three_days"},{variant:"mweb_xpromo_interstitial_frequency_ios:every_week"},{variant:"mweb_xpromo_interstitial_frequency_ios:every_two_weeks"}]}]}),r(E,re,{and:[{allowedDevices:[g.b]},{or:[{variant:"mweb_xpromo_interstitial_frequency_android:every_day"},{variant:"mweb_xpromo_interstitial_frequency_android:every_three_days"},{variant:"mweb_xpromo_interstitial_frequency_android:every_week"},{variant:"mweb_xpromo_interstitial_frequency_android:every_two_weeks"}]}]}),r(E,oe,{and:[{allowedDevices:[g.a]},{or:[{variant:"mweb_xpromo_interstitial_frequency_ios:control_1"},{variant:"mweb_xpromo_interstitial_frequency_ios:control_2"}]}]}),r(E,ie,{and:[{allowedDevices:[g.b]},{or:[{variant:"mweb_xpromo_interstitial_frequency_android:control_1"},{variant:"mweb_xpromo_interstitial_frequency_android:control_2"}]}]}),r(E,ae,{and:[{allowedDevices:[g.a]},{allowedPages:["index","listing","comments"]},{not:{or:[{peak:"mweb_xpromo_modal_listing_click_daily_dismissible_ios"},{peak:"mweb_xpromo_require_login_ios"}]}},{or:[{url:"xpromopersistent"},{variant:"mweb_xpromo_persistent_ios:treatment"}]}]}),r(E,ue,{and:[{allowedDevices:[g.b]},{allowedPages:["index","listing","comments"]},{not:{or:[{peak:"mweb_xpromo_modal_listing_click_daily_dismissible_android"},{peak:"mweb_xpromo_require_login_android"}]}},{or:[{url:"xpromopersistent"},{variant:"mweb_xpromo_persistent_android:treatment"}]}]}),r(E,J,{and:[{allowedDevices:[g.a]},{allowNSFW:!1},{allowedPages:["comments"]},{or:[{url:"xpromointerstitialcomments"},{enabled:"mweb_xpromo_interstitial_comments_ios"}]}]}),r(E,Z,{and:[{allowedDevices:[g.b]},{allowNSFW:!1},{allowedPages:["comments"]},{or:[{url:"xpromointerstitialcomments"},{enabled:"mweb_xpromo_interstitial_comments_android"}]}]}),r(E,ee,{and:[{notOptedOut:d.p},{allowedDevices:[g.a]},{allowNSFW:!1},{allowedPages:["index","listing"]},{enabled:"mweb_xpromo_modal_listing_click_daily_dismissible_ios"}]}),r(E,te,{and:[{notOptedOut:d.p},{allowedDevices:[g.b]},{allowNSFW:!1},{allowedPages:["index","listing"]},{enabled:"mweb_xpromo_modal_listing_click_daily_dismissible_android"}]}),r(E,U,{and:[{compact:!0},{or:[{url:"titleexpando"},{variant:"mweb_post_title_expando:active"}]}]}),r(E,B,{and:[{compact:!1},{or:[{variant:"mweb_mixed_view:active"},{url:"mixedview"}]}]}),r(E,H,!0),r(E,K,{url:"experimentdefaultsrstutorial",and:[{loggedin:!0},{variant:"default_srs_holdout:tutorial"}]}),r(E,Y,{url:"experimentdefaultsrspopular",and:[{loggedin:!0},{variant:"default_srs_holdout:popular"}]}),r(E,q,{and:[{allowedPages:["submit"]},{subreddits:p.b},{loggedin:!0},{isMod:!1},{or:[{url:"rulesmodalonsubmitclickanywhere"},{variant:"mweb_rules_modal_on_submit:click_anywhere"}]}]}),r(E,V,{and:[{allowedPages:["submit"]},{loggedin:!0},{isMod:!1},{subreddits:p.b},{or:[{url:"rulesmodalonsubmitclickbutton"},{variant:"mweb_rules_modal_on_submit:click_button"}]}]}),r(E,G,{and:[{allowedPages:["comments"]},{loggedin:!0},{isMod:!1},{subreddits:p.b},{or:[{url:"rulesmodaloncommentclickanywhere"},{variant:"mweb_rules_modal_on_comment:click_anywhere"}]}]}),r(E,W,{and:[{allowedPages:["comments"]},{loggedin:!0},{isMod:!1},{subreddits:p.b},{or:[{url:"rulesmodaloncommentclickbutton"},{variant:"mweb_rules_modal_on_comment:click_button"}]}]}),r(E,se,{url:"mcdonalds_campaign",and:[{country:"US"},{timeframe:[15438132e5,15438996e5]}]}),r(E,ce,{url:"pwa_add_to_home"}),E),fe=new i.a(le),de=["google.com","bing.com"];fe.addRule("loggedin",function(e){return(!!this.state.user&&!this.state.user.loggedOut&&this.state.user.user_name)===e}),fe.addRule("users",function(e){var t=n.i(b.c)(this);return e.includes(t.name)}),fe.addRule("employee",function(e){var t=n.i(b.c)(this.state);return t&&t.isEmployee===e}),fe.addRule("admin",function(e){return n.i(b.c)(this).is_admin===e}),fe.addRule("beta",function(e){return n.i(b.c)(this).is_beta===e}),fe.addRule("url",function(e){var t=i.a.parseConfig(this.state.platform.currentPage.queryParams);return Object.keys(t).includes(e)}),fe.addRule("compact",function(e){return this.state.compact===e}),fe.addRule("subreddit",function(e){var t=n.i(h.a)(this.state);return!!t&&t.toLowerCase()===e.toLowerCase()}),fe.addRule("subreddits",function(e){var t=n.i(h.a)(this.state);return!!t&&e.map(function(e){return e.toLowerCase()}).includes(t.toLowerCase())}),fe.addRule("isMod",function(e){var t=!1,r=n.i(h.a)(this.state),o=this.state.moderatingSubreddits;if(r&&o&&o.names){var i=o.names.map(function(e){return e.toLowerCase()});t=i.includes(r.toLowerCase())}return t===e}),fe.addRule("peak",function(e){var t=n.i(b.a)(this.state,e);if(!t)return!1;var r=t.variant,o=r&&"control_1"!==r&&"control_2"!==r;return o}),fe.addRule("variant",function(e){var t=e.split(":"),r=T(t,2),o=r[0],i=r[1],a=n.i(b.a)(this.state,o);if(a){var u=a.variant,s=this.state.xpromo.serverSide.firstBuckets,c=s.indexOf(o)<0;return"CLIENT"===this.state.meta.env&&c&&n.i(_.c)(this.state,a),u===i}return!1}),fe.addRule("enabled",function(e){return n.i(b.d)(this.state,e)}),fe.addRule("seoReferrer",function(e){var t=this.state.platform.currentPage.referrer;if(!t||!t.startsWith("http"))return!e;var n=f.a.parse(t).hostname,r=de.some(function(e){return n.indexOf(e)!==-1});return r===e}),fe.addRule("directVisit",function(e){var t=this.state.platform.currentPage.referrer,n=!t&&this.state.platform.history.length<=2;return n===e}),fe.addRule("allowedPages",function(e){var t=n.i(v.a)(this.state),r=t&&t.name;return e.includes(r)}),fe.addRule("minLoidAge",function(e){var t=this.state.accounts.me&&this.state.accounts.me.loidCreated;if(!t)return!1;var n=new Date-new Date(t);return!(n<e)}),fe.addRule("allowedDevices",function(e){var t=n.i(g.c)(this.state);return!!t&&e.includes(t)}),fe.addRule("notOptedOut",function(e){var t=this;return!!this.state.optOuts&&("string"==typeof e?!this.state.optOuts[e]:!e.find(function(){var e=arguments.length>0&&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&&he<n}),fe.addRule("loidPercent",function(e){if(0===e)return!1;var t=this.state.loid.loid;if(!t)return!1;var n=parseInt(c()(t).toString(),16)%1e3;return n<10*e})},function(e,t,n){"use strict";var r=n(178),o=n(1376);n.d(t,"a",function(){return i});var i=function(e){return Promise.all([e(o.a()),e(r.b())])}},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}n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return u});var o,i={BEST:"best",CONFIDENCE:"confidence",HOT:"hot",NEW:"new",RISING:"rising",TOP:"top",CONTROVERSIAL:"controversial",OLD:"old",QA:"qa",GILDED:"gilded",RELEVANCE:"relevance",COMMENTS:"comments",ALL_TIME:"all",PAST_YEAR:"year",PAST_MONTH:"month",PAST_WEEK:"week",PAST_DAY:"day",PAST_HOUR:"hour"},a=[i.BEST,i.HOT,i.TOP,i.NEW,i.CONTROVERSIAL],u=(o={},r(o,i.BEST,{text:"Best",icon:"best"}),r(o,i.CONFIDENCE,{text:"Best",icon:"best"}),r(o,i.HOT,{text:"Hot",icon:"hot"}),r(o,i.NEW,{text:"New",icon:"new"}),r(o,i.RISING,{text:"Rising",icon:"hot"}),r(o,i.TOP,{text:"Top",icon:"bar-chart"}),r(o,i.CONTROVERSIAL,{text:"Controversial",icon:"controversial"}),r(o,i.OLD,{text:"Old",icon:"text"}),r(o,i.QA,{text:"Q&A",icon:"op"}),r(o,i.GILDED,{text:"Gilded",icon:"gold"}),r(o,i.RELEVANCE,{text:"Relevance",icon:"bar-chart"}),r(o,i.COMMENTS,{text:"Comments",icon:"comments"}),r(o,i.ALL_TIME,{text:"All Time",icon:"circle"}),r(o,i.PAST_YEAR,{text:"Past Year",icon:"circle"}),r(o,i.PAST_MONTH,{text:"Past Month",icon:"circle"}),r(o,i.PAST_WEEK,{text:"Past Week",icon:"circle"}),r(o,i.PAST_DAY,{text:"Past Day",icon:"circle"}),r(o,i.PAST_HOUR,{text:"Past Hour",icon:"circle"}),o)},function(e,t,n){var r=n(68),o=n(193),i=n(37),a=n(33),u=n(301);e.exports=function(e,t){var n=1==e,s=2==e,c=3==e,l=4==e,f=6==e,d=5==e||f,p=t||u;return function(t,u,h){for(var v,m,y=i(t),g=o(y),_=r(u,h,3),b=a(g.length),E=0,T=n?p(t,b):s?p(t,0):void 0;b>E;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;n<t;n++){var r=y[n],o=r._pendingCallbacks;r._pendingCallbacks=null;var i;if(h.logTopLevelRenders){var u=r;r._currentElement.type.isReactTopLevelWrapper&&(u=r._renderedComponent),i="React update: "+u.getName(),console.time(i)}if(v.performUpdateIfNecessary(r,e.reconcileTransaction,g),i&&console.timeEnd(i),o)for(var s=0;s<o.length;s++)e.callbackQueue.enqueue(o[s],r.getPublicInstance())}}function s(e){return r(),E.isBatchingUpdates?(y.push(e),void(null==e._updateBatchNumber&&(e._updateBatchNumber=g+1))):void E.batchedUpdates(s,e)}function c(e,t){E.isBatchingUpdates?void 0:l("125"),_.enqueue(e,t),b=!0}var l=n(23),f=n(29),d=n(585),p=n(140),h=n(590),v=n(173),m=n(268),y=(n(11),[]),g=0,_=d.getPooled(),b=!1,E=null,T={initialize:function(){this.dirtyComponentsLength=y.length},close:function(){this.dirtyComponentsLength!==y.length?(y.splice(0,this.dirtyComponentsLength),O()):y.length=0}},w={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},S=[T,w];f(o.prototype,m,{getTransactionWrappers:function(){return S},destructor:function(){this.dirtyComponentsLength=null,d.release(this.callbackQueue),this.callbackQueue=null,R.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(e,t,n){return m.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,e,t,n)}}),p.addPoolingTo(o);var O=function(){for(;y.length||b;){if(y.length){var e=o.getPooled();e.perform(u,null,e),o.release(e)}if(b){b=!1;var t=_;_=d.getPooled(),t.notifyAll(),d.release(t)}}},P={injectReconcileTransaction:function(e){e?void 0:l("126"),R.ReactReconcileTransaction=e},injectBatchingStrategy:function(e){e?void 0:l("127"),"function"!=typeof e.batchedUpdates?l("128"):void 0,"boolean"!=typeof e.isBatchingUpdates?l("129"):void 0,E=e}},R={ReactReconcileTransaction:null,batchedUpdates:i,enqueueUpdate:s,flushBatchedUpdates:O,injection:P,asap:c};e.exports=R},function(e,t,n){"use strict";var r=n(142),o=n.n(r),i=n(17),a=n(1333),u=n(403),s=n(406),c=n(25),l=n(65);n.d(t,"a",function(){return h}),n.d(t,"d",function(){return E}),n.d(t,"c",function(){return T}),n.d(t,"e",function(){return w}),n.d(t,"b",function(){return S});var f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d={emit:function(){},on:function(){},off:function(){}},p={userAgent:"snoodev3",origin:i.a.nonAuthAPIOrigin,appName:"node-api-client-v3",env:"develop",token:"",timeout:5e3,eventEmitter:d},h=function(){var e=arguments.length>0&&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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s="FETCHING_ACCOUNT",c=function(e){return u({type:s},e)},l="RECEIVED_ACCOUNT",f=function(e,t){return u({type:l},e,{apiResponse:t})},d="FAILED_ACCOUNT",p=function(e,t){return{type:d,options:e,error:t}},h=function(e){return function(){var t=r(regeneratorRuntime.mark(function u(t,r){var s,l,d,h,v,m;return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(s=e.name,l=e.loggedOut,d=r(),h=d.accountRequests[s],!h){a.next=5;break}return a.abrupt("return");case 5:return t(c(e)),v={user:s,loggedOut:l},a.prev=7,a.next=10,i.a.get(n.i(o.a)(d),v);case 10:m=a.sent,t(f(e,m)),a.next=17;break;case 14:a.prev=14,a.t0=a["catch"](7),t(p(e,a.t0));case 17:case"end":return a.stop()}},u,a,[[7,14]])}));return function(e,n){return t.apply(this,arguments)}}()}},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){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(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 a=n(10),u=n(7),s=n(1340),c=n(25),l=n(65),f=n(22);n.d(t,"d",function(){return p}),n.d(t,"c",function(){return v}),n.d(t,"e",function(){return y}),n.d(t,"f",function(){return _}),n.d(t,"g",function(){return E}),n.d(t,"b",function(){return w}),n.d(t,"a",function(){return S});var d=this,p="MAIL__FETCHING",h=function(e){return{type:p,mailType:e}},v="MAIL__RECEIVED",m=function(e,t){return{type:v,mailType:e,apiResponse:t}},y="MAIL__FAILED",g=function(e,t){return{type:y,mailType:e,error:t}},_="MAIL__ADD_REPLY",b=function(e){return{type:_,data:e}},E="MAIL__FAILED_MESSAGE",T=function(e){return{type:E,error:e,message:"There was an error sending your message."}},w=function(e){return function(){var t=i(regeneratorRuntime.mark(function c(t,i){var p,h,v,m,y,g,_,E;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=n.i(f.a)(i()),h=void 0,c.prev=2,c.next=5,s.a.post(p,e);case 5:h=c.sent,c.next=16;break;case 8:if(c.prev=8,c.t0=c["catch"](2),!(c.t0 instanceof l.a)){c.next=14;break}t(T(c.t0)),c.next=15;break;case 14:throw c.t0;case 15:return c.abrupt("return");case 16:h&&h.firstMessageName?(m=i(),y=m.messages,g=y[h.firstMessageName],_=g.set("replies",[].concat(o(g.replies),[h.name])),E={messages:(v={},r(v,h.name,h),r(v,h.firstMessageName,_),v)},t(b(E))):t(u.e(a.a.GET,"/message/messages"));case 17:case"end":return c.stop()}},c,d,[[2,8]])}));return function(e,n){return t.apply(this,arguments)}}()},S=function(e,t,r){return function(){var o=i(regeneratorRuntime.mark(function a(o,i){var u,l,p;return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return u=n.i(f.a)(i()),o(h(e)),l={type:e},r&&(l.thread=r),l.query=t,a.prev=5,a.next=8,s.a.get(u,l);case 8:p=a.sent,o(m(e,p)),a.next=19;break;case 12:if(a.prev=12,a.t0=a["catch"](5),!(a.t0 instanceof c.a)){a.next=18;break}o(g(e,a.t0)),a.next=19;break;case 18:throw a.t0;case 19:case"end":return a.stop()}},a,d,[[5,12]])}));return function(e,t){return o.apply(this,arguments)}}()}},function(e,t,n){"use strict";var r=n(4);n.n(r);n.d(t,"a",function(){return o}),n.d(t,"b",function(){return i});var o=n.i(r.createSelector)(function(e){var t=e.user;if(!t.loggedOut){var n=t.name;if(n)return e.accounts[n]}},function(e){return e}),i=(n.i(r.createSelector)(function(e){var t=e.user;if(t.loggedOut)return e.accounts.me},function(e){return e}),function(e){return!!e.user&&!e.user.loggedOut})},function(e,t,n){"use strict";function r(e,t){return!e&&t!==i.d.SEARCH}var o=n(4),i=(n.n(o),n(5));n.d(t,"a",function(){return a}),n.d(t,"c",function(){return u}),n.d(t,"g",function(){return l}),n.d(t,"h",function(){return p}),n.d(t,"i",function(){return h}),t.b=r,n.d(t,"d",function(){return v}),n.d(t,"f",function(){return m}),n.d(t,"e",function(){return y});var a=function(e){var t=e.platform.currentPage&&e.platform.currentPage.url||"";return/\/r\/\w+\/comments/.test(t)?i.c.POST:i.c.LISTING},u=n.i(o.createSelector)(function(e){return e.platform.currentPage.urlParams},function(e){var t=e.subredditName,n=e.pageName;return"all"===t||"popular"===t||r(t,n)}),s=/^\/r\/\w+\/((w)|(wiki))/,c=/^((help)|(w)|(wiki))/,l=n.i(o.createSelector)(function(e){return e.platform.currentPage&&e.platform.currentPage.url},function(e){return s.test(e)||c.test(e)}),f=function(e){var t=/\/r\/(\w+)/,n=e.platform.currentPage,r=n&&n.url,o=r&&t.exec(r),i=o&&o[1],a=i&&e.subreddits[i];return a},d=function(e){var t=/\/r\/\w+\/comments\/(\w+)/,n=e.platform.currentPage,r=n&&n.url,o=r&&t.exec(r),i=o&&o[1],a=i&&e.posts[i];return a},p=function(e){var t=f(e);if(t&&t.over18)return!0;var n=d(e);return!(!n||!n.over18)},h=function(e){return e.platform&&e.platform.currentPage&&e.platform.currentPage.queryParams&&e.platform.currentPage.queryParams.verified},v=function(e){var t=e.platform,n=t.currentPageIndex,r=t.history,o=n-1;return o<0?null:r[o]},m=function(e){var t=v(e);if(!t)return null;var n=t.urlParams;return n.subredditName||null},y=function(e){if(!e)return!1;var t=/^(\/user\/|\/u\/)([\w_\-]+)\/?$/;return t.test(e)}},function(e,t,n){(function(e){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)&&"object"===a(e)?e.exports=s(n(0),n(3),n(4)):(o=[n(0),n(3),n(4)],r=s,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i)))}(this,function(e,t,r){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([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(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":a(t))&&"function"!=typeof t?e:t}function u(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.ModalTarget=t.Modal=t._ModalTarget=t._Modal=t.toggleModal=t.TOGGLE_MODAL=void 0;var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(1),l=r(c),f=n(2),d=n(3),p=l["default"].PropTypes,h={position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:1e3,backgroundColor:"rgba(0,0,0,0.4)"},v=t.TOGGLE_MODAL="r/widgets__TOGGLE_MODAL",m=t.toggleModal=function(e){return{type:v,payload:{id:e}}},y=t._Modal=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.className,n=e.show,r=e.children,o=e.onToggleModal;return n?l["default"].createElement("div",{style:h,onClick:function(){return o(null)}},l["default"].createElement("div",{className:t,onClick:function(e){return e.stopPropagation()}},r)):null}}]),t}(l["default"].Component);y.propTypes={className:p.string,show:p.bool,onToggleModal:p.func},y.defaultProps={className:"",show:!1,onToggleModal:function(){}};var g=t._ModalTarget=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return u(t,e),s(t,[{key:"makeHandler",value:function(){var e=this.props.onToggleModal;return{onClick:function(){return e()}}}},{key:"render",value:function(){var e=this.props.children;return"string"==typeof e?l["default"].createElement("span",this.makeHandler(),e):l["default"].cloneElement(l["default"].Children.only(e),this.makeHandler())}}]),t}(l["default"].Component);g.propTypes={children:p.oneOfType([p.string,p.element]).isRequired,onToggleModal:p.func},g.defaultProps={onToggleModal:function(){}};var _=(0,d.createSelector)(function(e,t){return e.widgets.modal.id===t.id},function(e){return{show:e}}),b=function(e){return{onToggleModal:function(t){return e(m(t))}}},E=function(e,t){var n=t.id;return{onToggleModal:function(){return e(m(n))}}},T=t.Modal=(0,f.connect)(_,b)(y),w=t.ModalTarget=(0,f.connect)(null,E)(g);T.propTypes={id:p.string.isRequired},w.propTypes={id:p.string.isRequired}},function(e,t){e.exports=n(0)},function(e,t){e.exports=n(3)},function(e,t){e.exports=n(4)}])})}).call(t,n(64)(e))},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=n(485),i=n(1),a=n(233)("metadata"),u=a.store||(a.store=new(n(488))),s=function(e,t,n){var r=u.get(e);if(!r){if(!n)return;u.set(e,r=new o)}var i=r.get(t);if(!i){if(!n)return;r.set(t,i=new o)}return i},c=function(e,t,n){var r=s(t,n,!1);return void 0!==r&&r.has(e)},l=function(e,t,n){var r=s(t,n,!1);return void 0===r?void 0:r.get(e)},f=function(e,t,n,r){s(n,r,!0).set(e,t)},d=function(e,t){var n=s(e,t,!1),r=[];return n&&n.forEach(function(e,t){r.push(t)}),r},p=function(e){return void 0===e||"symbol"==("undefined"==typeof e?"undefined":r(e))?e:String(e)},h=function(e){i(i.S,"Reflect",e)};e.exports={store:u,map:s,has:c,get:l,set:f,keys:d,key:p,exp:h}},function(e,t,n){"use strict";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};if(n(31)){var o=n(124),i=n(15),a=n(18),u=n(1),s=n(235),c=n(322),l=n(68),f=n(122),d=n(128),p=n(50),h=n(129),v=n(81),m=n(33),y=n(483),g=n(131),_=n(82),b=n(49),E=n(192),T=n(21),w=n(37),S=n(308),O=n(125),P=n(60),R=n(126).f,I=n(325),A=n(132),C=n(28),x=n(77),N=n(222),M=n(234),k=n(326),D=n(152),L=n(228),j=n(130),F=n(300),U=n(456),B=n(32),H=n(59),q=B.f,V=H.f,G=i.RangeError,W=i.TypeError,K=i.Uint8Array,Y="ArrayBuffer",z="Shared"+Y,X="BYTES_PER_ELEMENT",$="prototype",Q=Array[$],J=c.ArrayBuffer,Z=c.DataView,ee=x(0),te=x(2),ne=x(3),re=x(4),oe=x(5),ie=x(6),ae=N(!0),ue=N(!1),se=k.values,ce=k.keys,le=k.entries,fe=Q.lastIndexOf,de=Q.reduce,pe=Q.reduceRight,he=Q.join,ve=Q.sort,me=Q.slice,ye=Q.toString,ge=Q.toLocaleString,_e=C("iterator"),be=C("toStringTag"),Ee=A("typed_constructor"),Te=A("def_constructor"),we=s.CONSTR,Se=s.TYPED,Oe=s.VIEW,Pe="Wrong length!",Re=x(1,function(e,t){return Ne(M(e,e[Te]),t)}),Ie=a(function(){return 1===new K(new Uint16Array([1]).buffer)[0]}),Ae=!!K&&!!K[$].set&&a(function(){new K(1).set({})}),Ce=function(e,t){var n=v(e);if(n<0||n%t)throw G("Wrong offset!");return n},xe=function(e){if(T(e)&&Se in e)return e;throw W(e+" is not a typed array!")},Ne=function(e,t){if(!(T(e)&&Ee in e))throw W("It is not a typed array constructor!");return new e(t)},Me=function(e,t){return ke(M(e,e[Te]),t)},ke=function(e,t){for(var n=0,r=t.length,o=Ne(e,r);r>n;)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;o<r;)e=t[o],t[o++]=t[--n],t[n]=e;return t},some:function(e){return ne(xe(this),e,arguments.length>1?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(;i<o;)this[t+i]=r[i++]},Ve={entries:function(){return le.call(xe(this))},keys:function(){return ce.call(xe(this))},values:function(){return se.call(xe(this))}},Ge=function(e,t){return T(e)&&e[Se]&&"symbol"!=("undefined"==typeof t?"undefined":r(t))&&t in e&&String(+t)==String(t)},We=function(e,t){return Ge(e,t=_(t,!0))?d(2,e[t]):V(e,t)},Ke=function(e,t,n){return!(Ge(e,t=_(t,!0))&&T(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?q(e,t,n):(e[t]=n.value,e)};we||(H.f=We,B.f=Ke),u(u.S+u.F*!we,"Object",{getOwnPropertyDescriptor:We,defineProperty:Ke}),a(function(){ye.call({})})&&(ye=ge=function(){return he.call(this)});var Ye=h({},Be);h(Ye,Ve),p(Ye,_e,Ve.values),h(Ye,{slice:He,set:qe,constructor:function(){},toString:ye,toLocaleString:Ue}),De(Ye,"buffer","b"),De(Ye,"byteOffset","o"),De(Ye,"byteLength","l"),De(Ye,"length","e"),q(Ye,be,{get:function(){return this[Se]}}),e.exports=function(e,t,n,r){r=!!r;var c=e+(r?"Clamped":"")+"Array",l="get"+e,d="set"+e,h=i[c],v=h||{},g=h&&P(h),_=!h||!s.ABV,b={},w=h&&h[$],S=function(e,n){var r=e._d;return r.v[l](n*t+r.o,Ie)},I=function(e,n,o){var i=e._d;r&&(o=(o=Math.round(o))<0?0:o>255?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)});l<u;)A(e,l++)}),w=h[$]=O(Ye),p(w,"constructor",h)):a(function(){h(1)})&&a(function(){new h((-1))})&&L(function(e){new h,new h(null),new h(1.5),new h(e)},!0)||(h=n(function(e,n,r,o){f(e,h,c);var i;return T(n)?n instanceof J||(i=E(n))==Y||i==z?void 0!==o?new v(n,Ce(r,t),o):void 0!==r?new v(n,Ce(r,t)):new v(n):Se in n?ke(h,n):Le.call(h,n):new v(y(n))}),ee(g!==Function.prototype?R(v).concat(R(g)):R(v),function(e){e in h||p(h,e,v[e])}),h[$]=w,o||(w.constructor=h));var C=w[_e],x=!!C&&("values"==C.name||void 0==C.name),N=Ve.values;p(h,Ee,!0),p(w,Se,c),p(w,Oe,!0),p(w,Te,h),(r?new h(1)[be]==c:be in w)||q(w,be,{get:function(){return c}}),b[c]=h,u(u.G+u.W+u.F*(h!=v),b),u(u.S,c,{BYTES_PER_ELEMENT:t}),u(u.S+u.F*a(function(){v.of.call(h,1)}),c,{from:Le,of:je}),X in w||p(w,X,t),u(u.P,c,Be),j(c),u(u.P+u.F*Ae,c,{set:qe}),u(u.P+u.F*!x,c,Ve),o||w.toString==ye||(w.toString=ye),u(u.P+u.F*a(function(){new h(1).slice()}),c,{slice:He}),u(u.P+u.F*(a(function(){return[1,2].toLocaleString()!=new h([1,2]).toLocaleString()})||!a(function(){w.toLocaleString.call([1,2])})),c,{toLocaleString:Ue}),D[c]=x?C:N,o||x||p(w,_e,N)}}else e.exports=function(){}},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;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(){n(this,e),this.init()}return r(e,[{key:"init",value:function(){this.BASE_URL="BaseURL",this.SEGMENT_BASE="SegmentBase",this.SEGMENT_TEMPLATE="SegmentTemplate",this.SEGMENT_LIST="SegmentList",this.SEGMENT_URL="SegmentURL",this.SEGMENT_TIMELINE="SegmentTimeline",this.SEGMENT_PROFILES="segmentProfiles",this.ADAPTATION_SET="AdaptationSet",this.REPRESENTATION="Representation",this.REPRESENTATION_INDEX="RepresentationIndex",this.SUB_REPRESENTATION="SubRepresentation",this.INITIALIZATION="Initialization",this.INITIALIZATION_MINUS="initialization",this.MPD="MPD",this.PERIOD="Period",this.ASSET_IDENTIFIER="AssetIdentifier",this.EVENT_STREAM="EventStream",this.ID="id",this.PROFILES="profiles",this.SERVICE_LOCATION="serviceLocation",this.RANGE="range",this.INDEX="index",this.MEDIA="media",this.BYTE_RANGE="byteRange",this.INDEX_RANGE="indexRange",this.MEDIA_RANGE="mediaRange",this.VALUE="value",this.CONTENT_TYPE="contentType",this.MIME_TYPE="mimeType",this.BITSTREAM_SWITCHING="BitstreamSwitching",this.BITSTREAM_SWITCHING_MINUS="bitstreamSwitching",this.CODECS="codecs",this.DEPENDENCY_ID="dependencyId",this.MEDIA_STREAM_STRUCTURE_ID="mediaStreamStructureId",this.METRICS="Metrics",this.METRICS_MINUS="metrics",this.REPORTING="Reporting",this.WIDTH="width",this.HEIGHT="height",this.SAR="sar",this.FRAMERATE="frameRate",this.AUDIO_SAMPLING_RATE="audioSamplingRate",this.MAXIMUM_SAP_PERIOD="maximumSAPPeriod",this.START_WITH_SAP="startWithSAP",this.MAX_PLAYOUT_RATE="maxPlayoutRate",this.CODING_DEPENDENCY="codingDependency",this.SCAN_TYPE="scanType",this.FRAME_PACKING="FramePacking",this.AUDIO_CHANNEL_CONFIGURATION="AudioChannelConfiguration",this.CONTENT_PROTECTION="ContentProtection",this.ESSENTIAL_PROPERTY="EssentialProperty",this.SUPPLEMENTAL_PROPERTY="SupplementalProperty",this.INBAND_EVENT_STREAM="InbandEventStream",this.ACCESSIBILITY="Accessibility",this.ROLE="Role",this.RATING="Rating",this.CONTENT_COMPONENT="ContentComponent",this.SUBSET="Subset",this.LANG="lang",this.VIEWPOINT="Viewpoint",this.ROLE_ASARRAY="Role_asArray",this.ACCESSIBILITY_ASARRAY="Accessibility_asArray",this.AUDIOCHANNELCONFIGURATION_ASARRAY="AudioChannelConfiguration_asArray",this.CONTENTPROTECTION_ASARRAY="ContentProtection_asArray",this.MAIN="main",this.DYNAMIC="dynamic",this.MEDIA_PRESENTATION_DURATION="mediaPresentationDuration",this.MINIMUM_UPDATE_PERIOD="minimumUpdatePeriod",this.CODEC_PRIVATE_DATA="codecPrivateData",this.BANDWITH="bandwidth",this.SOURCE_URL="sourceURL",this.TIMESCALE="timescale",this.DURATION="duration",this.START_NUMBER="startNumber",this.PRESENTATION_TIME_OFFSET="presentationTimeOffset",this.AVAILABILITY_START_TIME="availabilityStartTime",this.AVAILABILITY_END_TIME="availabilityEndTime",this.TIMESHIFT_BUFFER_DEPTH="timeShiftBufferDepth",this.MAX_SEGMENT_DURATION="maxSegmentDuration",this.PRESENTATION_TIME="presentationTime",this.MIN_BUFFER_TIME="minBufferTime",this.MAX_SUBSEGMENT_DURATION="maxSubsegmentDuration",this.START="start",this.CENC_DEFAULT_KID="cenc:default_KID",this.DVB_PRIORITY="dvb:priority",this.DVB_WEIGHT="dvb:weight"}}]),e}(),i=new o;t["default"]=i,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){function r(e){var t=s.DEFAULT;return e!==s.DEFAULT&&e!==s.STRONG&&e!==s.WEAK||(t=e),t}var o=void 0,i=void 0,a=void 0,c=void 0;return i=void 0===e?u:e,a=r(n),c=void 0===t?null:t,o={quality:i,reason:c,priority:a}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=r(i),u=-1,s={DEFAULT:.5,STRONG:1,WEAK:0};o.__dashjs_factory_name="SwitchRequest";var c=a["default"].getClassFactory(o);c.NO_CHANGE=u,c.PRIORITY=s,a["default"].updateClassFactory(o.__dashjs_factory_name,c),t["default"]=c,e.exports=t["default"]},function(e,t,n){var r,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(a){var u=!1;if(r=a,o="function"==typeof r?r.call(t,n,t,e):r,!(void 0!==o&&(e.exports=o)),u=!0,"object"===i(t)&&(e.exports=a(),u=!0),!u){var s=window.Cookies,c=window.Cookies=a();c.noConflict=function(){return window.Cookies=s,c}}}(function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(n){function r(t,o,i){var a;if("undefined"!=typeof document){if(arguments.length>1){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<f.length;p++){var h=f[p].split("="),v=h.slice(1).join("=");this.json||'"'!==v.charAt(0)||(v=v.slice(1,-1));try{var m=h[0].replace(d,decodeURIComponent);if(v=n.read?n.read(v,m):n(v,m)||v.replace(d,decodeURIComponent),this.json)try{v=JSON.parse(v)}catch(s){}if(t===m){a=v;break}t||(a[m]=v)}catch(s){}}return a}}return r.set=r,r.get=function(e){return r.call(r,e)},r.getJSON=function(){return r.apply({json:!0},[].slice.call(arguments))},r.defaults={},r.remove=function(t,n){r(t,"",e(n,{expires:-1}))},r.withConverter=t,r}return t(function(){})})},function(e,t,n){function r(e,t,n,r,E,T,w,S){var O=t&v;if(!O&&"function"!=typeof e)throw new TypeError(p);var P=r?r.length:0;if(P||(t&=~(g|_),r=E=void 0),w=void 0===w?w:b(d(w),0),S=void 0===S?S:d(S),P-=E?E.length:0,t&_){var R=r,I=E;r=E=void 0}var A=O?void 0:c(e),C=[e,t,n,r,E,R,I,T,w,S];if(A&&l(C,A),e=C[0],t=C[1],n=C[2],r=C[3],E=C[4],S=C[9]=null==C[9]?O?0:e.length:b(C[9]-P,0),!S&&t&(m|y)&&(t&=~(m|y)),t&&t!=h)x=t==m||t==y?a(e,t,S):t!=g&&t!=(h|g)||E.length?u.apply(void 0,C):s(e,t,n,r);else var x=i(e,t,n);var N=A?o:f;return N(x,C)}var o=n(539),i=n(1105),a=n(1106),u=n(548),s=n(1108),c=n(359),l=n(1139),f=n(562),d=n(99),p="Expected a function",h=1,v=2,m=8,y=16,g=32,_=64,b=Math.max;e.exports=r},function(e,t,n){function r(e){return null!=e&&a(o(e))&&!i(e)}var o=n(1113),i=n(83),a=n(260);e.exports=r},function(e,t,n){var r=n(110),o=n(1072),i=n(200),a=n(536),u=n(553),s=n(40),c=n(70),l=s(function(e,t){return null==e?{}:(t=r(i(t,1),c),a(e,o(u(e),t)))});e.exports=l},function(e,t,n){function r(e){var t=o(e),n=t%1;return t===t?n?t-n:t:0}var o=n(1209);e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n;var o=this.constructor.Interface;for(var i in o)if(o.hasOwnProperty(i)){var u=o[i];u?this[i]=u(n):"target"===i?this.target=r:this[i]=n[i]}var s=null!=n.defaultPrevented?n.defaultPrevented:n.returnValue===!1;return s?this.isDefaultPrevented=a.thatReturnsTrue:this.isDefaultPrevented=a.thatReturnsFalse,this.isPropagationStopped=a.thatReturnsFalse,this}var o=n(29),i=n(140),a=n(62),u=(n(16),"function"==typeof Proxy,["dispatchConfig","_targetInst","nativeEvent","isDefaultPrevented","isPropagationStopped","_dispatchListeners","_dispatchInstances"]),s={type:null,target:null,currentTarget:a.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};o(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=a.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=a.thatReturnsTrue)},persist:function(){this.isPersistent=a.thatReturnsTrue},isPersistent:a.thatReturnsFalse,destructor:function(){var e=this.constructor.Interface;for(var t in e)this[t]=null;for(var n=0;n<u.length;n++)this[u[n]]=null}}),r.Interface=s,r.augmentClass=function(e,t){var n=this,r=function(){};r.prototype=n.prototype;var a=new r;o(a,e.prototype),e.prototype=a,e.prototype.constructor=e,e.Interface=o({},n.Interface,t),e.augmentClass=n.augmentClass,i.addPoolingTo(e,i.fourArgumentPooler)},i.addPoolingTo(r,i.fourArgumentPooler),e.exports=r},function(e,t){"use strict";var n={current:null};e.exports=n},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(271),u=n(66),s=n(20),c=n(633),l=n(272),f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=u.a.Types,p=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),f(t,[{key:"toRecord",value:function(){return new a.b(this.type,this.uuid,this.paginationId,this.depth)}},{key:"reply",value:function(e,t){return l.a.post(e,{thingId:this.uuid,text:t})}}]),t}(u.a);p.type=s.a,p.PROPERTIES={allAwardings:d.arrayOf(d.nop),archived:d.bool,author:d.string,authorFlairCSSClass:d.string,authorFlairText:d.string,children:d.nop,controversiality:d.number,distinguished:d.string,downs:d.number,edited:d.bool,gilded:d.number,gildings:d.nop,id:d.string,likes:d.likes,name:d.string,replies:d.array,numReplies:d.number,saved:d.bool,score:d.number,stickied:d.bool,subreddit:d.string,ups:d.number,removed:d.bool,approved:d.bool,spam:d.bool,depth:d.number,quarantine:d.bool,approvedBy:d.string,bannedBy:d.string,bodyHTML:d.html,bodyMD:d.html,createdUTC:d.number,linkId:d.string,linkTitle:d.string,modReports:d.array,numReports:d.number,parentId:d.string,reportReasons:d.array,scoreHidden:d.bool,subredditId:d.string,userReports:d.array,cleanPermalink:d.link},p.API_ALIASES={all_awardings:"allAwardings",approved_by:"approvedBy",author_flair_css_class:"authorFlairCSSClass",author_flair_text:"authorFlairText",banned_by:"bannedBy",body_html:"bodyHTML",body:"bodyMD",created_utc:"createdUTC",link_id:"linkId",link_title:"linkTitle",mod_reports:"modReports",num_reports:"numReports",parent_id:"parentId",report_reasons:"reportReasons",score_hidden:"scoreHidden",subreddit_id:"subredditId",user_reports:"userReports"},p.DERIVED_PROPERTIES={cleanPermalink:function(e){if(e.cleanPermalink)return e.cleanPermalink;var t=e.subreddit,n=e.link_id,r=e.id,o=e.context;return o?o:"/r/"+t+"/comments/"+n.substr(3)+"/comment/"+r}},t.a=p,n.i(c.a)(p)},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,r){var o=e.expandedPosts[t]?"cs.expand_user":"cs.collapse_user";n.i(h.a)().track("expando_events",o,v({},n.i(d.b)(e),n.i(d.g)(e),n.i(d.k)(e),i(e,t),n.i(d.l)(e),{click_target:r}))}function i(e,t){var n=e.posts[t];return{target_author_id:n.id,target_created_ts:n.createdUTC,target_id:n.id,target_fullname:n.name,target_url_domain:n.domain,target_url:n.cleanUrl,target_type:n.isSelf?"self":"link",nsfw:n.over18}}var a=n(25),u=n(65),s=n(405),c=n(625),l=n(624),f=n(38),d=n(26),p=n(22),h=n(121);n.d(t,"o",function(){return y}),n.d(t,"b",function(){return _}),n.d(t,"u",function(){return b}),n.d(t,"c",function(){return E}),n.d(t,"r",function(){return T}),n.d(t,"s",function(){return S}),n.d(t,"f",function(){return P}),n.d(t,"g",function(){return R}),n.d(t,"h",function(){return I}),n.d(t,"a",function(){return A}),n.d(t,"k",function(){return C}),n.d(t,"d",function(){return x}),n.d(t,"p",function(){return N}),n.d(t,"j",function(){return M}),n.d(t,"q",function(){return k}),n.d(t,"i",function(){return D}),n.d(t,"t",function(){return L}),n.d(t,"l",function(){return F}),n.d(t,"m",function(){return B}),n.d(t,"n",function(){return q}),n.d(t,"e",function(){return G});var v=Object.assign||function(e){
for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m=this,y="POSTS__TOGGLE_EXPANDED",g=function(e){return{type:y,postId:e}},_=function(e,t){return function(){var n=r(regeneratorRuntime.mark(function i(n,r){return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:n(g(e)),o(r(),e,t);case 2:case"end":return i.stop()}},i,m)}));return function(e,t){return n.apply(this,arguments)}}()},b="POSTS__TOGGLE_NSFW_BLUR",E=function(e){return{type:b,postId:e}},T="POSTS__TOGGLE_SAVED_RECEIVED",w=function(e){return{post:e,type:T}},S="POSTS__TOGGLE_HIDE_RECEIVED",O=function(e){return{post:e,type:S}},P=function(e){return function(){var t=r(regeneratorRuntime.mark(function o(t,r){var i,a,u,c,l;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return i=r(),a=i.posts[e],u=n.i(p.a)(i),c=a.saved?"del":"post",o.prev=4,o.next=7,s.a[c](u,{id:a.uuid});case 7:l=f.a.fromJSON(v({},a.toJSON(),{saved:!a.saved})),t(w(l)),o.next=14;break;case 11:o.prev=11,o.t0=o["catch"](4),console.error(o.t0);case 14:case"end":return o.stop()}},o,m,[[4,11]])}));return function(e,n){return t.apply(this,arguments)}}()},R=function(e){return function(){var t=r(regeneratorRuntime.mark(function o(t,r){var i,a,u,s,l;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return i=r(),a=i.posts[e],u=n.i(p.a)(i),s=a.hidden?"del":"post",o.prev=4,o.next=7,c.a[s](u,{id:a.uuid});case 7:l=f.a.fromJSON(v({},a.toJSON(),{hidden:!a.hidden})),t(O(l)),o.next=14;break;case 11:o.prev=11,o.t0=o["catch"](4),console.error(o.t0);case 14:case"end":return o.stop()}},o,m,[[4,11]])}));return function(e,n){return t.apply(this,arguments)}}()},I=function(e,t){return function(){var n=r(regeneratorRuntime.mark(function o(n,r){var i,a,u;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:i=r(),a=i.posts[e];try{u=f.a.fromJSON(v({},a.toJSON(),{videoPlaytime:t})),n(j(u))}catch(s){console.error(s)}case 3:case"end":return o.stop()}},o,m)}));return function(e,t){return n.apply(this,arguments)}}()},A=function(e,t){return function(){var o=r(regeneratorRuntime.mark(function i(r,o){return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:n.i(d.m)(o(),e,t);case 1:case"end":return r.stop()}},i,m)}));return function(e,t){return o.apply(this,arguments)}}()},C="POSTS__TOGGLE_EDIT",x=function(e){return{type:C,thingId:e}},N="POSTS__START_PLAYING",M=function(e){return{type:N,thingId:e}},k="POSTS__STOP_PLAYING",D=function(e){return{type:k,thingId:e}},L="POSTS__UPDATE_VIDEO_TIME",j=function(e){return{type:L,post:e}},F="POSTS__UPDATING_SELF_TEXT",U=function(e){return{type:F,thingId:e}},B="POSTS__UPDATED_SELF_TEXT",H=function(e){return{type:B,model:e}},q="POSTS__FAILED_UPDATE_SELF_TEXT",V=function(e,t){return{type:q,thingId:e,error:t,message:"Sorry, something went wrong with updating your post."}},G=function(e,t){return function(){var o=r(regeneratorRuntime.mark(function i(r,o){var s,c;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return r(U(e)),s=n.i(p.a)(o()),i.prev=2,i.next=5,l.a.post(s,{thingId:e,text:t});case 5:c=i.sent,r(H(c)),i.next=16;break;case 9:if(i.prev=9,i.t0=i["catch"](2),!(i.t0 instanceof u.a||i.t0 instanceof a.a)){i.next=15;break}r(V(e,i.t0)),i.next=16;break;case 15:throw i.t0;case 16:case"end":return i.stop()}},i,m,[[2,9]])}));return function(e,t){return o.apply(this,arguments)}}()}},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);n.d(t,"a",function(){return u}),n.d(t,"d",function(){return s}),n.d(t,"b",function(){return l}),n.d(t,"c",function(){return f});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=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")}}(),u=function(e){var t=e.split("?"),n=a(t,2),o=n[1];if(!o||!o.length)return{};var u=o.split("#"),s=a(u,1),c=s[0];return c.split("&").reduce(function(e,t){var n=t.split("="),o=a(n,2),u=o[0],s=o[1];return i({},e,r({},u,decodeURIComponent(s)))},{})},s=function(e){var t=Object.keys(e).filter(function(t){return"undefined"!=typeof e[t]}).map(function(t){return t+"="+encodeURIComponent(e[t])}).join("&");return"?"+t},c=function(e){return"#"+e},l=function(e,t){var r=t?n.i(o.a)(e,t):e,i=r.url,a=r.queryParams,u=void 0===a?{}:a,l=r.hashParams,f=void 0===l?{}:l,d=Object.keys(u).length?s(u):"",p=Object.keys(f).length?c(f):"";return""+i+d+p},f=function(e){return null!==e&&null!==e.urlParams&&null!==e.urlParams.postTitle&&null!==e.urlParams.postId}},function(e,t,n){var r=n(28)("unscopables"),o=Array.prototype;void 0==o[r]&&n(50)(o,r,{}),e.exports=function(e){o[r][e]=!0}},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=n(132)("meta"),i=n(21),a=n(49),u=n(32).f,s=0,c=Object.isExtensible||function(){return!0},l=!n(18)(function(){return c(Object.preventExtensions({}))}),f=function(e){u(e,o,{value:{i:"O"+ ++s,w:{}}})},d=function(e,t){if(!i(e))return"symbol"==("undefined"==typeof e?"undefined":r(e))?e:("string"==typeof e?"S":"P")+e;if(!a(e,o)){if(!c(e))return"F";if(!t)return"E";f(e)}return e[o].i},p=function(e,t){if(!a(e,o)){if(!c(e))return!0;if(!t)return!1;f(e)}return e[o].w},h=function(e){return l&&v.NEED&&c(e)&&!a(e,o)&&f(e),e},v=e.exports={KEY:o,NEED:!1,fastKey:d,getWeak:p,onFreeze:h}},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(n,u){"object"===a(t)?e.exports=t=u():(o=[],r=u,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i)))}(this,function(){var e=e||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),r={},o=r.lib={},i=o.Base=function(){return{extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),a=o.WordArray=i.extend({init:function(e,n){e=this.words=e||[],n!=t?this.sigBytes=n:this.sigBytes=4*e.length},toString:function(e){return(e||s).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var i=0;i<o;i++){var a=n[i>>>2]>>>24-i%4*8&255;t[r+i>>>2]|=a<<24-(r+i)%4*8}else for(var i=0;i<o;i+=4)t[r+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<t;i+=4){var u=o(4294967296*(n||e.random()));n=987654071*u(),r.push(4294967296*u()|0)}return new a.init(r,t)}}),u=r.enc={},s=u.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>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<t;r+=2)n[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<n;o++){var i=t[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<t;r++)n[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;f<c;f+=i)this._doProcessBlock(r,f);var d=r.splice(0,c);n.sigBytes-=l}return new a.init(d,l)},clone:function h(){var h=i.clone.call(this);return h._data=this._data.clone(),h},_minBufferSize:0}),d=(o.Hasher=f.extend({cfg:i.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new d.HMAC.init(e,n).finalize(t)}}}),r.algo={});return r}(Math);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 o(e,t,r){n(this,o),this.code=e||null,this.message=t||null,this.data=r||null};t["default"]=r,e.exports=t["default"]},function(e,t){function n(e,t,n){var r=n.length;switch(r){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}e.exports=n},function(e,t){function n(e,t){for(var n=-1,r=e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}e.exports=n},function(e,t,n){function r(e,t){if(i(e))return!1;var n="undefined"==typeof e?"undefined":o(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!a(e))||(s.test(e)||!u.test(e)||null!=t&&e in Object(t))}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(27),a=n(207),u=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=r},function(e,t,n){function r(e,t){return null!=e&&i(e,t,o)}var o=n(250),i=n(555);e.exports=r},function(e,t){function n(e){return!!e&&"object"==("undefined"==typeof e?"undefined":r(e))}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){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(l===setTimeout)return setTimeout(e,0);if((l===n||!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 i(e){if(f===clearTimeout)return clearTimeout(e);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function a(){v&&p&&(v=!1,p.length?h=p.concat(h):m=-1,h.length&&u())}function u(){if(!v){var e=o(a);v=!0;for(var t=h.length;t;){for(p=h,h=[];++m<t;)p&&p[m].run();m=-1,t=h.length}p=null,v=!1,i(e)}}function s(e,t){this.fun=e,this.array=t}function c(){}var l,f,d=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(e){l=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(e){f=r}}();var p,h=[],v=!1,m=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];h.push(new s(e,t)),1!==h.length||v||o(u)},s.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=c,d.addListener=c,d.once=c,d.off=c,d.removeListener=c,d.removeAllListeners=c,d.emit=c,d.prependListener=c,d.prependOnceListener=c,d.listeners=function(e){return[]},d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},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(1337),i=n(25),a=n(22),u=n(425);n.d(t,"b",function(){return c}),n.d(t,"c",function(){return l}),n.d(t,"d",function(){return f}),n.d(t,"e",function(){return p}),n.d(t,"f",function(){return v}),n.d(t,"a",function(){return y});var s=this,c="submitted",l="comments",f="FETCHING_ACTIVITIES",d=function(e,t){return{type:f,id:e,params:t}},p="RECEIVED_ACTIVITIES",h=function(e,t){return{type:p,id:e,apiResponse:t}},v="FAILED_ACTIVITIES",m=function(e,t){return{type:v,error:t}},y=function(e){return function(){var t=r(regeneratorRuntime.mark(function c(t,r){var l,f,p,v;return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(l=r(),f=n.i(u.a)(e),!l.activitiesRequests[f]){s.next=4;break}return s.abrupt("return");case 4:return t(d(f,e)),s.prev=5,p=n.i(a.a)(l),s.next=9,o.a.get(p,e);case 9:v=s.sent,t(h(f,v)),s.next=20;break;case 13:if(s.prev=13,s.t0=s["catch"](5),!(s.t0 instanceof i.a)){s.next=19;break}t(m(f,s.t0)),s.next=20;break;case 19:throw s.t0;case 20:case"end":return s.stop()}},c,s,[[5,13]])}));return function(e,n){return t.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(22),i=n(680),a=n(404),u=n(214),s=n(183),c=n(88);n.d(t,"f",function(){return f}),n.d(t,"b",function(){return d}),n.d(t,"e",function(){return p}),n.d(t,"c",function(){return h}),n.d(t,"g",function(){return v}),n.d(t,"d",function(){return m}),n.d(t,"a",function(){return y});var l=this,f="FETCHING_POSTS_LIST",d=function(e,t){return{type:f,postsListId:e,postsParams:t}},p="RECEIVED_POSTS_LIST",h=function(e,t){return{type:p,postsListId:e,apiResponse:t}},v="FAILED_POSTS_LIST",m=function(e,t){return{type:v,postsListId:e,error:t}},y=function(e){return function(){var t=r(regeneratorRuntime.mark(function f(t,r){var p,v,y,g,_,b,E;return regeneratorRuntime.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(p=r(),v=n.i(s.a)(e),y=p.postsLists[v],!y){l.next=5;break}return l.abrupt("return");case 5:return t(d(v,e)),l.prev=6,g=n.i(o.a)(p),_=n.i(c.a)(p),l.next=11,a.a.get(g,e,_);case 11:b=l.sent,t(h(v,b)),l.next=18;break;case 15:l.prev=15,l.t0=l["catch"](6),n.i(i.a)(l.t0)?(E=e.subredditName,t(n.i(u.a)(E,l.t0.response.body.quarantine_message_html))):t(m(v,l.t0));case 18:case"end":return l.stop()}},f,l,[[6,15]])}));return function(e,n){return t.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")})}}function o(e,t){var r=n.i(p.a)(e.parentId,t),o=t.posts[e.linkId];n.i(a.a)().track("comment_events","cs.comment",m({},n.i(u.b)(t),n.i(u.g)(t),{comment_id:n.i(u.d)(e.name),comment_fullname:e.name,comment_body:e.bodyMD,post_id:n.i(u.d)(o.name),post_fullname:o.name,post_created_ts:1e3*o.createdUTC,parent_id:n.i(u.d)(r.name),parent_fullname:r.name,parent_created_ts:1e3*r.createdUTC}))}var i=n(20),a=n(121),u=n(26),s=n(22),c=n(185),l=n(179),f=n(5),d=n(74),p=n(148),h=n(7),v=n(10);n.d(t,"d",function(){return g}),n.d(t,"f",function(){return _}),n.d(t,"c",function(){return b}),n.d(t,"e",function(){return E}),n.d(t,"b",function(){return T}),n.d(t,"a",function(){return P});var m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y=this,g="REPLY__TOGGLE",_="REPLY__PENDING",b="REPLY__SUCCESS",E="REPLY__FAILURE",T=function(e){return function(){var t=r(regeneratorRuntime.mark(function o(t,r){var a,u,s,c,p,m,_,b,E,T;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(a=r(),t({type:g,parentId:e}),a.session.isValid){o.next=4;break}return o.abrupt("return",t(n.i(h.e)(v.a.GET,"/register")));case 4:if(u=a.platform.currentPage.urlParams.subredditName,s="rules_modal_on_comment",c=l.a(s,u),!a.platform.shell){o.next=9;break}return o.abrupt("return");case 9:if(u){o.next=11;break}return o.abrupt("return");case 11:if(!a.rulesModal[c]){o.next=13;break}return o.abrupt("return");case 13:if(p=d.a.withContext({state:a}),m=p.enabled(f.h.RULES_MODAL_ON_COMMENT_CLICK_ANYWHERE),_=p.enabled(f.h.RULES_MODAL_ON_COMMENT_CLICK_BUTTON),m||_){o.next=18;break}return o.abrupt("return");case 18:b=_,E=i.a,T=function(t){return t({type:g,parentId:e})},t(l.b(s,u,E,b,T));case 22:case"end":return o.stop()}},o,y)}));return function(e,n){return t.apply(this,arguments)}}()},w=function(e,t){return{parentId:e,type:b,model:t,message:"Comment added!"}},S=function(e){return{type:_,parentId:e}},O=function(e){return{type:E,parentId:e}},P=function(e,t){var i=t.text;return function(){var t=r(regeneratorRuntime.mark(function a(t,r){var u,l,f,d,h;return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(u=r(),l=n.i(p.a)(e,u),!u.replyRequests[e]||!u.replyRequests[e].pending){a.next=4;break}return a.abrupt("return");case 4:if(l){a.next=7;break}return t(O(e)),a.abrupt("return");case 7:return a.prev=7,t(S(e)),a.next=11,l.reply(n.i(s.a)(u),i);case 11:f=a.sent,d=f.getModelFromRecord(f.results[0]),t(w(e,d)),h=u.posts[d.linkId],h.promoted&&n.i(c.a)(h.events,c.b.CommentSubmitted),o(d,r()),a.next=22;break;case 19:a.prev=19,a.t0=a["catch"](7),t(O(e));case 22:case"end":return a.stop()}},a,y,[[7,19]])}));return function(e,n){return t.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(1345),i=n(25),a=n(121),u=n(26),s=n(22),c=n(429);n.d(t,"c",function(){return d}),n.d(t,"b",function(){return h}),n.d(t,"d",function(){return m}),n.d(t,"a",function(){return g});var l=this,f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d="FETCHING_SEARCH_REQUEST",p=function(e,t){return{type:d,id:e,params:t}},h="RECEIVED_SEARCH_REQUEST",v=function(e,t){return{type:h,id:e,apiResponse:t}},m="FAILED_SEARCH_REQUEST",y=function(e,t){return{type:m,id:e,error:t}},g=function(e){return function(){var t=r(regeneratorRuntime.mark(function d(t,r){var h,m,g,_,b;return regeneratorRuntime.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(h=r(),m=n.i(c.a)(e),g=h.searchRequests[m],!g){l.next=5;break}return l.abrupt("return");case 5:return t(p(m,e)),l.prev=6,l.next=9,o.a.get(n.i(s.a)(h),e);case 9:_=l.sent,t(v(m,_)),b=r(),n.i(a.a)().track("search_events","cs.search_executed",f({},n.i(u.b)(b),n.i(u.g)(b),{query_string_length:e.q.length,interana_excluded:{query_string:e.q}})),l.next=21;break;case 14:if(l.prev=14,l.t0=l["catch"](6),!(l.t0 instanceof i.a)){l.next=20;break}t(y(m,l.t0)),l.next=21;break;case 20:throw l.t0;case 21:case"end":return l.stop()}},d,l,[[6,14]])}));return function(e,n){return t.apply(this,arguments)}}()}},function(e,t,n){"use strict";var r=n(0),o=(n.n(r),n(6)),i=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),a=["coins","gold","prefs","premium"],u=new RegExp("^("+a.map(function(e){return"/"+e}).join("|")+")/?$","i"),s=/^https?:\/\/(?:.+\.)?reddit\.com(.*)$/;t.a=function(e){var t=e.onLinkClick,n=e.children;return i(o.a,{onLinkClick:t,urlRegexp:s,pathExclusionRegexp:u},void 0,n)}},function(e,t,n){"use strict";var r=n(371),o=n.n(r);n.d(t,"a",function(){return a});var i=function(e){return void 0===e||null===e},a=function(e){return o()(e,i)}},function(e,t,n){"use strict";function r(e,t){return l()(t,e).toString()}function o(e){var t=e.url,n=e.data,r=e.query,o=e.headers,i=e.done;return p.a.post(t).query(r).set(o).timeout(v.k).send(n).then(i)["catch"](i)}function i(){var e=d.a.trackerKey,t=d.a.trackerClientSecret,i=d.a.trackerEndpoint,u=d.a.trackerClientAppName,c=n.i(h.a)({trackerKey:e,trackerEndpoint:i,trackerClientSecret:t,trackerClientAppName:u}),l=m[c];if(!l){var p=o,v=n.i(f.atob)(t);l=new s.a(e,v,p,i,u,r,{appendClientContext:!0,bufferLength:1}),m[c]=l,a(l)}return l}function a(e){var t=function(e){if(this.buffer.length){var t=JSON.stringify(this.buffer),n=this.calculateHash(this.clientSecret,t),r={"Content-Type":"text/plain"};this.postData({url:this.eventsUrl,data:t,headers:r,query:{key:this.clientKey,mac:n},done:this.done||e||function(){}}),this.buffer=[]}};e.replaceToNewSend=function(){return this.done||(this.send=t),this},e.addDoneToNewSend=function(e){return this.done=e,this}}var u=n(1041),s=n.n(u),c=n(904),l=n.n(c),f=n(454),d=(n.n(f),n(17)),p=n(436),h=n(149),v=n(5);t.a=i;var m={}},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var r=n(68),o=n(467),i=n(308),a=n(13),u=n(33),s=n(325),c={},l={},t=e.exports=function(e,t,n,f,d){var p,h,v,m,y=d?function(){return e}:s(e),g=r(n,f,t?2:1),_=0;if("function"!=typeof y)throw TypeError(e+" is not iterable!");if(i(y)){for(p=u(e.length);p>_;_++)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;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(){n(this,e),this.init()}return r(e,[{key:"init",value:function(){this.CLEARKEY_KEYSTEM_STRING="org.w3.clearkey",this.WIDEVINE_KEYSTEM_STRING="com.widevine.alpha",this.PLAYREADY_KEYSTEM_STRING="com.microsoft.playready"}}]),e}(),i=new o;t["default"]=i,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(){be=(0,S["default"])(ie).getInstance().log.bind(_e),De=(0,P["default"])(ie).getInstance(),re()}function n(){return C}function r(e){ee(e),Ee=ve.getQualityFor(ye,ge.getStreamInfo());var t=navigator.userAgent.toLowerCase();Fe=/safari/.test(t)&&/mac/.test(t)&&!/chrome/.test(t)&&!/windows phone/.test(t),ae.on(g["default"].DATA_UPDATE_COMPLETED,H,this),ae.on(g["default"].INIT_FRAGMENT_LOADED,u,this),ae.on(g["default"].MEDIA_FRAGMENT_LOADED,f,this),ae.on(g["default"].QUALITY_CHANGE_REQUESTED,y,this),ae.on(g["default"].STREAM_COMPLETED,q,this),ae.on(g["default"].PLAYBACK_PROGRESS,T,this),ae.on(g["default"].PLAYBACK_TIME_UPDATED,T,this),ae.on(g["default"].PLAYBACK_RATE_CHANGED,Y,this),ae.on(g["default"].PLAYBACK_SEEKING,_,this),ae.on(g["default"].WALLCLOCK_TIME_UPDATED,G,this),ae.on(g["default"].CURRENT_TRACK_CHANGED,V,this,m["default"].EVENT_PRIORITY_HIGH),ae.on(g["default"].SOURCEBUFFER_APPEND_COMPLETED,v,this),ae.on(g["default"].SOURCEBUFFER_REMOVE_COMPLETED,U,this),Fe&&ae.on(g["default"].PLAYBACK_SEEKED,W,this)}function o(e){if(!e||!Oe||!ge)return null;var t=null;try{t=ce.createSourceBuffer(Oe,e),t&&t.hasOwnProperty(a["default"].INITIALIZE)&&t.initialize(ye,ge)}catch(n){le.mediaSourceError("Error creating "+ye+" source buffer.")}return J(t),B(ge.getRepresentationInfoForQuality(Ee).MSETimeOffset),t}function i(){return!(!ge||!fe)&&ge.getStreamInfo().id===fe.getActiveStreamInfo().id}function u(e){e.fragmentModel===ge.getFragmentModel()&&(be("Init fragment finished loading saving to",ye+"'s init cache"),De.save(e.chunk),p(e.chunk))}function c(e,t){var n=De.extract(e,t);n?p(n):ae.trigger(g["default"].INIT_REQUESTED,{sender:_e})}function f(e){if(e.fragmentModel===ge.getFragmentModel()){var t=e.chunk,n=t.bytes,r=t.quality,o=ge.getRepresentationInfoForQuality(r),i=pe.getEventsFor(o.mediaInfo,ge),a=pe.getEventsFor(o,ge);if(i&&i.length>0||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<r;n++)be("Buffered Range for type:",ye,":",t.start(n)," - ",t.end(n));T(),Me=!1,Ce&&ae.trigger(g["default"].BYTES_APPENDED,{sender:_e,quality:Ce.quality,startTime:Ce.start,index:Ce.index,bufferedRanges:t})}}function y(e){Ee!==e.newQuality&&ye===e.mediaType&&ge.getStreamInfo().id===e.streamInfo.id&&(B(ge.getRepresentationInfoForQuality(e.newQuality).MSETimeOffset),Ee=e.newQuality)}function _(){Te&&(je=!0,Te=!1,Pe=0),Le=void 0,T()}function E(){var e=me.getTime();if(Le){var t=ce.getAllRanges(Ie);t&&t.length&&(e=Math.max(t.start(0),Le))}return e}function T(){w(),O()}function w(){me&&(we=ce.getBufferLength(Ie,E()),ae.trigger(g["default"].BUFFER_LEVEL_UPDATED,{sender:_e,bufferLevel:we}),N())}function O(){i()&&(ue.addBufferState(ye,Ae,ge.getScheduleController().getBufferTarget()),ue.addBufferLevel(ye,new Date,1e3*we))}function x(){var e=Pe>=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()-we<A&&(je=!1,Te=!0,ae.trigger(g["default"].BUFFERING_COMPLETED,{sender:_e,streamInfo:ge.getStreamInfo()})),M(we<A&&!Te?I:R))}function M(e){Ae===e||ye===a["default"].FRAGMENTED_TEXT&&he.getAllTracksAreDisabled()||(Ae=e,O(),ae.trigger(g["default"].BUFFER_LEVEL_STATE_CHANGED,{sender:_e,state:e,mediaType:ye,streamInfo:ge.getStreamInfo()}),ae.trigger(e===R?g["default"].BUFFER_LOADED:g["default"].BUFFER_EMPTY,{mediaType:ye}),be(e===R?"Got enough buffer to start.":"Waiting for more buffer before starting playback."))}function k(e,t,n,r){for(var o=Math.max(isNaN(t.startTime)?0:t.startTime,0),i=[],a=[],u=n.concat(r),s=0,c=u.length;s<c;s++)i[u[s].schemeIdUri]=u[s];for(var l=(0,b["default"])(ie).getInstance().parse(e),f=l.getBoxes("emsg"),s=0,c=f.length;s<c;s++){var d=pe.getEvent(f[s],i,o);d&&a.push(d)}return a}function D(){var e=ce.getTotalBufferedTime(Ie);return e<Se}function L(){if(Ie&&ye!==a["default"].FRAGMENTED_TEXT){var e=Ie.buffered.length?Ie.buffered.start(0):0,t=me.getTime()-e-se.getBufferToKeep();t>0&&(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;n<t.length;n++)t.start(n)>e&&(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<a;){var u=t[i],s=r?r(n[u],e[u],u,n,e):e[u];o(n,u,s)}return n}var o=n(199);e.exports=r},function(e,t){function n(e,t){for(var n=-1,o=e.length,i=0,a=[];++n<o;){var u=e[n];u!==t&&u!==r||(e[n]=r,a[i++]=n)}return a}var r="__lodash_placeholder__";e.exports=n},function(e,t,n){function r(e,t,n){var r=null==e?void 0:o(e,t);return void 0===r?n:r}var o=n(249);e.exports=r},function(e,t,n){(function(t){for(var r=n(1727),o="undefined"==typeof window?t:window,i=["moz","webkit"],a="AnimationFrame",u=o["request"+a],s=o["cancel"+a]||o["cancelRequest"+a],c=0;!u&&c<i.length;c++)u=o[i[c]+"Request"+a],s=o[i[c]+"Cancel"+a]||o[i[c]+"CancelRequest"+a];if(!u||!s){var l=0,f=0,d=[],p=1e3/60;u=function(e){if(0===d.length){var t=r(),n=Math.max(0,p-(t-l));l=n+t,setTimeout(function(){var e=d.slice(0);d.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(l)}catch(n){setTimeout(function(){throw n},0)}},Math.round(n))}return d.push({handle:++f,callback:e,cancelled:!1}),f},s=function(e){for(var t=0;t<d.length;t++)d[t].handle===e&&(d[t].cancelled=!0)}}e.exports=function(e){return u.call(o,e)},e.exports.cancel=function(){s.apply(o,arguments)},e.exports.polyfill=function(e){e||(e=o),e.requestAnimationFrame=u,e.cancelAnimationFrame=s}}).call(t,n(36))},function(e,t,n){"use strict";var r=n(23),o=(n(11),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},a=function(e,t,n){var r=this;if(r.instancePool.length){var o=r.instancePool.pop();return r.call(o,e,t,n),o}return new r(e,t,n)},u=function(e,t,n,r){var o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,e,t,n,r),i}return new o(e,t,n,r)},s=function(e,t,n,r,o){var i=this;if(i.instancePool.length){var a=i.instancePool.pop();return i.call(a,e,t,n,r,o),a}return new i(e,t,n,r,o)},c=function(e){var t=this;e instanceof t?void 0:r("25"),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},l=10,f=o,d=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||f,n.poolSize||(n.poolSize=l),n.release=c,n},p={addPoolingTo:d,oneArgumentPooler:o,twoArgumentPooler:i,threeArgumentPooler:a,fourArgumentPooler:u,fiveArgumentPooler:s};e.exports=p},function(e,t,n){"use strict";function r(e){return this instanceof r?(c.call(this,e),l.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),void this.once("end",o)):new r(e)}function o(){this.allowHalfOpen||this._writableState.ended||a(i,this)}function i(e){e.end()}var a=n(265),u=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=r;var s=n(195);s.inherits=n(160);var c=n(612),l=n(399);s.inherits(r,c);for(var f=u(l.prototype),d=0;d<f.length;d++){var p=f[d];r.prototype[p]||(r.prototype[p]=l.prototype[p])}Object.defineProperty(r.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),r.prototype._destroy=function(e,t){this.push(null),this.end(),a(t,e)}},function(e,t,n){function r(){}function o(e){var t={}.toString.call(e);switch(t){case"[object File]":case"[object Blob]":case"[object FormData]":return!0;default:return!1}}function i(e){if(!_(e))return e;var t=[];for(var n in e)null!=e[n]&&a(t,n,e[n]);return t.join("&")}function a(e,t,n){return Array.isArray(n)?n.forEach(function(n){a(e,t,n)}):void e.push(encodeURIComponent(t)+"="+encodeURIComponent(n))}function u(e){for(var t,n,r={},o=e.split("&"),i=0,a=o.length;i<a;++i)n=o[i],t=n.split("="),r[decodeURIComponent(t[0])]=decodeURIComponent(t[1]);return r}function s(e){var t,n,r,o,i=e.split(/\r?\n/),a={};i.pop();for(var u=0,s=i.length;u<s;++u)n=i[u],t=n.indexOf(":"),r=n.slice(0,t).toLowerCase(),o=E(n.slice(t+1)),a[r]=o;return a}function c(e){return/[\/+]json\b/.test(e)}function l(e){return e.split(/ *; */).shift()}function f(e){return y(e.split(/ *; */),function(e,t){var n=t.split(/ *= */),r=n.shift(),o=n.shift();return r&&o&&(e[r]=o),e},{})}function d(e,t){t=t||{},this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!=this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||"undefined"==typeof this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText,this.setStatusProperties(this.xhr.status),this.header=this.headers=s(this.xhr.getAllResponseHeaders()),this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this.setHeaderProperties(this.header),this.body="HEAD"!=this.req.method?this.parseBody(this.text?this.text:this.xhr.response):null}function p(e,t){var n=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",function(){var e=null,t=null;try{t=new d(n)}catch(r){return e=new Error("Parser is unable to parse the response"),e.parse=!0,e.original=r,e.rawResponse=n.xhr&&n.xhr.responseText?n.xhr.responseText:null,e.statusCode=n.xhr&&n.xhr.status?n.xhr.status:null,n.callback(e)}if(n.emit("response",t),e)return n.callback(e,t);if(t.status>=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;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=u.a.Types,d=["default_set","subreddit_id","domain","show_media","wiki_edit_age","submit_text","spam_links","title","collapse_deleted_comments","wikimode","over_18","related_subreddits","suggested_comment_sort","description","submit_link_label","spam_comments","spam_selfposts","submit_text_label","key_color","language","wiki_edit_karma","hide_ads","header_hover_text","public_traffic","public_description","comment_score_hide_mins","subreddit_type","exclude_banned_modqueue","submission_type"].sort(),p=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:"makeUUID",value:function(e){if(e.uuid)return e.uuid;var n=e.display_name;return t.cleanName(n)}},{key:"makePaginationId",value:function(e){return e.name}},{key:"toggleSubscribed",value:function(e){var t=this,n=this.userIsSubscriber,o=!n,i=this,a=this.stub("userIsSubscriber",o,r(regeneratorRuntime.mark(function u(){var n,r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n={subreddit:i.name},r=o?c.a.post:c.a.del,t.next=5,r(e,n);case 5:return t.abrupt("return",a);case 8:throw t.prev=8,t.t0=t["catch"](0),i;case 11:case"end":return t.stop()}},u,t,[[0,8]])})));return a}}]),t}(u.a);p.type=s.h,p.fields=d,p.PROPERTIES={accountsActive:f.number,advertiserCategory:f.string,bannerImage:f.string,bannerBackgroundImage:f.string,bannerSize:f.arrayOf(f.number),collapseDeletedComments:f.bool,commentScoreHideMins:f.number,createdUTC:f.number,description:f.string,descriptionHTML:f.string,displayName:f.string,displayNamePrefixed:f.string,headerImage:f.string,headerSize:f.arrayOf(f.number),headerTitle:f.string,hideAds:f.bool,iconImage:f.string,iconSize:f.arrayOf(f.number),id:f.string,keyColor:f.string,lang:f.string,name:f.string,over18:f.bool,publicDescription:f.string,publicTraffic:f.nop,quarantine:f.bool,quarantineMessageHTML:f.string,relatedSubreddits:f.array,spoilersEnabled:f.bool,submissionType:f.string,submitLinkLabel:f.string,submitText:f.string,submitTextLabel:f.string,subredditType:f.string,subscribers:f.number,suggestedCommentSort:f.string,title:f.string,url:f.string,userIsBanned:f.bool,userIsContributor:f.bool,userIsModerator:f.bool,userIsMuted:f.bool,userIsSubscriber:f.bool,userSrThemeEnabled:f.bool,whitelistStatus:f.nop,wikiEnabled:f.bool},p.API_ALIASES={accounts_active:"accountsActive",advertiser_category:"advertiserCategory",banner_img:"bannerImage",banner_background_image:"bannerBackgroundImage",banner_size:"bannerSize",collapse_deleted_comments:"collapseDeletedComments",comment_score_hide_mins:"commentScoreHideMins",created_utc:"createdUTC",description_html:"descriptionHTML",display_name:"displayName",display_name_prefixed:"displayNamePrefixed",header_img:"headerImage",header_size:"headerSize",header_title:"headerTitle",hide_ads:"hideAds",icon_img:"iconImage",icon_size:"iconSize",key_color:"keyColor",over_18:"over18",public_description:"publicDescription",public_traffic:"publicTraffic",quarantine_message_html:"quarantineMessageHTML",related_subreddits:"relatedSubreddits",spoilers_enabled:"spoilersEnabled",submission_type:"submissionType",submit_link_label:"submitLinkLabel",submit_text_label:"submitTextLabel",submit_text:"submitText",subreddit_type:"subredditType",user_is_banned:"userIsBanned",user_is_contributor:"userIsContributor",user_is_moderator:"userIsModerator",user_is_muted:"userIsMuted",user_is_subscriber:"userIsSubscriber",user_sr_theme_enabled:"userSrThemeEnabled",whitelist_status:"whitelistStatus",wiki_enabled:"wikiEnabled"},p.cleanName=function(e){return e?e.replace(/^\/?r\//,"").replace(/\/?$/,"").toLowerCase():e},t.a=p},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(26),i=n(185),a=n(5);n.d(t,"i",function(){return s}),n.d(t,"j",function(){return c}),n.d(t,"k",function(){return l}),n.d(t,"l",function(){return f}),n.d(t,"m",function(){return d}),n.d(t,"n",function(){return p}),n.d(t,"o",function(){return h}),n.d(t,"p",function(){return m}),n.d(t,"f",function(){return g}),n.d(t,"g",function(){return _}),n.d(t,"a",function(){return b}),n.d(t,"c",function(){return E}),n.d(t,"b",function(){return T}),n.d(t,"d",function(){return w}),n.d(t,"e",function(){return S}),n.d(t,"h",function(){return O});var u=this,s="FETCHING_AD",c="RECEIVED_AD",l="NO_AD",f="FALLBACK_AD",d="FAILED_AD_FETCH",p="TRACKING_AD",h="VIDEO_AD_BUFFERING",v=function(e,t){return{type:h,hasBuffered:t,postId:e}},m="VIDEO_CURRENT_VIEW_STARTED_AT",y=function(e,t){return{type:m,newTime:t,postId:e}},g=function(e,t){return function(){var n=r(regeneratorRuntime.mark(function o(n){return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:n(v(e,t));case 1:case"end":return r.stop()}},o,u)}));return function(e){return n.apply(this,arguments)}}()},_=function(e,t){return function(){var n=r(regeneratorRuntime.mark(function o(n){return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:n(y(e,t));case 1:case"end":return r.stop()}},o,u)}));return function(e){return n.apply(this,arguments)}}()},b=function(e){return function(){var t=r(regeneratorRuntime.mark(function o(t,r){var a,s;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:a=r(),s=a.posts[e],n.i(i.a)(s.events,i.b.VideoStarted);case 3:case"end":return t.stop()}},o,u)}));return function(e,n){return t.apply(this,arguments)}}()},E=function(e){return function(){var t=r(regeneratorRuntime.mark(function o(t,r){var a,s;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:a=r(),s=a.posts[e],n.i(i.a)(s.events,i.b.VideoViewableImpression),n.i(i.a)(s.events,i.b.VideoFullyViewableImpression),n.i(i.a)(s.events,i.b.VideoPlayedWithSound);case 5:case"end":return t.stop()}},o,u)}));return function(e,n){return t.apply(this,arguments)}}()},T=function(e){return function(){var t=r(regeneratorRuntime.mark(function o(t,r){var a,s;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:a=r(),s=a.posts[e],n.i(i.a)(s.events,i.b.VideoViewableImpression),n.i(i.a)(s.events,i.b.VideoFullyViewableImpression),n.i(i.a)(s.events,i.b.VideoPlayedExpanded);case 5:case"end":return t.stop()}},o,u)}));return function(e,n){return t.apply(this,arguments)}}()},w=function(e,t){return function(){var o=r(regeneratorRuntime.mark(function s(r,o){var c,l,f;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:c=o(),l=c.posts[e],f=t===a.C?i.b.VideoWatched25:t===a.D?i.b.VideoWatched50:t===a.E?i.b.VideoWatched75:t===a.F?i.b.VideoWatched95:i.b.VideoWatched100,n.i(i.a)(l.events,f);case 4:case"end":return r.stop()}},s,u)}));return function(e,t){return o.apply(this,arguments)}}()},S=function(e,t){return function(){var o=r(regeneratorRuntime.mark(function s(r,o){var c,l,f;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:c=o(),l=c.posts[e],f=t===a.G?i.b.VideoWatchedSeconds3:t===a.H?i.b.VideoWatchedSeconds5:i.b.VideoWatchedSeconds10,n.i(i.a)(l.events,f);case 4:case"end":return r.stop()}},s,u)}));return function(e,t){return o.apply(this,arguments)}}()},O=function(e){return function(){var t=r(regeneratorRuntime.mark(function i(t,r){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n.i(o.n)("element-hidden",e,r());case 1:case"end":return t.stop()}},i,u)}));return function(e,n){return t.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(626),i=n(629),a=n(25),u=n(22),s=n(148),c=n(1498),l=n(1497);n.d(t,"k",function(){return h}),n.d(t,"j",function(){return y}),n.d(t,"l",function(){return g}),n.d(t,"u",function(){return _}),n.d(t,"q",function(){return b}),n.d(t,"v",function(){return E}),n.d(t,"r",function(){return T}),n.d(t,"w",function(){return w}),n.d(t,"s",function(){return S}),n.d(t,"x",function(){return O}),n.d(t,"m",function(){return P}),n.d(t,"z",function(){return R}),n.d(t,"n",function(){return I}),n.d(t,"o",function(){return A}),n.d(t,"p",function(){return C}),n.d(t,"y",function(){return x}),n.d(t,"t",function(){return N}),n.d(t,"b",function(){return ee}),n.d(t,"c",function(){return te}),n.d(t,"g",function(){return ne}),n.d(t,"d",function(){return re}),n.d(t,"e",function(){return oe}),n.d(t,"f",function(){return ie}),n.d(t,"a",function(){return ae}),n.d(t,"h",function(){return ue}),n.d(t,"i",function(){return se});var f=this,d="MODTOOLS_REMOVAL_PENDING",p="MODTOOLS_REMOVAL_ERROR",h="MODTOOLS_REMOVAL_SUCCESS",v="MODTOOLS_APPROVAL_PENDING",m="MODTOOLS_APPROVAL_ERROR",y="MODTOOLS_APPROVAL_SUCCESS",g="MODTOOLS_DISTINGUISH_SUCCESS",_="MODTOOLS_DISTINGUISH_ERROR",b="MODTOOLS_TOGGLE_LOCK_SUCCESS",E="MODTOOLS_TOGGLE_LOCK_FAILURE",T="MODTOOLS_TOGGLE_NSFW_SUCCESS",w="MODTOOLS_TOGGLE_NSFW_FAILURE",S="MODTOOLS_TOGGLE_SPOILER_SUCCESS",O="MODTOOLS_TOGGLE_SPOILER_FAILURE",P="MODTOOLS_SET_STICKY_COMMENT_SUCCESS",R="MODTOOLS_SET_STICKY_COMMENT_ERROR",I="FETCHING_MODERATING_SUBREDDITS",A="RECEIVED_MODERATING_SUBREDDITS",C="FETCH_FAILED_MODERATING_SUBREDDITS",x="MODTOOLS_SET_STICKY_POST_ERROR",N="MODTOOLS_SET_STICKY_POST_SUCCESS",M=function(e){return{type:d,spam:e}},k=function(e){return{type:p,spam:e}},D=function(e,t,n){return{type:h,spam:e,thing:t,username:n}},L=function(){return{type:v}},j=function(){return{type:m}},F=function(e,t){return{type:y,thing:e,username:t}},U=function(e){return{type:_,error:e,message:"You can not distinguish that."}},B=function(e,t){return{type:g,thing:e,distinguishType:t}},H=function(e){return{type:b,thing:e}},q=function(e){return{type:E,error:e,message:"Sorry, something went wrong when toggling the lock action."}},V=function(e){return{type:T,thing:e}},G=function(e){return{type:w,error:e,message:"Sorry, something went wrong when marking the post NSFW."}},W=function(e,t){return{type:R,error:e,message:"Failed to "+(t?"sticky":"unsticky")+" comment"}},K=function(e,t){return{type:P,thing:e,isStickied:t}},Y=function(){return{type:I}},z=function(e){return{type:A,apiResponse:e}},X=function(e){return{type:C,error:e}},$=function(e){return{type:S,thing:e}},Q=function(e){return{type:O,error:e,message:"Sorry, something went wrong when trying to spoiler/unspoiler the post."}},J=function(e,t){return{type:x,error:e,message:"Failed to "+(t?"pin":"unpin")+" announcement"}},Z=function(e,t){return{type:N,thing:e,isStickied:t}},ee=function(e,t){return function(){var i=r(regeneratorRuntime.mark(function c(r,i){var l,d,p,h;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return l=i(),d=n.i(u.a)(l),p=n.i(s.a)(e,l),h=l.user.name,r(M(t)),c.prev=5,c.next=8,o.a.remove(d,e,t);case 8:r(D(t,p,h)),c.next=18;break;case 11:if(c.prev=11,c.t0=c["catch"](5),!(c.t0 instanceof a.a)){c.next=17;break}r(k(c.t0)),c.next=18;break;case 17:throw c.t0;case 18:case"end":return c.stop()}},c,f,[[5,11]])}));return function(e,t){return i.apply(this,arguments)}}()},te=function(e){return function(){var t=r(regeneratorRuntime.mark(function i(t,r){var c,l,d,p;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return c=r(),l=n.i(u.a)(c),d=n.i(s.a)(e,c),p=c.user.name,t(L()),i.prev=5,i.next=8,o.a.approve(l,e);case 8:t(F(d,p)),i.next=18;break;case 11:if(i.prev=11,i.t0=i["catch"](5),!(i.t0 instanceof a.a)){i.next=17;break}t(j(i.t0)),i.next=18;break;case 17:throw i.t0;case 18:case"end":return i.stop()}},i,f,[[5,11]])}));return function(e,n){return t.apply(this,arguments)}}()},ne=function(e,t){return function(){var i=r(regeneratorRuntime.mark(function c(r,i){var l,d,p;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return l=i(),d=n.i(u.a)(l),p=n.i(s.a)(e,l),c.prev=3,c.next=6,o.a.distinguish(d,e,t);case 6:r(B(p,t)),c.next=16;break;case 9:if(c.prev=9,c.t0=c["catch"](3),!(c.t0 instanceof a.a)){c.next=15;break}r(U(c.t0)),c.next=16;break;case 15:throw c.t0;case 16:case"end":return c.stop()}},c,f,[[3,9]])}));return function(e,t){return i.apply(this,arguments)}}()},re=function(e){return function(){var t=r(regeneratorRuntime.mark(function i(t,r){var c,l,d;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(c=r(),l=n.i(u.a)(c),d=n.i(s.a)(e,c),i.prev=3,!d.locked){i.next=9;break}return i.next=7,o.a.unlock(l,e);case 7:i.next=11;break;case 9:return i.next=11,o.a.lock(l,e);case 11:t(H(d)),i.next=21;break;case 14:if(i.prev=14,i.t0=i["catch"](3),!(i.t0 instanceof a.a)){i.next=20;break}t(q(i.t0)),i.next=21;break;case 20:throw i.t0;case 21:case"end":return i.stop()}},i,f,[[3,14]])}));return function(e,n){return t.apply(this,arguments)}}()},oe=function(e){return function(){var t=r(regeneratorRuntime.mark(function i(t,r){var c,l,d;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(c=r(),l=n.i(u.a)(c),d=n.i(s.a)(e,c),i.prev=3,!d.over18){i.next=9;break}return i.next=7,o.a.unmarkNSFW(l,e);case 7:i.next=11;break;case 9:return i.next=11,o.a.markNSFW(l,e);case 11:t(V(d)),i.next=21;break;case 14:if(i.prev=14,i.t0=i["catch"](3),!(i.t0 instanceof a.a)){i.next=20;break}t(G(i.t0)),i.next=21;break;case 20:throw i.t0;case 21:case"end":return i.stop()}},i,f,[[3,14]])}));return function(e,n){return t.apply(this,arguments)}}()},ie=function(e){return function(){var t=r(regeneratorRuntime.mark(function i(t,r){var c,l,d;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(c=r(),l=n.i(u.a)(c),d=n.i(s.a)(e,c),i.prev=3,!d.spoiler){i.next=9;break}return i.next=7,o.a.unspoiler(l,e);case 7:i.next=11;break;case 9:return i.next=11,o.a.spoiler(l,e);case 11:t($(d)),i.next=21;break;case 14:if(i.prev=14,i.t0=i["catch"](3),!(i.t0 instanceof a.a)){i.next=20;break}t(Q(i.t0)),i.next=21;break;case 20:throw i.t0;case 21:case"end":return i.stop()}},i,f,[[3,14]])}));return function(e,n){return t.apply(this,arguments)}}()},ae=function(){return function(){var e=r(regeneratorRuntime.mark(function t(e,r){var o,s,c,l;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(o=r(),!o.user.loggedOut){t.next=3;break}return t.abrupt("return");case 3:if(!o.accounts[o.user.name]||o.accounts[o.user.name].isMod){t.next=5;break}return t.abrupt("return");case 5:if(s=n.i(u.a)(o),c=o.moderatingSubreddits.loading===!0||!!o.moderatingSubreddits.names,!c){t.next=9;break}return t.abrupt("return");case 9:return e(Y()),t.prev=10,t.next=13,i.a.fetch(s);case 13:l=t.sent,e(z(l.apiResponse)),t.next=24;break;case 17:if(t.prev=17,t.t0=t["catch"](10),!(t.t0 instanceof a.a)){t.next=23;break}e(X(t.t0)),t.next=24;break;case 23:throw t.t0;case 24:case"end":return t.stop()}},t,f,[[10,17]])}));return function(t,n){return e.apply(this,arguments)}}()},ue=function(e,t){return function(){var i=r(regeneratorRuntime.mark(function l(r,i){var d,p,h,v;return regeneratorRuntime.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return d=i(),p=n.i(u.a)(d),h=n.i(s.a)(e,d),l.prev=3,l.next=6,o.a.setSubredditSticky(p,e,t);case 6:r(Z(h,t)),t&&(v=n.i(c.a)(d)[1],v&&r(Z(v,!1))),l.next=17;break;case 10:if(l.prev=10,l.t0=l["catch"](3),!(l.t0 instanceof a.a)){l.next=16;break}r(J(l.t0,t)),l.next=17;break;case 16:throw l.t0;case 17:case"end":return l.stop()}},l,f,[[3,10]])}));return function(e,t){return i.apply(this,arguments)}}()},se=function(e,t){return function(){var i=r(regeneratorRuntime.mark(function c(r,i){var d,p,h,v;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i(),p=n.i(u.a)(d),h=n.i(s.a)(e,d),c.prev=3,c.next=6,o.a.setStickyComment(p,e,t);case 6:r(K(h,t)),t&&(v=n.i(l.a)(d)[0],v&&r(K(v,!1))),c.next=17;break;case 10:if(c.prev=10,c.t0=c["catch"](3),!(c.t0 instanceof a.a)){c.next=16;break}r(W(h,t)),c.next=17;break;case 16:throw c.t0;case 17:case"end":return c.stop()}},c,f,[[3,10]])}));return function(e,t){return i.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(22),i=n(215),a=n(414),u=n(148),s=n(41),c=n(25),l=n(274),f=n(275),d=n(20),p=n(259),h=n.n(p);n.d(t,"e",function(){return m}),n.d(t,"d",function(){return y}),n.d(t,"b",function(){return g}),n.d(t,"a",function(){return b}),n.d(t,"f",function(){return E}),n.d(t,"c",function(){return T});var v=this,m="REPORT",y="REPORTING",g=function(e){return function(){var t=r(regeneratorRuntime.mark(function o(t,r){var s,c,l,p,h,g,_;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(s=r(),c=n.i(u.a)(e,s),l=d.m(e),p=f.a.doRulesApplyToThingType(l),h={thingId:e,thingType:l},p&&(h.subredditName=c.subreddit),
c.videoPlaytime&&(h.videoPlaytime=c.videoPlaytime),t({type:m,modalType:y,modalProps:h}),!p||s.subredditRules[h.subredditName]){o.next=12;break}return g=i.a(h.subredditName),o.next=12,g(t,r);case 12:if(s.sitewideRules&&s.sitewideRules.length){o.next=16;break}return _=a.a(),o.next=16,_(t,r);case 16:case"end":return o.stop()}},o,v)}));return function(e,n){return t.apply(this,arguments)}}()},_="REPORT__SUBMIT",b="REPORT__SUCCESS",E="REPORT_FAILURE",T=function(e){return function(){var t=r(regeneratorRuntime.mark(function i(t,r){var a,f,d,p,m,y;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return t({type:_}),a=r(),f=n.i(o.a)(a),d=a.user.name,i.prev=4,p=n.i(u.a)(e.thingId,a),e.reportTime=p.videoPlaytime,m={reason:e.ruleName,thing_id:e.thingId,report_time:e.reportTime,api_type:"json"},e.ruleName===l.a.SITEWIDE_RULE_KEYWORD?m.site_reason=e.reason:m.rule_reason=e.reason,i.next=11,n.i(s.a)(f,"POST","api/report",{type:"form",body:m});case 11:y=!1,a.moderatingSubreddits&&h()(a.moderatingSubreddits.names,p.subreddit)&&(y=!0),t({type:b,message:"Thanks for letting us know!",model:p,report:e,username:d,moderatesSub:y}),i.next=21;break;case 16:if(i.prev=16,i.t0=i["catch"](4),t({type:E}),i.t0 instanceof c.a){i.next=21;break}throw i.t0;case 21:case"end":return i.stop()}},i,v,[[4,16]])}));return function(e,n){return t.apply(this,arguments)}}()}},function(e,t,n){"use strict";function r(e){var t=e.useGradient,n=t?"url(#orangeredGradient)":"#FF4500";return a(i.a,{className:"SVG-icon SnooIcon",fallbackIcon:"icon icon-snoo-circled orangered"},void 0,u,a("g",{},void 0,a("circle",{fill:n,cx:"10",cy:"10",r:"10"}),s))}var o=n(0),i=(n.n(o),n(421));t.a=r;var 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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),u=a("defs",{},void 0,a("linearGradient",{id:"orangeredGradient",gradientTransform:"rotate(90)"},void 0,a("stop",{offset:"0%",stopColor:"#FE7B0E"}),a("stop",{offset:"100%",stopColor:"#EF0A22"}))),s=a("path",{fill:"#FFF",d:"M16.67,10A1.46,1.46,0,0,0,14.2,9a7.12,7.12,0,0,0-3.85-1.23L11,4.65,13.14,5.1a1,1,0,1,0,.13-0.61L10.82,4a0.31,0.31,0,0,0-.37.24L9.71,7.71a7.14,7.14,0,0,0-3.9,1.23A1.46,1.46,0,1,0,4.2,11.33a2.87,2.87,0,0,0,0,.44c0,2.24,2.61,4.06,5.83,4.06s5.83-1.82,5.83-4.06a2.87,2.87,0,0,0,0-.44A1.46,1.46,0,0,0,16.67,10Zm-10,1a1,1,0,1,1,1,1A1,1,0,0,1,6.67,11Zm5.81,2.75a3.84,3.84,0,0,1-2.47.77,3.84,3.84,0,0,1-2.47-.77,0.27,0.27,0,0,1,.38-0.38A3.27,3.27,0,0,0,10,14a3.28,3.28,0,0,0,2.09-.61A0.27,0.27,0,1,1,12.48,13.79Zm-0.18-1.71a1,1,0,1,1,1-1A1,1,0,0,1,12.29,12.08Z"})},function(e,t,n){"use strict";var r=n(20);t.a=function(e,t){var o=n.i(r.m)(e),i=t[o+"s"];return i.data?i.data[e]:i[e]}},function(e,t,n){"use strict";var r=n(490),o=n.n(r),i=n(1059),a=n.n(i);n.d(t,"a",function(){return u});var u=function(){var e=arguments.length>0&&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;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(){n(this,e),this.init()}return r(e,[{key:"init",value:function(){this.TCP_CONNECTION="TcpList",this.HTTP_REQUEST="HttpList",this.TRACK_SWITCH="RepSwitchList",this.BUFFER_LEVEL="BufferLevel",this.BUFFER_STATE="BufferState",this.DVR_INFO="DVRInfo",this.DROPPED_FRAMES="DroppedFrames",this.SCHEDULING_INFO="SchedulingInfo",this.REQUESTS_QUEUE="RequestsQueue",this.MANIFEST_UPDATE="ManifestUpdate",this.MANIFEST_UPDATE_STREAM_INFO="ManifestUpdatePeriodInfo",this.MANIFEST_UPDATE_TRACK_INFO="ManifestUpdateRepresentationInfo",this.PLAY_LIST="PlayList",this.DVB_ERRORS="DVBErrors"}}]),e}(),i=new o;t["default"]=i,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(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(){n(this,e)}return r(e,null,[{key:"findCencContentProtection",value:function(e){for(var t=null,n=0;n<e.length;++n){var r=e[n];"urn:mpeg:dash:mp4protection:2011"===r.schemeIdUri.toLowerCase()&&"cenc"===r.value.toLowerCase()&&(t=r)}return t}},{key:"getPSSHData",value:function(e){var t=8,n=new DataView(e),r=n.getUint8(t);return t+=20,r>0&&(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<i;){var s=n[r];s&&e(t,s,r,a)}return t})}var o=n(255),i=n(40);e.exports=r},function(e,t){function n(e){var t=e;return t.placeholder}e.exports=n},function(e,t,n){function r(e,t){var n=e[t];return o(n)?n:void 0}var o=n(1193);e.exports=r},function(e,t){function n(e,t){return t=null==t?r:t,!!t&&("number"==typeof e||o.test(e))&&e>-1&&e%1==0&&e<t}var r=9007199254740991,o=/^(?:0|[1-9]\d*)$/;e.exports=n},function(e,t,n){function r(e){if(!a(e)||d.call(e)!=u||i(e))return!1;var t=o(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==f}var o=n(202),i=n(254),a=n(113),u="[object Object]",s=Object.prototype,c=Function.prototype.toString,l=s.hasOwnProperty,f=c.call(Object),d=s.toString;e.exports=r},function(e,t,n){function r(e){return"string"==typeof e||!o(e)&&i(e)&&s.call(e)==a}var o=n(27),i=n(113),a="[object String]",u=Object.prototype,s=u.toString;e.exports=r},function(e,t,n){function r(e,t,n){var r=u(e)?o:a;return n&&s(e,t,n)&&(t=void 0),r(e,i(t,3))}var o=n(525),i=n(34),a=n(1087),u=n(27),s=n(255);e.exports=r},function(e,t,n){"use strict";function r(e){if(m){var t=e.node,n=e.children;if(n.length)for(var r=0;r<n.length;r++)y(t,n[r],null);else null!=e.html?f(t,e.html):null!=e.text&&p(t,e.text)}}function o(e,t){e.parentNode.replaceChild(t.node,e),r(t)}function i(e,t){m?e.children.push(t):e.node.appendChild(t.node)}function a(e,t){m?e.html=t:f(e.node,t)}function u(e,t){m?e.text=t:p(e.node,t)}function s(){return this.node.nodeName}function c(e){return{node:e,children:[],html:null,text:null,toString:s}}var l=n(378),f=n(270),d=n(386),p=n(602),h=1,v=11,m="undefined"!=typeof document&&"number"==typeof document.documentMode||"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&/\bEdge\/\d/.test(navigator.userAgent),y=d(function(e,t,n){t.node.nodeType===v||t.node.nodeType===h&&"object"===t.node.nodeName.toLowerCase()&&(null==t.node.namespaceURI||t.node.namespaceURI===l.html)?(r(t),e.insertBefore(t.node,n)):(e.insertBefore(t.node,n),r(t))});c.insertTreeBefore=y,c.replaceChildWithTree=o,c.queueChild=i,c.queueHTML=a,c.queueText=u,e.exports=c},function(e,t,n){"use strict";function r(e,t){return(e&t)===t}var o=n(23),i=(n(11),{MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32,injectDOMPropertyConfig:function(e){var t=i,n=e.Properties||{},a=e.DOMAttributeNamespaces||{},s=e.DOMAttributeNames||{},c=e.DOMPropertyNames||{},l=e.DOMMutationMethods||{};e.isCustomAttribute&&u._isCustomAttributeFunctions.push(e.isCustomAttribute);for(var f in n){u.properties.hasOwnProperty(f)?o("48",f):void 0;var d=f.toLowerCase(),p=n[f],h={attributeName:d,attributeNamespace:null,propertyName:f,mutationMethod:null,mustUseProperty:r(p,t.MUST_USE_PROPERTY),hasBooleanValue:r(p,t.HAS_BOOLEAN_VALUE),hasNumericValue:r(p,t.HAS_NUMERIC_VALUE),hasPositiveNumericValue:r(p,t.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:r(p,t.HAS_OVERLOADED_BOOLEAN_VALUE)};if(h.hasBooleanValue+h.hasNumericValue+h.hasOverloadedBooleanValue<=1?void 0:o("50",f),s.hasOwnProperty(f)){var v=s[f];h.attributeName=v}a.hasOwnProperty(f)&&(h.attributeNamespace=a[f]),c.hasOwnProperty(f)&&(h.propertyName=c[f]),l.hasOwnProperty(f)&&(h.mutationMethod=l[f]),u.properties[f]=h}}}),a=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",u={ID_ATTRIBUTE_NAME:"data-reactid",ROOT_ATTRIBUTE_NAME:"data-reactroot",ATTRIBUTE_NAME_START_CHAR:a,ATTRIBUTE_NAME_CHAR:a+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",properties:{},getPossibleStandardName:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(e){for(var t=0;t<u._isCustomAttributeFunctions.length;t++){var n=u._isCustomAttributeFunctions[t];if(n(e))return!0}return!1},injection:i};e.exports=u},function(e,t,n){"use strict";function r(){o.attachRefs(this,this._currentElement)}var o=n(1265),i=(n(72),n(16),{mountComponent:function(e,t,n,o,i,a){var u=e.mountComponent(t,n,o,i,a);return e._currentElement&&null!=e._currentElement.ref&&t.getReactMountReady().enqueue(r,e),u},getHostNode:function(e){return e.getHostNode()},unmountComponent:function(e,t){o.detachRefs(e,e._currentElement),e.unmountComponent(t)},receiveComponent:function(e,t,n,i){var a=e._currentElement;if(t!==a||i!==e._context){var u=o.shouldUpdateRefs(a,t);u&&o.detachRefs(e,a),e.receiveComponent(t,n,i),u&&e._currentElement&&null!=e._currentElement.ref&&n.getReactMountReady().enqueue(r,e)}},performUpdateIfNecessary:function(e,t,n){e._updateBatchNumber===n&&e.performUpdateIfNecessary(t)}});e.exports=i},function(e,t,n){"use strict";var r=n(29),o=n(1306),i=n(397),a=n(1311),u=n(1307),s=n(1308),c=n(175),l=n(1309),f=n(1312),d=n(1313),p=(n(16),c.createElement),h=c.createFactory,v=c.cloneElement,m=r,y={Children:{map:o.map,forEach:o.forEach,count:o.count,toArray:o.toArray,only:d},Component:i,PureComponent:a,createElement:p,cloneElement:v,isValidElement:c.isValidElement,PropTypes:l,createClass:u.createClass,createFactory:h,createMixin:function(e){return e},DOM:s,version:f,__spread:m};e.exports=y},function(e,t,n){"use strict";function r(e){return void 0!==e.ref}function o(e){return void 0!==e.key}var 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},a=n(29),u=n(101),s=(n(16),n(610),Object.prototype.hasOwnProperty),c=n(608),l={key:!0,ref:!0,__self:!0,__source:!0},f=function(e,t,n,r,o,i,a){var u={$$typeof:c,type:e,key:t,ref:n,props:a,_owner:i};return u};f.createElement=function(e,t,n){var i,a={},c=null,d=null,p=null,h=null;if(null!=t){r(t)&&(d=t.ref),o(t)&&(c=""+t.key),p=void 0===t.__self?null:t.__self,h=void 0===t.__source?null:t.__source;for(i in t)s.call(t,i)&&!l.hasOwnProperty(i)&&(a[i]=t[i])}var v=arguments.length-2;if(1===v)a.children=n;else if(v>1){for(var m=Array(v),y=0;y<v;y++)m[y]=arguments[y+2];a.children=m}if(e&&e.defaultProps){var g=e.defaultProps;for(i in g)void 0===a[i]&&(a[i]=g[i])}return f(e,c,d,p,h,u.current,a)},f.createFactory=function(e){var t=f.createElement.bind(null,e);return t.type=e,t},f.cloneAndReplaceKey=function(e,t){var n=f(e.type,t,e.ref,e._self,e._source,e._owner,e.props);return n},f.cloneElement=function(e,t,n){var i,c=a({},e.props),d=e.key,p=e.ref,h=e._self,v=e._source,m=e._owner;if(null!=t){r(t)&&(p=t.ref,m=u.current),o(t)&&(d=""+t.key);var y;e.type&&e.type.defaultProps&&(y=e.type.defaultProps);for(i in t)s.call(t,i)&&!l.hasOwnProperty(i)&&(void 0===t[i]&&void 0!==y?c[i]=y[i]:c[i]=t[i])}var g=arguments.length-2;if(1===g)c.children=n;else if(g>1){for(var _=Array(g),b=0;b<g;b++)_[b]=arguments[b+2];c.children=_}return f(e.type,d,p,h,v,m,c)},f.isValidElement=function(e){return"object"===("undefined"==typeof e?"undefined":i(e))&&null!==e&&e.$$typeof===c},e.exports=f},function(e,t){"use strict";function n(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);n+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var o=new Error(n);throw o.name="Invariant Violation",o.framesToPop=1,o}e.exports=n},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){n.i(i.a)().track("search_events",e,u({},n.i(a.b)(t),n.i(a.g)(t)))}var i=n(121),a=n(26);n.d(t,"l",function(){return c}),n.d(t,"k",function(){return f}),n.d(t,"h",function(){return d}),n.d(t,"c",function(){return p}),n.d(t,"d",function(){return h}),n.d(t,"b",function(){return v}),n.d(t,"g",function(){return m}),n.d(t,"a",function(){return y}),n.d(t,"e",function(){return g}),n.d(t,"j",function(){return _}),n.d(t,"f",function(){return b}),n.d(t,"i",function(){return E});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=this,c="TOGGLE_OVERLAY",l=function(e){return{type:c,kind:e}},f="CLOSE_OVERLAY",d=function(){return{type:f}},p="COMMUNITY_MENU",h=function(){return l(p)},v="SETTINGS_MENU",m=function(){return l(v)},y="POST_SUBMIT",g=function(){return l(y)},_="SEARCH_BAR",b=function(){return function(){var e=r(regeneratorRuntime.mark(function t(e,n){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:o("cs.search_opened",n()),e(l(_));case 2:case"end":return t.stop()}},t,s)}));return function(t,n){return e.apply(this,arguments)}}()},E=function(){return function(){var e=r(regeneratorRuntime.mark(function t(e,n){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:o("cs.search_cancelled",n()),e(l(_));case 2:case"end":return t.stop()}},t,s)}));return function(t,n){return e.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(22),i=n(1342),a=n(25);n.d(t,"e",function(){return s}),n.d(t,"c",function(){return l}),n.d(t,"f",function(){return d}),n.d(t,"b",function(){return h}),n.d(t,"d",function(){return m}),n.d(t,"a",function(){return g});var u=this,s="PENDING_PREFERENCES",c=function(){return{type:s}},l="RECEIVED_PREFERENCES",f=function(e){return{type:l,preferences:e}},d="FAILED_PREFERENCES",p=function(e){return{type:d,error:e}},h=function(){return function(){var e=r(regeneratorRuntime.mark(function t(e,r){var s,l,d;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(s=r(),l=s.preferencesRequest,!l.pending&&!l.succeeded){t.next=4;break}return t.abrupt("return");case 4:if(s.session.accessToken&&!s.session.unsafeLoggedOut){t.next=6;break}return t.abrupt("return");case 6:return e(c()),t.prev=7,t.next=10,i.a.get(n.i(o.a)(s));case 10:d=t.sent,e(f(d)),t.next=21;break;case 14:if(t.prev=14,t.t0=t["catch"](7),!(t.t0 instanceof a.a)){t.next=20;break}e(p(t.t0)),t.next=21;break;case 20:throw t.t0;case 21:case"end":return t.stop()}},t,u,[[7,14]])}));return function(t,n){return e.apply(this,arguments)}}()},v=function(e){return function(){var t=r(regeneratorRuntime.mark(function s(t,r){var l,d;return regeneratorRuntime.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return l=r(),t(c()),u.prev=2,u.next=5,i.a.patch(n.i(o.a)(l),e);case 5:d=u.sent,t(f(d)),u.next=16;break;case 9:if(u.prev=9,u.t0=u["catch"](2),!(u.t0 instanceof a.a)){u.next=15;break}t(p(u.t0)),u.next=16;break;case 15:throw u.t0;case 16:case"end":return u.stop()}},s,u,[[2,9]])}));return function(e,n){return t.apply(this,arguments)}}()},m="IS_OVER_18",y=function(){return{type:m}},g=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:if(r=n(),e(y()),r.session.accessToken){t.next=5;break}return window.location.reload(),t.abrupt("return");case 5:e(v({over_18:!0})),window.location.reload();case 7:case"end":return t.stop()}},t,u)}));return function(t,n){return e.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")})}}function o(e,t){return e+"_"+t}function i(e,t,n,o,i){var s=this;return function(){var l=r(regeneratorRuntime.mark(function f(r,l){var d,p;return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(r({type:u,modalType:c,modalProps:{featureName:e,isRequired:o,onDecline:i,subredditName:t,thingType:n}}),d=l(),d.subredditRules[t]){s.next=6;break}return p=a.a(t),s.next=6,p(r,l);case 6:case"end":return s.stop()}},f,s)}));return function(e,t){return l.apply(this,arguments)}}()}var a=n(215);n.d(t,"e",function(){return u}),n.d(t,"f",function(){return s}),n.d(t,"d",function(){return c}),t.a=o,t.b=i,n.d(t,"c",function(){return l});var u="RULES_MODAL__DISPLAYED",s="RULES_MODAL__ACCEPTED",c="RULES_MODAL__TYPE",l=function(e,t){return{type:s,featureName:e,subredditName:t}}},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(405),i=n(25),a=n(22),u=n(428);n.d(t,"c",function(){return c}),n.d(t,"b",function(){return f}),n.d(t,"d",function(){return p}),n.d(t,"a",function(){return v});var s=this,c="FETCHING_SAVED",l=function(e,t){return{type:c,id:e,params:t}},f="RECEIVED_SAVED",d=function(e,t){return{type:f,id:e,apiResponse:t}},p="FAILED_SAVED",h=function(e,t){return{type:p,id:e,error:t}},v=function(e){return function(){var t=r(regeneratorRuntime.mark(function c(t,r){var f,p,v,m;return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return f=r(),p=n.i(u.a)(e),t(l(p,e)),s.prev=3,v=n.i(a.a)(f),s.next=7,o.a.get(v,e);case 7:m=s.sent,t(d(p,m)),s.next=18;break;case 11:if(s.prev=11,s.t0=s["catch"](3),!(s.t0 instanceof i.a)){s.next=17;break}t(h(p,s.t0)),s.next=18;break;case 17:throw s.t0;case 18:case"end":return s.stop()}},c,s,[[3,11]])}));return function(e,n){return t.apply(this,arguments)}}()}},function(e,t,n){"use strict";n.d(t,"c",function(){return r}),n.d(t,"d",function(){return o}),n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});var r="SESSION__SET_SESSION",o="SESSION__SESSION_ERROR",i=function(e){return{type:r,payload:{session:e}}},a=function(e){return{type:o,payload:{error:e}}}},function(e,t,n){"use strict";function r(e){return v("div",{className:"DropdownWrapper"},void 0,v(f.Tooltip,{id:e.id,alignment:f.Tooltip.ALIGN.BELOW,offset:8,className:"Dropdown"},void 0,e.children))}function o(e){return v("div",{className:"DropdownModalWrapper"},void 0,v(d.Modal,{id:e.id,className:"DropdownModal"},void 0,e.showX&&v("div",{className:"DropdownClose"},void 0,v(i,{icon:"x",onClick:e.onClick})),v("div",{onClick:e.onClick},void 0,e.children)))}function i(e){var t=n.i(h.a)("DropdownRow__icon icon icon-"+e.icon,{"m-selected":e.isSelected});return v("div",{className:"DropdownRow",onClick:e.onClick},void 0,v("div",{className:e.icon?t:""}),v("div",{className:"DropdownRow__text"},void 0,e.text))}function a(e){return v("div",{className:"DropdownClose"},void 0,v(i,{icon:"x",onClick:e.onClick}))}function u(e){return v(p.b,{href:e.href,className:"DropdownLinkRow"},void 0,v("div",{className:"DropdownLinkRow__icon icon icon-"+e.icon}),v("div",{className:"DropdownLinkRow__text"},void 0,e.text))}var s=n(1644),c=(n.n(s),n(0)),l=n.n(c),f=n(190),d=(n.n(f),n(90)),p=(n.n(d),n(6)),h=n(30);t.e=r,t.d=o,t.a=i,t.b=a,t.c=u;var v=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),m=l.a.PropTypes;r.propTypes={id:m.string.isRequired},o.propTypes={id:m.string.isRequired,onClick:m.func,showX:m.bool},o.defaultProps={onClick:function(){},showX:!1},i.propTypes={icon:m.string.isRequired,text:m.string.isRequired,onClick:m.func,isSelected:m.bool},i.defaultProps={onClick:function(){},isSelected:!1},a.propTypes={onClick:m.func.isRequired},u.propTypes={href:m.string.isRequired,icon:m.string.isRequired,text:m.string.isRequired}},function(e,t,n){"use strict";var r=n(149);n.d(t,"a",function(){return o});var o=function(e){return n.i(r.a)(e)}},function(e,t,n){"use strict";var r=n(9);t.a=function(e,t){return n.i(r.a)(e,t,{emptyDict:"skip"})}},function(e,t,n){"use strict";var r=n(1593);n.d(t,"b",function(){return i}),n.d(t,"a",function(){return u});var o=new r.a(1e3),i={Impression:1,Click:2,CommentsView:3,Upvote:4,Downvote:5,CommentSubmitted:6,ViewableImpression:7,CommentUpvote:8,CommentDownvote:9,VideoViewableImpression:100,VideoFullyViewableImpression:101,VideoPlayedWithSound:102,VideoPlayedExpanded:103,VideoWatched25:104,VideoWatched50:105,VideoWatched75:106,VideoWatched95:107,VideoWatched100:108,VideoStarted:109,VideoWatchedSeconds3:110,VideoWatchedSeconds5:111,VideoWatchedSeconds6:112},a=function(e){if(!o.get(e)){var t=new Image;t.src=e,o.set(e,!0)}},u=function(e,t){e.filter(function(e){return e.type===t}).map(function(e){return e.url}).forEach(a)}},function(e,t,n){"use strict";n.d(t,"a",function(){return l}),n.d(t,"b",function(){return f});var r=1e3,o=60*r,i=60*o,a=24*i,u=365*a,s=function(e){var t=new Date,n=Math.abs(t-1e3*e);return{years:Math.floor(n/u),days:Math.floor(n%u/a),hours:Math.floor(n%a/i),minutes:Math.floor(n%i/o)}},c=function(e,t){var n=[],r=s(e),o=r.years,i=r.days,a=r.hours,u=r.minutes;return 0!==o&&t.years&&n.push(""+o+t.years),0!==i&&t.days&&n.push(""+i+t.days),0!==a&&t.hours&&n.push(a+"h"),0===i&&0===a&&t.minutes&&n.push(""+u+t.minutes),n},l=function(e){return c(e,{years:"y",days:"d",hours:"h",minutes:"m"}).slice(0,1).join(", ")},f=function(e){return c(e,{years:" years",days:" days"}).join(", ")}},function(e,t,n){"use strict";function r(e){if(e.platform.currentPage.urlParams.subredditName)return e.platform.currentPage.urlParams.subredditName;var t=e.platform.currentPage.urlParams.postId;if(!t)return null;if(e.posts["t3_"+t])return e.posts["t3_"+t].subreddit;var n=e.commentsPages.data.current;if(!n)return null;var r=e.commentsPages.data[n];if(!r||0===r.length)return null;var o=e.comments.data[r[0].uuid];return o?o.subreddit:null}function o(e){var t=r(e);if(t)return a()(e,"subreddits."+t.toLowerCase()+".displayNamePrefixed","r/"+t)}var i=n(138),a=n.n(i);t.a=r,t.b=o},function(e,t,n){"use strict";n.d(t,"d",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"c",function(){return i}),n.d(t,"f",function(){return a}),n.d(t,"e",function(){return u}),n.d(t,"a",function(){return s});var r="PWA__SET_INSTALLED_TIMESTAMP",o=function(){return{type:r,timestamp:Date.now()}},i="PWA__SET_IS_INSTALLED",a=function(e){return{type:i,isInstalled:e}},u="PWA__SET_XPROMO_OVERRIDE",s=function(e){return{type:u,isActive:e}}},function(e,t,n){"use strict";function r(){try{if("undefined"!=typeof localStorage&&(localStorage.setItem(o,"yes"),"yes"===localStorage.getItem(o)))return!0}catch(e){return!1}return!1}t.a=r;var o="mobile_reddit_local_storage_feature_test"},function(e,t,n){(function(e){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)&&"object"===a(e)?e.exports=s(n(0),n(3),n(4),n(370)):(o=[n(0),n(3),n(4),n(370)],r=s,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i)))}(this,function(e,t,r,o){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([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(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":a(t))&&"function"!=typeof t?e:t}function u(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.TooltipShutter=t.TooltipTarget=t.Tooltip=t._TooltipShutter=t._TooltipTarget=t._Tooltip=t.toggleTooltip=t.TOGGLE_TOOLTIP=void 0;var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c="function"==typeof Symbol&&"symbol"===a(Symbol.iterator)?function(e){return"undefined"==typeof e?"undefined":a(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":"undefined"==typeof e?"undefined":a(e)},l=n(1),f=r(l),d=n(2),p=n(3),h=n(9),v=f["default"].PropTypes,m={ABOVE:"above",BELOW:"below",LEFT:"left",RIGHT:"right"},y={HOVER:"hover",CLICK:"click",BOTH:"both"},g=16,_={position:"fixed",borderWidth:1,borderStyle:"solid",backgroundColor:"white",zIndex:1e3},b=function(e,t,n,r){var o=e.offsetHeight,i=e.offsetWidth,a=t.getBoundingClientRect(),u=a.top,s=a.left,c=a.width,l=a.height;switch(n){case m.LEFT:u+=l/2,u-=o/2,s+=-r-i;break;case m.RIGHT:u+=l/2,u-=o/2,s+=c+r;break;case m.ABOVE:u+=-r-o,s+=c/2,s-=i/2;break;case m.BELOW:u+=l+r,s+=c/2,s-=i/2}return{top:u,left:s}},E=function(e,t,n,r){if(e){var o=function(){if("undefined"==typeof self||"null"==typeof self)return{v:void 0};var o=n,i=e.offsetHeight,a=e.offsetWidth;if(n===m.ABOVE){var u=t.getBoundingClientRect(),s=u.top,c=u.height;s-c-i<0&&(s+c+i<self.innerHeight?o=m.BELOW:s<self.innerHeight/2&&(o=m.BELOW))}else if(n===m.BELOW){var l=t.getBoundingClientRect(),f=l.top,d=l.height;f+d+i>self.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+a<self.innerWidth?o=m.RIGHT:h<self.innerWidth/2&&(o=m.RIGHT))}else if(n===m.RIGHT){var y=t.getBoundingClientRect(),g=y.left,_=y.width;g+_+a>self.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<u;c++)s[c]=arguments[c];return n=r=i(this,(e=Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),r.handleOpenTooltip=function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),r.props.onToggleTooltip(e.currentTarget)},r.handleCloseTooltip=function(e){r.props.onToggleTooltip(null)},a=n,i(r,a)}return u(t,e),s(t,[{key:"makeHandler",value:function(){var e=this,t=this.props.type;if(t===y.HOVER)return{onMouseEnter:this.handleOpenTooltip,onMouseLeave:this.handleCloseTooltip};if(t===y.CLICK)return{onClick:this.handleOpenTooltip};var n=function(){var t=!1;return{v:{onMouseEnter:e.handleOpenTooltip,onMouseLeave:function(n){t||e.handleCloseTooltip(n)},onClick:function(n){t=!0,e.handleOpenTooltip(n)}}}}();return"object"===("undefined"==typeof n?"undefined":c(n))?n.v:void 0}},{key:"render",value:function(){var e=this.props.children;return"string"==typeof e?f["default"].createElement("span",this.makeHandler(),e):f["default"].cloneElement(f["default"].Children.only(e),this.makeHandler())}}]),t}(f["default"].Component);P.propTypes={id:v.string.isRequired,children:v.oneOfType([v.string,v.element]).isRequired,type:v.oneOf((0,h.values)(y)),onToggleTooltip:v.func},P.defaultProps={type:y.HOVER,onToggleTooltip:function(){}};var R=t._TooltipShutter=function(e){function t(){var e,n,r,a;o(this,t);for(var u=arguments.length,s=Array(u),c=0;c<u;c++)s[c]=arguments[c];return n=r=i(this,(e=Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),r.handleClick=function(e){r.props.tooltipId&&r.props.onToggleTooltip(null)},a=n,i(r,a)}return u(t,e),s(t,[{key:"componentDidMount",value:function(){document.addEventListener("click",this.handleClick)}},{key:"componentWillUnmount",value:function(){document.removeEventListener(this.handleClick)}},{key:"render",value:function(){return!1}}]),t}(f["default"].Component);R.propTypes={tooltipId:v.oneOfType([v.string,v["void"]]),onToggleTooltip:v.func.isRequired};var I=(0,p.createSelector)(function(e,t){return e.widgets.tooltip.id===t.id},function(e){return e.widgets.tooltip.target},function(e,t){return{show:e,target:t}}),A=function(e,t){return{onToggleTooltip:function(n){return e(S(t.id,n))}}},C=t.Tooltip=(0,d.connect)(I)(O);C.ALIGN=m;var x=t.TooltipTarget=(0,d.connect)(null,A)(P);x.TYPE=y;var N=(0,p.createSelector)(function(e){return e.widgets.tooltip.id},function(e){return{tooltipId:e}});t.TooltipShutter=(0,d.connect)(N,A)(R)},function(e,t){e.exports=n(0)},function(e,t){e.exports=n(3)},function(e,t){e.exports=n(4)},,,,,,function(e,t){e.exports=n(370)}])})}).call(t,n(64)(e))},function(e,t,n){"use strict";(function(e,r){function o(){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(t){return!1}}function i(){return e.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,n){if(i()<n)throw new RangeError("Invalid typed array length");return e.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(n),t.__proto__=e.prototype):(null===t&&(t=new e(n)),t.length=n),t}function e(t,n,r){if(!(e.TYPED_ARRAY_SUPPORT||this instanceof e))return new e(t,n,r);if("number"==typeof t){if("string"==typeof n)throw new Error("If encoding is specified then the first argument must be a string");return l(this,t)}return u(this,t,n,r)}function u(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?p(e,t,n,r):"string"==typeof t?f(e,t,n):h(e,t)}function s(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function c(e,t,n,r){return s(t),t<=0?a(e,t):void 0!==n?"string"==typeof r?a(e,t).fill(n,r):a(e,t).fill(n):a(e,t)}function l(t,n){if(s(n),t=a(t,n<0?0:0|v(n)),!e.TYPED_ARRAY_SUPPORT)for(var r=0;r<n;++r)t[r]=0;return t}function f(t,n,r){if("string"==typeof r&&""!==r||(r="utf8"),!e.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var o=0|y(n,r);t=a(t,o);var i=t.write(n,r);return i!==o&&(t=t.slice(0,i)),t}function d(e,t){var n=t.length<0?0:0|v(t.length);e=a(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(t,n,r,o){if(n.byteLength,r<0||n.byteLength<r)throw new RangeError("'offset' is out of bounds");if(n.byteLength<r+(o||0))throw new RangeError("'length' is out of bounds");return n=void 0===r&&void 0===o?new Uint8Array(n):void 0===o?new Uint8Array(n,r):new Uint8Array(n,r,o),e.TYPED_ARRAY_SUPPORT?(t=n,t.__proto__=e.prototype):t=d(t,n),t}function h(t,n){if(e.isBuffer(n)){var r=0|v(n.length);return t=a(t,r),0===t.length?t:(n.copy(t,0,0,r),t)}if(n){if("undefined"!=typeof ArrayBuffer&&n.buffer instanceof ArrayBuffer||"length"in n)return"number"!=typeof n.length||$(n.length)?a(t,0):d(t,n);if("Buffer"===n.type&&Z(n.data))return d(t,n.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function v(e){if(e>=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;c<u;c++)if(i(e,c)===i(t,l===-1?0:c-l)){if(l===-1&&(l=c),c-l+1===s)return l*a}else l!==-1&&(c-=c-l),l=-1}else for(n+s>u&&(n=u-s),c=n;c>=0;c--){for(var f=!0,d=0;d<s;d++)if(i(e,c+d)!==i(t,d)){f=!1;break}if(f)return c}return-1}function T(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r),r>o&&(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;a<r;++a){var u=parseInt(t.substr(2*a,2),16);if(isNaN(u))return a;e[n+a]=u}return a}function w(e,t,n,r){return X(W(t,e.length-n),e,n,r)}function S(e,t,n,r){return X(K(t),e,n,r)}function O(e,t,n,r){return S(e,t,n,r)}function P(e,t,n,r){return X(z(t),e,n,r)}function R(e,t,n,r){return X(Y(t,e.length-n),e,n,r)}function I(e,t,n){return 0===t&&n===e.length?Q.fromByteArray(e):Q.fromByteArray(e.slice(t,n))}function A(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i=e[o],a=null,u=i>239?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;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=ee));return n}function x(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function N(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function M(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=G(e[i]);return o}function k(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function D(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)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||n<a)throw new RangeError('"value" argument is out of bounds');if(r+o>t.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<i;++o)e[n+o]=(t&255<<8*(r?o:1-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<i;++o)e[n+o]=t>>>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;a<r;++a){if(n=e.charCodeAt(a),n>55295&&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<e.length;++n)t.push(255&e.charCodeAt(n));return t}function Y(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=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<r&&!(o+n>=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);i<a;++i)if(t[i]!==n[i]){r=t[i],o=n[i];break}return r<o?-1:o<r?1:0},e.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},e.concat=function(t,n){if(!Z(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return e.alloc(0);var r;if(void 0===n)for(n=0,r=0;r<t.length;++r)n+=t[r].length;var o=e.allocUnsafe(n),i=0;for(r=0;r<t.length;++r){var a=t[r];if(!e.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(o,i),i+=a.length}return o},e.byteLength=y,e.prototype._isBuffer=!0,e.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)_(this,t,t+1);return this},e.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)_(this,t,t+3),_(this,t+1,t+2);return this},e.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)_(this,t,t+7),_(this,t+1,t+6),_(this,t+2,t+5),_(this,t+3,t+4);return this},e.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?A(this,0,e):g.apply(this,arguments)},e.prototype.equals=function(t){if(!e.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===e.compare(this,t)},e.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+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;f<s;++f)if(c[f]!==l[f]){a=c[f],u=l[f];break}return a<u?-1:u<a?1:0},e.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},e.prototype.indexOf=function(e,t,n){return b(this,e,t,n,!0)},e.prototype.lastIndexOf=function(e,t,n){return b(this,e,t,n,!1)},e.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t=0|t,isFinite(n)?(n=0|n,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(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),n<t&&(n=t);var o;if(e.TYPED_ARRAY_SUPPORT)o=this.subarray(t,n),o.__proto__=e.prototype;else{var i=n-t;o=new e(i,(void 0));for(var a=0;a<i;++a)o[a]=this[a+t]}return o},e.prototype.readUIntLE=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<t&&(o*=256);)r+=this[e+i]*o;return r},e.prototype.readUIntBE=function(e,t,n){e=0|e,t=0|t,n||D(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(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<t&&(o*=256);)r+=this[e+i]*o;return o*=128,r>=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<n&&(i*=256);)this[t+a]=e/i&255;return t+n},e.prototype.writeUIntBE=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=n-1,a=1;for(this[t+i]=255&e;--i>=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<n&&(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.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<r&&(o=r),o===r)return 0;if(0===t.length||0===this.length)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=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<o-r&&(o=t.length-n+r);var i,a=o-r;if(this===t&&r<n&&n<o)for(i=a-1;i>=0;--i)t[i+n]=this[i+r];else if(a<1e3||!e.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)t[i+n]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+a),n);return a},e.prototype.fill=function(t,n,r,o){if("string"==typeof t){if("string"==typeof n?(o=n,n=0,r=this.length):"string"==typeof r&&(o=r,r=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==o&&"string"!=typeof o)throw new TypeError("encoding must be a string");if("string"==typeof o&&!e.isEncoding(o))throw new TypeError("Unknown encoding: "+o)}else"number"==typeof t&&(t=255&t);if(n<0||this.length<n||this.length<r)throw new RangeError("Out of range index");if(r<=n)return this;n>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0);var a;if("number"==typeof t)for(a=n;a<r;++a)this[a]=t;else{var u=e.isBuffer(t)?t:W(new e(t,o).toString()),s=u.length;for(a=0;a<r-n;++a)this[a+n]=u[a%s]}return this};var te=/[^+\/0-9A-Za-z-_]/g}).call(t,n(191).Buffer,n(36))},function(e,t,n){var r=n(67),o=n(28)("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,u;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),o))?n:i?r(t):"Object"==(u=r(t))&&"function"==typeof t.callee?"Arguments":u}},function(e,t,n){var r=n(67);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){(function(e){function n(e){return Array.isArray?Array.isArray(e):"[object Array]"===m(e)}function r(e){return"boolean"==typeof e}function o(e){return null===e}function i(e){return null==e}function a(e){return"number"==typeof e}function u(e){return"string"==typeof e}function s(e){return"symbol"===("undefined"==typeof e?"undefined":y(e))}function c(e){return void 0===e}function l(e){return"[object RegExp]"===m(e)}function f(e){return"object"===("undefined"==typeof e?"undefined":y(e))&&null!==e}function d(e){return"[object Date]"===m(e)}function p(e){return"[object Error]"===m(e)||e instanceof Error}function h(e){return"function"==typeof e}function v(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===("undefined"==typeof e?"undefined":y(e))||"undefined"==typeof e}function m(e){return Object.prototype.toString.call(e)}var y="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};t.isArray=n,t.isBoolean=r,t.isNull=o,t.isNullOrUndefined=i,t.isNumber=a,t.isString=u,t.isSymbol=s,t.isUndefined=c,t.isRegExp=l,t.isObject=f,t.isDate=d,t.isError=p,t.isFunction=h,t.isPrimitive=v,t.isBuffer=e.isBuffer}).call(t,n(191).Buffer)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){function t(){var e;p=[],h=[],v=[],e={},o(e,a.HTTPRequest.MPD_TYPE,l["default"].DOWNLOAD_ERROR_ID_MANIFEST),o(e,a.HTTPRequest.XLINK_EXPANSION_TYPE,l["default"].DOWNLOAD_ERROR_ID_XLINK),o(e,a.HTTPRequest.INIT_SEGMENT_TYPE,l["default"].DOWNLOAD_ERROR_ID_INITIALIZATION),o(e,a.HTTPRequest.MEDIA_SEGMENT_TYPE,l["default"].DOWNLOAD_ERROR_ID_CONTENT),o(e,a.HTTPRequest.INDEX_SEGMENT_TYPE,l["default"].DOWNLOAD_ERROR_ID_CONTENT),o(e,a.HTTPRequest.BITSTREAM_SWITCHING_SEGMENT_TYPE,l["default"].DOWNLOAD_ERROR_ID_CONTENT),o(e,a.HTTPRequest.OTHER_TYPE,l["default"].DOWNLOAD_ERROR_ID_CONTENT),m=e}function n(e,t){var r=e.request,o=new XMLHttpRequest,i=[],l=!0,d=!0,y=new Date,g=y,_=0,b=function(e){d=!1,r.requestStartDate=y,r.requestEndDate=new Date,r.firstByteDate=r.firstByteDate||y,r.checkExistenceOnly||s.addHttpRequest(r.mediaType,null,r.type,r.url,o.responseURL||null,r.serviceLocation||null,r.range||null,r.requestStartDate,r.firstByteDate,r.requestEndDate,o.status,r.duration,o.getAllResponseHeaders(),e?i:null)},E=function(){p.indexOf(o)!==-1&&(p.splice(p.indexOf(o),1),d&&(b(!1),t>0?(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;++n<r&&t(e[n],n,e)!==!1;);return e}e.exports=n},function(e,t,n){function r(e,t,n){var r=e[t];a.call(e,t)&&o(r,n)&&(void 0!==n||t in e)||(e[t]=n)}var o=n(204),i=Object.prototype,a=i.hasOwnProperty;e.exports=r},function(e,t,n){function r(e,t,n,a,u){var s=-1,c=e.length;for(n||(n=i),u||(u=[]);++s<c;){var l=e[s];t>0&&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));++n<r;)t[n]=e[n];return t}e.exports=n},function(e,t){function n(e){return r(Object(e))}var r=Object.getPrototypeOf;e.exports=n},function(e,t){function n(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||r;return e===n}var r=Object.prototype;e.exports=n},function(e,t){function n(e,t){return e===t||e!==e&&t!==t}e.exports=n},function(e,t){function n(e){return e}e.exports=n},function(e,t,n){function r(e){return o(e)&&u.call(e,"callee")&&(!c.call(e,"callee")||s.call(e)==i)}var o=n(572),i="[object Arguments]",a=Object.prototype,u=a.hasOwnProperty,s=a.toString,c=a.propertyIsEnumerable;e.exports=r},function(e,t,n){function r(e){return"symbol"==("undefined"==typeof e?"undefined":o(e))||i(e)&&s.call(e)==a}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(113),a="[object Symbol]",u=Object.prototype,s=u.toString;e.exports=r},function(e,t,n){"use strict";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=n(23),i=n(379),a=n(380),u=n(384),s=n(596),c=n(597),l=(n(11),{}),f=null,d=function(e,t){e&&(a.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e))},p=function(e){return d(e,!0)},h=function(e){return d(e,!1)},v=function(e){return"."+e._rootNodeID},m={injection:{injectEventPluginOrder:i.injectEventPluginOrder,injectEventPluginsByName:i.injectEventPluginsByName},putListener:function(e,t,n){"function"!=typeof n?o("94",t,"undefined"==typeof n?"undefined":r(n)):void 0;var a=v(e),u=l[t]||(l[t]={});u[a]=n;var s=i.registrationNameModules[t];s&&s.didPutListener&&s.didPutListener(e,t,n)},getListener:function(e,t){var n=l[t],r=v(e);return n&&n[r]},deleteListener:function(e,t){var n=i.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t);var r=l[t];if(r){var o=v(e);delete r[o]}},deleteAllListeners:function(e){var t=v(e);for(var n in l)if(l.hasOwnProperty(n)&&l[n][t]){var r=i.registrationNameModules[n];r&&r.willDeleteListener&&r.willDeleteListener(e,n),delete l[n][t]}},extractEvents:function(e,t,n,r){for(var o,a=i.plugins,u=0;u<a.length;u++){var c=a[u];if(c){var l=c.extractEvents(e,t,n,r);l&&(o=s(o,l))}}return o},enqueueEvents:function(e){e&&(f=s(f,e))},processEventQueue:function(e){var t=f;f=null,e?c(t,p):c(t,h),f?o("95"):void 0,u.rethrowCaughtError()},__purge:function(){l={}},__getListenerBank:function(){return l}};e.exports=m},function(e,t,n){"use strict";function r(e,t,n){var r=t.dispatchConfig.phasedRegistrationNames[n];return y(e,r)}function o(e,t,n){var o=r(e,n,t);o&&(n._dispatchListeners=v(n._dispatchListeners,o),n._dispatchInstances=v(n._dispatchInstances,e))}function i(e){e&&e.dispatchConfig.phasedRegistrationNames&&h.traverseTwoPhase(e._targetInst,o,e)}function a(e){if(e&&e.dispatchConfig.phasedRegistrationNames){var t=e._targetInst,n=t?h.getParentInstance(t):null;h.traverseTwoPhase(n,o,e)}}function u(e,t,n){if(n&&n.dispatchConfig.registrationName){var r=n.dispatchConfig.registrationName,o=y(e,r);o&&(n._dispatchListeners=v(n._dispatchListeners,o),n._dispatchInstances=v(n._dispatchInstances,e))}}function s(e){e&&e.dispatchConfig.registrationName&&u(e._targetInst,null,e)}function c(e){m(e,i)}function l(e){m(e,a)}function f(e,t,n,r){h.traverseEnterLeave(n,r,u,e,t)}function d(e){m(e,s)}var p=n(208),h=n(380),v=n(596),m=n(597),y=(n(16),p.getListener),g={accumulateTwoPhaseDispatches:c,accumulateTwoPhaseDispatchesSkipTarget:l,accumulateDirectDispatches:d,accumulateEnterLeaveDispatches:f};e.exports=g},function(e,t){"use strict";var n={remove:function(e){e._reactInternalInstance=void 0},get:function(e){return e._reactInternalInstance},has:function(e){return void 0!==e._reactInternalInstance},set:function(e,t){e._reactInternalInstance=t}};e.exports=n},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(100),i=n(389),a={view:function(e){if(e.view)return e.view;var t=i(e);if(t.window===t)return t;var n=t.ownerDocument;return n?n.defaultView||n.parentWindow:window},detail:function(e){return e.detail||0}};o.augmentClass(r,a),e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t.compose=t.applyMiddleware=t.bindActionCreators=t.combineReducers=t.createStore=void 0;var o=n(617),i=r(o),a=n(1324),u=r(a),s=n(1323),c=r(s),l=n(1322),f=r(l),d=n(616),p=r(d),h=n(618);r(h);t.createStore=i["default"],t.combineReducers=u["default"],t.bindActionCreators=c["default"],t.applyMiddleware=f["default"],t.compose=p["default"]},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(625),i=n(25),a=n(22),u=n(427);n.d(t,"c",function(){return c}),n.d(t,"b",function(){return f}),n.d(t,"d",function(){return p}),n.d(t,"a",function(){return v});var s=this,c="FETCHING_HIDDEN",l=function(e,t){return{type:c,id:e,params:t}},f="RECEIVED_HIDDEN",d=function(e,t){return{type:f,id:e,apiResponse:t}},p="FAILED_HIDDEN",h=function(e,t){return{type:p,id:e,error:t}},v=function(e){return function(){var t=r(regeneratorRuntime.mark(function c(t,r){var f,p,v,m;return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return f=r(),p=n.i(u.a)(e),t(l(p,e)),s.prev=3,v=n.i(a.a)(f),s.next=7,o.a.get(v,e);case 7:m=s.sent,t(d(p,m)),s.next=18;break;case 11:if(s.prev=11,s.t0=s["catch"](3),!(s.t0 instanceof i.a)){s.next=17;break}t(h(p,s.t0)),s.next=18;break;case 17:throw s.t0;case 18:case"end":return s.stop()}},c,s,[[3,11]])}));return function(e,n){return t.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(17),i=n(95),a=n.n(i),u=n(1343),s=n(22),c=n(7),l=n(10);n.d(t,"d",function(){return d}),n.d(t,"a",function(){return p}),n.d(t,"b",function(){return h}),n.d(t,"e",function(){return v}),n.d(t,"c",function(){return m});var f=this,d="RECEIVED_QUARANTINE_INTERSTITIAL",p=function(e,t){return{type:d,name:e,quarantineMessageHTML:t}},h=function(e){return function(){var t=r(regeneratorRuntime.mark(function i(t,r){var c,l,d;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!r().user.loggedOut){t.next=8;break}c=a.a.getJSON("_options"),c&&"string"!=typeof c||(c={}),c.pref_quarantine_optin=!0,l={domain:o.a.rootReddit},a.a.set("_options",c,l),t.next=11;break;case 8:return d=n.i(s.a)(r()),t.next=11,u.a.postOptIn(d,e);case 11:window.location.reload();case 12:case"end":return t.stop()}},i,f)}));return function(e,n){return t.apply(this,arguments)}}()},v="OPTED_OUT_OF_QUARANTINE",m=function(e){return function(){var t=r(regeneratorRuntime.mark(function i(t,r){var d,p,h;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(!r().user.loggedOut){i.next=8;break}d=a.a.getJSON("_options"),d&&"string"!=typeof d||(d={}),d.pref_quarantine_oportin=!1,p={domain:o.a.rootReddit},a.a.set("_options",d,p),i.next=11;break;case 8:return h=n.i(s.a)(r()),i.next=11,u.a.postOptOut(h,e);case 11:t({type:v}),t(n.i(c.e)(l.a.GET,"/"));case 13:case"end":return i.stop()}},i,f)}));return function(e,n){return t.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(25),i=n(1349),a=n(22),u=n(56);n.d(t,"c",function(){return c}),n.d(t,"b",function(){return f}),n.d(t,"d",function(){return p}),n.d(t,"a",function(){return v});var s=this,c="FETCHING_SUBREDDIT_RULES",l=function(e){return{type:c,subredditName:e}},f="RECEIVED_SUBREDDIT_RULES",d=function(e,t,n){return{type:f,subredditName:e,subredditRules:t,siteRules:n}},p="FAILED_SUBREDDIT_RULES",h=function(e,t){return{type:p,subredditName:e,error:t}},v=function(e){return function(){var t=r(regeneratorRuntime.mark(function c(t,r){var f,p,v,m,y;return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(!n.i(u.a)(e)){s.next=2;break}return s.abrupt("return");case 2:if(f=r(),p=n.i(a.a)(f),v=f.subredditRulesRequests[e],!v||v.failed||v.loading){s.next=7;break}return s.abrupt("return");case 7:return t(l(e)),s.prev=8,s.next=11,i.a.get(p,e);case 11:m=s.sent,y=m.results.map(function(e){return m.getModelFromRecord(e)}),t(d(e,y)),s.next=23;break;case 16:if(s.prev=16,s.t0=s["catch"](8),!(s.t0 instanceof o.a)){s.next=22;break}t(h(e,s.t0)),s.next=23;break;case 22:throw s.t0;case 23:case"end":return s.stop()}},c,s,[[8,16]])}));return function(e,n){return t.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(629),i=n(143),a=n(25),u=n(22),s=n(56);n.d(t,"e",function(){return l}),n.d(t,"c",function(){return d}),n.d(t,"f",function(){return h}),n.d(t,"b",function(){return m}),n.d(t,"d",function(){return y}),n.d(t,"g",function(){return _}),n.d(t,"a",function(){return E});var c=this,l="FETCHING_SUBSCRIBED_SUBREDDITS",f=function(){return{type:l}},d="RECEIVED_SUBSCRIBED_SUBREDDITS",p=function(e){return{type:d,apiResponse:e}},h="FETCH_FAILED_SUBSCRIBED_SUBREDDITS",v=function(e){return{type:h,error:e}},m=function(){return function(){var e=r(regeneratorRuntime.mark(function t(e,r){var i,s,l;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(i=r(),s=i.subscribedSubreddits,!s.fetching){t.next=4;break}return t.abrupt("return");case 4:return e(f()),t.prev=5,t.next=8,o.b.fetch(n.i(u.a)(i));case 8:l=t.sent,e(p(l.apiResponse)),t.next=19;break;case 12:if(t.prev=12,t.t0=t["catch"](5),!(t.t0 instanceof a.a)){t.next=18;break}e(v(t.t0)),t.next=19;break;case 18:throw t.t0;case 19:case"end":return t.stop()}},t,c,[[5,12]])}));return function(t,n){return e.apply(this,arguments)}}()},y="TOGGLED_SUBSCRIPTION",g=function(e,t){return{type:y,name:e,model:t}},_="FAILED_TOGGLE_SUBSCRIPTION",b=function(e,t){return{type:_,name:e,error:t}},E=function(e){var t=e.subredditName,o=e.fullName,l=e.isSubscriber;return function(){var e=r(regeneratorRuntime.mark(function f(e,r){var d,p,h,v;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(!n.i(s.a)(t)){c.next=2;break}return c.abrupt("return");case 2:return d=r(),p=d.subreddits[t],p||(p=i.a.fromJSON({name:o,user_is_subscriber:l})),h=p.toggleSubscribed(n.i(u.a)(d)),e(g(t,h)),c.prev=7,c.next=10,h.promise();case 10:v=c.sent,e(g(t,v)),c.next=22;break;case 14:if(c.prev=14,c.t0=c["catch"](7),e(g(t,p)),!(c.t0 instanceof a.a)){c.next=21;break}e(b(t,c.t0)),c.next=22;break;case 21:throw c.t0;case 22:case"end":return c.stop()}},f,c,[[7,14]])}));return function(t,n){return e.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(7),i=n(20),a=n(25),u=n(22),s=n(5),c=n(185),l=n(148);n.d(t,"b",function(){return d}),n.d(t,"c",function(){return p}),n.d(t,"d",function(){return h}),n.d(t,"a",function(){return g});var f=this,d="VOTE__PENDING",p="VOTE__SUCCESS",h="VOTE__FAILURE",v=function(e,t){return{type:d,id:e,model:t}},m=function(e,t){return{type:p,id:e,model:t}},y=function(e,t){var n=1===e?"upvote":"downvote";return{type:h,message:"Failed to "+n+" the "+t+"."}},g=function(e,t){return function(){var d=r(regeneratorRuntime.mark(function p(r,d){var h,g,_,b,E,T,w,S,O,P;return regeneratorRuntime.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(h=d(),h.session.isValid){f.next=4;break}return r(o.a(s.B)),f.abrupt("return");case 4:return g=n.i(i.m)(e),_=n.i(l.a)(e,h),t&&(g===i.d?(b=_,b.promoted&&(E=1===t?c.b.Upvote:c.b.Downvote,n.i(c.a)(b.events,E))):g===i.a&&(T=_.linkId,w=h.posts[T],w&&w.promoted&&(S=1===t?c.b.CommentUpvote:c.b.CommentDownvote,n.i(c.a)(w.events,S)))),O=_._vote(n.i(u.a)(h),t),r(v(e,O)),f.prev=9,f.next=12,O.promise();case 12:P=f.sent,r(m(e,P)),f.next=21;break;case 16:if(f.prev=16,f.t0=f["catch"](9),r(y(t,g)),f.t0 instanceof a.a){f.next=21;break}throw f.t0;case 21:case"end":return f.stop()}},p,f,[[9,16]])}));return function(e,t){return d.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(1355),i=n(25),a=n(22),u=n(437);n.d(t,"c",function(){return l}),n.d(t,"b",function(){return d}),n.d(t,"d",function(){return h}),n.d(t,"a",function(){return m});var s=this,c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l="FETCHING_WIKI",f=function(e){return c({type:l},e)},d="RECEIVED_WIKI",p=function(e,t){return c({type:d},e,{apiResponse:t})},h="FAILED_WIKI",v=function(e,t){return c({type:h},e,{error:t})},m=function(e){return function(){var t=r(regeneratorRuntime.mark(function c(t,r){var l,d,h,m,y,g,_;return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(l=e.subredditName,d=e.path,d=n.i(u.a)(d),h=r(),m=n.i(u.b)(l,d),y=h.wikiRequests[m],!y){s.next=8;break}return s.abrupt("return");case 8:return t(f(e)),g={subredditName:l,path:d},s.prev=10,s.next=13,o.a.get(n.i(a.a)(h),g);case 13:_=s.sent,t(p(e,_)),s.next=24;break;case 17:if(s.prev=17,s.t0=s["catch"](10),!(s.t0 instanceof i.a)){s.next=23;break}t(v(e,s.t0)),s.next=24;break;case 23:throw s.t0;case 24:case"end":return s.stop()}},c,s,[[10,17]])}));return function(e,n){return t.apply(this,arguments)}}()}},function(e,t,n){"use strict";function r(e){return!(!e||!e.title)&&e.over18}function o(e){var t=e.postHint,r=e.media;return!!(t&&"link"!==t&&"self"!==t||r&&(r.oembed&&"rich"!==r.oembed.type||r.reddit_video)||"imgur.com"===n.i(s.a)(e.cleanUrl)&&e.preview)}function i(e){return e.domain!=="self."+e.subreddit}function a(e){return(e||"").replace(/\.com$/,"")}function u(e){return(e||"").replace(/https?:\/\/i.imgur.com/,"https://imgur.com")}var s=n(681);t.c=r,t.e=o,t.d=i,t.b=a,t.a=u},function(e,t,n){"use strict";function r(e,t){return e?e.replace(/https?:\/\/(?:np\.)?(?:www\.)?reddit\.com\//g,(t||"")+"/"):e}t.a=r},function(e,t,n){"use strict";var r=n(294),o=n(5),i=n(297),a=n(288),u=n(449);n.d(t,"e",function(){return f}),n.d(t,"b",function(){return d}),n.d(t,"c",function(){return h}),n.d(t,"d",function(){return v}),n.d(t,"a",function(){return m});var s=new Set(["control_1","control_2"]),c=o.a[o.b.PWA_ADD_TO_HOME],l={},f=function(e){if(!n.i(u.a)())return!1;var t=n.i(a.a)(e,o.b.PWA_ADD_TO_HOME);if(!t||!t.variant)return!1;var c=t.variant;if(!l[o.b.PWA_ADD_TO_HOME]){var f={experiment:n.i(i.a)(t)};n.i(r.a)(n.i(i.b)(e,"experiment","expose","user_id",f)),l[o.b.PWA_ADD_TO_HOME]=c}return!s.has(c)},d=function(e){if(n.i(u.a)())return n.i(a.b)(e,o.b.PWA_ADD_TO_HOME)},p=function(e){var t=d(e);if(t&&!s.has(t))return t},h=function(e){var t=p(e);switch(t){case c.ADD_TO_HOME:case c.ADD_TO_HOME_PN_PROMPT:return!0;default:return!1}},v=function(e){var t=p(e);switch(t){case c.PN_PROMPT:case c.ADD_TO_HOME_PN_PROMPT:return!0;default:return!1}},m=function(e){return e.pwaXPromoOverride}},function(e,t,n){var r=n(61),o=n(33),i=n(131);e.exports=function(e){return function(t,n,a){var u,s=r(t),c=o(s.length),l=i(a,c);if(e&&n!=n){for(;c>l;)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(",");f<d;)(r=o[p[f++]])?(i(r.prototype,u,!0),i(r.prototype,s,!0)):l=!1;e.exports={ABV:c,CONSTR:l,TYPED:u,VIEW:s}},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;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(){n(this,e)}return r(e,[{key:"extend",value:function(e,t){if(e){var n=!!t&&t.override,r=!!t&&t.publicOnly;for(var o in e)!e.hasOwnProperty(o)||this[o]&&!n||r&&e[o].indexOf("public_")===-1||(this[o]=e[o])}}}]),e}();t["default"]=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(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t,r){n(this,e),this._test=t,this._converter=r}return r(e,[{key:"test",get:function(){return this._test}},{key:"converter",get:function(){return this._converter}}]),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(e,t){for(;e.length<t;)e="0"+e;return e}function i(e,t){return e.representation.startNumber+t}function a(e,t,n){var r="%0",i=void 0,a=void 0,u=void 0,s=void 0,c=void 0,l=void 0,f=t.length,d=r.length;if(!e)return e;for(;;){if(i=e.indexOf("$"+t),i<0)return e;if(a=e.indexOf("$",i+f),a<0)return e;if(u=e.indexOf(r,i+f),u>i&&u<a)switch(s=e.charAt(a-1),c=parseInt(e.substring(u+d,a-1),10),s){case"d":case"i":case"u":l=o(n.toString(),c);break;case"x":l=o(n.toString(16),c);break;case"X":l=o(n.toString(16),c).toUpperCase();break;case"o":l=o(n.toString(8),c);break;default:return e}else l=n;e=e.substring(0,i)+l+e.substring(a+1)}}function u(e,t,n,r){var o=void 0,a=void 0,u=void 0,s=void 0;return a=n.segmentDuration,isNaN(a)&&(a=n.adaptation.period.duration),u=parseFloat((n.adaptation.period.start+r*a).toFixed(5)),s=parseFloat((u+a).toFixed(5)),o=new d["default"],o.representation=n,o.duration=a,o.presentationStartTime=u,o.mediaStartTime=e.calcMediaTimeFromPresentationTime(o.presentationStartTime,n),o.availabilityStartTime=e.calcAvailabilityStartTimeFromPresentationTime(o.presentationStartTime,n.adaptation.period.mpd,t),o.availabilityEndTime=e.calcAvailabilityEndTimeFromPresentationTime(s,n.adaptation.period.mpd,t),o.wallStartTime=e.calcWallTimeForSegment(o,t),o.replacementNumber=i(o,r),o.availabilityIdx=r,o}function s(e,t,n,r,o,u,s,c,l,f){var p=r/u,h=Math.min(o/u,n.adaptation.period.mpd.maxSegmentDuration),v=void 0,m=void 0,y=void 0;return v=e.calcPresentationTimeFromMediaTime(p,n),m=v+h,y=new d["default"],y.representation=n,y.duration=h,y.mediaStartTime=p,y.presentationStartTime=v,y.availabilityStartTime=n.adaptation.period.mpd.manifest.loadedTime,y.availabilityEndTime=e.calcAvailabilityEndTimeFromPresentationTime(m,n.adaptation.period.mpd,t),y.wallStartTime=e.calcWallTimeForSegment(y,t),y.replacementTime=f?f:r,y.replacementNumber=i(y,l),s=a(s,"Number",y.replacementNumber),s=a(s,"Time",y.replacementTime),y.media=s,y.mediaRange=c,y.availabilityIdx=l,y}function c(e,t){if(!t||!t.segments)return null;var n=t.segments.length,r=void 0,o=void 0;if(e<n&&(r=t.segments[e],r&&r.availabilityIdx===e))return r;for(o=0;o<n;o++)if(r=t.segments[o],r&&r.availabilityIdx===e)return r;return null}function l(e,t,n,r,o,i){var a=n.segmentDuration,u=n.adaptation.period.mpd.manifest.minBufferTime,s=n.segmentAvailabilityRange,l={start:e.calcPeriodRelativeTimeFromMpdRelativeTime(n,s.start),end:e.calcPeriodRelativeTimeFromMpdRelativeTime(n,s.end)},f=n.segments,d=2*a,p=i||Math.max(2*u,10*a),h=NaN,v=null,m=void 0,y=void 0,g=void 0;return l.start=Math.max(l.start,0),t&&!e.isTimeSyncCompleted()?(m=Math.floor(l.start/a),y=Math.floor(l.end/a),g={start:m,end:y}):(f&&f.length>0?(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]&&r<n.length-1&&n[r].bitrate<1e3*t&&r++,r}}function U(e){return Re.hasOwnProperty("max")&&Re.max.hasOwnProperty(e)?Re.max[e]:1}function B(e,t){Re.max=Re.max||{},Re.max[e]=t}function H(e){return we[e]}function q(e,t){we[e]=t}function V(){return xe}function G(e){xe=e}function W(){return Ne}function K(e){Ne=e}function Y(){return Xe}function z(e){Xe=e}function X(e){if(e&&Ie&&Ie[e]){var t=Ie[e].getStreamInfo(),n=t?t.id:null,r=ue(e),o=(0,T["default"])(me).create({abrController:_e,streamProcessor:Ie[e],currentValue:r,switchHistory:Ve[e],droppedFramesHistory:Ge,useBufferOccupancyABR:re(e)});if(Ge&&Ge.push(qe,Ue.getPlaybackQuality()),H(e)){var i=N(e),a=p(e,n),u=Ee.getMaxQuality(o),s=u.quality;if(void 0!==i&&s<i&&(s=i),s>a&&(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=new d["default"],o.mediaType=n,o.qualityIndex=i,o.bitrate=t[i].bandwidth,o.width=t[i].width,o.height=t[i].height,o.scanType=t[i].scanType,r.push(o);return r}function ne(e,t){var n=Be.getABRStrategy();if(n===s["default"].ABR_STRATEGY_BOLA)return void(Ke[e]=!0);if(n===s["default"].ABR_STRATEGY_THROUGHPUT)return void(Ke[e]=!1);var r=Be.getStableBufferTime(),o=r,i=.5*r,a=Ke[e],u=t>(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<r[o].width&&ke-r[o-1].width<r[o].width-ke;)o-=1;r.length-2>=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<k.length;n++)r=k[n],e.url===r.url&&e.startTime===r.startTime&&(t=!0);return t}function u(e){var t=e?e.state instanceof Array?e.state:[e.state]:[],n=[];return t.forEach(function(t){var r=b(t);n=n.concat(_(r,e))}),n}function c(e){M=M.filter(function(t){return!(!isNaN(t.startTime)&&void 0===e)&&t.startTime>=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<u||isNaN(a)&&isNaN(t))return i}return null}function _(e,t){return t.hasOwnProperty("time")?[y(e,t.time,t.threshold)]:e.filter(function(e){for(var n in t)if("state"!==n&&t.hasOwnProperty(n)&&e[n]!=t[n])return!1;return!0})}function b(e){var t=void 0;switch(e){case v:t=k;break;case m:t=M;break;default:t=[]}return t}function E(e,t){A.addSchedulingInfo(e.mediaType,new Date,e.type,e.startTime,e.availabilityStartTime,e.duration,e.quality,e.range,t),A.addRequestsQueue(e.mediaType,k,M)}function T(e){e.sender===C&&(k.splice(k.indexOf(e.request),1),e.response&&!e.error&&M.push(e.request),E(e.request,e.error?g:m),I.trigger(s["default"].FRAGMENT_LOADING_COMPLETED,{request:e.request,response:e.response,error:e.error,sender:this}))}function w(e){e.sender===C&&I.trigger(s["default"].FRAGMENT_LOADING_ABANDONED,{streamProcessor:this.getStreamProcessor(),request:e.request,mediaType:e.mediaType})}function S(){M=[],k=[]}function O(){I.off(s["default"].LOADING_COMPLETED,T,this),I.off(s["default"].LOADING_ABANDONED,w,this),C&&C.reset(),S()}e=e||{};var P=this.context,R=(0,h["default"])(P).getInstance().log,I=(0,a["default"])(P).getInstance(),A=e.metricsModel,C=e.fragmentLoader,x=void 0,N=void 0,M=void 0,k=void 0;return x={setStreamProcessor:n,getStreamProcessor:r,getRequests:u,isFragmentLoaded:o,isFragmentLoadedOrPending:i,removeExecutedRequestsBeforeTime:c,abortRequests:l,executeRequest:f,reset:O},t(),x}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),f=n(159),d=r(f),p=n(19),h=r(p),v="loading",m="executed",y="canceled",g="failed";o.__dashjs_factory_name="FragmentModel";var _=l["default"].getClassFactory(o);_.FRAGMENT_MODEL_LOADING=v,_.FRAGMENT_MODEL_EXECUTED=m,_.FRAGMENT_MODEL_CANCELED=y,_.FRAGMENT_MODEL_FAILED=g,l["default"].updateClassFactory(o.__dashjs_factory_name,_),t["default"]=_,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){function e(e){e&&(e.log&&(E=e.log),e.BASE64&&(O=e.BASE64))}function t(){w=[];var e=void 0;e=(0,h["default"])(y).getInstance({BASE64:O}),w.push(e),e=(0,d["default"])(y).getInstance({BASE64:O}),w.push(e),e=(0,s["default"])(y).getInstance({BASE64:O}),w.push(e),P=e,e=(0,l["default"])(y).getInstance({BASE64:O,log:E}),w.push(e),R=e}function n(){return w}function r(e){for(var t=0;t<w.length;t++)if(w[t].systemString===e)return w[t];return null}function o(e){return e===P||e===R}function i(e,t){if(e.byteLength===t.byteLength){for(var n=new Uint8Array(e),r=new Uint8Array(t),o=0;o<n.length;o++)if(n[o]!==r[o])return!1;return!0}return!1}function u(e){var t=void 0,n=void 0,r=void 0,o=void 0,i=[];if(e)for(r=0;r<w.length;++r)for(n=w[r],o=0;o<e.length;++o)if(t=e[o],t.schemeIdUri.toLowerCase()===n.schemeIdURI){var a=n.getInitData(t);a?i.push({ks:w[r],initData:a,cdmData:n.getCDMData()}):this.isClearKey(n)&&i.push({ks:n,initData:null})}return i}function c(e,t){for(var n=[],r=a["default"].parsePSSHList(e),o=0;o<w.length;++o){var i=w[o].systemString,u=!t||i in t;w[o].uuid in r&&u&&n.push({ks:w[o],initData:r[w[o].uuid]})}return n}function f(e,t,n){if("license-release"===n||"individualization-request"===n)return null;var r=null;return t&&t.hasOwnProperty("drmtoday")?r=(0,m["default"])(y).getInstance({BASE64:O}):e.systemString===S["default"].WIDEVINE_KEYSTEM_STRING?r=(0,b["default"])(y).getInstance():e.systemString===S["default"].PLAYREADY_KEYSTEM_STRING?r=(0,g["default"])(y).getInstance():e.systemString===S["default"].CLEARKEY_KEYSTEM_STRING&&(r=(0,T["default"])(y).getInstance()),r}function p(e,t,n){try{return e.getClearKeysFromProtectionData(t,n)}catch(r){return E("Failed to retrieve clearkeys from ProtectionData"),null}}function v(e){for(var t=(function(t){var n=null;return e&&(n=t in e?e[t]:null),n}),n=0;n<w.length;n++){var r=w[n];r.hasOwnProperty("init")&&r.init(t(r.systemString))}}var y=this.context,_=void 0,E=void 0,w=void 0,O=void 0,P=void 0,R=void 0;return _={initialize:t,setProtectionData:v,isClearKey:o,initDataEquals:i,getKeySystems:n,getKeySystemBySystemString:r,getSupportedKeySystemsFromContentProtection:u,getSupportedKeySystems:c,getLicenseServer:f,processClearKeyLicenseRequest:p,setConfig:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(157),a=r(i),u=n(978),s=r(u),c=n(980),l=r(c),f=n(981),d=r(f),p=n(979),h=r(p),v=n(986),m=r(v),y=n(987),g=r(y),_=n(988),b=r(_),E=n(985),T=r(E),w=n(133),S=r(w);o.__dashjs_factory_name="ProtectionKeyController",t["default"]=dashjs.FactoryMaker.getSingletonFactory(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(e){return e}function t(e){return e}var n=void 0;return n={modifyRequestURL:e,modifyRequestHeader:t}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=r(i);o.__dashjs_factory_name="RequestModifier",t["default"]=a["default"].getSingletonFactory(o),e.exports=t["default"]},function(e,t,n){!function(e){e.ns_tt="http://www.w3.org/ns/ttml",e.ns_tts="http://www.w3.org/ns/ttml#styling",e.ns_ttp="http://www.w3.org/ns/ttml#parameter",e.ns_xml="http://www.w3.org/XML/1998/namespace",e.ns_itts="http://www.w3.org/ns/ttml/profile/imsc1#styling",e.ns_ittp="http://www.w3.org/ns/ttml/profile/imsc1#parameter",e.ns_smpte="http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt",e.ns_ebutts="urn:ebu:tt:style"}(t)},function(e,t,n){function r(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=n(1129),i=n(1130),a=n(1131),u=n(1132),s=n(1133);r.prototype.clear=o,r.prototype["delete"]=i,r.prototype.get=a,r.prototype.has=u,r.prototype.set=s,e.exports=r},function(e,t,n){function r(e){this.__data__=new o(e)}var o=n(245),i=n(1146),a=n(1147),u=n(1148),s=n(1149),c=n(1150);r.prototype.clear=i,r.prototype["delete"]=a,r.prototype.get=u,r.prototype.has=s,r.prototype.set=c,e.exports=r},function(e,t){function n(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}e.exports=n},function(e,t,n){function r(e,t){for(var n=e.length;n--;)if(o(e[n][0],t))return n;return-1}var o=n(204);e.exports=r},function(e,t,n){function r(e,t){t=i(t,e)?[t]:o(t);for(var n=0,r=t.length;null!=e&&n<r;)e=e[a(t[n++])];return n&&n==r?e:void 0}var o=n(163),i=n(111),a=n(70);e.exports=r},function(e,t,n){function r(e,t){return u.call(e,t)||"object"==("undefined"==typeof e?"undefined":o(e))&&t in e&&null===i(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(202),a=Object.prototype,u=a.hasOwnProperty;e.exports=r},function(e,t,n){function r(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=o(e.prototype),r=e.apply(n,t);return i(r)?r:n}}var o=n(161),i=n(39);e.exports=r},function(e,t,n){function r(e,t){var n=e.__data__;return o(t)?n["string"==typeof t?"string":"hash"]:n.map}var o=n(1127);e.exports=r},function(e,t,n){function r(e){return y.call(e)}var o=n(1063),i=n(518),a=n(1065),u=n(519),s=n(521),c=n(564),l="[object Map]",f="[object Object]",d="[object Promise]",p="[object Set]",h="[object WeakMap]",v="[object DataView]",m=Object.prototype,y=m.toString,g=c(o),_=c(i),b=c(a),E=c(u),T=c(s);(o&&r(new o(new ArrayBuffer(1)))!=v||i&&r(new i)!=l||a&&r(a.resolve())!=d||u&&r(new u)!=p||s&&r(new s)!=h)&&(r=function(e){var t=y.call(e),n=t==f?e.constructor:void 0,r=n?c(n):void 0;if(r)switch(r){case g:return v;case _:return l;case b:return d;case E:return p;case T:return h}return t}),e.exports=r},function(e,t){function n(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}e.exports=n},function(e,t,n){function r(e,t,n){if(!s(n))return!1;var r="undefined"==typeof t?"undefined":o(t);return!!("number"==r?a(n)&&u(t,n.length):"string"==r&&t in n)&&i(n[t],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(204),a=n(97),u=n(167),s=n(39);e.exports=r},function(e,t,n){var r=n(166),o=r(Object,"create");e.exports=o},function(e,t){function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}e.exports=n},function(e,t){e.exports={}},function(e,t,n){function r(e,t,n,r){e=i(e)?e:s(e),n=n&&!r?u(n):0;var l=e.length;return n<0&&(n=c(l+n,0)),a(e)?n<=l&&e.indexOf(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<i.length;)i[a++]=arguments[a];return t.nextTick(function(){e.apply(null,i)})}}!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports=n:e.exports=t.nextTick}).call(t,n(114))},function(e,t,n){"use strict";function r(e){return Object.prototype.hasOwnProperty.call(e,v)||(e[v]=p++,f[e[v]]={}),f[e[v]]}var o,i=n(29),a=n(379),u=n(1257),s=n(595),c=n(1290),l=n(390),f={},d=!1,p=0,h={topAbort:"abort",topAnimationEnd:c("animationend")||"animationend",topAnimationIteration:c("animationiteration")||"animationiteration",topAnimationStart:c("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:c("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},v="_reactListenersID"+String(Math.random()).slice(2),m=i({},u,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(m.handleTopLevel),m.ReactEventListener=e}},setEnabled:function(e){m.ReactEventListener&&m.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!m.ReactEventListener||!m.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,o=r(n),i=a.registrationNameDependencies[e],u=0;u<i.length;u++){var s=i[u];o.hasOwnProperty(s)&&o[s]||("topWheel"===s?l("wheel")?m.ReactEventListener.trapBubbledEvent("topWheel","wheel",n):l("mousewheel")?m.ReactEventListener.trapBubbledEvent("topWheel","mousewheel",n):m.ReactEventListener.trapBubbledEvent("topWheel","DOMMouseScroll",n):"topScroll"===s?l("scroll",!0)?m.ReactEventListener.trapCapturedEvent("topScroll","scroll",n):m.ReactEventListener.trapBubbledEvent("topScroll","scroll",m.ReactEventListener.WINDOW_HANDLE):"topFocus"===s||"topBlur"===s?(l("focus",!0)?(m.ReactEventListener.trapCapturedEvent("topFocus","focus",n),m.ReactEventListener.trapCapturedEvent("topBlur","blur",n)):l("focusin")&&(m.ReactEventListener.trapBubbledEvent("topFocus","focusin",n),m.ReactEventListener.trapBubbledEvent("topBlur","focusout",n)),o.topBlur=!0,o.topFocus=!0):h.hasOwnProperty(s)&&m.ReactEventListener.trapBubbledEvent(s,h[s],n),o[s]=!0)}},trapBubbledEvent:function(e,t,n){return m.ReactEventListener.trapBubbledEvent(e,t,n)},trapCapturedEvent:function(e,t,n){return m.ReactEventListener.trapCapturedEvent(e,t,n)},supportsEventPageXY:function(){if(!document.createEvent)return!1;var e=document.createEvent("MouseEvent");return null!=e&&"pageX"in e},ensureScrollValueMonitoring:function(){if(void 0===o&&(o=m.supportsEventPageXY()),!o&&!d){var e=s.refreshScrollValues;m.ReactEventListener.monitorScrollValue(e),d=!0}}});e.exports=m},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(211),i=n(595),a=n(388),u={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:a,button:function s(e){var s=e.button;return"which"in e?s:2===s?2:4===s?1:0},buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},pageX:function(e){return"pageX"in e?e.pageX:e.clientX+i.currentScrollLeft},pageY:function(e){return"pageY"in e?e.pageY:e.clientY+i.currentScrollTop}};o.augmentClass(r,u),e.exports=r},function(e,t,n){"use strict";var r=n(23),o=(n(11),{}),i={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(e,t,n,o,i,a,u,s){this.isInTransaction()?r("27"):void 0;var c,l;try{this._isInTransaction=!0,c=!0,this.initializeAll(0),l=e.call(t,n,o,i,a,u,s),c=!1}finally{try{if(c)try{this.closeAll(0)}catch(f){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return l},initializeAll:function(e){for(var t=this.transactionWrappers,n=e;n<t.length;n++){var r=t[n];try{this.wrapperInitData[n]=o,this.wrapperInitData[n]=r.initialize?r.initialize.call(this):null}finally{if(this.wrapperInitData[n]===o)try{this.initializeAll(n+1)}catch(i){}}}},closeAll:function(e){this.isInTransaction()?void 0:r("28");for(var t=this.transactionWrappers,n=e;n<t.length;n++){var i,a=t[n],u=this.wrapperInitData[n];try{i=!0,u!==o&&a.close&&a.close.call(this,u),i=!1}finally{if(i)try{this.closeAll(n+1)}catch(s){}}}this.wrapperInitData.length=0}};e.exports=i},function(e,t){"use strict";function n(e){var t=""+e,n=o.exec(t);if(!n)return t;var r,i="",a=0,u=0;for(a=n.index;a<t.length;a++){switch(t.charCodeAt(a)){case 34:r="&quot;";break;case 38:r="&amp;";break;case 39:r="&#x27;";break;case 60:r="&lt;";break;case 62:r="&gt;";break;default:continue}u!==a&&(i+=t.substring(u,a)),u=a+1,i+=r}return u!==a?i+t.substring(u,a):i}function r(e){return"boolean"==typeof e||"number"==typeof e?""+e:n(e)}var o=/["'&<>]/;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="<svg>"+t+"</svg>";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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=function(e,t){return n.i(a.a)(e,t),e.commentIds?(e.children=e.commentIds.join(","),e.api_type="json",e.link_id=e.linkId,delete e.commentIds,delete e.linkId):o()(e,"query.comment")&&(e.comment=e.query.comment,e.context=1),e},d=function(e){return e.user?"user/"+e.user+"/comments.json":e.commentIds?"api/morechildren.json":"comments/"+(e.id||e.linkId).replace(/^t3_/,"")+".json"},p=function(e){var t=e.response.body;if(Array.isArray(t)){var r=t[0].data;r&&r.children&&r.children.length&&r.children.forEach(function(t){e.addModel(s.a.fromJSON(t.data))});var o=t[1].data.children;n.i(c.a)(e,o)}else if(t.json&&t.json.data){var i=t.json.data.things,a=n.i(c.b)(i);n.i(c.a)(e,a)}return e},h=function(e){var t=e.response.body;if(o()(t,"json.data.things.0.data")){var n=t.json.data.things[0].data;e.addResult(u.a.fromJSON(n))}return e};t.a={get:function(e,t){var r=!!t.children,o=d(t),a=f(l({raw_json:1},t));return n.i(i.a)(e,"GET",o,{query:a}).then(function(e){return p(e,r)})},post:function(e,t){var r="api/comment",o={api_type:"json",thing_id:t.thingId,text:t.text,raw_json:1};return n.i(i.a)(e,"POST",r,{body:o,type:"form"}).then(h)},del:function(e,t){var r={id:t};return n.i(i.a)(e,"POST","api/del",{body:r,type:"form"})}}},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(98),i=n.n(o),a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=function(){function e(t){r(this,e),Object.defineProperty(this,"message",{value:t}),Error.hasOwnProperty("captureStackTrace")?Error.captureStackTrace(this,this.constructor):Object.defineProperty(this,"stack",{value:(new Error).stack})}return a(e,[{key:"safeAssignProps",value:function(e){Object.assign(this,i()(e,["message","stack"]))}}]),e}();t.a=u},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=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=a.a.Types,l=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),s(t,[{key:"makeUUID",value:function(e){return""+(e.reasonText||e.reasonTextToShow)}},{key:"getReportReasonToShow",value:function(){return this.reasonTextToShow}}]),t}(a.a);l.type=u.g,l.SITEWIDE_RULE_KEYWORD="site_reason_selected",l.PROPERTIES={nextStepHeader:c.string,nextStepReasons:c.arrayOf(function(e){return l.fromJSON({nextStepHeader:e.nextStepHeader,nextStepReasons:e.nextStepReasons,reasonText:e.reasonText,reasonTextToShow:e.reasonTextToShow,fileComplaint:e.fileComplaint,complaintPrompt:e.complaintPrompt,complaintUrl:e.complaintUrl,complaintButtonText:e.complaintButtonText,complaintPageTitle:e.complaintPageTitle})}),reasonText:c.string,reasonTextToShow:c.string,fileComplaint:c.bool,complaintPrompt:c.string,complaintUrl:c.string,complaintButtonText:c.string,complaintPageTitle:c.string},t.a=l},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=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=a.a.Types,l=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),s(t,[{key:"makeUUID",value:function(e){return e.subredditName+"/"+(e.created_utc||e.createdUTC)}},{key:"doesRuleApplyToThingType",value:function(e){switch(this.kind){case t.RULE_TARGET.COMMENT:return e===u.a;case t.RULE_TARGET.POST:return e===u.d;default:return t.doRulesApplyToThingType(e)}}},{key:"getReportReasonToShow",value:function(){return this.violationReason||this.shortName}}],[{key:"doRulesApplyToThingType",value:function(e){return e===u.d||e===u.a}}]),t}(a.a);l.type=u.i,l.RULE_TARGET={ALL:"all",POST:"link",COMMENT:"comment"},l.PROPERTIES={createdUTC:c.number,description:c.string,descriptionHTML:c.string,kind:c.string,priority:c.number,shortName:c.string,violationReason:c.string,subredditName:c.string},l.API_ALIASES={short_name:"shortName",created_utc:"createdUTC",description_html:"descriptionHTML",violation_reason:"violationReason"},t.a=l},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(1346),u=n(25),s=n(22),c=n(5),l=n(74);n.d(t,"b",function(){return v}),n.d(t,"a",function(){return _});var f=this,d=c.h.VARIANT_RECOMMENDED_SIMILAR_POSTS,p="FETCHING_SIMILAR_POSTS",h=function(e){return{type:p,name:e}},v="RECEIVED_SIMILAR_POSTS",m=function(e,t){return{type:v,postId:e,apiResponse:t}},y="FAILED_SIMILAR_POSTS",g=function(e,t){return{type:y,name:e,error:t}},_=function(e,t){var o=arguments.length>2&&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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),p=u.g.NIGHTMODE,h="●",v=function(e){return!!e&&d("div",{className:"CommunityHeader-error row alert alert-danger alert-bar"},void 0,"There was a problem, please try again",d("span",{className:"CommunityHeader-clear-error-icon icon-clear white",onClick:f._removeErrorRow}))},m=function(e,t){var n=e.iconImage,r=e.bannerImage,o=e.bannerBackgroundImage;e.quarantine&&!e.quarantine_allow_sr_images&&(n="",r="",o=""),r=r||o;var i={},a=["CommunityHeader-banner-icon-holder"];n&&(i.backgroundImage="url("+n+")",a.push("CommunityHeader-banner-icon-holder-image"));var u={},s=["CommunityHeader-banner"];return e.keyColor&&(t===p?(i.borderColor=e.keyColor,i.backgroundImage&&(i.backgroundColor=e.keyColor)):u.backgroundColor=e.keyColor),r&&(s.push("m-with-banner"),u.backgroundImage="url("+r+")"),d("div",{className:s.join(" "),style:u},void 0,d("div",{className:a.join(" "),style:i}))},y=function(e){var t=e?"subscriber":"subscribe";return d("button",{type:"submit",className:"CommunityHeader-"+t+"-button"},void 0," "+(e?"Joined":"Join")+" ")},g=d(c.a,{}),_=function(e){var t=e.subreddit,r=e.subredditRequest,o=e.subscribeError,i=e.theme;if(!t)return r&&r.failed?null:g;var a=!t.quarantine||t.quarantine_allow_subscriber_count,u=null;a&&(u=d("span",{},void 0,n.i(s.a)(t.subscribers)+" members"));var c=void 0;a&&t.accountsActive&&(c=" "+h+" "+n.i(s.a)(t.accountsActive)+" online");var f=v(o),p=m(t,i);return d("div",{className:"CommunityHeader "+(o?"with-error":"")},void 0,p,d("div",{className:"CommunityHeader-text-row"},void 0,d("h4",{className:"CommunityHeader-community-title"},void 0,t.displayNamePrefixed)),d("div",{className:"CommunityHeader-text-row"},void 0,u,c,d(l.a,{subredditName:t.uuid,className:"CommunityHeader-subscribe-form CommunityHeader-no-outline",renderBody:y})),f)},b=n.i(a.createSelector)(function(e,t){return e.subreddits[t.subredditName]},function(e,t){return e.subredditRequests[t.subredditName]},function(){return!1},function(e){return e.theme},function(e,t,n,r){return{subreddit:e,subredditRequest:t,subscribeError:n,theme:r}});t.a=n.i(i.connect)(b)(_)},function(e,t,n){"use strict";function r(e){var t=e.outboundLink,n=e.userId,r=e.href,o=e.onClick,a=e.promoted,u=c()(e,["outboundLink","userId","dispatch"]),s=o||function(){return null};return t?a&&t&&t.url?i.a.createElement("a",p({},u,{href:t.url})):i.a.createElement("a",p({},u,{href:r,onMouseDown:function(e){return 3===e.which||void m(e.target,t,n)},onMouseLeave:function(e){return y(e.target,r)},onTouchStart:function(e){return m(e.target,t)},onClick:s})):i.a.createElement("a",u)}var o=n(0),i=n.n(o),a=n(3),u=(n.n(a),n(4)),s=(n.n(u),n(98)),c=n.n(s),l=n(104),f=n(26),d=n(1602),p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h=i.a.PropTypes,v=function(e,t){if(!t)return e;var r=e.split("?")[0],o=n.i(l.a)(e),i=n.i(l.d)(p({},o,{user_id:t}));return""+r+i},m=function(e,t,r){var o=n.i(d.a)(e);o&&t.expiration>Date.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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),l=i.a.PropTypes,f=function(e){e.stopPropagation()},d=function(e){return c("nav",{className:n.i(s.a)("OverlayMenu",{"m-with-top-nav":!e.fullscreen}),onClick:e.onCloseOverlay},void 0,c("ul",{className:"OverlayMenu-ul list-unstyled",onClick:f},void 0,e.children))};d.propTypes={onCloseOverlay:l.func.isRequired,fullscreen:l.bool};var p=function(e,t){var n=t.onCloseOverlay;return{onCloseOverlay:function(){return n?n():e(u.h())}}};t.a=n.i(a.connect)(null,p)(d)},function(e,t,n){"use strict";var r=n(1672),o=(n.n(r),n(0)),i=n.n(o),a=n(3),u=(n.n(a),n(4)),s=(n.n(u),n(6)),c=n(293),l=n(120),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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p=i.a.PropTypes,h=function(e){return parseInt(e.page||0,10)},v=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[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.length<o||(s=m(n,a,i)),f("nav",{className:"PaginationButtons"},void 0,f("div",{className:"PaginationButtons__buttons "+(t?"m-compact":"")},void 0,u?b(u):null,s?g(s):null))};E.propTypes={records:p.array,compact:p.bool.isRequired,preventUrlCreation:p.bool,pageSize:p.number,currentQueryParams:p.object,pagingPrefix:p.string,prevUrl:p.string,nextUrl:p.string},E.defaultProps={pageSize:25,pagingPrefix:""};var T=function(e,t){return t.compact||e.compact},w=function(e,t){return t.preventUrlCreation?null:t.queryParams||e.platform.currentPage.queryParams},S=function(e,t){return t.preventUrlCreation?null:t.pagingPrefix||e.platform.currentPage.url},O=function(e){return function(t,n){return n[e]}},P=O("records"),R=O("pageSize"),I=O("preventUrlCreation"),A=function(e,t,n,r,o,i){return{compact:e,currentQueryParams:t,records:n,preventUrlCreation:r,pageSize:o,pagingPrefix:i}},C=function(){return n.i(u.createSelector)(T,w,P,I,R,S,A)};t.a=n.i(a.connect)(C)(E)},function(e,t,n){"use strict";function r(e){return e.compact&&!e.single}function o(e,t){var o=r(e),i=n.i(g.d)(e.post),a=n.i(g.e)(e.post),u=k({https:!0}),s=i&&n.i(P.a)(),c=e.subredditIsNSFW||e.unblurred,l=e.subredditShowSpoilers&&!e.unblurred,f=e.post,p=e.editing,h=e.editPending,v=e.expanded,m=e.user,w=e.single,O=e.hideSubredditLabel,C=e.hideWhen,x=e.interceptListingClick,M=e.inTitleExpandoExp,L=e.inMixedViewExp,j=e.isPlaying,F=e.userActivityPage,U=e.onPostClick,B=e.onToggleEdit,H=e.onToggleSavePost,q=e.onToggleHidePost,V=e.onUpdatePostPlaytime,G=e.onStartPlaying,W=e.onStopPlaying,K=e.onReportPost,Y=e.onUpdateSelftext,z=e.toggleExpanded,X=e.toggleShowNSFW,$=e.winWidth,Q=e.z,J=e.onToggleModal,Z=e.moderatingSubreddits,ee=e.reports,te=f.preview&&f.preview.images.length>0||!!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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),C=S.h.VARIANT_TITLE_EXPANDO,x=S.h.VARIANT_MIXED_VIEW,N=new Set(["link","self",""]),M=u.a.PropTypes,k=function(e){return e.https||e.httpsProxy};o.propTypes={post:M.instanceOf(p.a),postId:M.string,user:M.object,compact:M.bool,hideComments:M.bool,hideSubredditLabel:M.bool,hideWhen:M.bool,subredditIsNSFW:M.bool,subredditShowSpoilers:M.bool,showOver18Interstitial:M.bool,single:M.bool,userActivityPage:M.bool,z:M.number,onToggleSavePost:M.func,onToggleHidePost:M.func,onUpdatePostPlaytime:M.func,onReportPost:M.func.isRequired,onToggleModal:M.func.isRequired,onPostClick:M.func},o.defaultProps={z:1,hideWhen:!1,hideSubredditLabel:!1,single:!1,subredditIsNSFW:!1,subredditShowSpoilers:!1,showOver18Interstitial:!1,winWidth:360,videoReportTime:null,onToggleSavePost:function(){},onToggleHidePost:function(){},onUpdatePostPlaytime:function(){},onToggleModal:function(){},onPostClick:function(){}},o.contextTypes={store:M.object};var D=A("div",{className:"blankAd"}),L=n.i(c.createSelector)(function(e){return e.user},function(e,t){return t.postId},function(e,t){return t.single},function(e,t){return t.forceCompact||e.compact},function(e,t){return e.posts[t.postId]},function(e,t){return!!e.expandedPosts[t.postId]},function(e,t){return!!e.unblurredPosts[t.postId]},function(e,t){return e.editingText[t.postId]},function(e){return w.a.withContext({state:e}).enabled(C)},function(e){return w.a.withContext({state:e}).enabled(x)},function(e,t){return e.playingPosts[n.i(O.o)(t.postId)]},function(e){return e.moderatingSubreddits},function(e,t){return e.reports[t.postId]},function(e,t){return!e.preferences.noProfanity&&n.i(g.c)(e.posts[t.postId])},function(e,t,n,r,o,i,a,u,s,c,l,f,d,p){var h=!!u,v=h&&u.pending,m=a||p;return{user:e,postId:t,single:n,compact:r,post:o,expanded:i,unblurred:m,editing:h,editPending:v,inTitleExpandoExp:s,inMixedViewExp:c,isPlaying:l,moderatingSubreddits:f,reports:d}}),j=function(e,t){var r=t.postId;return{toggleExpanded:function(t){return e(h.b(r,t))},toggleShowNSFW:function(){return e(h.c(r))},onToggleEdit:function(){return e(h.d(r))},onUpdateSelftext:function(t){return e(h.e(r,t))},onToggleSavePost:function(){return e(h.f(r))},onToggleHidePost:function(){return e(h.g(r))},onUpdatePostPlaytime:function(t){return e(h.h(r,t))},onStopPlaying:function(){return e(h.i(r))},onStartPlaying:function(){return e(h.j(r))},onReportPost:function(){return e(v.b(r))},onToggleModal:function(){return e(n.i(l.toggleModal)(null))},interceptListingClick:function(t,o,i){return!!t(r)&&(o.preventDefault(),o.stopPropagation(),e(n.i(m.c)(r,i)),!0)}}};t.a=n.i(s.connect)(L,j)(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}var o=n(9);t.a=function(e,t){var i=arguments.length>2&&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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),S=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),w(t,[{key:"buildTitle",value:function(e,t){if(t){var n=e.subreddits[t];return n&&n.title?n.title:void 0}}},{key:l.a.GET,value:function(){function e(e,t){return o.apply(this,arguments)}var o=r(regeneratorRuntime.mark(function i(e,r){var o,a,u,l,v,m,y,T,w,S,O;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(o=r(),!o.platform.shell){i.next=3;break}return i.abrupt("return");case 3:if(a=t.pageParamsToSubredditPostsParams(this),u=n.i(h.a)(a),l=a.subredditName,v=a.multiUser,m=a.multi,y=Promise.all([n.i(g.a)(e),e(f.a(a))]),!l){i.next=10;break}return i.next=10,e(d.a(l));case 10:if(!m||!v){i.next=13;break}return i.next=13,e(p.a(v,m));case 13:if(T=r().subreddits[l],!T||"user"!==T.subredditType){i.next=17;break}return e(n.i(c.k)(T.url)),i.abrupt("return");case 17:return i.next=19,y;case 19:w=r().postsLists[u],S=w&&w.responseCode?w.responseCode:500,e(n.i(c.l)(S)),e(n.i(b.a)(this.buildTitle(r(),l))),e(n.i(E.a)()),O=r(),n.i(_.a)(O,s(O));case 26:case"end":return i.stop()}},i,this)}));return e}()}],[{key:"pageParamsToSubredditPostsParams",value:function(e){var t=e.urlParams,r=e.queryParams,o=t.multi,i=t.multiUser,a=t.sort,u=r.after,s=r.before,c=r.sort,l=t.subredditName;return l=l?l.toLowerCase():null,n.i(m.a)({subredditName:l,multi:o,multiUser:i,sort:a||c,t:n.i(y.a)(r,a),after:u,before:s})}}]),t}(l.b);t.a=S;var O=25},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=n(120),c=n(76),l=n(115),f=n(86),d=n(75),p=n(435),h=n(26),v=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),m=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),v(t,[{key:u.a.GET,value:function(){function e(e,t){return o.apply(this,arguments)}var o=r(regeneratorRuntime.mark(function i(e,r){var o,a,u;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(!r().platform.shell){i.next=2;break}return i.abrupt("return");case 2:return o=t.pageParamsToActivitiesParams(this),i.next=5,Promise.all([e(l.a(o)),e(f.a({name:o.user})),n.i(d.a)(e)]);case 5:a=r(),u=o.activity===l.b?"profile_posts":"profile_comments",n.i(h.a)(a,n.i(h.h)(a,{screen_name:u,target_sort:o.sort,target_filter_time:o.t}));case 8:case"end":return i.stop()}},i,this)}));return e}()}],[{key:"activityUrl",value:function(e,t){return t===l.c?"/user/"+e+"/comments":t===l.b?"/user/"+e:"/user/"+e+"/about"}},{key:"getPageActivity",value:function(e){return e.commentsOrSubmitted||l.b}},{key:"pageParamsToActivitiesParams",value:function(e){var r=e.urlParams,o=e.queryParams,i=r.userName,a=o.sort,u=void 0===a?c.a.CONFIDENCE:a,l=o.before,f=o.after,d=n.i(p.a)(o,u),h=t.getPageActivity(r);return n.i(s.a)({user:i,sort:u,t:d,activity:h,before:l,after:f})}}]),t}(u.b);t.a=m},function(e,t,n){"use strict";function r(e){if(e&&e.user&&e.accounts)return e.accounts[e.user.name]}function o(e,t){var n=e.experimentOverrides,o=t in n,i=o&&n[t],a=r(e);if(o&&!i)return null;if(!a||!a.features[t]){var u=c(e),l=u[t];return l?{experiment_name:t,variant:i||l.variant,id:l.id,version:l.version}:i?{experiment_name:t,variant:i}:null}var f=s({},a.features[t],{experiment_name:t});return i&&(f.variant=i),f}function i(e,t){var n=o(e,t);return n&&n.variant}function a(e,t){var n=r(e);return!!n&&!!o(e,t)}var u=n(4);n.n(u);t.c=r,t.a=o,t.b=i,t.d=a;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=n.i(u.createSelector)(function(e){return e.experiments.models},function(e){for(var t={},n=0;n<e.length;n++){var r=e[n];t[r.name]=r}return t})},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){return(""+e).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")}},function(e,t,n){"use strict";function r(e){var t=e.meta.userAgent||"";return t.indexOf(c)!==-1?c:i()(f,function(e){return t.indexOf(e)!==-1})}var o=n(365),i=n.n(o);n.d(t,"b",function(){return a}),n.d(t,"a",function(){return u}),n.d(t,"d",function(){return l}),t.c=r;var a="Android",u="iPhone",s="iPad",c="Windows Phone",l=[u,s],f=[a,u,s,c]},function(e,t,n){"use strict";function r(){if("undefined"==typeof navigator)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/android/i.test(e)}t.a=r},function(e,t,n){"use strict";function r(e,t,n,r,o){return n||t?r:e?o:null}function o(e,t,n){return n?"spam":t?"removed":e?"approved":null}function i(e){if(!e)return 0;var t=0,n=e[a.a]||{};return e[a.b]&&(t+=Object.keys(e[a.b]).length),Object.values(n).reduce(function(e,t){return e+t},t)}var a=n(285);t.c=r,t.b=o,t.a=i},function(e,t,n){"use strict";var r=n(369),o=n.n(r),i=n(98);n.n(i);n.d(t,"a",function(){return u});var a=(Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},function(e){var t=Object.keys(e);return t.length?"?"+o()(t,function(t){return t+"="+encodeURIComponent(e[t])}).join("&"):""}),u=function(e,t){return""+e+a(t)}},function(e,t,n){"use strict";var r=n(142),o=n.n(r),i=n(17),a=i.a.v2EventUrl;t.a=function(e){var t=o.a.post(a);return t.type("json"),t.send({events:[e]}),new Promise(function(e,n){t.end(function(t,r){t?n(t):e(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(66),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=a.a.Types,c=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"makeUUID",value:function(){return"preferences"}}]),t}(a.a);c.type="preferences",c.PROPERTIES={affiliateLinks:s.bool,allowClicktracking:s.bool,beta:s.bool,clickgadget:s.bool,collapseReadMessages:s.bool,compress:s.bool,credditAutorenew:s.bool,defaultCommentSort:s.string,defaultThemeSr:s.string,domainDetails:s.bool,emailMessages:s.bool,enableDefaultThemes:s.bool,hideAds:s.bool,hideDowns:s.bool,hideFromRobots:s.bool,hideLocationbar:s.bool,hideUps:s.bool,highlightControversial:s.bool,highlightNewComments:s.bool,ignoreSuggestedSort:s.bool,labelNsfw:s.bool,lang:s.string,legacySearch:s.bool,markMessagesRead:s.bool,media:s.string,minCommentScore:s.number,minLinkScore:s.number,monitorMentions:s.bool,newWindow:s.bool,noProfanity:s.bool,numComments:s.number,numsites:s.number,organic:s.bool,otherTheme:s.string,over18:s.bool,privateFeeds:s.bool,publicVotes:s.bool,research:s.bool,showFlair:s.bool,showGoldExpiration:s.bool,showLinkFlair:s.bool,showPromote:s.bool,showStylesheets:s.bool,showTrending:s.bool,storeVisits:s.bool,themeSelector:s.string,threadedMessages:s.bool,threadedModmail:s.bool,useGlobalDefaults:s.bool},c.API_ALIASES={affiliate_links:"affiliateLinks",allow_clicktracking:"allowClicktracking",beta:"beta",clickgadget:"clickgadget",collapse_read_messages:"collapseReadMessages",compress:"compress",creddit_autorenew:"credditAutorenew",default_comment_sort:"defaultCommentSort",default_theme_sr:"defaultThemeSr",domain_details:"domainDetails",email_messages:"emailMessages",enable_default_themes:"enableDefaultThemes",hide_ads:"hideAds",hide_downs:"hideDowns",hide_from_robots:"hideFromRobots",hide_locationbar:"hideLocationbar",hide_ups:"hideUps",highlight_controversial:"highlightControversial",highlight_new_comments:"highlightNewComments",ignore_suggested_sort:"ignoreSuggestedSort",label_nsfw:"labelNsfw",lang:"lang",legacy_search:"legacySearch",mark_messages_read:"markMessagesRead",media:"media",min_comment_score:"minCommentScore",min_link_score:"minLinkScore",monitor_mentions:"monitorMentions",newwindow:"newWindow",no_profanity:"noProfanity",num_comments:"numComments",numsites:"numsites",organic:"organic",other_theme:"otherTheme",over_18:"over18",private_feeds:"privateFeeds",public_votes:"publicVotes",research:"research",show_flair:"showFlair",show_gold_expiration:"showGoldExpiration",show_link_flair:"showLinkFlair",show_promote:"showPromote",show_stylesheets:"showStylesheets",show_trending:"showTrending",store_visits:"storeVisits",themeSelector:"themeSelector",threaded_messages:"threadedMessages",threaded_modmail:"threadedModmail",use_global_defaults:"useGlobalDefaults"},t.a=c},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")}var i=n(142),a=n.n(i),u=n(454),s=(n.n(u),n(25)),c=n(65),l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=function(e,t,n){return new Promise(function(r,o){a.a.post("/loginproxy").send({username:e,password:t,otp:n}).end(function(e,t){e&&e.response?o(new c.a("/loginproxy",[e.response.body],e.status)):e||!t.body?o(new s.a(e,"/loginproxy")):r(t.body)})})},d=function(){return new Promise(function(e,t){a.a.post("/refreshproxy").end(function(n,r){return n||!r.body?t(n):void e(r.body)})})},p=function(){function e(t){var n=t.accessToken,r=t.tokenType,i=t.expires,a=t.refreshToken,u=t.scope,s=t.unsafeLoggedOut;o(this,e),this.refreshToken=a,this.accessToken=n,this.tokenType=r,this.expires=i,this.scope=u,this.unsafeLoggedOut=s,Object.freeze&&Object.freeze(this)}return l(e,null,[{key:"fromLogin",value:function(){function t(e,t,r){return n.apply(this,arguments)}var n=r(regeneratorRuntime.mark(function o(t,n,r){var i;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,f(t,n,r);case 2:if(i=o.sent,!i.session){o.next=5;break}return o.abrupt("return",{
session:new e(i.session)});case 5:return o.abrupt("return",i);case 6:case"end":return o.stop()}},o,this)}));return t}()}]),l(e,[{key:"refresh",value:function(){function t(){return n.apply(this,arguments)}var n=r(regeneratorRuntime.mark(function o(){var t;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,d();case 2:return t=n.sent,n.abrupt("return",new e(t.session));case 4:case"end":return n.stop()}},o,this)}));return t}()},{key:"toJSON",value:function(){return{accessToken:this.accessToken,tokenType:this.tokenType,expires:new Date(this.expires).getTime(),refreshToken:this.refreshToken,scope:this.scope,unsafeLoggedOut:this.unsafeLoggedOut}}},{key:"tokenString",get:function(){return n.i(u.btoa)(JSON.stringify(this.toJSON()))}},{key:"isValid",get:function(){return(new Date).getTime()<this.expires}},{key:"isLoggedOut",get:function(){return!!this.unsafeLoggedOut}}]),e}();t.a=p},function(e,t,n){"use strict";var r=n(63),o=n.n(r),i=n(95),a=n.n(i),u=n(17);n.d(t,"b",function(){return w}),n.d(t,"c",function(){return S}),n.d(t,"a",function(){return O});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c={app:{name:u.a.appName}},l=function(e){var t=e.platform.currentPage;if(t){if("/"===t.url)return"home";var n=t.urlParams,r=n.subredditName,o=n.pageName,i=n.postId,a=n.postTitle,u=n.commentId,s=n.userName,c=n.commentsOrSubmitted;if(o)switch(o){case"search":return"search"}if(s)switch(c){case"comments":return"profile_comments";case"submitted":return"profile_submitted";default:return"profile_overview"}if(i&&a)return u?"single_comment_thread":"post_detail";if(t.url.includes("/submit"))return"post_submit";if(r){if(r.includes("+"))return"multireddit";switch(r.toLowerCase()){case"popular":return"popular";case"all":return"all";default:return"community"}}}},f=function(e){return{pageType:l(e)}},d=function P(e){var t=e.platform.currentPage,P=t?t.referrer:null;if(P){var n=o.a.parse(P),r=n.hostname;if(!r||P.startsWith("/")){var i=e.meta.protocol;r=e.meta.domain,i&&r||(i=window.location.protocol,r=window.location.hostname),i=i.endsWith(":")?i:i+":",P=i+"//"+r+P}return{domain:r,url:P}}return null},p=function(e){var t=e.platform.currentPage,n=e.meta,r=n.userAgent,o=n.domain,i=n.protocol,a=t?i+"://"+o+t.url:void 0;return{user_agent:r,domain:o,base_url:a}},h=function(e){var t=a.a.get("session_tracker"),n=e.sessionTracker.value,r=(t||n).split("."),i=r[0],u=parseInt(r[2],10),c={},l=e.platform.history;if(l&&l.length){var f=l[0],d=o.a.parse(f.referrer),p=d.hostname;c={referrerDomain:p,referrerUrl:f.referrer}}return s({id:i,createdTimestamp:u},c)},v=1e3,m=60*v,y=60*m,g=24*y,_=/^0*/,b=function(e){return e.replace(_,"")},E=function R(e){var R=e.user,t=e.loid,n=void 0;R.loggedOut||(n=e.accounts[R.name]);var r=n?n.id:b(t.loid),o={id:"t2_"+r,isAdmin:n&&n.isEmployee,isLoggedIn:!!n,cookieCreatedTimestamp:parseInt(t.loidCreated,10),createdTimestamp:n?1e3*n.createdUTC:null};if(n){o.hasPremium=n.isGold,o.isPremiumSubscriber=n.hasGoldSubscription,o.numberCoins=n.coins||0;var i=n,a=i.goldExpiration,u=a?1e3*a-Date.now():0;o.numberPremiumDaysRemaining=u?Math.ceil(u/g):0}return o},T=function(e){return{actionInfo:f(e),referrer:d(e),request:p(e),session:h(e),user:E(e)}},w=function(e,t,n,r){var o=arguments.length>4&&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<e.byteLength;){var i=e.getUint8(o++);i<128||(i<224?(i=(31&i)<<6,i|=63&e.getUint8(o++)):i<240?(i=(15&i)<<12,i|=(63&e.getUint8(o++))<<6,i|=63&e.getUint8(o++)):(i=(7&i)<<18,i|=(63&e.getUint8(o++))<<12,i|=(63&e.getUint8(o++))<<6,i|=63&e.getUint8(o++))),r.push(String.fromCharCode(i))}else for(;o<e.byteLength;)r.push(String.fromCharCode(e.getUint8(o++)));return r.join("")},o.Utils.utf8ToByteArray=function(e){var t,n;if("undefined"!=typeof TextEncoder)t=(new TextEncoder).encode(e);else for(t=[],n=0;n<e.length;++n){var r=e.charCodeAt(n);r<128?t.push(r):r<2048?(t.push(192|r>>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<e.boxes.length;a++)if(o===e.boxes[a].type){i=a+1;break}}e.boxes.splice(i,0,t)}},t.parseBuffer=o.parseBuffer,t.addBoxProcessor=o.addBoxProcessor,t.createFile=o.createFile,t.createBox=o.createBox,t.createFullBox=o.createFullBox,t.Utils=o.Utils,o.Cursor=function(e){this.offset="undefined"==typeof e?0:e};var i=function(e){this._cursor=new o.Cursor,this.boxes=[],e&&(this._raw=new DataView(e))};i.prototype.fetch=function(e){var t=this.fetchAll(e,!0);return t.length?t[0]:null},i.prototype.fetchAll=function(e,t){var n=[];return i._sweep.call(this,e,n,t),n},i.prototype.parse=function(){for(this._cursor.offset=0,this.boxes=[];this._cursor.offset<this._raw.byteLength;){var e=a.parse(this);if("undefined"==typeof e.type)break;this.boxes.push(e)}return this},i._sweep=function(e,t,n){this.type&&this.type==e&&t.push(this);for(var r in this.boxes){if(t.length&&n)return;i._sweep.call(this.boxes[r],e,t,n)}},i.prototype.write=function(){var e,t=0;for(e=0;e<this.boxes.length;e++)t+=this.boxes[e].getLength(!1);var n=new Uint8Array(t);for(this._rawo=new DataView(n.buffer),this.bytes=n,this._cursor.offset=0,e=0;e<this.boxes.length;e++)this.boxes[e].write();return n.buffer},i.prototype.append=function(e,t){o.Utils.appendBox(this,e,t)};var a=function(){this._cursor=new o.Cursor};a.parse=function(e){var t=new a;return t._offset=e._cursor.offset,t._root=e._root?e._root:e,t._raw=e._raw,t._parent=e,t._parseBox(),e._cursor.offset=t._raw.byteOffset+t._raw.byteLength,t},a.create=function(e){var t=new a;return t.type=e,t.boxes=[],t},a.prototype._boxContainers=["dinf","edts","mdia","meco","mfra","minf","moof","moov","mvex","stbl","strk","traf","trak","tref","udta","vttc","sinf","schi","encv","enca"],a.prototype._boxProcessors={},a.prototype._procField=function(e,t,n){this._parsing?this[e]=this._readField(t,n):this._writeField(t,n,this[e])},a.prototype._procFieldArray=function(e,t,n,r){var o;if(this._parsing)for(this[e]=[],o=0;o<t;o++)this[e][o]=this._readField(n,r);else for(o=0;o<this[e].length;o++)this._writeField(n,r,this[e][o])},a.prototype._procFullBox=function(){this._procField("version","uint",8),this._procField("flags","uint",24)},a.prototype._procEntries=function(e,t,n){var r;if(this._parsing)for(this[e]=[],r=0;r<t;r++)this[e].push({}),n.call(this,this[e][r]);else for(r=0;r<t;r++)n.call(this,this[e][r])},a.prototype._procSubEntries=function(e,t,n,r){var o;if(this._parsing)for(e[t]=[],o=0;o<n;o++)e[t].push({}),r.call(this,e[t][o]);else for(o=0;o<n;o++)r.call(this,e[t][o])},a.prototype._procEntryField=function(e,t,n,r){this._parsing?e[t]=this._readField(n,r):this._writeField(n,r,e[t])},a.prototype._procSubBoxes=function(e,t){var n;if(this._parsing)for(this[e]=[],n=0;n<t;n++)this[e].push(a.parse(this));else for(n=0;n<t;n++)this._rawo?this[e][n].write():this.size+=this[e][n].getLength()},a.prototype._readField=function(e,t){switch(e){case"uint":return this._readUint(t);case"int":return this._readInt(t);case"template":return this._readTemplate(t);case"string":return t===-1?this._readTerminatedString():this._readString(t);case"data":return this._readData(t);case"utf8":return this._readUTF8String();default:return-1}},a.prototype._readInt=function(e){var t=null,n=this._cursor.offset-this._raw.byteOffset;switch(e){case 8:t=this._raw.getInt8(n);break;case 16:t=this._raw.getInt16(n);break;case 32:t=this._raw.getInt32(n);break;case 64:var r=this._raw.getInt32(n),o=this._raw.getInt32(n+4);t=r*Math.pow(2,32)+o}return this._cursor.offset+=e>>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;n<e;n++){var r=this._readUint(8);t+=String.fromCharCode(r)}return t},a.prototype._readTemplate=function(e){var t=this._readUint(e/2),n=this._readUint(e/2);return t+n/Math.pow(2,e/2)},a.prototype._readTerminatedString=function(){for(var e="";this._cursor.offset-this._offset<this._raw.byteLength;){var t=this._readUint(8);if(0===t)break;e+=String.fromCharCode(t)}return e},a.prototype._readData=function(e){var t=e>0?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<this._raw.byteLength;)this.boxes.push(a.parse(this))},a.prototype.append=function(e,t){o.Utils.appendBox(this,e,t)},a.prototype.getLength=function(){if(this._parsing=!1,this._rawo=null,this.size=0,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._boxProcessors[this.type]&&this._boxProcessors[this.type].call(this),this._boxContainers.indexOf(this.type)!==-1)for(var e=0;e<this.boxes.length;e++)this.size+=this.boxes[e].getLength();return this._data&&this._writeData(this._data),this.size},a.prototype.write=function(){switch(this._parsing=!1,this._cursor.offset=this._parent._cursor.offset,this.size){case 0:this._rawo=new DataView(this._parent._rawo.buffer,this._cursor.offset,this.parent._rawo.byteLength-this._cursor.offset);break;case 1:this._rawo=new DataView(this._parent._rawo.buffer,this._cursor.offset,this.largesize);break;default:this._rawo=new DataView(this._parent._rawo.buffer,this._cursor.offset,this.size)}if(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._boxProcessors[this.type]&&this._boxProcessors[this.type].call(this),this._boxContainers.indexOf(this.type)!==-1)for(var e=0;e<this.boxes.length;e++)this.boxes[e].write();return this._data&&this._writeData(this._data),this._parent._cursor.offset+=this.size,this.size},a.prototype._writeInt=function(e,t){if(this._rawo){var n=this._cursor.offset-this._rawo.byteOffset;switch(e){case 8:this._rawo.setInt8(n,t);break;case 16:this._rawo.setInt16(n,t);break;case 32:this._rawo.setInt32(n,t);break;case 64:var r=Math.floor(t/Math.pow(2,32)),o=t-r*Math.pow(2,32);this._rawo.setUint32(n,r),this._rawo.setUint32(n+4,o)}this._cursor.offset+=e>>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<e;n++)this._writeUint(8,t.charCodeAt(n))},a.prototype._writeTerminatedString=function(e){if(0!==e.length){for(var t=0;t<e.length;t++)this._writeUint(8,e.charCodeAt(t));this._writeUint(8,0)}},a.prototype._writeTemplate=function(e,t){var n=Math.floor(t),r=(t-n)*Math.pow(2,e/2);this._writeUint(e/2,n),this._writeUint(e/2,r)},a.prototype._writeData=function(e){var t;if(e)if(this._rawo){if(e instanceof Array){for(var n=this._cursor.offset-this._rawo.byteOffset,t=0;t<e.length;t++)this._rawo.setInt8(n+t,e[t]);this._cursor.offset+=e.length}e instanceof Uint8Array&&(this._root.bytes.set(e,this._cursor.offset),this._cursor.offset+=e.length)}else this.size+=e.length},a.prototype._writeUTF8String=function(e){var t=o.Utils.utf8ToByteArray(e);if(this._rawo)for(var n=new DataView(this._rawo.buffer,this._cursor.offset,t.length),r=0;r<t.length;r++)n.setUint8(r,t[r]);else this.size+=t.length},a.prototype._writeField=function(e,t,n){switch(e){case"uint":this._writeUint(t,n);break;case"int":this._writeInt(t,n);break;case"template":this._writeTemplate(t,n);break;case"string":t==-1?this._writeTerminatedString(n):this._writeString(t,n);break;case"data":this._writeData(n);break;case"utf8":this._writeUTF8String(n)}},a.prototype._boxProcessors.avc1=a.prototype._boxProcessors.encv=function(){this._procFieldArray("reserved1",6,"uint",8),this._procField("data_reference_index","uint",16),this._procField("pre_defined1","uint",16),this._procField("reserved2","uint",16),this._procFieldArray("pre_defined2",3,"uint",32),this._procField("width","uint",16),this._procField("height","uint",16),this._procField("horizresolution","template",32),this._procField("vertresolution","template",32),this._procField("reserved3","uint",32),this._procField("frame_count","uint",16),this._procFieldArray("compressorname",32,"uint",8),this._procField("depth","uint",16),this._procField("pre_defined3","int",16),this._procField("config","data",-1)},a.prototype._boxProcessors.dref=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procSubBoxes("entries",this.entry_count)},a.prototype._boxProcessors.elst=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procEntries("entries",this.entry_count,function(e){this._procEntryField(e,"segment_duration","uint",1===this.version?64:32),this._procEntryField(e,"media_time","int",1===this.version?64:32),this._procEntryField(e,"media_rate_integer","int",16),this._procEntryField(e,"media_rate_fraction","int",16)})},a.prototype._boxProcessors.emsg=function(){this._procFullBox(),this._procField("scheme_id_uri","string",-1),this._procField("value","string",-1),this._procField("timescale","uint",32),this._procField("presentation_time_delta","uint",32),this._procField("event_duration","uint",32),this._procField("id","uint",32),this._procField("message_data","data",-1)},a.prototype._boxProcessors.free=a.prototype._boxProcessors.skip=function(){this._procField("data","data",-1)},a.prototype._boxProcessors.frma=function(){this._procField("data_format","uint",32)},a.prototype._boxProcessors.ftyp=a.prototype._boxProcessors.styp=function(){this._procField("major_brand","string",4),this._procField("minor_version","uint",32);var e=-1;this._parsing&&(e=(this._raw.byteLength-(this._cursor.offset-this._raw.byteOffset))/4),this._procFieldArray("compatible_brands",e,"string",4)},a.prototype._boxProcessors.hdlr=function(){this._procFullBox(),this._procField("pre_defined","uint",32),this._procField("handler_type","string",4),this._procFieldArray("reserved",3,"uint",32),this._procField("name","string",-1)},a.prototype._boxProcessors.mdat=function(){this._procField("data","data",-1)},a.prototype._boxProcessors.mdhd=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._parsing||"string"!=typeof this.language||(this.language=this.language.charCodeAt(0)-96<<10|this.language.charCodeAt(1)-96<<5|this.language.charCodeAt(2)-96),this._procField("language","uint",16),this._parsing&&(this.language=String.fromCharCode((this.language>>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<<u)-1,c=s>>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<<t|o,u+=t;u>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<<o)-1,a=i>>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;f<t;f++)s[c+f]=l[i?f:t-f-1]}var h=n(15),v=n(31),m=n(124),y=n(235),g=n(50),_=n(129),b=n(18),E=n(122),T=n(81),w=n(33),S=n(483),O=n(126).f,P=n(32).f,R=n(300),I=n(153),A="ArrayBuffer",C="DataView",x="prototype",N="Wrong length!",M="Wrong index!",k=h[A],D=h[C],L=h.Math,j=h.RangeError,F=h.Infinity,U=k,B=L.abs,H=L.pow,q=L.floor,V=L.log,G=L.LN2,W="buffer",K="byteLength",Y="byteOffset",z=v?"_b":W,X=v?"_l":K,$=v?"_o":Y;if(y.ABV){if(!b(function(){k(1)})||!b(function(){new k((-1))})||b(function(){return new k,new k(1.5),new k(NaN),k.name!=A})){k=function(e){return E(this,k),new U(S(e))};for(var Q,J=k[x]=U[x],Z=O(U),ee=0;Z.length>ee;)(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<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(93),u=r(a),s=function(){function e(){o(this,e),this.id=null,this.index=-1,this.adaptation=null,this.segmentInfoType=null,this.initialization=null,this.codecs=null,this.codecPrivateData=null,this.segmentDuration=NaN,this.timescale=1,this.startNumber=1,this.indexRange=null,this.range=null,this.presentationTimeOffset=0,this.MSETimeOffset=NaN,this.segmentAvailabilityRange=null,this.availableSegmentsNumber=0,this.bandwidth=NaN,this.width=NaN,this.height=NaN,this.scanType=null,this.maxPlayoutRate=NaN}return i(e,null,[{key:"hasInitialization",value:function(e){return null!==e.initialization||(e.segmentInfoType!==u["default"].BASE_URL||e.segmentInfoType!==u["default"].SEGMENT_BASE)&&null!==e.range}},{key:"hasSegments",value:function(e){return e.segmentInfoType!==u["default"].BASE_URL&&e.segmentInfoType!==u["default"].SEGMENT_BASE&&!e.indexRange}}]),e}();t["default"]=s,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.indexRange=null,this.index=null,this.mediaRange=null,this.media=null,this.duration=NaN,this.replacementTime=null,this.replacementNumber=NaN,this.mediaStartTime=NaN,this.presentationStartTime=NaN,this.availabilityStartTime=NaN,this.availabilityEndTime=NaN,this.availabilityIdx=NaN,this.wallStartTime=NaN,this.representation=null};t["default"]=r,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.AST_IN_FUTURE="astInFuture",this.BUFFER_EMPTY="bufferStalled",this.BUFFER_LOADED="bufferLoaded",this.BUFFER_LEVEL_STATE_CHANGED="bufferStateChanged",this.ERROR="error",this.FRAGMENT_LOADING_COMPLETED="fragmentLoadingCompleted",this.FRAGMENT_LOADING_STARTED="fragmentLoadingStarted",this.FRAGMENT_LOADING_ABANDONED="fragmentLoadingAbandoned",this.LOG="log",this.MANIFEST_LOADED="manifestLoaded",this.METRICS_CHANGED="metricsChanged",this.METRIC_CHANGED="metricChanged",this.METRIC_ADDED="metricAdded",this.METRIC_UPDATED="metricUpdated",this.PERIOD_SWITCH_COMPLETED="periodSwitchCompleted",this.PERIOD_SWITCH_STARTED="periodSwitchStarted",this.QUALITY_CHANGE_REQUESTED="qualityChangeRequested",this.QUALITY_CHANGE_RENDERED="qualityChangeRendered",this.SOURCE_INITIALIZED="sourceInitialized",this.STREAM_INITIALIZED="streamInitialized",this.STREAM_TEARDOWN_COMPLETE="streamTeardownComplete",this.TEXT_TRACKS_ADDED="allTextTracksAdded",this.TEXT_TRACK_ADDED="textTrackAdded",this.CAN_PLAY="canPlay",this.PLAYBACK_ENDED="playbackEnded",this.PLAYBACK_ERROR="playbackError",this.PLAYBACK_NOT_ALLOWED="playbackNotAllowed",this.PLAYBACK_METADATA_LOADED="playbackMetaDataLoaded",this.PLAYBACK_PAUSED="playbackPaused",this.PLAYBACK_PLAYING="playbackPlaying",this.PLAYBACK_PROGRESS="playbackProgress",this.PLAYBACK_RATE_CHANGED="playbackRateChanged",this.PLAYBACK_SEEKED="playbackSeeked",this.PLAYBACK_SEEKING="playbackSeeking",this.PLAYBACK_SEEK_ASKED="playbackSeekAsked",this.PLAYBACK_STARTED="playbackStarted",this.PLAYBACK_TIME_UPDATED="playbackTimeUpdated"}return i(t,e),t}(c["default"]),f=new l;t["default"]=f,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(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t,r){if(n(this,e),r&&"persistent"!==r&&"temporary"!==r)throw new Error("Invalid ClearKey key set type! Must be one of 'persistent' or 'temporary'");this.keyPairs=t,this.type=r}return r(e,[{key:"toJWK",value:function(){var e=void 0,t=this.keyPairs.length,n={keys:[]};for(e=0;e<t;e++){var r={kty:"oct",alg:"A128KW",kid:this.keyPairs[e].keyID,k:this.keyPairs[e].key};n.keys.push(r)}this.type&&(n.type=this.type);var o=JSON.stringify(n),i=o.length,a=new ArrayBuffer(i),u=new Uint8Array(a);for(e=0;e<i;e++)u[e]=o.charCodeAt(e);return a}}]),e}();t["default"]=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(e,t){n(this,o),this.sessionToken=e,this.error=t};t["default"]=r,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(e,t,r,i){n(this,o),this.sessionToken=e,this.message=t,this.defaultURL=r,this.messageType=i?i:"license-request"};t["default"]=r,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(e,t){n(this,o),this.keyID=e,this.key=t};t["default"]=r,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(e,t){n(this,o),this.keySystem=e,this.ksConfiguration=t};t["default"]=r,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(e,t,r,i,a){n(this,o),this.initDataTypes=["cenc"],e&&e.length&&(this.audioCapabilities=e),t&&t.length&&(this.videoCapabilities=t),this.distinctiveIdentifier=r,this.persistentState=i,this.sessionTypes=a};t["default"]=r,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(e,t){n(this,o),this.initData=e,this.initDataType=t};t["default"]=r,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){function e(){"undefined"!=typeof window&&"undefined"!=typeof navigator&&(M=window.VTTCue||window.TextTrackCue,D=[],L=[],j=-1,F=0,U=0,B=0,H=0,q=null,V=null,K=!1,Y=2147483647,G=!!navigator.userAgent.match(/Chrome/)&&!navigator.userAgent.match(/Edge/),void 0!==document.fullscreenElement?W="fullscreenElement":void 0!==document.webkitIsFullScreen?W="webkitIsFullScreen":document.msFullscreenElement?W="msFullscreenElement":document.mozFullScreen&&(W="mozFullScreen"))}function t(e){var t=D[e].kind,n=void 0!==D[e].label?D[e].label:D[e].lang,r=D[e].lang,o=D[e].isTTML,i=D[e].isEmbedded,a=G?document.createElement("track"):k.addTextTrack(t,n,r);return G&&(a.kind=t,a.label=n,a.srclang=r),a.isEmbedded=i,a.isTTML=o,a}function n(e){K=e,q&&!document[W]&&(q.style.zIndex=e?Y:null)}function r(e,n){if(D.length===n)return void x("Trying to add too many tracks.");if(D.push(e),D.length===n){D.sort(function(e,t){return e.index-t.index}),q=k.getTTMLRenderingDiv();for(var r=-1,o=0;o<D.length;o++){var i=t.call(this,o);L.push(i),D[o].defaultTrack&&(i["default"]=!0,r=o),G&&k.appendChild(i);var u=d(o);u&&(u.mode=a["default"].TEXT_SHOWING,q&&(D[o].isTTML||D[o].isEmbedded)?u.renderingType="html":u.renderingType="default"),this.addCaptions(o,0,D[o].captionData),C.trigger(l["default"].TEXT_TRACK_ADDED)}if(y.call(this,r),r>=0)for(var s=0;s<D.length;s++){var c=d(s);c&&(c.mode=s===r?a["default"].TEXT_SHOWING:a["default"].TEXT_HIDDEN)}C.trigger(l["default"].TEXT_TRACKS_QUEUE_INITIALIZED,{index:j,tracks:D})}}function o(e,t,n,r,o,i){var a=e/t,u=n/r,s=0,c=0;a>u?(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<e.activeCues.length;++v){var m=e.activeCues[v];m.scaleCue(m)}W&&document[W]||K?q.style.zIndex=Y:q.style.zIndex=null}}function u(e){var t=B,n=H,r=void 0,o=void 0,i=void 0,a=void 0,u=void 0;if(e.cellResolution){var s=[t/e.cellResolution[0],n/e.cellResolution[1]];if(e.linePadding)for(r in e.linePadding)if(e.linePadding.hasOwnProperty(r)){var l=e.linePadding[r];o=(l*s[0]).toString();for(var f=document.getElementsByClassName("spanPadding"),d=0;d<f.length;d++)f[d].style.cssText=f[d].style.cssText.replace(/(padding-left\s*:\s*)[\d.,]+(?=\s*px)/gi,"$1"+o),f[d].style.cssText=f[d].style.cssText.replace(/(padding-right\s*:\s*)[\d.,]+(?=\s*px)/gi,"$1"+o)}if(e.fontSize){for(r in e.fontSize)if(e.fontSize.hasOwnProperty(r)){"%"===e.fontSize[r][0]?i=e.fontSize[r][1]/100:"c"===e.fontSize[r][0]&&(i=e.fontSize[r][1]),o=(i*s[1]).toString(),u="defaultFontSize"!==r?document.getElementsByClassName(r):document.getElementsByClassName("paragraph");for(var p=0;p<u.length;p++)u[p].style.cssText=u[p].style.cssText.replace(/(font-size\s*:\s*)[\d.,]+(?=\s*px)/gi,"$1"+o)}if(e.lineHeight)for(r in e.lineHeight)if(e.lineHeight.hasOwnProperty(r)){"%"===e.lineHeight[r][0]?a=e.lineHeight[r][1]/100:"c"===e.fontSize[r][0]&&(a=e.lineHeight[r][1]),o=(a*s[1]).toString(),u=document.getElementsByClassName(r);for(var h=0;h<u.length;h++)u[h].style.cssText=u[h].style.cssText.replace(/(line-height\s*:\s*)[\d.,]+(?=\s*px)/gi,"$1"+o)}}}if(e.isd){var v=document.getElementById(e.cueID);v&&(q.removeChild(v),c(e))}}function c(e){var t=document.createElement("div");q.appendChild(t),(0,v.renderHTML)(e.isd,t,function(t){var n=/^(urn:)(mpeg:[a-z0-9][a-z0-9-]{0,31}:)(subs:)([0-9])$/,r=/^#(.*)$/;if(n.test(t)){var o=n.exec(t),i=parseInt(o[4],10)-1,a=btoa(e.images[i]),u="data:image/png;base64,"+a;return u}if(r.test(t)){var o=r.exec(t),i=o[1],u="data:image/png;base64,"+e.embeddedImages[i];return u}return null},q.clientHeight,q.clientWidth),t.id=e.cueID}function f(e,t,n){var r=d(e),o=this;if(r&&n&&0!==n.length)for(var i in n){var s=void 0,l=n[i];r.cellResolution=l.cellResolution,r.isFromCEA608=l.isFromCEA608,"html"===l.type?(s=new M(l.start-t,l.end-t,""),s.cueHTMLElement=l.cueHTMLElement,s.isd=l.isd,s.images=l.images,s.embeddedImages=l.embeddedImages,s.cueID=l.cueID,s.scaleCue=u.bind(o),s.cellResolution=l.cellResolution,s.lineHeight=l.lineHeight,s.linePadding=l.linePadding,s.fontSize=l.fontSize,q.style.left=F+"px",q.style.top=U+"px",q.style.width=B+"px",q.style.height=H+"px",s.onenter=function(){r.mode===a["default"].TEXT_SHOWING&&(this.isd?(c(this),x("Cue enter id:"+this.cueID)):(q.appendChild(this.cueHTMLElement),u.call(o,this)))},s.onexit=function(){for(var e=q.childNodes,t=0;t<e.length;++t)e[t].id===this.cueID&&(x("Cue exit id:"+e[t].id),q.removeChild(e[t]))}):(s=new M(l.start-t,l.end-t,l.data),l.styles&&(void 0!==l.styles.align&&"align"in s&&(s.align=l.styles.align),void 0!==l.styles.line&&"line"in s&&(s.line=l.styles.line),void 0!==l.styles.position&&"position"in s&&(s.position=l.styles.position),void 0!==l.styles.size&&"size"in s&&(s.size=l.styles.size))),r.addCue(s)}}function d(e){return e>=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<D.length;n++)if(D[n].label===e){t=n;break}return t}function y(e){if(e!==j){j=e;var t=d(j);g.call(this,t),V&&(clearInterval(V),V=null),t&&"html"===t.renderingType&&(i.call(this,t),V=setInterval(i.bind(this,t),500))}}function g(e){O.call(this),e&&"html"===e.renderingType?w.call(this):S.call(this)}function _(e){if(e.cues)for(var t=e.cues,n=t.length-1,r=n;r>=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;t<e;t++)if(G)k.removeChild(L[t]);else{var n=d(t);n&&(_.call(this,n),n.mode="disabled")}L=[],D=[],V&&(clearInterval(V),V=null),j=-1,O.call(this)}function T(e){k.removeChild(L[e]),L.splice(e,1)}function w(){if(G){var e=document.getElementById("native-cue-style");if(!e){e=document.createElement("style"),e.id="native-cue-style",document.head.appendChild(e);var t=e.sheet,n=k.getElement();n&&(n.id?t.insertRule("#"+n.id+"::cue {background: transparent}",0):0!==n.classList.length?t.insertRule("."+n.className+"::cue {background: transparent}",0):t.insertRule("video::cue {background: transparent}",0))}}}function S(){if(G){var e=document.getElementById("native-cue-style");e&&document.head.removeChild(e)}}function O(){if(q)for(;q.firstChild;)q.removeChild(q.firstChild)}function P(e){e&&e.videoModel&&(k=e.videoModel)}function R(e,t){var n=d(e);n&&n.mode!==t&&(n.mode=t)}function I(){return D[j]}var A=this.context,C=(0,s["default"])(A).getInstance(),x=(0,h["default"])(A).getInstance().log,N=void 0,M=void 0,k=void 0,D=void 0,L=void 0,j=void 0,F=void 0,U=void 0,B=void 0,H=void 0,q=void 0,V=void 0,G=void 0,W=void 0,K=void 0,Y=void 0;return N={initialize:e,displayCConTop:n,addTextTrack:r,addCaptions:f,getCurrentTrackIdx:p,setCurrentTrackIdx:y,getTrackIdxForId:m,getCurrentTrackInfo:I,setModeForTrackIdx:R,deleteCuesFromTrackIdx:b,deleteAllTextTracks:E,deleteTextTrack:T,setConfig:P}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(24),a=r(i),u=n(12),s=r(u),c=n(14),l=r(c),f=n(2),d=r(f),p=n(19),h=r(p),v=n(514);o.__dashjs_factory_name="TextTracks",t["default"]=d["default"].getSingletonFactory(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(e){if(!e)return null;void 0===e.fileStart&&(e.fileStart=0);var t=l["default"].parseBuffer(e),r=(0,a["default"])(n).create();return r.setData(t),r}var t=void 0,n=this.context;return t={parse:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1012),a=r(i),u=n(2),s=r(u),c=n(299),l=r(c);o.__dashjs_factory_name="BoxParser",t["default"]=s["default"].getSingletonFactory(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(e){var t=e.streamId,n=e.representationId;r[t]=r[t]||{},r[t][n]=e}function t(e,t){return r&&r[e]&&r[e][t]?r[e][t]:null}function n(){r={}}var r={},o={save:e,extract:t,reset:n};return o}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=r(i);o.__dashjs_factory_name="InitCache",t["default"]=a["default"].getSingletonFactory(o),e.exports=t["default"]},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function o(e){return"number"==typeof e}function i(e){return"object"===("undefined"==typeof e?"undefined":u(e))&&null!==e}function a(e){return void 0===e}var u="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,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!o(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,o,u,s,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(n=this._events[e],a(n))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:u=Array.prototype.slice.call(arguments,1),n.apply(this,u)}else if(i(n))for(u=Array.prototype.slice.call(arguments,1),c=n.slice(),o=c.length,s=0;s<o;s++)c[s].apply(this,u);return!0},n.prototype.addListener=function(e,t){var o;if(!r(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(t.listener)?t.listener:t),this._events[e]?i(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,i(this._events[e])&&!this._events[e].warned&&(o=a(this._maxListeners)?n.defaultMaxListeners:this._maxListeners,o&&o>0&&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;u<r.length;u++)if(!i.call(t,r[u])||!n(e[r[u]],t[r[u]]))return!1;return!0}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=Object.prototype.hasOwnProperty;e.exports=r},function(e,t,n){!function(e,t,n){function r(e,t,n,r,o,i,a,u){this.name=t,this.ns=e,this.qname=e+" "+t,this.inherit=o,this.animatable=i,this.initial=n,this.applies=r,this.parse=a,this.compute=u}e.all=[new r(t.ns_tts,"backgroundColor","transparent",["body","div","p","region","span"],(!1),(!0),n.parseColor,null),new r(t.ns_tts,"color","white",["span"],(!0),(!0),n.parseColor,null),new r(t.ns_tts,"direction","ltr",["p","span"],(!0),(!0),function(e){return e},null),new r(t.ns_tts,"display","auto",["body","div","p","region","span"],(!1),(!0),function(e){return e},null),new r(t.ns_tts,"displayAlign","before",["region"],(!1),(!0),function(e){return e},null),new r(t.ns_tts,"extent","auto",["tt","region"],(!1),(!0),function(e){if("auto"===e)return e;var t=e.split(" ");if(2!==t.length)return null;var r=n.parseLength(t[0]),o=n.parseLength(t[1]);return o&&r?{h:o,w:r}:null},function(e,t,n,r){var o,i;if("auto"===r)o=1;else if("%"===r.h.unit)o=r.h.value/100;else{if("px"!==r.h.unit)return null;o=r.h.value/e.pxDimensions.h}if("auto"===r)i=1;else if("%"===r.w.unit)i=r.w.value/100;else{if("px"!==r.w.unit)return null;i=r.w.value/e.pxDimensions.w}return{h:o,w:i}}),new r(t.ns_tts,"fontFamily","default",["span"],(!0),(!0),function(e){var t=e.split(","),n=[];for(var r in t)"'"!==t[r].charAt(0)&&'"'!==t[r].charAt(0)&&"default"===t[r]?n.push("monospaceSerif"):n.push(t[r]);return n},null),new r(t.ns_tts,"fontSize","1c",["span"],(!0),(!0),n.parseLength,function(t,n,r,o){var i;if("%"===o.unit)i=null!==n?n.styleAttrs[e.byName.fontSize.qname]*o.value/100:o.value/100/t.cellResolution.h;else if("em"===o.unit)i=null!==n?n.styleAttrs[e.byName.fontSize.qname]*o.value:o.value/t.cellResolution.h;else if("c"===o.unit)i=o.value/t.cellResolution.h;else{if("px"!==o.unit)return null;i=o.value/t.pxDimensions.h}return i}),new r(t.ns_tts,"fontStyle","normal",["span"],(!0),(!0),function(e){return e},null),new r(t.ns_tts,"fontWeight","normal",["span"],(!0),(!0),function(e){return e},null),new r(t.ns_tts,"lineHeight","normal",["p"],(!0),(!0),function(e){return"normal"===e?e:n.parseLength(e)},function(t,n,r,o){var i;if("normal"===o)i=o;else if("%"===o.unit)i=r.styleAttrs[e.byName.fontSize.qname]*o.value/100;else if("em"===o.unit)i=r.styleAttrs[e.byName.fontSize.qname]*o.value;else if("c"===o.unit)i=o.value/t.cellResolution.h;else{if("px"!==o.unit)return null;i=o.value/t.pxDimensions.h}return i}),new r(t.ns_tts,"opacity",1,["region"],(!1),(!0),parseFloat,null),new r(t.ns_tts,"origin","auto",["region"],(!1),(!0),function(e){if("auto"===e)return e;var t=e.split(" ");if(2!==t.length)return null;var r=n.parseLength(t[0]),o=n.parseLength(t[1]);return o&&r?{h:o,w:r}:null},function(e,t,n,r){var o,i;if("auto"===r)o=0;else if("%"===r.h.unit)o=r.h.value/100;else{if("px"!==r.h.unit)return null;o=r.h.value/e.pxDimensions.h}if("auto"===r)i=0;else if("%"===r.w.unit)i=r.w.value/100;else{if("px"!==r.w.unit)return null;i=r.w.value/e.pxDimensions.w}return{h:o,w:i}}),new r(t.ns_tts,"overflow","hidden",["region"],(!1),(!0),function(e){return e},null),new r(t.ns_tts,"padding","0px",["region"],(!1),(!0),function(e){var t=e.split(" ");if(t.length>4)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();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=n(1134),i=n(1135),a=n(1136),u=n(1137),s=n(1138);r.prototype.clear=o,r.prototype["delete"]=i,r.prototype.get=a,r.prototype.has=u,r.prototype.set=s,e.exports=r},function(e,t,n){function r(e){var t=-1,n=e?e.length:0;for(this.__data__=new o;++t<n;)this.add(e[t])}var o=n(346),i=n(1143),a=n(1144);r.prototype.add=r.prototype.push=i,r.prototype.has=a,e.exports=r},function(e,t,n){var r=n(53),o=r.Symbol;e.exports=o},function(e,t){function n(e,t,n,r){var o=-1,i=e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}e.exports=n},function(e,t,n){function r(e,t){return e&&o(t,i(t),e)}var o=n(136),i=n(54);e.exports=r},function(e,t,n){function r(e,t,n,T,w,S,O){var I;if(T&&(I=S?T(e,w,S,O):T(e)),void 0!==I)return I;if(!_(e))return e;var A=m(e);if(A){if(I=p(e),!t)return c(e,I)}else{var x=d(e),N=x==P||x==R;if(y(e))return s(e,t);if(x==C||x==E||N&&!S){if(g(e))return S?e:{};if(I=v(N?{}:e),!t)return l(e,u(I,e))}else{if(!Y[x])return S?e:{};I=h(e,x,r,t)}}O||(O=new o);var M=O.get(e);if(M)return M;if(O.set(e,I),!A)var k=n?f(e):b(e);return i(k||e,function(o,i){k&&(i=o,o=e[i]),a(I,i,r(o,t,n,T,i,e,O))}),I}var o=n(246),i=n(198),a=n(199),u=n(350),s=n(1095),c=n(201),l=n(1102),f=n(1112),d=n(253),p=n(1122),h=n(1123),v=n(1124),m=n(27),y=n(573),g=n(254),_=n(39),b=n(54),E="[object Arguments]",T="[object Array]",w="[object Boolean]",S="[object Date]",O="[object Error]",P="[object Function]",R="[object GeneratorFunction]",I="[object Map]",A="[object Number]",C="[object Object]",x="[object RegExp]",N="[object Set]",M="[object String]",k="[object Symbol]",D="[object WeakMap]",L="[object ArrayBuffer]",j="[object DataView]",F="[object Float32Array]",U="[object Float64Array]",B="[object Int8Array]",H="[object Int16Array]",q="[object Int32Array]",V="[object Uint8Array]",G="[object Uint8ClampedArray]",W="[object Uint16Array]",K="[object Uint32Array]",Y={};Y[E]=Y[T]=Y[L]=Y[j]=Y[w]=Y[S]=Y[F]=Y[U]=Y[B]=Y[H]=Y[q]=Y[I]=Y[A]=Y[C]=Y[x]=Y[N]=Y[M]=Y[k]=Y[V]=Y[G]=Y[W]=Y[K]=!0,Y[O]=Y[P]=Y[D]=!1,e.exports=r},function(e,t){function n(e,t,n,r){var o;return n(e,function(e,n,i){if(t(e,n,i))return o=r?n:e,!1}),o}e.exports=n},function(e,t,n){function r(e,t,n,u,s){return e===t||(null==e||null==t||!i(e)&&!a(t)?e!==e&&t!==t:o(e,t,r,n,u,s))}var o=n(1079),i=n(39),a=n(113);e.exports=r},function(e,t){function n(){}e.exports=n},function(e,t,n){function r(e,t,n,d,p){if(e!==t){if(!s(t)&&!l(t))var h=f(t);i(h||t,function(i,s){if(h&&(s=i,i=t[s]),c(i))p||(p=new o),u(e,t,s,n,r,d,p);else{var l=d?d(e[s],i,s+"",e,t,p):void 0;void 0===l&&(l=i),a(e,s,l)}})}}var o=n(246),i=n(198),a=n(526),u=n(1085),s=n(27),c=n(39),l=n(261),f=n(71);e.exports=r},function(e,t,n){function r(e,t,n,r){t=u(t,e)?[t]:i(t);for(var l=-1,f=t.length,d=f-1,p=e;null!=p&&++l<f;){var h=c(t[l]);if(s(p)){var v=n;if(l!=d){var m=p[h];v=r?r(m,h,p):void 0,void 0===v&&(v=null==m?a(t[l+1])?[]:{}:m)}o(p,h,v)}p=p[h]}return e}var o=n(199),i=n(163),a=n(167),u=n(111),s=n(39),c=n(70);e.exports=r},function(e,t){function n(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?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<o;)i[r]=e[r+t];return i}e.exports=n},function(e,t,n){function r(e){var t=new e.constructor(e.byteLength);return new o(t).set(new o(e)),t}var o=n(520);e.exports=r},function(e,t,n){var r=n(560),o=n(576),i=r?function(e){return r.get(e)}:o;e.exports=i},function(e,t){function n(e){return r(Object(e))}var r=Object.getOwnPropertySymbols;r||(n=function(){return[]}),e.exports=n},function(e,t){function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}e.exports=n},function(e,t,n){function r(e,t,n){return t=n?void 0:t,t=e&&null==t?e.length:t,o(e,i,void 0,void 0,void 0,void 0,t)}var o=n(96),i=128;e.exports=r},function(e,t,n){var r=n(136),o=n(164),i=n(71),a=o(function(e,t,n,o){r(t,i(t),e,o)});e.exports=a},function(e,t,n){function r(e,t,n){function r(t){var n=g,r=_;return g=_=void 0,S=t,E=e.apply(r,n)}function l(e){return S=e,T=setTimeout(p,t),O?r(e):E}function f(e){var n=e-w,r=e-S,o=t-n;return P?c(o,b-r):o}function d(e){var n=e-w,r=e-S;return!w||n>=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<t.length;n++){var u=t[n];switch(u.type){case"INSERT_MARKUP":o(e,u.content,r(e,u.afterNode));break;case"MOVE_EXISTING":i(e,u.fromNode,r(e,u.afterNode));break;case"SET_MARKUP":p(e,u.content);break;case"TEXT_CONTENT":h(e,u.content);break;case"REMOVE_NODE":a(e,u.fromNode)}}}};e.exports=y},function(e,t){"use strict";var n={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};e.exports=n},function(e,t,n){"use strict";function r(){if(u)for(var e in s){var t=s[e],n=u.indexOf(e);if(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;o<n.length&&!e.isPropagationStopped();o++)a(e,t,n[o],r[o]);else n&&a(e,t,n,r);e._dispatchListeners=null,e._dispatchInstances=null}function s(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t)){for(var r=0;r<t.length&&!e.isPropagationStopped();r++)if(t[r](e,n[r]))return n[r]}else if(t&&t(e,n))return n;return null}function c(e){var t=s(e);return e._dispatchInstances=null,e._dispatchListeners=null,t}function l(e){var t=e._dispatchListeners,n=e._dispatchInstances;Array.isArray(t)?h("103"):void 0,e.currentTarget=t?y.getNodeFromInstance(n):null;var r=t?t(e):null;return e.currentTarget=null,e._dispatchListeners=null,e._dispatchInstances=null,r}function f(e){return!!e._dispatchListeners}var d,p,h=n(23),v=n(384),m=(n(11),n(16),{injectComponentTree:function(e){d=e},injectTreeTraversal:function(e){p=e}}),y={isEndish:r,isMoveish:o,isStartish:i,executeDirectDispatch:l,executeDispatchesInOrder:u,executeDispatchesInOrderStopAtTrue:c,hasDispatches:f,getInstanceFromNode:function(e){return d.getInstanceFromNode(e)},getNodeFromInstance:function(e){return d.getNodeFromInstance(e)},isAncestor:function(e,t){return p.isAncestor(e,t)},getLowestCommonAncestor:function(e,t){return p.getLowestCommonAncestor(e,t)},getParentInstance:function(e){return p.getParentInstance(e)},traverseTwoPhase:function(e,t,n){return p.traverseTwoPhase(e,t,n)},traverseEnterLeave:function(e,t,n,r,o){return p.traverseEnterLeave(e,t,n,r,o)},injection:m};e.exports=y},function(e,t){"use strict";function n(e){var t=/[=:]/g,n={"=":"=0",":":"=2"},r=(""+e).replace(t,function(e){return n[e]});return"$"+r}function r(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"},r="."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1);return(""+r).replace(t,function(e){return n[e]})}var o={escape:n,unescape:r};e.exports=o},function(e,t,n){"use strict";function r(e){null!=e.checkedLink&&null!=e.valueLink?u("87"):void 0}function o(e){r(e),null!=e.value||null!=e.onChange?u("88"):void 0}function i(e){r(e),null!=e.checked||null!=e.onChange?u("89"):void 0}function a(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}var u=n(23),s=n(174),c=n(1263),l=(n(11),n(16),{button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0}),f={value:function(e,t,n){return!e[t]||l[e.type]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(e,t,n){return!e[t]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:s.PropTypes.func},d={},p={checkPropTypes:function(e,t,n){for(var r in f){if(f.hasOwnProperty(r))var o=f[r](t,r,e,"prop",null,c);if(o instanceof Error&&!(o.message in d)){d[o.message]=!0;a(n)}}},getValue:function(e){return e.valueLink?(o(e),e.valueLink.value):e.value},getChecked:function(e){return e.checkedLink?(i(e),e.checkedLink.value):e.checked},executeOnChange:function(e,t){return e.valueLink?(o(e),e.valueLink.requestChange(t.target.value)):e.checkedLink?(i(e),e.checkedLink.requestChange(t.target.checked)):e.onChange?e.onChange.call(void 0,t):void 0}};e.exports=p},function(e,t,n){"use strict";var r=n(23),o=(n(11),!1),i={replaceNodeWithMarkup:null,processChildrenUpdates:null,injection:{injectEnvironment:function(e){o?r("104"):void 0,i.replaceNodeWithMarkup=e.replaceNodeWithMarkup,i.processChildrenUpdates=e.processChildrenUpdates,o=!0}}};e.exports=i},function(e,t,n){"use strict";function r(e,t,n){try{t(n)}catch(r){null===o&&(o=r)}}var o=null,i={invokeGuardedCallback:r,invokeGuardedCallbackWithCatch:r,rethrowCaughtError:function(){if(o){var e=o;throw o=null,e}}};e.exports=i},function(e,t,n){"use strict";function r(e){c.enqueueUpdate(e)}function o(e){var t="undefined"==typeof e?"undefined":a(e);if("object"!==t)return t;var n=e.constructor&&e.constructor.name||t,r=Object.keys(e);return r.length>0&&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)<u&&Math.abs(d-o)<u?(r[0]=o,r[1]=0,r):(r[0]=d,r[1]=f,r)}t.__esModule=!0,t["default"]=n;var r=[];e.exports=t["default"]},function(e,t){"use strict";function n(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]="number"==typeof e[n]?e[n]:e[n].val);return t}t.__esModule=!0,t["default"]=n,e.exports=t["default"]},function(e,t,n){"use strict";function r(e,t,n){this.props=e,this.context=t,this.refs=u,this.updater=n||a}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(176),a=n(398),u=(n(610),n(197));n(11),n(16);r.prototype.isReactComponent={},r.prototype.setState=function(e,t){"object"!==("undefined"==typeof e?"undefined":o(e))&&"function"!=typeof e&&null!=e?i("85"):void 0,this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};e.exports=r},function(e,t,n){"use strict";function r(e,t){}var o=(n(16),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){r(e,"forceUpdate")},enqueueReplaceState:function(e,t){r(e,"replaceState")},enqueueSetState:function(e,t){r(e,"setState")}});e.exports=o},function(e,t,n){"use strict";(function(t,r,o){function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){R(t,e)}}function a(e){return k.from(e)}function u(e){return k.isBuffer(e)||e instanceof D}function s(){}function c(e,t){A=A||n(141),e=e||{},this.objectMode=!!e.objectMode,t instanceof A&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var r=e.highWaterMark,o=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:o,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=e.decodeStrings===!1;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){g(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function l(e){return A=A||n(141),j.call(l,this)||this instanceof A?(this._writableState=new c(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e["final"]&&(this._final=e["final"])),void M.call(this)):new l(e)}function f(e,t){var n=new Error("write after end");e.emit("error",n),I(t,n)}function d(e,t,n,r){var o=!0,i=!1;return null===n?i=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(i=new TypeError("Invalid non-string/buffer chunk")),i&&(e.emit("error",i),I(r,i),o=!1),o}function p(e,t,n){return e.objectMode||e.decodeStrings===!1||"string"!=typeof t||(t=k.from(t,n)),t}function h(e,t,n,r,o,i){if(!n){var a=p(t,r,o);r!==a&&(n=!0,o="buffer",r=a)}var u=t.objectMode?1:r.length;t.length+=u;var s=t.length<t.highWaterMark;if(s||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:o,isBuf:n,callback:i,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else v(e,t,!1,u,r,o,i);return s}function v(e,t,n,r,o,i,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function m(e,t,n,r,o){--t.pendingcb,n?(I(o,r),I(O,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(o(r),e._writableState.errorEmitted=!0,e.emit("error",r),O(e,t))}function y(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function g(e,t){var n=e._writableState,r=n.sync,o=n.writecb;if(y(n),t)m(e,n,r,t,o);else{var i=T(n);i||n.corked||n.bufferProcessing||!n.bufferedRequest||E(e,n),r?C(_,e,n,i,o):_(e,n,i,o)}}function _(e,t,n,r){n||b(e,t),t.pendingcb--,r(),O(e,t)}function b(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function E(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,o=new Array(r),a=t.corkedRequestsFree;a.entry=n;for(var u=0,s=!0;n;)o[u]=n,n.isBuf||(s=!1),n=n.next,u+=1;o.allBuffers=s,v(e,t,!0,t.length,o,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new i(t)}else{for(;n;){var c=n.chunk,l=n.encoding,f=n.callback,d=t.objectMode?1:c.length;if(v(e,t,!1,d,c,l,f),n=n.next,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=n,t.bufferProcessing=!1}function T(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function w(e,t){e._final(function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),O(e,t)})}function S(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,I(w,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function O(e,t){var n=T(t);return n&&(S(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}function P(e,t,n){t.ending=!0,O(e,t),n&&(t.finished?I(n):e.once("finish",n)),t.ended=!0,e.writable=!1}function R(e,t,n){var r=e.entry;for(e.entry=null;r;){var o=r.callback;t.pendingcb--,o(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}var I=n(265);e.exports=l;var A,C=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-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;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=function(){function e(){var t;a(this,e),this.results=[],this.posts={},this.comments={},this.accounts={},this.messages={},this.sitewide_rules={},this.subreddits={},this.subreddit_rules={},this.wikis={},this.continueThreadObjects={},this.commentLoadMoreObjects={},this.multireddits={},this.typeToTable=(t={},i(t,f.a,this.comments),i(t,f.b,this.commentLoadMoreObjects),i(t,f.c,this.continueThreadObjects),i(t,f.d,this.posts),i(t,f.e,this.accounts),i(t,f.f,this.messages),i(t,f.g,this.sitewide_rules),i(t,f.h,this.subreddits),i(t,f.i,this.subreddit_rules),i(t,f.j,this.wikis),i(t,f.k,this.multireddits),t),this.addResult=this.addResult.bind(this),this.addModel=this.addModel.bind(this),this.makeRecord=this.makeRecord.bind(this),this.addToTable=this.addToTable.bind(this),this.getModelFromRecord=this.getModelFromRecord.bind(this),this.appendResponse=this.appendResponse.bind(this)}return d(e,[{key:"addResult",value:function(e){if(!e)return this;var t=this.makeRecord(e);return t&&(this.results.push(t),this.addToTable(t,e)),this}},{key:"addModel",value:function(e){if(!e)return this;var t=this.makeRecord(e);return t&&this.addToTable(t,e),this}},{key:"makeRecord",value:function(e){if(e.toRecord)return e.toRecord();var t=e.uuid;if(t){var r=f.l[e.kind]||n.i(f.m)(t);if(r)return{type:r,uuid:t}}}},{key:"addToTable",value:function(e,t){var n=this.typeToTable[e.type];return n&&(n[e.uuid]=t),this}},{key:"getModelFromRecord",value:function(e){var t=this.typeToTable[e.type];if(t)return t[e.uuid]}},{key:"appendResponse",value:function(){throw new Error("Not implemented in base class")}}]),e}(),h=function(e){function t(e){var n=arguments.length>1&&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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p="BAD_CAPTCHA",h=function(e,t){if(e.user)return"user/"+e.user+"/submitted.json";if(e.id)return"by_id/"+e.id+".json";if(e.ids)return"by_id/"+e.ids.join(",")+".json";if(e.subredditName)return e.sort?"r/"+e.subredditName+"/"+e.sort+".json":"r/"+e.subredditName+".json";if(e.multi&&e.multiUser){var n=t&&e.multiUser.toLowerCase()===t.name.toLowerCase()?"me/m/"+e.multi:"user/"+e.multiUser+"/m/"+e.multi;return e.sort?n+"/"+e.sort+".json":n+".json"}return(e.sort||"hot")+".json"},v=function(e,t){return n.i(f.a)(e,t),"patch"!==t&&(e.feature="link_preview",e.sr_detail="true"),"del"===t&&(e._method="post"),e},m=function(e){var t={api_type:"json",thing_id:e.thingId,title:e.title,kind:e.kind,sendreplies:e.sendreplies,sr:e.sr,iden:e.iden,"g-recaptcha-response":e.gRecaptchaResponse,resubmit:e.resubmit};return e.text?t.text=e.text:e.url&&(t.url=e.url),t},y=function(e){if(a()(e,"response.body.data")){var t=e.response.body.data;a()(t,"children.0")&&(1===t.children.length?e.addResult(l.a.fromJSON(t.children[0].data)):t.children.forEach(function(t){return e.addResult(l.a.fromJSON(t.data))}))}return e};t.a={get:function(e,t,r){var o=h(t,r),i=v(d({raw_json:1,withAds:!0},t),"get");return n.i(u.a)(e,"GET",o,{query:i}).then(y)},post:function(e,t){var r="api/submit",i=m(t);return n.i(u.a)(e,"POST",r,{query:i}).then(function(e){var n=e.response.body.json;if(n.errors.length&&o()(n.errors,function(e){return e[0]===p}))throw new s.a(t.gRecaptchaResponse,n.captcha,n.errors);if(n.errors.length)throw new c.a(r,n.errors,200);return e.response.body})}}},function(e,t,n){"use strict";var r=n(627),o=function(e){return"user/"+e.user+"/saved.json"};t.a=n.i(r.a)(o,"api/unsave","api/save")},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){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,"No model given for api endpoint "+e));return n.name="NoModelError",n.status=400,n}return i(t,e),t}(a.a);t.a=u},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")})}}n.d(t,"b",function(){return i}),n.d(t,"a",function(){return u});var o=this,i="SET_COMPACT",a=function(e){return{type:i,compact:e}},u=function(){return function(){var e=r(regeneratorRuntime.mark(function t(e,n){var r,i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=n(),i=r.compact,e(a(!i));case 2:case"end":return t.stop()}},t,o)}));return function(t,n){return e.apply(this,arguments)}}()}},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return o});var r="MODAL__CLOSE",o=function(){return{type: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(25),a=n(1341);n.d(t,"c",function(){return s}),n.d(t,"b",function(){return l}),n.d(t,"d",function(){return d}),n.d(t,"a",function(){return h});var u=this,s="FETCHING_MULTIREDDIT",c=function(e){return{type:s,url:e}},l="RECEIVED_MULTIREDDIT",f=function(e,t){return{type:l,url:e,model:t}},d="FAILED_MULTIREDDIT",p=function(e,t){return{type:d,url:e,error:t}},h=function(e,t){return function(){var s=r(regeneratorRuntime.mark(function l(r,s){var d,h,v,m,y;return regeneratorRuntime.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(d="/user/"+e+"/m/"+t+"/",h=s(),v=h.multiredditRequests[d],!v||v.failed||v.loading){u.next=5;break}return u.abrupt("return");case 5:return r(c(d)),u.prev=6,u.next=9,a.a.get(n.i(o.a)(h),{multiUser:e,multi:t});case 9:m=u.sent,y=m.getModelFromRecord(m.results[0]),r(f(d,y)),u.next=21;break;case 14:if(u.prev=14,u.t0=u["catch"](6),!(u.t0 instanceof i.a)){u.next=20;break}r(p(d,u.t0)),u.next=21;break;case 20:throw u.t0;case 21:case"end":return u.stop()}},l,u,[[6,14]])}));return function(e,t){return s.apply(this,arguments)}}()}},function(e,t,n){"use strict";n.d(t,"c",function(){return r}),n.d(t,"d",function(){return o}),n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});var r="NOTIFICATION__NOTIFY",o="NOTIFICIATION_DISMISS",i=function(e){return{type:r,payload:e}},a=function(){return{type:o}}},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(177),i=n(5);n.d(t,"b",function(){return u}),n.d(t,"a",function(){return c});var a=this,u="OPTOUT__SET",s=function(e,t){return{type:u,message:t,flag:e}},c=function(){return function(){var e=r(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e(s(i.i,"Updated Preference")),e(o.h());case 2:case"end":return t.stop()}},t,a)}));return function(t){return e.apply(this,arguments)}}()}},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return o});var r="SET_TITLE",o=function(e){return{type:r,title: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){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 i(e,t,o){var i,a="link"===e.kind,s=a?"post_target_url":"post_body";n.i(d.a)().track("submit_events","cs.submit",v({},n.i(p.b)(o),n.i(p.g)(o),(i={},r(i,s,e.meta),r(i,"post_target_domain",a?u.a.parse(e.meta).host:null),r(i,"post_title",e.title),r(i,"post_type",e.kind),r(i,"post_id",n.i(p.d)(t.name)),r(i,"post_fullname",t.name),i)))}var a=n(63),u=n.n(a),s=n(7),c=n(404),l=n(65),f=n(630),d=n(121),p=n(26),h=n(22);n.d(t,"e",function(){return y}),n.d(t,"f",function(){return g}),n.d(t,"g",function(){return b}),n.d(t,"h",function(){return E}),n.d(t,"i",function(){return T}),n.d(t,"d",function(){return w}),n.d(t,"a",function(){return S}),n.d(t,"b",function(){return O}),n.d(t,"c",function(){return I});var v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m=this,y="POSTING__FIELD_UPDATE",g="POSTING__CLOSE_CAPTCHA",_="POSTING__PENDING",b="POSTING__SUCCESS",E="POSTING__FAILURE",T="POSTING__VALIDATION_FAILURE",w="POSTING__CAPTCHA_NEEDED",S=function(e,t){return{type:y,field:e,value:t}},O=function(){return{type:g}},P={self:"text",link:"url"},R={BAD_URL:"Please enter a valid link.",NO_TEXT:"You're missing text content.",SUBREDDIT_NOTALLOWED:"You aren't allowed to post there.",NO_SELFS:"This subreddit doesn't allow text posts.",NO_LINKS:"This subreddit only allows text posts."},I=function(e){return function(){var t=o(regeneratorRuntime.mark(function a(t,o){var d,p,v,y,g,S,O,I;return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return p=P[e.kind],d={sr:e.sr,kind:e.kind},r(d,p,e.meta),r(d,"title",e.title),r(d,"gRecaptchaResponse",e.gRecaptchaResponse),r(d,"sendreplies",!0),r(d,"resubmit",!1),v=d,t({type:_}),y=n.i(h.a)(o()),a.prev=4,a.next=7,c.a.post(y,v);case 7:g=a.sent,S=g.json,t({type:b}),t(s.e("get",u.a.parse(S.data.url).path)),i(e,S,o()),a.next=28;break;case 14:if(a.prev=14,a.t0=a["catch"](4),!(a.t0 instanceof f.a)){a.next=20;break}t({type:w}),a.next=28;break;case 20:if(!(a.t0 instanceof l.a)){a.next=26;break}O=a.t0.errors[0],I=R[O[0]],t({message:I?I:O[1],errors:a.t0.errors,type:T}),a.next=28;break;case 26:throw t({type:E,errors:a.t0.errors}),a.t0;case 28:case"end":return a.stop()}},a,m,[[4,14]])}));return function(e,n){return t.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(1347),i=n(25),a=n(22);n.d(t,"c",function(){return s}),n.d(t,"b",function(){return l}),n.d(t,"d",function(){return d}),n.d(t,"a",function(){return h});var u=this,s="FETCHING_SITEWIDE_RULES",c=function(){return{type:s}},l="RECEIVED_SITEWIDE_RULES",f=function(e){return{type:l,sitewideRules:e}},d="FAILED_SITEWIDE_RULES",p=function(e){return{type:d,error:e}},h=function(){return function(){var e=r(regeneratorRuntime.mark(function t(e,r){var s,l,d,h,v;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(s=r(),l=n.i(a.a)(s),d=s.sitewideRulesRequests,!d||d.failed||d.loading){t.next=5;break}return t.abrupt("return");case 5:return e(c()),t.prev=6,t.next=9,o.a.get(l);case 9:h=t.sent,v=h.results.map(function(e){return h.getModelFromRecord(e)}),e(f(v)),t.next=21;break;case 14:if(t.prev=14,t.t0=t["catch"](6),!(t.t0 instanceof i.a)){t.next=20;break}e(p(t.t0)),t.next=21;break;case 20:throw t.t0;case 21:case"end":return t.stop()}},t,u,[[6,14]])}));return function(t,n){return e.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(5);n.d(t,"b",function(){return s}),n.d(t,"a",function(){return f});var i=this,a=o.g.NIGHTMODE,u=o.g.DAYMODE,s="SET_THEME",c=function(e){return{type:s,theme:e}},l=function(e){return e===u?a:u},f=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:r=n(),o=r.theme,e(c(l(o)));case 2:case"end":return t.stop()}},t,i)}));return function(t,n){return e.apply(this,arguments)}}()}},function(e,t,n){"use strict";n.d(t,"d",function(){return r}),n.d(t,"a",function(){return o}),n.d(t,"e",function(){return i}),n.d(t,"c",function(){return a}),n.d(t,"f",function(){return u}),n.d(t,"b",function(){return s});var r="OPEN_APP_CODE_FORM",o=function(){return{type:r}},i="OPEN_BACKUP_CODE_FORM",a=function(){return{type:i}},u="OPEN_AUTH_FORM",s=function(){return{type:u}}},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(1353),i=n(22),a=n(150),u=n(410);n.d(t,"c",function(){return c}),n.d(t,"b",function(){return d}),n.d(t,"a",function(){return p});var s=this,c="VERIFICATION__SET_TOKEN",l="EMAIL_ALREADY_VERIFIED",f="EMAIL_VERIFY_WRONG_USER",d=function(e){var t=e.platform.currentPage,n=t.queryParams,r=n.verification_token;return r},p=function(e){return function(){var t=r(regeneratorRuntime.mark(function c(t,r){var p,h;return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(p=r(),e=e||d(p)){s.next=4;break}return s.abrupt("return");case 4:h=n.i(i.a)(p),o.a.post(h,e).then(function(e){if(e.success)return void t(n.i(a.a)("Success, email verification complete."));switch(e.reason){case l:return void t(n.i(a.b)("This email has already been verified."));case f:return void t(n.i(u.a)({title:"Complete Verification",content:"The email verification link you've followed is for a different user account. Please log out and click the email verification link again to verify your email.",button:"GOT IT"}));default:t(n.i(a.b)("Something went wrong."))}})["catch"](function(){t(n.i(a.b)("Something went wrong."))});case 6:case"end":return s.stop()}},c,s)}));return function(e,n){return t.apply(this,arguments)}}()}},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=n(146),a=n(117),u=n(90);n.n(u);n.d(t,"a",function(){return c});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.b=function(e){return{onToggleEditForm:function(t){return function(){return e(o.a(t))}},onUpdateBody:function(t){return function(n){return e(o.b(t,n))}},onDeleteComment:function(t){return function(){return e(o.c(t))}},onToggleSaveComment:function(t){return function(){return e(o.d(t))}},onToggleCollapse:function(t){return function(){return e(o.e(t))}},onReportComment:function(t){return function(){return e(i.b(t))}},onToggleReply:function(t){return function(n){n.preventDefault(),e(a.b(t))}},onToggleModal:function(){return function(){return e(n.i(u.toggleModal)(null))}}}};var c=function(e,t){return Object.keys(e).reduce(function(n,o){return s({},n,r({},o,e[o](t)))},{})}},function(e,t,n){"use strict";function r(e){var t=e.pageName,n=e.status,r=e.statusBy,o=n&&r?l[n]+" by "+r:null;return s("div",{className:"ModalBanner m-"+n+" "+t},void 0,s(u.a,{text:o}))}var o=n(1666),i=(n.n(o),n(0)),a=n.n(i),u=n(182);t.a=r;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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),c=a.a.PropTypes,l={spam:"Removed as spam",removed:"Removed",approved:"Approved"};r.propTypes={pageName:c.string,status:c.oneOf(Object.keys(l)),statusBy:c.string},r.defaultProps={pageName:null,status:null,statusBy:null}},function(e,t,n){"use strict";var r=n(1682),o=(n.n(r),n(0)),i=n.n(o),a=n(3),u=(n.n(a),n(4)),s=(n.n(u),n(641)),c=n(282),l=n(283),f=n(42),d=n(1450),p=n(88);n.d(t,"a",function(){return g});var h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),m=i.a.PropTypes,y=v(f.a,{}),g=function(e){var t=e.loading,n=e.postRecords,r=e.nextUrl,o=e.prevUrl,i=e.shouldPage,a=!t&&i&&n.length;return t||!n.length?y:v("div",{className:"PostsList PostAndCommentList"},void 0,_(e),a?b(n,r,o):null)};g.propTypes={loading:m.bool.isRequired,postRecords:m.array.isRequired,nextUrl:m.string,prevUrl:m.string,shouldPage:m.bool,forceCompact:m.bool,subredditIsNSFW:m.bool,subredditSpoilersEnabled:m.bool,onPostClick:m.func},g.defaultProps={nextUrl:"",posts:[],prevUrl:"",forceCompact:!1,subredditIsNSFW:!1,subredditSpoilersEnabled:!1,shouldPage:!0};var _=function(e){var t=e.postRecords,r=e.forceCompact,o=e.subredditIsNSFW,a=e.subredditShowSpoilers,u=e.onPostClick,c=e.videoAds,f=e.posts,p=e.isUserLoggedIn,m={forceCompact:r,subredditIsNSFW:o,subredditShowSpoilers:a,onPostClick:u},y=t.map(function(e,t){var n=e.uuid,r=f[n];if(r&&r.promoted){var o=!(!r.media||!r.media.reddit_video),a=o?h({},c,{length:1e3*r.media.reddit_video.duration}):c;return v(s.a,{postId:n,postEvents:r.events,placementIndex:t,isVideo:o,videoAdsStatus:a,postProps:h({},m,{key:"native-ad"})},"post-id-"+n)}return i.a.createElement(l.a,h({},m,{postId:n,key:"post-id-"+n}))});return p||n.i(d.a)(y,5),y},b=function(e,t,n){return v(c.a,{preventUrlCreation:!(!t&&!n),nextUrl:t,prevUrl:n,records:e})},E=n.i(u.createSelector)(function(e,t){return e.postsLists[t.postsListId]},function(e){return e.posts},function(e,t){return t.nextUrl},function(e,t){return t.prevUrl},function(e){return e.videoAds},p.b,function(e,t,n,r,o,i){return{loading:!!e&&e.loading,postRecords:e?e.results.filter(function(e){return!t[e.uuid].hidden}):[],prevUrl:r,nextUrl:n,videoAds:o,posts:t,isUserLoggedIn:i}});t.b=n.i(a.connect)(E)(g)},function(e,t,n){"use strict";function r(e){var t=e.move,n=e.out,r=e.className,o=e.children,i=e.width,u=e.height;return a("svg",{className:r,version:"1.1",xmlns:s,x:"0px",y:"0px",width:i+"px",height:u+"px",viewBox:"0 0 "+i+" "+u,onMouseMove:t,onMouseLeave:n},void 0,o)}var o=n(0),i=n.n(o);t.a=r;var 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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),u=i.a.PropTypes,s="http://www.w3.org/2000/svg",c=20;r.propTypes={move:u.func,out:u.func,className:u.string,width:u.number,height:u.number},r.defaultProps={width:c,height:c}},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(3),a=(n.n(i),n(4)),u=(n.n(a),n(7)),s=n(10),c=n(56),l=n(435),f=n(665),d=n(5),p=n(89),h=n(76),v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),y=o.a.PropTypes,g=function(e){var t=e.className,n=e.sort,r=e.sortOptions,o=e.onSortChange,i=e.time,a=e.timeOptions,u=e.onTimeChange;return m("div",{className:"SortAndTimeSelector "+t},void 0,m(f.a,{id:"posts-sort-selector",title:"Sort posts by:",sortValue:n,sortOptions:r,onSortChange:o}),i&&m(f.a,{id:"posts-time-selector",sortValue:i,sortOptions:a,onSortChange:u}))};g.propTypes={className:y.string,onSortChange:y.func.isRequired,onTimeChange:y.func.isRequired,sort:f.a.sortType.isRequired,sortOptions:f.a.sortOptionsType.isRequired,time:f.a.sortType,timeOptions:f.a.sortOptionsType.isRequired},g.defaultProps={className:"",sortOptions:[h.a.HOT,h.a.TOP,h.a.NEW,h.a.CONTROVERSIAL],timeOptions:[h.a.ALL_TIME,h.a.PAST_YEAR,h.a.PAST_MONTH,h.a.PAST_WEEK,h.a.PAST_DAY,h.a.PAST_HOUR]};var _=n.i(a.createSelector)(function(e){return e.platform.currentPage},function(e){return e.user},function(e,t){return{currentPage:e,user:t}}),b=function(e){return{navigateToUrl:function(t,n){e(u.e(s.a.GET,t,n))}}},E=function(e,t,r){var o=e.currentPage,i=o.url,a=o.urlParams,u=o.queryParams,s=e.user,f=a.commentsOrSubmitted,m=a.multi,y=a.multiUser,g=a.userName,_=s&&!s.loggedOut,b=!m&&n.i(p.b)(a.subredditName,a.pageName)&&_,E=a.sort||u.sort||(b?h.a.BEST:h.a.HOT),T=r.time||n.i(l.a)(u,E),w=t.navigateToUrl,S=void 0;return S=g?function(e){var t=f||"";w("/user/"+g+"/"+t,{queryParams:v({},u,{sort:e})})}:m?function(e){w("/user/"+y+"/m/"+m+"/"+e)}:function(e){var t=a.subredditName;if((t||n.i(c.a)(t))&&a.pageName!==d.d.SEARCH){var r=t?"/r/"+t:"";w(r+"/"+e)}else w(""+i,{queryParams:v({},u,{sort:e})})},v({time:T,sort:E},r,e,{onTimeChange:function(e){return w(i,{queryParams:v({},u,{t:e})})},onSortChange:S})};t.a=n.i(i.connect)(_,b,E)(g)},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=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=function(e){var t=e.uuid,n=e.fullName,r=e.isSubscriber,o=e.className,i=e.renderBody;return u(a.d,{action:"/actions/toggle-subreddit-subscription",className:o},void 0,u("input",{type:"hidden",name:"subredditName",value:t}),u("input",{type:"hidden",name:"fullName",value:n}),u("input",{type:"hidden",name:"isSubscriber",value:r}),i(r))},c=function(e,t){return e.subreddits[t.subredditName]},l=function(e,t){return t.className},f=function(e,t){return t.renderBody},d=function(e,t,n){var r=e.uuid,o=e.name,i=e.userIsSubscriber;return{uuid:r,fullName:o,isSubscriber:i,className:t,renderBody:n}},p=function(){return n.i(i.createSelector)(c,l,f,d)};t.a=n.i(o.connect)(p)(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")})}}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(1717),s=(n.n(u),n(0)),c=n.n(s),l=n(17),f=n(57),d=n(3),p=(n.n(d),n(30)),h=n(43),v=n(5),m=this,y=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),g=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),_=function(e){function t(){o(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.state={dismissed:!1},e}return a(t,e),g(t,[{key:"render",value:function(){var e=this,t=this.state.dismissed,r=this.props.href,o=function(t){return e.setState({dismissed:!0}),t.stopPropagation(),t.preventDefault(),!1};return y("div",{className:n.i(p.a)("XPromoPill",{dismissed:t}),href:r},void 0,y("div",{className:"XPromoPill__container"},void 0,y("a",{href:r},void 0,"OPEN REDDIT APP"),y("img",{className:"XPromoPill__close",src:l.a.assetPath+"/img/close-circle-x.png",onClick:o})))}}]),t}(c.a.Component),b={tags:[v.t[v.c.PILL]],utm_content:v.t[v.c.PILL]},E=function(e){var t=n.i(f.j)(e,e.platform.currentPage.url,b);return{href:t}},T={promoDismissed:function(){return function(){var e=r(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e(n.i(h.d)()),e(n.i(h.e)());case 2:case"end":return t.stop()}},t,m)}));return function(t){return e.apply(this,arguments)}}()}};t.a=n.i(d.connect)(E,T)(_)},function(e,t,n){"use strict";var r=n(149);n.d(t,"a",function(){return o}),n.d(t,"b",function(){return i});var o=function(e){return n.i(r.a)(e)},i=function(e,t){return{id:e,params:t,loading:!0,results:[]}}},function(e,t,n){"use strict";var r=n(149);n.d(t,"a",function(){return i});var o=function(e){return e},i=function(e){return n.i(r.a)(o(e))}},function(e,t,n){"use strict";var r=n(149);n.d(t,"a",function(){return o}),n.d(t,"b",function(){return i});var o=function(e){return n.i(r.a)(e)},i=function(e,t){return{id:e,params:t,loading:!0,results:[]}}},function(e,t,n){"use strict";var r=n(149);n.d(t,"a",function(){return o}),n.d(t,"b",function(){return i});var o=function(e){return n.i(r.a)(e)},i=function(e,t){return{id:e,params:t,loading:!0,results:[]}}},function(e,t,n){"use strict";var r=n(149);n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});var o=function(e){return e},i=function(e){return n.i(r.a)(o(e))},a=function(e,t){return{id:e,params:t,loading:!0,subreddits:[],posts:[]}}},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,r=t.queryParams,o=t.urlParams,i="t3_"+o.postId,a=e.posts[i];if(!a)return null;var u=void 0,s={};if(a.crosspostParent){u="crosspost";var c=a.crosspostParentObj.is_self?"self":"link";s={target_root_fullname:a.crosspostParent,target_parent_fullname:a.crosspostParent,target_crosspost_depth:a.crosspostIds.length,target_root_type:c}}else u=a.isSelf?"self":"link";return n.i(f.a)(w({target_fullname:i,nsfw:a.over18,post_fullname:i,spoiler:a.spoiler,target_id:n.i(T.d)(a.id),target_type:u,target_sort:r.sort||"confidence",target_url:a.cleanUrl,target_filter_time:"top"===r.sort?r.time||"all":null,target_created_ts:1e3*a.createdUTC},s))}var s=n(7),c=n(10),l=n(20),f=n(120),d=n(75),p=n(48),h=n(55),v=n(276),m=n(277),y=n(278),g=n(5),_=n(74),b=n(426),E=n(412),T=n(26);t.a=u;var w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),O=g.h.VARIANT_RECOMMENDED_BY_POST_TOP_ALL,P=g.h.VARIANT_RECOMMENDED_BY_POST_TOP_DAY,R=g.h.VARIANT_RECOMMENDED_BY_POST_TOP_MONTH,I=g.h.VARIANT_RECOMMENDED_BY_POST_HOT,A=new RegExp("^"+l.n+"_"),C=function(e){return A.test(e)?e:l.n+"_"+e},x=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),S(t,[{key:"buildTitle",value:function(e){return e.title+" - "+e.subreddit}},{key:c.a.GET,value:function(){function e(e,t){return o.apply(this,arguments)}var o=r(regeneratorRuntime.mark(function i(e,r){var o,a,c,l,f,v,m,y;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(o=r(),!o.platform.shell){i.next=3;
break}return i.abrupt("return");case 3:return a=t.pageParamsToCommentsPageParams(this),c=n.i(b.a)(a),l=o.platform.currentPage.urlParams.subredditName,i.next=8,Promise.all([e(p.a(a)),n.i(d.a)(e),e(p.b()),e(p.c(this.urlParams.postId)),e(h.a(l))]);case 8:f=r().posts["t3_"+this.urlParams.postId],!l&&f&&(l=f.subreddit),f&&(N(o,e,f),M(o,e,f),k(o,e,f),e(n.i(E.a)(this.buildTitle(f)))),v=r().commentsPages.api[c],m=v&&v.responseCode?v.responseCode:500,e(n.i(s.l)(m)),y=r(),n.i(T.a)(y,u(y));case 16:case"end":return i.stop()}},i,this)}));return e}()}],[{key:"pageParamsToCommentsPageParams",value:function(e){var t=e.urlParams,r=e.queryParams,o=t.postId,i=t.commentId,a=r.sort,u=r.context;o=C(o);var s=void 0;return i&&(s={comment:i,context:u}),n.i(f.a)({id:o,sort:a,query:s})}}]),t}(c.b);t.b=x;var N=function(e,t,n){var r=105;t(v.a(n,r))},M=function(e,t,n){var r=105;t(m.a(n,r))},k=function(e,t,n){var r=_.a.withContext({state:e}),o=105,i="",a="";r.enabled(O)?(a="top",i="all"):r.enabled(P)?(a="top",i="day"):r.enabled(R)?(a="top",i="month"):r.enabled(I)&&(a="hot",i="all"),t(y.a(n,a,i,o))}},function(e,t,n){"use strict";var r=n(74);n.d(t,"a",function(){return o});var o=function(e){return r.a.withContext({state: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(0),u=n.n(a),s=n(3),c=(n.n(s),n(4)),l=(n.n(c),n(95)),f=n.n(l),d=n(168),p=n.n(d),h=n(189);n.d(t,"b",function(){return g}),n.d(t,"a",function(){return T}),n.d(t,"c",function(){return O});var v=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),m=u.a.PropTypes,y=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.canArchive=!e.tester||e.tester(),n.mounted=!1,n}return i(t,e),v(t,[{key:"componentDidMount",value:function(){this.mounted=!0}},{key:"shouldComponentUpdate",value:function(e){return this.mounted&&this.updateArchiveFromProps(e),!1}},{key:"updateArchiveFromProps",value:function(e){if(this.canArchive){var t=this.buildDiffFromNextProps(e);t&&e.archiver(t)}}},{key:"buildDiffFromNextProps",value:function(e){for(var t={},n=e.datum,r=Object.keys(n),o=!1,i=0;i<r.length;i++){var a=r[i],u=n[a];u!==this.props.datum[a]&&(t[a]=u,o=!0)}if(o)return t}},{key:"render",value:function(){return!1}}]),t}(u.a.Component);y.propTypes={datum:m.object.isRequired,archiver:m.func.isRequired,tester:m.func};var g=function(){var e=arguments.length>0&&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<n.length;r++){var o=n[r],i=e[o];t(o,i)}},b=function(e,t){"undefined"==typeof t?f.a.remove(e):f.a.set(e,t)},E=function(e){_(e,b)},T=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.pop();return g(t,r,E)},w=function(e,t){var n=t;p()(t)&&(n=JSON.stringify(t)),localStorage.setItem(e,n)},S=function(e){_(e,w)},O=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.pop();return g(t,r,S,h.a)};h.a},function(e,t,n){"use strict";var r=n(95),o=n.n(r);n.d(t,"c",function(){return a}),n.d(t,"a",function(){return s});var i=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")}}(),a="session_tracker",u=function(e){if(Array.isArray(e),!1){var t=e.join(),n=new RegExp(a+"=(.+?);","g"),r=n.exec(t);if(r)return r[1]}},s=function(e){if(e){var t=e.split("."),n=i(t,1),r=n[0];return r}};t.b=function(e){var t=o.a.get(a)||u(e);return s(t)||null}},function(e,t,n){"use strict";function r(e,t){if(0===e.currentPageIndex){var r=e.history[0],i=r.url;return(t&&t.indexOf(i))>-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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),c(t,[{key:"end",value:function(){throw new Error("Please use 'then' instead")}},{key:"then",value:function(e,t){var n=this,r=new Promise(function(e,t){u.a.Request.prototype.end.call(n,function(n,r){n?t(s({},r,n)):e(r)})});return e||t?r.then(e,t):r}}]),t}(u.a.Request),f=function(e,t,n,r){var o=new l(e,t);return"function"==typeof n&&(r=n,n=null),n&&("GET"===e?o.query(n):o.send(n)),r?o.then(r):o};t.a=s({},u.a,{Request:l,head:function(e,t,n){return f("HEAD",e,t,n)},get:function(e,t,n){return f("GET",e,t,n)},post:function(e,t,n){return f("POST",e,t,n)},patch:function(e,t,n){return f("PATCH",e,t,n)},put:function(e,t,n){return f("PUT",e,t,n)},del:function(e,t){return f("DELETE",e,null,t)}})},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return o});var r=function(e,t){var n=o(t);return e?"r/"+e+"/wiki/"+n:"wiki/"+n},o=function(e){return e?(e=e.toLowerCase(),e.endsWith("/")?e.slice(0,-1):e):"index"}},function(e,t,n){"use strict";function r(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?o(e.toString()):e>=l-f?Math.floor(e/u)+"b":e>=c-f&&e<l-f?(e/c).toFixed(1)+"b":e>=s-f&&e<c-f?Math.floor(e/u)+"m":e>=u-f&&e<s-f?(e/u).toFixed(1)+"m":e>=a-f&&e<u-f?Math.floor(e/i)+"k":e>=i&&e<a-f?(e/i).toFixed(1)+"k":String(e)}t.a=r;var o=function(e){var t=e.split(".");return[t[0].replace(/\B(?=(\d{3})+(?!\d))/g,",")].concat(t.slice(1)).join(".")},i=1e3,a=100*i,u=10*a,s=100*u,c=10*s,l=100*c,f=51},function(e,t,n){"use strict";function r(e){var t=arguments.length>1&&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<this.charLength)return"";e=e.slice(n,e.length),t=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var r=t.charCodeAt(t.length-1);if(!(r>=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<r.length-1;o++){var i=r[o];i in n||(n[i]={}),n=n[i]}r=r[r.length-1],o=n[r],i=t(o),i!=o&&null!=i&&Qe(n,r,{configurable:!0,writable:!0,value:i})}}function u(e){var t="undefined"==typeof e?"undefined":i(e);if("object"==t){if(!e)return"null";if(e instanceof Array)return"array";if(e instanceof Object)return t;var n=Object.prototype.toString.call(e);if("[object Window]"==n)return"object";if("[object Array]"==n||"number"==typeof e.length&&"undefined"!=typeof e.splice&&"undefined"!=typeof e.propertyIsEnumerable&&!e.propertyIsEnumerable("splice"))return"array";if("[object Function]"==n||"undefined"!=typeof e.call&&"undefined"!=typeof e.propertyIsEnumerable&&!e.propertyIsEnumerable("call"))return"function"}else if("function"==t&&"undefined"==typeof e.call)return"object";return t}function s(e,t,n){return e.call.apply(e.bind,arguments)}function c(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function l(e,t,n){return l=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?s:c,l.apply(null,arguments)}function f(e){var t=[];return p(new d,e,t),t.join("")}function d(){}function p(e,t,n){if(null==t)n.push("null");else{if("object"==("undefined"==typeof t?"undefined":i(t))){if("array"==u(t)){var r=t;t=r.length,n.push("[");for(var o="",a=0;a<t;a++)n.push(o),o=r[a],p(e,o,n),o=",";return void n.push("]")}if(!(t instanceof String||t instanceof Number||t instanceof Boolean)){n.push("{"),a="";for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(o=t[r],"function"!=typeof o&&(n.push(a),h(r,n),n.push(":"),p(e,o,n),a=","));return void n.push("}")}t=t.valueOf()}switch("undefined"==typeof t?"undefined":i(t)){case"string":h(t,n);break;case"number":n.push(isFinite(t)&&!isNaN(t)?String(t):"null");break;case"boolean":n.push(String(t));break;case"function":n.push("null");break;default:throw Error("Unknown type: "+("undefined"==typeof t?"undefined":i(t)))}}}function h(e,t){t.push('"',e.replace(et,function(e){var t=Ze[e];return t||(t="\\u"+(65536|e.charCodeAt(0)).toString(16).substr(1),Ze[e]=t),t}),'"')}function v(e){e=String(e);try{return JSON.parse(e)}catch(t){}throw Error("Invalid JSON string: "+e)}function m(e){try{return"object"===("undefined"==typeof JSON?"undefined":i(JSON))&&"function"==typeof JSON.stringify?JSON.stringify(e):f(e)}catch(t){}throw Error("Could not stringify object")}function y(){function e(){t.length&&t[0](function(){t.shift(),e()})}var t=[];return function(n){t.push(n),1===t.length&&e()}}function g(e,t,n){return e=e.replace(/\$(\d)/g,function(e,n){return t[parseInt(n,10)-1]}),n&&(e+="\n Failure Code:"+n),e}function _(e){return{data:e.data||"",data_parsed:e.data_parsed||{},has_app:e.has_app||null,identity:e.identity||null,referring_identity:e.referring_identity||null,referring_link:e.referring_link||null}}function b(e){var t=/^\$journeys_\S+$/,n=e.data,r={};if(!n)return{};switch("undefined"==typeof n?"undefined":i(n)){case"string":try{n=v(n)}catch(o){n={}}break;case"object":break;default:n={}}return Object.keys(n).forEach(function(e){t.test(e)&&(r[e]=n[e])}),r}function E(){return Y()?document.referrer:String(window.location)}function T(){var e;return e="_branch_view_id".replace(/[\[\]]/g,"\\$&"),(e=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(E()))&&e[2]?decodeURIComponent(e[2].replace(/\+/g," ")):""}function w(e){e.source="web-sdk";var t=e.data;switch("undefined"==typeof t?"undefined":i(t)){case"string":try{t=v(t)}catch(n){t={_bncNoEval:!0}}break;case"object":break;default:t={}}t.$canonical_url||(t.$canonical_url=E()),t.$og_title||(t.$og_title=D("title")),t.$og_description||(t.$og_description=D("description")),t.$og_image_url||(t.$og_image_url=D("image")),t.$og_video||(t.$og_video=D("video")),"string"==typeof t.$desktop_url&&(t.$desktop_url=t.$desktop_url.replace(/#r:[a-z0-9-_]+$/i,"").replace(/([\?\&]_branch_match_id=\d+)/,""));try{v(t)}catch(n){t=f(t)}return e.data=t,e}function S(e){function t(e){return""!==e}if(!e||"string"!=typeof e)return"";var n=document.createElement("a");return n.href=e,e=n.pathname&&n.pathname.split("/").filter(t),Array.isArray(e)&&e.length?e[e.length-1]+n.search:n.search}function O(e,t){if(e&&"object"===("undefined"==typeof e?"undefined":i(e))||(e={}),!t||"object"!==("undefined"==typeof t?"undefined":i(t)))return e;for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function P(){try{var e=(Y()&&z()?window.top.location.hash:window.location.hash).match(/r:([^&]*)/);if(e&&1<=e.length)return e[1]}catch(t){}}function R(){var e=navigator.userAgent;return e.match(/android/i)?"android":e.match(/ipad/i)?"ipad":e.match(/i(os|p(hone|od))/i)?"ios":e.match(/\(BB[1-9][0-9]*\;/i)?"blackberry":e.match(/Windows Phone/i)?"windows_phone":!!(e.match(/Kindle/i)||e.match(/Silk/i)||e.match(/KFTT/i)||e.match(/KFOT/i)||e.match(/KFJWA/i)||e.match(/KFJWI/i)||e.match(/KFSOWI/i)||e.match(/KFTHWA/i)||e.match(/KFTHWI/i)||e.match(/KFAPWA/i)||e.match(/KFAPWI/i))&&"kindle"}function I(){var e,t=navigator.userAgent;if(/^((?!chrome|android|crios|fxios).)*safari/i.test(t))e:{var n;if(n=11,(t=/version\/([^ ]*)/i.exec(t))&&t[1])try{if(parseFloat(t[1])>=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;r<e.length;r++)o=e.charCodeAt(r),128>o?n+=String.fromCharCode(o):(127<o&&2048>o?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<e.length;)t=e.charCodeAt(s++),n=e.charCodeAt(s++),r=e.charCodeAt(s++),o=t>>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<e.indexOf("://")&&(e=e.split("://")[1]),e.substring(e.indexOf("/")+1)):null}function k(e){return e?(-1<e.indexOf("://")?e=e.split("://")[1]:"/"===e.charAt(0)&&(e=e.slice(1)),e):null}function D(e){var t;return e=String(e),t=t||null,(e=document.querySelector('meta[property="og:'+e+'"]'))&&e.content&&(t=e.content),t}function L(){var e=document.getElementsByTagName("meta"),t={};if(!e||0===e.length)return t;for(var n={hostedIOS:null,hostedAndroid:null,applinksIOS:null,applinksAndroid:null,twitterIOS:null,twitterAndroid:null},r=0;r<e.length;r++)if((e[r].getAttribute("name")||e[r].getAttribute("property"))&&e[r].getAttribute("content")){var o=e[r].getAttribute("name"),a=e[r].getAttribute("property"),o=o||a,a=o.split(":");3===a.length&&"branch"===a[0]&&"deeplink"===a[1]&&("$ios_deeplink_path"===a[2]?n.hostedIOS=k(e[r].getAttribute("content")):"$android_deeplink_path"===a[2]?n.hostedAndroid=k(e[r].getAttribute("content")):t[a[2]]=e[r].getAttribute("content")),"al:ios:url"===o&&(n.applinksIOS=k(e[r].getAttribute("content"))),"twitter:app:url:iphone"===o&&(n.twitterIOS=k(e[r].getAttribute("content"))),"al:android:url"===o&&(n.applinksAndroid=k(e[r].getAttribute("content"))),"twitter:app:url:googleplay"===o&&(n.twitterAndroid=k(e[r].getAttribute("content")))}return n&&"object"===("undefined"==typeof n?"undefined":i(n))&&Object.keys(n).length&&(n.hostedIOS?t.$ios_deeplink_path=n.hostedIOS:n.applinksIOS?t.$ios_deeplink_path=n.applinksIOS:n.twitterIOS&&(t.$ios_deeplink_path=n.twitterIOS),n.hostedAndroid?t.$android_deeplink_path=n.hostedAndroid:n.applinksAndroid?t.$android_deeplink_path=n.applinksAndroid:n.twitterAndroid&&(t.$android_deeplink_path=n.twitterAndroid),t.hasOwnProperty("$ios_deeplink_path")&&t.hasOwnProperty("$android_deeplink_path")&&t.$ios_deeplink_path===t.$android_deeplink_path&&(t.$deeplink_path=t.$ios_deeplink_path)),t}function j(){var e;try{navigator.languages&&0<navigator.languages.length?e=navigator.languages[0]:navigator.language&&(e=navigator.language),e=e.substring(0,2).toUpperCase()}catch(t){e=null}return e}function F(e,t){var n=[];return t.forEach(function(t){-1===e.indexOf(t)&&n.push(t)}),n}function U(e){var t="sku name price quantity brand category variant".split(" "),n=F("common type transaction_id currency revenue revenue_in_usd exchange_rate shipping tax coupon affiliation persona products".split(" "),Object.keys(e));if(n.length)return it.invalidKeysForRoot+n.join(", ");var r,o=[];if(e.hasOwnProperty("products")){if(!Array.isArray(e.products))return it.invalidProductListType;if(e.products.forEach(function(e){"object"!==("undefined"==typeof e?"undefined":i(e))&&(r=it.invalidProductType),o=o.concat(F(t,Object.keys(e)))}),r)return r;if(o.length)return it.invalidKeysForProducts+o.join(", ")}return null}function B(e,t){if(!e||"string"!=typeof e||-1===ot.indexOf(e.toLowerCase()))return it.missingPurchaseEvent;if(!t||"object"!==("undefined"==typeof t?"undefined":i(t))||!Object.keys(t).length)return it.missingCommerceData;var n=U(t);return n?n:null}function H(e){return"string"!=typeof e?null:e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}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")))&&0<Object.keys(e).length?e:null,t=q(t,"og_data",e),t=q(t,"hosted_deeplink_data",L()),e=document.getElementsByTagName("title"),t=q(t,"title",0<e.length?e[0].innerText:null),e=document.querySelector('meta[name="description"]'),t=q(t,"description",e&&e.content?e.content:null),e=document.querySelector('link[rel="canonical"]'),(t=q(t,"canonical_url",e&&e.href?e.href:null))&&0<Object.keys(t).length?t:{}}function G(e){if(!e||!Object.keys(e).length)return null;for(var t=F(ut,Object.keys(e)),n={},r=0;r<t.length;r++){var o=t[r];n[o]=e[o],delete e[o]}return{custom_data:$(n),event_data:e}}function W(e,t){return!(!e||!t)&&("array"===t?Array.isArray(e):("undefined"==typeof e?"undefined":i(e))===t&&!Array.isArray(e))}function K(e){var t={},t=q(t,"http_origin",document.URL),t=q(t,"user_agent",navigator.userAgent),t=q(t,"language",j()),t=q(t,"screen_width",screen.width),t=q(t,"screen_height",screen.height),t=q(t,"http_referrer",document.referrer),t=q(t,"browser_fingerprint_id",e.D),t=q(t,"developer_identity",e.G),t=q(t,"sdk","web");return t=q(t,"sdk_version","2.31.0")}function Y(){return window.self!==window.top}function z(){var e="true";try{window.top.location.search&&(e="true")}catch(t){return!1}return"true"===e}function X(e){return e?e:Y()?z()?window.top.document.referrer:"":document.referrer}function $(e){if(W(e,"object")&&Object.keys(e).length){for(var t in e)e.hasOwnProperty(t)&&(e[t]=W(e[t],"object")||W(e[t],"array")?m(e[t]):e[t].toString());return e}}function Q(e,t){var n=e?O({},e):{};return t&&0<Object.keys(t).length?0<Object.keys(n).length?O(n,t):O({},t):n}function J(e,t){return function(n,r,o){if("number"==typeof o||o)if(0===t){if("object"!==("undefined"==typeof o?"undefined":i(o)))return g("API request $1, parameter $2 is not $3",[n,r,"an object"])}else if(3===t){if(!(o instanceof Array))return g("API request $1, parameter $2 is not $3",[n,r,"an array"])}else if(2===t){if("number"!=typeof o)return g("API request $1, parameter $2 is not $3",[n,r,"a number"])}else if(4===t){if("boolean"!=typeof o)return g("API request $1, parameter $2 is not $3",[n,r,"a boolean"])}else{if("string"!=typeof o)return g("API request $1, parameter $2 is not $3",[n,r,"a string"]);if(1!==t&&!t.test(o))return g("API request $1, parameter $2 is not $3",[n,r,"in the proper format"])}else if(e)return g("API request $1 missing parameter $2",[n,r]);return!1}}function Z(e){return O(e,{browser_fingerprint_id:J(!0,st),identity_id:J(!0,st),sdk:J(!0,1),session_id:J(!0,st)})}function ee(e){for(var t=0;t<e.length;t++){var n=this[e[t]],n="function"==typeof n?n():n;if(n.isEnabled())return n.s={},n}}function te(e){return"branch_session"===e||"branch_session_first"===e?e:"BRANCH_WEBSDK_KEY"+e}function ne(e){return"true"===e||"false"!==e&&e}function re(e){return"branch_session"===e||"branch_session_first"===e||0===e.indexOf("BRANCH_WEBSDK_KEY")}function oe(e){e=e.trim();var t=e.indexOf("=");return{name:e.substring(0,t),value:ne(e.substring(t+1,e.length))}}function ie(e){var t;try{t=e&&localStorage?localStorage:sessionStorage}catch(n){return{isEnabled:function(){return!1}}}return{getAll:function(){if("undefined"==typeof t)return null;var e,n=null;for(e in t)e.indexOf("BRANCH_WEBSDK_KEY")||(null===n&&(n={}),n[e.replace("BRANCH_WEBSDK_KEY","")]=ne(t.getItem(e)));return n},get:function(e,n){return ne(n&&localStorage?localStorage.getItem(te(e)):t.getItem(te(e)))},set:function(e,n,r){r&&localStorage?localStorage.setItem(te(e),n):t.setItem(te(e),n)},remove:function(e,n){n&&localStorage?localStorage.removeItem(te(e)):t.removeItem(te(e))},clear:function(){Object.keys(t).forEach(function(e){e.indexOf("BRANCH_WEBSDK_KEY")||t.removeItem(e)})},isEnabled:function(){try{return t.setItem("test",""),t.removeItem("test"),!0}catch(e){return!1}}}}function ae(){function e(e,t){t&&(e=te(e)),document.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/"}return{getAll:function(){for(var e={},t=document.cookie.split(";"),n=0;n<t.length;n++){var r=oe(t[n]);r&&r.hasOwnProperty("name")&&r.hasOwnProperty("value")&&re(r.name)&&(e[r.name.replace("BRANCH_WEBSDK_KEY","")]=r.value)}return e},get:function(e){e=te(e);for(var t=document.cookie.split(";"),n=0;n<t.length;n++){var r=oe(t[n]);if(r&&r.hasOwnProperty("name")&&r.hasOwnProperty("value")&&r.name===e)return r.value}return null},set:function(e,t){document.cookie=te(e)+"="+t+"; path=/"},remove:function(t){e(t,!0)},clear:function(){for(var t=document.cookie.split(";"),n=0;n<t.length;n++){var r=oe(t[n]);r&&r.hasOwnProperty("name")&&re(r.name)&&e(r.name,!1)}},isEnabled:function(){return navigator.cookieEnabled}}}function ue(e,t){try{return v(e.get(t?"branch_session_first":"branch_session",t))||null}catch(n){return null}}function se(e,t,n){e.set("branch_session",f(t)),n&&e.set("branch_session_first",f(t),!0)}function ce(e,t){if(t){var n=ue(e)||{},n=O(n,t);e.set("branch_session",f(n))}}function le(){}function fe(e,t,n){if("undefined"==typeof t)return"";var r=[];if(t instanceof Array){for(e=0;e<t.length;e++)r.push(encodeURIComponent(n)+"="+encodeURIComponent(t[e]));return r.join("&")}for(var o in t)t.hasOwnProperty(o)&&(t[o]instanceof Array||"object"===i(t[o])?r.push(fe(e,t[o],n?n+"."+o:o)):r.push(encodeURIComponent(n?n+"."+o:o)+"="+encodeURIComponent(t[o])));return r.join("&")}function de(e,t,n){function r(e,n){if("undefined"==typeof n&&(n={}),e.branch_key&&s.test(e.branch_key))return n.branch_key=e.branch_key,n;if(e.app_id&&u.test(e.app_id))return n.app_id=e.app_id,n;throw Error(g("API request $1 missing parameter $2",[t.endpoint,"branch_key or app_id"]))}var o,i,a=t.destination+t.endpoint,u=/^[0-9]{15,20}$/,s=/key_(live|test)_[A-Za-z0-9]{32}/;if("/v1/has-app"===t.endpoint)try{t.f=r(n,t.f)}catch(c){return{error:c.message}}if("undefined"!=typeof t.f)for(o in t.f)if(t.f.hasOwnProperty(o)){if(i="function"==typeof t.f[o]?t.f[o](t.endpoint,o,n[o]):i)return{error:i};a+="/"+n[o]}var l={};if("undefined"!=typeof t.a)for(o in t.a)if(t.a.hasOwnProperty(o)){if(i=t.a[o](t.endpoint,o,n[o]))return{error:i};i=n[o],"undefined"!=typeof i&&""!==i&&null!==i&&(l[o]=i)}if("POST"===t.method||"/v1/credithistory"===t.endpoint)try{n=r(n,l)}catch(c){return{error:c.message}}return"/v1/event"===t.endpoint&&(l.metadata=m(l.metadata||{}),l.hasOwnProperty("commerce_data")&&(l.commerce_data=m(l.commerce_data||{}))),"/v1/open"===t.endpoint&&(l.options=m(l.options||{})),{data:fe(e,l,""),url:a.replace(/^\//,"")}}function pe(e,t,n){var r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src=e,e=document.getElementsByTagName("head"),!e||1>e.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<l&&"5"===(n||"").toString().substring(0,1)?(l--,window.setTimeout(function(){i()},nt)):o(e,t)}var u=de(e,t,n);if(u.error)return o(Error(m({message:u.error,endpoint:t.endpoint,data:n})));var s,c="";"GET"===t.method?s=u.url+"?"+u.data:(s=u.url,c=u.data);var l=tt;i()}function ye(e){e&&e.parentNode.removeChild(e)}function ge(e,t){e&&!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))&&(e.className+=" "+t)}function _e(e){var t=document.body;t&&t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))&&(t.className=t.className.replace(new RegExp("(\\s|^)"+e+"(\\s|$)")," "))}function be(e){var t=new Date;return t.setDate(t.getDate()+e)}function Ee(e){return document.body.currentStyle?document.body.currentStyle[C(e)]:window.getComputedStyle(document.body).getPropertyValue(e)}function Te(e){function t(e){function n(){return Math.max(document.documentElement.clientHeight,window.innerHeight||0)/100}function r(){return Math.max(document.documentElement.clientWidth,window.innerWidth||0)/100}if(!e)return 0;var o=e.replace(/[0-9,\.]/g,"");e=e.match(/\d+/g);var i=parseInt(0<e.length?e[0]:"0",10);return parseInt({px:function(e){return e},em:function(e){return document.body.currentStyle?e*t(document.body.currentStyle.fontSize):e*parseFloat(window.getComputedStyle(document.body).fontSize)},rem:function(e){return document.documentElement.currentStyle?e*t(document.documentElement.currentStyle.fontSize):e*parseFloat(window.getComputedStyle(document.documentElement).fontSize)},vw:function(e){return e*r()},vh:function(e){return e*n()},vmin:function(e){return e*Math.min(n(),r())},vmax:function(e){return e*Math.max(n(),r())},"%":function(){return document.body.clientWidth/100*i}}[o](i),10)}return(t("76px")+t(e)).toString()+"px"}function we(e,t){var n=e.get("hideBanner",!0);if(t.ia&&navigator&&Number(navigator.doNotTrack))return!1;try{"string"==typeof n&&(n=v(n))}catch(r){n=!1}var n="number"==typeof n?new Date>=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+='<span class="star"><svg class="star" fill="#555555" height="12" viewBox="3 2 20 19" width="12"><path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"/><path d="M0 0h24v24H0z" fill="none"/><foreignObject display="none"><span class="star">☆</span></foreignObject></svg>',e.u>r&&(n+=r+1>e.u&&e.u%1?'<span class="half"><svg fill="#555555" height="12" viewBox="3 2 20 19" width="12"><defs><path d="M0 0h24v24H0V0z" id="a"/></defs><clipPath id="b"><use overflow="visible" xlink:href="#a"/></clipPath><path clip-path="url(#b)" d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"/></svg><foreignObject display="none"><span class="half">★</span></foreignObject></span>':'<span class="full"><svg fill="#555555" height="12" viewBox="3 2 20 19" width="12"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/><path d="M0 0h24v24H0z" fill="none"/><foreignObject display="none"><span class="full">★</span></foreignObject></svg> </span>'),n+="</span>";n='<span class="stars">'+n+"</span>"}else n="";n='<div class="reviews">'+n+(e.H?'<span class="review-count">'+e.H+"</span>":"")+"</div>"}else n="";return'<div class="content'+(e.theme?" theme-"+e.theme:"")+'"><div class="right">'+t+'</div><div class="left">'+(e.ba?"":'<div id="branch-banner-close" class="branch-animation" aria-label="Close">&times;</div>')+'<div class="icon"><img src="'+e.icon+'" alt="Application icon"></div><div class="details vertically-align-middle"><div class="title">'+e.title+"</div>"+n+'<div class="description">'+e.description+"</div></div></div></div>"}function Re(e,t){var n='<div id="branch-sms-form-container">'+(R()?'<a id="branch-mobile-action" class="button" href="#" target="_parent">'+((ue(t)||{}).has_app?e.fa:e.ca)+"</a>":'<div class="branch-icon-wrapper" id="branch-loader-wrapper" style="opacity: 0;"><div id="branch-spinner"></div></div><div id="branch-sms-block"><form id="sms-form"><input type="phone" aria-label="Enter phone number" class="branch-animation" name="branch-sms-phone" id="branch-sms-phone" placeholder="'+e.ha+'"><button type="submit" id="branch-sms-send" class="branch-animation button">'+e.ja+"</button></form></div>")+"</div>";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='<html><head></head><body class="'+("ios"===o||"ipad"===o?"branch-banner-ios":"android"===o?"branch-banner-android":"branch-banner-desktop")+'"><div id="branch-banner" class="branch-animation">'+Pe(e,n)+"</body></html>";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?'<span class="checkmark">&#x2713;</span>':'<svg version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 98.5 98.5" enable-background="new 0 0 98.5 98.5" xml:space="preserve"><path class="checkmark" fill="none" stroke-width="8" stroke-miterlimit="10" d="M81.7,17.8C73.5,9.3,62,4,49.2,4C24.3,4,4,24.3,4,49.2s20.3,45.2,45.2,45.2s45.2-20.3,45.2-45.2c0-8.6-2.4-16.6-6.5-23.4l0,0L45.6,68.2L24.7,47.3"/></svg>',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"),0<Dt.length&&Dt.forEach(function(e){var t,n=window.getComputedStyle(e);n&&(t=Mt&&"fixed"===n.getPropertyValue("position")),t||(e.style.marginTop=Nt)}),"top"===en&&en!==Ct&&Zt&&tn&&0<tn.length&&tn.forEach(function(e){e.style.marginTop=0}),Zt=!1,en="",tn=[],Jt=!1,e.innerHTML=Ne(),document.head.appendChild(e)}function Ne(){var e="",t="";return document.body.style.transition="",document.getElementById("branch-banner-iframe")&&(document.getElementById("branch-banner-iframe").style.transition=""),Qt||(e="body { -webkit-transition: all 0.375s ease; }\n",document.body.style.transition="all 00.375s ease",t="-webkit-transition: all 0.25s ease; transition: all 00.25s ease;"),(e?e:"")+("#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: "+Nt+"; z-index: 99999; "+t+" }\n#branch-banner-iframe { position: "+xt+"; }\n@media only screen and (orientation: landscape) { body { "+("top"===Ct?"margin-top: ":"margin-bottom: ")+(Mt?jt+"px":Nt)+"; }\n#branch-banner-iframe { height: "+(Mt?jt+"px":Nt)+"; }")}function Me(e){ge(document.body,"branch-banner-is-active"),Mt&&"fixed"===xt&&ge(document.body,"branch-banner-no-scroll"),setTimeout(function(){"top"===Ct?e.style.top="0":"bottom"===Ct&&(e.style.bottom="0"),Xe(Yt,"didShowJourney",nn),Xt=!0},20)}function ke(e){var t=7;return(e=e.match(Ht))&&(e=v(e[1])||{},"number"==typeof e.dismissPeriod&&(t=e.dismissPeriod)),-1===t||be(t)}function De(e,t,n,r,o){if(zt=r,n&&r){var i=r.contentWindow.document;Array.prototype.forEach.call(i.querySelectorAll("#branch-mobile-action"),function(e){e.addEventListener("click",function(){Xe(Yt,"didClickJourneyCTA",nn),Jt=!0,n(),Le(r)})});var a=i.querySelectorAll(".branch-banner-continue");Array.prototype.forEach.call(a,function(n){n.addEventListener("click",function(){Xe(Yt,"didClickJourneyContinue",nn),Jt=!0,Le(r),t.set("hideBanner"+e.id,o,!0)})}),a=i.querySelectorAll(".branch-banner-close"),Array.prototype.forEach.call(a,function(n){n.addEventListener("click",function(){Xe(Yt,"didClickJourneyClose",nn),Jt=!0,Le(r),t.set("hideBanner"+e.id,o,!0)})})}}function Le(e){if(Qt&&!$t){document.body.style.transition="all 00.375s ease",document.getElementById("branch-banner-iframe").style.transition="all 00.25s ease";var t=document.getElementById("branch-iframe-css").innerHTML+"\n";document.getElementById("branch-iframe-css").innerHTML="",document.getElementById("branch-iframe-css").innerHTML=t+"body { -webkit-transition: all 0.375s ease; }\n#branch-banner-iframe { -webkit-transition: all 0.25s ease; }\n"}"top"===Ct?e.style.top="-"+Nt:"bottom"===Ct&&(e.style.bottom="-"+Nt),Xe(Yt,"willCloseJourney",nn),setTimeout(function(){ye(e),ye(document.getElementById("branch-css")),ye(document.getElementById("branch-iframe-css")),ye(document.getElementById("branch-journey-cta")),(!$t||Jt)&&Dt&&0<Dt.length?Dt.forEach(function(e){e.style.marginTop=0}):(Zt=$t,en=Ct,tn=Dt),"top"===Ct?document.body.style.marginTop=Ut:"bottom"===Ct&&(document.body.style.marginBottom=Bt),_e("branch-banner-is-active"),_e("branch-banner-no-scroll"),Xe(Yt,"didCloseJourney",nn),Xt=!1},$t?0:270)}function je(e,t){var n={banner_id:At},r=e.match(Kt);if(r){var o=r[1],r="";try{r=v(o)}catch(a){}if(r){var o=r.journey_link_data,u=["browser_fingerprint_id","app_id","source","open_app","link_click_id"];if(o&&"object"===("undefined"==typeof o?"undefined":i(o))&&!Array.isArray(o)&&0<Object.keys(o).length&&u&&Array.isArray(u)&&0<u.length)for(var s in o)o.hasOwnProperty(s)&&-1<u.indexOf(s)&&delete o[s];n=O(n,r)}}if(nn=n,Xe(Yt,"willShowJourney",nn),n=t?"OPEN":"GET",s=e,(r=Ce(s))&&r.bannerHeight&&r.position&&r.sticky?(Nt=r.bannerHeight,Ct=r.position,xt=r.sticky):(s=s.match(Gt))?(Ct="top",(s=s[1].match(Wt))&&(Nt=s[1]),xt="absolute"):(Ct="bottom",xt="fixed"),-1===Nt.indexOf("vh")&&-1===Nt.indexOf("%")||(s=Nt.indexOf("vh")?Nt.slice(0,-2):Nt.slice(0,-1),Nt=s/100*Lt+"px",100>s?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<c.length;s++)Dt.push(c[s].parentElement)}c=(c=e.match(Vt))?c[1]:void 0,(s=e.match(qt))&&(s=s[1],r=document.createElement("script"),r.id="branch-journey-cta",r.innerHTML=s,document.body.appendChild(r)),s=e;var r=s.match(Ht),o=s.match(qt),u=s.match(Vt),l=s.match(Kt);if(r&&(s=s.replace(Ht,"")),o&&(s=s.replace(qt,"")),u&&(s=s.replace(Vt,"")),l&&(s=s.replace(Kt,"")),e=s,s=document.createElement("iframe"),s.src="about:blank",s.style.overflow="hidden",s.scrolling="no",s.id="branch-banner-iframe",s.className="branch-animation",document.body.appendChild(s),r=R(),r='<html><head></head><body class="'+("ios"===r||"ipad"===r?"branch-banner-ios":"android"===r?"branch-banner-android":"branch-banner-desktop")+'">'+e+"</body></html>",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<e.indexOf("?")?"&":"?")+"link_click_id=a-"+btoa(m(t))}function Ve(e){var t=document.createElement("link");t.setAttribute("rel","alternate"),t.setAttribute("href",e),document.head.appendChild(t)}function Ge(e){"android"===e&&"string"==typeof an.androidPackageName&&"string"==typeof an.androidURL&&(on.androidDetailsComplete=!0,He("android")),"ios"===e&&"string"==typeof an.iosAppId&&"string"==typeof an.iosURL&&(on.iosDetailsComplete=!0,He("ios"))}function We(e){for(var t=document.getElementsByTagName("meta"),n=0;n<t.length;n++){var r=t[n];"ios"===e&&"al:ios:app_store_id"===r.getAttribute("property")&&(an.iosAppId=r.getAttribute("content")),"ios"===e&&"al:ios:url"===r.getAttribute("property")&&(an.iosURL=r.getAttribute("content").replace("://","/")),"android"===e&&"al:android:package"===r.getAttribute("property")&&(an.androidPackageName=r.getAttribute("content")),"android"===e&&"al:android:url"===r.getAttribute("property")&&(an.androidURL=r.getAttribute("content").replace("://","/"))}Ge(e)}function Ke(e,t,n){return function(){var r,o,i=this,a=arguments[arguments.length-1];e&&"function"==typeof a?(r=Array.prototype.slice.call(arguments,0,arguments.length-1)||[],o=a):(o=function(){},r=Array.prototype.slice.call(arguments)),i.X(function(a){function u(t,n){try{if(t&&!e)throw t;1===e?o(t):2===e&&o(t,n)}finally{a()}}if(!n){if(1===i.j)return u(Error(g("Branch SDK initialization pending and a Branch method was called outside of the queue order")),null);if(2===i.j)return u(Error(g("Branch SDK initialization failed, so further methods cannot be called",i.h,i.l)),null);if(0===i.j||!i.j)return u(Error(g("Branch SDK not initialized")),null)}r.unshift(u),t.apply(i,r)})}}function Ye(){return this instanceof Ye?(this.X=y(),this.b=new ee(["session","cookie","pojo"]),this.O=new le,this.g=[],this.R="web2.31.0",this.h=this.j=0,void(this.l=null)):(Ft||(Ft=new Ye),Ft)}function ze(e){var t=ue(e.b);return(t=t&&t.referring_link)?t:(e=e.b.get("click_id"))?"https://bnc.lt/c/"+e:null}function Xe(e,t,n){for(var r=0;r<e.g.length;r++)e.g[r].event&&e.g[r].event!==t||e.g[r].listener(t,n)}function $e(e,t,n){n=n||{};try{e.A=v(m(n))}finally{e.A=e.A||{}}t()}var Qe="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){if(n.get||n.set)throw new TypeError("ES3 does not support getters and setters.");e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value)},Je="undefined"!=typeof window&&window===this?this:"undefined"!=typeof r&&null!=r?r:this;a("String.prototype.includes",function(e){return e?e:function(e,t){if(null==this)throw new TypeError("The 'this' value for String.prototype.includes must not be null or undefined");if(e instanceof RegExp)throw new TypeError("First argument to String.prototype.includes must not be a regular expression");return-1!==(this+"").indexOf(e,t||0)}}),a("Number.isFinite",function(e){return e?e:function(e){return"number"==typeof e&&(!isNaN(e)&&1/0!==e&&-(1/0)!==e)}}),a("Number.isInteger",function(e){return e?e:function(e){return!!Number.isFinite(e)&&e===Math.floor(e)}});var Ze={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},et=/\uffff/.test("￿")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g,tt=2,nt=200,rt=5e3,ot=["purchase"],it={missingPurchaseEvent:"event name is either missing, of the wrong type or not valid. Please specify 'purchase' as the event name.",missingCommerceData:"commerce_data is either missing, of the wrong type or empty. Please ensure that commerce_data is constructed correctly.",invalidKeysForRoot:"Please remove the following keys from the root of commerce_data: ",invalidKeysForProducts:"Please remove the following keys from commerce_data.products: ",invalidProductListType:"commerce_data.products must be an array of objects",invalidProductType:"Each product in the products list must be an object"},at="ADD_TO_CART ADD_TO_WISHLIST VIEW_CART INITIATE_PURCHASE ADD_PAYMENT_INFO PURCHASE SPEND_CREDITS SEARCH VIEW_ITEM VIEW_ITEMS RATE SHARE COMPLETE_REGISTRATION COMPLETE_TUTORIAL ACHIEVE_LEVEL UNLOCK_ACHIEVEMENT".split(" "),ut="transaction_id revenue currency shipping tax coupon affiliation search_query description".split(" "),st=/^[0-9]{15,20}$/,ct={destination:"https://api.branch.io",endpoint:"/v1/open",method:"POST",a:{browser_fingerprint_id:J(!1,st),alternative_browser_fingerprint_id:J(!1,st),identity_id:J(!1,st),link_identifier:J(!1,1),sdk:J(!1,1),options:J(!1,0),initial_referrer:J(!1,1)}},lt={destination:"https://app.link",endpoint:"/_r",method:"GET",U:!0,a:{sdk:J(!0,1),_t:J(!1,st),branch_key:J(!0,1)}},ft={destination:"",endpoint:"",method:"GET",f:{link_url:J(!0,1)},a:{click:J(!0,1)}},dt={destination:"https://bnc.lt",endpoint:"/c",method:"POST",f:{link_url:J(!0,1)},a:{sdk:J(!1,1),phone:J(!0,1)}},pt={destination:"https://api.branch.io",endpoint:"/v1/referralcode",method:"POST",a:Z({amount:J(!0,2),bucket:J(!1,1),calculation_type:J(!0,2),creation_source:J(!0,2),expiration:J(!1,1),location:J(!0,2),prefix:J(!1,1),type:J(!0,1)})},ht={destination:"https://api.branch.io",endpoint:"/v1/referralcode",method:"POST",f:{code:J(!0,1)},a:Z({})},vt={destination:"https://api.branch.io",endpoint:"/v1/applycode",method:"POST",f:{code:J(!0,1)},a:Z({})},mt={destination:"https://api.branch.io",endpoint:"/v1/logout",method:"POST",a:Z({session_id:J(!0,st)})},yt={destination:"https://api.branch.io",endpoint:"/v1/profile",method:"POST",a:Z({identity_id:J(!0,st),identity:J(!0,1)})},gt={destination:"https://api.branch.io",endpoint:"/v1/referrals",method:"GET",f:{identity_id:J(!0,st)},a:Z({})},_t={destination:"https://api.branch.io",endpoint:"/v1/credithistory",method:"GET",a:Z({begin_after_id:J(!1,st),bucket:J(!1,1),direction:J(!1,2),length:J(!1,2),link_click_id:J(!1,st)})},bt={destination:"https://api.branch.io",endpoint:"/v1/credits",method:"GET",a:Z({branch_key:J(!0,1),identity:J(!0,1)})},Et={destination:"https://api.branch.io",endpoint:"/v1/redeem",method:"POST",a:Z({amount:J(!0,2),bucket:J(!0,1),identity_id:J(!0,st)})},Tt={destination:"https://api.branch.io",endpoint:"/v1/url",method:"POST",va:"obj",a:Z({alias:J(!1,1),campaign:J(!1,1),channel:J(!1,1),data:J(!1,1),feature:J(!1,1),identity_id:J(!0,st),stage:J(!1,1),tags:J(!1,3),type:J(!1,2),source:J(!1,1)})},wt={destination:"https://api.branch.io",endpoint:"/v1/deepview",U:!0,method:"POST",a:Z({campaign:J(!1,1),_t:J(!1,st),channel:J(!1,1),data:J(!0,1),feature:J(!1,1),link_click_id:J(!1,1),open_app:J(!1,4),append_deeplink_path:J(!1,4),stage:J(!1,1),tags:J(!1,3),deepview_type:J(!0,1),source:J(!0,1)})},St={destination:"https://api.branch.io",endpoint:"/v1/has-app",method:"GET",a:{browser_fingerprint_id:J(!0,st)}},Ot={destination:"https://api.branch.io",endpoint:"/v1/event",method:"POST",a:Z({event:J(!0,1),metadata:J(!0,0),initial_referrer:J(!1,1)})},Pt={destination:"https://api.branch.io",endpoint:"/v1/event",method:"POST",a:Z({event:J(!0,1),metadata:J(!1,0),initial_referrer:J(!1,1),commerce_data:J(!0,0)})},Rt={destination:"https://api.branch.io",endpoint:"/v2/event/standard",method:"POST",a:{name:J(!0,1),user_data:J(!0,1),custom_data:J(!1,1),event_data:J(!1,1),content_items:J(!1,1)}},It={destination:"https://api.branch.io",endpoint:"/v2/event/custom",method:"POST",a:{name:J(!0,1),user_data:J(!0,1),custom_data:J(!1,1)}};ee.prototype.local=function(){return ie(!0)},ee.prototype.session=function(){return ie(!1)},ee.prototype.cookie=function(){return ae()},ee.prototype.pojo={getAll:function(){return this.s},get:function(e){return this.s[e]||null},set:function(e,t){this.s[e]=t},remove:function(e){delete this.s[e]},clear:function(){this.s={}},isEnabled:function(){return!0}},le.prototype.g=0;var At,Ct="top",xt="absolute",Nt="76px",Mt=!1,kt=!1,Dt=[],Lt=window.innerHeight,jt=window.innerWidth;window.innerHeight<window.innerWidth&&(Lt=window.innerWidth,jt=window.innerHeight);var Ft,Ut=0,Bt=0,Ht=/<script type="application\/json">((.|\s)*?)<\/script>/,qt=/<script type="text\/javascript">((.|\s)*?)<\/script>/,Vt=/<style type="text\/css" id="branch-css">((.|\s)*?)<\/style>/,Gt=/#branch-banner-spacer {((.|\s)*?)}/,Wt=/margin-bottom: (.*?);/,Kt=/<script id="journeyLinkData" type="application\/json">((.|\s)*?)<\/script>/,Yt=null,zt=null,Xt=!1,$t=!1,Qt=!1,Jt=!1,Zt=!1,en="",tn=[],nn=null,rn=1,on={androidAppIndexingTagsPresent:!1,iosAppIndexingTagsPresent:!1,androidDetailsComplete:!1,iosDetailsComplete:!1},an={};Ye.prototype.c=function(e,t,n){return this.P&&(t.app_id=this.P),this.i&&(t.branch_key=this.i),(e.a&&e.a.session_id||e.f&&e.f.session_id)&&this.I&&(t.session_id=this.I),(e.a&&e.a.identity_id||e.f&&e.f.identity_id)&&this.v&&(t.identity_id=this.v),(e.a&&e.a.link_click_id||e.f&&e.f.link_click_id)&&this.V&&(t.link_click_id=this.V),(e.a&&e.a.sdk||e.f&&e.f.sdk)&&this.R&&(t.sdk=this.R),(e.a&&e.a.browser_fingerprint_id||e.f&&e.f.browser_fingerprint_id)&&this.D&&(t.browser_fingerprint_id=this.D),me(this.O,e,t,this.b,function(e,t){n(e,t)})},Ye.prototype.init=Ke(2,function(e,t,n){function r(){var e,t;"undefined"!=typeof document.hidden?(e="hidden",t="visibilitychange"):"undefined"!=typeof document.mozHidden?(e="mozHidden",t="mozvisibilitychange"):"undefined"!=typeof document.msHidden?(e="msHidden",t="msvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(e="webkitHidden",t="webkitvisibilitychange"),t&&document.addEventListener(t,function(){document[e]||(a(null),"function"==typeof s.C&&s.C())},!1)}function o(r,o){if(o&&(o=u(o),se(s.b,o,d),s.j=3,o.data_parsed=o.data&&0!==o.data.length?v(o.data):{}),r)return s.j=2,s.h||(s.h=1,s.l=r.message),e(r,o&&_(o));var a=V(),c=W(n.metadata,"object")?n.metadata:null;c&&(c=Q(a.hosted_deeplink_data,c))&&0<Object.keys(c).length&&(a.hosted_deeplink_data=c),s.c(Ot,{event:"pageview",metadata:O({url:l,user_agent:navigator.userAgent,
language:navigator.language,screen_width:screen.width||-1,screen_height:screen.height||-1},a||{}),initial_referrer:X(ze(s))},function(r,a){r||"object"!==("undefined"==typeof a?"undefined":i(a))||Be(t,o,a,n,s);try{e(r,o&&_(o))}catch(u){}finally{s.renderFinalize()}})}function a(e){var t={sdk:"2.31.0",branch_key:s.i},n=ue(s.b)||{},r=ue(s.b,!0)||{};r.browser_fingerprint_id&&(t._t=r.browser_fingerprint_id),I()||s.c(lt,t,function(e,t){e&&(s.h=3,s.l=e.message),t&&(n.browser_fingerprint_id=t)}),s.c(St,{browser_fingerprint_id:n.browser_fingerprint_id},function(t,r){t&&(s.h=4,s.l=t.message),t||!r||n.has_app||(n.has_app=!0,ce(s.b,n),Xe(s,"didDownloadApp")),e&&e(null,n)})}function u(e){if(e.link_click_id&&(s.V=e.link_click_id.toString()),e.session_id&&(s.I=e.session_id.toString()),e.identity_id&&(s.v=e.identity_id.toString()),e.link&&(s.W=e.link),e.referring_link){var t=e.referring_link;e.referring_link=t?"http"!==t.substring(0,4)?"https://bnc.lt"+t:t:null}return!e.click_id&&e.referring_link&&(e.click_id=S(e.referring_link)),s.D=e.browser_fingerprint_id,e}var s=this;s.j=1,-1<t.indexOf("key_")?s.i=t:s.P=t,tt=(n=n&&W(n,"object")?n:{})&&n.retries&&Number.isInteger(n.retries)?n.retries:tt,nt=n&&n.retry_delay&&Number.isInteger(n.retry_delay)?n.retry_delay:nt,rt=n&&n.timeout&&Number.isInteger(n.timeout)?n.timeout:rt;var c=ue(s.b),l=n&&n.url||E(),f=(n&&"undefined"!=typeof n.branch_match_id&&null!==n.branch_match_id?n.branch_match_id:null)||A()||P(),d=!c||!c.identity_id;if(s.m=!!s.b.get("branch_view_enabled"),c&&c.session_id&&!f)ce(s.b,{data:""}),ce(s.b,{referring_link:""}),r(),a(o);else{var c={sdk:"2.31.0",branch_key:s.i},p=ue(s.b,!0)||{};p.browser_fingerprint_id&&(c._t=p.browser_fingerprint_id),I()?s.c(ct,{link_identifier:f,browser_fingerprint_id:f||p.browser_fingerprint_id,alternative_browser_fingerprint_id:p.browser_fingerprint_id,options:n,initial_referrer:X(ze(s))},function(e,t){e&&(s.h=2,s.l=e.message),e||"object"!==("undefined"==typeof t?"undefined":i(t))||(s.m=!!t.branch_view_enabled,s.b.set("branch_view_enabled",s.m),f&&(t.click_id=f)),r(),o(e,t)}):s.c(lt,c,function(e,t){return e?(s.h=3,s.l=e.message,o(e,null)):void s.c(ct,{link_identifier:f,browser_fingerprint_id:f||t,alternative_browser_fingerprint_id:p.browser_fingerprint_id,options:n,initial_referrer:X(ze(s))},function(e,t){e&&(s.h=2,s.l=e.message),e||"object"!==("undefined"==typeof t?"undefined":i(t))||(s.m=!!t.branch_view_enabled,s.b.set("branch_view_enabled",s.m),f&&(t.click_id=f)),r(),o(e,t)})})}},!0),Ye.prototype.renderQueue=Ke(0,function(e,t){this.Y?t():(this.o=this.o||[],this.o.push(t)),e(null,null)}),Ye.prototype.renderFinalize=Ke(2,function(e){this.o&&0<this.o.length&&(this.o.forEach(function(e){e.call(this)}),delete this.o),this.Y=!0,e(null,null)}),Ye.prototype.data=Ke(2,function(e){var t=_(ue(this.b));t.referring_link=ze(this),t.data_parsed=t.data&&0!==t.data.length?v(t.data):{},e(null,t)}),Ye.prototype.first=Ke(2,function(e){e(null,_(ue(this.b,!0)))}),Ye.prototype.setIdentity=Ke(2,function(e,t){var n=this;this.c(yt,{identity:t},function(r,o){r&&e(r),o=o||{},n.v=o.identity_id?o.identity_id.toString():null,n.W=o.link,n.G=t,o.referring_data_parsed=o.referring_data?v(o.referring_data):null,ce(n.b,o),e(null,o)})}),Ye.prototype.logout=Ke(1,function(e){var t=this;this.c(mt,{},function(n,r){n&&e(n),r=r||{},r={data_parsed:null,data:null,referring_link:null,click_id:null,link_click_id:null,identity:null,session_id:r.session_id,identity_id:r.identity_id,link:r.link,device_fingerprint_id:t.ta||null},t.W=r.link,t.I=r.session_id,t.v=r.identity_id,t.G=r.identity,ce(t.b,r),e(null)})}),Ye.prototype.track=Ke(1,function(e,t,n,r){var o=this;if(n=n||{},r=r||{},"pageview"===t){var a=Q(L(),n);a&&0<Object.keys(a).length&&(n.hosted_deeplink_data=a)}o.c(Ot,{event:t,metadata:O({url:E(),user_agent:navigator.userAgent,language:navigator.language},n),initial_referrer:X(ze(o))},function(n,a){n||"object"!==("undefined"==typeof a?"undefined":i(a))||"pageview"!==t||Be(o.i,ue(o.b),a,r,o),"function"==typeof e&&e.apply(this,arguments)})}),Ye.prototype.logEvent=Ke(1,function(e,t,n,r){t=W(t,"string")?t:null,n=W(n,"object")?n:null,-1<at.indexOf(t)?(r=W(r,"array")?r:null,n=G(n),this.c(Rt,{name:t,user_data:m(K(this)),custom_data:m(n&&n.custom_data||{}),event_data:m(n&&n.event_data||{}),content_items:m(r||[])},function(t){return e(t||null)})):this.c(It,{name:t,user_data:m(K(this)),custom_data:m($(n)||{})},function(t){return e(t||null)})}),Ye.prototype.link=Ke(2,function(e,t){this.c(Tt,w(t),function(t,n){e(t,n&&n.url)})}),Ye.prototype.sendSMS=Ke(1,function(e,t,n,r){function o(n){i.c(dt,{link_url:n,phone:t},function(t){e(t||null)})}var i=this;"function"==typeof r?r={}:"undefined"!=typeof r&&null!==r||(r={}),r.make_new_link=r.make_new_link||!1,n.channel&&"app banner"!==n.channel||(n.channel="sms");var a=ze(i);a&&!r.make_new_link?o(S(a)):i.c(Tt,w(n),function(t,n){if(t)return e(t);var r=n.url;/(bnc.lt\/|app\.link\/)/.test(r)||(r="https://bnc.lt/"+M(r)),i.c(ft,{link_url:r,click:"click"},function(t,n){return t?e(t):void o(n.click_id)})})}),Ye.prototype.deepview=Ke(1,function(e,t,n){var r=this;n||(n={}),n.deepview_type="undefined"==typeof n.deepview_type?"deepview":"banner",t.data=O(L(),t.data),t=Y()?O({is_iframe:!0},t):t;var o,i="https://bnc.lt/a/"+r.i,a=!0;for(o in t)t.hasOwnProperty(o)&&"data"!==o&&(a?(i+="?",a=!1):i+="&",i+=encodeURIComponent(o)+"="+encodeURIComponent(t[o]));t=w(t),(n.open_app||null===n.open_app||"undefined"==typeof n.open_app)&&(t.open_app=!0),t.append_deeplink_path=!!n.append_deeplink_path,t.deepview_type=n.deepview_type,(a=ze(r))&&!n.make_new_link&&(t.link_click_id=S(a)),t.banner_options=n,r.C=l(this.c,r,wt,t,function(t,n){return t?(r.B=function(){window.top.location=i},e(t)):("function"==typeof n&&(r.B=n),void e(null))}),r.C()}),Ye.prototype.deepviewCta=Ke(1,function(e){if("undefined"==typeof this.B)throw Error("Cannot call Deepview CTA, please call branch.deepview() first.");window.event&&(window.event.preventDefault?window.event.preventDefault():window.event.returnValue=!1),Xe(this,"didDeepviewCTA"),this.B(),e()}),Ye.prototype.referrals=Ke(2,function(e){this.c(gt,{},e)}),Ye.prototype.getCode=Ke(2,function(e,t){t.type="credit",t.creation_source=t.creation_source||2,this.c(pt,t,e)}),Ye.prototype.validateCode=Ke(1,function(e,t){this.c(ht,{code:t},e)}),Ye.prototype.applyCode=Ke(1,function(e,t){this.c(vt,{code:t},e)}),Ye.prototype.credits=Ke(2,function(e){this.c(bt,{branch_key:this.i,identity:this.G},e)}),Ye.prototype.creditHistory=Ke(2,function(e,t){this.c(_t,t||{},e)}),Ye.prototype.redeem=Ke(1,function(e,t,n){this.c(Et,{amount:t,bucket:n},function(t){e(t||null)})}),Ye.prototype.addListener=function(e,t){"function"==typeof e&&void 0===t&&(t=e,e=null),t&&this.g.push({listener:t,event:e||null})},Ye.prototype.removeListener=function(e){e&&(this.g=this.g.filter(function(t){if(t.listener!==e)return t}))},Ye.prototype.setBranchViewData=Ke(1,function(e,t){$e.call(null,this,e,t)}),Ye.prototype.closeJourney=Ke(1,function(e){var t=this;t.renderQueue(function(){return zt&&Xt?(Xe(t,"didCallJourneyClose",nn),void Le(zt)):e("Journey already dismissed.")}),e()}),Ye.prototype.banner=Ke(1,function(e,t,n){n=n||{},$e.call(null,this,function(){},n),"undefined"==typeof t.showAgain&&"undefined"!=typeof t.forgetHide&&(t.showAgain=t.forgetHide);var r={icon:H(t.icon)||"",title:H(t.title)||"",description:H(t.description)||"",H:"number"==typeof t.reviewCount&&0<t.reviewCount?Math.floor(t.reviewCount):null,u:"number"==typeof t.rating&&5>=t.rating&&0<t.rating?Math.round(2*t.rating)/2:null,fa:H(t.openAppButtonText)||"View in app",ca:H(t.downloadAppButtonText)||"Download App",ja:H(t.sendLinkText)||"Send Link",ha:H(t.phonePreviewText)||"(999) 999-9999",w:"undefined"==typeof t.iframe||t.iframe,N:"undefined"==typeof t.showiOS||t.showiOS,la:"undefined"==typeof t.showiPad||t.showiPad,J:"undefined"==typeof t.showAndroid||t.showAndroid,K:"undefined"==typeof t.showBlackberry||t.showBlackberry,M:"undefined"==typeof t.showWindowsPhone||t.showWindowsPhone,L:"undefined"==typeof t.showKindle||t.showKindle,ka:"undefined"==typeof t.showDesktop||t.showDesktop,ba:!!t.disableHide,F:"number"==typeof t.forgetHide?t.forgetHide:!!t.forgetHide,ia:"undefined"!=typeof t.respectDNT&&t.respectDNT,position:t.position||"top",$:t.customCSS||"",ea:"undefined"!=typeof t.mobileSticky&&t.mobileSticky,aa:"undefined"==typeof t.desktopSticky||t.desktopSticky,pa:t.buttonBorderColor||"",na:t.buttonBackgroundColor||"",ra:t.buttonFontColor||"",qa:t.buttonBorderColorHover||"",oa:t.buttonBackgroundColorHover||"",sa:t.buttonFontColorHover||"",da:!!t.make_new_link,ga:!!t.open_app,T:!!t.immediate,Z:!!t.append_deeplink_path};"undefined"!=typeof t.showMobile&&(r.N=t.showMobile,r.J=t.showMobile,r.K=t.showMobile,r.M=t.showMobile,r.L=t.showMobile),n.data=O(L(),n.data);var o=this;o.renderQueue(function(){o.S=Ae(o,r,n,o.b)}),e()}),Ye.prototype.closeBanner=Ke(0,function(e){var t=this;t.renderQueue(function(){t.S&&(Xe(t,"willCloseBanner"),t.S(function(){Xe(t,"didCloseBanner")}))}),e()}),Ye.prototype.autoAppIndex=Ke(1,function(e,t){t=t||{};var n=document.getElementsByTagName("link"),r=n.length;if(r)for(var o=0;o<r;o++){var i=n[o],a=i.href;a&&(a.includes("ios-app")&&(on.iosAppIndexingTagsPresent=!0,i.setAttribute("href",qe(a))),a.includes("android-app")&&(on.androidAppIndexingTagsPresent=!0,i.setAttribute("href",qe(a))))}an=t,on.androidAppIndexingTagsPresent||(Ge("android"),on.androidDetailsComplete||We("android")),on.iosAppIndexingTagsPresent||(Ge("ios"),on.iosDetailsComplete||We("ios")),e(on.iosDetailsComplete||on.androidDetailsComplete?null:"Firebase App Indexing tags were not added to your webpage. Please check your configuration.")}),Ye.prototype.trackCommerceEvent=Ke(1,function(e,t,n,r){var o=this;o.renderQueue(function(){var i=B(t,n);return i?e(Error(i)):void o.c(Pt,{event:t,metadata:O({url:document.URL,user_agent:navigator.userAgent,language:navigator.language},r||{}),initial_referrer:X(ze(o)),commerce_data:n},function(t){e(t||null)})}),e()});var un=new Ye;if(window.branch&&window.branch._q)for(var sn=window.branch._q,cn=0;cn<sn.length;cn++){var ln=sn[cn];un[ln[0]].apply(un,ln[1])}o=function(){return un}.call(t,n,t,e),!(void 0!==o&&(e.exports=o)),window&&(window.branch=un)}()}).call(t,n(36))},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")})}}n.d(t,"a",function(){return u}),n.d(t,"b",function(){return l});var o=this,i="/sw.js",a=function(){navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({command:"registerClient"})},u="SERVICE_WORKER_REGISTERED",s=function(){return{type:u}},c=!1,l=function(){return function(){var e=r(regeneratorRuntime.mark(function t(e){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!c){t.next=2;break}return t.abrupt("return");case 2:return c=!0,t.prev=3,t.next=6,navigator.serviceWorker.register(i);case 6:e(s()),t.next=12;break;case 9:return t.prev=9,t.t0=t["catch"](3),t.abrupt("return");case 12:n=function(e){var t=e.data,n=t.command;"registerWithServiceWorker"===n&&a()},navigator.serviceWorker.addEventListener("message",n),a();case 15:case"end":return t.stop()}},t,o,[[3,9]])}));return function(t){return e.apply(this,arguments)}}()}},function(e,t,n){"use strict";var r=n(5),o=n(76),i=n(430),a=n(1563),u=n(286),s=n(1562),c=n(1565),l=n(1566),f=n(1573),d=n(1568),p=n(1569),h=n(1570),v=n(1571),m=n(674),y=n(675),g=n(1574),_=n(1576),b=n(1577),E=n(1578),T=n(287),w=n(1579),S=n(1580),O=n(1582),P=n(1564),R=n(1567),I=n(1583),A=n(1572),C=n(1581),x=n(1575),N=o.b.join("|");t.a=[["/",u.a,{name:r.d.INDEX}],["/place",u.a,{name:"place"}],["/r/:subredditName(place)",u.a,{name:"place"}],["/r/:subredditName(place)/:sort("+N+")",u.a,{name:"place"}],["/:sort("+N+")",u.a,{name:r.d.LISTING}],["/r/:subredditName",u.a,{name:r.d.LISTING}],["/r/:subredditName/comments/:postId/comment/:commentId",i.b,{name:r.d.COMMENTS}],["/r/:subredditName/comments/:postId/:postTitle/:commentId",i.b,{name:r.d.COMMENTS}],["/r/:subredditName/comments/:postId/:postTitle?",i.b,{name:r.d.COMMENTS}],["/:pageName("+r.d.SEARCH+")",y.a,{name:r.d.SEARCH}],["/r/:subredditName/:pageName("+r.d.SEARCH+")",y.a,{name:r.d.SEARCH}],["/r/:subredditName/about",_.a],["/r/:subredditName/about/rules",b.a],["/r/:subredditName/:sort("+N+")",u.a,{name:r.d.LISTING}],["/r/:subredditName/(w|wiki)/:path(.*)?",I.a],["/(help|w|wiki)/:path(.*)?",I.a],["/comments/:postId/:postTitle/:commentId",i.b,{name:r.d.COMMENTS}],["/comments/:postId/:postTitle?",i.b,{name:r.d.COMMENTS}],["/comments",i.b],["/user/:userName/activity",w.a],["/user/:userName/about",S.a,{name:r.d.USER}],["/user/:userName/gild",S.a],["/user/:userName/:savedOrHidden(saved|hidden)",m.a],["/user/:userName/:commentsOrSubmitted(comments|submitted)",T.a],["/user/:userName",T.a],["/user/:userName/comments/:postId/:postTitle/:commentId",i.b,{name:r.d.COMMENTS}],["/user/:userName/comments/:postId/:postTitle?",i.b,{name:r.d.COMMENTS}],["/user/:multiUser/m/:multi",u.a,{name:r.d.LISTING}],["/user/:multiUser/m/:multi/:sort("+N+")",u.a,{name:r.d.LISTING}],["/live/*",c.a],["/login",l.a],["/register",f.a],["/message/compose",P.a],["/message/:mailType",R.a],["/message/messages/:threadId",R.a],["/notification/:mailType",R.a],["/r/:subredditName/submit",A.a,{name:r.d.SUBMIT}],["/submit",A.a],["/submit/to_community",A.b],["/verification/:verificationToken",O.a],["/xpromochat",s.a],["/actions/community-goto",a.a],["/actions/overlay-compact-toggle",h.a],["/actions/overlay-theme-toggle",v.a],["/actions/setOver18",g.a],["/actions/optIntoQuarantine",d.a],["/actions/optOutOfQuarantine",p.a],["/actions/toggle-subreddit-subscription",E.a],["/u/*",C.a],["*",x.a]]},function(e,t,n){"use strict";function r(){return{}}function o(e,t){var n=t||r();if(a.has(n))throw new Error("contextMapper: attempt to set an existing key");return a.set(n,e),n}function i(e){if(!a.has(e))throw new Error("contextMapper: attempt to access a nonexistent key");return a.get(e)}t.b=o,t.a=i;var a=new WeakMap},function(e,t,n){"use strict";var r=n(17),o=n(56);n.d(t,"c",function(){return u}),n.d(t,"a",function(){return s}),n.d(t,"b",function(){return c}),n.d(t,"d",function(){return l});var i="frontpage",a={},u=function(e,t){var a=[r.a.dfpSlotPrefix];return n.i(o.a)(t)?a.push(i):a.push("r."+t),a.push(e),a.join("/")},s=function(e,t){var n=t.id,r=t.slot,o=t.properties,i=t.shouldCollapse,u=t.sizes,s=t.a9,l=void 0!==s&&s,f=window.googletag=window.googletag||{};return f.cmd=f.cmd||[],new Promise(function(e){var t=function(){f.cmd.push(function(){a[n]&&(f.display(n),f.pubads().refresh([a[n]]))}),e()};l&&window.apstag.fetchBids({slots:[{slotID:n,slotName:[r,n].join("/"),sizes:u}],timeout:2e3},function(){f.cmd.push(function(){a[n]&&window.apstag.setDisplayBids()}),t()}),f.cmd.push(function(){c(n);var e=f.defineSlot(r,u,n).addService(f.pubads());a[n]=e,i&&e.setCollapseEmptyDiv(!0),Object.keys(o).forEach(function(t){e.setTargeting(t,o[t])}),l||t()})})},c=function(e){var t=a[e];if(t){var n=window.googletag=window.googletag||{};n.cmd=n.cmd||[],n.cmd.push(function(){n.destroySlots([t]),delete a[e]})}},l=function(){var e=window.googletag=window.googletag||{};e.cmd=e.cmd||[];var t=document.createElement("script");t.async=!0,t.type="text/javascript";var n="https:"===document.location.protocol;t.src=(n?"https:":"http:")+"//www.googletagservices.com/tag/js/gpt.js";var r=document.getElementsByTagName("script")[0];r.parentNode.insertBefore(t,r),e.cmd.push(function(){e.pubads().disableInitialLoad(),e.enableServices()}),!function(e,t,n,r,o,i,a){function u(n,r){t[e]._Q.push([n,r])}t[e]||(t[e]={init:function(){u("i",arguments)},fetchBids:function(){u("f",arguments)},_Q:[]},i=n.createElement(r),i.async=!0,i.src=o,a=n.getElementsByTagName(r)[0],a.parentNode.insertBefore(i,a))}("apstag",window,document,"script","//c.amazon-adsystem.com/aax2/apstag.js"),window.apstag.init({pubID:"3379",adServer:"googletag",bidTimeout:2e3})}},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(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{SHOULD_RETHROW:!0},r=e.error,o=e.rejection,i=r||o;if(i&&!i._SEEN_BY_ERROR_LOG){var a=s({},e);r?a=s({},a,f(r)):o&&(a=s({},a,d(o)));var u=y(a);if(n.SHOULD_RETHROW){var c=r||o;try{c._SEEN_BY_ERROR_LOG=!0,setTimeout(function(){throw c})}catch(p){console.error?console.error(a.message):console.log(a.message,a.stack)}}if(t.log&&_(u,t.log),t.hivemind){var h=g(e.userAgent||"");b(h,t.hivemind,l(e))}}}var i=n(436),a=(n(17),n(25)),u=n(679);t.a=o;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c="client".toUpperCase(),l=function(e){return e.error instanceof a.a},f=function(e){var t="Error: "+e.message;return e.stack?s({},v(e.stack),{message:t,stack:e.stack}):{message:t}},d=function(e){var t=""+e.reason;t==={}.toString()&&(t=n.i(u.a)(e.reason));var r="Rejection: "+t;return e.reason&&e.reason.stack?s({},v(e.reason.stack),{message:r,stack:e.reason.stack}):{message:r}},p=2,h=1,v=function(e){var t=e.split("\n"),n=t.find(function(e,t){return t>0&&e.indexOf(":")>-1});if(!n)return{};var r=m(n).split(":");if(r&&r.length>=p){var o=r.length;return{url:r.slice(0,o-p).join(":"),line:r[o-p],column:r[o-h]}}return{}},m=function(e){var t=e.match(/.*\((.*)\).*/);return t?t[1]:""},y=function(e){if(!e)return{};var t=e.userAgent,n=void 0===t?"UNKNOWN UA":t,r=e.message,o=void 0===r?"NO MESSAGE":r,i=e.reduxInfo,a=e.url,u=e.line,s=e.column,f=e.requestUrl,d=void 0===f?"NO REQUEST URL":f,p=e.stack,h=e.possibleDuplicate;return{env:c,userAgent:n,isAPIFailure:l(e),message:o,requestUrl:d,reduxInfo:i,url:a,line:u,column:s,stack:p&&p.substring(0,2048),possibleDuplicate:h}};"undefined"!=typeof window&&(window.ppError=function(e){console.log(JSON.stringify(e,null,2).replace(/\\n/g,"\n"))});var g=function(e){return/server/i.test(e)?"server":/Googlebot/i.test(e)?"googlebot-js-client":/iPhone/i.test(e)||/iPad/i.test(e)||/iPod/i.test(e)?/CriOS/i.test(e)?"ios-chrome":"ios-safari":/Windows Phone/i.test(e)||/Trident/i.test(e)?"windows-phone":/android/i.test(e)?/Version/i.test(e)?"android-stock-browser":"android-chrome":"unknownClient"},_=function(e,t){i.a.post(t).send({error:e}).then()["catch"](function(){})},b=function(e,t,n){var o=n?"mweb2XAPIError":"mweb2XError",a=r({},o,{});a[o][e]=1,i.a.post(t).type("json").send(a).timeout(3e3).then()["catch"](function(){})}},function(e,t,n){"use strict";var r=n(1605),o=n(5),i=n(17);n.d(t,"b",function(){return u}),n.d(t,"a",function(){return f});var a=[],u=function(){var e=i.a.mediaDomain,t=i.a.googleTagManagerId;if(t){var n=document.createElement("iframe");n.style.display="none",n.id=o.n,n.name=JSON.stringify({origin:location.origin,pathname:location.pathname||"/"}),n.src="https://"+e+"/gtm/jail?id="+t,n.onload=s,document.body.appendChild(n)}},s=function(){var e=l();if(e){var t=a.slice();a=[],t.forEach(function(e){var t=e.eventName,n=e.payload;return f(t,n)})}},c=function(e,t){a.push({eventName:e,payload:t})},l=function(){var e=document.getElementById(o.n);return e&&e.contentWindow?e:null},f=function(e,t){var n=l();return n?(t&&r.a.postMessage(n.contentWindow,"data.gtm",t),void r.a.postMessage(n.contentWindow,"event.gtm",{event:e})):void c(e,t)}},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var r=function(){var e=window.navigator&&window.navigator.userAgent.toLowerCase()||"";return e.indexOf("chrome")!==-1},o=function(){return!!r()&&!(!window.matchMedia||!window.matchMedia("(display-mode: standalone)").matches)}},function(e,t,n){(function(e){var n,r,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(a,u){"object"===i(t)&&"object"===i(e)?e.exports=u():(r=[],n=u,o="function"==typeof n?n.apply(t,r):n,!(void 0!==o&&(e.exports=o)))}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){return function(t){return function(n){console.log("dispatching",n);var r=t(n);return console.log("next state",e.getState()),r}}}}])})}).call(t,n(64)(e))},function(e,t,n){(function(e){var n,r,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(a,u){"object"===i(t)&&"object"===i(e)?e.exports=u():(r=[],n=u,o="function"==typeof n?n.apply(t,r):n,!(void 0!==o&&(e.exports=o)))}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={create:function(){var e=[],t=function n(t,r){var o=e[t];if(o){var i=function(){return n(t+1,r)};o.then(i)["catch"](i)}else r()};return{middleware:function(t){return function(t){return function(n){return n instanceof Promise?(e.push(n),n):t(n)}}},onComplete:function(){return new Promise(function(e,n){t(0,e)}).then(function(){e=[]})}}}}}])})}).call(t,n(64)(e))},function(e,t,n){(function(e){var n,r,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(a,u){"object"===i(t)&&"object"===i(e)?e.exports=u():(r=[],n=u,o="function"==typeof n?n.apply(t,r):n,!(void 0!==o&&(e.exports=o)))}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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")}}();t["default"]={create:function(){var e=[],t=[],r=function(e){var n=arguments.length<=1||void 0===arguments[1]?function(){}:arguments[1];return new Promise(function(n,r){t=t.concat([[e,function(e){return n(e)}]])}).then(n)};return function(o){return function(i){return function(a){var u=o.dispatch,s=o.getState,c=s(),l=function(t){var n=arguments.length<=1||void 0===arguments[1]?function(){}:arguments[1],r=arguments.length<=2||void 0===arguments[2]?function(){}:arguments[2];return new Promise(function(n,o){t(c)?n(c):(e=e.concat([[t,function(e){return n(e)}]]),r(c))}).then(n)};if("function"==typeof a){var f=a(u,s,{waitForState:l,waitForAction:r});if(!(f instanceof Promise))throw new Error("Thunked actions must return promises");return i(f)}t=t.filter(function(e){var t=n(e,2),r=t[0],o=t[1];return!r(a)||(o(c),!1)}),i(a),e=e.filter(function(e){var t=n(e,2),r=t[0],o=t[1],i=s();return!r(i)||(o(i),!1)})}}}}}}])})}).call(t,n(64)(e))},function(e,t,n){(function(e){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)&&"object"===a(e)?e.exports=s(n(0),n(3),n(4),n(139),n(367)):(o=[n(0),n(3),n(4),n(139),n(367)],r=s,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i)))}(this,function(e,t,r,o,i){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":a(t))&&"function"!=typeof t?e:t}function s(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.saveScrollPosition=t.SAVE_SCROLL_POSITION=t.Scroller=void 0;var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=n(1),d=r(f),p=n(7),h=r(p),v=n(2),m=n(3),y=n(8),g=d["default"].PropTypes,_={position:"relative",height:"100%",width:"100%",boxSizing:"border-box",overflowY:"auto"},b=t.Scroller=function(e){function t(e){i(this,t);var n=u(this,Object.getPrototypeOf(t).call(this,e));return n._resetValues=function(){n.setState({childrenToHide:{},childHeights:{},childPositions:{}})},n.resetValues=(0,y.debounce)(n._resetValues,250),n.recordScrollPosition=function(){var e=n.props,t=(e.id,e.onSaveScrollPosition),r=n.state.currentScrollPosition;t(r)},n.restoreScrollPosition=function(e){if(e){var t=n.state.currentScrollPosition;e.scrollTop=t}},n.setItem=function(e,t){var r=n.state,i=r.childHeights;r.childPositions;if(e&&!i[t]){var a=e.offsetTop,u=e.clientHeight;n.setState({childHeights:c({},n.state.childHeights,o({},t,u)),childPositions:c({},n.state.childPositions,o({},t,a))})}},n.handleScroll=function(e){var t=n.props,r=t.buffer,o=t.loadMargin,i=t.onLoadMore,a=(t.children,e.currentTarget.scrollTop),u=e.currentTarget.clientHeight,s=e.currentTarget.firstChild.clientHeight;(0,h["default"])(function(){a+u>s-o&&(n.firedLoadMore||(n.firedLoadMore=!0,i()));var e={};for(var t in n.state.childPositions){var c=n.state.childPositions[t],l=n.state.childHeights[t];c+l<a-r?e[t]="before":c>a+u+r&&(e[t]="after")}n.setState({childrenToHide:e,currentScrollPosition:a})})},n.state={childrenToHide:{},childHeights:{},childPositions:{},currentScrollPosition:e.savedScrollPosition},n.firedLoadMore=!1,n}return s(t,e),l(t,[{key:"componentWillReceiveProps",value:function(e){var t=this.props.children.map(function(e){return e.key}).join("."),n=e.children.map(function(e){return e.key}).join(".");t!==n&&(this.firedLoadMore=!1)}},{key:"componentDidMount",value:function(){self.addEventListener("resize",this.resetValues)}},{key:"shouldComponentUpdate",value:function(e,t){return e!==this.props||t.childrenToHide!==this.state.childrenToHide}},{key:"componentWillUnmount",value:function(){this.recordScrollPosition(),self.removeEventListener("resize",this.resetValues)}},{key:"render",value:function(){var e=this,t=this.props.children,n=this.state,r=n.childrenToHide,o=n.childHeights,i=(t.filter(function(e){return!r[e.key]}),[]),a=null;return t.forEach(function(e){if(r[e.key]){var t=o[e.key];a&&"hidden"===a.type?(a.height+=t,a.key+="-"+e.key):(a={height:t,key:"hidden-"+e.key,type:"hidden"},i.push(a))}else a={child:e,type:"show"},i.push(a)}),d["default"].createElement("div",{style:_,onScroll:this.handleScroll,ref:this.restoreScrollPosition},d["default"].createElement("div",null,i.map(function(t){return"hidden"===t.type?d["default"].createElement("div",{key:t.key,style:{height:t.height}}):d["default"].cloneElement(t.child,{ref:function(n){return(0,h["default"])(function(){return e.setItem(n,t.child.key)})}})})))}}]),t}(d["default"].Component);b.propTypes={children:g.arrayOf(g.element).isRequired,id:g.string,buffer:g.number,loadMargin:g.number,savedScrollPosition:g.number,onLoadMore:g.func,onSaveScrollPosition:g.func},b.defaultProps={buffer:500,savedScrollPosition:0,onLoadMore:function(){},onSaveScrollPosition:function(){}};var E=t.SAVE_SCROLL_POSITION="r/widgets__SAVE_SCROLL_POSITION",T=t.saveScrollPosition=function(e,t){return{type:E,payload:{id:e,scrollPosition:t}}},w=(0,m.createSelector)(function(e,t){return e.widgets.savedScrollPositions[t.id]},function(e){return{savedScrollPosition:e}}),S=function(e,t){return{onSaveScrollPosition:function(n){return t.id&&e(T(t.id,n))}}};t["default"]=(0,v.connect)(w,S)(b)},function(e,t){e.exports=n(0)},function(e,t){e.exports=n(3)},function(e,t){e.exports=n(4)},,,,function(e,t){e.exports=n(139)},function(e,t){e.exports=n(367)}])})}).call(t,n(64)(e))},function(e,t,n){!function(){function e(e){this.message=e}var n=t,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.prototype=new Error,e.prototype.name="InvalidCharacterError",n.btoa||(n.btoa=function(t){for(var n,o,i=String(t),a=0,u=r,s="";i.charAt(0|a)||(u="=",a%1);s+=u.charAt(63&n>>8-a%1*8)){if(o=i.charCodeAt(a+=.75),o>255)throw new e("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");n=n<<8|o}return s}),n.atob||(n.atob=function(t){var n=String(t).replace(/=+$/,"");if(n.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var o,i,a=0,u=0,s="";i=n.charAt(u++);~i&&(o=a%4?64*o+i:i,a++%4)?s+=String.fromCharCode(255&o>>(-2*a&6)):0)i=r.indexOf(i);return s})}()},function(e,t,n){var r=n(67);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=r(e))throw TypeError(t);return+e}},function(e,t,n){"use strict";var r=n(37),o=n(131),i=n(33);e.exports=[].copyWithin||function(e,t){var n=r(this),a=i(n.length),u=o(e,a),s=o(t,a),c=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===c?a:o(c,a))-s,a-u),f=1;for(s<u&&u<s+l&&(f=-1,s+=l-1,u+=l-1);l-- >0;)s in n?n[u]=n[s]:delete n[u],u+=f,s+=f;return n}},function(e,t,n){var r=n(123);e.exports=function(e,t){var n=[];return r(e,!1,n.push,n,t),n}},function(e,t,n){var r=n(44),o=n(37),i=n(193),a=n(33);e.exports=function(e,t,n,u,s){r(t);var c=o(e),l=i(c),f=a(c.length),d=s?f-1:0,p=s?-1:1;if(n<2)for(;;){if(d in l){u=l[d],d+=p;break}if(d+=p,s?d<0:f<=d)throw TypeError("Reduce of empty array with no initial value")}for(;s?d>=0:f>d;d+=p)d in l&&(u=t(u,l[d],d,c));return u}},function(e,t,n){"use strict";var r=n(44),o=n(21),i=n(465),a=[].slice,u={},s=function(e,t,n){if(!(t in u)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";u[t]=Function("F,a","return new F("+r.join(",")+")")}return u[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=a.call(arguments,1),u=function c(){var r=n.concat(a.call(arguments));return this instanceof c?s(t,r.length,r):i(t,r,e)};return o(t.prototype)&&(u.prototype=t.prototype),u}},function(e,t,n){"use strict";var r=n(32).f,o=n(125),i=n(129),a=n(68),u=n(122),s=n(123),c=n(310),l=n(468),f=n(130),d=n(31),p=n(106).fastKey,h=n(155),v=d?"_s":"size",m=function(e,t){var n,r=p(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n;
};e.exports={getConstructor:function(e,t,n,c){var l=e(function(e,r){u(e,l,t,"_i"),e._t=t,e._i=o(null),e._f=void 0,e._l=void 0,e[v]=0,void 0!=r&&s(r,n,e[c],e)});return i(l.prototype,{clear:function(){for(var e=h(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[v]=0},"delete":function(e){var n=h(this,t),r=m(n,e);if(r){var o=r.n,i=r.p;delete n._i[r.i],r.r=!0,i&&(i.n=o),o&&(o.p=i),n._f==r&&(n._f=o),n._l==r&&(n._l=i),n[v]--}return!!r},forEach:function(e){h(this,t);for(var n,r=a(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!m(h(this,t),e)}}),d&&r(l.prototype,"size",{get:function(){return h(this,t)[v]}}),l},def:function(e,t,n){var r,o,i=m(e,t);return i?i.v=n:(e._l=i={i:o=p(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=i),r&&(r.n=i),e[v]++,"F"!==o&&(e._i[o]=i)),e},getEntry:m,setStrong:function(e,t,n){c(e,t,function(e,n){this._t=h(e,t),this._k=n,this._l=void 0},function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?"keys"==t?l(0,n.k):"values"==t?l(0,n.v):l(0,[n.k,n.v]):(e._t=void 0,l(1))},n?"entries":"values",!n,!0),f(t)}}},function(e,t,n){var r=n(192),o=n(457);e.exports=function(e){return function(){if(r(this)!=e)throw TypeError(e+"#toJSON isn't generic");return o(this)}}},function(e,t,n){"use strict";var r=n(129),o=n(106).getWeak,i=n(13),a=n(21),u=n(122),s=n(123),c=n(77),l=n(49),f=n(155),d=c(5),p=c(6),h=0,v=function(e){return e._l||(e._l=new m)},m=function(){this.a=[]},y=function(e,t){return d(e.a,function(e){return e[0]===t})};m.prototype={get:function(e){var t=y(this,e);if(t)return t[1]},has:function(e){return!!y(this,e)},set:function(e,t){var n=y(this,e);n?n[1]=t:this.a.push([e,t])},"delete":function(e){var t=p(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,i){var c=e(function(e,r){u(e,c,t,"_i"),e._t=t,e._i=h++,e._l=void 0,void 0!=r&&s(r,n,e[i],e)});return r(c.prototype,{"delete":function(e){if(!a(e))return!1;var n=o(e);return n===!0?v(f(this,t))["delete"](e):n&&l(n,this._i)&&delete n[this._i]},has:function(e){if(!a(e))return!1;var n=o(e);return n===!0?v(f(this,t)).has(e):n&&l(n,this._i)}}),c},def:function(e,t,n){var r=o(i(t),!0);return r===!0?v(e).set(t,n):r[e._i]=n,e},ufstore:v}},function(e,t,n){"use strict";function r(e,t,n,c,l,f,d,p){for(var h,v,m=l,y=0,g=!!d&&u(d,p,3);y<c;){if(y in n){if(h=g?g(n[y],y,t):n[y],v=!1,i(h)&&(v=h[s],v=void 0!==v?!!v:o(h)),v&&f>0)m=r(e,t,h,a(h.length),m,f-1)-1;else{if(m>=9007199254740991)throw TypeError();e[m]=h}m++}y++}return m}var o=n(226),i=n(21),a=n(33),u=n(68),s=n(28)("isConcatSpreadable");e.exports=r},function(e,t,n){e.exports=!n(31)&&!n(18)(function(){return 7!=Object.defineProperty(n(303)("div"),"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){var r=n(21),o=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&o(e)===e}},function(e,t,n){var r=n(13);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(i){var a=e["return"];throw void 0!==a&&r(a.call(e)),i}}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var r=n(312),o=Math.pow,i=o(2,-52),a=o(2,-23),u=o(2,127)*(2-a),s=o(2,-126),c=function(e){return e+1/i-1/i};e.exports=Math.fround||function(e){var t,n,o=Math.abs(e),l=r(e);return o<s?l*c(o/s/a)*s*a:(t=(1+a/i)*o,n=t-(t-o),n>u||n!=n?l*(1/0):l*n)}},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t){e.exports=Math.scale||function(e,t,n,r,o){return 0===arguments.length||e!=e||t!=t||n!=n||r!=r||o!=o?NaN:e===1/0||e===-(1/0)?e:(e-t)*(o-r)/(n-t)+r}},function(e,t,n){"use strict";var r=n(127),o=n(230),i=n(194),a=n(37),u=n(193),s=Object.assign;e.exports=!s||n(18)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=s({},e)[n]||Object.keys(s({},t)).join("")!=r})?function(e,t){for(var n=a(e),s=arguments.length,c=1,l=o.f,f=i.f;s>c;)for(var d,p=u(arguments[c++]),h=l?r(p).concat(l(p)):r(p),v=h.length,m=0;v>m;)f.call(p,d=h[m++])&&(n[d]=p[d]);return n}:s},function(e,t,n){var r=n(32),o=n(13),i=n(127);e.exports=n(31)?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),u=a.length,s=0;u>s;)r.f(e,n=a[s++],t[n]);return e}},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=n(61),i=n(126).f,a={}.toString,u="object"==("undefined"==typeof window?"undefined":r(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(t){return u.slice()}};e.exports.f=function(e){return u&&"[object Window]"==a.call(e)?s(e):i(o(e))}},function(e,t,n){var r=n(49),o=n(61),i=n(222)(!1),a=n(316)("IE_PROTO");e.exports=function(e,t){var n,u=o(e),s=0,c=[];for(n in u)n!=a&&r(u,n)&&c.push(n);for(;t.length>s;)r(u,n=t[s++])&&(~i(c,n)||c.push(n));return c}},function(e,t,n){var r=n(127),o=n(61),i=n(194).f;e.exports=function(e){return function(t){for(var n,a=o(t),u=r(a),s=u.length,c=0,l=[];s>c;)i.call(a,n=u[c++])&&l.push(e?[n,a[n]]:a[n]);return l}}},function(e,t,n){var r=n(126),o=n(230),i=n(13),a=n(15).Reflect;e.exports=a&&a.ownKeys||function(e){var t=r.f(i(e)),n=o.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(15).parseFloat,o=n(154).trim;e.exports=1/r(n(320)+"-0")!==-(1/0)?function(e){var t=o(String(e),3),n=r(t);return 0===n&&"-"==t.charAt(0)?-0:n}:r},function(e,t,n){var r=n(15).parseInt,o=n(154).trim,i=n(320),a=/^[-+]?0[xX]/;e.exports=8!==r(i+"08")||22!==r(i+"0x16")?function(e,t){var n=o(String(e),3);return r(n,t>>>0||(a.test(n)?16:10))}:r},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(t){return{e:!0,v:t}}}},function(e,t,n){var r=n(13),o=n(21),i=n(314);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e),a=n.resolve;return a(t),n.promise}},function(e,t,n){var r=n(33),o=n(319),i=n(79);e.exports=function(e,t,n,a){var u=String(i(e)),s=u.length,c=void 0===n?" ":String(n),l=r(t);if(l<=s||""==c)return u;var f=l-s,d=o.call(c,Math.ceil(f/c.length));return d.length>f&&(d=d.slice(0,f)),a?d+u:u+d}},function(e,t,n){var r=n(81),o=n(33);e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=o(t);if(t!==n)throw RangeError("Wrong length!");return n}},function(e,t,n){t.f=n(28)},function(e,t,n){"use strict";var r=n(460),o=n(155),i="Map";e.exports=n(223)(i,function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=r.getEntry(o(this,i),e);return t&&t.v},set:function(e,t){return r.def(o(this,i),0===e?0:e,t)}},r,!0)},function(e,t,n){n(31)&&"g"!=/./g.flags&&n(32).f(RegExp.prototype,"flags",{configurable:!0,get:n(225)})},function(e,t,n){"use strict";var r=n(460),o=n(155),i="Set";e.exports=n(223)(i,function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return r.def(o(this,i),e=0===e?0:e,e)}},r)},function(e,t,n){"use strict";var r,o=n(77)(0),i=n(51),a=n(106),u=n(472),s=n(462),c=n(21),l=n(18),f=n(155),d="WeakMap",p=a.getWeak,h=Object.isExtensible,v=s.ufstore,m={},y=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},g={get:function(e){if(c(e)){var t=p(e);return t===!0?v(f(this,d)).get(e):t?t[this._i]:void 0}},set:function(e,t){return s.def(f(this,d),e,t)}},_=e.exports=n(223)(d,y,g,s,!0,!0);l(function(){return 7!=(new _).set((Object.freeze||Object)(m),7).get(m)})&&(r=s.getConstructor(y,d),u(r.prototype,g),a.NEED=!0,o(["delete","has","get","set"],function(e){var t=_.prototype,n=t[e];i(t,e,function(t,o){if(c(t)&&!h(t)){this._f||(this._f=new r);var i=this._f[e](t,o);return"set"==e?this:i}return n.call(this,t,o)})}))},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){!function(){var t=e,n=t.lib,r=n.Base,o=t.enc,i=o.Utf8,a=t.algo;a.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=i.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),a=this._iKey=t.clone(),u=o.words,s=a.words,c=0;c<n;c++)u[c]^=1549556828,s[c]^=909522486;o.sigBytes=a.sigBytes=r,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);t.reset();var r=t.finalize(this._oKey.clone().concat(n));return r}})}()})},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(){var t=e,n=t.lib,r=n.WordArray,o=n.Hasher,i=t.algo,a=[],u=i.SHA1=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],u=n[3],s=n[4],c=0;c<80;c++){if(c<16)a[c]=0|e[t+c];else{var l=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=l<<1|l>>>31}var f=(r<<5|r>>>27)+s+a[c];f+=c<20?(o&i|~o&u)+1518500249:c<40?(o^i^u)+1859775393:c<60?(o&i|o&u|i&u)-1894007588:(o^i^u)-899497514,s=u,u=i,i=o<<30|o>>>2,o=r,r=f}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+u|0,n[4]=n[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[(r+64>>>9<<4)+14]=Math.floor(n/4294967296),t[(r+64>>>9<<4)+15]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function s(){var s=o.clone.call(this);return s._hash=this._hash.clone(),s}});t.SHA1=o._createHelper(u),t.HmacSHA1=o._createHmacHelper(u)}(),e.SHA1})},function(e,t,n){"use strict";!function(e){var t={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},n=function(e){var n=e;return t.hasOwnProperty(e)&&(n=t[e]),String.fromCharCode(n)},r=15,o=32,i={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},a={17:2,18:4,21:6,22:8,23:10,19:13,20:15},u={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},s={25:2,26:4,29:6,30:8,31:10,27:13,28:15},c=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],l={verboseFilter:{DATA:3,DEBUG:3,INFO:2,WARNING:2,TEXT:1,ERROR:0},time:null,verboseLevel:0,setTime:function(e){this.time=e},log:function(e,t){var n=this.verboseFilter[e];this.verboseLevel>=n&&console.log(this.time+" ["+e+"] "+t)}},f=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].toString(16));return t},d=function(e,t,n,r,o){this.foreground=e||"white",this.underline=t||!1,this.italics=n||!1,this.background=r||"black",this.flash=o||!1};d.prototype={reset:function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},setStyles:function(e){for(var t=["foreground","underline","italics","background","flash"],n=0;n<t.length;n++){var r=t[n];e.hasOwnProperty(r)&&(this[r]=e[r])}},isDefault:function(){return"white"===this.foreground&&!this.underline&&!this.italics&&"black"===this.background&&!this.flash},equals:function(e){return this.foreground===e.foreground&&this.underline===e.underline&&this.italics===e.italics&&this.background===e.background&&this.flash===e.flash},copy:function(e){this.foreground=e.foreground,this.underline=e.underline,this.italics=e.italics,this.background=e.background,this.flash=e.flash},toString:function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}};var p=function(e,t,n,r,o,i){this.uchar=e||" ",this.penState=new d(t,n,r,o,i)};p.prototype={reset:function(){this.uchar=" ",this.penState.reset()},setChar:function(e,t){this.uchar=e,this.penState.copy(t)},setPenState:function(e){this.penState.copy(e)},equals:function(e){return this.uchar===e.uchar&&this.penState.equals(e.penState)},copy:function(e){this.uchar=e.uchar,this.penState.copy(e.penState)},isEmpty:function(){return" "===this.uchar&&this.penState.isDefault()}};var h=function(){this.chars=[];for(var e=0;e<o;e++)this.chars.push(new p);this.pos=0,this.currPenState=new d};h.prototype={equals:function(e){for(var t=!0,n=0;n<o;n++)if(!this.chars[n].equals(e.chars[n])){t=!1;break}return t},copy:function(e){for(var t=0;t<o;t++)this.chars[t].copy(e.chars[t])},isEmpty:function(){for(var e=!0,t=0;t<o;t++)if(!this.chars[t].isEmpty()){e=!1;break}return e},setCursor:function(e){this.pos!==e&&(this.pos=e),this.pos<0?(l.log("ERROR","Negative cursor position "+this.pos),this.pos=0):this.pos>o&&(l.log("ERROR","Too large cursor position "+this.pos),this.pos=o)},moveCursor:function(e){var t=this.pos+e;if(e>1)for(var n=this.pos+1;n<t+1;n++)this.chars[n].setPenState(this.currPenState);this.setCursor(t)},backSpace:function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},insertChar:function(e){e>=144&&this.backSpace();var t=n(e);return this.pos>=o?void l.log("ERROR","Cannot insert "+e.toString(16)+" ("+t+") at position "+this.pos+". Skipping it!"):(this.chars[this.pos].setChar(t,this.currPenState),void this.moveCursor(1))},clearFromPos:function(e){var t;for(t=e;t<o;t++)this.chars[t].reset()},clear:function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},clearToEndOfRow:function(){this.clearFromPos(this.pos)},getTextString:function(){for(var e=[],t=!0,n=0;n<o;n++){var r=this.chars[n].uchar;" "!==r&&(t=!1),e.push(r)}return t?"":e.join("")},setPenStyles:function(e){this.currPenState.setStyles(e);var t=this.chars[this.pos];t.setPenState(this.currPenState)}};var v=function(){this.rows=[];for(var e=0;e<r;e++)this.rows.push(new h);this.currRow=r-1,this.nrRollUpRows=null,this.reset()};v.prototype={reset:function(){for(var e=0;e<r;e++)this.rows[e].clear();this.currRow=r-1},equals:function(e){for(var t=!0,n=0;n<r;n++)if(!this.rows[n].equals(e.rows[n])){t=!1;break}return t},copy:function(e){for(var t=0;t<r;t++)this.rows[t].copy(e.rows[t])},isEmpty:function(){for(var e=!0,t=0;t<r;t++)if(!this.rows[t].isEmpty()){e=!1;break}return e},backSpace:function(){var e=this.rows[this.currRow];e.backSpace()},clearToEndOfRow:function(){var e=this.rows[this.currRow];e.clearToEndOfRow()},insertChar:function(e){var t=this.rows[this.currRow];t.insertChar(e)},setPen:function(e){var t=this.rows[this.currRow];t.setPenStyles(e)},moveCursor:function(e){var t=this.rows[this.currRow];t.moveCursor(e)},setCursor:function(e){l.log("INFO","setCursor: "+e);var t=this.rows[this.currRow];t.setCursor(e)},setPAC:function(e){l.log("INFO","pacData = "+JSON.stringify(e));var t=e.row-1;this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.currRow=t;var n=this.rows[this.currRow];if(null!==e.indent){var r=e.indent,o=Math.max(r-1,0);n.setCursor(e.indent),e.color=n.chars[o].penState.foreground}var i={foreground:e.color,underline:e.underline,italics:e.italics,background:"black",flash:!1};this.setPen(i)},setBkgData:function(e){l.log("INFO","bkgData = "+JSON.stringify(e)),this.backSpace(),this.setPen(e),this.insertChar(32)},setRollUpRows:function(e){this.nrRollUpRows=e},rollUp:function(){if(null===this.nrRollUpRows)return void l.log("DEBUG","roll_up but nrRollUpRows not set yet");l.log("TEXT",this.getDisplayText());var e=this.currRow+1-this.nrRollUpRows,t=this.rows.splice(e,1)[0];t.clear(),this.rows.splice(this.currRow,0,t),l.log("INFO","Rolling up")},getDisplayText:function(e){e=e||!1;for(var t=[],n="",o=-1,i=0;i<r;i++){var a=this.rows[i].getTextString();a&&(o=i+1,e?t.push("Row "+o+': "'+a+'"'):t.push(a.trim()))}return t.length>0&&(n=e?"["+t.join(" | ")+"]":t.join("\n")),n},getTextAndFormat:function(){return this.rows}};var m=function(e,t){this.chNr=e,this.outputFilter=t,this.mode=null,this.verbose=0,this.displayedMemory=new v,this.nonDisplayedMemory=new v,this.lastOutputScreen=new v,this.currRollUpRow=this.displayedMemory.rows[r-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null};m.prototype={modes:["MODE_ROLL-UP","MODE_POP-ON","MODE_PAINT-ON","MODE_TEXT"],reset:function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.currRollUpRow=this.displayedMemory.rows[r-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.lastCueEndTime=null},getHandler:function(){return this.outputFilter},setHandler:function(e){this.outputFilter=e},setPAC:function(e){this.writeScreen.setPAC(e)},setBkgData:function(e){this.writeScreen.setBkgData(e)},setMode:function(e){e!==this.mode&&(this.mode=e,l.log("INFO","MODE="+e),"MODE_POP-ON"==this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=e)},insertChars:function(e){for(var t=0;t<e.length;t++)this.writeScreen.insertChar(e[t]);var n=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";l.log("INFO",n+": "+this.writeScreen.getDisplayText(!0)),"MODE_PAINT-ON"!==this.mode&&"MODE_ROLL-UP"!==this.mode||(l.log("TEXT","DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},cc_RCL:function(){l.log("INFO","RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},cc_BS:function(){l.log("INFO","BS - BackSpace"),"MODE_TEXT"!==this.mode&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())},cc_AOF:function(){},cc_AON:function(){},cc_DER:function(){l.log("INFO","DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},cc_RU:function(e){l.log("INFO","RU("+e+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(e)},cc_FON:function(){l.log("INFO","FON - Flash On"),this.writeScreen.setPen({flash:!0})},cc_RDC:function(){l.log("INFO","RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},cc_TR:function(){l.log("INFO","TR"),this.setMode("MODE_TEXT")},cc_RTD:function(){l.log("INFO","RTD"),this.setMode("MODE_TEXT")},cc_EDM:function(){l.log("INFO","EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate()},cc_CR:function(){l.log("CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate()},cc_ENM:function(){l.log("INFO","ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},cc_EOC:function(){if(l.log("INFO","EOC - End Of Caption"),"MODE_POP-ON"===this.mode){var e=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=e,this.writeScreen=this.nonDisplayedMemory,l.log("TEXT","DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate()},cc_TO:function(e){l.log("INFO","TO("+e+") - Tab Offset"),this.writeScreen.moveCursor(e)},cc_MIDROW:function(e){var t={flash:!1};if(t.underline=e%2===1,t.italics=e>=46,t.italics)t.foreground="white";else{var n=Math.floor(e/2)-16,r=["white","green","blue","cyan","red","yellow","magenta"];t.foreground=r[n]}l.log("INFO","MIDROW: "+JSON.stringify(t)),this.writeScreen.setPen(t)},outputDataUpdate:function(){var e=l.time;null!==e&&this.outputFilter&&(this.outputFilter.updateData&&this.outputFilter.updateData(e,this.displayedMemory),null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.lastOutputScreen),this.cueStartTime=this.displayedMemory.isEmpty()?null:e):this.cueStartTime=e,this.lastOutputScreen.copy(this.displayedMemory))},cueSplitAtTime:function(e){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.displayedMemory),this.cueStartTime=e))}};var y=function(e,t,n){this.field=e||1,this.outputs=[t,n],this.channels=[new m(1,t),new m(2,n)],this.currChNr=-1,this.lastCmdA=null,this.lastCmdB=null,this.bufferedData=[],this.startTime=null,this.lastTime=null,this.dataCounters={padding:0,"char":0,cmd:0,other:0}};y.prototype={getHandler:function(e){return this.channels[e].getHandler()},setHandler:function(e,t){this.channels[e].setHandler(t)},addData:function(e,t){var n,r,o,i=!1;this.lastTime=e,l.setTime(e);for(var a=0;a<t.length;a+=2)if(r=127&t[a],o=127&t[a+1],r>=16&&r<=31&&r===this.lastCmdA&&o===this.lastCmdB)this.lastCmdA=null,this.lastCmdB=null,l.log("DEBUG","Repeated command ("+f([r,o])+") is dropped");else if(0!==r||0!==o){if(l.log("DATA","["+f([t[a],t[a+1]])+"] -> ("+f([r,o])+")"),n=this.parseCmd(r,o),n||(n=this.parseMidrow(r,o)),n||(n=this.parsePAC(r,o)),n||(n=this.parseBackgroundAttributes(r,o)),!n&&(i=this.parseChars(r,o)))if(this.currChNr&&this.currChNr>=0){var u=this.channels[this.currChNr-1];u.insertChars(i)}else l.log("WARNING","No channel found yet. TEXT-MODE?");n?this.dataCounters.cmd+=2:i?this.dataCounters["char"]+=2:(this.dataCounters.other+=2,l.log("WARNING","Couldn't parse cleaned data "+f([r,o])+" orig: "+f([t[a],t[a+1]])))}else this.dataCounters.padding+=2},parseCmd:function(e,t){var n=null,r=(20===e||21===e||28===e||29===e)&&32<=t&&t<=47,o=(23===e||31===e)&&33<=t&&t<=35;if(!r&&!o)return!1;n=20===e||21===e||23===e?1:2;var i=this.channels[n-1];return 20===e||21===e||28===e||29===e?32===t?i.cc_RCL():33===t?i.cc_BS():34===t?i.cc_AOF():35===t?i.cc_AON():36===t?i.cc_DER():37===t?i.cc_RU(2):38===t?i.cc_RU(3):39===t?i.cc_RU(4):40===t?i.cc_FON():41===t?i.cc_RDC():42===t?i.cc_TR():43===t?i.cc_RTD():44===t?i.cc_EDM():45===t?i.cc_CR():46===t?i.cc_ENM():47===t&&i.cc_EOC():i.cc_TO(t-32),this.lastCmdA=e,this.lastCmdB=t,this.currChNr=n,!0},parseMidrow:function(e,t){var n=null;if((17===e||25===e)&&32<=t&&t<=47){if(n=17===e?1:2,n!==this.currChNr)return l.log("ERROR","Mismatch channel in midrow parsing"),!1;var r=this.channels[n-1];return r.insertChars([32]),r.cc_MIDROW(t),l.log("DEBUG","MIDROW ("+f([e,t])+")"),this.lastCmdA=e,this.lastCmdB=t,!0}return!1},parsePAC:function(e,t){var n=null,r=null,o=(17<=e&&e<=23||25<=e&&e<=31)&&64<=t&&t<=127,c=(16===e||24===e)&&64<=t&&t<=95;if(!o&&!c)return!1;n=e<=23?1:2,r=64<=t&&t<=95?1===n?i[e]:u[e]:1===n?a[e]:s[e];var l=this.interpretPAC(r,t),f=this.channels[n-1];return f.setPAC(l),this.lastCmdA=e,this.lastCmdB=t,this.currChNr=n,!0},interpretPAC:function(e,t){var n=t,r={color:null,italics:!1,indent:null,underline:!1,row:e};return n=t>95?t-96:t-64,r.underline=1===(1&n),n<=13?r.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(n/2)]:n<=15?(r.italics=!0,r.color="white"):r.indent=4*Math.floor((n-16)/2),r},parseChars:function(e,t){var r=null,o=null,i=null;if(e>=25?(r=2,i=e-8):(r=1,i=e),17<=i&&i<=19){var a=t;a=17===i?t+80:18===i?t+112:t+144,l.log("INFO","Special char '"+n(a)+"' in channel "+r),o=[a],this.lastCmdA=e,this.lastCmdB=t}else 32<=e&&e<=127&&(o=0===t?[e]:[e,t],this.lastCmdA=null,this.lastCmdB=null);if(o){var u=f(o);l.log("DEBUG","Char codes = "+u.join(","))}return o},parseBackgroundAttributes:function(e,t){var n,r,o,i,a=(16===e||24===e)&&32<=t&&t<=47,u=(23===e||31===e)&&45<=t&&t<=47;return!(!a&&!u)&&(n={},16===e||24===e?(r=Math.floor((t-32)/2),n.background=c[r],t%2===1&&(n.background=n.background+"_semi")):45===t?n.background="transparent":(n.foreground="black",47===t&&(n.underline=!0)),o=e<24?1:2,i=this.channels[o-1],i.setBkgData(n),this.lastCmdA=e,this.lastCmdB=t,!0)},reset:function(){for(var e=0;e<this.channels.length;e++)this.channels[e]&&this.channels[e].reset();this.lastCmdA=null,this.lastCmdB=null},cueSplitAtTime:function(e){for(var t=0;t<this.channels.length;t++)this.channels[t]&&this.channels[t].cueSplitAtTime(e)}};var g=function(e,t,n){for(var r=0,o=t,i=0,a=[],u=function(e,t,n,r){if(4!==e||t<8)return null;var o=n.getUint8(r),i=n.getUint16(r+1),a=n.getUint32(r+3),u=n.getUint8(r+7);return 181==o&&49==i&&1195456820==a&&3==u};o<t+n;){if(r=e.getUint32(o),i=31&e.getUint8(o+4),6===i)for(var s=o+5,c=-1;s<o+4+r-1;){c=0;for(var l=255;255===l;)l=e.getUint8(s),c+=l,s++;var f=0;for(l=255;255===l;)l=e.getUint8(s),f+=l,s++;u(c,f,e,s)&&a.push([s,f]),s+=f}o+=r+4}return a},_=function(e,t){var n=t[0],r=[[],[]];n+=8;var o=31&e.getUint8(n);n+=2;for(var i=0;i<o;i++){var a=e.getUint8(n),u=4&a,s=3&a;n++;var c=e.getUint8(n);n++;var l=e.getUint8(n);n++,u&&(127&c)+(127&l)!==0&&(0===s?(r[0].push(c),r[0].push(l)):1===s&&(r[1].push(c),r[1].push(l)))}return r};e.logger=l,e.PenState=d,e.CaptionScreen=v,e.Cea608Parser=y,e.findCea608Nalus=g,e.extractCea608DataFromRange=_}(t)},function(e,t){"use strict";function n(e){function t(){void 0===e.escapeMode&&(e.escapeMode=!0),void 0===e.attributePrefix&&(e.attributePrefix="_"),e.arrayAccessForm=e.arrayAccessForm||"none",e.emptyNodeForm=e.emptyNodeForm||"text",void 0===e.enableToStringFunc&&(e.enableToStringFunc=!0),e.arrayAccessFormPaths=e.arrayAccessFormPaths||[],void 0===e.skipEmptyTextNodesForObj&&(e.skipEmptyTextNodesForObj=!0),void 0===e.stripWhitespaces&&(e.stripWhitespaces=!0),e.datetimeAccessFormPaths=e.datetimeAccessFormPaths||[],void 0===e.useDoubleQuotes&&(e.useDoubleQuotes=!1),e.xmlElementsFilter=e.xmlElementsFilter||[],e.jsonPropertiesFilter=e.jsonPropertiesFilter||[],void 0===e.keepCData&&(e.keepCData=!1),void 0===e.ignoreRoot&&(e.ignoreRoot=!1)}function n(){}function r(e){var t=e.localName;return null==t&&(t=e.baseName),null!=t&&""!=t||(t=e.nodeName),t}function o(e){return e.prefix}function i(e){return"string"==typeof e?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"):e}function a(e,t,n,r){for(var o=0;o<e.length;o++){var i=e[o];if("string"==typeof i){if(i==r)break}else if(i instanceof RegExp){if(i.test(r))break}else if("function"==typeof i&&i(t,n,r))break}return o!=e.length}function u(t,n,r){switch(e.arrayAccessForm){case"property":t[n]instanceof Array?t[n+"_asArray"]=t[n]:t[n+"_asArray"]=[t[n]]}!(t[n]instanceof Array)&&e.arrayAccessFormPaths.length>0&&a(e.arrayAccessFormPaths,t,n,r)&&(t[n]=[t[n]])}function s(e){var t=e.split(/[-T:+Z]/g),n=new Date(t[0],t[1]-1,t[2]),r=t[5].split(".");if(n.setHours(t[3],t[4],r[0]),r.length>1&&n.setMilliseconds(r[1]),t[6]&&t[7]){var o=60*t[6]+Number(t[7]),i=/\d\d-\d\d:\d\d$/.test(e)?"-":"+";o=0+("-"==i?-1*o:o),n.setMinutes(n.getMinutes()-o-n.getTimezoneOffset())}else e.indexOf("Z",e.length-1)!==-1&&(n=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())));return n}function c(t,n,r){if(e.datetimeAccessFormPaths.length>0){var o=r.split(".#")[0];return a(e.datetimeAccessFormPaths,t,n,o)?s(t):t}return t}function l(t,n,r,o){return!(n==O.ELEMENT_NODE&&e.xmlElementsFilter.length>0)||a(e.xmlElementsFilter,t,r,o)}function f(t,n){if(t.nodeType==O.DOCUMENT_NODE){for(var i=new Object,a=t.childNodes,s=0;s<a.length;s++){var d=a[s];if(d.nodeType==O.ELEMENT_NODE)if(e.ignoreRoot)i=f(d);else{i={};var p=r(d);i[p]=f(d)}}return i}if(t.nodeType==O.ELEMENT_NODE){var i=new Object;i.__cnt=0;for(var h=[],a=t.childNodes,s=0;s<a.length;s++){var d=a[s],p=r(d);if(d.nodeType!=O.COMMENT_NODE){var v=n+"."+p;if(l(i,d.nodeType,p,v))if(i.__cnt++,null==i[p]){var m=f(d,v);if("#text"!=p||/[^\s]/.test(m)){var y={};y[p]=m,h.push(y)}i[p]=m,u(i,p,v)}else{null!=i[p]&&(i[p]instanceof Array||(i[p]=[i[p]],u(i,p,v)));var m=f(d,v);if("#text"!=p||/[^\s]/.test(m)){var y={};y[p]=m,h.push(y)}i[p][i[p].length]=m}}}i.__children=h;for(var g=r(t),_=0;_<t.attributes.length;_++){var b=t.attributes[_];i.__cnt++;for(var E=b.value,T=0,w=e.matchers.length;T<w;T++){var S=e.matchers[T];S.test(b,g)&&(E=S.converter(b.value))}i[e.attributePrefix+b.name]=E}var P=o(t);return null!=P&&""!=P&&(i.__cnt++,i.__prefix=P),null!=i["#text"]&&(i.__text=i["#text"],i.__text instanceof Array&&(i.__text=i.__text.join("\n")),e.stripWhitespaces&&(i.__text=i.__text.trim()),delete i["#text"],"property"==e.arrayAccessForm&&delete i["#text_asArray"],i.__text=c(i.__text,p,n+"."+p)),null!=i["#cdata-section"]&&(i.__cdata=i["#cdata-section"],delete i["#cdata-section"],"property"==e.arrayAccessForm&&delete i["#cdata-section_asArray"]),0==i.__cnt&&"text"==e.emptyNodeForm?i="":1==i.__cnt&&null!=i.__text?i=i.__text:1!=i.__cnt||null==i.__cdata||e.keepCData?i.__cnt>1&&null!=i.__text&&e.skipEmptyTextNodesForObj&&(e.stripWhitespaces&&""==i.__text||""==i.__text.trim())&&delete i.__text:i=i.__cdata,delete i.__cnt,!e.enableToStringFunc||null==i.__text&&null==i.__cdata||(i.toString=function(){return(null!=this.__text?this.__text:"")+(null!=this.__cdata?this.__cdata:"")}),i}if(t.nodeType==O.TEXT_NODE||t.nodeType==O.CDATA_SECTION_NODE)return t.nodeValue}function d(t,n,r,o){var a="<"+(null!=t&&null!=t.__prefix?t.__prefix+":":"")+n;if(null!=r)for(var u=0;u<r.length;u++){var s=r[u],c=t[s];e.escapeMode&&(c=i(c)),a+=" "+s.substr(e.attributePrefix.length)+"=",a+=e.useDoubleQuotes?'"'+c+'"':"'"+c+"'"}return a+=o?"/>":">"}function p(e,t){return"</"+(null!=e.__prefix?e.__prefix+":":"")+t+">"}function h(e,t){return e.indexOf(t,e.length-t.length)!==-1}function v(t,n){return!!("property"==e.arrayAccessForm&&h(n.toString(),"_asArray")||0==n.toString().indexOf(e.attributePrefix)||0==n.toString().indexOf("__")||t[n]instanceof Function)}function m(e){var t=0;if(e instanceof Object)for(var n in e)v(e,n)||t++;return t}function y(t,n,r){return 0==e.jsonPropertiesFilter.length||""==r||a(e.jsonPropertiesFilter,t,n,r)}function g(t){var n=[];if(t instanceof Object)for(var r in t)r.toString().indexOf("__")==-1&&0==r.toString().indexOf(e.attributePrefix)&&n.push(r);return n}function _(t){var n="";return null!=t.__cdata&&(n+="<![CDATA["+t.__cdata+"]]>"),null!=t.__text&&(n+=e.escapeMode?i(t.__text):t.__text),n}function b(t){var n="";return t instanceof Object?n+=_(t):null!=t&&(n+=e.escapeMode?i(t):t),n}function E(e,t){return""===e?t:e+"."+t}function T(e,t,n,r){var o="";if(0==e.length)o+=d(e,t,n,!0);else for(var i=0;i<e.length;i++)o+=d(e[i],t,g(e[i]),!1),o+=w(e[i],E(r,t)),o+=p(e[i],t);return o}function w(e,t){var n="",r=m(e);if(r>0)for(var o in e)if(!v(e,o)&&(""==t||y(e,o,E(t,o)))){var i=e[o],a=g(i);if(null==i||void 0==i)n+=d(i,o,a,!0);else if(i instanceof Object)if(i instanceof Array)n+=T(i,o,a,t);else if(i instanceof Date)n+=d(i,o,a,!1),n+=i.toISOString(),n+=p(i,o);else{var u=m(i);u>0||null!=i.__text||null!=i.__cdata?(n+=d(i,o,a,!1),n+=w(i,E(t,o)),n+=p(i,o)):n+=d(i,o,a,!0)}else n+=d(i,o,a,!1),n+=b(i),n+=p(i,o)}return n+=b(e)}var S="1.2.0";e=e||{},t(),n();var O={ELEMENT_NODE:1,TEXT_NODE:3,CDATA_SECTION_NODE:4,COMMENT_NODE:8,DOCUMENT_NODE:9};this.parseXmlString=function(e){window.ActiveXObject||"ActiveXObject"in window;if(void 0===e)return null;var t;if(window.DOMParser){var n=new window.DOMParser;
try{t=n.parseFromString(e,"text/xml"),t.getElementsByTagNameNS("*","parseerror").length>0&&(t=null)}catch(r){t=null}}else 0==e.indexOf("<?")&&(e=e.substr(e.indexOf("?>")+2)),t=new ActiveXObject("Microsoft.XMLDOM"),t.async="false",t.loadXML(e);return t},this.asArray=function(e){return void 0===e||null==e?[]:e instanceof Array?e:[e]},this.toXmlDateTime=function(e){return e instanceof Date?e.toISOString():"number"==typeof e?new Date(e).toISOString():null},this.asDateTime=function(e){return"string"==typeof e?s(e):e},this.xml2json=function(e){return f(e)},this.xml_str2json=function(e){var t=this.parseXmlString(e);return null!=t?this.xml2json(t):null},this.json2xml_str=function(e){return w(e,"")},this.json2xml=function(e){var t=this.json2xml_str(e);return this.parseXmlString(t)},this.getVersion=function(){return S}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n,e.exports=t["default"]},function(e,t){"use strict";function n(){return r}Object.defineProperty(t,"__esModule",{value:!0}),t.getVersionString=n;var r="2.6.4"},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<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(918),u=r(a),s=function(){function e(t,n,r,i,a){var s=this;o(this,e),this._name=t||"",this._properties=[],this._children=r||[],this._isRoot=i||!1,this._isArray=a||!0,Array.isArray(n)&&n.forEach(function(e){s._properties.push(new u["default"](e))})}return i(e,[{key:"name",get:function(){return this._name}},{key:"isRoot",get:function(){return this._isRoot}},{key:"isArray",get:function(){return this._isArray}},{key:"children",get:function(){return this._children}},{key:"properties",get:function(){return this._properties}}]),e}();t["default"]=s,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=1,o=1,i=function a(e,t,i,u){n(this,a),this.url=e||"",this.serviceLocation=t||e||"",this.dvb_priority=i||r,this.dvb_weight=u||o};i.DEFAULT_DVB_PRIORITY=r,i.DEFAULT_DVB_WEIGHT=o,t["default"]=i,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.duration=NaN,this.presentationTime=NaN,this.id=NaN,this.messageData="",this.eventStream=null,this.presentationTimeDelta=NaN};t["default"]=r,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.schemeIdUri="",this.value=""};t["default"]=r,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){function e(){Cn=!1,xn=!1,Nn=!0,Ln=null,An=null,Un=null,$["default"].extend(J["default"]),Hn=(0,k["default"])(wn).getInstance()}function t(e){e&&(e.capabilities&&(Vn=e.capabilities),e.streamController&&(Gn=e.streamController),e.playbackController&&(Wn=e.playbackController),e.mediaPlayerModel&&(Hn=e.mediaPlayerModel),e.abrController&&(Mn=e.abrController),e.mediaController&&(Dn=e.mediaController))}function n(e,t,n){return Vn||(Vn=(0,T["default"])(wn).getInstance()),qn=(0,b["default"])(wn).getInstance(),Vn.supportsMediaSource()?void(Cn||(Cn=!0,kn=(0,ce["default"])(wn).getInstance(),Mn||(Mn=(0,F["default"])(wn).getInstance()),Wn||(Wn=(0,d["default"])(wn).getInstance()),Dn||(Dn=(0,m["default"])(wn).getInstance()),Un=(0,re["default"])(wn).getInstance(),Yn=(0,ie["default"])(wn).getInstance({mediaController:Dn,timelineConverter:kn,adapter:Un}),zn=(0,N["default"])(wn).getInstance(),Kn=(0,ue["default"])(wn).getInstance({manifestModel:zn,dashManifestModel:Yn}),Bn=(0,L["default"])(wn).getInstance(),$n=(0,I["default"])(wn).getInstance(),Qn=(0,G["default"])(wn).getInstance({mediaPlayerModel:Hn}),Un.setConfig({dashManifestModel:Yn}),Bn.setConfig({adapter:Un}),Je(),Ie(void 0===n||n),e&&kt(e),t&&en(t),Pn("[dash.js "+c()+"] MediaPlayer has been initialized"))):void qn.capabilityError("mediasource")}function r(){en(null),kt(null),An=null,Ln&&(Ln.reset(),Ln=null),jn&&(jn.reset(),jn=null)}function o(){return!!Xn&&!!In}function i(e,t,n){Sn.on(e,t,n)}function u(e,t,n){Sn.off(e,t,n)}function c(){return(0,te.getVersionString)()}function f(){return On}function p(){if(!xn)throw _n;(!Nn||y()&&xn)&&Wn.play()}function v(){if(!xn)throw _n;Wn.pause()}function y(){if(!xn)throw _n;return Wn.isPaused()}function _(e){if(!xn)throw _n;var t=Wn.getIsDynamic()?H(e):e;Wn.seek(t)}function E(){if(!xn)throw _n;return Wn.isSeeking()}function w(){if(!xn)throw _n;return Wn.getIsDynamic()}function O(e){if(!Xn)throw bn;xt().playbackRate=e}function R(){if(!Xn)throw bn;return xt().playbackRate}function A(e){if(!Xn)throw bn;xt().muted=e}function x(){if(!Xn)throw bn;return xt().muted}function M(e){if(!Xn)throw bn;xt().volume=e}function D(){if(!Xn)throw bn;return xt().volume}function j(e){var t=[a["default"].VIDEO,a["default"].AUDIO,a["default"].FRAGMENTED_TEXT];if(e){if(t.indexOf(e)!==-1){var n=bt().getCurrentBufferLevel(Et(e));return n?n:NaN}return Pn("Warning - getBufferLength requested for invalid type"),NaN}var n=t.map(function(e){return Ut(e).length>0?bt().getCurrentBufferLevel(Et(e)):Number.MAX_VALUE}).reduce(function(e,t){return Math.min(e,t)});return n===Number.MAX_VALUE?NaN:n}function U(){var e=vn();return e?e.manifestInfo.DVRWindowSize:0}function H(e){var t=vn(),n=Wn.getLiveDelay();if(!t)return 0;var r=t.range.start+e;return r>t.range.end-n&&(r=t.range.end-n),r}function V(e){if(!xn)throw _n;var t=xt().currentTime;if(void 0!==e)t=Gn.getTimeRelativeToStreamId(t,e);else if(Wn.getIsDynamic()){var n=vn();t=null===n?0:W()-(n.range.end-n.time)}return t}function W(){if(!xn)throw _n;var e=xt().duration;if(Wn.getIsDynamic()){var t=vn(),n=void 0;if(!t)return 0;n=t.range.end-t.range.start,e=n<t.manifestInfo.DVRWindowSize?n:t.manifestInfo.DVRWindowSize}return e}function Y(){if(!xn)throw _n;return V()<0?NaN:mn(V())}function X(){if(!xn)throw _n;return mn(W())}function Q(e,t){Mn.setMaxAllowedBitrateFor(e,t)}function Z(e,t){Mn.setMinAllowedBitrateFor(e,t)}function ne(e){return Mn.getMaxAllowedBitrateFor(e)}function oe(e){return Mn.getMinAllowedBitrateFor(e)}function ae(e,t){Mn.setMaxAllowedRepresentationRatioFor(e,t)}function se(e){return Mn.getMaxAllowedRepresentationRatioFor(e)}function fe(e){if(!xn)throw _n;return Mn.getQualityFor(e,Gn.getActiveStreamInfo())}function pe(e,t){if(!xn)throw _n;Mn.setPlaybackQuality(e,Gn.getActiveStreamInfo(),t)}function ve(){Mn.setElementSize(),Mn.setWindowResizeEventCalled(!0)}function me(){return Mn.getLimitBitrateByPortal()}function ye(e){Mn.setLimitBitrateByPortal(e)}function ge(){return Mn.getUsePixelRatioInLimitBitrateByPortal()}function _e(e){Mn.setUsePixelRatioInLimitBitrateByPortal(e)}function be(e,t){Mn.setInitialBitrateFor(e,t)}function Ee(e){if(!xn)throw _n;return Mn.getInitialBitrateFor(e)}function Te(e,t){Mn.setInitialRepresentationRatioFor(e,t)}function we(e){return Mn.getInitialRepresentationRatioFor(e)}function Se(e){return Mn.getAutoSwitchBitrateFor(e)}function Oe(e,t){Mn.setAutoSwitchBitrateFor(e,t)}function Pe(){return Mn.getUseDeadTimeLatency()}function Re(e){Mn.setUseDeadTimeLatency(e)}function Ie(e){Nn=e}function Ae(){return Nn}function Ce(e){Hn.setLiveDelayFragmentCount(e)}function xe(e){Hn.setLiveDelay(e)}function Ne(){return Hn.getLiveDelay()}function Me(e){Hn.setUseSuggestedPresentationDelay(e)}function ke(e,t){Hn.setLastBitrateCachingInfo(e,t)}function De(e,t){Hn.setLastMediaSettingsCachingInfo(e,t)}function Le(e){Hn.setScheduleWhilePaused(e)}function je(){return Hn.getScheduleWhilePaused()}function Fe(e){Hn.setFastSwitchEnabled(e)}function Ue(){return Hn.getFastSwitchEnabled()}function Be(e){throw new Error("Calling obsolete function - enabledBufferOccupancyABR("+e+") has no effect.")}function He(e){e===a["default"].ABR_STRATEGY_DYNAMIC||e===a["default"].ABR_STRATEGY_BOLA||e===a["default"].ABR_STRATEGY_THROUGHPUT?Hn.setABRStrategy(e):Pn("Warning: Ignoring setABRStrategy("+e+") - unknown value.")}function qe(){return Hn.getABRStrategy()}function Ve(e){Hn.setUseDefaultABRRules(e)}function Ge(e,t,n){Hn.addABRCustomRule(e,t,n)}function We(e){Hn.removeABRCustomRule(e)}function Ke(){Hn.removeAllABRCustomRule()}function Ye(e){e===a["default"].MOVING_AVERAGE_SLIDING_WINDOW||e===a["default"].MOVING_AVERAGE_EWMA?Hn.setMovingAverageMethod(e):Pn("Warning: Ignoring setMovingAverageMethod("+e+") - unknown value.")}function ze(){return Hn.getMovingAverageMethod()}function Xe(e,t){$e(e,t);var n=new l["default"];n.schemeIdUri=e,n.value=t,Hn.getUTCTimingSources().push(n)}function $e(e,t){var n=Hn.getUTCTimingSources();n.forEach(function(r,o){r.schemeIdUri===e&&r.value===t&&n.splice(o,1)})}function Qe(){Hn.setUTCTimingSources([])}function Je(){Xe(k["default"].DEFAULT_UTC_TIMING_SOURCE.scheme,k["default"].DEFAULT_UTC_TIMING_SOURCE.value)}function Ze(e){Hn.setUseManifestDateHeaderTimeSource(e)}function et(e){Hn.setBufferToKeep(e)}function tt(e){Hn.setBufferPruningInterval(e)}function nt(e){Hn.setStableBufferTime(e)}function rt(){return Hn.getStableBufferTime()}function ot(e){Hn.setBufferTimeAtTopQuality(e)}function it(){return Hn.getBufferTimeAtTopQuality()}function at(e){Hn.setBufferTimeAtTopQualityLongForm(e)}function ut(){return Hn.getBufferTimeAtTopQualityLongForm()}function st(e){Hn.setLongFormContentDurationThreshold(e)}function ct(e){throw new Error("Calling obsolete function - setRichBufferThreshold("+e+") has no effect.")}function lt(e){Hn.setBandwidthSafetyFactor(e)}function ft(){return Hn.getBandwidthSafetyFactor()}function dt(e){var t=Mn.getThroughputHistory();return t?t.getAverageThroughput(e):0}function pt(e){Hn.setAbandonLoadTimeout(e)}function ht(e){Hn.setFragmentRetryAttempts(e)}function vt(e){Hn.setFragmentRetryInterval(e)}function mt(e){Hn.setManifestRetryAttempts(e)}function yt(e){Hn.setManifestRetryInterval(e)}function gt(e,t){Hn.setXHRWithCredentialsForType(e,t)}function _t(e){return Hn.getXHRWithCredentialsForType(e)}function bt(){return Kn}function Et(e){return Bn.getReadOnlyMetricsFor(e)}function Tt(e){void 0===$n&&($n=(0,I["default"])(wn).getInstance()),$n.setTextDefaultLanguage(e)}function wt(){return void 0===$n&&($n=(0,I["default"])(wn).getInstance()),$n.getTextDefaultLanguage()}function St(e){void 0===$n&&($n=(0,I["default"])(wn).getInstance()),$n.setTextDefaultEnabled(e)}function Ot(){return void 0===$n&&($n=(0,I["default"])(wn).getInstance()),$n.getTextDefaultEnabled()}function Pt(e){void 0===$n&&($n=(0,I["default"])(wn).getInstance()),$n.enableText(e)}function Rt(){return void 0===$n&&($n=(0,I["default"])(wn).getInstance()),$n.isTextEnabled()}function It(e){if(!xn)throw _n;void 0===$n&&($n=(0,I["default"])(wn).getInstance()),$n.setTextTrack(e)}function At(){var e=NaN;return $n&&(e=$n.getCurrentTrackIdx()),e}function Ct(e){var t=(0,S["default"])(wn).getInstance();t.setConfig({videoModel:Xn}),t.initialize(),t.displayCConTop(e)}function xt(){if(!Xn)throw bn;return Xn.getElement()}function Nt(){return Xn?Xn.getVideoContainer():null}function Mt(e){if(!Xn)throw bn;Xn.setVideoContainer(e)}function kt(e){if(!Cn)throw Tn;Xn&&Xn.reset(),Xn=null,e&&(Xn=(0,q["default"])(wn).getInstance(),Xn.initialize(),Xn.setElement(e),dn(),pn(),hn()),cn()}function Dt(){return Xn?Xn.getTTMLRenderingDiv():null}function Lt(e){if(!Xn)throw bn;Xn.setTTMLRenderingDiv(e)}function jt(e){if(!xn)throw _n;var t=yn();return t?t.getBitrateListFor(e):[]}function Ft(e){if(!xn)throw _n;return Un.getStreamsInfo(e)}function Ut(e){if(!xn)throw _n;var t=Gn.getActiveStreamInfo();return t?Dn.getTracksFor(e,t):[]}function Bt(e,t,n){if(!xn)throw _n;return n=n||Un.getStreamsInfo(t)[0],n?Un.getAllMediaInfoForType(n,e,t):[]}function Ht(e){if(!xn)throw _n;var t=Gn.getActiveStreamInfo();return t?Dn.getCurrentTrackFor(e,t):null}function qt(e,t){if(!Cn)throw Tn;Dn.setInitialSettings(e,t)}function Vt(e){if(!Cn)throw Tn;return Dn.getInitialSettings(e)}function Gt(e){if(!xn)throw _n;Dn.setTrack(e)}function Wt(e){if(!Cn)throw Tn;return Dn.getSwitchMode(e)}function Kt(e,t){if(!Cn)throw Tn;Dn.setSwitchMode(e,t)}function Yt(e){if(!Cn)throw Tn;Dn.setSelectionModeForInitialTrack(e)}function zt(){if(!Cn)throw Tn;return Dn.getSelectionModeForInitialTrack()}function Xt(){return dn()}function $t(e){Ln=e}function Qt(e){An=e}function Jt(e,t){var n=fn(),r=this,o=function a(e){e.error?t(null,e.error):t(e.manifest),Sn.off($["default"].INTERNAL_MANIFEST_LOADED,a,r),n.reset()};Sn.on($["default"].INTERNAL_MANIFEST_LOADED,o,r);var i=(0,C["default"])(wn).getInstance();i.initialize(),n.load(i.parseURI(e))}function Zt(){if(!In)throw En;return In}function en(e){if(!Cn)throw Tn;if("string"==typeof e){var t=(0,C["default"])(wn).getInstance();t.initialize(),In=t.parseURI(e)}else In=e;cn()}function tn(e,t,n){var r=!(arguments.length<=3||void 0===arguments[3])&&arguments[3],o=new Date(1e3*e),i=o.toLocaleDateString(t),a=o.toLocaleTimeString(t,{hour12:n});return r?a+" "+i:a}function nn(e){e=Math.max(e,0);var t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.floor(e%3600%60);return(0===t?"":t<10?"0"+t.toString()+":":t.toString()+":")+(n<10?"0"+n.toString():n.toString())+":"+(r<10?"0"+r.toString():r.toString())}function rn(e,t,n){ee["default"].extend(e,t,n,wn)}function on(){if(!Xn)throw bn;return Xn}function an(){return Mn.getAutoSwitchBitrateFor(a["default"].VIDEO)||Mn.getAutoSwitchBitrateFor(a["default"].AUDIO)}function un(e){Mn.setAutoSwitchBitrateFor(a["default"].VIDEO,e),Mn.setAutoSwitchBitrateFor(a["default"].AUDIO,e)}function sn(e){gt(void 0,e)}function cn(){xn?(xn=!1,Un.reset(),Gn.reset(),Wn.reset(),Mn.reset(),Dn.reset(),$n.reset(),Ln&&(Ln.reset(),Ln=null,dn()),o()&&gn()):o()&&gn()}function ln(){var e=fn(),t=(0,B["default"])(wn).getInstance({textController:$n});Gn||(Gn=(0,h["default"])(wn).getInstance()),Dn.setConfig({errHandler:qn,domStorage:Qn}),Gn.setConfig({capabilities:Vn,manifestLoader:e,manifestModel:zn,dashManifestModel:Yn,mediaPlayerModel:Hn,protectionController:Ln,adapter:Un,metricsModel:Bn,dashMetrics:Kn,errHandler:qn,timelineConverter:kn,videoModel:Xn,playbackController:Wn,domStorage:Qn,abrController:Mn,mediaController:Dn,textController:$n,sourceBufferController:t}),Wn.setConfig({streamController:Gn,metricsModel:Bn,dashMetrics:Kn,manifestModel:zn,mediaPlayerModel:Hn,dashManifestModel:Yn,adapter:Un,videoModel:Xn}),Mn.setConfig({streamController:Gn,domStorage:Qn,mediaPlayerModel:Hn,metricsModel:Bn,dashMetrics:Kn,dashManifestModel:Yn,manifestModel:zn,videoModel:Xn,adapter:Un}),Mn.createAbrRulesCollection(),$n.setConfig({errHandler:qn,manifestModel:zn,dashManifestModel:Yn,mediaController:Dn,streamController:Gn,videoModel:Xn}),Gn.initialize(Nn,An)}function fn(){return(0,g["default"])(wn).create({errHandler:qn,metricsModel:Bn,mediaPlayerModel:Hn,requestModifier:(0,P["default"])(wn).getInstance(),mssHandler:Fn})}function dn(){if(Ln)return Ln;var e=dashjs.Protection;if("function"==typeof e){var t=e(wn).create();return $["default"].extend(e.events),J["default"].extend(e.events,{publicOnly:!0}),Ln=t.createProtectionSystem({log:Pn,errHandler:qn,videoModel:Xn,capabilities:Vn,eventBus:Sn,adapter:Un,events:$["default"],BASE64:de["default"],constants:a["default"]})}return null}function pn(){if(!jn){var e=dashjs.MetricsReporting;if("function"==typeof e){var t=e(wn).create();jn=t.createMetricsReporting({log:Pn,eventBus:Sn,mediaElement:xt(),dashManifestModel:Yn,metricsModel:Bn,events:$["default"],constants:a["default"],metricsConstants:s["default"]})}}}function hn(){if(!Fn){var e=dashjs.MssHandler;"function"==typeof e&&(Fn=e(wn).create({eventBus:Sn,mediaPlayerModel:Hn,metricsModel:Bn,playbackController:Wn,protectionController:Ln,errHandler:qn,events:$["default"],constants:a["default"],log:Pn,initSegmentType:le.HTTPRequest.INIT_SEGMENT_TYPE,BASE64:de["default"],ISOBoxer:he["default"]}))}}function vn(){var e=Bn.getReadOnlyMetricsFor(a["default"].VIDEO)||Bn.getReadOnlyMetricsFor(a["default"].AUDIO);return Kn.getCurrentDVRInfo(e)}function mn(e){var t=vn(),n=void 0,r=void 0;return t?(n=t.manifestInfo.availableFrom.getTime()/1e3,r=e+(n+t.range.start)):0}function yn(){if(!xn)throw _n;var e=Gn.getActiveStreamInfo();return e?Gn.getStreamById(e.id):null}function gn(){xn||(ln(),xn=!0,Pn("Playback Initialized"),"string"==typeof In?Gn.load(In):Gn.loadWithManifest(In))}var _n="You must first call initialize() to init playback before calling this method",bn="You must first call attachView() to set the video element before calling this method",En="You must first call attachSource() with a valid source before calling this method",Tn="MediaPlayer not initialized!",wn=this.context,Sn=(0,z["default"])(wn).getInstance(),On=(0,K["default"])(wn).getInstance(),Pn=On.log,Rn=void 0,In=void 0,An=void 0,Cn=void 0,xn=void 0,Nn=void 0,Mn=void 0,kn=void 0,Dn=void 0,Ln=void 0,jn=void 0,Fn=void 0,Un=void 0,Bn=void 0,Hn=void 0,qn=void 0,Vn=void 0,Gn=void 0,Wn=void 0,Kn=void 0,Yn=void 0,zn=void 0,Xn=void 0,$n=void 0,Qn=void 0;return Rn={initialize:n,setConfig:t,on:i,off:u,extend:rn,attachView:kt,attachSource:en,isReady:o,play:p,isPaused:y,pause:v,isSeeking:E,isDynamic:w,seek:_,setPlaybackRate:O,getPlaybackRate:R,setMute:A,isMuted:x,setVolume:M,getVolume:D,time:V,duration:W,timeAsUTC:Y,durationAsUTC:X,getActiveStream:yn,getDVRWindowSize:U,getDVRSeekOffset:H,convertToTimeCode:nn,formatUTC:tn,getVersion:c,getDebug:f,getBufferLength:j,getVideoModel:on,getVideoContainer:Nt,getTTMLRenderingDiv:Dt,getVideoElement:xt,getSource:Zt,setLiveDelayFragmentCount:Ce,setLiveDelay:xe,getLiveDelay:Ne,useSuggestedPresentationDelay:Me,enableLastBitrateCaching:ke,enableLastMediaSettingsCaching:De,setMaxAllowedBitrateFor:Q,getMaxAllowedBitrateFor:ne,setMinAllowedBitrateFor:Z,getMinAllowedBitrateFor:oe,setMaxAllowedRepresentationRatioFor:ae,getMaxAllowedRepresentationRatioFor:se,setAutoPlay:Ie,getAutoPlay:Ae,setScheduleWhilePaused:Le,getScheduleWhilePaused:je,getDashMetrics:bt,getMetricsFor:Et,getQualityFor:fe,setQualityFor:pe,updatePortalSize:ve,getLimitBitrateByPortal:me,setLimitBitrateByPortal:ye,getUsePixelRatioInLimitBitrateByPortal:ge,setUsePixelRatioInLimitBitrateByPortal:_e,setTextDefaultLanguage:Tt,getTextDefaultLanguage:wt,setTextDefaultEnabled:St,getTextDefaultEnabled:Ot,enableText:Pt,isTextEnabled:Rt,setTextTrack:It,getBitrateInfoListFor:jt,setInitialBitrateFor:be,getInitialBitrateFor:Ee,setInitialRepresentationRatioFor:Te,getInitialRepresentationRatioFor:we,getStreamsFromManifest:Ft,getTracksFor:Ut,getTracksForTypeFromManifest:Bt,getCurrentTrackFor:Ht,setInitialMediaSettingsFor:qt,getInitialMediaSettingsFor:Vt,setCurrentTrack:Gt,getTrackSwitchModeFor:Wt,setTrackSwitchModeFor:Kt,setSelectionModeForInitialTrack:Yt,getSelectionModeForInitialTrack:zt,getAutoSwitchQuality:an,setAutoSwitchQuality:un,setFastSwitchEnabled:Fe,getFastSwitchEnabled:Ue,setMovingAverageMethod:Ye,getMovingAverageMethod:ze,getAutoSwitchQualityFor:Se,setAutoSwitchQualityFor:Oe,enableBufferOccupancyABR:Be,setABRStrategy:He,getABRStrategy:qe,useDefaultABRRules:Ve,addABRCustomRule:Ge,removeABRCustomRule:We,removeAllABRCustomRule:Ke,setBandwidthSafetyFactor:lt,getBandwidthSafetyFactor:ft,getAverageThroughput:dt,setAbandonLoadTimeout:pt,retrieveManifest:Jt,addUTCTimingSource:Xe,removeUTCTimingSource:$e,clearDefaultUTCTimingSources:Qe,restoreDefaultUTCTimingSources:Je,setBufferToKeep:et,setBufferPruningInterval:tt,setStableBufferTime:nt,getStableBufferTime:rt,setBufferTimeAtTopQuality:ot,getBufferTimeAtTopQuality:it,setBufferTimeAtTopQualityLongForm:at,getBufferTimeAtTopQualityLongForm:ut,setFragmentLoaderRetryAttempts:ht,setFragmentLoaderRetryInterval:vt,setManifestLoaderRetryAttempts:mt,setManifestLoaderRetryInterval:yt,setXHRWithCredentials:sn,setXHRWithCredentialsForType:gt,getXHRWithCredentialsForType:_t,setLongFormContentDurationThreshold:st,setRichBufferThreshold:ct,getProtectionController:Xt,attachProtectionController:$t,setProtectionData:Qt,enableManifestDateHeaderTimeSource:Ze,displayCaptionsOnTop:Ct,attachVideoContainer:Mt,attachTTMLRenderingDiv:Lt,getCurrentTextTrackIndex:At,getUseDeadTimeLatencyForAbr:Pe,setUseDeadTimeLatencyForAbr:Re,reset:r},e(),Rn}Object.defineProperty(t,"__esModule",{value:!0});var i=n(24),a=r(i),u=n(156),s=r(u),c=n(497),l=r(c),f=n(947),d=r(f),p=n(949),h=r(p),v=n(499),m=r(v),y=n(936),g=r(y),_=n(507),b=r(_),E=n(1009),T=r(E),w=n(338),S=r(w),O=n(243),P=r(O),R=n(1006),I=r(R),A=n(505),C=r(A),x=n(972),N=r(x),M=n(504),k=r(M),D=n(973),L=r(D),j=n(239),F=r(j),U=n(500),B=r(U),H=n(974),q=r(H),V=n(1010),G=r(V),W=n(19),K=r(W),Y=n(12),z=r(Y),X=n(14),$=r(X),Q=n(330),J=r(Q),Z=n(2),ee=r(Z),te=n(493),ne=n(910),re=r(ne),oe=n(916),ie=r(oe),ae=n(912),ue=r(ae),se=n(929),ce=r(se),le=n(45),fe=n(905),de=r(fe),pe=n(299),he=r(pe);o.__dashjs_factory_name="MediaPlayer";var ve=ee["default"].getClassFactory(o);ve.events=J["default"],ee["default"].updateClassFactory(o.__dashjs_factory_name,ve),t["default"]=ve,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){function e(){O()}function t(e,t){var n=f(e),o=r(e,t),i=[];return e===a["default"].FRAGMENTED_TEXT?void u(o[0]):(n||(n=H.getSavedMediaSettings(e),c(e,n)),void(o&&0!==o.length&&(n&&o.forEach(function(e){R(n,e)&&i.push(e)}),u(0===i.length?C(o):i.length>1?C(i):i[0]))))}function n(e){var t=e?e.type:null,n=e?e.streamInfo.id:null,r=f(t);if(e&&T(t)){L[n]=L[n]||x();for(var i=L[n][t].list.length,a=0;a<i;a++)if(w(L[n][t].list[a],e))return;L[n][t].list.push(e),r&&R(r,e)&&!o(t,e.streamInfo)&&u(e)}}function r(e,t){if(!e||!t)return[];var n=t.id;return L[n]&&L[n][e]?L[n][e].list:[]}function o(e,t){return!e||!t||t&&!L[t.id]?null:L[t.id][e].current}function i(e){var t=e.type,n=e.streamInfo.id;return L[n]&&L[n][t]&&w(L[n][t].current,e)}function u(e){if(e){var t=e.type,n=e.streamInfo,r=n.id,i=o(t,n);if(L[r]&&L[r][t]&&(!i||!w(e,i))){L[r][t].current=e,i&&k.trigger(s["default"].CURRENT_TRACK_CHANGED,{oldMediaInfo:i,newMediaInfo:e,switchMode:U[t]});var a=P(e);a&&L[r][t].storeLastSettings&&(a.roles&&(a.role=a.roles[0],delete a.roles),a.accessibility&&(a.accessibility=a.accessibility[0]),a.audioChannelConfiguration&&(a.audioChannelConfiguration=a.audioChannelConfiguration[0]),H.setSavedMediaSettings(t,a))}}}function c(e,t){e&&t&&(j[e]=t)}function f(e){return e?j[e]:null}function d(e,t){var n=q.indexOf(t)!==-1;return n?void(U[e]=t):void M("track switch mode is not supported: "+t)}function p(e){return U[e]}function b(e){var t=V.indexOf(e)!==-1;return t?void(F=e):void M("track selection mode is not supported: "+e)}function E(){return F||_}function T(e){return e===a["default"].AUDIO||e===a["default"].VIDEO||e===a["default"].TEXT||e===a["default"].FRAGMENTED_TEXT}function w(e,t){var n=e.id===t.id,r=e.viewpoint===t.viewpoint,o=e.lang===t.lang,i=e.roles.toString()===t.roles.toString(),a=e.accessibility.toString()===t.accessibility.toString(),u=e.audioChannelConfiguration.toString()===t.audioChannelConfiguration.toString();return n&&r&&o&&i&&a&&u}function S(e){e&&(e.errHandler&&(B=e.errHandler),e.domStorage&&(H=e.domStorage))}function O(){L={},A(),I()}function P(e){var t={lang:e.lang,viewpoint:e.viewpoint,roles:e.roles,accessibility:e.accessibility,audioChannelConfiguration:e.audioChannelConfiguration},n=t.lang||t.viewpoint||t.role&&t.role.length>0||t.accessibility&&t.accessibility.length>0||t.audioChannelConfiguration&&t.audioChannelConfiguration.length>0;return n?t:null}function R(e,t){var n=!e.lang||e.lang===t.lang,r=!e.viewpoint||e.viewpoint===t.viewpoint,o=!e.role||!!t.roles.filter(function(t){return t===e.role})[0],i=!e.accessibility||!!t.accessibility.filter(function(t){return t===e.accessibility})[0],a=!e.audioChannelConfiguration||!!t.audioChannelConfiguration.filter(function(t){return t===e.audioChannelConfiguration})[0];return n&&r&&o&&i&&a}function I(){U={audio:m,video:v}}function A(){j={audio:null,video:null}}function C(e){var t=E(),n=[],r=function(e){var t=0,n=[],r=void 0;return e.forEach(function(e){r=Math.max.apply(Math,e.bitrateList.map(function(e){return e.bandwidth})),r>t?(t=r,n=[e]):r===t&&n.push(e)}),n},o=function(e){var t=0,n=[],r=void 0;return e.forEach(function(e){r=e.representationCount,r>t?(t=r,n=[e]):r===t&&n.push(e)}),n};switch(t){case y:n=r(e),n.length>1&&(n=o(n));break;case g:n=o(e),n.length>1&&(n=r(e));break;default:M("track selection mode is not supported: "+t)}return n[0]}function x(){return{audio:{list:[],storeLastSettings:!0,current:null},video:{list:[],storeLastSettings:!0,current:null},text:{list:[],storeLastSettings:!0,current:null},fragmentedText:{list:[],storeLastSettings:!0,current:null}}}var N=this.context,M=(0,h["default"])(N).getInstance().log,k=(0,l["default"])(N).getInstance(),D=void 0,L=void 0,j=void 0,F=void 0,U=void 0,B=void 0,H=void 0,q=[m,v],V=[y,g];return D={checkInitialMediaSettingsForType:t,addTrack:n,getTracksFor:r,getCurrentTrackFor:o,isCurrentTrack:i,setTrack:u,setInitialSettings:c,getInitialSettings:f,setSwitchMode:d,getSwitchMode:p,setSelectionModeForInitialTrack:b,getSelectionModeForInitialTrack:E,isMultiTrackSupportedByType:T,isTracksEqual:w,setConfig:S,reset:O},e(),D}Object.defineProperty(t,"__esModule",{value:!0});var i=n(24),a=r(i),u=n(14),s=r(u),c=n(12),l=r(c),f=n(2),d=r(f),p=n(19),h=r(p),v="neverReplace",m="alwaysReplace",y="highestBitrate",g="widestRange",_=y;o.__dashjs_factory_name="MediaController";var b=d["default"].getSingletonFactory(o);b.TRACK_SWITCH_MODE_NEVER_REPLACE=v,b.TRACK_SWITCH_MODE_ALWAYS_REPLACE=m,b.TRACK_SELECTION_MODE_HIGHEST_BITRATE=y,b.TRACK_SELECTION_MODE_WIDEST_RANGE=g,b.DEFAULT_INIT_TRACK_SELECTION_MODE=_,d["default"].updateSingletonFactory(o.__dashjs_factory_name,b),t["default"]=b,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(e,t){var n=t.codec,r=null;try{if(n.match(/application\/mp4;\s*codecs="(stpp|wvtt).*"/i))throw new Error("not really supported");r=e.addSourceBuffer(n)}catch(o){if(!t.isText&&n.indexOf('codecs="stpp')===-1&&n.indexOf('codecs="wvtt')===-1)throw o;r=E.getTextSourceBuffer()}return r}function n(e,t){try{e.removeSourceBuffer(t)}catch(n){}}function r(e,t,n){var r=null,o=0,i=0,a=null,u=null,s=0,c=void 0,l=void 0,f=n||.15;try{r=e.buffered}catch(d){return null}if(null!==r&&void 0!==r){for(l=0,c=r.length;l<c;l++)if(o=r.start(l),i=r.end(l),null===a)s=Math.abs(o-t),t>=o&&t<i?(a=o,u=i):s<=f&&(a=o,u=i);else{if(s=o-u,!(s<=f))break;u=i}if(null!==a)return{start:a,end:u}}return null}function o(e){var t=null;try{return t=e.buffered}catch(n){return null}}function i(e){var t=o(e),n=0,r=void 0,i=void 0;if(!t)return n;for(i=0,r=t.length;i<r;i++)n+=t.end(i)-t.start(i);return n}function u(e,t,n){var o=void 0,i=void 0;return o=r(e,t,n),i=null===o?0:o.end-t}function c(e,t){if(!t)return null;var n=o(t),r=void 0,i=void 0,a=void 0,u=void 0,s=void 0,c=void 0,l=void 0,f=void 0,d=void 0;if(!n)return null;for(var p=0,h=n.length;p<h;p++){if(f=e.length>p,s=f?{start:e.start(p),end:e.end(p)}:null,r=n.start(p),i=n.end(p),!s)return d={start:r,end:i};if(a=s.start===r,u=s.end===i,!a||!u){if(a)d={start:s.end,end:i};else{if(!u)return d={start:r,end:i};d={start:r,end:s.start}}return c=e.length>p+1?{start:e.start(p+1),end:e.end(p+1)}:null,l=p+1<h?{start:n.start(p+1),end:n.end(p+1)}:null,!c||l&&l.start===c.start&&l.end===c.end||(d.end=c.start),d}}return null}function f(e,t){if(!e||!t)return void b.trigger(l["default"].SOURCEBUFFER_APPEND_COMPLETED,{buffer:null,bytes:null,error:new a["default"](h,m,null)});var n=t.bytes,r="append"in e?"append":"appendBuffer"in e?"appendBuffer":null,o="Object"===Object.prototype.toString.call(e).slice(8,-1);r&&g(e,function(){try{o?e[r](n,t):e[r](n),g(e,function(){b.trigger(l["default"].SOURCEBUFFER_APPEND_COMPLETED,{buffer:e,bytes:n})})}catch(i){b.trigger(l["default"].SOURCEBUFFER_APPEND_COMPLETED,{buffer:e,bytes:n,error:new a["default"](i.code,i.message,null)})}})}function d(e,t,n,r){return e?void g(e,function(){try{t>=0&&n>t&&"ended"!==r.readyState&&e.remove(t,n),g(e,function(){b.trigger(l["default"].SOURCEBUFFER_REMOVE_COMPLETED,{buffer:e,from:t,to:n})})}catch(o){b.trigger(l["default"].SOURCEBUFFER_REMOVE_COMPLETED,{buffer:e,from:t,to:n,error:new a["default"](o.code,o.message,null)})}}):void b.trigger(l["default"].SOURCEBUFFER_REMOVE_COMPLETED,{buffer:e,from:t,to:n,error:new a["default"](v,y,null)})}function p(e,t){try{"open"===e.readyState?t.abort():t.resetEmbedded&&"ended"===e.readyState&&t.abort()}catch(n){}}function g(e,t){var n=void 0,r=50,o=function(){e.updating||(clearInterval(n),t())},i=function u(){e.updating||(e.removeEventListener("updateend",u,!1),t())};if(!e.updating)return void t();if("function"==typeof e.addEventListener)try{e.addEventListener("updateend",i,!1)}catch(a){n=setInterval(o,r)}else n=setInterval(o,r)}var _=this.context,b=(0,s["default"])(_).getInstance(),E=e.textController,T=void 0;return T={append:f,remove:d,abort:p,createSourceBuffer:t,removeSourceBuffer:n,getBufferRange:r,getAllRanges:o,getTotalBufferedTime:i,getBufferLength:u,getRangeDifference:c}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(108),a=r(i),u=n(12),s=r(u),c=n(14),l=r(c),f=n(2),d=r(f),p=22,h=1,v=2,m="buffer or chunk is not defined",y="buffer is not defined";o.__dashjs_factory_name="SourceBufferController";var g=d["default"].getSingletonFactory(o);g.QUOTA_EXCEEDED_ERROR_CODE=p,d["default"].updateSingletonFactory(o.__dashjs_factory_name,g),t["default"]=g,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(t,n){var r,o=t.match(u);if(o){try{r=f[o[1]](c).create({eventBus:e.eventBus,metricsConstants:e.metricsConstants}),r.initialize(o[1],n,o[3],o[5])}catch(a){r=null,i("MetricsHandlerFactory: Could not create handler for type "+o[1]+" with args "+o[3]+", "+o[5]+" ("+a.message+")")}return r}}function n(e,t){f[e]=t}function r(e){delete f[e]}e=e||{};var o=void 0,i=e.log,u=/([a-zA-Z]*)(\(([0-9]*)(\,\s*([a-zA-Z]*))?\))?/,c=this.context,f={BufferLevel:a["default"],DVBErrors:s["default"],HttpList:l["default"],PlayList:d["default"],RepSwitchList:d["default"],TcpList:d["default"]};return o={create:t,register:n,unregister:r}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(958),a=r(i),u=n(959),s=r(u),c=n(961),l=r(c),f=n(960),d=r(f);o.__dashjs_factory_name="MetricsHandlerFactory",t["default"]=dashjs.FactoryMaker.getSingletonFactory(o),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(e,t){var n=void 0;try{n=o[e.schemeIdUri](i).create({metricsConstants:s}),n.initialize(e,t)}catch(r){n=null,u("ReportingFactory: could not create Reporting with schemeIdUri "+e.schemeIdUri+" ("+r.message+")")}return n}function n(e,t){o[e]=t}function r(e){delete o[e]}e=e||{};var o={"urn:dvb:dash:reporting:2014":a["default"]},i=this.context,u=e.log,s=e.metricsConstants,c=void 0;return c={create:t,register:n,unregister:r}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(962),a=r(i);o.__dashjs_factory_name="ReportingFactory",t["default"]=dashjs.FactoryMaker.getSingletonFactory(o),e.exports=t["default"]},function(e,t){"use strict";function n(){return{reconstructFullMetricName:function(e,t,n){var r=e;return t&&(r+="("+t,n&&n.length&&(r+=","+n),r+=")"),r},validateN:function(e){if(!e)throw new Error("missing n");if(isNaN(e))throw new Error("n is NaN");if(e<0)throw new Error("n must be positive");return e}}}Object.defineProperty(t,"__esModule",{value:!0}),n.__dashjs_factory_name="HandlerHelpers",t["default"]=dashjs.FactoryMaker.getSingletonFactory(n),e.exports=t["default"]},function(e,t,n){
"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(){function e(){var e,t;De=[],ke=!1,Me=!0,Fe=!0,Je=l["default"].ABR_STRATEGY_DYNAMIC,Ze=!0,tt=!1,He={enabled:!0,ttl:p},qe={enabled:!0,ttl:h},Le=d,je=void 0,Ue=y,Be=g,Ve=NaN,Ge=E,We=T,Ke=w,Ye=v,ze=m,Qe=C,et={"default":x},nt=[],rt=l["default"].MOVING_AVERAGE_SLIDING_WINDOW,e={},o(e,s.HTTPRequest.MPD_TYPE,P),o(e,s.HTTPRequest.XLINK_EXPANSION_TYPE,I),o(e,s.HTTPRequest.MEDIA_SEGMENT_TYPE,S),o(e,s.HTTPRequest.INIT_SEGMENT_TYPE,S),o(e,s.HTTPRequest.BITSTREAM_SWITCHING_SEGMENT_TYPE,S),o(e,s.HTTPRequest.INDEX_SEGMENT_TYPE,S),o(e,s.HTTPRequest.OTHER_TYPE,S),Xe=e,t={},o(t,s.HTTPRequest.MPD_TYPE,R),o(t,s.HTTPRequest.XLINK_EXPANSION_TYPE,A),o(t,s.HTTPRequest.MEDIA_SEGMENT_TYPE,O),o(t,s.HTTPRequest.INIT_SEGMENT_TYPE,O),o(t,s.HTTPRequest.BITSTREAM_SWITCHING_SEGMENT_TYPE,O),o(t,s.HTTPRequest.INDEX_SEGMENT_TYPE,O),o(t,s.HTTPRequest.OTHER_TYPE,O),$e=t}function t(e){Je=e}function n(){return Je}function r(e){Ze=e}function i(){return Ze}function a(e){var t=void 0;for(t=0;t<nt.length;t++)if(nt[t].rulename===e)return t;return-1}function u(){return nt}function c(e,t,n){var r=a(t);r===-1?nt.push({type:e,rulename:t,rule:n}):(nt[r].type=e,nt[r].rule=n)}function f(e){var t=a(e);t!==-1&&nt.splice(t,1)}function N(){nt=[]}function M(e){Ye=e}function k(){return Ye}function D(e){ze=e}function L(){return ze}function j(e){Ve=e}function F(){return isNaN(Ve)?tt?b:_:Ve}function U(e){Ge=e}function B(){return Ge}function H(e){We=e}function q(){return We}function V(e){Ke=e}function G(){return Ke}function W(e){Ue=e}function K(){return Ue}function Y(e,t){He.enabled=e,void 0===t||isNaN(t)||"number"!=typeof t||(He.ttl=t)}function z(){return He}function X(e,t){qe.enabled=e,void 0===t||isNaN(t)||"number"!=typeof t||(qe.ttl=t)}function $(){return qe}function Q(e){Be=e}function J(){return Be}function Z(e){Xe[s.HTTPRequest.MEDIA_SEGMENT_TYPE]=e}function ee(e){Xe[s.HTTPRequest.MPD_TYPE]=e}function te(e,t){Xe[e]=t}function ne(){return Xe[s.HTTPRequest.MEDIA_SEGMENT_TYPE]}function re(){return Xe[s.HTTPRequest.MPD_TYPE]}function oe(e){return Xe[e]}function ie(e){$e[s.HTTPRequest.MEDIA_SEGMENT_TYPE]=e}function ae(e){$e[s.HTTPRequest.MPD_TYPE]=e}function ue(e,t){$e[e]=t}function se(){return $e[s.HTTPRequest.MEDIA_SEGMENT_TYPE]}function ce(){return $e[s.HTTPRequest.MPD_TYPE]}function le(e){return $e[e]}function fe(e){Qe=e}function de(){return Qe}function pe(e){Fe=e}function he(){return Fe}function ve(e){Le=e}function me(e){je=e}function ye(){return Le}function ge(){return je}function _e(e){Me=e}function be(){return Me}function Ee(e){ke=e}function Te(){return ke}function we(e){De=e}function Se(){return De}function Oe(e,t){e?et[e]=!!t:Object.keys(et).forEach(function(e){Oe(e,t)})}function Pe(e){var t=et[e];return void 0===t?et["default"]:t}function Re(){return tt}function Ie(e){tt=e}function Ae(e){rt=e}function Ce(){return rt}function xe(){}var 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,$e=void 0,Qe=void 0,Je=void 0,Ze=void 0,et=void 0,tt=void 0,nt=void 0,rt=void 0;return Ne={setABRStrategy:t,getABRStrategy:n,setUseDefaultABRRules:r,getUseDefaultABRRules:i,getABRCustomRules:u,addABRCustomRule:c,removeABRCustomRule:f,removeAllABRCustomRule:N,setBandwidthSafetyFactor:M,getBandwidthSafetyFactor:k,setAbandonLoadTimeout:D,getAbandonLoadTimeout:L,setLastBitrateCachingInfo:Y,getLastBitrateCachingInfo:z,setLastMediaSettingsCachingInfo:X,getLastMediaSettingsCachingInfo:$,setStableBufferTime:j,getStableBufferTime:F,setBufferTimeAtTopQuality:U,getBufferTimeAtTopQuality:B,setBufferTimeAtTopQualityLongForm:H,getBufferTimeAtTopQualityLongForm:q,setLongFormContentDurationThreshold:V,getLongFormContentDurationThreshold:G,setBufferToKeep:W,getBufferToKeep:K,setBufferPruningInterval:Q,getBufferPruningInterval:J,setFragmentRetryAttempts:Z,getFragmentRetryAttempts:ne,setManifestRetryAttempts:ee,getManifestRetryAttempts:re,setRetryAttemptsForType:te,getRetryAttemptsForType:oe,setFragmentRetryInterval:ie,getFragmentRetryInterval:se,setManifestRetryInterval:ae,getManifestRetryInterval:ce,setRetryIntervalForType:ue,getRetryIntervalForType:le,setWallclockTimeUpdateInterval:fe,getWallclockTimeUpdateInterval:de,setScheduleWhilePaused:pe,getScheduleWhilePaused:he,getUseSuggestedPresentationDelay:Te,setUseSuggestedPresentationDelay:Ee,setLiveDelayFragmentCount:ve,getLiveDelayFragmentCount:ye,getLiveDelay:ge,setLiveDelay:me,setUseManifestDateHeaderTimeSource:_e,getUseManifestDateHeaderTimeSource:be,setUTCTimingSources:we,getUTCTimingSources:Se,setXHRWithCredentialsForType:Oe,getXHRWithCredentialsForType:Pe,setFastSwitchEnabled:Ie,getFastSwitchEnabled:Re,setMovingAverageMethod:Ae,getMovingAverageMethod:Ce,reset:xe},e(),Ne}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),u=r(a),s=n(45),c=n(24),l=r(c),f={scheme:"urn:mpeg:dash:utc:http-xsdate:2014",value:"http://time.akamai.com/?iso"},d=4,p=36e4,h=36e4,v=.9,m=1e4,y=30,g=30,_=12,b=20,E=30,T=60,w=600,S=3,O=1e3,P=3,R=500,I=1,A=500,C=50,x=!1;i.__dashjs_factory_name="MediaPlayerModel";var N=u["default"].getSingletonFactory(i);N.DEFAULT_UTC_TIMING_SOURCE=f,u["default"].updateSingletonFactory(i.__dashjs_factory_name,N),t["default"]=N,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){function e(){u=new a["default"],s=[],c=!1}function t(){return u}function n(){return s}function r(){return c}function o(e){function t(e,t,n,r){var o=r[0].split(/[=]/);return r.push({key:o[0],value:o[1]}),r.shift(),r}function n(e,t,n){return t>0&&(f&&0===s.length?s=n[t].split(/[&]/):d&&(r=n[t].split(/[&]/))),n}if(!e)return null;var r=[],o=void 0,i=new RegExp(/[?]/),a=new RegExp(/[#]/),l=new RegExp(/^(https:)?\/\//i),f=i.test(e),d=a.test(e);return c=l.test(e),o=e.split(/[?#]/).map(n),s.length>0&&(s=s.reduce(t,null)),r.length>0&&(r=r.reduce(t,null),r.forEach(function(e){u[e.key]=e.value})),e}var i=void 0,u=void 0,s=void 0,c=void 0;return i={initialize:e,parseURI:o,getURIFragmentData:t,getURIQueryData:n,isManifestHTTPS:r}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1028),a=r(i),u=n(2),s=r(u);o.__dashjs_factory_name="URIQueryAndFragmentModel",t["default"]=s["default"].getSingletonFactory(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(e,t){var n=0;for(n=0;n<this.customTimeRangeArray.length&&e>this.customTimeRangeArray[n].start;n++);for(this.customTimeRangeArray.splice(n,0,{start:e,end:t}),n=0;n<this.customTimeRangeArray.length-1;n++)this.mergeRanges(n,n+1)&&n--;this.length=this.customTimeRangeArray.length}function t(){this.customTimeRangeArray=[],this.length=0}function n(e,t){for(var n=0;n<this.customTimeRangeArray.length;n++)if(e<=this.customTimeRangeArray[n].start&&t>=this.customTimeRangeArray[n].end)this.customTimeRangeArray.splice(n,1),n--;else{if(e>this.customTimeRangeArray[n].start&&t<this.customTimeRangeArray[n].end){this.customTimeRangeArray.splice(n+1,0,{start:t,end:this.customTimeRangeArray[n].end}),this.customTimeRangeArray[n].end=e;break}e>this.customTimeRangeArray[n].start&&e<this.customTimeRangeArray[n].end?this.customTimeRangeArray[n].end=e:t>this.customTimeRangeArray[n].start&&t<this.customTimeRangeArray[n].end&&(this.customTimeRangeArray[n].start=t)}this.length=this.customTimeRangeArray.length}function r(e,t){var n=this.customTimeRangeArray[e],r=this.customTimeRangeArray[t];return n.start<=r.start&&r.start<=n.end&&n.end<=r.end?(n.end=r.end,this.customTimeRangeArray.splice(t,1),!0):r.start<=n.start&&n.start<=r.end&&r.end<=n.end?(n.start=r.start,this.customTimeRangeArray.splice(t,1),!0):r.start<=n.start&&n.start<=r.end&&n.end<=r.end?(this.customTimeRangeArray.splice(e,1),!0):n.start<=r.start&&r.start<=n.end&&r.end<=n.end&&(this.customTimeRangeArray.splice(t,1),!0)}function o(e){var t=null!==e&&!isNaN(e)&&e%1===0;if(!t)throw new Error("index argument is not an integer")}function i(e){return o(e),e>=this.customTimeRangeArray.length||e<0?NaN:this.customTimeRangeArray[e].start}function a(e){return o(e),e>=this.customTimeRangeArray.length||e<0?NaN:this.customTimeRangeArray[e].end}var u=[],s=0;return{customTimeRangeArray:u,length:s,add:e,clear:t,remove:n,mergeRanges:r,start:i,end:a}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=r(i);o.__dashjs_factory_name="CustomTimeRanges",t["default"]=a["default"].getClassFactory(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(e){f.trigger(s["default"].ERROR,{error:"capability",event:e})}function t(e,t,n){f.trigger(s["default"].ERROR,{error:"download",event:{id:e,url:t,request:n}})}function n(e,t,n,r){f.trigger(s["default"].ERROR,{error:"manifestError",event:{message:e,id:t,manifest:n,event:r}})}function r(e,t,n){f.trigger(s["default"].ERROR,{error:"cc",event:{message:e,id:t,cc:n}})}function o(e){f.trigger(s["default"].ERROR,{error:"mediasource",event:e})}function i(e){f.trigger(s["default"].ERROR,{error:"key_session",event:e})}function u(e){f.trigger(s["default"].ERROR,{error:"key_message",event:e})}var c=void 0,l=this.context,f=(0,a["default"])(l).getInstance();return c={capabilityError:e,downloadError:t,manifestError:n,timedTextError:r,mediaSourceError:o,mediaKeySessionError:i,mediaKeyMessageError:u}}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),f="mediasource",d="mediakeys",p="manifest",h="SIDX",v="content",m="initialization",y="xlink",g="codec",_="parse",b="nostreams",E="parse";o.__dashjs_factory_name="ErrorHandler";var T=l["default"].getSingletonFactory(o);T.CAPABILITY_ERROR_MEDIASOURCE=f,T.CAPABILITY_ERROR_MEDIAKEYS=d,T.DOWNLOAD_ERROR_ID_MANIFEST=p,T.DOWNLOAD_ERROR_ID_SIDX=h,T.DOWNLOAD_ERROR_ID_CONTENT=v,T.DOWNLOAD_ERROR_ID_INITIALIZATION=m,T.DOWNLOAD_ERROR_ID_XLINK=y,T.MANIFEST_ERROR_ID_CODEC=g,T.MANIFEST_ERROR_ID_PARSE=_,T.MANIFEST_ERROR_ID_NOSTREAMS=b,T.TIMED_TEXT_ERROR_ID_PARSE=E,l["default"].updateSingletonFactory(o.__dashjs_factory_name,T),t["default"]=T,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){function e(e,t){return(0,s["default"])(e,t)}var t=void 0;return t={areEqual:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=r(i),u=n(1038),s=r(u);o.__dashjs_factory_name="ObjectUtils",t["default"]=a["default"].getSingletonFactory(o),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(24),c=r(s),l=n(159),f=r(l),d=function(e){function t(e,n){o(this,t),u(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.url=e||null,this.type=n||null,this.mediaType=c["default"].STREAM,this.responseType=c["default"].TEXT}return i(t,e),t}(f["default"]);t["default"]=d,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 i(){n(this,i),this.start=null,this.mstart=null,this.starttype=null,this.trace=[]};r.INITIAL_PLAYOUT_START_REASON="initial_playout",r.SEEK_START_REASON="seek",r.RESUME_FROM_PAUSE_START_REASON="resume",r.METRICS_COLLECTION_START_REASON="metrics_collection_start";var o=function a(){n(this,a),this.representationid=null,this.subreplevel=null,this.start=null,this.mstart=null,this.duration=null,this.playbackspeed=null,this.stopreason=null};o.REPRESENTATION_SWITCH_STOP_REASON="representation_switch",o.REBUFFERING_REASON="rebuffering",o.USER_REQUEST_STOP_REASON="user_request",o.END_OF_PERIOD_STOP_REASON="end_of_period",o.END_OF_CONTENT_STOP_REASON="end_of_content",o.METRICS_COLLECTION_STOP_REASON="metrics_collection_end",o.FAILURE_STOP_REASON="failure",t.PlayList=r,t.PlayListTrace=o},function(e,t,n){"use strict";var r=n(62),o={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:r}},registerDefault:function(){}};e.exports=o},function(e,t){"use strict";function n(e){try{e.focus()}catch(t){}}e.exports=n},function(e,t){"use strict";function n(e){if(e=e||("undefined"!=typeof document?document:void 0),"undefined"==typeof e)return null;try{return e.activeElement||e.body}catch(t){return e.body}}e.exports=n},function(e,t,n){t.generateISD=n(1058).generateISD,t.fromXML=n(1056).fromXML,t.renderHTML=n(1057).render},function(e,t,n){!function(e){var t=/#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})?/,n=/rgb\((\d+),(\d+),(\d+)\)/,r=/rgba\((\d+),(\d+),(\d+),(\d+)\)/,o={transparent:[0,0,0,0],black:[0,0,0,255],silver:[192,192,192,255],gray:[128,128,128,255],white:[255,255,255,255],maroon:[128,0,0,255],red:[255,0,0,255],purple:[128,0,128,255],fuchsia:[255,0,255,255],magenta:[255,0,255,255],green:[0,128,0,255],lime:[0,255,0,255],olive:[128,128,0,255],yellow:[255,255,0,255],navy:[0,0,128,255],blue:[0,0,255,255],teal:[0,128,128,255],aqua:[0,255,255,255],cyan:[0,255,255,255]};e.parseColor=function(e){var i,a=null;return e in o?a=o[e]:null!==(i=t.exec(e))?a=[parseInt(i[1],16),parseInt(i[2],16),parseInt(i[3],16),void 0!==i[4]?parseInt(i[4],16):255]:null!==(i=n.exec(e))?a=[parseInt(i[1]),parseInt(i[2]),parseInt(i[3]),255]:null!==(i=r.exec(e))&&(a=[parseInt(i[1]),parseInt(i[2]),parseInt(i[3]),parseInt(i[4])]),a};var i=/^((?:\+|\-)?\d*(?:\.\d+)?)(px|em|c|%)$/;e.parseLength=function(e){var t,n=null;return null!==(t=i.exec(e))&&(n={value:parseFloat(t[1]),unit:t[2]}),n}}(t)},function(e,t,n){"use strict";var r=function(e,t,n,r,o,i,a,u){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,u],l=0;s=new Error(t.replace(/%s/g,function(){return c[l++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}};e.exports=r},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){var r=n(166),o=n(53),i=r(o,"Map");e.exports=i},function(e,t,n){var r=n(166),o=n(53),i=r(o,"Set");e.exports=i},function(e,t,n){var r=n(53),o=r.Uint8Array;e.exports=o},function(e,t,n){var r=n(166),o=n(53),i=r(o,"WeakMap");e.exports=i},function(e,t){function n(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}e.exports=n},function(e,t,n){function r(e,t){return!!e.length&&o(e,t,0)>-1}var o=n(534);e.exports=r},function(e,t){function n(e,t,n){for(var r=-1,o=e.length;++r<o;)if(n(t,e[r]))return!0;return!1}e.exports=n},function(e,t){function n(e,t){for(var n=-1,r=e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}e.exports=n},function(e,t,n){function r(e,t,n){(void 0===n||o(e[t],n))&&("number"!=typeof t||void 0!==n||t in e)||(e[t]=n)}var o=n(204);e.exports=r},function(e,t){function n(e,t,n){if("function"!=typeof e)throw new TypeError(r);return setTimeout(function(){e.apply(void 0,n)},t)}var r="Expected a function";e.exports=n},function(e,t){function n(e,t,n){for(var r=e.length,o=n?r:-1;n?o--:++o<r;)if(t(e[o],o,e))return o;return-1}e.exports=n},function(e,t,n){var r=n(547),o=r();e.exports=o},function(e,t,n){function r(e,t){return e&&o(e,t,i)}var o=n(531),i=n(54);e.exports=r},function(e,t,n){var r=n(547),o=r(!0);e.exports=o},function(e,t,n){function r(e,t){return o(t,function(t){return i(e[t])})}var o=n(522),i=n(83);e.exports=r},function(e,t,n){function r(e,t,n){var r=t(e);return i(e)?r:o(r,n(e))}var o=n(247),i=n(27);e.exports=r},function(e,t,n){function r(e,t,n){if(t!==t)return o(e,n);for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var o=n(1121);e.exports=r},function(e,t){function n(e){return r(Object(e))}var r=Object.keys;e.exports=n},function(e,t,n){function r(e,t){return e=Object(e),o(t,function(t,n){return n in e&&(t[n]=e[n]),t},{})}var o=n(349);e.exports=r},function(e,t,n){function r(e,t){for(var n=-1,r=o(e),i=r.length,a={};++n<i;){var u=r[n],s=e[u];t(s,u)&&(a[u]=s)}return a}var o=n(553);e.exports=r},function(e,t){function n(e){return function(t){return null==t?void 0:t[e]}}e.exports=n},function(e,t,n){var r=n(205),o=n(560),i=o?function(e,t){return o.set(e,t),e}:r;e.exports=i},function(e,t){function n(e){return function(t){return e(t)}}e.exports=n},function(e,t,n){function r(e,t,n,r){return i(e,t,n(o(e,t)),r)}var o=n(249),i=n(356);e.exports=r},function(e,t,n){function r(e,t){return o(t,function(t){return e[t]})}var o=n(110);e.exports=r},function(e,t){function n(e,t){return e.has(t)}e.exports=n},function(e,t,n){function r(e){return"function"==typeof e?e:o}var o=n(205);e.exports=r},function(e,t){function n(e,t,n,o){for(var i=-1,a=e.length,u=n.length,s=-1,c=t.length,l=r(a-u,0),f=Array(c+l),d=!o;++s<c;)f[s]=t[s];for(;++i<u;)(d||i<a)&&(f[n[i]]=e[i]);for(;l--;)f[s++]=e[i++];return f}var r=Math.max;e.exports=n},function(e,t){function n(e,t,n,o){for(var i=-1,a=e.length,u=-1,s=n.length,c=-1,l=t.length,f=r(a-s,0),d=Array(f+l),p=!o;++i<f;)d[i]=e[i];for(var h=i;++c<l;)d[h+c]=t[c];for(;++u<s;)(p||i<a)&&(d[h+n[u]]=e[i++]);return d}var r=Math.max;e.exports=n},function(e,t){function n(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),u=a.length;u--;){var s=a[e?u:++o];if(n(i[s],s,i)===!1)break}return t}}e.exports=n},function(e,t,n){function r(e,t,n,_,b,E,T,w,S,O){function P(){for(var p=arguments.length,h=Array(p),v=p;v--;)h[v]=arguments[v];if(C)var m=c(P),y=a(h,m);if(_&&(h=o(h,_,b,C)),E&&(h=i(h,E,T,C)),p-=y,C&&p<O){var g=f(h,m);return s(e,t,r,P.placeholder,n,h,g,w,S,O-p)}var M=I?n:this,k=A?M[e]:e;return p=h.length,w?h=l(h,w):x&&p>1&&h.reverse(),R&&S<p&&(h.length=S),this&&this!==d&&this instanceof P&&(k=N||u(k)),k.apply(M,h)}var R=t&y,I=t&p,A=t&h,C=t&(v|m),x=t&g,N=A?void 0:u(e);return P}var o=n(545),i=n(546),a=n(1103),u=n(251),s=n(550),c=n(165),l=n(1142),f=n(137),d=n(53),p=1,h=2,v=8,m=16,y=128,g=512;e.exports=r},function(e,t,n){function r(e,t){return function(n,r){return o(n,e,t(r),{})}}var o=n(1077);e.exports=r},function(e,t,n){function r(e,t,n,r,d,p,h,v,m,y){var g=t&c,_=g?h:void 0,b=g?void 0:h,E=g?p:void 0,T=g?void 0:p;t|=g?l:f,t&=~(g?f:l),t&s||(t&=~(a|u));var w=[e,t,d,E,_,T,b,v,m,y],S=n.apply(void 0,w);return o(e)&&i(S,w),S.placeholder=r,S}var o=n(557),i=n(562),a=1,u=2,s=4,c=8,l=32,f=64;e.exports=r},function(e,t,n){function r(e){return function(t){var n=i(t);return n==s?a(t):n==c?u(t):o(t,e(t))}}var o=n(1089),i=n(253),a=n(361),u=n(1145),s="[object Map]",c="[object Set]";e.exports=r},function(e,t,n){function r(e,t,n,r,s,c){var l=s&u,f=e.length,d=t.length;if(f!=d&&!(l&&d>f))return!1;var p=c.get(e);if(p)return p==t;var h=-1,v=!0,m=s&a?new o:void 0;for(c.set(e,t);++h<f;){var y=e[h],g=t[h];if(r)var _=l?r(g,y,h,t,e,c):r(y,g,h,e,t,c);if(void 0!==_){if(_)continue;v=!1;break}if(m){if(!i(t,function(e,t){if(!m.has(t)&&(y===e||n(y,e,r,s,c)))return m.add(t)})){v=!1;break}}else if(y!==g&&!n(y,g,r,s,c)){v=!1;break}}return c["delete"](e),v}var o=n(347),i=n(525),a=1,u=2;e.exports=r},function(e,t,n){function r(e){return o(e,a,i)}var o=n(533),i=n(1115),a=n(71);e.exports=r},function(e,t,n){function r(e){for(var t=e.name+"",n=o[t],r=a.call(o,t)?n.length:0;r--;){var i=n[r],u=i.func;if(null==u||u==e)return i.name}return t}var o=n(1141),i=Object.prototype,a=i.hasOwnProperty;e.exports=r},function(e,t,n){function r(e,t,n){t=s(t,e)?[t]:o(t);for(var r,d=-1,p=t.length;++d<p;){var h=f(t[d]);if(!(r=null!=e&&n(e,h)))break;e=e[h]}if(r)return r;var p=e?e.length:0;return!!p&&c(p)&&u(h,p)&&(a(e)||l(e)||i(e))}var o=n(163),i=n(206),a=n(27),u=n(167),s=n(111),c=n(260),l=n(169),f=n(70);e.exports=r},function(e,t,n){function r(e){var t=e?e.length:void 0;return u(t)&&(a(e)||s(e)||i(e))?o(t,String):null}var o=n(1088),i=n(206),a=n(27),u=n(260),s=n(169);e.exports=r},function(e,t,n){function r(e){var t=a(e),n=u[t];if("function"!=typeof n||!(t in o.prototype))return!1;if(e===n)return!0;var r=i(n);return!!r&&e===r[0]}var o=n(344),i=n(359),a=n(554),u=n(1221);e.exports=r},function(e,t,n){function r(e){return e===e&&!o(e)}var o=n(39);e.exports=r},function(e,t){function n(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}e.exports=n},function(e,t,n){var r=n(521),o=r&&new r;e.exports=o},function(e,t,n){function r(e,t){return 1==t.length?e:o(e,i(t,0,-1))}var o=n(249),i=n(357);e.exports=r},function(e,t,n){var r=n(539),o=n(577),i=150,a=16,u=function(){var e=0,t=0;return function(n,u){var s=o(),c=a-(s-t);if(t=s,c>0){if(++e>=i)return n}else e=0;return r(n,u)}}();e.exports=u},function(e,t,n){var r=n(574),o=n(1213),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]/g,a=/\\(\\)?/g,u=r(function(e){var t=[];return o(e).replace(i,function(e,n,r,o){t.push(r?o.replace(a,"$1"):n||e)}),t});e.exports=u},function(e,t){function n(e){if(null!=e){try{return r.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var r=Function.prototype.toString;e.exports=n},function(e,t,n){var r=n(199),o=n(136),i=n(164),a=n(97),u=n(203),s=n(71),c=Object.prototype,l=c.propertyIsEnumerable,f=!l.call({valueOf:1},"valueOf"),d=i(function(e,t){if(f||u(t)||a(t))return void o(t,s(t),e);for(var n in t)r(e,n,t[n])});e.exports=d},function(e,t,n){function r(e,t){var n;if("function"!=typeof t)throw new TypeError(i);return e=o(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var o=n(99),i="Expected a function";e.exports=r},function(e,t){function n(e){return function(){return e}}e.exports=n},function(e,t,n){function r(e,t,n){t=n?void 0:t;var a=o(e,i,void 0,void 0,void 0,void 0,void 0,t);return a.placeholder=r.placeholder,a}var o=n(96),i=8;r.placeholder={},e.exports=r},function(e,t,n){function r(e,t,n,r){var a=e?e.length:0;return a?(n&&"number"!=typeof n&&i(e,t,n)&&(n=0,r=a),o(e,t,n,r)):[]}var o=n(1074),i=n(255);e.exports=r},function(e,t,n){function r(e,t){return o(e,a(t,3),i,!0)}var o=n(352),i=n(135),a=n(34);e.exports=r},function(e,t,n){function r(e,t){return null!=e&&i(e,t,o)}var o=n(1076),i=n(555);e.exports=r},function(e,t,n){function r(e){return i(e)&&o(e)}var o=n(97),i=n(113);e.exports=r},function(e,t,n){(function(e){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=n(567),i=n(53),a={"function":!0,object:!0},u=a[r(t)]&&t&&!t.nodeType?t:void 0,s=a[r(e)]&&e&&!e.nodeType?e:void 0,c=s&&s.exports===u?u:void 0,l=c?i.Buffer:void 0,f=l?function(e){return e instanceof l}:o(!1);e.exports=f}).call(t,n(64)(e))},function(e,t,n){function r(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(i);var n=function a(){var n=arguments,r=t?t.apply(this,n):n[0],o=a.cache;if(o.has(r))return o.get(r);var i=e.apply(this,n);return a.cache=o.set(r,i),i};return n.cache=new(r.Cache||o),n}var o=n(346),i="Expected a function";r.Cache=o,e.exports=r},function(e,t,n){var r=n(355),o=n(164),i=o(function(e,t,n,o){r(e,t,n,o)});e.exports=i},function(e,t){function n(){}e.exports=n},function(e,t){var n=Date.now;e.exports=n},function(e,t,n){var r=n(96),o=n(165),i=n(137),a=n(40),u=32,s=a(function(e,t){var n=i(t,o(s));return r(e,u,void 0,t,n)});s.placeholder={},e.exports=s},function(e,t,n){var r=n(200),o=n(96),i=n(40),a=256,u=i(function(e,t){return o(e,a,void 0,void 0,void 0,r(t,1))});e.exports=u},function(e,t,n){function r(e,t){if("function"!=typeof e)throw new TypeError(c);return t=void 0===t?0:l(s(t),0),u(function(n){var r=n[t],u=a(n,0,t);return r&&i(u,r),o(e,this,u)})}var o=n(109),i=n(247),a=n(1093),u=n(40),s=n(99),c="Expected a function",l=Math.max;e.exports=r},function(e,t,n){var r=n(551),o=n(71),i=r(o);e.exports=i},function(e,t,n){function r(e){return e&&e.length?o(e):[]}var o=n(1091);e.exports=r},function(e,t,n){function r(e,t){for(var n,r=[],o=0,i=0,a="",u=t&&t.delimiter||"/";null!=(n=_.exec(e));){var l=n[0],f=n[1],d=n.index;if(a+=e.slice(i,d),i=d+l.length,f)a+=f[1];else{var p=e[i],h=n[2],v=n[3],m=n[4],y=n[5],g=n[6],b=n[7];a&&(r.push(a),a="");var E=null!=h&&null!=p&&p!==h,T="+"===g||"*"===g,w="?"===g||"*"===g,S=n[2]||u,O=m||y;r.push({name:v||o++,prefix:h||"",delimiter:S,optional:w,repeat:T,partial:E,asterisk:!!b,pattern:O?c(O):b?".*":"[^"+s(S)+"]+?"})}}return i<e.length&&(a+=e.substr(i)),a&&r.push(a),r}function o(e,t){return u(r(e,t))}function i(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function a(e){return encodeURI(e).replace(/[?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function u(e){for(var t=new Array(e.length),n=0;n<e.length;n++)"object"===y(e[n])&&(t[n]=new RegExp("^(?:"+e[n].pattern+")$"));return function(n,r){for(var o="",u=n||{},s=r||{},c=s.pretty?i:encodeURIComponent,l=0;l<e.length;l++){var f=e[l];if("string"!=typeof f){var d,p=u[f.name];if(null==p){if(f.optional){f.partial&&(o+=f.prefix);continue}throw new TypeError('Expected "'+f.name+'" to be defined')}if(g(p)){if(!f.repeat)throw new TypeError('Expected "'+f.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(f.optional)continue;throw new TypeError('Expected "'+f.name+'" to not be empty')}for(var h=0;h<p.length;h++){if(d=c(p[h]),!t[l].test(d))throw new TypeError('Expected all "'+f.name+'" to match "'+f.pattern+'", but received `'+JSON.stringify(d)+"`");o+=(0===h?f.prefix:f.delimiter)+d}}else{if(d=f.asterisk?a(p):c(p),!t[l].test(d))throw new TypeError('Expected "'+f.name+'" to match "'+f.pattern+'", but received "'+d+'"');o+=f.prefix+d}}else o+=f}return o}}function s(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function l(e,t){return e.keys=t,e}function f(e){return e.sensitive?"":"i"}function d(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return l(e,t)}function p(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(m(e[o],t,n).source);var i=new RegExp("(?:"+r.join("|")+")",f(n));return l(i,t)}function h(e,t,n){return v(r(e,n),t,n)}function v(e,t,n){g(t)||(n=t||n,t=[]),n=n||{};for(var r=n.strict,o=n.end!==!1,i="",a=0;a<e.length;a++){var u=e[a];if("string"==typeof u)i+=s(u);else{var c=s(u.prefix),d="(?:"+u.pattern+")";t.push(u),u.repeat&&(d+="(?:"+c+d+")*"),d=u.optional?u.partial?c+"("+d+")?":"(?:"+c+"("+d+"))?":c+"("+d+")",i+=d}}var p=s(n.delimiter||"/"),h=i.slice(-p.length)===p;return r||(i=(h?i.slice(0,-p.length):i)+"(?:"+p+"(?=$))?"),i+=o?"$":r&&h?"":"(?="+p+"|$)",l(new RegExp("^"+i,f(n)),t)}function m(e,t,n){return g(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?d(e,t):g(e)?p(e,t,n):h(e,t,n)}var y="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},g=n(1726);e.exports=m,e.exports.parse=r,e.exports.compile=o,e.exports.tokensToFunction=u,e.exports.tokensToRegExp=v;var _=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g")},function(e,t){"use strict";function n(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var r={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},o=["Webkit","ms","Moz","O"];Object.keys(r).forEach(function(e){o.forEach(function(t){r[n(t,e)]=r[e]})});var i={background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}},a={isUnitlessNumber:r,shorthandPropertyExpansions:i};e.exports=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")}var o=n(23),i=n(140),a=(n(11),function(){function e(t){r(this,e),this._callbacks=null,this._contexts=null,this._arg=t}return e.prototype.enqueue=function(e,t){this._callbacks=this._callbacks||[],this._callbacks.push(e),this._contexts=this._contexts||[],this._contexts.push(t)},e.prototype.notifyAll=function(){var e=this._callbacks,t=this._contexts,n=this._arg;if(e&&t){e.length!==t.length?o("24"):void 0,this._callbacks=null,this._contexts=null;for(var r=0;r<e.length;r++)e[r].call(t[r],n);e.length=0,t.length=0}},e.prototype.checkpoint=function(){return this._callbacks?this._callbacks.length:0},e.prototype.rollback=function(e){this._callbacks&&this._contexts&&(this._callbacks.length=e,this._contexts.length=e)},e.prototype.reset=function(){this._callbacks=null,this._contexts=null},e.prototype.destructor=function(){this.reset()},e}());e.exports=i.addPoolingTo(a)},function(e,t,n){"use strict";function r(e){return!!c.hasOwnProperty(e)||!s.hasOwnProperty(e)&&(u.test(e)?(c[e]=!0,!0):(s[e]=!0,!1))}function o(e,t){return null==t||e.hasBooleanValue&&!t||e.hasNumericValue&&isNaN(t)||e.hasPositiveNumericValue&&t<1||e.hasOverloadedBooleanValue&&t===!1}var i=n(172),a=(n(35),n(72),n(1291)),u=(n(16),new RegExp("^["+i.ATTRIBUTE_NAME_START_CHAR+"]["+i.ATTRIBUTE_NAME_CHAR+"]*$")),s={},c={},l={createMarkupForID:function(e){return i.ID_ATTRIBUTE_NAME+"="+a(e)},setAttributeForID:function(e,t){e.setAttribute(i.ID_ATTRIBUTE_NAME,t)},createMarkupForRoot:function(){return i.ROOT_ATTRIBUTE_NAME+'=""'},setAttributeForRoot:function(e){e.setAttribute(i.ROOT_ATTRIBUTE_NAME,"")},createMarkupForProperty:function(e,t){var n=i.properties.hasOwnProperty(e)?i.properties[e]:null;if(n){if(o(n,t))return"";var r=n.attributeName;return n.hasBooleanValue||n.hasOverloadedBooleanValue&&t===!0?r+'=""':r+"="+a(t)}return i.isCustomAttribute(e)?null==t?"":e+"="+a(t):null},createMarkupForCustomAttribute:function(e,t){
return r(e)&&null!=t?e+"="+a(t):""},setValueForProperty:function(e,t,n){var r=i.properties.hasOwnProperty(t)?i.properties[t]:null;if(r){var a=r.mutationMethod;if(a)a(e,n);else{if(o(r,n))return void this.deleteValueForProperty(e,t);if(r.mustUseProperty)e[r.propertyName]=n;else{var u=r.attributeName,s=r.attributeNamespace;s?e.setAttributeNS(s,u,""+n):r.hasBooleanValue||r.hasOverloadedBooleanValue&&n===!0?e.setAttribute(u,""):e.setAttribute(u,""+n)}}}else if(i.isCustomAttribute(t))return void l.setValueForAttribute(e,t,n)},setValueForAttribute:function(e,t,n){if(r(t)){null==n?e.removeAttribute(t):e.setAttribute(t,""+n)}},deleteValueForAttribute:function(e,t){e.removeAttribute(t)},deleteValueForProperty:function(e,t){var n=i.properties.hasOwnProperty(t)?i.properties[t]:null;if(n){var r=n.mutationMethod;if(r)r(e,void 0);else if(n.mustUseProperty){var o=n.propertyName;n.hasBooleanValue?e[o]=!1:e[o]=""}else e.removeAttribute(n.attributeName)}else i.isCustomAttribute(t)&&e.removeAttribute(t)}};e.exports=l},function(e,t){"use strict";var n={hasCachedChildNodes:1};e.exports=n},function(e,t,n){"use strict";function r(){if(this._rootNodeID&&this._wrapperState.pendingUpdate){this._wrapperState.pendingUpdate=!1;var e=this._currentElement.props,t=u.getValue(e);null!=t&&o(this,Boolean(e.multiple),t)}}function o(e,t,n){var r,o,i=s.getNodeFromInstance(e).options;if(t){for(r={},o=0;o<n.length;o++)r[""+n[o]]=!0;for(o=0;o<i.length;o++){var a=r.hasOwnProperty(i[o].value);i[o].selected!==a&&(i[o].selected=a)}}else{for(r=""+n,o=0;o<i.length;o++)if(i[o].value===r)return void(i[o].selected=!0);i.length&&(i[0].selected=!0)}}function i(e){var t=this._currentElement.props,n=u.executeOnChange(t,e);return this._rootNodeID&&(this._wrapperState.pendingUpdate=!0),c.asap(r,this),n}var a=n(29),u=n(382),s=n(35),c=n(84),l=(n(16),!1),f={getHostProps:function(e,t){return a({},t,{onChange:e._wrapperState.onChange,value:void 0})},mountWrapper:function(e,t){var n=u.getValue(t);e._wrapperState={pendingUpdate:!1,initialValue:null!=n?n:t.defaultValue,listeners:null,onChange:i.bind(e),wasMultiple:Boolean(t.multiple)},void 0===t.value||void 0===t.defaultValue||l||(l=!0)},getSelectValueContext:function(e){return e._wrapperState.initialValue},postUpdateWrapper:function(e){var t=e._currentElement.props;e._wrapperState.initialValue=void 0;var n=e._wrapperState.wasMultiple;e._wrapperState.wasMultiple=Boolean(t.multiple);var r=u.getValue(t);null!=r?(e._wrapperState.pendingUpdate=!1,o(e,Boolean(t.multiple),r)):n!==Boolean(t.multiple)&&(null!=t.defaultValue?o(e,Boolean(t.multiple),t.defaultValue):o(e,Boolean(t.multiple),t.multiple?[]:""))}};e.exports=f},function(e,t){"use strict";var n,r={injectEmptyComponentFactory:function(e){n=e}},o={create:function(e){return n(e)}};o.injection=r,e.exports=o},function(e,t){"use strict";var n={logTopLevelRenders:!1};e.exports=n},function(e,t,n){"use strict";function r(e){return s?void 0:a("111",e.type),new s(e)}function o(e){return new l(e)}function i(e){return e instanceof l}var a=n(23),u=n(29),s=(n(11),null),c={},l=null,f={injectGenericComponentClass:function(e){s=e},injectTextComponentClass:function(e){l=e},injectComponentClasses:function(e){u(c,e)}},d={createInternalComponent:r,createInstanceForText:o,isTextComponent:i,injection:f};e.exports=d},function(e,t,n){"use strict";function r(e){return i(document.documentElement,e)}var o=n(1250),i=n(1044),a=n(512),u=n(513),s={hasSelectionCapabilities:function(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&"text"===e.type||"textarea"===t||"true"===e.contentEditable)},getSelectionInformation:function(){var e=u();return{focusedElem:e,selectionRange:s.hasSelectionCapabilities(e)?s.getSelection(e):null}},restoreSelection:function(e){var t=u(),n=e.focusedElem,o=e.selectionRange;t!==n&&r(n)&&(s.hasSelectionCapabilities(n)&&s.setSelection(n,o),a(n))},getSelection:function(e){var t;if("selectionStart"in e)t={start:e.selectionStart,end:e.selectionEnd};else if(document.selection&&e.nodeName&&"input"===e.nodeName.toLowerCase()){var n=document.selection.createRange();n.parentElement()===e&&(t={start:-n.moveStart("character",-e.value.length),end:-n.moveEnd("character",-e.value.length)})}else t=o.getOffsets(e);return t||{start:0,end:0}},setSelection:function(e,t){var n=t.start,r=t.end;if(void 0===r&&(r=n),"selectionStart"in e)e.selectionStart=n,e.selectionEnd=Math.min(r,e.value.length);else if(document.selection&&e.nodeName&&"input"===e.nodeName.toLowerCase()){var i=e.createTextRange();i.collapse(!0),i.moveStart("character",n),i.moveEnd("character",r-n),i.select()}else o.setOffsets(e,t)}};e.exports=s},function(e,t,n){"use strict";function r(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(e.charAt(r)!==t.charAt(r))return r;return e.length===t.length?-1:n}function o(e){return e?e.nodeType===k?e.documentElement:e.firstChild:null}function i(e){return e.getAttribute&&e.getAttribute(x)||""}function a(e,t,n,r,o){var i;if(E.logTopLevelRenders){var a=e._currentElement.props.child,u=a.type;i="React mount: "+("string"==typeof u?u:u.displayName||u.name),console.time(i)}var s=S.mountComponent(e,n,null,_(e,t),o,0);i&&console.timeEnd(i),e._renderedComponent._topLevelWrapper=e,U._mountImageIntoNode(s,t,e,r,n)}function u(e,t,n,r){var o=P.ReactReconcileTransaction.getPooled(!n&&b.useCreateElement);o.perform(a,null,e,t,o,n,r),P.ReactReconcileTransaction.release(o)}function s(e,t,n){for(S.unmountComponent(e,n),t.nodeType===k&&(t=t.documentElement);t.lastChild;)t.removeChild(t.lastChild)}function c(e){var t=o(e);if(t){var n=g.getInstanceFromNode(t);return!(!n||!n._hostParent)}}function l(e){return!(!e||e.nodeType!==M&&e.nodeType!==k&&e.nodeType!==D)}function f(e){var t=o(e),n=t&&g.getInstanceFromNode(t);return n&&!n._hostParent?n:null}function d(e){var t=f(e);return t?t._hostContainerInfo._topLevelWrapper:null}var p=n(23),h=n(171),v=n(172),m=n(174),y=n(266),g=(n(101),n(35)),_=n(1244),b=n(1246),E=n(590),T=n(210),w=(n(72),n(1260)),S=n(173),O=n(385),P=n(84),R=n(197),I=n(600),A=(n(11),n(270)),C=n(391),x=(n(16),v.ID_ATTRIBUTE_NAME),N=v.ROOT_ATTRIBUTE_NAME,M=1,k=9,D=11,L={},j=1,F=function(){this.rootID=j++};F.prototype.isReactComponent={},F.prototype.render=function(){return this.props.child},F.isReactTopLevelWrapper=!0;var U={TopLevelWrapper:F,_instancesByReactRootID:L,scrollMonitor:function(e,t){t()},_updateRootComponent:function(e,t,n,r,o){return U.scrollMonitor(r,function(){O.enqueueElementInternal(e,t,n),o&&O.enqueueCallbackInternal(e,o)}),e},_renderNewRootComponent:function(e,t,n,r){l(t)?void 0:p("37"),y.ensureScrollValueMonitoring();var o=I(e,!1);P.batchedUpdates(u,o,t,n,r);var i=o._instance.rootID;return L[i]=o,o},renderSubtreeIntoContainer:function(e,t,n,r){return null!=e&&T.has(e)?void 0:p("38"),U._renderSubtreeIntoContainer(e,t,n,r)},_renderSubtreeIntoContainer:function(e,t,n,r){O.validateCallback(r,"ReactDOM.render"),m.isValidElement(t)?void 0:p("39","string"==typeof t?" Instead of passing a string like 'div', pass React.createElement('div') or <div />.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or <Foo />.":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,u=m.createElement(F,{child:t});if(e){var s=T.get(e);a=s._processChildContext(s._context)}else a=R;var l=d(n);if(l){var f=l._currentElement,h=f.props.child;if(C(h,t)){var v=l._renderedComponent.getPublicInstance(),y=r&&function(){r.call(v)};return U._updateRootComponent(l,u,a,n,y),v}U.unmountComponentAtNode(n)}var g=o(n),_=g&&!!i(g),b=c(n),E=_&&!l&&!b,w=U._renderNewRootComponent(u,n,E,a)._renderedComponent.getPublicInstance();return r&&r.call(w),w},render:function(e,t,n){return U._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){l(e)?void 0:p("40");var t=d(e);if(!t){c(e),1===e.nodeType&&e.hasAttribute(N);return!1}return delete L[t._instance.rootID],P.batchedUpdates(s,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,i,a){if(l(t)?void 0:p("41"),i){var u=o(t);if(w.canReuseMarkup(e,u))return void g.precacheNode(n,u);var s=u.getAttribute(w.CHECKSUM_ATTR_NAME);u.removeAttribute(w.CHECKSUM_ATTR_NAME);var c=u.outerHTML;u.setAttribute(w.CHECKSUM_ATTR_NAME,s);var f=e,d=r(f,c),v=" (client) "+f.substring(d-20,d+20)+"\n (server) "+c.substring(d-20,d+20);t.nodeType===k?p("42",v):void 0}if(t.nodeType===k?p("43"):void 0,a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else A(t,e),g.precacheNode(n,t.firstChild)}};e.exports=U},function(e,t,n){"use strict";var r=n(23),o=n(174),i=(n(11),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||e===!1?i.EMPTY:o.isValidElement(e)?"function"==typeof e.type?i.COMPOSITE:i.HOST:void r("26",e)}});e.exports=i},function(e,t){"use strict";var n={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){n.currentScrollLeft=e.x,n.currentScrollTop=e.y}};e.exports=n},function(e,t,n){"use strict";function r(e,t){return null==t?o("30"):void 0,null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}var o=n(23);n(11);e.exports=r},function(e,t){"use strict";function n(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}e.exports=n},function(e,t,n){"use strict";function r(e){for(var t;(t=e._renderedNodeType)===o.COMPOSITE;)e=e._renderedComponent;return t===o.HOST?e._renderedComponent:t===o.EMPTY?null:void 0}var o=n(594);e.exports=r},function(e,t,n){"use strict";function r(){return!i&&o.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var o=n(47),i=null;e.exports=r},function(e,t,n){"use strict";function r(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function o(e){return"function"==typeof e&&"undefined"!=typeof e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e,t){var n;if(null===e||e===!1)n=l.create(i);else if("object"===("undefined"==typeof e?"undefined":a(e))){var s=e;!s||"function"!=typeof s.type&&"string"!=typeof s.type?u("130",null==s.type?s.type:a(s.type),r(s._owner)):void 0,"string"==typeof s.type?n=f.createInternalComponent(s):o(s.type)?(n=new s.type(s),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new d(s)}else"string"==typeof e||"number"==typeof e?n=f.createInstanceForText(e):u("131","undefined"==typeof e?"undefined":a(e));return n._mountIndex=0,n._mountImage=null,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(29),c=n(1241),l=n(589),f=n(591),d=(n(1288),n(11),n(16),function(e){this.construct(e)});s(d.prototype,c,{_instantiateReactComponent:i}),e.exports=i},function(e,t){"use strict";function n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!r[e.type]:"textarea"===t}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=n},function(e,t,n){"use strict";var r=n(47),o=n(269),i=n(270),a=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};r.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){return 3===e.nodeType?void(e.nodeValue=t):void i(e,o(t))})),e.exports=a},function(e,t,n){"use strict";function r(e,t){return e&&"object"===("undefined"==typeof e?"undefined":a(e))&&null!=e.key?l.escape(e.key):t.toString(36)}function o(e,t,n,i){var p="undefined"==typeof e?"undefined":a(e);if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===s)return n(i,e,""===t?f+r(e,0):t),1;var h,v,m=0,y=""===t?f:t+d;if(Array.isArray(e))for(var g=0;g<e.length;g++)h=e[g],v=y+r(h,g),m+=o(h,v,n,i);else{var _=c(e);if(_){var b,E=_.call(e);if(_!==e.entries)for(var T=0;!(b=E.next()).done;)h=b.value,v=y+r(h,T++),m+=o(h,v,n,i);else for(;!(b=E.next()).done;){var w=b.value;w&&(h=w[1],v=y+l.escape(w[0])+d+r(h,0),m+=o(h,v,n,i))}}else if("object"===p){var S="",O=String(e);u("31","[object Object]"===O?"object with keys {"+Object.keys(e).join(", ")+"}":O,S)}}return m}function i(e,t,n){return null==e?0:o(e,"",t,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(1256)),c=n(1287),l=(n(11),n(381)),f=(n(16),"."),d=":";e.exports=i},function(e,t){"use strict";t.__esModule=!0,t["default"]={noWobble:{stiffness:170,damping:26},gentle:{stiffness:120,damping:14},wobbly:{stiffness:180,damping:12},stiff:{stiffness:210,damping:20}},e.exports=t["default"]},function(e,t,n){"use strict";t.__esModule=!0;var r=n(0);t["default"]=r.PropTypes.shape({subscribe:r.PropTypes.func.isRequired,dispatch:r.PropTypes.func.isRequired,getState:r.PropTypes.func.isRequired})},function(e,t){"use strict";function n(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(t){}}t.__esModule=!0,t["default"]=n},function(e,t,n){"use strict";function r(e){var t=Function.prototype.toString,n=Object.prototype.hasOwnProperty,r=RegExp("^"+t.call(n).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var o=t.call(e);return r.test(o)}catch(i){return!1}}function o(e){var t=v(e);if(t){var n=t.childIDs;m(e),n.forEach(o)}}function i(e,t,n){return"\n in "+(e||"Unknown")+(t?" (at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+")":n?" (created by "+n+")":"")}function a(e){return null==e?"#empty":"string"==typeof e||"number"==typeof e?"#text":"string"==typeof e.type?e.type:e.type.displayName||e.type.name||"Unknown"}function u(e){var t,n=P.getDisplayName(e),r=P.getElement(e),o=P.getOwnerID(e);return o&&(t=P.getDisplayName(o)),i(n,r&&r._source,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(176),l=n(101),f=(n(11),n(16),"function"==typeof Array.from&&"function"==typeof Map&&r(Map)&&null!=Map.prototype&&"function"==typeof Map.prototype.keys&&r(Map.prototype.keys)&&"function"==typeof Set&&r(Set)&&null!=Set.prototype&&"function"==typeof Set.prototype.keys&&r(Set.prototype.keys));if(f)var d=new Map,p=new Set,h=function(e,t){d.set(e,t)},v=function(e){return d.get(e)},m=function(e){d["delete"](e)},y=function(){return Array.from(d.keys())},g=function(e){p.add(e)},_=function(e){p["delete"](e)},b=function(){return Array.from(p.keys())};else var E={},T={},w=function(e){return"."+e},S=function(e){return parseInt(e.substr(1),10)},h=function(e,t){var n=w(e);E[n]=t},v=function(e){var t=w(e);return E[t]},m=function(e){var t=w(e);delete E[t]},y=function(){return Object.keys(E).map(S)},g=function(e){var t=w(e);T[t]=!0},_=function(e){var t=w(e);delete T[t]},b=function(){return Object.keys(T).map(S)};var O=[],P={onSetChildren:function(e,t){var n=v(e);n?void 0:c("144"),n.childIDs=t;for(var r=0;r<t.length;r++){var o=t[r],i=v(o);i?void 0:c("140"),null==i.childIDs&&"object"===s(i.element)&&null!=i.element?c("141"):void 0,i.isMounted?void 0:c("71"),null==i.parentID&&(i.parentID=e),i.parentID!==e?c("142",o,i.parentID,e):void 0}},onBeforeMountComponent:function(e,t,n){var r={element:t,parentID:n,text:null,childIDs:[],isMounted:!1,updateCount:0};h(e,r)},onBeforeUpdateComponent:function(e,t){var n=v(e);n&&n.isMounted&&(n.element=t)},onMountComponent:function(e){var t=v(e);t?void 0:c("144"),t.isMounted=!0;var n=0===t.parentID;n&&g(e)},onUpdateComponent:function(e){var t=v(e);t&&t.isMounted&&t.updateCount++},onUnmountComponent:function(e){var t=v(e);if(t){t.isMounted=!1;var n=0===t.parentID;n&&_(e)}O.push(e)},purgeUnmountedComponents:function(){if(!P._preventPurging){for(var e=0;e<O.length;e++){var t=O[e];o(t)}O.length=0}},isMounted:function(e){var t=v(e);return!!t&&t.isMounted},getCurrentStackAddendum:function(e){var t="";if(e){var n=a(e),r=e._owner;t+=i(n,e._source,r&&r.getName())}var o=l.current,u=o&&o._debugID;return t+=P.getStackAddendumByID(u)},getStackAddendumByID:function(e){for(var t="";e;)t+=u(e),e=P.getParentID(e);return t},getChildIDs:function(e){var t=v(e);return t?t.childIDs:[]},getDisplayName:function(e){var t=P.getElement(e);return t?a(t):null},getElement:function(e){var t=v(e);return t?t.element:null},getOwnerID:function(e){var t=P.getElement(e);return t&&t._owner?t._owner._debugID:null},getParentID:function(e){var t=v(e);return t?t.parentID:null},getSource:function(e){var t=v(e),n=t?t.element:null,r=null!=n?n._source:null;return r},getText:function(e){var t=P.getElement(e);return"string"==typeof t?t:"number"==typeof t?""+t:null},getUpdateCount:function(e){var t=v(e);return t?t.updateCount:0},getRootIDs:b,getRegisteredIDs:y};e.exports=P},function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103;e.exports=n},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t,n){"use strict";var r=!1;e.exports=r},function(e,t){"use strict";function n(e){var t=e&&(r&&e[r]||e[o]);if("function"==typeof t)return t}var r="function"==typeof Symbol&&Symbol.iterator,o="@@iterator";e.exports=n},function(e,t,n){"use strict";(function(t,r){function o(e){return j.from(e)}function i(e){return j.isBuffer(e)||e instanceof F}function a(e,t,n){return"function"==typeof e.prependListener?e.prependListener(t,n):void(e._events&&e._events[t]?k(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n))}function u(e,t){M=M||n(141),e=e||{},this.objectMode=!!e.objectMode,t instanceof M&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,o=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new V,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(q||(q=n(441).StringDecoder),this.decoder=new q(e.encoding),this.encoding=e.encoding)}function s(e){return M=M||n(141),this instanceof s?(this._readableState=new u(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),void L.call(this)):new s(e)}function c(e,t,n,r,i){var a=e._readableState;if(null===t)a.reading=!1,v(e,a);else{var u;i||(u=f(a,t)),u?e.emit("error",u):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===j.prototype||(t=o(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):l(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?l(e,a,t,!1):g(e,a)):l(e,a,t,!1))):r||(a.reading=!1)}return d(a)}function l(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&m(e)),g(e,t)}function f(e,t){var n;return i(t)||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function d(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}function p(e){return e>=K?e=K:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function h(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=p(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function v(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,m(e)}}function m(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(H("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?N(y,e):y(e))}function y(e){H("emit readable"),e.emit("readable"),S(e)}function g(e,t){t.readingMore||(t.readingMore=!0,N(_,e,t))}function _(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(H("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function b(e){return function(){var t=e._readableState;H("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&D(e,"data")&&(t.flowing=!0,S(e))}}function E(e){H("readable nexttick read 0"),e.read(0)}function T(e,t){t.resumeScheduled||(t.resumeScheduled=!0,N(w,e,t))}function w(e,t){t.reading||(H("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),S(e),t.flowing&&!t.reading&&e.read(0)}function S(e){var t=e._readableState;for(H("flow",t.flowing);t.flowing&&null!==e.read(););}function O(e,t){if(0===t.length)return null;var n;return t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=P(e,t.buffer,t.decoder),n}function P(e,t,n){var r;return e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?R(e,t):I(e,t),r}function R(e,t){var n=t.head,r=1,o=n.data;for(e-=o.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(o+=a===i.length?i:i.slice(0,e),e-=a,0===e){a===i.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(a));break}++r}return t.length-=r,o}function I(e,t){var n=j.allocUnsafe(e),r=t.head,o=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var i=r.data,a=e>i.length?i.length:e;if(i.copy(n,n.length-e,0,a),e-=a,0===e){a===i.length?(++o,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(a));break}++o}return t.length-=o,n}function A(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,N(C,t,e))}function C(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function x(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}var N=n(265);e.exports=s;var M,k=n(517);s.ReadableState=u;var D=(n(341).EventEmitter,function(e,t){return e.listeners(t).length}),L=n(615),j=n(401).Buffer,F=t.Uint8Array||function(){},U=n(195);U.inherits=n(160);var B=n(1728),H=void 0;H=B&&B.debuglog?B.debuglog("stream"):function(){};var q,V=n(1317),G=n(614);U.inherits(s,L);var W=["error","close","destroy","pause","resume"];Object.defineProperty(s.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),s.prototype.destroy=G.destroy,s.prototype._undestroy=G.undestroy,s.prototype._destroy=function(e,t){this.push(null),t(e)},s.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=j.from(e,t),t=""),n=!0),c(this,e,t,!1,n)},s.prototype.unshift=function(e){return c(this,e,null,!0,!1)},s.prototype.isPaused=function(){return this._readableState.flowing===!1},s.prototype.setEncoding=function(e){return q||(q=n(441).StringDecoder),this._readableState.decoder=new q(e),this._readableState.encoding=e,this};var K=8388608;s.prototype.read=function(e){H("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return H("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?A(this):m(this),null;if(e=h(e,t),0===e&&t.ended)return 0===t.length&&A(this),null;var r=t.needReadable;H("need readable",r),(0===t.length||t.length-e<t.highWaterMark)&&(r=!0,H("length less than watermark",r)),t.ended||t.reading?(r=!1,H("reading or ended",r)):r&&(H("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=h(n,t)));var o;return o=e>0?O(e,t):null,null===o?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&A(this)),null!==o&&this.emit("data",o),o},s.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},s.prototype.pipe=function(e,t){function n(e,t){H("onunpipe"),e===d&&t&&t.hasUnpiped===!1&&(t.hasUnpiped=!0,i())}function o(){H("onend"),e.end()}function i(){H("cleanup"),e.removeListener("close",c),e.removeListener("finish",l),e.removeListener("drain",m),e.removeListener("error",s),e.removeListener("unpipe",n),d.removeListener("end",o),d.removeListener("end",f),d.removeListener("data",u),y=!0,!p.awaitDrain||e._writableState&&!e._writableState.needDrain||m()}function u(t){H("ondata"),g=!1;var n=e.write(t);!1!==n||g||((1===p.pipesCount&&p.pipes===e||p.pipesCount>1&&x(p.pipes,e)!==-1)&&!y&&(H("false write response, pause",d._readableState.awaitDrain),d._readableState.awaitDrain++,g=!0),d.pause())}function s(t){H("onerror",t),f(),e.removeListener("error",s),0===D(e,"error")&&e.emit("error",t)}function c(){e.removeListener("finish",l),f()}function l(){H("onfinish"),e.removeListener("close",c),f()}function f(){H("unpipe"),d.unpipe(e)}var d=this,p=this._readableState;switch(p.pipesCount){case 0:p.pipes=e;break;case 1:p.pipes=[p.pipes,e];break;default:p.pipes.push(e)}p.pipesCount+=1,H("pipe count=%d opts=%j",p.pipesCount,t);var h=(!t||t.end!==!1)&&e!==r.stdout&&e!==r.stderr,v=h?o:f;p.endEmitted?N(v):d.once("end",v),e.on("unpipe",n);var m=b(d);e.on("drain",m);var y=!1,g=!1;return d.on("data",u),a(e,"error",s),e.once("close",c),e.once("finish",l),e.emit("pipe",d),p.flowing||(H("pipe resume"),d.resume()),e},s.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var r=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<o;i++)r[i].emit("unpipe",this,n);return this}var a=x(t.pipes,e);return a===-1?this:(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n),this)},s.prototype.on=function(e,t){var n=L.prototype.on.call(this,e,t);if("data"===e)this._readableState.flowing!==!1&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&m(this):N(E,this))}return n},s.prototype.addListener=s.prototype.on,s.prototype.resume=function(){var e=this._readableState;return e.flowing||(H("resume"),e.flowing=!0,T(this,e)),this},s.prototype.pause=function(){return H("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(H("pause"),this._readableState.flowing=!1,this.emit("pause")),this},s.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;e.on("end",function(){if(H("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)}),e.on("data",function(o){if(H("wrapped data"),t.decoder&&(o=t.decoder.write(o)),(!t.objectMode||null!==o&&void 0!==o)&&(t.objectMode||o&&o.length)){var i=r.push(o);i||(n=!0,e.pause())}});for(var o in e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var i=0;i<W.length;i++)e.on(W[i],r.emit.bind(r,W[i]));return r._read=function(t){H("wrapped _read",t),n&&(n=!1,e.resume())},r},s._fromList=O}).call(t,n(36),n(114))},function(e,t,n){"use strict";function r(e){this.afterTransform=function(t,n){return o(e,t,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function o(e,t,n){var r=e._transformState;r.transforming=!1;var o=r.writecb;if(!o)return e.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!==n&&void 0!==n&&e.push(n),o(t);var i=e._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&e._read(i.highWaterMark)}function i(e){if(!(this instanceof i))return new i(e);u.call(this,e),this._transformState=new r(this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.once("prefinish",function(){"function"==typeof this._flush?this._flush(function(e,n){a(t,e,n)}):a(t)})}function a(e,t,n){if(t)return e.emit("error",t);null!==n&&void 0!==n&&e.push(n);var r=e._writableState,o=e._transformState;if(r.length)throw new Error("Calling transform done when ws.length != 0");if(o.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}e.exports=i;var u=n(141),s=n(195);s.inherits=n(160),s.inherits(i,u),i.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},i.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},i.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var o=this._readableState;(r.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},i.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},i.prototype._destroy=function(e,t){var n=this;u.prototype._destroy.call(this,e,function(e){t(e),n.emit("close")})}},function(e,t,n){"use strict";function r(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return r||o?void(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||a(i,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),void this._destroy(e||null,function(e){!t&&e?(a(i,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)}))}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function i(e,t){e.emit("error",t)}var a=n(265);e.exports={destroy:r,undestroy:o}},function(e,t,n){e.exports=n(341).EventEmitter},function(e,t){"use strict";function n(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)return function(e){return e};var o=function(){var e=t[t.length-1],n=t.slice(0,-1);return{v:function(){return n.reduceRight(function(e,t){return t(e)},e.apply(void 0,arguments))}}}();return"object"===("undefined"==typeof o?"undefined":r(o))?o.v:void 0}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};t.__esModule=!0,t["default"]=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){function r(){g===y&&(g=y.slice())}function a(){return m}function s(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return r(),g.push(e),function(){if(t){t=!1,r();var n=g.indexOf(e);g.splice(n,1)}}}function f(e){if(!(0,u["default"])(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"==typeof e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');
if(_)throw new Error("Reducers may not dispatch actions.");try{_=!0,m=v(m,e)}finally{_=!1}for(var t=y=g,n=0;n<t.length;n++)t[n]();return e}function d(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");v=e,f({type:l.INIT})}function p(){var e,t=s;return e={subscribe:function(e){function n(){e.next&&e.next(a())}if("object"!==("undefined"==typeof e?"undefined":i(e)))throw new TypeError("Expected the observer to be an object.");n();var r=t(n);return{unsubscribe:r}}},e[c["default"]]=function(){return this},e}var h;if("function"==typeof t&&"undefined"==typeof n&&(n=t,t=void 0),"undefined"!=typeof n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(o)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var v=e,m=t,y=[],g=y,_=!1;return f({type:l.INIT}),h={dispatch:f,subscribe:s,getState:a,replaceReducer:d},h[c["default"]]=p,h}var 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};t.__esModule=!0,t.ActionTypes=void 0,t["default"]=o;var a=n(168),u=r(a),s=n(1329),c=r(s),l=t.ActionTypes={INIT:"@@redux/INIT"}},function(e,t){"use strict";function n(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(t){}}t.__esModule=!0,t["default"]=n},function(e,t){"use strict";function n(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)}function r(e){return"string"==typeof e&&!!e.trim()}function o(e,t){var n=e.split(";").filter(r),o=n.shift().split("="),i=o.shift(),a=o.join("="),u={name:i,value:t.decodeValues?decodeURIComponent(a):a};return n.forEach(function(e){var t=e.split("="),n=t.shift().trimLeft().toLowerCase(),r=t.join("=");"expires"==n?u.expires=new Date(r):"max-age"==n?u.maxAge=parseInt(r,10):"secure"==n?u.secure=!0:"httponly"==n?u.httpOnly=!0:u[n]=r}),u}function i(e,t){if(!e)return[];e.headers&&(e=e.headers["set-cookie"]),Array.isArray(e)||(e=[e]);var i=n({},a);return t=t?n(i,t):i,e.filter(r).map(function(e){return o(e,t)})}var a={decodeValues:!0};e.exports=i,e.exports.parse=i},function(e,t){function n(e){return null!=e&&"object"==("undefined"==typeof e?"undefined":r(e))}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";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(262),i=n.n(o),a=n(403);n.d(t,"a",function(){return l}),n.d(t,"b",function(){return f}),n.d(t,"c",function(){return d});var u=this,s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(e,t){var n=void 0,r=void 0;return e instanceof a.b?(n=e.lastQuery,r=e.lastResponse.results):(n=e.query,r=e.results),t(n,r)},l=function(e){return c(e,function(e,t){var n=e.limit||25;return t.length>=n?i()(t).paginationId:null})},f=function(e){return c(e,function(e,t){return e.after?t[0].paginationId:null})},d=function(){var e=r(regeneratorRuntime.mark(function t(e,n,r){var o,i,a,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:l;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=s({},r),t.next=3,e(n,o);case 3:i=t.sent,a=c(i);case 5:if(!a){t.next=15;break}return o=s({},o,{after:a}),t.t0=i,t.next=10,e(n,o);case 10:t.t1=t.sent,i=t.t0.appendResponse.call(t.t0,t.t1),a=l(i),t.next=5;break;case 15:return t.abrupt("return",i);case 16:case"end":return t.stop()}},t,u)}));return function(t,n,r){return e.apply(this,arguments)}}()},function(e,t,n){"use strict";var r=n(95),o=n.n(r),i=n(639),a=n(635),u=n(445),s=n(1598),c=n(1611);n.d(t,"a",function(){return f});var l=function(e,t,n,r){e.set(t,n,r)},f=function(e,t,r){try{var i=n.i(u.a)(e),a=(i.ctx,i.dispatch);d(a,o.a,t,r)}catch(s){}},d=function(e,t,r,o){if(o.allowSetEmptyLoid&&"x-reddit-loid"in r&&r["x-reddit-loid"]){var u=t.get("loidcreated"),f=r["x-reddit-loid"];l(t,"loid",f,n.i(s.a)()),e(n.i(a.a)(n.i(c.a)(f,u)))}if("x-reddit-session"in r&&r["x-reddit-session"]){var d=r["x-reddit-session"];l(t,"session_tracker",d,n.i(s.b)()),e(n.i(i.a)(d))}}},function(e,t,n){"use strict";var r=n(263);n.n(r),n(406);n.d(t,"a",function(){return o});var 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")}}(),function(e,t){return"patch"!==t&&(e.feature="link_preview",e.sr_detail="true"),"del"===t&&(e._method="post"),e})},function(e,t,n){"use strict";var r=n(41),o=n(406),i=n(65),a=n(38),u=n(102),s={t1:u.a,t3:a.a},c="/api/editusertext";t.a={post:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t.thingId,u=t.text;if(!a||!u)throw new o.a(c);var l={type:"form",query:{raw_json:1},body:{api_type:"json",text:u,thing_id:a}};return n.i(r.a)(e,"POST",c,l).then(function(e){var t=e.response.body.json;if(t.errors.length)throw new i.a(c,t.errors,e.response.status);var n=t.data.things[0];return s[n.kind].fromJSON(n.data)})}}},function(e,t,n){"use strict";var r=n(627),o=function(e){return"user/"+e.user+"/hidden.json"};t.a=n.i(r.a)(o,"api/unhide","api/hide")},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(41),i={NONE:"",MODERATOR:"moderator",ADMIN:"admin"},a=function(e,t,r){var i={id:t,spam:r};return n.i(o.a)(e,"POST","api/remove",{body:i,type:"form"})},u=function(e,t){var r={id:t};return n.i(o.a)(e,"POST","api/approve",{body:r,type:"form"})},s=function(e,t,a){var u,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,c=(u={},r(u,i.MODERATOR,"yes"),r(u,i.NONE,"no"),u),l={id:t},f=c[a]||a;return null!==s&&(l.sticky=s),n.i(o.a)(e,"POST","api/distinguish/"+f,{body:l,type:"form"})},c=function(e,t){var r={id:t};return n.i(o.a)(e,"POST","api/marknsfw",{body:r,type:"form"})},l=function(e,t){var r={id:t};return n.i(o.a)(e,"POST","api/unmarknsfw",{body:r,type:"form"})},f=function(e,t){var r={id:t};return n.i(o.a)(e,"POST","api/lock",{body:r,type:"form"})},d=function(e,t){var r={id:t};return n.i(o.a)(e,"POST","api/unlock",{body:r,type:"form"})},p=function(e,t){var r={id:t};return n.i(o.a)(e,"POST","api/spoiler",{body:r,type:"form"})},h=function(e,t){var r={id:t};return n.i(o.a)(e,"POST","api/unspoiler",{body:r,type:"form"})},v=function(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a={id:t,state:r};return i&&(a.num=i),n.i(o.a)(e,"POST","api/set_subreddit_sticky",{body:a,type:"form"})},m=function(e,t,n){var r=n?i.MODERATOR:i.NONE;return s(e,t,r,n)};t.a={remove:a,approve:u,distinguish:s,markNSFW:c,unmarkNSFW:l,lock:f,unlock:d,spoiler:p,unspoiler:h,setStickyComment:m,setSubredditSticky:v,DISTINGUISH_TYPES:i}},function(e,t,n){"use strict";var r=n(112),o=n.n(r),i=n(98),a=n.n(i),u=n(85),s=n(102),c=n(38),l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f={t1:s.a,t3:c.a},d=function(e,t){var n=e.body;if(o()(n,"data.children")){var r=n.data.children;r.forEach(function(e){t.addResult(f[e.kind].fromJSON(e.data))})}},p=function(e){return a()(l({},e,{sr_detail:"true"}),"user")},h=function(e){return!!e.id},v=function(e){return{id:e.id,category:e.category}},m=function(e,t,r){var o=p(t);return n.i(u.b)(e,"get",r,o,t,d)},y=function(e,t,r){n.i(u.d)(t,"del","saved",h);var o=v(t);return n.i(u.b)(e,"post",r,o,t,d)},g=function(e,t,r){n.i(u.d)(t,"post","saved",h);var o=p(t);return n.i(u.b)(e,"post",r,o,t,d)};t.a=function(e,t,n){return{get:function(t,n){var r=e(n);return m(t,n,r)},del:function(e,n){return y(e,n,t)},post:function(e,t){return g(e,t,n)}}}},function(e,t,n){"use strict";var r=n(263),o=n.n(r),i=n(58),a=n.n(i),u=n(85),s=n(143),c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l={allow_top:!0,collapse_deleted_comments:!1,comment_score_hide_mins:0,description:"",exclude_banned_modqueue:!1,"header-title":"",hide_ads:!1,lang:"en",link_type:"any",name:"",over_18:!1,public_description:"",public_traffic:!1,show_media:!0,spam_comments:"low",spam_links:"high",spam_selfposts:"high",sr:"",submission_type:"",submit_link_label:"",submit_text:"",submit_text_label:"",suggested_comment_sort:"confidence",title:"",type:"public",wiki_edit_age:0,wiki_edit_karma:100,wikimode:"disabled"},f="api/site_admin",d=function(e){return e.id&&"mod"===e.view?"r/"+e.id+"/about/edit.json":e.id?"r/"+e.id+"/about.json":"subreddits/"+(e.sort||"default")+".json"},p=function(e,t){return"get"!==t&&(e.api_type="json"),e},h=function(e,t){var n=e.body;n.data&&Array.isArray(n.data.children)?n.data.children.forEach(function(e){return t.addResult(s.a.fromJSON(e.data))}):a()(n)||t.addResult(s.a.fromJSON(n.data||n))},v=function(e,t){var r=d(t),o=p(c({},t));return n.i(u.b)(e,"get",r,o,t,h)},m=function(e,t){return Object.keys(t).sort()!==s.a.fields?new Promise(function(n,r){v(e,{id:t.id,view:"mod"}).then(function(n){1===!n.results.length&&r();var i=n.getModelFromRecord(n.results[0]),a=o()(c({},l,i,t,{sr:i.name}),Object.keys(l));return y(e,a)},r)}):y(e,t)},y=function(e,t){var r=o()(c({},l,t),Object.keys(l));return n.i(u.b)(e,"post",f,r,t,h)},g=function(e,t){var n=c({},t,{name:t.id});return y(e,n)};t.a={get:v,patch:m,post:y,put:g}},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(621),s=n(628),c=n(1356);n.d(t,"b",function(){return d}),n.d(t,"a",function(){return p});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:"subreddits",get:function(){return this.apiResponse.results.map(this.apiResponse.getModelFromRecord)}}],[{key:"baseOptions",value:function(e){return{sort:this.sortFromOptions(e)||this.sort,limit:this.limit,sr_detail:!0}}},{key:"fetch",value:function(){function e(e){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function o(e){var t,r,i,a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(!a){o.next=6;break}return t=s.a.get,o.next=4,n.i(u.c)(t,e,this.baseOptions(e));case 4:return r=o.sent,o.abrupt("return",new this(r));case 6:return o.next=8,this.getResponse(e);case 8:return i=o.sent,o.abrupt("return",new this(i));case 10:case"end":return o.stop()}},o,this)}));return e}()}]),t}(c.a);f.sortFromOptions=function(){},f.sort="",f.limit=100,f.endpoint=s.a;var d=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),t}(f);d.sortFromOptions=function(e){return e.token?"mine/subscriber":"default"};var p=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),t}(f);p.sort="mine/moderator";var h=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),t}(f);h.sort="mine/contributor"},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="Incorrect captcha provided.",s="No captcha provided.",c=function(e){function t(e,n,i){r(this,t);var a=e?u:s,c=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a));return c.name="BadCaptchaError",c.captcha=e,c.newCaptcha=n,c.errors=i,c.status=200,c}return i(t,e),t}(a.a);t.a=c},function(e,t,n){"use strict";var r=n(17),o=n(85);n.d(t,"d",function(){return a}),n.d(t,"a",function(){return l}),n.d(t,"b",function(){return f}),n.d(t,"c",function(){return d});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=r.a.nonAuthAPIOrigin,u=r.a.authAPIOrigin,s=r.a.gqlUrl,c={origin:a,userAgent:"snoodev3",appName:"snoodev3",env:"production"},l=n.i(o.a)(c),f=function(e){return i({},c,{token:e,origin:e?u:a})},d=function(e,t,n){return{apiUrl:s,accessToken:e,loid:t,sessionTracker:n}}},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=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=a.a.Types,l=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),s(t,[{key:"makeUUID",value:function(e){return e.name.toLowerCase()}}]),t}(a.a);l.type=u.e,l.PROPERTIES={coins:c.number,commentKarma:c.number,createdUTC:c.number,features:c.nop,goldCreddits:c.number,goldExpiration:c.number,hasGoldSubscription:c.bool,hasMail:c.bool,hasModMail:c.bool,hasVerifiedEmail:c.bool,hideFromRobots:c.bool,id:c.string,inBeta:c.bool,inboxCount:c.number,isEmployee:c.bool,isFPR:c.bool,isGold:c.bool,isMod:c.bool,isSuspended:c.bool,karma:c.number,linkKarma:c.number,loid:c.string,loidCreated:c.number,name:c.string,oauthClientId:c.string,over18:c.bool,subredditId:c.string,subredditName:c.string,suspensionExpirationUTC:c.number,verified:c.bool,hasSubscribed:c.bool},l.API_ALIASES={comment_karma:"commentKarma",created_utc:"createdUTC",force_password_reset:"isFPR",gold_creddits:"goldCreddits",gold_expiration:"goldExpiration",has_gold_subscription:"hasGoldSubscription",has_mail:"hasMail",has_mod_mail:"hasModMail",has_verified_email:"hasVerifiedEmail",hide_from_robots:"hideFromRobots",in_beta:"inBeta",is_employee:"isEmployee",is_gold:"isGold",is_mod:"isMod",is_suspended:"isSuspended",link_karma:"linkKarma",loid_created:"loidCreated",oauth_client_id:"oauthClientId",over_18:"over18",suspension_expiration_utc:"suspensionExpirationUTC",has_subscribed:"hasSubscribed"},l.DERIVED_PROPERTIES={karma:function(e){return e.karma?e.karma:e.link_karma+e.comment_karma},subredditId:function(e){return e.subreddit?e.subreddit.name:""},subredditName:function(e){return e.subreddit?e.subreddit.display_name:""}},t.a=l},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){return this._vote(e,1)}function i(e){return this._vote(e,-1)}function a(e,t){var n=this,o=this,i=t===this.likes,a=i?0:t,u=i?this.score-t:this.score-this.likes+t,c=this.stub({likes:a,score:u},r(regeneratorRuntime.mark(function l(){var r;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,r=0===t?s.a.del:s.a.post,n.next=4,r(e,{thingId:o.name,direction:t});case 4:return n.abrupt("return",c);case 7:throw n.prev=7,n.t0=n["catch"](0),o;case 10:case"end":return n.stop()}},l,n,[[0,7]])})));return c}var u=n(1365),s=n(1354);t.a=function(e){return n.i(u.a)(e,{upvote:o,downvote:i,_vote:a})}},function(e,t,n){"use strict";n(5);n.d(t,"c",function(){return r}),n.d(t,"d",function(){return o}),n.d(t,"a",function(){return i}),n.d(t,"e",function(){return a}),n.d(t,"b",function(){return u});var r="EU_COOKIE_NOTICE__SET",o="EU_COOKIE_NOTICE__DISPLAYED",i=function(){return{type:o}},a="EU_COOKIE_NOTICE__HIDE",u=function(){return{type:a}}},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="SET_LOID",o=function(e){var t=e.loid,n=e.loidCookie,o=e.loidCreated,i=e.loidCreatedCookie;return{type:r,loid:t,loidCookie:n,loidCreated:o,loidCreatedCookie:i}},i="SET_EDGE_BUCKET"},function(e,t,n){"use strict";n(22),n(56),n(1344),n(25);n.d(t,"a",function(){return r});var r="RECEIVED_RECOMMENDED_SUBREDDITS"},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return o});var r="SAVE_SCROLL_POSITION",o=function(e,t){return{type:r,url:e,scrollTop:t}}},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(181);n.d(t,"b",function(){return a}),n.d(t,"c",function(){return s}),n.d(t,"a",function(){return l});var i=this,a="SESSION_REFRESHING",u=function(){return{type:a}},s="SESSION_REFRESHED",c=function(){return{type:s}},l=function f(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(){var t=r(regeneratorRuntime.mark(function n(t,r){var a,s,l,d;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(a=r(),s=a.sessionRefreshing,l=a.session,l.refresh&&!s){n.next=3;break}return n.abrupt("return");case 3:return t(u()),n.prev=4,n.next=7,l.refresh();case 7:d=n.sent,t(o.a(d)),t(c()),n.next=18;break;case 12:if(n.prev=12,n.t0=n["catch"](4),t(c()),e){n.next=17;break}return n.abrupt("return");case 17:setTimeout(function(){return t(f(!1))},Math.floor(1e3+2e3*Math.random()));case 18:case"end":return n.stop()}},n,i,[[4,12]])}));return function(e,n){return t.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(433);n.d(t,"b",function(){return a}),n.d(t,"a",function(){return u});var i=this,a="SESSION__SET_SESSION_TRACKER",u=function(e){return function(){var t=r(regeneratorRuntime.mark(function u(t){var r;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:r=n.i(o.a)(e),t({type:a,id:r,value:e});case 2:case"end":return i.stop()}},u,i)}));return function(e){return t.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")})}}function o(e){return g=e,new Promise(function(t,n){e.then(function(n){e===g&&t(n)}),e["catch"](function(t){e===g&&n(t)})})}var i=n(178),a=n(22),u=n(1348),s=n(25);n.d(t,"c",function(){return l}),n.d(t,"d",function(){return d}),n.d(t,"e",function(){return h}),n.d(t,"b",function(){return v}),n.d(t,"a",function(){return E});var c=this,l="AUTOCOMPLETE__FETCHING",f=function(e){return{type:l,query:e}},d="AUTOCOMPLETE__RECEIVED",p=function(e){return{type:d,results:e}},h="AUTOCOMPLETE__RESET",v=function(){return{type:h}},m="AUTOCOMPLETE__FAILED",y=function(e){return{type:m,error:e}},g=void 0,_=void 0,b=250,E=function(e){return function(){var t=r(regeneratorRuntime.mark(function l(t,d){return regeneratorRuntime.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,t(i.b());case 2:clearTimeout(_),_=setTimeout(r(regeneratorRuntime.mark(function h(){var r,i,l,v,m;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return t(f(e)),r=d(),i=n.i(a.a)(r),l=r.preferences.over18,c.prev=4,c.next=7,o(u.a.get(i,e,l));case 7:v=c.sent,m=v.names,t(p(m)),c.next=19;break;case 12:if(c.prev=12,c.t0=c["catch"](4),!(c.t0 instanceof s.a)){c.next=18;break}t(y(c.t0)),c.next=19;break;case 18:throw c.t0;case 19:case"end":return c.stop()}},h,c,[[4,12]])})),b);case 4:case"end":return l.stop()}},l,c)}));return function(e,n){return t.apply(this,arguments)}}()}},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(376),c=(n.n(s),n(3)),l=(n.n(c),n(1610)),f=(n.n(l),n(701)),d=n(677),p=n(185),h=n(144),v=n(283),m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),g=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),_=u.a.PropTypes,b=.01,E=.5,T=1,w=1e3,S=2e3,O=3e3,P=[b,E,T],R=y("div",{}),I=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.viewableImpression={threshold:E,time:w,timer:null,onImpression:n.onViewableImpression,madeImpression:!1,disabled:!1},n.videoViewableImpression={threshold:E,time:S,timer:null,onImpression:n.onVideoViewableImpression,madeImpression:!1,disabled:!1},n.videoFullyViewableImpression={threshold:T,time:O,timer:null,onImpression:n.onVideoFullyViewableImpression,madeImpression:!1,disabled:!1},n.handleObserver=function(e){n.event=e;var t=n.state.madeImpression;!t&&e.isIntersecting&&e.intersectionRatio>=b&&n.setState({madeImpression:!0},function(){n.onImpression(n.props.postEvents)}),n.handleImpression(e,n.viewableImpression),n.state.shouldTrackVideoImpression&&(n.handleImpression(e,n.videoViewableImpression),n.handleImpression(e,n.videoFullyViewableImpression))};var i=e.isVideo,a=e.postId,u=e.videoAdsStatus;return n.hasBuffered=u.hasBuffered[a],n.latestViewStartTime=u.currentViewStartedAt[a],n.event=null,n.state={madeImpression:!1,shouldDisableObserver:!1,shouldTrackVideoImpression:i&&n.hasBuffered},n}return i(t,e),g(t,[{key:"onImpression",value:function(e){n.i(p.a)(e,p.b.Impression)}},{key:"onViewableImpression",value:function(e){n.i(p.a)(e,p.b.ViewableImpression)}},{key:"onVideoViewableImpression",value:function(e){n.i(p.a)(e,p.b.VideoViewableImpression)}},{key:"onVideoFullyViewableImpression",value:function(e){n.i(p.a)(e,p.b.VideoFullyViewableImpression)}}]),g(t,[{key:"componentDidMount",value:function(){this.checkAdblock()}},{key:"componentDidUpdate",value:function(){var e=this.props,t=e.isVideo,n=e.postId,r=e.videoAdsStatus,o=r.hasBuffered,i=r.currentViewStartedAt,a=i[n]!==this.latestViewStartTime;t&&(a&&this.handleVideoSkip(i[n]),this.handleBufferingUpdate(o[n]))}},{key:"handleVideoSkip",value:function(e){var t=this;this.latestViewStartTime=e;var n=[this.viewableImpression,this.videoViewableImpression,this.videoFullyViewableImpression];n.forEach(function(n){if(!n.madeImpression){clearTimeout(n.timer),n.timer=null;var r=t.props.videoAdsStatus.length;n.disabled=r-1e3*e<n.time,t.checkIfShouldDisableObserver()}})}},{key:"handleBufferingUpdate",value:function(e){var t=this;return this.hasBuffered===e?void this.handleObserver(this.event):(this.hasBuffered=e,void this.setState({shouldTrackVideoImpression:this.hasBuffered},function(){t.handleObserver(t.event)}))}},{key:"checkAdblock",value:function(){n.i(d.a)(n.i(s.findDOMNode)(this))&&this.props.onAdblockDetected()}},{key:"handleImpression",value:function(e,t){var n=this,r=t.madeImpression,o=t.threshold,i=t.time;if(!r&&e.isIntersecting&&e.intersectionRatio>=o){if(t.timer||t.disabled)return;return void(t.timer=window.setTimeout(function(){n.onViewabilityImpression(t),n.checkIfShouldDisableObserver()},i))}t.timer&&clearTimeout(t.timer)}},{key:"onViewabilityImpression",value:function(e){e.madeImpression||(e.madeImpression=!0,e.onImpression(this.props.postEvents))}},{key:"checkIfShouldDisableObserver",value:function(){var e=[this.viewableImpression];this.props.isVideo&&e.push(this.videoViewableImpression,this.videoFullyViewableImpression);var t=e.reduce(function(e,t){return e&&(t.madeImpression||t.disabled)},!0);t!==this.state.shouldDisableObserver&&this.setState({shouldDisableObserver:t})}},{key:"render",value:function(){var e=this.props,t=e.postProps,n=e.postId,r=e.isBlank;return y(f.a,{threshold:P,onChange:this.handleObserver,disabled:this.state.shouldDisableObserver},void 0,r?R:u.a.createElement(v.a,m({},t,{postId:n,key:"post-id-"+n})))}}]),t}(u.a.Component);I.propTypes={postId:_.string.isRequired,postEvents:_.arrayOf(_.shape({url:_.string,type:_.number})).isRequired,placementIndex:_.number.isRequired,postProps:_.object,isBlank:_.bool,isVideo:_.bool,videoAdsStatus:_.shape({hasBuffered:_.object.isRequired,currentViewStartedAt:_.object.isRequired}),onAdblockDetected:_.func.isRequired},I.defaultProps={videoAdsStatus:{hasBuffered:{},currentViewStartedAt:{}}};var A=function(e,t){var n=t.placementIndex;return{onAdblockDetected:function(){e(h.h(n))}}};t.a=n.i(c.connect)(void 0,A)(I)},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)}function a(e){return e.sort(function(e,t){return"moderator"===e.award_type&&"moderator"!==t.award_type?-1:"moderator"===t.award_type&&"moderator"!==e.award_type?1:t.coin_price-e.coin_price})}function u(e,t){if(!(t<=0)){var n=v(e.resized_icons,h),r=n?n.url:e.icon_url;return d("span",{className:"AwardingsBar__awardItem"},void 0,d("span",{},void 0,d("img",{className:"AwardingsBar__awardIcon",src:r})),t>1&&t)}}var s=n(1625),c=(n.n(s),n(0)),l=n.n(c),f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),p=5,h=64,v=function(e,t){return e&&e.length?e.filter(function(e){return e.width===t})[0]:null},m=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleShowAllAwards=function(e){n.setState({showAllAwards:!0}),e.stopPropagation()},n.state={showAllAwards:!1},n}return i(t,e),f(t,[{key:"render",value:function(){var e=this.state.showAllAwards,t=this.props.allAwardings,n=a(t||[]),r=e?n:n.length>p?n.slice(0,p-1):n,o=n.length-r.length;return d("div",{className:"AwardingsBar__awardBadges"},void 0,r.map(function(e){return u(e,e.count)}),o>0&&d("button",{className:"AwardingsBar__showAllButton",onClick:this.handleShowAllAwards},void 0,"& ",o," More"))}}]),t}(l.a.Component);t.a=m},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(368)),f=n.n(l),d=n(30),p=n(187),h=n(1599),v=n(446),m=n(1601),y=n(1627),g=(n.n(y),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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}()),_=Object.assign||function(e){
for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),E=function(e){function t(){var e,n,i,a;r(this,t);for(var u=arguments.length,s=Array(u),c=0;c<u;c++)s[c]=arguments[c];return n=i=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),i.frame=null,a=n,o(i,a)}return i(t,e),b(t,[{key:"defineSlot",value:function(){var e=this.props,t=e.id,r=e.slot,o=e.properties,i=e.sizes,a=e.shouldCollapse,u=e.a9,s=e.whitelistStatus,c=e.wls,l=_({},o,{whitelist_status:s,wls:c});this.destroySlot(),n.i(v.a)(this.frame,{id:t,slot:r,properties:l,shouldCollapse:a,sizes:i,a9:u})}},{key:"destroySlot",value:function(){n.i(v.b)(this.props.id)}},{key:"componentDidMount",value:function(){this.defineSlot()}},{key:"componentDidUpdate",value:function(){this.defineSlot()}},{key:"componentWillUnmount",value:function(){this.destroySlot()}},{key:"shouldComponentUpdate",value:function(e){return e.slot!==this.props.slot||!f()(e.properties,this.props.properties)}},{key:"render",value:function(){var e=this,t=this.props,r=t.id,o=t.slot,i=t.hideAds,a=t.withBottomSpacing;return!o||i?null:g("div",{"data-slot":o,className:n.i(d.a)("BannerAd",{BannerAd__320x50:!this.props.sizes.includes("fluid"),BannerAd__fluid:this.props.sizes.includes("fluid"),BannerAd__bottom:a})},void 0,u.a.createElement("div",{ref:function(t){e.frame=t},id:r}))}}]),t}(u.a.Component);E.defaultProps={sizes:[[320,50]]},E.propTypes={id:a.PropTypes.string,properties:a.PropTypes.object,shouldCollapse:a.PropTypes.bool,sizes:a.PropTypes.array,slot:a.PropTypes.string,a9:a.PropTypes.bool};var T=function(e){var t=n.i(p.a)(e)||"";return e.subreddits[t.toLowerCase()]},w=n.i(c.createStructuredSelector)({hideAds:function(e){return e.preferences.hideAds},theme:function(e){return e.theme},compact:function(e){return e.compact},properties:function(e,t){var r=e.platform.currentPage;return r?n.i(h.a)(t.placement,e.user,T(e,t),e.theme,e.compact):{}},slot:function(e,t){var r=n.i(p.a)(e);return n.i(v.c)(t.listingName,r)}});t.a=n.i(s.connect)(w)(n.i(m.a)(E))},function(e,t,n){"use strict";var r=n(0),o=(n.n(r),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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}()),i=o("g",{},void 0,o("path",{d:"M18.5 13.17a1.62 1.62 0 0 1-2.35 0c-.31-.3-.48-.73-.48-1.17 0-.44.17-.87.49-1.17a1.7 1.7 0 0 1 2.35 0c.32.3.49.73.49 1.17 0 .44-.17.87-.5 1.17m-4.86-.85c-.03.1-.05.21-.1.32l-.15.28c-.07.1-.14.19-.22.25a1.62 1.62 0 0 1-2.35 0 1.85 1.85 0 0 1-.36-.53c-.05-.1-.07-.21-.1-.32-.01-.1-.03-.21-.03-.32 0-.44.18-.87.5-1.17a1.7 1.7 0 0 1 2.34 0c.32.3.5.73.5 1.17l-.03.32m-5.33 0c-.03.1-.06.21-.11.32-.04.1-.1.2-.15.28-.06.1-.13.19-.21.27a1.67 1.67 0 0 1-2.35 0c-.08-.08-.14-.18-.21-.27a1.85 1.85 0 0 1-.25-.6 1.62 1.62 0 0 1 .47-1.5 1.7 1.7 0 0 1 2.34 0 1.85 1.85 0 0 1 .47.85l.02.33-.02.32M12 0A12.01 12.01 0 0 0 1.99 18.6L.7 22.46a.67.67 0 0 0 .84.84L5.4 22A12.01 12.01 0 0 0 24 12c0-6.62-5.38-12-12-12"}),o("path",{d:"M18.5 13.17a1.62 1.62 0 0 1-2.35 0c-.31-.3-.48-.73-.48-1.17 0-.44.17-.87.49-1.17a1.7 1.7 0 0 1 2.35 0c.32.3.49.73.49 1.17 0 .44-.17.87-.5 1.17",fill:"white"}),o("path",{d:"M13.64 12.32c-.03.1-.05.21-.1.32l-.15.28c-.07.1-.14.19-.22.25a1.62 1.62 0 0 1-2.35 0 1.85 1.85 0 0 1-.36-.53c-.05-.1-.07-.21-.1-.32-.01-.1-.03-.21-.03-.32 0-.44.18-.87.5-1.17a1.7 1.7 0 0 1 2.34 0c.32.3.5.73.5 1.17l-.03.32",fill:"white"}),o("path",{d:"M8.3 12.32a1.85 1.85 0 0 1-.25.6c-.06.1-.13.19-.21.27a1.67 1.67 0 0 1-2.35 0c-.08-.08-.14-.18-.21-.27a1.85 1.85 0 0 1-.25-.6 1.62 1.62 0 0 1 .47-1.5 1.7 1.7 0 0 1 2.34 0 1.85 1.85 0 0 1 .47.85l.02.33-.02.32",fill:"white"}));t.a=function(e){return o("svg",{className:e.className,viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg"},void 0,i)}},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(1631),u=(n.n(a),n(0)),s=n.n(u),c=n(3),l=(n.n(c),n(4)),f=(n.n(l),n(6)),d=n(30),p=n(117),h=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),v=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),m=s.a.PropTypes,y=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onTextChange=function(e){n.setState({disableButton:!e.target.value.trim()})},n.textarea=null,n.state={disableButton:!0},n}return i(t,e),v(t,[{key:"componentDidMount",value:function(){this.textarea&&this.textarea.focus()}},{key:"render",value:function(){var e=this,t=this.props,r=t.onToggleReply,o=t.onSubmitReply,i=t.pending,a=this.state.disableButton,u=a||i,c=n.i(d.a)("Button",{"m-disabled":u});return h(f.c,{onSubmit:o,className:"CommentReplyForm"},void 0,h("div",{className:"CommentReplyForm__textarea"},void 0,s.a.createElement("textarea",{ref:function(t){e.textarea=t},className:"TextField",name:"text",onChange:this.onTextChange})),h("div",{className:"CommentReplyForm__footer"},void 0,h("span",{className:"CommentReplyForm__close icon icon-x Button m-linkbutton",onClick:r}),h("div",{className:"CommentReplyForm__button"},void 0,h("button",{type:"submit",className:c,disabled:u},void 0,"ADD COMMENT"))))}}]),t}(s.a.Component);y.propTypes={onToggleReply:m.func.isRequired,pending:m.bool.isRequired};var g=n.i(l.createStructuredSelector)({replyApi:function(e,t){var n=t.parentId;return!!e.replyRequests[n]&&e.replyRequests[n].pending}}),_=function(e,t){var n=t.parentId;return{onSubmitReply:function(t){return e(p.a(n,t))}}};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)}function a(e){var t=e.editPending,n=e.comment,r=e.onToggleEditForm,o=e.onUpdateBody;return E(b.a,{startingText:n.bodyMD,editPending:t,onCancelEdit:r,onSaveEdit:o})}function u(e){var t=e.commentDeleted,n=e.commentReplying,r=e.commentingDisabled,o=e.preview;return[t?null:s(e),o||!n||r?null:c(e)]}function s(e){var t=e.user,r=e.comment,o=e.commentCollapsed,i=e.commentReplying,a=e.onToggleEditForm,u=e.onDeleteComment,s=e.onToggleSaveComment,c=e.onReportComment,l=e.onToggleReply,f=e.commentingDisabled,d=e.votingDisabled,p=e.onToggleModal,h=e.isSubredditModerator,m=e.reports,g=n.i(v.a)("Comment__toolsContainer","clearfix",{"m-hidden":o});return E("div",{className:g},void 0,E("div",{className:"Comment__tools"},void 0,E(y.a,{id:r.name,score:r.score,scoreHidden:r.scoreHidden,voteDirection:r.likes,commentAuthor:r.author,username:t?t.name:null,saved:r.saved,replying:i,permalinkUrl:r.cleanPermalink,onEdit:a,onDelete:u,onToggleSave:s,onReportComment:c,onToggleReply:l,commentingDisabled:f,votingDisabled:d,onToggleModal:p,isSubredditModerator:h,isSpam:r.spam,isRemoved:r.removed,isApproved:r.approved,approvedBy:r.approvedBy,removedBy:r.bannedBy,isMine:t&&t.name===r.author,distinguishType:r.distinguished,isSticky:r.stickied,reports:m[r.name]})))}function c(e){var t=e.comment,n=e.onToggleReply;return E(g.a,{onToggleReply:n,parentId:t.name})}var l=n(1633),f=(n.n(l),n(0)),d=n.n(f),p=n(102),h=n(220),v=n(30),m=n(1384),y=n(1385),g=n(645),_=n(119),b=n(648),E=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),T=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),w=d.a.PropTypes,S=["bodyHTML","score","isCollapsed","saved","spam","removed"],O=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),T(t,[{key:"shouldComponentUpdate",value:function(e){var t=this,n=Object.keys(this.props).some(function(n){var r=t.props[n],o=e[n];return"function"!=typeof r&&("comment"===n?!S.every(function(e){return r[e]===o[e]}):r!==o)});return n}},{key:"render",value:function(){var e=this.props,t=e.comment,r=e.commentCollapsed,o=e.authorType,i=e.preview,s=e.isTopLevel,c=e.isUserActivityPage,l=e.highlightedComment,f=e.onToggleCollapse,d=e.editing,p=e.dotsNum,y=e.reports,g=n.i(v.a)("Comment",{"in-comment-tree":!i,"m-removed":t.spam||t.removed}),b=n.i(v.a)("Comment__body",{"m-hidden":r&&!c});return E("div",{className:g},void 0,E("div",{className:"Comment__header",id:t.id},void 0,E(m.a,{id:t.id,allAwardings:t.allAwardings,author:t.author,authorType:o,topLevel:s,dots:p,flair:t.authorFlairText,created:t.createdUTC,gildings:t.gildings,collapsed:r,highlight:t.id===l,stickied:t.stickied,onToggleCollapse:f,isApproved:t.approved,isRemoved:t.removed,isSpam:t.spam,reports:y[t.name]})),d?a(e):E(_.a,{},void 0,E("div",{className:b,dangerouslySetInnerHTML:{__html:n.i(h.a)(e.comment.bodyHTML)}})),c?null:u(e))}}]),t}(d.a.Component);O.propTypes={comment:w.instanceOf(p.a).isRequired,commentReplying:w.bool.isRequired,highlightedComment:w.string,user:w.object.isRequired,editing:w.bool.isRequired,editPending:w.bool.isRequired,votingDisabled:w.bool,reports:w.object,onDeleteComment:w.func.isRequired,onToggleEditForm:w.func.isRequired,onUpdateBody:w.func.isRequired,onToggleSaveComment:w.func.isRequired,onReportComment:w.func.isRequired,onToggleReply:w.func.isRequired,onToggleCollapse:w.func.isRequired,authorType:w.string.isRequired,isTopLevel:w.bool.isRequired,preview:w.bool,isUserActivityPage:w.bool,isSubredditModerator:w.bool,dotsNum:w.number},O.defaultProps={authorType:"",highlightedComment:"",nestingLevel:0,preview:!1,votingDisabled:!1,reports:{}},t.a=O},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(1646),u=(n.n(a),n(0)),s=n.n(u),c=n(30),l=n(3),f=(n.n(l),n(4)),d=(n.n(f),n(57)),p=n(5),h=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),v=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),m=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={mounted:!1},n}return i(t,e),v(t,[{key:"componentDidMount",value:function(){this.setState({mounted:!0})}},{key:"getMixin",value:function(){var e=this.props.interstitialType;switch(e){case p.Q:return"m-adfeed"}}},{key:"render",value:function(){var e=this.props,t=e.title,r=e.appLink,o=e.children,i=o||t||"Continue",a=n.i(c.a)("appButton",this.getMixin());return h("a",{className:a,href:r},void 0,i)}}]),t}(s.a.Component),y=n.i(f.createStructuredSelector)({appLink:function(e,t){return n.i(d.i)(e,t.interstitialType)}});t.a=n.i(l.connect)(y)(m)},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(1650),u=(n.n(a),n(0)),s=n.n(u),c=n(30),l=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=s.a.PropTypes,p=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.saveEdit=function(){if(!n.props.editPending){var e=n.state.editedText.trim();e!==n.props.startingText&&n.props.onSaveEdit(e)}},n.onTextAreaChange=function(e){n.setState({editedText:e.target.value})},n.state={editedText:e.startingText},n}return i(t,e),f(t,[{key:"render",value:function(){var e=this.props.editPending,t=this.state.editedText;return l("div",{className:"EditForm"},void 0,l("div",{className:"EditForm__textarea-holder"},void 0,l("textarea",{className:"EditForm__textarea",value:t,disabled:e,onChange:this.onTextAreaChange})),this.renderEditControls())}},{key:"renderEditControls",value:function(){var e=this.props,t=e.editPending,r=e.onCancelEdit;return l("div",{className:"EditForm__edit-controls"},void 0,l("div",{className:"EditForm__edit-cancel",onClick:r},void 0,"Cancel"),l("div",{className:n.i(c.a)("EditForm__edit-button",{disabled:t}),onClick:this.saveEdit},void 0,"Updat"+(t?"ing":"e")))}}]),t}(s.a.Component);p.propTypes={startingText:d.string.isRequired,editPending:d.bool.isRequired,onCancelEdit:d.func.isRequired,onSaveEdit:d.func.isRequired},t.a=p},function(e,t,n){"use strict";function r(e,t){return e[t]?u("span",{className:"GildingsBar__award"},t,u("span",{className:"GildingsBar__award-icon GildingsBar__award-icon_"+t}),e[t]>1&&u("span",{className:"GildingsBar__award-count"},void 0,e[t])):null}function o(e){var t=e.gildings;if(!t)return null;var n=s.reduce(function(e,n){return e+(t[n]||0)},0);return n?u("span",{},void 0,s.map(function(e){return r(t,e)})):null}var i=n(1652),a=(n.n(i),n(0));n.n(a);t.a=o;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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=["gid_1","gid_2","gid_3"]},function(e,t,n){"use strict";function r(e){var t=e.showTopBorder,r=e.name,o=e.type,i=e.placeholder,a=e.error,u=e.onChange,f=e.value,d=e.children,p=e.shouldAutocomplete,h=e.otpInput,v=n.i(c.a)("LoginInput__input",{error:!!a,"show-top":t,otpInput:h}),m="hidden"!==o&&s()(a)?l("p",{className:"LoginInput__error-text"},void 0,a):null;return l("div",{},void 0,l("div",{className:"LoginInput"},void 0,l("label",{htmlFor:r,className:"hidden"}),l("input",{className:v,id:r,onChange:u,name:r,placeholder:i,type:o,value:f,autoComplete:p?null:"off"}),d),m)}var o=n(1655),i=(n.n(o),n(0)),a=n.n(i),u=n(169),s=n.n(u),c=n(30),l=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),f=a.a.PropTypes;r.propTypes={error:f.string,name:f.string.isRequired,onChange:f.func,placeholder:f.string.isRequired,showTopBorder:f.bool,type:f.string,value:f.string.isRequired,shouldAutocomplete:f.bool},r.defaultProps={shouldAutocomplete:!0,showTopBorder:!1,type:"text"},t.a=r},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){function t(t){e.enabled&&e.onClick(t)}var o=e.enabled,i=e.modifier,a=n.i(s.a)("SquareButton",r({"m-disabled":!o},i,i.length));return c("button",{type:e.type,className:a,onClick:t},void 0,c("div",{className:"SquareButton__content"},void 0,e.text))}var i=n(1656),a=(n.n(i),n(0)),u=n.n(a),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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),l=u.a.PropTypes;o.propTypes={text:l.string.isRequired,type:l.string,enabled:l.bool,modifier:l.string,onClick:l.func,fontSize:l.number},o.defaultProps={type:"button",enabled:!0,modifier:"",fontSize:12,onClick:function(){}},t.a=o},function(e,t,n){"use strict";var r=n(1665),o=(n.n(r),n(0)),i=n.n(o),a=n(6),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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=i.a.PropTypes,c=u("span",{className:"icon icon-nav-close icon-large"}),l=function(e){return u("div",{className:"Modal"},void 0,u("div",{className:"Modal__menubar"},void 0,u(a.b,{href:e.exitTo,className:"Modal__menubar-close"},void 0,c),u("span",{className:"Modal__menubar-text"},void 0,e.titleText)),u("div",{className:"Modal__body"},void 0,e.children))};l.propTypes={exitTo:s.string.isRequired,titleText:s.string},l.defaultProps={titleText:""},t.a=l},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(1667),u=(n.n(a),n(0)),s=n.n(u),c=n(3),l=(n.n(c),n(4)),f=(n.n(l),n(20)),d=n(626),p=n(90),h=(n.n(p),n(419)),v=n(182),m=n(148),y=n(292),g=n(145),_=n(285),b=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),E=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),T=d.a.DISTINGUISH_TYPES,w=s.a.PropTypes,S=b(v.a,{icon:"flag",text:"Reports",isSelected:!0}),O=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),E(t,[{key:"onDistinguish",value:function(e){var t=e===T.NONE?T.MODERATOR:T.NONE;this.props.onDistinguish(t)}},{key:"showDistinguish",value:function(e){return!(e===T.NONE)}},{key:"preventModalClose",value:function(e){e.stopPropagation()}},{key:"hasReports",value:function(e){return!!e&&(!!(e[_.a]&&Object.keys(e[_.a]).length>0)||(!!(e[_.b]&&Object.keys(e[_.b]).length>0)||void 0))}},{key:"render",value:function(){var e=this,t=!1;if(this.props.targetType===f.d)t=!0;else if(this.props.targetType===f.a){var r=this.props,o=r.isMine,i=r.target;t=o&&i.parentId===i.linkId}return b("div",{className:"ModeratorModalWrapper"},void 0,b(p.Modal,{id:this.props.modModalId,className:"DropdownModal ModeratorModal"},void 0,b(v.b,{onClick:this.props.onClick}),b("div",{onClick:this.props.onClick},void 0,b(h.a,{status:n.i(y.b)(this.props.isApproved,this.props.isRemoved,this.props.isSpam),statusBy:n.i(y.c)(this.props.isApproved,this.props.isRemoved,this.props.isSpam,this.props.removedBy,this.props.approvedBy),pageName:"moderatorModal"}),b("div",{className:"ModeratorModalRowWrapper"},void 0,this.props.targetType===f.d?[b(v.a,{icon:"nsfw",text:this.props.isNSFW?"Unmark NSFW":"Mark NSFW",onClick:this.props.toggleNSFW,isSelected:this.props.isNSFW}),b(v.a,{icon:"spoiler",text:this.props.isSpoiler?"Unspoiler":"Spoiler",onClick:this.props.toggleSpoiler,isSelected:this.props.isSpoiler}),b(v.a,{icon:"lock",text:this.props.isLocked?"Unlock":"Lock",onClick:this.props.toggleLock,isSelected:this.props.isLocked})]:null,this.hasReports(this.props.reports)&&b("div",{onClick:function(t){return e.preventModalClose(t)}},void 0,b(p.ModalTarget,{id:this.props.reportModalId},void 0,S)),this.props.isMine?b(v.a,{icon:"distinguish",text:this.showDistinguish(this.props.distinguishType)?"Undistinguish":"Distinguish",onClick:function(){return e.onDistinguish(e.props.distinguishType)},isSelected:this.showDistinguish(this.props.distinguishType)}):null,t?b(v.a,{icon:"sticky",text:(this.props.isSticky?"Unpin":"Pin")+" as announcement",onClick:this.props.onToggleSticky,isSelected:this.props.isSticky}):null,b("div",{className:"m-nonToggleActions"},void 0,b(v.a,{icon:"delete_remove",text:"Remove",onClick:this.props.onRemove,isSelected:this.props.isRemoved}),b(v.a,{icon:"spam",text:"Spam",onClick:this.props.onSpam,isSelected:this.props.isSpam}),b(v.a,{icon:"check-circled",text:"Approve",onClick:this.props.onApprove,isSelected:this.props.isApproved}))))))}}]),t}(s.a.Component);O.propTypes={id:w.string.isRequired,modModalId:w.string.isRequired,onClick:w.func,onSpam:w.func.isRequired,onApprove:w.func.isRequired,onRemove:w.func.isRequired,toggleLock:w.func.isRequired,toggleNSFW:w.func.isRequired,toggleSpoiler:w.func.isRequired,isSticky:w.bool.isRequired,isApproved:w.bool.isRequired,isRemoved:w.bool.isRequired,isSpam:w.bool.isRequired,removedBy:w.string,approvedBy:w.string,distinguishType:w.string,isMine:w.bool,reports:w.object,target:w.object,targetType:w.oneOf([f.a,f.d]).isRequired},O.defaultProps={target:null,reports:null};var P=n.i(l.createSelector)(function(e,t){return n.i(m.a)(t.id,e)},function(e){return{target:e}}),R=function(e,t){var n=t.id,r=t.isSticky,o=t.targetType;return{onSpam:function(){return e(g.b(n,!0))},onApprove:function(){return e(g.c(n))},onRemove:function(){return e(g.b(n,!1))},toggleLock:function(){return e(g.d(n))},toggleNSFW:function(){return e(g.e(n))},toggleSpoiler:function(){return e(g.f(n))},onDistinguish:function(t){return e(g.g(n,t))},onToggleSticky:function(){e(o===f.d?g.h(n,!r):g.i(n,!r))}}};t.a=n.i(c.connect)(P,R)(O)},function(e,t,n){"use strict";var r=n(1668),o=(n.n(r),n(0)),i=(n.n(o),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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}());t.a=i("span",{className:"NSFWFlair"},void 0,i("span",{className:"icon icon-nsfw nsfw"}),"NSFW")},function(e,t,n){"use strict";function r(e){var t=e.isCustomFeed;return u("div",{className:"NSFWInterstitial"},void 0,s,u("h3",{className:"NSFWInterstitial__header"},void 0,"You must be 18+ to view this ",t?"custom feed":"community"),c,l)}var o=n(1669),i=(n.n(o),n(0)),a=(n.n(i),n(6));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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=u("div",{className:"NSFWInterstitial__icon-wrapper"},void 0,u("span",{className:"NSFWInterstitial__icon icon icon-header-18plus nsfw"})),c=u("p",{className:"NSFWInterstitial__text"},void 0,"You must be at least eighteen years old to view this content. Are you over eighteen and willing to see adult content?"),l=u("div",{className:"NSFWInterstitial__buttons"},void 0,u(a.b,{href:"/",className:"NSFWInterstitial__button"},void 0,"NO THANK YOU"),u(a.d,{action:"/actions/setOver18",className:"NSFWInterstitial__form"},void 0,u("button",{type:"submit",className:"NSFWInterstitial__button"},void 0,"CONTINUE")))},function(e,t,n){"use strict";var r=n(0),o=(n.n(r),n(42)),i=n(655),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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),u=a(o.a,{}),s=a(i.a,{}),c=function(e){var t=e.isContentAdultStatusKnown,n=e.isContentOver18,r=e.userPermitsOver18,o=e.children,i=o;return r||(t?n&&(i=s):i=u),a("div",{className:"UserProfilePage"},void 0,i)};t.a=c},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)}function a(e){if(e.subtext)return!1;var t=void 0;if(e.iconURL){var n={backgroundImage:"url("+e.iconURL+")"};e.iconBackgroundColor&&(e.theme===_&&(n.borderColor=e.iconBackgroundColor),n.backgroundColor=e.iconBackgroundColor),e.iconWidth&&(n.width=e.iconWidth),t=g("span",{className:"OverlayMenu-icon OverlayMenu-icon-img",style:n})}else if(e.icon){var r={};e.iconBackgroundColor&&(e.theme===_?r.borderColor=e.iconBackgroundColor:r.backgroundColor=e.iconBackgroundColor),t=g("span",{className:"OverlayMenu-icon icon "+e.icon,style:r})}return g("span",{className:"OverlayMenu-row-spacer"},void 0,t)}function u(e){return g("li",{className:"OverlayMenu-row"},void 0,g(h.d,{action:e.action,className:"OverlayMenu-row-button"},void 0,T(e.parms||{}),g("button",{type:"submit",className:"OverlayMenu-row-button"},void 0,a(e),g("span",{className:"OverlayMenu-row-text"},void 0,e.text),e.children)))}function s(e){var t={className:"OverlayMenu-row-button",href:e.href,children:[a(e),g("span",{className:"OverlayMenu-row-text"},void 0,e.text)]};return g("li",{className:"OverlayMenu-row",onClick:e.onClick},void 0,e.noRoute?f.a.createElement("a",t):f.a.createElement(h.b,t),e.children)}var c=n(685),l=(n.n(c),n(0)),f=n.n(l),d=n(369),p=n.n(d),h=n(6),v=n(5);n.d(t,"c",function(){return u}),n.d(t,"b",function(){return s}),n.d(t,"a",function(){return S});var m=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),_=v.g.NIGHTMODE,b=f.a.PropTypes,E={text:b.node.isRequired,icon:b.string,iconURL:b.string,theme:b.string},T=function(e){var t=Object.keys(e);return p()(t,function(t){return g("input",{type:"hidden",name:t,value:e[t]},"button-row-input-"+t)})};u.propTypes=y({},E,{action:b.string.isRequired,params:b.object}),s.propTypes=y({},E,{href:b.string.isRequired,noRoute:b.bool,clickHandler:b.func,onClick:b.func,iconWidth:b.number});var w=g("br",{}),S=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));
return n.state={expanded:e.autoExpanded},n._onClick=n._onClick.bind(n),n}return i(t,e),m(t,[{key:"_onClick",value:function(){var e=!this.state.expanded;this.setState({expanded:e})}},{key:"render",value:function(){var e=this.props,t=this.state.expanded,n=void 0;t&&(n=g("ul",{className:"OverlayMenu-ul list-unstyled"},void 0,e.children));var r=void 0;return r=e.subtext?g("span",{className:"OverlayMenu-row-text with-subtext"},void 0,e.text,w,g("span",{className:"OverlayMenu-row-text subtext"},void 0,e.subtext)):g("span",{className:"OverlayMenu-row-text"},void 0,e.text),g("li",{className:"OverlayMenu-row top-border"},void 0,g("button",{type:"button",className:"OverlayMenu-row-button",onClick:this._onClick},void 0,a(e),r,g("span",{className:"OverlayMenu-row-right-item"},void 0,g("span",{className:"icon "+(t?"icon-nav-arrowup":"icon-nav-arrowdown")}))),n)}}]),t}(f.a.Component);S.propTypes=y({},E,{subtext:b.string,autoExpanded:b.bool}),S.defaultProps={autoExpanded:!1}},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){var t=e.post,r=e.isDomainExternal,o=e.compact,u=e.isThumbnail,c=e.interceptListingClick,l=e.renderMediaFullbleed,f=e.showLinksInNewTab,d=n.i(G.a)(n.i(j.a)(t.cleanUrl)),p=new z(d,(!0)),h=s(t,p,e),v=a(e);return h||v||r&&!o?K("div",{className:"PostContent "+(u?"size-compact":"size-default"),onClick:function(e){return c(e,q.u.CONTENT)}},void 0,i(h,u,r,n.i(G.b)(t.domain),d,l,f,t.outboundLink,t.promoted),v):null}function i(e,t,n,r,o,i,a,u,s){return t||!n||i?e:K("div",{className:"PostContent__media-wrapper"},void 0,e,!s&&E(r,o,a,u,s))}function a(e){var t=e.single,r=e.editing,o=e.post;if(t){if(r)return u(o.selfTextMD,e);if(o.selfTextHTML){var i=n.i(j.a)(o.selfTextHTML);return K(B.a,{},void 0,K("div",{className:"PostContent__selftext",dangerouslySetInnerHTML:{__html:i}}))}}}function u(e,t){var n=t.editPending,r=t.onToggleEdit,o=t.onUpdateSelftext;return K(U.a,{startingText:e,editPending:n,onCancelEdit:r,onSaveEdit:o})}function s(e,t,r){var o=r.isPlaying,i=r.isThumbnail,a=r.single,u=r.width,s=r.showNSFW,f=r.onTapExpand,p=r.interceptListingClick,h=r.togglePlaying,v=r.showSpoilers,m=e.media?e.media.oembed:null;if(i&&!e.preview&&!m)return null;var y=n.i(G.c)(e),g=e.spoiler,_=S(y,g,s,v),b=I(e),E=C(e),T=void 0;if((e.preview||m)&&(T=n.i(W.a)(i,e.preview,e.thumbnail,m,u,_)),T&&T.url){var O=n.i(F.a)(T.url);O&&O.poster&&(T.url=O.poster)}var P=void 0;if(P=e.promoted&&!e.isSelf?null:function(e){if(!p(e,q.u.CONTENT)){e.preventDefault();var t="thumbnail";f(t),b!==J.NOT_PLAYABLE&&h()}},i&&T&&T.url)return d(T,E,t,P,_,b,r);if(b!==J.NOT_PLAYABLE&&T&&w(m,E,o)){var R=function(e){p(e,q.u.CONTENT)||(e.preventDefault(),(y||g)&&r.toggleShowNSFW(),h())};return c(T,E,t,R,_,b,r)}if(m)return l(e,E,m,a);if(T||e.media&&e.media.reddit_video){var A=y||g?function(e){p(e,q.u.CONTENT)||(e.preventDefault(),r.toggleShowNSFW())}:null;return c(T,E,t,A,_,b,r)}}function c(e,t,r,o,i,a,u){var s=u.single,c=u.isPlaying,l=u.post;if(c||!i){if(l.media&&l.media.reddit_video){var f=l.media.reddit_video,p=f.width,h=f.height,v=O(s,p,h),g={dash:l.media.reddit_video.dash_url,hls:l.media.reddit_video.hls_url,scrubberThumbSource:l.media.reddit_video.scrubber_media_url,isGif:l.media.reddit_video.is_gif,width:p,height:h};return y(g,e,v,u)}var _=n.i(F.a)(t,e.url);if(c&&_){var b=e.width,E=e.height,T=O(s,b,E);if(_.iframe)return m(_.iframe,T);var w={webm:_.webm,mp4:_.mp4,width:e.width,height:e.height};return y(w,_.poster,T,u)}}return d(e,t,r,o,i,a,u)}function l(e,t,n,r){var o=O(r,n.width,n.height);switch(n.type){case"image":return m(t,o);case"video":return _(e.expandedContent,o);case"rich":return f(n.html,o)}}function f(e,t){var n=e.match(/src="([^"]*)/);if(n&&n[1]){var r=n[1].replace("&amp;","&");return m(r,t)}}function d(e,t,n,r,o,i,a){var u=a.isThumbnail,s=a.single,c=a.showLinksInNewTab,l=a.post,f=a.forceHTTPS,d=a.isPlaying,p=void 0;i&&!o&&(p=b(i,u));var m=void 0;o&&(m=T(u,l));var y=c?"_blank":null;if((null===e||void 0===e)&&l.media&&l.media.reddit_video)return v(null,t,n,g,r,u,p,m,y,l.outboundLink,f,d,l.promoted);var g=O(s,e.width,e.height);return e&&e.url&&!g?h(e.url,n,r,p,m,y,l.outboundLink,l.promoted):v(e,t,n,g,r,u,p,m,y,l.outboundLink,f,d,l.promoted)}function p(e,t){return"PostContent__image-link "+(t&&!e?"placeholder":"")}function h(e,t,n,r,o,i,a,u){var s=p(e,!!o);return K(H.a,{className:s,href:t.url,target:i,onClick:n,outboundLink:a,promoted:u},void 0,K("img",{className:"PostContent__image-img",src:e}),r,o)}function v(e,t,r,o,i,a,u,s,c,l,f,d,h){var v={};if(e&&e.url&&!d){var m=n.i(F.b)(t),y=m&&!s?m:e.url;v.backgroundImage='url("'+R(y,f)+'")'}var g=p(e?e.url:null,!!s);return a||(g+=" "+n.i(W.b)(o)),K(H.a,{className:g,href:r.url,target:c,onClick:i,style:v,outboundLink:l,promoted:h},void 0,d?K("img",{className:"PostContent__inline-gif",src:t}):u,s)}function m(e,t){return K("div",{className:"PostContent__iframe-wrapper "+n.i(W.b)(t)},void 0,K("iframe",{className:"PostContent__iframe",src:e,frameBorder:"0",allowFullScreen:"",sandbox:"allow-scripts allow-forms allow-same-origin allow-popups"}))}function y(e,t,r,o){var i=o.post,a=o.onUpdatePostPlaytime;if(e.hls||e.dash){var u=void 0;return u=e.width/e.height<16/9?O(!1,16,9):O(!1,e.width,e.height),K(V.a,{postData:i,onUpdatePostPlaytime:a,aspectRatioClassname:n.i(W.b)(u),hlsSource:e.hls,mpegDashSource:e.dash,isGif:e.isGif,isVertical:e.height>e.width,posterImage:null!==t&&void 0!==t?t.url:null,scrubberThumbSource:e.scrubberThumbSource})}return K("div",{className:"PostContent__video-wrapper "+n.i(W.b)(r)},void 0,M.a.createElement("video",{className:"PostContent__video",poster:t,loop:"true",muted:"true",controls:"true",autoPlay:"true",ref:P},g(e)))}function g(e){var t=[];return["mp4","webm"].forEach(function(n){var r=e[n];r&&t.push(K("source",{type:"video/"+n,src:r},"video-src-"+n))}),t}function _(e,t){return K(B.a,{},void 0,K("div",{className:"PostContent__html "+n.i(W.b)(t),dangerouslySetInnerHTML:{__html:e}}))}function b(e,t){if(e!==J.NOT_PLAYABLE){var n="PostContent__playback-action-icon darkgrey";e===J.GALLERY?n+=" icon icon-gallery_squares":e===J.INLINE&&(n+=" icon icon-play_triangle");var r=t?"compact":"regular",o="PostContent__playback-action-circle "+r;return K("div",{className:o},void 0,K("span",{className:n}))}}function E(e,t,n,r,o){var i=n?"_blank":null;return K(H.a,{className:"PostContent__link-bar",href:t,target:i,outboundLink:r,promoted:o},void 0,K("span",{className:"PostContent__link-bar-text"},void 0,e),X)}function T(e,t){if(e)return $;var r=void 0;return n.i(G.c)(t)&&t.spoiler?r="NSFW and as a spoiler":n.i(G.c)(t)?r="NSFW":t.spoiler&&(r="a spoiler"),K("div",{className:"PostContent__warning"},void 0,K("p",{className:"PostContent__warning-text"},void 0,"This post is marked as ",r),Q)}function w(e,t,n){if(!n||!e)return!0;if("video"!==e.type)return!1;var r=e.provider_name.toLowerCase();return"gfycat"===r||"imgur"===r||/\.gif$/.test(t)}function S(e,t,n,r){return e&&!n||t&&r}function O(e,t,r){return t&&r?e?t/r:n.i(W.c)(t/r):W.d}function P(e){e&&e.play()}function R(e,t){var n=D.a.parse(e);return n.protocol=t?"https:":n.protocol,D.a.format(n)}function I(e){var t=e.media;if(t){var n=Object.keys(t);if(n.length&&0===n[0].localeCompare("reddit_video"))return J.INLINE}if(t&&t.oembed){var r=t.oembed.type;if("gallery"===r)return J.GALLERY;if("rich"===r&&"imgur"===t.oembed.provider_name.toLowerCase())return J.GALLERY;if("image"!==r)return J.INLINE}return e.cleanUrl&&e.cleanUrl.indexOf(".gif")>-1?J.INLINE:J.NOT_PLAYABLE}function A(e){var t=e.cleanUrl;if("i.redd.it"===e.domain&&t.indexOf(".gif")>-1){var r=n.i(W.e)(e.preview);if(r&&r.url.indexOf("fm=mp4")>-1)return r}return null}function C(e){var t=A(e)||{},n=t.url;return n||e.cleanUrl}var x=n(1674),N=(n.n(x),n(0)),M=n.n(N),k=n(63),D=n.n(k),L=n(38),j=n(220),F=n(1608),U=n(648),B=n(119),H=n(280),q=n(5),V=n(1406),G=n(219),W=n(1426);t.a=o;var K=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),Y=M.a.PropTypes,z=function Z(e,t){r(this,Z),this.url=e,this.outbound=t};o.propTypes={post:Y.instanceOf(L.a),compact:Y.bool.isRequired,single:Y.bool.isRequired,onTapExpand:Y.func.isRequired,expandedCompact:Y.bool.isRequired,width:Y.number.isRequired,toggleShowNSFW:Y.func.isRequired,togglePlaying:Y.func.isRequired,showNSFW:Y.bool.isRequired,showSpoilers:Y.bool.isRequired,editing:Y.bool,editPending:Y.bool,onToggleEdit:Y.func.isRequired,onUpdateSelftext:Y.func.isRequired,onUpdatePostPlaytime:Y.func.isRequired,forceHTTPS:Y.bool.isRequired,isDomainExternal:Y.bool.isRequired,renderMediaFullbleed:Y.bool.isRequired,isThumbnail:Y.bool.isRequired,isPlaying:Y.bool,interceptListingClick:Y.func.isRequired},o.defaultProps={editing:!1,editPending:!1,isPlaying:!1};var X=K("span",{className:"PostContent__link-bar-icon icon icon-linkout blue"}),$=K("div",{className:"PostContent__warning"}),Q=K("p",{className:"PostContent__warning-button"},void 0,"Show Post?"),J={GALLERY:"gallery",INLINE:"inline",NOT_PLAYABLE:"not-playable"}},function(e,t,n){"use strict";function r(e){var t=e.loading,n=e.records;if(t)return g;var r=function(t){return _(e,t)};return m("div",{className:"PostAndCommentList"},void 0,m("div",{},void 0,n.map(r),n.length>0&&m(l.a,{records:n})))}var o=n(1678),i=(n.n(o),n(0)),a=n.n(i),u=n(3),s=(n.n(u),n(4)),c=(n.n(s),n(20)),l=n(282),f=n(283),d=n(1386),p=n(42),h=n(418),v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),y=a.a.PropTypes;r.propTypes={loading:y.bool.isRequired,records:y.array.isRequired,thingProps:y.object},r.defaultProps={thingProps:{}};var g=m(p.a,{}),_=function(e,t){var n=e.user,r=e.comments,o=e.commentDispatchers,i=e.thingProps,u=e.thingsBeingEdited,s=e.replyingList,l=t.uuid,p=t.type;switch(p){case c.d:return a.a.createElement(f.a,v({postId:l,key:"post-id-"+l},i));case c.a:var h=u[l];return a.a.createElement(d.a,v({comment:r[t.uuid],key:"comment-id-"+l},i,{commentDispatchers:o,user:n,commentReplying:!!s[l],editing:!!h,editPending:!(!h||!h.pending)}));default:return null}},b=function(e,t,n){return"activitiesRequests"===n?function(n){var r="comment"===n.type?t:e;return r[n.uuid]}:function(r){var o="comment"===r.type?t:e,i="savedRequests"===n?"saved":"hidden";return o[r.uuid][i]}},E=n.i(s.createSelector)(function(e){return e.user},function(e){return e.posts},function(e){return e.comments.data},function(e,t){return t.requestLocation},function(e,t){return e[t.requestLocation][t.requestId]},function(e){return e.editingText},function(e){return e.replying},function(e,t,n,r,o,i,a){var u=b(t,n,r);return{user:e,request:o,comments:n,thingsBeingEdited:i,replyingList:a,loading:!o||o.loading,records:o?o.results.filter(u):[]}}),T=function(e){return{commentDispatchers:n.i(h.b)(e)}};t.a=n.i(u.connect)(E,T)(r)},function(e,t,n){"use strict";var r=n(1683),o=(n.n(r),n(0)),i=(n.n(o),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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}());t.a=i("span",{className:"QuarantineBadge"},void 0,"Quarantined")},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(1684),u=(n.n(a),n(0)),s=n.n(u),c=n(6),l=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=l("div",{className:"QuarantineBanner__icon icon icon-xl icon-header_quarantine"}),p=l("div",{className:"QuarantineBanner__summary"},void 0,"This community is quarantined.",l("br",{}),"Tap to learn more."),h=l("a",{href:"https://www.reddithelp.com/en/categories/reddit-101/rules-reporting/account-and-community-restrictions/quarantined-subreddits"},void 0,"quarantined"),v=l("button",{type:"submit",className:"QuarantineBanner__button"},void 0,"Leave this community"),m=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.expand=function(){n.state.expanded||n.setState({expanded:!0})},n.state={expanded:!!e.expanded},n}return i(t,e),f(t,[{key:"render",value:function(){var e=this.props,t=this.state;return l("div",{className:"QuarantineBanner "+(t.expanded?"expanded":"collapsed"),onClick:this.expand},void 0,d,p,l("div",{className:"QuarantineBanner__details"},void 0,"This community is ",h,".",l("span",{dangerouslySetInnerHTML:{__html:e.quarantineMessageHTML}}),l(c.d,{action:"/actions/optOutOfQuarantine",className:"QuarantineBanner__form"},void 0,l("input",{type:"hidden",name:"subredditName",value:e.subredditName}),v)))}}]),t}(s.a.Component);t.a=m},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(1686),l=(n.n(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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}()),f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=s.a.PropTypes,p=new Promise(function(e){"undefined"!=typeof window&&(window.grecaptchaOnLoad=e)}),h=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),f(t,[{key:"componentDidMount",value:function(){function e(){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function n(){var e,t,r,o,i,a,u,s,c,l;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(e=this.props,t=e.elementId,r=e.sitekey,o=e.theme,i=e.type,a=e.size,u=e.tabindex,s=e.onSuccess,c=e.onExpiration,window.grecaptcha){n.next=7;break}return l=document.createElement("script"),l.src="https://www.google.com/recaptcha/api.js?onload=grecaptchaOnLoad&render=explicit",document.body.appendChild(l),n.next=7,p;case 7:window.grecaptcha.render(t,{sitekey:r,theme:o,type:i,size:a,tabindex:u,callback:s,"expired-callback":c});case 8:case"end":return n.stop()}},n,this)}));return e}()},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"componentWillReceiveProps",value:function(e){e.reloadComparisonKey!==this.props.reloadComparisonKey&&window.grecaptcha&&window.grecaptcha.reset()}},{key:"render",value:function(){var e=this.props.elementId;return l("div",{className:"ReCaptcha",id:e})}}]),t}(s.a.Component);h.propTypes={elementId:d.string,sitekey:d.string.isRequired,reloadComparisonKey:d.string.isRequired,theme:d.oneOf(["light","dark"]),type:d.oneOf(["image","audio"]),size:d.oneOf(["normal","compact"]),tabindex:d.number,onSuccess:d.func,onExpiration:d.func},h.defaultProps={elementId:"g-recaptcha",theme:"light",type:"image",size:"normal",tabindex:0},t.a=h},function(e,t,n){"use strict";function r(e){var t=e.reports,r=e.isApproved,a=e.isRemoved,u=e.isSpam,s=e.removedBy,v=e.approvedBy,m=e.reportModalId,y=e.onClick;if(!t)return null;var g=n.i(d.b)(r,a,u),_=n.i(d.c)(r,a,u,s,v),b=t[p.b],E=t[p.a];return h("div",{className:"ReportsModal__wrapper",onClick:y},void 0,h(c.Modal,{id:m,className:"DropdownModal ReportsModal"},void 0,h(l.b,{onClick:y}),h("div",{className:"ReportsModal__row-wrapper",onClick:y},void 0,g&&_&&h(f.a,{status:g,statusBy:_,pageName:"moderatorModal"}),o(b),i(E))))}function o(e){if(e&&Object.keys(e).length>0)return h("div",{className:"ReportsModal__reports"},void 0,m,Object.keys(e).map(function(t){return h("div",{},void 0," ",t+": "+e[t]," ")}))}function i(e){if(e&&Object.keys(e).length>0)return h("div",{className:"ReportsModal__reports"},void 0,y,Object.keys(e).map(function(t){return h("div",{},void 0," ",e[t]+": "+t," ")}))}var a=n(1692),u=(n.n(a),n(0)),s=n.n(u),c=n(90),l=(n.n(c),n(182)),f=n(419),d=n(292),p=n(285);t.a=r;var h=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),v=s.a.PropTypes,m=h("div",{className:"m-reports-title"},void 0,"Moderator Reports:"),y=h("div",{className:"m-reports-title"},void 0,"User Reports:");r.propTypes={onToggleModal:v.func.isRequired,reports:v.object,isApproved:v.bool,isRemoved:v.bool,isSpam:v.bool,removedBy:v.string,approvedBy:v.string,reportModalId:v.string},r.defaultProps={reports:null,isApproved:!0,isRemoved:!1,isSpam:!1,removedBy:null,approvedBy:null,reportModalId:""}},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(1697),u=(n.n(a),n(0)),s=n.n(u),c=n(3),l=(n.n(c),n(151)),f=n(17);n.d(t,"b",function(){return m});var 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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=f.a.assetPath+"/img/icon_share_32.png",v=f.a.assetPath+"/img/icon_share_ios_32.png",m=function(e){var t=e.sharing.hasWebShare,n=t?h:v,r=t?"v1":"v2";return{hasWebShare:t,icon:n,iconType:r}},y=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),p(t,[{key:"handleShare",value:function(e){this.props.prepareShare(this.props.payload),e.stopPropagation()}},{key:"render",value:function(){var e=this,t=this.props.sharingData,n=t.icon,r=t.iconType;return d("span",{className:"Share",onClick:function(t){e.handleShare(t)}},void 0,d("img",{className:"Share__image "+r,src:n}),"Share")}}]),t}(s.a.Component),g={prepareShare:l.a},_=function(e,t){var n=m(e),r=n.hasWebShare,o={post:t.post,url:t.post.cleanPermalink,tags:[]};return o.tags=r?["WebShare"]:["ClipboardShare"],{sharingData:n,payload:o}},b=n.i(c.connect)(_,g)(y);t.a=b},function(e,t,n){"use strict";function r(e){var t=e.id,n=e.sortOptions,r=e.sortValue,o=e.onSortChange,i=e.title,u=e.className;return l("div",{className:"SortSelector "+u},void 0,l(a.TooltipTarget,{id:t,type:a.TooltipTarget.TYPE.CLICK},void 0,v(r)),l(c.e,{id:t},void 0,i&&l("div",{className:"SortSelector__title"},void 0,i.toUpperCase(),p),y(n,r,o)))}var o=n(0),i=n.n(o),a=n(190),u=(n.n(a),n(1699)),s=(n.n(u),n(76)),c=n(182);t.a=r;var l=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),f=i.a.PropTypes,d=function(e){return s.c[e]?e:s.a.CONFIDENCE},p=l("div",{className:"SortSelector__title-separator"}),h=l("span",{className:"SortSelector__currentCaron icon icon-caron"}),v=function(e){var t=d(e),n=s.c[t],r=n.text,o=n.icon;return l("div",{className:"SortSelector__currentSort"},void 0,o&&m(t),l("span",{className:"SortSelector__currentText"},void 0,r),h)},m=function(e){var t=s.c[e].icon;return"circle"===t&&(t="history"),l("span",{className:"SortSelector__currentIcon icon icon-"+t})},y=function(e,t,n){var r=d(t);return e.map(function(e){var t=e===r,o=s.c[e],i=o.icon,a=o.text,u="circle"===i&&t?"check-circled":i;return l(c.a,{onClick:function(){t||n(e)},icon:u,text:a,isSelected:t},e)})};r.sortType=f.oneOf(Object.values(s.a)),r.sortOptionsType=f.arrayOf(r.sortType),r.propTypes={className:f.string,id:f.string.isRequired,sortOptions:r.sortOptionsType.isRequired,sortValue:r.sortType.isRequired,onSortChange:f.func.isRequired,title:f.string},r.defaultProps={className:"",title:"Sort by:",onSortChange:function(){}}},function(e,t,n){"use strict";var r=n(1700),o=(n.n(r),n(0)),i=n.n(o),a=n(3),u=(n.n(a),n(4)),s=(n.n(u),n(6)),c=n(88),l=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),f=i.a.PropTypes,d=function(e,t){return l(s.b,{href:e,className:"SubNav__a"},void 0,t)},p=function(e,t){return e?d(e.href,e.text):t?void 0:d("/login","Log in / Register")},h=function(e){var t=e.user,n=e.rightLink,r=e.showWithoutUser,o=e.children;return!t||n&&r||o?l("nav",{className:"SubNav"},void 0,l("div",{className:"SubNav__leftContent"},void 0,o),l("div",{className:"SubNav__navLink"},void 0,p(n,!!t))):null};h.propTypes={rightLink:f.shape({href:f.string.isRequired,text:f.string.isRequired})};var v=n.i(u.createSelector)(c.a,function(e){return{user:e}});t.a=n.i(a.connect)(v)(h)},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){var t=e.descriptionHTML,n=e.kind,r=e.shortName,o=p[n];return l("div",{className:"SubredditRule"},void 0,l("div",{className:"SubredditRule__title"},void 0,r),l("div",{className:"SubredditRule__meta"},void 0,o),t&&l("div",{className:"SubredditRule__description"},void 0,l("div",{dangerouslySetInnerHTML:{__html:t}})))}var i=n(1702),a=(n.n(i),n(0)),u=n.n(a),s=n(275);t.a=o;var c,l=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),f=u.a.PropTypes,d=s.a.RULE_TARGET,p=(c={},r(c,d.ALL,"Posts & Comments"),r(c,d.POST,"Posts only"),r(c,d.COMMENT,"Comments only"),c);o.propTypes={descriptionHTML:f.string,kind:f.oneOf(Object.values(d)).isRequired,shortName:f.string.isRequired},o.defaultProps={descriptionHTML:""}},function(e,t,n){"use strict";var r=n(1706),o=(n.n(r),n(0)),i=(n.n(o),n(3)),a=(n.n(i),n(4)),u=(n.n(a),n(17)),s=n(6),c=n(10),l=n(7),f=n(30),d=n(177),p=n(216),h=n(5),v=n(644),m=n(1409),y=n(147),g=n(1455),_=n(431),b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),T=E(v.a,{className:"svg-menu-icon"}),w=function(e){var t=e.isLoggedIn,r=e.overlay,o=e.togglePostSubmit,i=e.toggleXPromoChat;if(!t)return E("div",{className:"MobileButton TopNav-floaty",onClick:i},void 0,T);var a=n.i(f.a)("icon icon-large",{"icon-post_edit":r!==d.a,"icon-nav-close":r===d.a});return E("div",{className:"MobileButton TopNav-floaty",onClick:o},void 0,E("span",{className:a}))},S=E(g.a,{}),O=E(s.b,{className:"MobileButton TopNav-padding TopNav-snoo",href:"/"},void 0,E(y.a,{})),P=E("span",{className:"icon icon-search icon-large"}),R=function(e){var t=e.assetPath,r=e.overlay,o=e.feature,i=void 0;e.user&&e.user.inbox_count&&(i=E("span",{className:"badge badge-xs badge-orangered badge-right"},void 0,e.user.inbox_count));var a=r===d.b,s=r===d.c,c=n.i(f.a)("icon icon-menu icon-large",{blue:a}),l=n.i(f.a)("icon icon-nav-arrowdown",{blue:s}),p=e.toggleCommunityMenu,v=e.openSearchBar,y=e.toggleSettingsMenu;return E("nav",{className:"TopNav"+(a?" opened":"")},void 0,S,E("div",{className:"pull-left TopNav-padding TopNav-left"},"topnav-menu",O,E("h1",{className:"TopNav-text TopNav-padding"},void 0,E("div",{className:"TopNav-text-community-menu-button TopNav-text-vcentering",onClick:p},void 0,E("div",{className:"TopNav-text-vcentering"},void 0,E(m.a,{assetPath:t?t:""})),E("div",{className:"MobileButton community-button"},void 0,E("span",{className:l}))))),E("div",{className:"TopNav-padding TopNav-right"},"topnav-actions",w(e),E("div",{className:"MobileButton TopNav-floaty",onClick:v},void 0,P),E("div",{className:"MobileButton TopNav-floaty",onClick:y},void 0,o.enabled(h.h.MCDONALDS_CAMPAIGN)?E("img",{src:u.a.assetPath+"/img/mcdonalds-burger@2x.png",className:"TopNav-Mcdonalds"}):E("span",{className:c},void 0,i))))},I=n.i(a.createSelector)(function(e){return e.overlay},function(e){return e.session.isValid},function(e){return e.platform.currentPage&&e.platform.currentPage.url},_.a,function(e,t,n,r){return{currentPageUrl:n,overlay:e,isLoggedIn:t,feature:r}}),A=function(e){return{toggleCommunityMenu:function(){e(p.b()),e(d.d())},togglePostSubmit:function(t){e(t?d.e():l.e(c.a.GET,"/register"))},openSearchBar:function(){e(d.f())},toggleSettingsMenu:function(){e(d.g())},toggleXPromoChat:function(t){t!==h.A&&e(l.e(c.a.GET,h.A))}}},C=function(e,t){var n=e.currentPageUrl,r=e.isLoggedIn,o=t.togglePostSubmit,i=t.toggleXPromoChat;return b({},e,t,{togglePostSubmit:function(){return o(r)},toggleXPromoChat:function(){return i(n)}})};t.a=n.i(i.connect)(I,A,C)(R)},function(e,t,n){"use strict";var r=n(1708),o=(n.n(r),n(0)),i=n.n(o),a=n(6),u=n(287),s=n(115),c=n(423),l=n(289);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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),d=i.a.PropTypes,p=function(e){var t=e?"follower":"follow";return f("button",{type:"submit",className:"UserProfileHeader__"+t},void 0," "+(e?"Following":"Follow")+" ")},h=function(e){return f("header",{className:"UserProfileHeader"},void 0,i.a.createElement(v,e),i.a.createElement(m,e))};h.propTypes={userName:d.string.isRequired,userSubreddit:d.string.isRequired,karma:d.number.isRequired,currentActivity:d.string,isMyUser:d.bool,loading:d.bool};var v=function(e){var t=e.isLoggedIn,r=e.isMyUser,o=e.karma,i=e.toggleXPromoChat,a=e.userName,u=e.userSubreddit;return f("div",{className:"UserProfileHeader__banner"},void 0,f("h3",{className:"UserProfileHeader__banner-user-name"},void 0,"u/",a),f("h5",{className:"UserProfileHeader__banner-karma"},void 0,n.i(l.a)(o)," karma"),t?u&&!r&&f(c.a,{subredditName:u.toLowerCase(),className:"CommunityHeader-subscribe-form CommunityHeader-no-outline",renderBody:p}):f("button",{className:"UserProfileHeader__follow",onClick:i},void 0,"Start chat"))},m=function(e){var t=e.userName,n=e.currentActivity;return f("nav",{className:"UserProfileHeader__tabs"},void 0,f(y,{href:u.a.activityUrl(t,s.b),text:"POSTS",selected:n===s.b}),f(y,{href:u.a.activityUrl(t,s.c),text:"COMMENTS",selected:n===s.c}),f(y,{href:u.a.activityUrl(t,null),text:"ABOUT",selected:void 0===n}))},y=function(e){var t=e.href,n=e.text,r=e.selected;return f(a.b,{href:t,className:"UserProfileHeader__tab"},void 0,f("div",{className:_(r)},void 0,n))},g=function(e){return e?"selected":""},_=function(e){return"UserProfileHeader__tab-text "+g(e)}},function(e,t,n){"use strict";function r(e){var t=e.voteDirection,r=e.score,o=e.scoreHidden,i=e.onVote,a=e.interceptVote,u=n.i(s.a)("VotingBox__upvote icon icon-upvote",{
"upvoted m-animated":1===t}),l=n.i(s.a)("VotingBox__downvote icon icon-downvote",{"downvoted m-animated":t===-1}),d=n.i(s.a)("VotingBox__score",{upvoted:1===t,downvoted:t===-1}),p=1===t?0:1,h=t===-1?0:-1;return f("div",{className:"VotingBox"},void 0,f("div",{className:u,onClick:function(e){a(e)||i(p)}}),f("div",{className:d,onClick:function(e){return a(e)}},void 0,o?"●":n.i(c.a)(r)),e.hideDownvote?null:f("div",{className:l,onClick:function(e){a(e)||i(h)}}))}var o=n(1710),i=(n.n(o),n(0)),a=n.n(i),u=n(3),s=(n.n(u),n(30)),c=n(438),l=n(217),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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),d=a.a.PropTypes;r.propTypes={thingId:d.string.isRequired,score:d.number.isRequired,voteDirection:d.number.isRequired,hideDownvote:d.bool.isRequired,scoreHidden:d.bool,interceptVote:d.func},r.defaultProps={scoreHidden:!1,interceptVote:function(){return!1}};var p=function(e,t){var n=t.thingId;return{onVote:function(t){return e(l.a(n,t))}}};t.a=n.i(u.connect)(null,p)(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(3),i=(n.n(o),n(1451)),a=n(89),u=n(5),s=n(43),c=n(57);n.d(t,"a",function(){return p}),n.d(t,"b",function(){return m});var l=this,f=function(e){var t=e.xpromo.listingClick,r=t.active,o=t.clickInfo,i=void 0;if(o){var a=o.postId,u=o.listingClickType;i=n.i(c.k)(e,a,u)}else i=n.i(c.i)(e);return{active:r,link:i}},d={onDismiss:function(){return function(){var e=r(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e(n.i(s.d)()),e(n.i(s.e)()),e(n.i(s.f)());case 3:case"end":return t.stop()}},t,l)}));return function(t){return e.apply(this,arguments)}}()}},p=n.i(o.connect)(f,d)(i.a),h=function(e){var t=n.i(a.a)(e),r=n.i(c.j)(e,e.platform.currentPage.url,{tags:[u.t[u.c.NATIVE]],utm_content:u.t[u.c.NATIVE]}),o=void 0;return o=t===u.c.POST?"this post":n.i(a.c)(e)?"Reddit":"this community",{text:o,link:r,active:!0}},v={onDismiss:function(){return function(){var e=r(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e(n.i(s.d)()),e(n.i(s.e)()),e(n.i(s.f)());case 3:case"end":return t.stop()}},t,l)}));return function(t){return e.apply(this,arguments)}}()}},m=n.i(o.connect)(h,v)(i.a)},function(e,t,n){"use strict";function r(e){return e.multi?I.MULTIREDDIT:n.i(S.a)(e.subredditName)?I.FAKE_SUBREDDIT:I.SUBREDDIT}function o(e,t){return P(m.a,{rightLink:e,showWithoutUser:!0},void 0,P(v.a,{sortOptions:t?[b.a.BEST].concat(R):R}))}var i=n(0),a=(n.n(i),n(3)),u=(n.n(a),n(4)),s=(n.n(u),n(279)),c=n(1393),l=n(42),f=n(1445),d=n(420),p=n(655),h=n(661),v=n(422),m=n(666),y=n(1447),g=n(671),_=n(424),b=n(76),E=n(286),T=n(183),w=n(89),S=n(56),O=n(7);n.d(t,"a",function(){return k});var 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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),R=[b.a.HOT,b.a.TOP,b.a.NEW,b.a.CONTROVERSIAL],I={FAKE_SUBREDDIT:"FAKE_SUBREDDIT",MULTIREDDIT:"MULTIREDDIT",SUBREDDIT:"SUBREDDIT"},A=n.i(u.createSelector)(function(e,t){return t},function(e){return e.postsLists},function(e){return e.subreddits},function(e){return e.preferences},function(e){return e.modal.id},function(e){return e.platform.currentPage},function(e,t){var n=e.user,r=n.loading,o=n.loggedout,i=n.name;if(r||o||void 0===e.accounts[i])return!1;var a=E.a.pageParamsToSubredditPostsParams(t),u=!a.subredditName&&!a.multi,s=e.accounts[i].hasSubscribed;return u&&!s},function(e){return e.accounts},function(e){return e.user},function(e){return e.multireddits},function(e,t,o,i,a,u,s,c,l,f){var d=E.a.pageParamsToSubredditPostsParams(e),p=n.i(T.a)(d),h=d.multi,v=d.multiUser,m=d.subredditName,y=h&&v?"/user/"+v+"/m/"+h+"/":null;return{currentPage:u,postsListId:p,preferences:i,subredditName:m,modalId:a,postsList:t[p],subreddit:m?o[m]:null,shouldShowTutorial:s,accounts:c,user:l,multiPath:y,multireddit:y?f[y]:null,feedType:r(d)}}),C={redirect:O.k},x=P(l.a,{}),N=P(y.a,{}),M=P(g.a,{}),k=n.i(a.connect)(A,C)(function(e){var t=e.currentPage,r=e.postsListId,i=e.postsList,a=e.subredditName,u=e.subreddit,l=e.preferences,v=e.shouldShowTutorial,m=e.accounts,y=e.user,g=e.multiPath,b=e.multireddit,E=e.feedType,T=y.name,S=!!i&&!i.loading,O=E===I.SUBREDDIT?{href:"/r/"+a+"/about",text:"About this community"}:null,R=m[T],A=R&&R.isSuspended,C=R&&R.isFPR,k=y&&!y.loggedOut,D=k&&E===I.FAKE_SUBREDDIT&&n.i(w.b)(t.urlParams.subredditName,t.urlParams.pageName),L="PostsFromSubredditPage";if(!l.over18&&E!==I.FAKE_SUBREDDIT){if(!u&&!b)return P("div",{className:L},void 0,x);if((u||b||{}).over18)return P("div",{className:L},void 0,P(p.a,{isCustomFeed:E===I.MULTIREDDIT}))}return P("div",{className:L},void 0,!!u&&P(s.a,{subredditName:a}),!!b&&P(c.a,{multiPath:g}),u&&u.quarantine?P(h.a,{quarantineMessageHTML:u.quarantineMessageHTML,subredditName:a}):null,S?o(O,D):null,A||C?P(f.a,{isFPR:C}):null,v?N:P(d.b,{isSubreddit:!!u,postsListId:r,subredditIsNSFW:!!u&&u.over18,subredditShowSpoilers:!!u&&u.spoilersEnabled}),M,u&&u.over18&&P(_.a,{url:u&&u.url}))})},function(e,t,n){"use strict";function r(){return S}var o=n(1721),i=(n.n(o),n(0)),a=(n.n(i),n(3)),u=(n.n(a),n(4)),s=(n.n(u),n(6)),c=n(656),l=n(669),f=n(1448),d=n(42),p=n(5),h=n(88),v=n(7),m=n(10);n.d(t,"b",function(){return T}),n.d(t,"a",function(){return w});var y=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),g=/u\/.*\/gild$/,_=n.i(u.createSelector)(h.a,function(e,t){return e.accounts[t.urlParams.userName.toLowerCase()]},function(e,t){return e.accountRequests[t.urlParams.userName]},function(e){return e.subreddits},function(e){return e.preferences},function(e){return e.user&&!e.user.loggedOut},function(e,t,n,r,o,i){return{myUser:e,queriedUser:t||{},queriedUserRequest:n,isContributor:t&&!!t.subredditName,isLoggedIn:i,queriedUserSubreddit:t?r[t.subredditName.toLowerCase()]:null,preferences:o}}),b=function(e){return{toggleXPromoChat:function(){e(n.i(v.e)(m.a.GET,p.A))}}},E=y(d.a,{}),T=n.i(a.connect)(_,b)(function(e){var t=e.myUser,n=e.queriedUser,r=e.queriedUserRequest,o=e.url,i=e.isContributor,a=e.isLoggedIn,u=e.queriedUserSubreddit,s=e.preferences,f=e.toggleXPromoChat,d=n.name,p=n.karma,h=n.subredditName,v=g.test(o),m=!!t&&t.name===d,_=!!r&&!r.loading,b=_&&i&&!!u&&u.over18;return y(c.a,{isContentAdultStatusKnown:_&&(!!u||!i),isContentOver18:b,userPermitsOver18:s.over18},void 0,y("div",{className:"UserProfilePage"},void 0,y(w,{},void 0,_&&y(l.a,{userName:d,userSubreddit:h,karma:p,isLoggedIn:a,isMyUser:m,toggleXPromoChat:f})),v?O:n&&_?y(P,{user:n,isMyUser:m}):E))}),w=function(e){return y("div",{className:"UserProfilePage__section"},void 0,e.children)},S=y("div",{},void 0,"Sorry, this page isn't ready yet"),O=y(r,{}),P=function(e){var t=e.user,n=e.isMyUser;return y("div",{},void 0,y(w,{},void 0,y(f.a,{user:t,isMyUser:n})),n?y(w,{},void 0,y(R,{userName:t.name})):null)},R=function(e){var t=e.userName;return y("div",{className:"UserProfilePage__ownUserLinks"},void 0,y(A,{iconName:"save",text:"Saved",href:I(t,"saved")}),y(A,{iconName:"hide",text:"Hidden",href:I(t,"hidden")}))},I=function(e,t){return"/user/"+e+"/"+t},A=function(e){var t=e.text,n=e.iconName,r=e.href;return y(s.b,{className:"UserProfilePage__userLink",href:r},void 0,y("span",{className:"UserProfilePage__userLinkIcon icon icon-large icon-"+n+" blue "}),t)}},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=n(120),c=n(76),l=n(213),f=n(180),d=n(75),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h="saved",v="hidden",m=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),p(t,[{key:u.a.GET,value:function(){function e(e,t){return o.apply(this,arguments)}var o=r(regeneratorRuntime.mark(function i(e,r){var o,a;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(o=r(),!o.platform.shell){i.next=3;break}return i.abrupt("return");case 3:a=t.pageParamsToSavedParams(this),t.isHiddenPage(this)?e(l.a(a)):t.isSavedPage(this)&&e(f.a(a)),n.i(d.a)(e);case 6:case"end":return i.stop()}},i,this)}));return e}()}],[{key:"isSavedPage",value:function(e){var t=e.urlParams;return t.savedOrHidden===h}},{key:"isHiddenPage",value:function(e){var t=e.urlParams;return t.savedOrHidden===v}},{key:"pageParamsToSavedParams",value:function(e){var t=e.urlParams,r=e.queryParams,o=t.userName,i=r.sort,a=void 0===i?c.a.CONFIDENCE:i,u=r.before,l=r.after;return n.i(s.a)({user:o,sort:a,before:u,after:l})}}]),t}(u.b);t.a=m},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,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s,c=n(10),l=n(7),f=n(293),d=n(120),p=n(118),h=n(75),v=n(76),m=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),y=["sr","link"],g=1,_=512,b=function(e){var t=e?"/r/"+e:"";return t+"/search"},E="sort",T="t",w="type",S=(s={},u(s,E,v.a.RELEVANCE),u(s,T,v.a.ALL_TIME),u(s,w,y),s),O=function(e,t){return t[e]||S[e]},P=function(e){var t={},n=Object.keys(e);return n.forEach(function(n){var r=e[n];r&&r===S[n]||(t[n]=r)}),t},R=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),m(t,[{key:c.a.GET,value:function(){function e(e,t){return o.apply(this,arguments)}var o=r(regeneratorRuntime.mark(function i(e,r){var o,a,u;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(o=r(),!o.platform.shell){i.next=3;break}return i.abrupt("return");case 3:a=t.pageParamsToSearchRequestParams(this),u=a.q,u&&u.length>=g&&e(p.a(a)),n.i(h.a)(e);case 7:case"end":return i.stop()}},i,this)}));return e}()},{key:c.a.POST,value:function(){function e(e){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function n(e){var t,r;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(t=this.bodyParams.subreddit,r=this.bodyParams.q,r=r&&r.length?r.trim():"",!(r.length<g)){n.next=5;break}return n.abrupt("return");case 5:r=r.slice(0,_),e(l.e(c.a.GET,b(t),{queryParams:{q:r}}));case 7:case"end":return n.stop()}},n,this)}));return e}()}],[{key:"pageParamsToSearchRequestParams",value:function(e){var t=e.urlParams,r=e.queryParams,o=r.q,i=r.after,a=r.before,u=O(E,r),s=O(T,r),c=O(w,r),l=t.subredditName;return n.i(d.a)({q:o,after:i,before:a,sort:u,t:s,type:c,subreddit:l})}},{key:"buildURL",value:function(e,t){var r=P(t);return n.i(f.a)(b(e.subredditName),n.i(d.a)(r))}}]),t}(c.b);t.a=R},function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"a",function(){return i});var r=function(){return window.navigator&&window.navigator.userAgent.toLowerCase()||""},o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r();return e.indexOf("chrome")!==-1},i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r();return!o(e)&&e.indexOf("safari")!==-1}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function o(e){if(!e||e.hidden)return!0;var t=window.getComputedStyle(e);return"none"===t.display||"hidden"===t.visibility||!!e.parentElement&&o(e.parentElement)}},function(e,t,n){"use strict";var r=n(683),o=n(444);t.a=function(e){var t=e.platform.currentPage,i=n.i(r.b)(t.url,o.a),a=i.meta;return a}},function(e,t,n){"use strict";var r=new Set(["password","passwd","pass","pw"]);t.a=function(e){return JSON.stringify(e,function(e,t){return r.has(e)?"<REDACTED />":t})}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){return 403===e.status&&e.response&&e.response.body&&"quarantined"===e.response.body.reason}},function(e,t,n){"use strict";function r(e){if(e){var t=i.a.parse(e);if(t.host&&0===t.protocol.indexOf("http")){var n=t.host.split(".");if(n.length>=2){var r=n.length-1;return n[r-1]+"."+n[r]}}}}var o=n(63),i=n.n(o);t.a=r},function(e,t,n){"use strict";function r(e,t,n){if(t&&!(t in e.subredditRules))return null;if(!e.subredditRules[t])return[];var r=e.subredditRules[t];return n?r.filter(function(e){return e.doesRuleApplyToThingType(n)}):r}t.a=r},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){var n=void 0,r=!0,o=!1,i=void 0;try{for(var u,s=t[Symbol.iterator]();!(r=(u=s.next()).done);r=!0){n=u.value;var c=n,l=f(c,3),d=l[0],p=l[1],h=l[2],v=a()(d),m=v.exec(e);if(m)return{handler:p,reg:v,result:m,meta:h}}}catch(y){o=!0,i=y}finally{try{!r&&s["return"]&&s["return"]()}finally{if(o)throw i}}}var i=n(583),a=n.n(i),u=n(10),s=n(7),c=n(104);t.b=o;var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=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=function(e,t,n){var r=n.method,i=n.pathName,a=o(i,e);return a&&a.meta&&t&&r===u.a.GET?a.meta:null},p=function(e,t,n,i){var a=i.method,c=i.pathName,f=i.queryParams,d=i.hashParams,p=i.bodyParams,h=i.referrer,v=e.dispatch,m=e.getState,y=o(c,t);if(y){var g=y.handler,_=y.reg,b=y.result,E=_.keys.reduce(function(e,t,n){return l({},e,r({},t.name,b[n+1]))},{});!n||a!==u.a.GET&&a!==u.a.HEAD||v(s.a(c,{urlParams:E,queryParams:f,hashParams:d,referrer:h}));var T=new g(c,E,f,d,p,v,m),w=a;if(w!==u.a.HEAD||T[u.a.HEAD]||(w=u.a.GET),!T[w])throw new Error("No method found for "+a.toUpperCase()+" "+c);return T[w].bind(T)}throw new Error("No route found for "+a.toUpperCase()+" "+c)};t.a={create:function(e,t,r){return function(i){return function(a){return function(f){var h=void 0,v=void 0;switch(f.type){case s.b:case s.c:var m=(new Date).getTime();a(f),f.type===s.b?(h=!0,v=f.payload):(h=!1,v=l({},f.payload,{method:u.a.GET}));var y=d(e,h,v),g=p(i,e,h,v),_=a(g),b=function(){var e=(new Date).getTime(),t=e-m;r({meta:y,startTime:m,endTime:e,duration:t})};return _.then(b)["catch"](function(e){throw b(),e}),_;case s.d:var E=f.url;if(t)return i.dispatch(s.a(E));if(E.startsWith("/")){var T=E.split("?")[0],w=o(T,e);if(w){var S=n.i(c.a)(E);return i.dispatch(s.e(u.a.GET,T,{queryParams:S}))}}return window.location=E,a(f);default:return a(f)}}}}}}},function(e,t){},function(e,t){},function(e,t){(function(t){e.exports=t}).call(t,{})},function(e,t,n){"use strict";(function(e){function t(e,t,n){e[t]||Object[r](e,t,{writable:!0,configurable:!0,value:n})}if(n(903),n(1623),n(704),e._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");e._babelPolyfill=!0;var r="defineProperty";t(String.prototype,"padLeft","".padStart),t(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(e){[][e]&&t(Array,e,Function.call.bind([][e]))})}).call(t,n(36))},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(1596),i=n(43);n.d(t,"a",function(){return u});var a=this,u=function(){return function(){var e=r(regeneratorRuntime.mark(function t(e){var r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.i(o.a)();case 2:r=t.sent,r||e(i.H());case 4:case"end":return t.stop()}},t,a)}));return function(t){return e.apply(this,arguments)}}()}},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(1722),u=(n.n(a),n(0)),s=n.n(u),c=n(190),l=(n.n(c),n(6)),f=n(1378),d=n(1464),p=n(1379),h=n(1585),v=n(1586),m=n(1587),y=n(1590),g=n(1589),_=n(1591),b=n(1588),E=n(1420),T=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),w=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),S=T("div",{className:"App"},void 0,T(d.a,{}),T(p.a,{}),T(l.f,{}),T(g.a,{}),T(h.a,{}),T(m.a,{}),T(v.a,{}),T(y.a,{}),T(c.TooltipShutter,{}),T(f.a,{}),T(_.a,{}),T(b.a,{}),T(E.a,{})),O=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),w(t,[{key:"render",value:function(){return S}}]),t}(s.a.Component);t.a=O},function(e,t,n){"use strict";var r=n(698),o=n.n(r),i=n(1473),a=n(1474),u=n(1475),s=n(1476),c=n(1477),l=n(1478),f=n(1483),d=n(1488),p=n(1489),h=n(1490),v=n(1491),m=n(1492),y=n(1493),g=n(1494),_=n(1495),b=n(1496),E=n(1499),T=n(1500),w=n(1501),S=n(1503),O=n(1502),P=n(1504),R=n(1505),I=n(1507),A=n(1506),C=n(1508),x=n(1509),N=n(1510),M=n(1511),k=n(1512),D=n(1513),L=n(1514),j=n(1515),F=n(1518),U=n(1519),B=n(1520),H=n(1516),q=n(1517),V=n(1521),G=n(1522),W=n(1523),K=n(1525),Y=n(1524),z=n(285),X=n(1526),$=n(1527),Q=n(1529),J=n(1530),Z=n(1531),ee=n(1532),te=n(1533),ne=n(1528),re=n(1534),oe=n(1538),ie=n(1536),ae=n(1537),ue=n(1539),se=n(1540),ce=n(1541),le=n(1535),fe=n(1542),de=n(1543),pe=n(1544),he=n(1545),ve=n(1548),me=n(1546),ye=n(1547),ge=n(1549),_e=n(1550),be=n(1551),Ee=n(1552),Te=n(1553),we=n(1554),Se=n(1555),Oe=n(1556);t.a={accounts:a.a,accountRequests:i.a,activitiesRequests:u.a,adRequests:s.a,apiRequestHeaders:c.a,autocompleteSubreddits:l.a,comments:f.a,commentsPages:d.a,compact:p.a,contextKey:h.a,editingText:v.a,euCookieNotice:m.a,expandedPosts:y.a,experimentOverrides:g.a,experiments:_.a,graphql:b.a,hiddenRequests:E.a,loid:T.a,mail:w.a,meta:S.a,messages:O.a,modal:P.a,moderatingSubreddits:R.a,multiredditRequests:A.a,multireddits:I.a,notification:C.a,optOuts:x.a,overlay:N.a,pageMetadata:M.a,playingPosts:k.a,posting:D.a,posts:L.a,postsLists:j.a,preferences:H.a,preferencesRequest:q.a,pwaInstalled:F.a,pwaInstalledTimestamp:U.a,pwaXPromoOverride:B.a,quarantine:V.a,replying:K.a,replyRequests:Y.a,recentSubreddits:G.a,recommendedSubreddits:W.a,reports:z.c,rulesModal:X.a,savedRequests:$.a,searchRequests:Q.a,serviceWorker:J.a,session:Z.a,sessionRefresing:ee.a,sessionTracker:te.a,scrollPositions:ne.a,sharing:re.a,sitewideRules:ie.a,sitewideRulesRequests:ae.a,subredditRules:ue.a,subredditRulesRequests:se.a,subreddits:ce.a,similarPosts:le.a,subredditsByPost:fe.a,subredditsToPostsByPost:de.a,subscribedSubreddits:pe.a,subredditRequests:oe.a,theme:he.a,twoFactorAuthentication:ve.a,toaster:me.a,tracking:ye.a,unblurredPosts:ge.a,user:_e.a,verification:be.a,videoAds:Ee.a,visitedPosts:Te.a,widgets:o.a,wikis:Se.a,wikiRequests:we.a,xpromo:Oe.a}},function(e,t,n){"use strict";var r=n(1561);t.a=[n.i(r.a)()]},function(e,t,n){"use strict";function r(){return new Promise(function(e){var t=window.RequestFileSystem||window.webkitRequestFileSystem,n="INCOGNITO_DETECTION_KEY",r=function(){e(!0)},o=function(){e(!1)};if(t)return void t(window.TEMPORARY,1,o,r);var i=window.sessionStorage;try{i.setItem(n,n),i.removeItem(n)}catch(a){if(a.code===DOMException.QUOTA_EXCEEDED_ERR&&0===i.length)return void r()}try{window.openDatabase(null,null,null,null)}catch(a){return void r()}o()})}t.a=r},function(e,t,n){(function(e){var t=/(?:\b(?:MS)?IE\s+|\bTrident\/7\.0;.*\s+rv:)(\d+(?:\.?\d+)?)/i;if(e.navigator){var n=e.navigator.userAgent.match(t),r=n&&n[1]&&parseFloat(n[1]),o=e.navigator.doNotTrack||e.doNotTrack||e.navigator.msDoNotTrack,i=o?/^(yes|1)$/i.test(o)&&10!==r?"1":"0":null;e.DO_NOT_TRACK=i}}).call(t,n(36))},function(e,t,n){"use strict";(function(e){function r(){function t(e,t,n){if(r[t]&&r[n]){var i=r[t]/1e3,a=r[n]/1e3,u=a-i;0!==u&&(o[e]=u)}}var n=e.performance||e.webkitPerformance||e.msPerformance||e.mozPerformance;if(n&&n.timing){var r=n.timing,o={};return t("redirectTiming","redirectStart","redirectEnd"),t("startTiming","fetchStart","domainLookupStart"),t("dnsTiming","domainLookupStart","domainLookupEnd"),t("tcpTiming","connectStart","connectEnd"),t("httpsTiming","secureConnectionStart","connectEnd"),t("requestTiming","requestStart","responseStart"),t("responseTiming","responseStart","responseEnd"),t("domLoadingTiming","domLoading","domInteractive"),t("domInteractiveTiming","domInteractive","domContentLoadedEventStart"),t("domContentLoadedTiming","domContentLoadedEventStart","domContentLoadedEventEnd"),o}}function o(e){s.a.post("/timings").timeout(u.k).send({rum:e}).then()["catch"](function(){})}function i(e,t,n){if(!(Math.random()>c)){if(void 0===n)return void console.warn("Could not detect if session is shell rendered.");var i=n?"m2.server.shell":"m2.server.seo",a=Object.assign({actionName:i,mountTiming:(t-e)/1e3},r());o(a)}}function a(e){if(l&&(l=!1,!(Math.random()>c)&&e)){var t=e.meta,n=e.duration;if(t&&t.name){var r=t.name,i="m2.client."+r,a={actionName:i,routeTiming:n/1e3};o(a)}}}var u=n(5),s=n(436);t.a=i,t.b=a;var c=-1,l=!0}).call(t,n(36))},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var o=n(697),i=(n.n(o),n(0)),a=(n.n(i),n(376)),u=n.n(a),s=n(212),c=(n.n(s),n(3)),l=(n.n(c),n(683)),f=n(1619),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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h=d("div",{});t.a=function(e){var t=e.container,i=void 0===t?"container":t,a=e.dataVar,v=void 0===a?"___r":a,m=e.modifyData,y=void 0===m?function(e){return e}:m,g=e.appComponent,_=void 0===g?h:g,b=e.reducers,E=void 0===b?{}:b,T=e.reduxMiddleware,w=void 0===T?[]:T,S=e.routes,O=void 0===S?[]:S,P=e.debug,R=void 0!==P&&P,I=e.onHandlerComplete,A=void 0===I?function(){}:I,C=o.PromiseWell.create(),x=o.Thunker.create(),N=l.a.create(O,!1,A),M=n.i(s.combineReducers)(p({},E,{platform:f.a})),k=w.concat([N,x,C.middleware]);return R&&!window.devToolsExtension&&k.push(o.Logger),function(){var e=document.getElementById(i),t=void 0;try{var o=window[v];t=y(o)}catch(a){t={}}var l=n.i(s.createStore)(M,t,n.i(s.compose)(s.applyMiddleware.apply(void 0,r(k)),window.devToolsExtension?window.devToolsExtension():function(e){return e}));return u.a.render(d(c.Provider,{store:l},void 0,_),e),l}}},function(e,t,n){(function(e){var n,r,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(a,u){"object"==i(t)&&"object"==i(e)?e.exports=u():(r=[],n=u,o="function"==typeof n?n.apply(t,r):n,!(void 0!==o&&(e.exports=o)))}(this,function(){return 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.p="",t(t.s=0)}([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=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o="function"==typeof Symbol&&"symbol"==i(Symbol.iterator)?function(e){return"undefined"==typeof e?"undefined":i(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":"undefined"==typeof e?"undefined":i(e)},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u="feature_",s=function(){function e(t){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];n(this,e),this.ctx={},this.config=t,this.rules=r,this.ctx=o}return a(e,null,[{key:"parseConfig",value:function(t){var n=arguments.length<=1||void 0===arguments[1]?e.parse:arguments[1];return Object.keys(t).reduce(function(e,r){var o=n(r,t[r]);return o&&(e[o.key]=o.val),e},{})}},{key:"parse",value:function(e,t){var n=e.toLowerCase();if(-1!==n.indexOf(u))return{key:n.slice(u.length),val:t}}}]),a(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"testRule",value:function(e,t,n){return this.rules[t]?this.rules[t].call(n,e[t]):this.tryBooleanOps(e,t,n)}},{key:"tryBooleanOps",value:function(e,t,n){var r=this;if("or"===t)return e[t].some(function(e){return Object.keys(e).some(function(t){return r.testRule(e,t,n)})});if("and"===t)return e[t].every(function(e){return Object.keys(e).some(function(t){return r.testRule(e,t,n)})});if("not"===t){var i=function(){var o=e[t];return{v:!Object.keys(o).some(function(e){return r.testRule(o,e,n)})}}();if("object"===("undefined"==typeof i?"undefined":o(i)))return i.v}return!1}},{key:"enabled",value:function(e){var t=this,n=arguments.length<=1||void 0===arguments[1]?this.ctx:arguments[1],r=this.config[e];if(!r)return!1;if(r===!0||r===!1)return r;var o=Object.keys(r),i=o.some(function(e){return t.testRule(r,e,n)});return i}},{key:"allEnabled",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]?this.ctx:arguments[0],n=arguments.length<=1||void 0===arguments[1]||arguments[1];return Object.keys(this.config).filter(function(r){return e.enabled(r,t)===n})}},{key:"allDisabled",value:function(){var e=arguments.length<=0||void 0===arguments[0]?this.ctx:arguments[0];return this.allEnabled(e,!1)}},{key:"withContext",value:function(t){return new e(this.config,this.rules,t)}},{key:"clone",value:function(){var t=arguments.length<=0||void 0===arguments[0]?this.config:arguments[0],n=arguments.length<=1||void 0===arguments[1]?this.rules:arguments[1],o=arguments.length<=2||void 0===arguments[2]?this.ctx:arguments[2];return new e(r({},t),r({},n),r({},o))}}]),e}();t["default"]=s}])})}).call(t,n(64)(e))},function(e,t,n){(function(e){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)&&"object"===a(e)?e.exports=s(n(452),n(450),n(451)):(o=[n(452),n(450),n(451)],r=s,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i)))}(this,function(e,t,n){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.PromiseWell=t.Logger=t.Thunker=void 0;var o=n(1),i=r(o),a=n(2),u=r(a),s=n(3),c=r(s);t.Thunker=i["default"],t.Logger=u["default"],t.PromiseWell=c["default"]},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n}])})}).call(t,n(64)(e))},function(e,t,n){(function(e){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)&&"object"===a(e)?e.exports=s(n(190),n(90),n(453)):(o=[n(190),n(90),n(453)],r=s,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i)))}(this,function(e,t,n){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([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}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(4),a=n(5),u=n(6),s={tooltip:{id:null,target:null},modal:{id:null},savedScrollPositions:{}};t["default"]=function(){var e=arguments.length<=0||void 0===arguments[0]?s:arguments[0],t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];switch(t.type){case i.TOGGLE_TOOLTIP:var n=t.payload,c=n.tooltipId,l=n.target;return c&&l?o({},e,{tooltip:{target:l,id:c}}):o({},e,{tooltip:{target:null,id:null}});case a.TOGGLE_MODAL:var f=t.payload.id;return f?o({},e,{modal:{id:f}}):o({},e,{modal:{id:null}});case u.SAVE_SCROLL_POSITION:var d=t.payload,p=d.id,h=d.scrollPosition;return o({},e,{savedScrollPositions:o({},e.savedScrollPositions,r({},p,h))});default:return e}}},,,,function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n}])})}).call(t,n(64)(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"!==("undefined"==typeof t?"undefined":h(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 "+("undefined"==typeof t?"undefined":h(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 a(e,t){e.forEach(function(e){var n=d.a.findElement(e,t);n&&n.handleChange(e)})}var u=n(0),s=n.n(u),c=n(376),l=(n.n(c),n(1223)),f=(n.n(l),n(516)),d=(n.n(f),n(700)),p=n(298),h="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},v=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),m=["root","rootMargin","threshold"],y=Object.prototype,g=function(e){function t(){var n,i,a;r(this,t);for(var u=arguments.length,s=Array(u),c=0;c<u;c++)s[c]=arguments[c];return n=i=o(this,e.call.apply(e,[this].concat(s))),i.handleChange=function(e){i.props.onChange(e),i.props.onlyOnce&&e.isIntersecting&&i.unobserve()},i.handleNode=function(e){"function"==typeof i.props.children.ref&&i.props.children.ref(e),i.currentTarget&&e&&i.currentTarget!==e&&(i.unobserve(),i.shouldResetObserver=!0),i.target=e},a=n,o(i,a)}return i(t,e),t.prototype.observe=function(){this.target=n.i(p.c)(this.target)?this.target:n.i(c.findDOMNode)(this.target),this.observer=d.a.create(a,this.options),d.a.observe(this)},t.prototype.unobserve=function(){d.a.unobserve(this)},t.prototype.reobserve=function(){this.unobserve(),this.props.disabled||this.observe()},t.prototype.componentDidMount=function(){this.props.disabled||this.observe()},t.prototype.componentWillUnmount=function(){this.unobserve()},t.prototype.componentDidUpdate=function(){this.shouldResetObserver&&this.reobserve()},t.prototype.componentWillUpdate=function(e){var t=this;this.shouldResetObserver=m.concat(["disabled"]).some(function(r){return n.i(p.b)(e[r],t.props[r])})},t.prototype.render=function(){return this.currentTarget=this.target,s.a.cloneElement(s.a.Children.only(this.props.children),{ref:this.handleNode})},v(t,[{key:"options",get:function(){var e=this;return m.reduce(function(t,n){if(y.hasOwnProperty.call(e.props,n)){var r,o=e.props[n];return"root"===n&&"[object String]"===y.toString.call(e.props[n])&&(o=document.querySelector(o)),Object.assign({},t,(r={},r[n]=o,r))}return t},{})}}]),t}(s.a.Component);g.displayName="IntersectionObserver",t.a=g},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(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.root||null,r=n.i(i.a)(e.rootMargin),o=Array.isArray(e.threshold)?e.threshold:["undefined"!=typeof e.threshold?e.threshold:0],u=a.keys(),s=Array.isArray(u),c=0,u=s?u:u[Symbol.iterator]();;){var l;if(s){if(c>=u.length)break;l=u[c++]}else{if(c=u.next(),c.done)break;l=c.value}var f=l,d=[[t,f.root],[r,f.rootMargin],[o,f.thresholds]].some(function(e){return i.b.apply(void 0,e)});if(!d)return f}return null}var i=n(298),a=new Map,u=function(){function e(){r(this,e)}return e.create=function(e,t){return o(t)||new IntersectionObserver(e,t)},e.findElement=function(e,t){var n=a.get(t);if(n)for(var r=n.values(),o=Array.isArray(r),i=0,r=o?r:r[Symbol.iterator]();;){var u;if(o){if(i>=r.length)break;u=r[i++]}else{if(i=r.next(),i.done)break;u=i.value}var s=u;if(s.target===e.target)return s}return null},e.observe=function(e){var t=void 0;a.has(e.observer)?t=a.get(e.observer):(t=new Set,a.set(e.observer,t)),t.add(e),e.observer.observe(e.target)},e.unobserve=function(e){if(a.has(e.observer)){var t=a.get(e.observer);t["delete"](e)&&(t.size>0?e.observer.unobserve(e.target):(e.observer.disconnect(),a["delete"](e.observer)))}},e.clear=function(){a.clear()},e.count=function(){return a.size},e}();t.a=u},function(e,t,n){"use strict";var r=n(699);n(298);n.d(t,"a",function(){return r.a})},function(e,t){"use strict";function n(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function r(e){return 3*e.length/4-n(e)}function o(e){var t,r,o,i,a,u=e.length;i=n(e),a=new l(3*u/4-i),r=i>0?u-4:u;var s=0;for(t=0;t<r;t+=4)o=c[e.charCodeAt(t)]<<18|c[e.charCodeAt(t+1)]<<12|c[e.charCodeAt(t+2)]<<6|c[e.charCodeAt(t+3)],a[s++]=o>>16&255,a[s++]=o>>8&255,a[s++]=255&o;return 2===i?(o=c[e.charCodeAt(t)]<<2|c[e.charCodeAt(t+1)]>>4,a[s++]=255&o):1===i&&(o=c[e.charCodeAt(t)]<<10|c[e.charCodeAt(t+1)]<<4|c[e.charCodeAt(t+2)]>>2,a[s++]=o>>8&255,a[s++]=255&o),a}function i(e){return s[e>>18&63]+s[e>>12&63]+s[e>>6&63]+s[63&e]}function a(e,t,n){for(var r,o=[],a=t;a<n;a+=3)r=(e[a]<<16)+(e[a+1]<<8)+e[a+2],o.push(i(r));return o.join("")}function u(e){for(var t,n=e.length,r=n%3,o="",i=[],u=16383,c=0,l=n-r;c<l;c+=u)i.push(a(e,c,c+u>l?l:c+u));return 1===r?(t=e[n-1],o+=s[t>>2],o+=s[t<<4&63],o+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],o+=s[t>>10],o+=s[t>>4&63],o+=s[t<<2&63],o+="="),i.push(o),i.join("")}t.byteLength=r,t.toByteArray=o,t.fromByteArray=u;for(var s=[],c=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,p=f.length;d<p;++d)s[d]=f[d],c[f.charCodeAt(d)]=d;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},function(e,t,n){function r(e){if(e)return o(e)}function o(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===t||r.fn===t){n.splice(o,1);break}return this},r.prototype.emit=function(e){this._callbacks=this._callbacks||{};var t=[].slice.call(arguments,1),n=this._callbacks["$"+e];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,t)}return this},r.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},r.prototype.hasListeners=function(e){return!!this.listeners(e).length}},function(e,t,n){n(711),e.exports=n(78).RegExp.escape},function(e,t,n){var r=n(21),o=n(226),i=n(28)("species");e.exports=function(e){var t;return o(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!o(t.prototype)||(t=void 0),r(t)&&(t=t[i],null===t&&(t=void 0))),void 0===t?Array:t}},function(e,t,n){"use strict";var r=n(18),o=Date.prototype.getTime,i=Date.prototype.toISOString,a=function(e){return e>9?e:"0"+e};e.exports=r(function(){return"0385-07-25T07:06:39.999Z"!=i.call(new Date(-5e13-1))})||!r(function(){i.call(new Date(NaN))})?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),r=t<0?"-":t>9999?"+":"";return r+("00000"+Math.abs(t)).slice(r?-6:-4)+"-"+a(e.getUTCMonth()+1)+"-"+a(e.getUTCDate())+"T"+a(e.getUTCHours())+":"+a(e.getUTCMinutes())+":"+a(e.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}:i},function(e,t,n){"use strict";var r=n(13),o=n(82),i="number";e.exports=function(e){if("string"!==e&&e!==i&&"default"!==e)throw TypeError("Incorrect hint");return o(r(this),e!=i)}},function(e,t,n){var r=n(127),o=n(230),i=n(194);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var a,u=n(e),s=i.f,c=0;u.length>c;)s.call(e,a=u[c++])&&t.push(a);return t}},function(e,t){e.exports=function(e,t){var n=t===Object(t)?function(e){return t[e]}:t;return function(t){return String(t).replace(e,n)}}},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},function(e,t,n){var r=n(1),o=n(709)(/[\\^$*+?.()|[\]{}]/g,"\\$&");r(r.S,"RegExp",{escape:function(e){return o(e)}})},function(e,t,n){var r=n(1);r(r.P,"Array",{copyWithin:n(456)}),n(105)("copyWithin")},function(e,t,n){"use strict";var r=n(1),o=n(77)(4);r(r.P+r.F*!n(69)([].every,!0),"Array",{every:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var r=n(1);r(r.P,"Array",{fill:n(300)}),n(105)("fill")},function(e,t,n){"use strict";var r=n(1),o=n(77)(2);r(r.P+r.F*!n(69)([].filter,!0),"Array",{filter:function(e){return o(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(1),o=n(77)(6),i="findIndex",a=!0;i in[]&&Array(1)[i](function(){a=!1}),r(r.P+r.F*a,"Array",{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(105)(i)},function(e,t,n){"use strict";var r=n(1),o=n(77)(5),i="find",a=!0;i in[]&&Array(1)[i](function(){a=!1}),r(r.P+r.F*a,"Array",{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(105)(i)},function(e,t,n){"use strict";var r=n(1),o=n(77)(0),i=n(69)([].forEach,!0);r(r.P+r.F*!i,"Array",{forEach:function(e){return o(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(68),o=n(1),i=n(37),a=n(467),u=n(308),s=n(33),c=n(302),l=n(325);o(o.S+o.F*!n(228)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,o,f,d=i(e),p="function"==typeof this?this:Array,h=arguments.length,v=h>1?arguments[1]:void 0,m=void 0!==v,y=0,g=l(d);if(m&&(v=r(v,h>2?arguments[2]:void 0,2)),void 0==g||p==Array&&u(g))for(t=s(d.length),n=new p(t);t>y;y++)c(n,y,m?v(d[y],y):d[y]);else for(f=g.call(d),n=new p;!(o=f.next()).done;y++)c(n,y,m?a(f,v,[o.value,y],!0):o.value);return n.length=y,n}})},function(e,t,n){"use strict";var r=n(1),o=n(222)(!1),i=[].indexOf,a=!!i&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(a||!n(69)(i)),"Array",{indexOf:function(e){return a?i.apply(this,arguments)||0:o(this,e,arguments[1])}})},function(e,t,n){var r=n(1);r(r.S,"Array",{isArray:n(226)})},function(e,t,n){"use strict";var r=n(1),o=n(61),i=[].join;r(r.P+r.F*(n(193)!=Object||!n(69)(i)),"Array",{join:function(e){return i.call(o(this),void 0===e?",":e)}})},function(e,t,n){"use strict";var r=n(1),o=n(61),i=n(81),a=n(33),u=[].lastIndexOf,s=!!u&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(s||!n(69)(u)),"Array",{lastIndexOf:function(e){if(s)return u.apply(this,arguments)||0;var t=o(this),n=a(t.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,i(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}})},function(e,t,n){"use strict";var r=n(1),o=n(77)(1);r(r.P+r.F*!n(69)([].map,!0),"Array",{map:function(e){return o(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(1),o=n(302);r(r.S+r.F*n(18)(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)o(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){"use strict";var r=n(1),o=n(458);r(r.P+r.F*!n(69)([].reduceRight,!0),"Array",{reduceRight:function(e){return o(this,e,arguments.length,arguments[1],!0)}})},function(e,t,n){"use strict";var r=n(1),o=n(458);r(r.P+r.F*!n(69)([].reduce,!0),"Array",{reduce:function(e){return o(this,e,arguments.length,arguments[1],!1)}})},function(e,t,n){"use strict";var r=n(1),o=n(306),i=n(67),a=n(131),u=n(33),s=[].slice;r(r.P+r.F*n(18)(function(){o&&s.call(o)}),"Array",{slice:function(e,t){var n=u(this.length),r=i(this);if(t=void 0===t?n:t,"Array"==r)return s.call(this,e,t);for(var o=a(e,n),c=a(t,n),l=u(c-o),f=new Array(l),d=0;d<l;d++)f[d]="String"==r?this.charAt(o+d):this[o+d];return f}})},function(e,t,n){"use strict";var r=n(1),o=n(77)(3);r(r.P+r.F*!n(69)([].some,!0),"Array",{some:function(e){return o(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(1),o=n(44),i=n(37),a=n(18),u=[].sort,s=[1,2,3];r(r.P+r.F*(a(function(){s.sort(void 0)})||!a(function(){s.sort(null)})||!n(69)(u)),"Array",{sort:function(e){return void 0===e?u.call(i(this)):u.call(i(this),o(e))}})},function(e,t,n){n(130)("Array")},function(e,t,n){var r=n(1);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(e,t,n){var r=n(1),o=n(706);r(r.P+r.F*(Date.prototype.toISOString!==o),"Date",{toISOString:o})},function(e,t,n){"use strict";var r=n(1),o=n(37),i=n(82);r(r.P+r.F*n(18)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(e){var t=o(this),n=i(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},function(e,t,n){var r=n(28)("toPrimitive"),o=Date.prototype;r in o||n(50)(o,r,n(707))},function(e,t,n){var r=Date.prototype,o="Invalid Date",i="toString",a=r[i],u=r.getTime;new Date(NaN)+""!=o&&n(51)(r,i,function(){var e=u.call(this);return e===e?a.call(this):o})},function(e,t,n){var r=n(1);r(r.P,"Function",{bind:n(459)})},function(e,t,n){"use strict";var r=n(21),o=n(60),i=n(28)("hasInstance"),a=Function.prototype;i in a||n(32).f(a,i,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;for(;e=o(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,n){var r=n(32).f,o=Function.prototype,i=/^\s*function ([^ (]*)/,a="name";a in o||n(31)&&r(o,a,{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(e){return""}}})},function(e,t,n){var r=n(1),o=n(470),i=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:o(e-1+i(e-1)*i(e+1))}})},function(e,t,n){function r(e){return isFinite(e=+e)&&0!=e?e<0?-r(-e):Math.log(e+Math.sqrt(e*e+1)):e}var o=n(1),i=Math.asinh;o(o.S+o.F*!(i&&1/i(0)>0),"Math",{asinh:r})},function(e,t,n){var r=n(1),o=Math.atanh;r(r.S+r.F*!(o&&1/o(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},function(e,t,n){var r=n(1),o=n(312);r(r.S,"Math",{cbrt:function(e){return o(e=+e)*Math.pow(Math.abs(e),1/3)}})},function(e,t,n){var r=n(1);r(r.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},function(e,t,n){var r=n(1),o=Math.exp;r(r.S,"Math",{cosh:function(e){return(o(e=+e)+o(-e))/2}})},function(e,t,n){var r=n(1),o=n(311);r(r.S+r.F*(o!=Math.expm1),"Math",{expm1:o})},function(e,t,n){var r=n(1);r(r.S,"Math",{fround:n(469)})},function(e,t,n){var r=n(1),o=Math.abs;r(r.S,"Math",{hypot:function(e,t){for(var n,r,i=0,a=0,u=arguments.length,s=0;a<u;)n=o(arguments[a++]),s<n?(r=s/n,i=i*r*r+1,s=n):n>0?(r=n/s,i+=r*r):i+=n;return s===1/0?1/0:s*Math.sqrt(i)}})},function(e,t,n){var r=n(1),o=Math.imul;r(r.S+r.F*n(18)(function(){return o(4294967295,5)!=-5||2!=o.length}),"Math",{imul:function(e,t){var n=65535,r=+e,o=+t,i=n&r,a=n&o;return 0|i*a+((n&r>>>16)*a+i*(n&o>>>16)<<16>>>0)}})},function(e,t,n){var r=n(1);r(r.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},function(e,t,n){var r=n(1);r(r.S,"Math",{log1p:n(470)})},function(e,t,n){var r=n(1);r(r.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,n){var r=n(1);r(r.S,"Math",{sign:n(312)})},function(e,t,n){var r=n(1),o=n(311),i=Math.exp;r(r.S+r.F*n(18)(function(){return!Math.sinh(-2e-17)!=-2e-17}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(o(e)-o(-e))/2:(i(e-1)-i(-e-1))*(Math.E/2)}})},function(e,t,n){var r=n(1),o=n(311),i=Math.exp;r(r.S,"Math",{tanh:function(e){var t=o(e=+e),n=o(-e);return t==1/0?1:n==1/0?-1:(t-n)/(i(e)+i(-e))}})},function(e,t,n){var r=n(1);r(r.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},function(e,t,n){"use strict";var r=n(15),o=n(49),i=n(67),a=n(307),u=n(82),s=n(18),c=n(126).f,l=n(59).f,f=n(32).f,d=n(154).trim,p="Number",h=r[p],v=h,m=h.prototype,y=i(n(125)(m))==p,g="trim"in String.prototype,_=function(e){var t=u(e,!1);if("string"==typeof t&&t.length>2){t=g?t.trim():d(t,3);var n,r,o,i=t.charCodeAt(0);if(43===i||45===i){if(n=t.charCodeAt(2),88===n||120===n)return NaN}else if(48===i){switch(t.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+t}for(var a,s=t.slice(2),c=0,l=s.length;c<l;c++)if(a=s.charCodeAt(c),a<48||a>o)return NaN;return parseInt(s,r)}}return+t};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof h&&(y?s(function(){m.valueOf.call(n)}):i(n)!=p)?a(new v(_(t)),n,h):_(t)};for(var b,E=n(31)?c(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),T=0;E.length>T;T++)o(v,b=E[T])&&!o(h,b)&&f(h,b,l(v,b));h.prototype=m,m.constructor=h,n(51)(r,p,h)}},function(e,t,n){var r=n(1);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(e,t,n){var r=n(1),o=n(15).isFinite;r(r.S,"Number",{isFinite:function(e){return"number"==typeof e&&o(e)}})},function(e,t,n){var r=n(1);r(r.S,"Number",{isInteger:n(466)})},function(e,t,n){var r=n(1);r(r.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,n){var r=n(1),o=n(466),i=Math.abs;r(r.S,"Number",{isSafeInteger:function(e){return o(e)&&i(e)<=9007199254740991}})},function(e,t,n){var r=n(1);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){var r=n(1);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var r=n(1),o=n(478);r(r.S+r.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(e,t,n){var r=n(1),o=n(479);r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(e,t,n){"use strict";var r=n(1),o=n(81),i=n(455),a=n(319),u=1..toFixed,s=Math.floor,c=[0,0,0,0,0,0],l="Number.toFixed: incorrect invocation!",f="0",d=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*c[n],c[n]=r%1e7,r=s(r/1e7)},p=function(e){for(var t=6,n=0;--t>=0;)n+=c[t],c[t]=s(n/e),n=n%e*1e7},h=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==c[e]){var n=String(c[e]);t=""===t?n:t+a.call(f,7-n.length)+n}return t},v=function y(e,t,n){return 0===t?n:t%2===1?y(e,t-1,n*e):y(e*e,t/2,n)},m=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t};r(r.P+r.F*(!!u&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(18)(function(){u.call({})})),"Number",{toFixed:function(e){var t,n,r,u,s=i(this,l),c=o(e),y="",g=f;if(c<0||c>20)throw RangeError(l);if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return String(s);if(s<0&&(y="-",s=-s),s>1e-21)if(t=m(s*v(2,69,1))-69,n=t<0?s*v(2,-t,1):s/v(2,t,1),n*=4503599627370496,t=52-t,t>0){for(d(0,n),r=c;r>=7;)d(1e7,0),r-=7;for(d(v(10,r,1),0),r=t-1;r>=23;)p(1<<23),r-=23;p(1<<r),d(1,1),p(2),g=h()}else d(0,n),d(1<<-t,0),g=h()+a.call(f,c);return c>0?(u=g.length,g=y+(u<=c?"0."+a.call(f,c-u)+g:g.slice(0,u-c)+"."+g.slice(u-c))):g=y+g,g}})},function(e,t,n){"use strict";var r=n(1),o=n(18),i=n(455),a=1..toPrecision;r(r.P+r.F*(o(function(){return"1"!==a.call(1,void 0)})||!o(function(){a.call({})})),"Number",{toPrecision:function(e){var t=i(this,"Number#toPrecision: incorrect invocation!");return void 0===e?a.call(t):a.call(t,e)}})},function(e,t,n){var r=n(1);r(r.S+r.F,"Object",{assign:n(472)})},function(e,t,n){var r=n(1);r(r.S,"Object",{create:n(125)})},function(e,t,n){var r=n(1);r(r.S+r.F*!n(31),"Object",{defineProperties:n(473)})},function(e,t,n){var r=n(1);r(r.S+r.F*!n(31),"Object",{defineProperty:n(32).f})},function(e,t,n){var r=n(21),o=n(106).onFreeze;n(80)("freeze",function(e){return function(t){return e&&r(t)?e(o(t)):t}})},function(e,t,n){var r=n(61),o=n(59).f;n(80)("getOwnPropertyDescriptor",function(){return function(e,t){return o(r(e),t)}})},function(e,t,n){n(80)("getOwnPropertyNames",function(){return n(474).f})},function(e,t,n){var r=n(37),o=n(60);n(80)("getPrototypeOf",function(){return function(e){return o(r(e))}})},function(e,t,n){var r=n(21);n(80)("isExtensible",function(e){return function(t){return!!r(t)&&(!e||e(t))}})},function(e,t,n){var r=n(21);n(80)("isFrozen",function(e){return function(t){return!r(t)||!!e&&e(t)}})},function(e,t,n){var r=n(21);n(80)("isSealed",function(e){return function(t){return!r(t)||!!e&&e(t)}})},function(e,t,n){var r=n(1);r(r.S,"Object",{is:n(710)})},function(e,t,n){var r=n(37),o=n(127);n(80)("keys",function(){return function(e){return o(r(e))}})},function(e,t,n){var r=n(21),o=n(106).onFreeze;n(80)("preventExtensions",function(e){return function(t){return e&&r(t)?e(o(t)):t}})},function(e,t,n){var r=n(21),o=n(106).onFreeze;n(80)("seal",function(e){return function(t){return e&&r(t)?e(o(t)):t}})},function(e,t,n){var r=n(1);r(r.S,"Object",{setPrototypeOf:n(315).set})},function(e,t,n){"use strict";var r=n(192),o={};o[n(28)("toStringTag")]="z",o+""!="[object z]"&&n(51)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(e,t,n){var r=n(1),o=n(478);r(r.G+r.F*(parseFloat!=o),{parseFloat:o})},function(e,t,n){var r=n(1),o=n(479);r(r.G+r.F*(parseInt!=o),{parseInt:o})},function(e,t,n){"use strict";var r,o,i,a,u=n(124),s=n(15),c=n(68),l=n(192),f=n(1),d=n(21),p=n(44),h=n(122),v=n(123),m=n(234),y=n(321).set,g=n(313)(),_=n(314),b=n(480),E=n(481),T="Promise",w=s.TypeError,S=s.process,O=s[T],P="process"==l(S),R=function(){},I=o=_.f,A=!!function(){try{var e=O.resolve(1),t=(e.constructor={})[n(28)("species")]=function(e){e(R,R)};return(P||"function"==typeof PromiseRejectionEvent)&&e.then(R)instanceof t}catch(r){}}(),C=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},x=function(e,t){if(!e._n){e._n=!0;var n=e._c;g(function(){for(var r=e._v,o=1==e._s,i=0,a=function(t){var n,i,a=o?t.ok:t.fail,u=t.resolve,s=t.reject,c=t.domain;try{a?(o||(2==e._h&&k(e),e._h=1),a===!0?n=r:(c&&c.enter(),n=a(r),c&&c.exit()),n===t.promise?s(w("Promise-chain cycle")):(i=C(n))?i.call(n,u,s):u(n)):s(r)}catch(l){s(l)}};n.length>i;)a(n[i++]);e._c=[],e._n=!1,t&&!e._h&&N(e)})}},N=function(e){y.call(s,function(){var t,n,r,o=e._v,i=M(e);if(i&&(t=b(function(){P?S.emit("unhandledRejection",o,e):(n=s.onunhandledrejection)?n({promise:e,reason:o}):(r=s.console)&&r.error&&r.error("Unhandled promise rejection",o)}),e._h=P||M(e)?2:1),e._a=void 0,i&&t.e)throw t.v})},M=function(e){return 1!==e._h&&0===(e._a||e._c).length},k=function(e){y.call(s,function(){var t;P?S.emit("rejectionHandled",e):(t=s.onrejectionhandled)&&t({promise:e,reason:e._v})})},D=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),x(t,!0))},L=function j(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw w("Promise can't be resolved itself");(t=C(e))?g(function(){var r={_w:n,_d:!1};try{t.call(e,c(j,r,1),c(D,r,1))}catch(o){D.call(r,o)}}):(n._v=e,n._s=1,x(n,!1))}catch(r){D.call({_w:n,_d:!1},r)}}};A||(O=function(e){h(this,O,T,"_h"),p(e),r.call(this);try{e(c(L,this,1),c(D,this,1))}catch(t){D.call(this,t)}},r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(129)(O.prototype,{then:function(e,t){var n=I(m(this,O));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=P?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&x(this,!1),n.promise},"catch":function(e){return this.then(void 0,e)}}),i=function(){var e=new r;this.promise=e,this.resolve=c(L,e,1),this.reject=c(D,e,1)},_.f=I=function(e){return e===O||e===a?new i(e):o(e)}),f(f.G+f.W+f.F*!A,{Promise:O}),n(153)(O,T),n(130)(T),a=n(78)[T],f(f.S+f.F*!A,T,{reject:function(e){var t=I(this),n=t.reject;return n(e),t.promise}}),f(f.S+f.F*(u||!A),T,{resolve:function(e){return E(u&&this===a?O:this,e)}}),f(f.S+f.F*!(A&&n(228)(function(e){O.all(e)["catch"](R)})),T,{all:function(e){var t=this,n=I(t),r=n.resolve,o=n.reject,i=b(function(){var n=[],i=0,a=1;v(e,!1,function(e){var u=i++,s=!1;n.push(void 0),a++,t.resolve(e).then(function(e){s||(s=!0,n[u]=e,--a||r(n))},o)}),--a||r(n)});return i.e&&o(i.v),n.promise},race:function(e){var t=this,n=I(t),r=n.reject,o=b(function(){v(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}})},function(e,t,n){var r=n(1),o=n(44),i=n(13),a=(n(15).Reflect||{}).apply,u=Function.apply;r(r.S+r.F*!n(18)(function(){a(function(){})}),"Reflect",{apply:function(e,t,n){var r=o(e),s=i(n);return a?a(r,t,s):u.call(r,t,s)}})},function(e,t,n){var r=n(1),o=n(125),i=n(44),a=n(13),u=n(21),s=n(18),c=n(459),l=(n(15).Reflect||{}).construct,f=s(function(){function e(){}return!(l(function(){},[],e)instanceof e)}),d=!s(function(){l(function(){})});r(r.S+r.F*(f||d),"Reflect",{construct:function(e,t){i(e),a(t);var n=arguments.length<3?e:i(arguments[2]);if(d&&!f)return l(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(c.apply(e,r))}var s=n.prototype,p=o(u(s)?s:Object.prototype),h=Function.apply.call(e,p,t);return u(h)?h:p}})},function(e,t,n){var r=n(32),o=n(1),i=n(13),a=n(82);o(o.S+o.F*n(18)(function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(e,t,n){i(e),t=a(t,!0),i(n);try{return r.f(e,t,n),!0}catch(o){return!1}}})},function(e,t,n){var r=n(1),o=n(59).f,i=n(13);r(r.S,"Reflect",{deleteProperty:function(e,t){var n=o(i(e),t);return!(n&&!n.configurable)&&delete e[t]}})},function(e,t,n){"use strict";var r=n(1),o=n(13),i=function(e){this._t=o(e),this._i=0;var t,n=this._k=[];for(t in e)n.push(t)};n(309)(i,"Object",function(){var e,t=this,n=t._k;do if(t._i>=n.length)return{value:void 0,done:!0};while(!((e=n[t._i++])in t._t));return{value:e,done:!1}}),r(r.S,"Reflect",{enumerate:function(e){return new i(e)}})},function(e,t,n){var r=n(59),o=n(1),i=n(13);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return r.f(i(e),t)}})},function(e,t,n){var r=n(1),o=n(60),i=n(13);r(r.S,"Reflect",{getPrototypeOf:function(e){return o(i(e))}})},function(e,t,n){function r(e,t){var n,u,l=arguments.length<3?e:arguments[2];return c(e)===l?e[t]:(n=o.f(e,t))?a(n,"value")?n.value:void 0!==n.get?n.get.call(l):void 0:s(u=i(e))?r(u,t,l):void 0}var o=n(59),i=n(60),a=n(49),u=n(1),s=n(21),c=n(13);u(u.S,"Reflect",{get:r})},function(e,t,n){var r=n(1);r(r.S,"Reflect",{has:function(e,t){return t in e}})},function(e,t,n){var r=n(1),o=n(13),i=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(e){return o(e),!i||i(e)}})},function(e,t,n){var r=n(1);r(r.S,"Reflect",{ownKeys:n(477)})},function(e,t,n){var r=n(1),o=n(13),i=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(e){o(e);try{return i&&i(e),!0}catch(t){return!1}}})},function(e,t,n){var r=n(1),o=n(315);o&&r(r.S,"Reflect",{setPrototypeOf:function(e,t){o.check(e,t);try{return o.set(e,t),!0}catch(n){return!1}}})},function(e,t,n){function r(e,t,n){var s,d,p=arguments.length<4?e:arguments[3],h=i.f(l(e),t);if(!h){if(f(d=a(e)))return r(d,t,n,p);h=c(0)}return u(h,"value")?!(h.writable===!1||!f(p))&&(s=i.f(p,t)||c(0),s.value=n,o.f(p,t,s),!0):void 0!==h.set&&(h.set.call(p,n),!0)}var o=n(32),i=n(59),a=n(60),u=n(49),s=n(1),c=n(128),l=n(13),f=n(21);s(s.S,"Reflect",{set:r})},function(e,t,n){var r=n(15),o=n(307),i=n(32).f,a=n(126).f,u=n(227),s=n(225),c=r.RegExp,l=c,f=c.prototype,d=/a/g,p=/a/g,h=new c(d)!==d;if(n(31)&&(!h||n(18)(function(){return p[n(28)("match")]=!1,c(d)!=d||c(p)==p||"/a/i"!=c(d,"i")}))){c=function(e,t){var n=this instanceof c,r=u(e),i=void 0===t;return!n&&r&&e.constructor===c&&i?e:o(h?new l(r&&!i?e.source:e,t):l((r=e instanceof c)?e.source:e,r&&i?s.call(e):t),n?this:f,c)};for(var v=(function(e){e in c||i(c,e,{configurable:!0,get:function(){return l[e]},set:function(t){l[e]=t}})}),m=a(l),y=0;m.length>y;)v(m[y++]);f.constructor=c,c.prototype=f,n(51)(r,"RegExp",c)}n(130)("RegExp")},function(e,t,n){n(224)("match",1,function(e,t,n){return[function(n){"use strict";var r=e(this),o=void 0==n?void 0:n[t];return void 0!==o?o.call(n,r):new RegExp(n)[t](String(r))},n]})},function(e,t,n){n(224)("replace",2,function(e,t,n){return[function(r,o){"use strict";var i=e(this),a=void 0==r?void 0:r[t];return void 0!==a?a.call(r,i,o):n.call(String(i),r,o)},n]})},function(e,t,n){n(224)("search",1,function(e,t,n){return[function(n){"use strict";var r=e(this),o=void 0==n?void 0:n[t];return void 0!==o?o.call(n,r):new RegExp(n)[t](String(r))},n]})},function(e,t,n){n(224)("split",2,function(e,t,r){"use strict";var o=n(227),i=r,a=[].push,u="split",s="length",c="lastIndex";if("c"=="abbc"[u](/(b)*/)[1]||4!="test"[u](/(?:)/,-1)[s]||2!="ab"[u](/(?:ab)*/)[s]||4!="."[u](/(.?)(.?)/)[s]||"."[u](/()()/)[s]>1||""[u](/.?/)[s]){var l=void 0===/()??/.exec("")[1];r=function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!o(e))return i.call(n,e,t);var r,u,f,d,p,h=[],v=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,y=void 0===t?4294967295:t>>>0,g=new RegExp(e.source,v+"g");for(l||(r=new RegExp("^"+g.source+"$(?!\\s)",v));(u=g.exec(n))&&(f=u.index+u[0][s],!(f>m&&(h.push(n.slice(m,u.index)),!l&&u[s]>1&&u[0].replace(r,function(){for(p=1;p<arguments[s]-2;p++)void 0===arguments[p]&&(u[p]=void 0)}),u[s]>1&&u.index<n[s]&&a.apply(h,u.slice(1)),d=u[0][s],m=f,h[s]>=y)));)g[c]===u.index&&g[c]++;return m===n[s]?!d&&g.test("")||h.push(""):h.push(n.slice(m)),h[s]>y?h.slice(0,y):h}}else"0"[u](void 0,0)[s]&&(r=function(e,t){return void 0===e&&0===t?[]:i.call(this,e,t)});return[function(n,o){var i=e(this),a=void 0==n?void 0:n[t];return void 0!==a?a.call(n,i,o):r.call(String(i),n,o)},r]})},function(e,t,n){"use strict";n(486);var r=n(13),o=n(225),i=n(31),a="toString",u=/./[a],s=function(e){n(51)(RegExp.prototype,a,e,!0)};n(18)(function(){return"/a/b"!=u.call({source:"a",flags:"b"})})?s(function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!i&&e instanceof RegExp?o.call(e):void 0)}):u.name!=a&&s(function(){return u.call(this)})},function(e,t,n){"use strict";n(52)("anchor",function(e){return function(t){return e(this,"a","name",t);
}})},function(e,t,n){"use strict";n(52)("big",function(e){return function(){return e(this,"big","","")}})},function(e,t,n){"use strict";n(52)("blink",function(e){return function(){return e(this,"blink","","")}})},function(e,t,n){"use strict";n(52)("bold",function(e){return function(){return e(this,"b","","")}})},function(e,t,n){"use strict";var r=n(1),o=n(317)(!1);r(r.P,"String",{codePointAt:function(e){return o(this,e)}})},function(e,t,n){"use strict";var r=n(1),o=n(33),i=n(318),a="endsWith",u=""[a];r(r.P+r.F*n(305)(a),"String",{endsWith:function(e){var t=i(this,e,a),n=arguments.length>1?arguments[1]:void 0,r=o(t.length),s=void 0===n?r:Math.min(o(n),r),c=String(e);return u?u.call(t,c,s):t.slice(s-c.length,s)===c}})},function(e,t,n){"use strict";n(52)("fixed",function(e){return function(){return e(this,"tt","","")}})},function(e,t,n){"use strict";n(52)("fontcolor",function(e){return function(t){return e(this,"font","color",t)}})},function(e,t,n){"use strict";n(52)("fontsize",function(e){return function(t){return e(this,"font","size",t)}})},function(e,t,n){var r=n(1),o=n(131),i=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,a=0;r>a;){if(t=+arguments[a++],o(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?i(t):i(((t-=65536)>>10)+55296,t%1024+56320))}return n.join("")}})},function(e,t,n){"use strict";var r=n(1),o=n(318),i="includes";r(r.P+r.F*n(305)(i),"String",{includes:function(e){return!!~o(this,e,i).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";n(52)("italics",function(e){return function(){return e(this,"i","","")}})},function(e,t,n){"use strict";var r=n(317)(!0);n(310)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";n(52)("link",function(e){return function(t){return e(this,"a","href",t)}})},function(e,t,n){var r=n(1),o=n(61),i=n(33);r(r.S,"String",{raw:function(e){for(var t=o(e.raw),n=i(t.length),r=arguments.length,a=[],u=0;n>u;)a.push(String(t[u++])),u<r&&a.push(String(arguments[u]));return a.join("")}})},function(e,t,n){var r=n(1);r(r.P,"String",{repeat:n(319)})},function(e,t,n){"use strict";n(52)("small",function(e){return function(){return e(this,"small","","")}})},function(e,t,n){"use strict";var r=n(1),o=n(33),i=n(318),a="startsWith",u=""[a];r(r.P+r.F*n(305)(a),"String",{startsWith:function(e){var t=i(this,e,a),n=o(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return u?u.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){"use strict";n(52)("strike",function(e){return function(){return e(this,"strike","","")}})},function(e,t,n){"use strict";n(52)("sub",function(e){return function(){return e(this,"sub","","")}})},function(e,t,n){"use strict";n(52)("sup",function(e){return function(){return e(this,"sup","","")}})},function(e,t,n){"use strict";n(154)("trim",function(e){return function(){return e(this,3)}})},function(e,t,n){"use strict";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=n(15),i=n(49),a=n(31),u=n(1),s=n(51),c=n(106).KEY,l=n(18),f=n(233),d=n(153),p=n(132),h=n(28),v=n(484),m=n(324),y=n(708),g=n(226),_=n(13),b=n(21),E=n(61),T=n(82),w=n(128),S=n(125),O=n(474),P=n(59),R=n(32),I=n(127),A=P.f,C=R.f,x=O.f,N=o.Symbol,M=o.JSON,k=M&&M.stringify,D="prototype",L=h("_hidden"),j=h("toPrimitive"),F={}.propertyIsEnumerable,U=f("symbol-registry"),B=f("symbols"),H=f("op-symbols"),q=Object[D],V="function"==typeof N,G=o.QObject,W=!G||!G[D]||!G[D].findChild,K=a&&l(function(){return 7!=S(C({},"a",{get:function(){return C(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=A(q,t);r&&delete q[t],C(e,t,n),r&&e!==q&&C(q,t,r)}:C,Y=function(e){var t=B[e]=S(N[D]);return t._k=e,t},z=V&&"symbol"==r(N.iterator)?function(e){return"symbol"==("undefined"==typeof e?"undefined":r(e))}:function(e){return e instanceof N},X=function(e,t,n){return e===q&&X(H,t,n),_(e),t=T(t,!0),_(n),i(B,t)?(n.enumerable?(i(e,L)&&e[L][t]&&(e[L][t]=!1),n=S(n,{enumerable:w(0,!1)})):(i(e,L)||C(e,L,w(1,{})),e[L][t]=!0),K(e,t,n)):C(e,t,n)},$=function(e,t){_(e);for(var n,r=y(t=E(t)),o=0,i=r.length;i>o;)X(e,n=r[o++],t[n]);return e},Q=function(e,t){return void 0===t?S(e):$(S(e),t)},J=function(e){var t=F.call(this,e=T(e,!0));return!(this===q&&i(B,e)&&!i(H,e))&&(!(t||!i(this,e)||!i(B,e)||i(this,L)&&this[L][e])||t)},Z=function(e,t){if(e=E(e),t=T(t,!0),e!==q||!i(B,t)||i(H,t)){var n=A(e,t);return!n||!i(B,t)||i(e,L)&&e[L][t]||(n.enumerable=!0),n}},ee=function(e){for(var t,n=x(E(e)),r=[],o=0;n.length>o;)i(B,t=n[o++])||t==L||t==c||r.push(t);return r},te=function(e){for(var t,n=e===q,r=x(n?H:E(e)),o=[],a=0;r.length>a;)!i(B,t=r[a++])||n&&!i(q,t)||o.push(B[t]);return o};V||(N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function n(t){this===q&&n.call(H,t),i(this,L)&&i(this[L],e)&&(this[L][e]=!1),K(this,e,w(1,t))};return a&&W&&K(q,e,{configurable:!0,set:t}),Y(e)},s(N[D],"toString",function(){return this._k}),P.f=Z,R.f=X,n(126).f=O.f=ee,n(194).f=J,n(230).f=te,a&&!n(124)&&s(q,"propertyIsEnumerable",J,!0),v.f=function(e){return Y(h(e))}),u(u.G+u.W+u.F*!V,{Symbol:N});for(var ne="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;ne.length>re;)h(ne[re++]);for(var oe=I(h.store),ie=0;oe.length>ie;)m(oe[ie++]);u(u.S+u.F*!V,"Symbol",{"for":function(e){return i(U,e+="")?U[e]:U[e]=N(e)},keyFor:function(e){if(!z(e))throw TypeError(e+" is not a symbol!");for(var t in U)if(U[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),u(u.S+u.F*!V,"Object",{create:Q,defineProperty:X,defineProperties:$,getOwnPropertyDescriptor:Z,getOwnPropertyNames:ee,getOwnPropertySymbols:te}),M&&u(u.S+u.F*(!V||l(function(){var e=N();return"[null]"!=k([e])||"{}"!=k({a:e})||"{}"!=k(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(b(t)||void 0!==e)&&!z(e))return g(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!z(t))return t}),r[1]=t,k.apply(M,r)}}),N[D][j]||n(50)(N[D],j,N[D].valueOf),d(N,"Symbol"),d(Math,"Math",!0),d(o.JSON,"JSON",!0)},function(e,t,n){"use strict";var r=n(1),o=n(235),i=n(322),a=n(13),u=n(131),s=n(33),c=n(21),l=n(15).ArrayBuffer,f=n(234),d=i.ArrayBuffer,p=i.DataView,h=o.ABV&&l.isView,v=d.prototype.slice,m=o.VIEW,y="ArrayBuffer";r(r.G+r.W+r.F*(l!==d),{ArrayBuffer:d}),r(r.S+r.F*!o.CONSTR,y,{isView:function(e){return h&&h(e)||c(e)&&m in e}}),r(r.P+r.U+r.F*n(18)(function(){return!new d(2).slice(1,void 0).byteLength}),y,{slice:function(e,t){if(void 0!==v&&void 0===t)return v.call(a(this),e);for(var n=a(this).byteLength,r=u(e,n),o=u(void 0===t?n:t,n),i=new(f(this,d))(s(o-r)),c=new p(this),l=new p(i),h=0;r<o;)l.setUint8(h++,c.getUint8(r++));return i}}),n(130)(y)},function(e,t,n){var r=n(1);r(r.G+r.W+r.F*!n(235).ABV,{DataView:n(322).DataView})},function(e,t,n){n(92)("Float32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(92)("Float64",8,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(92)("Int16",2,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(92)("Int32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(92)("Int8",1,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(92)("Uint16",2,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(92)("Uint32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(92)("Uint8",1,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(92)("Uint8",1,function(e){return function(t,n,r){return e(this,t,n,r)}},!0)},function(e,t,n){"use strict";var r=n(462),o=n(155),i="WeakSet";n(223)(i,function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return r.def(o(this,i),e,!0)}},r,!1,!0)},function(e,t,n){"use strict";var r=n(1),o=n(463),i=n(37),a=n(33),u=n(44),s=n(301);r(r.P,"Array",{flatMap:function(e){var t,n,r=i(this);return u(e),t=a(r.length),n=s(r,0),o(n,r,r,t,0,1,e,arguments[1]),n}}),n(105)("flatMap")},function(e,t,n){"use strict";var r=n(1),o=n(463),i=n(37),a=n(33),u=n(81),s=n(301);r(r.P,"Array",{flatten:function(){var e=arguments[0],t=i(this),n=a(t.length),r=s(t,0);return o(r,t,t,n,0,void 0===e?1:u(e)),r}}),n(105)("flatten")},function(e,t,n){"use strict";var r=n(1),o=n(222)(!0);r(r.P,"Array",{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(105)("includes")},function(e,t,n){var r=n(1),o=n(313)(),i=n(15).process,a="process"==n(67)(i);r(r.G,{asap:function(e){var t=a&&i.domain;o(t?t.bind(e):e)}})},function(e,t,n){var r=n(1),o=n(67);r(r.S,"Error",{isError:function(e){return"Error"===o(e)}})},function(e,t,n){var r=n(1);r(r.G,{global:n(15)})},function(e,t,n){n(231)("Map")},function(e,t,n){n(232)("Map")},function(e,t,n){var r=n(1);r(r.P+r.R,"Map",{toJSON:n(461)("Map")})},function(e,t,n){var r=n(1);r(r.S,"Math",{clamp:function(e,t,n){return Math.min(n,Math.max(t,e))}})},function(e,t,n){var r=n(1);r(r.S,"Math",{DEG_PER_RAD:Math.PI/180})},function(e,t,n){var r=n(1),o=180/Math.PI;r(r.S,"Math",{degrees:function(e){return e*o}})},function(e,t,n){var r=n(1),o=n(471),i=n(469);r(r.S,"Math",{fscale:function(e,t,n,r,a){return i(o(e,t,n,r,a))}})},function(e,t,n){var r=n(1);r(r.S,"Math",{iaddh:function(e,t,n,r){var o=e>>>0,i=t>>>0,a=n>>>0;return i+(r>>>0)+((o&a|(o|a)&~(o+a>>>0))>>>31)|0}})},function(e,t,n){var r=n(1);r(r.S,"Math",{imulh:function(e,t){var n=65535,r=+e,o=+t,i=r&n,a=o&n,u=r>>16,s=o>>16,c=(u*a>>>0)+(i*a>>>16);return u*s+(c>>16)+((i*s>>>0)+(c&n)>>16)}})},function(e,t,n){var r=n(1);r(r.S,"Math",{isubh:function(e,t,n,r){var o=e>>>0,i=t>>>0,a=n>>>0;return i-(r>>>0)-((~o&a|~(o^a)&o-a>>>0)>>>31)|0}})},function(e,t,n){var r=n(1);r(r.S,"Math",{RAD_PER_DEG:180/Math.PI})},function(e,t,n){var r=n(1),o=Math.PI/180;r(r.S,"Math",{radians:function(e){return e*o}})},function(e,t,n){var r=n(1);r(r.S,"Math",{scale:n(471)})},function(e,t,n){var r=n(1);r(r.S,"Math",{signbit:function(e){return(e=+e)!=e?e:0==e?1/e==1/0:e>0}})},function(e,t,n){var r=n(1);r(r.S,"Math",{umulh:function(e,t){var n=65535,r=+e,o=+t,i=r&n,a=o&n,u=r>>>16,s=o>>>16,c=(u*a>>>0)+(i*a>>>16);return u*s+(c>>>16)+((i*s>>>0)+(c&n)>>>16)}})},function(e,t,n){"use strict";var r=n(1),o=n(37),i=n(44),a=n(32);n(31)&&r(r.P+n(229),"Object",{__defineGetter__:function(e,t){a.f(o(this),e,{get:i(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var r=n(1),o=n(37),i=n(44),a=n(32);n(31)&&r(r.P+n(229),"Object",{__defineSetter__:function(e,t){a.f(o(this),e,{set:i(t),enumerable:!0,configurable:!0})}})},function(e,t,n){var r=n(1),o=n(476)(!0);r(r.S,"Object",{entries:function(e){return o(e)}})},function(e,t,n){var r=n(1),o=n(477),i=n(61),a=n(59),u=n(302);r(r.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,r=i(e),s=a.f,c=o(r),l={},f=0;c.length>f;)n=s(r,t=c[f++]),void 0!==n&&u(l,t,n);return l}})},function(e,t,n){"use strict";var r=n(1),o=n(37),i=n(82),a=n(60),u=n(59).f;n(31)&&r(r.P+n(229),"Object",{__lookupGetter__:function(e){var t,n=o(this),r=i(e,!0);do if(t=u(n,r))return t.get;while(n=a(n))}})},function(e,t,n){"use strict";var r=n(1),o=n(37),i=n(82),a=n(60),u=n(59).f;n(31)&&r(r.P+n(229),"Object",{__lookupSetter__:function(e){var t,n=o(this),r=i(e,!0);do if(t=u(n,r))return t.set;while(n=a(n))}})},function(e,t,n){var r=n(1),o=n(476)(!1);r(r.S,"Object",{values:function(e){return o(e)}})},function(e,t,n){"use strict";var r=n(1),o=n(15),i=n(78),a=n(313)(),u=n(28)("observable"),s=n(44),c=n(13),l=n(122),f=n(129),d=n(50),p=n(123),h=p.RETURN,v=function(e){return null==e?void 0:s(e)},m=function(e){var t=e._c;t&&(e._c=void 0,t())},y=function(e){return void 0===e._o},g=function(e){y(e)||(e._o=void 0,m(e))},_=function(e,t){c(e),this._c=void 0,this._o=e,e=new b(this);try{var n=t(e),r=n;null!=n&&("function"==typeof n.unsubscribe?n=function(){r.unsubscribe()}:s(n),this._c=n)}catch(o){return void e.error(o)}y(this)&&m(this)};_.prototype=f({},{unsubscribe:function(){g(this)}});var b=function(e){this._s=e};b.prototype=f({},{next:function(e){var t=this._s;if(!y(t)){var n=t._o;try{var r=v(n.next);if(r)return r.call(n,e)}catch(o){try{g(t)}finally{throw o}}}},error:function(e){var t=this._s;if(y(t))throw e;var n=t._o;t._o=void 0;try{var r=v(n.error);if(!r)throw e;e=r.call(n,e)}catch(o){try{m(t)}finally{throw o}}return m(t),e},complete:function(e){var t=this._s;if(!y(t)){var n=t._o;t._o=void 0;try{var r=v(n.complete);e=r?r.call(n,e):void 0}catch(o){try{m(t)}finally{throw o}}return m(t),e}}});var E=function(e){l(this,E,"Observable","_f")._f=s(e)};f(E.prototype,{subscribe:function(e){return new _(e,this._f)},forEach:function(e){var t=this;return new(i.Promise||o.Promise)(function(n,r){s(e);var o=t.subscribe({next:function(t){try{return e(t)}catch(n){r(n),o.unsubscribe()}},error:r,complete:n})})}}),f(E,{from:function(e){var t="function"==typeof this?this:E,n=v(c(e)[u]);if(n){var r=c(n.call(e));return r.constructor===t?r:new t(function(e){return r.subscribe(e)})}return new t(function(t){var n=!1;return a(function(){if(!n){try{if(p(e,!1,function(e){if(t.next(e),n)return h})===h)return}catch(r){if(n)throw r;return void t.error(r)}t.complete()}}),function(){n=!0}})},of:function(){for(var e=0,t=arguments.length,n=new Array(t);e<t;)n[e]=arguments[e++];return new("function"==typeof this?this:E)(function(e){var t=!1;return a(function(){if(!t){for(var r=0;r<n.length;++r)if(e.next(n[r]),t)return;e.complete()}}),function(){t=!0}})}}),d(E.prototype,u,function(){return this}),r(r.G,{Observable:E}),n(130)("Observable")},function(e,t,n){"use strict";var r=n(1),o=n(78),i=n(15),a=n(234),u=n(481);r(r.P+r.R,"Promise",{"finally":function(e){var t=a(this,o.Promise||i.Promise),n="function"==typeof e;return this.then(n?function(n){return u(t,e()).then(function(){return n})}:e,n?function(n){return u(t,e()).then(function(){throw n})}:e)}})},function(e,t,n){"use strict";var r=n(1),o=n(314),i=n(480);r(r.S,"Promise",{"try":function(e){var t=o.f(this),n=i(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},function(e,t,n){var r=n(91),o=n(13),i=r.key,a=r.set;r.exp({defineMetadata:function(e,t,n,r){a(e,t,o(n),i(r))}})},function(e,t,n){var r=n(91),o=n(13),i=r.key,a=r.map,u=r.store;r.exp({deleteMetadata:function(e,t){var n=arguments.length<3?void 0:i(arguments[2]),r=a(o(t),n,!1);if(void 0===r||!r["delete"](e))return!1;if(r.size)return!0;var s=u.get(t);return s["delete"](n),!!s.size||u["delete"](t)}})},function(e,t,n){var r=n(487),o=n(457),i=n(91),a=n(13),u=n(60),s=i.keys,c=i.key,l=function f(e,t){var n=s(e,t),i=u(e);if(null===i)return n;var a=f(i,t);return a.length?n.length?o(new r(n.concat(a))):a:n};i.exp({getMetadataKeys:function(e){return l(a(e),arguments.length<2?void 0:c(arguments[1]))}})},function(e,t,n){var r=n(91),o=n(13),i=n(60),a=r.has,u=r.get,s=r.key,c=function l(e,t,n){var r=a(e,t,n);if(r)return u(e,t,n);var o=i(t);return null!==o?l(e,o,n):void 0};r.exp({getMetadata:function(e,t){return c(e,o(t),arguments.length<3?void 0:s(arguments[2]))}})},function(e,t,n){var r=n(91),o=n(13),i=r.keys,a=r.key;r.exp({getOwnMetadataKeys:function(e){return i(o(e),arguments.length<2?void 0:a(arguments[1]))}})},function(e,t,n){var r=n(91),o=n(13),i=r.get,a=r.key;r.exp({getOwnMetadata:function(e,t){return i(e,o(t),arguments.length<3?void 0:a(arguments[2]))}})},function(e,t,n){var r=n(91),o=n(13),i=n(60),a=r.has,u=r.key,s=function c(e,t,n){var r=a(e,t,n);if(r)return!0;var o=i(t);return null!==o&&c(e,o,n)};r.exp({hasMetadata:function(e,t){return s(e,o(t),arguments.length<3?void 0:u(arguments[2]))}})},function(e,t,n){var r=n(91),o=n(13),i=r.has,a=r.key;r.exp({hasOwnMetadata:function(e,t){return i(e,o(t),arguments.length<3?void 0:a(arguments[2]))}})},function(e,t,n){var r=n(91),o=n(13),i=n(44),a=r.key,u=r.set;r.exp({metadata:function(e,t){return function(n,r){u(e,t,(void 0!==r?o:i)(n),a(r))}}})},function(e,t,n){n(231)("Set")},function(e,t,n){n(232)("Set")},function(e,t,n){var r=n(1);r(r.P+r.R,"Set",{toJSON:n(461)("Set")})},function(e,t,n){"use strict";var r=n(1),o=n(317)(!0);r(r.P,"String",{at:function(e){return o(this,e)}})},function(e,t,n){"use strict";var r=n(1),o=n(79),i=n(33),a=n(227),u=n(225),s=RegExp.prototype,c=function(e,t){this._r=e,this._s=t};n(309)(c,"RegExp String",function(){var e=this._r.exec(this._s);return{value:e,done:null===e}}),r(r.P,"String",{matchAll:function(e){if(o(this),!a(e))throw TypeError(e+" is not a regexp!");var t=String(this),n="flags"in s?String(e.flags):u.call(e),r=new RegExp(e.source,~n.indexOf("g")?n:"g"+n);return r.lastIndex=i(e.lastIndex),new c(r,t)}})},function(e,t,n){"use strict";var r=n(1),o=n(482),i=n(323);r(r.P+r.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(i),"String",{padEnd:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},function(e,t,n){"use strict";var r=n(1),o=n(482),i=n(323);r(r.P+r.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(i),"String",{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},function(e,t,n){"use strict";n(154)("trimLeft",function(e){return function(){return e(this,1)}},"trimStart")},function(e,t,n){"use strict";n(154)("trimRight",function(e){return function(){return e(this,2)}},"trimEnd")},function(e,t,n){n(324)("asyncIterator")},function(e,t,n){n(324)("observable")},function(e,t,n){var r=n(1);r(r.S,"System",{global:n(15)})},function(e,t,n){n(231)("WeakMap")},function(e,t,n){n(232)("WeakMap")},function(e,t,n){n(231)("WeakSet")},function(e,t,n){n(232)("WeakSet")},function(e,t,n){for(var r=n(326),o=n(127),i=n(51),a=n(15),u=n(50),s=n(152),c=n(28),l=c("iterator"),f=c("toStringTag"),d=s.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=o(p),v=0;v<h.length;v++){var m,y=h[v],g=p[y],_=a[y],b=_&&_.prototype;if(b&&(b[l]||u(b,l,d),b[f]||u(b,f,y),s[y]=d,g))for(m in r)b[m]||i(b,m,r[m],!0)}},function(e,t,n){var r=n(1),o=n(321);r(r.G+r.B,{setImmediate:o.set,clearImmediate:o.clear})},function(e,t,n){var r=n(15),o=n(1),i=n(323),a=[].slice,u=/MSIE .\./.test(i),s=function(e){return function(t,n){var r=arguments.length>2,o=!!r&&a.call(arguments,2);return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,o)}:t,n)}};o(o.G+o.B+o.F*u,{setTimeout:s(r.setTimeout),setInterval:s(r.setInterval)})},function(e,t,n){n(831),n(770),n(772),n(771),n(774),n(776),n(781),n(775),n(773),n(783),n(782),n(778),n(779),n(777),n(769),n(780),n(784),n(785),n(737),n(739),n(738),n(787),n(786),n(757),n(767),n(768),n(758),n(759),n(760),n(761),n(762),n(763),n(764),n(765),n(766),n(740),n(741),n(742),n(743),n(744),n(745),n(746),n(747),n(748),n(749),n(750),n(751),n(752),n(753),n(754),n(755),n(756),n(818),n(823),n(830),n(821),n(813),n(814),n(819),n(824),n(826),n(809),n(810),n(811),n(812),n(815),n(816),n(817),n(820),n(822),n(825),n(827),n(828),n(829),n(732),n(734),n(733),n(736),n(735),n(721),n(719),n(725),n(722),n(728),n(730),n(718),n(724),n(715),n(729),n(713),n(727),n(726),n(720),n(723),n(712),n(714),n(717),n(716),n(731),n(326),n(803),n(808),n(486),n(804),n(805),n(806),n(807),n(788),n(485),n(487),n(488),n(843),n(832),n(833),n(838),n(841),n(842),n(836),n(839),n(837),n(840),n(834),n(835),n(789),n(790),n(791),n(792),n(793),n(796),n(794),n(795),n(797),n(798),n(799),n(800),n(802),n(801),n(846),n(844),n(845),n(887),n(890),n(889),n(891),n(892),n(888),n(893),n(894),n(868),n(871),n(867),n(865),n(866),n(869),n(870),n(852),n(886),n(851),n(885),n(897),n(899),n(850),n(884),n(896),n(898),n(849),n(895),n(848),n(853),n(854),n(855),n(856),n(857),n(859),n(858),n(860),n(861),n(862),n(864),n(863),n(873),n(874),n(875),n(876),n(878),n(877),n(880),n(879),n(881),n(882),n(883),n(847),n(872),n(902),n(901),n(900),e.exports=n(78)},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,c){"object"===a(t)?e.exports=t=s(n(107),n(327),n(489)):(o=[n(107),n(327),n(489)],r=s,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i)))}(this,function(e){return e.HmacSHA256})},function(e,t,n){"use strict";var r={};r.encode=function(e){for(var t=[],n=0;n<e.length;++n){var r=e.charCodeAt(n);r<128?t.push(r):r<2048?(t.push(192|r>>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},r.decode=function(e){for(var t=[],n=0;n<e.length;){var r=e[n++];r<128||(r<224?(r=(31&r)<<6,r|=63&e[n++]):r<240?(r=(15&r)<<12,r|=(63&e[n++])<<6,r|=63&e[n++]):(r=(7&r)<<18,r|=(63&e[n++])<<12,r|=(63&e[n++])<<6,r|=63&e[n++])),t.push(String.fromCharCode(r))}return t.join("")};var o={};!function(e){var t=function(t){for(var n=0,r=[],o=0|t.length/3;0<o--;){var i=(t[n]<<16)+(t[n+1]<<8)+t[n+2];n+=3,r.push(e.charAt(63&i>>18)),r.push(e.charAt(63&i>>12)),r.push(e.charAt(63&i>>6)),r.push(e.charAt(63&i))}if(2==t.length-n){var i=(t[n]<<16)+(t[n+1]<<8);r.push(e.charAt(63&i>>18)),r.push(e.charAt(63&i>>12)),r.push(e.charAt(63&i>>6)),r.push("=")}else if(1==t.length-n){var i=t[n]<<16;r.push(e.charAt(63&i>>18)),r.push(e.charAt(63&i>>12)),r.push("==")}return r.join("")},n=function(){for(var t=[],n=0;n<e.length;++n)t[e.charCodeAt(n)]=n;return t["=".charCodeAt(0)]=0,t}(),i=function(e){for(var t=0,r=[],o=0|e.length/4;0<o--;){var i=(n[e.charCodeAt(t)]<<18)+(n[e.charCodeAt(t+1)]<<12)+(n[e.charCodeAt(t+2)]<<6)+n[e.charCodeAt(t+3)];r.push(255&i>>16),r.push(255&i>>8),r.push(255&i),t+=4}return r&&("="==e.charAt(t-2)?(r.pop(),r.pop()):"="==e.charAt(t-1)&&r.pop()),r},u={};u.encode=function(e){for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t},u.decode=function(e){for(var t=0;t<s.length;++t)a[t]=String.fromCharCode(a[t]);return a.join("")},o.decodeArray=function(e){var t=i(e);return new Uint8Array(t)},o.encodeASCII=function(e){var n=u.encode(e);return t(n)},o.decodeASCII=function(e){var t=i(e);return u.decode(t)},o.encode=function(e){var n=r.encode(e);return t(n)},o.decode=function(e){var t=i(e);return r.decode(t)}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),t.decode=o.decode,t.decodeArray=o.decodeArray,t.encode=o.encode},function(e,t){"use strict";function n(e){var t,n,o;for(t=[],o=0,n=e.length;o<n;o+=1)e[o].isRoot?t.push("root"):t.push(e[o].name);var i=function(e,t){var n;if(null!==e&&null!==t)for(n in e)e.hasOwnProperty(n)&&(t.hasOwnProperty(n)||(t[n]=e[n]))},a=function(e,t,n){var o,a,u,s,c;if(null!==e&&0!==e.length)for(o=0,a=e.length;o<a;o+=1)u=e[o],t.hasOwnProperty(u.name)&&(n.hasOwnProperty(u.name)?u.merge&&(s=t[u.name],c=n[u.name],"object"===("undefined"==typeof s?"undefined":r(s))&&"object"===("undefined"==typeof c?"undefined":r(c))?i(s,c):null!=u.mergeFunction?n[u.name]=u.mergeFunction(s,c):n[u.name]=s+c):n[u.name]=t[u.name])},u=function c(e,t){var n,r,o,i,u,s,l,f=e;if(null!==f.children&&0!==f.children.length)for(n=0,r=f.children.length;n<r;n+=1)if(s=f.children[n],t.hasOwnProperty(s.name))if(s.isArray)for(u=t[s.name+"_asArray"],o=0,i=u.length;o<i;o+=1)l=u[o],a(f.properties,t,l),c(s,l);else l=t[s.name],a(f.properties,t,l),c(s,l)},s=function l(n){var o,i,a,s,c,f,d;if(null===n)return n;if("object"!==("undefined"==typeof n?"undefined":r(n)))return n;for(o=0,i=t.length;o<i;o+=1)"root"===t[o]&&(c=e[o],f=n,u(c,f));for(s in n)if(n.hasOwnProperty(s)&&"__children"!=s){if(a=t.indexOf(s),a!==-1)if(c=e[a],c.isArray)for(d=n[s+"_asArray"],o=0,i=d.length;o<i;o+=1)f=d[o],u(c,f);else f=n[s],u(c,f);l(n[s])}return n};return{run:s}}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};Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(908),i=n(952),a=r(i),u=n(975),s=r(u),c=n(938),l=r(c);dashjs.Protection=s["default"],dashjs.MetricsReporting=a["default"],dashjs.MediaPlayerFactory=l["default"],t["default"]=dashjs,t.MediaPlayer=o.MediaPlayer,t.Protection=s["default"],t.MetricsReporting=a["default"],t.MediaPlayerFactory=l["default"]},function(e,t,n){"use strict";(function(e){function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(498),i=r(o),a=n(2),u=r(a),s=n(493),c="undefined"!=typeof window&&window||e,l=c.dashjs;l||(l=c.dashjs={}),l.MediaPlayer=i["default"],l.FactoryMaker=u["default"],l.Version=(0,s.getVersionString)(),t["default"]=l,t.MediaPlayer=i["default"],t.FactoryMaker=u["default"]}).call(t,n(36))},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.BUFFERING_COMPLETED="bufferingCompleted",this.BUFFER_CLEARED="bufferCleared",this.BUFFER_LEVEL_UPDATED="bufferLevelUpdated",this.BYTES_APPENDED="bytesAppended",this.CHECK_FOR_EXISTENCE_COMPLETED="checkForExistenceCompleted",this.CURRENT_TRACK_CHANGED="currentTrackChanged",this.DATA_UPDATE_COMPLETED="dataUpdateCompleted",this.DATA_UPDATE_STARTED="dataUpdateStarted",this.INITIALIZATION_LOADED="initializationLoaded",this.INIT_FRAGMENT_LOADED="initFragmentLoaded",this.INIT_REQUESTED="initRequested",this.INTERNAL_MANIFEST_LOADED="internalManifestLoaded",this.LIVE_EDGE_SEARCH_COMPLETED="liveEdgeSearchCompleted",this.LOADING_COMPLETED="loadingCompleted",this.LOADING_PROGRESS="loadingProgress",this.LOADING_ABANDONED="loadingAborted",this.MANIFEST_UPDATED="manifestUpdated",this.MEDIA_FRAGMENT_LOADED="mediaFragmentLoaded",this.QUOTA_EXCEEDED="quotaExceeded",this.REPRESENTATION_UPDATED="representationUpdated",this.SEGMENTS_LOADED="segmentsLoaded",this.SERVICE_LOCATION_BLACKLIST_ADD="serviceLocationBlacklistAdd",this.SERVICE_LOCATION_BLACKLIST_CHANGED="serviceLocationBlacklistChanged",this.SOURCEBUFFER_APPEND_COMPLETED="sourceBufferAppendCompleted",this.SOURCEBUFFER_REMOVE_COMPLETED="sourceBufferRemoveCompleted",this.STREAMS_COMPOSED="streamsComposed",this.STREAM_BUFFERING_COMPLETED="streamBufferingCompleted",this.STREAM_COMPLETED="streamCompleted",this.TEXT_TRACKS_QUEUE_INITIALIZED="textTracksQueueInitialized",this.TIMED_TEXT_REQUESTED="timedTextRequested",this.TIME_SYNCHRONIZATION_COMPLETED="timeSynchronizationComplete",this.URL_RESOLUTION_FAILED="urlResolutionFailed",this.VIDEO_CHUNK_RECEIVED="videoChunkReceived",this.WALLCLOCK_TIME_UPDATED="wallclockTimeUpdated",this.XLINK_ELEMENT_LOADED="xlinkElementLoaded",this.XLINK_READY="xlinkReady"}return i(t,e),t}(c["default"]);t["default"]=l,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){function e(){L()}function t(e){e&&e.dashManifestModel&&(F=e.dashManifestModel)}function n(e,t){return t&&e?t.getRepresentationForQuality(e.quality):null}function r(e){return e&&e.streamInfo&&void 0!==e.streamInfo.id&&B[e.streamInfo.id]?B[e.streamInfo.id][e.index]:null}function o(e,t){for(var n=t.length,r=0;r<n;r++){var o=t[r];if(e.id===o.id)return o}return null}function i(e){var t=new s["default"],n=e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index],r=F.getRepresentationFor(e.index,n);return t.id=e.id,t.quality=e.index,t.bandwidth=F.getBandwidth(r),t.DVRWindow=e.segmentAvailabilityRange,t.fragmentDuration=e.segmentDuration||(e.segments&&e.segments.length>0?e.segments[0].duration:NaN),t.MSETimeOffset=e.MSETimeOffset,t.useCalculatedLiveEdgeTime=e.useCalculatedLiveEdgeTime,t.mediaInfo=u(e.adaptation),t}function u(e){var t=new l["default"],n=e.period.mpd.manifest.Period_asArray[e.period.index].AdaptationSet_asArray[e.index],r=void 0;return t.id=e.id,t.index=e.index,t.type=e.type,t.streamInfo=f(e.period),t.representationCount=F.getRepresentationCount(n),t.lang=F.getLanguageForAdaptation(n),r=F.getViewpointForAdaptation(n),t.viewpoint=r?r.value:void 0,t.accessibility=F.getAccessibilityForAdaptation(n).map(function(e){var n=e.value,r=n;return e.schemeIdUri&&e.schemeIdUri.search("cea-608")>=0&&"undefined"!=typeof b["default"]&&(r=n?"cea-608:"+n:"cea-608",t.embeddedCaptions=!0),r}),t.audioChannelConfiguration=F.getAudioChannelConfigurationForAdaptation(n).map(function(e){return e.value}),t.roles=F.getRolesForAdaptation(n).map(function(e){return e.value}),t.codec=F.getCodec(n),t.mimeType=F.getMimeType(n),t.contentProtection=F.getContentProtectionData(n),t.bitrateList=F.getBitrateListForAdaptation(n),t.contentProtection&&t.contentProtection.forEach(function(e){e.KID=F.getKID(e)}),t.isText=F.getIsTextTrack(t.mimeType),t}function c(e,t,n){e.id=t,e.index=100+parseInt(t.substring(2,3)),e.type=a["default"].EMBEDDED_TEXT,e.codec="cea-608-in-SEI",e.isText=!0,e.isEmbedded=!0,e.lang=t+" "+n,e.roles=["caption"]}function f(e){var t=new d["default"],n=1;return t.id=e.id,t.index=e.index,t.start=e.start,t.duration=e.duration,t.manifestInfo=p(e.mpd),t.isLast=1===e.mpd.manifest.Period_asArray.length||Math.abs(t.start+t.duration-t.manifestInfo.duration)<n,t}function p(e){var t=new h["default"];return t.DVRWindowSize=e.timeShiftBufferDepth,t.loadedTime=e.manifest.loadedTime,t.availableFrom=e.availabilityStartTime,t.minBufferTime=e.manifest.minBufferTime,t.maxFragmentDuration=e.maxSegmentDuration,t.duration=F.getDuration(e.manifest),t.isDynamic=F.getIsDynamic(e.manifest),t}function v(e,t){if(0===U.length)return null;var n=U[0].mpd.manifest,r=F.getAdaptationForType(n,e.index,t,e);if(!r)return null;var i=o(e,U),a=i.id,s=F.getIndexForAdaptation(r,n,e.index);return B[a]=B[a]||F.getAdaptationsForPeriod(i),u(B[a][s])}function y(e,t,n){var r=U,i=n,s=[],l=void 0,f=void 0,d=void 0,p=void 0,h=void 0,v=void 0;if(i){g();var m=F.getMpd(i);r=F.getRegularPeriods(m)}else{if(!(U.length>0))return s;i=U[0].mpd.manifest}var y=o(e,r),_=y.id,b=F.getAdaptationsForType(i,e.index,t!==a["default"].EMBEDDED_TEXT?t:a["default"].VIDEO);if(!b)return s;for(B[_]=B[_]||F.getAdaptationsForPeriod(y),p=0,v=b.length;p<v;p++){if(l=b[p],
d=F.getIndexForAdaptation(l,i,e.index),f=u(B[_][d]),t===a["default"].EMBEDDED_TEXT){var E=f.accessibility.length;for(h=0;h<E;h++)if(f){var T=f.accessibility[h];if(0===T.indexOf("cea-608:")){var w=T.substring(8),S=w.split(";");if("CC"===S[0].substring(0,2))for(h=0;h<S.length;h++)f||(f=u.call(this,B[_][d])),c(f,S[h].substring(0,3),S[h].substring(4)),s.push(f),f=null;else for(h=0;h<S.length;h++)f||(f=u.call(this,B[_][d])),c(f,"CC"+(h+1),S[h]),s.push(f),f=null}else 0===T.indexOf("cea-608")&&(c(f,a["default"].CC1,"eng"),s.push(f),f=null)}}f&&t!==a["default"].EMBEDDED_TEXT&&s.push(f)}return s}function g(){if(!F||!F.hasOwnProperty("getMpd")||!F.hasOwnProperty("getRegularPeriods"))throw new Error("setConfig function has to be called previously")}function _(e){if(!e)return null;g();var t=F.getMpd(e);U=F.getRegularPeriods(t),B={}}function E(e){var t=[],n=U;if(e){g();var r=F.getMpd(e);n=F.getRegularPeriods(r)}for(var o=0;o<n.length;o++)t.push(f(n[o]));return t}function T(e){if(!(e&&e.hasOwnProperty("getRepresentationController")&&e.hasOwnProperty("getIndexHandler")&&e.hasOwnProperty("getMediaInfo")&&e.hasOwnProperty("getType")&&e.hasOwnProperty("getStreamInfo")))throw new Error("streamProcessor parameter is missing or malformed!")}function w(e){if(!e||!e.hasOwnProperty("getRepresentationForQuality")||!e.hasOwnProperty("getCurrentRepresentation"))throw new Error("representationController parameter is missing or malformed!")}function S(e){var t=null!==e&&!isNaN(e)&&e%1===0;if(!t)throw new Error("quality argument is not an integer")}function O(e,t){var n=void 0,r=void 0,o=void 0;return T(e),S(t),n=e.getRepresentationController(),o=e.getIndexHandler(),r=n?n.getRepresentationForQuality(t):null,o?o.getInitRequest(r):null}function P(e,t){var r=void 0,o=void 0,i=void 0;return T(e),r=e.getRepresentationController(),o=n(t,r),i=e.getIndexHandler(),i?i.getNextSegmentRequest(o):null}function R(e,t,r,o){var i=void 0,a=void 0,u=void 0;return T(e),i=e.getRepresentationController(),a=n(t,i),u=e.getIndexHandler(),u?u.getSegmentRequestForTime(a,r,o):null}function I(e,t,r){var o=void 0,i=void 0,a=void 0;return T(e),o=e.getRepresentationController(),i=n(t,o),a=e.getIndexHandler(),a?a.generateSegmentRequestForTime(i,r):null}function A(e){T(e);var t=e.getIndexHandler();return t?t.getCurrentTime():NaN}function C(e,t){T(e);var n=e.getIndexHandler();n&&n.setCurrentTime(t)}function x(e){T(e);var t=o(e.getStreamInfo(),U),n=e.getMediaInfo(),i=r(n),a=e.getType(),u=void 0,s=void 0;u=n?n.id:null,U.length>0&&(s=u?F.getAdaptationForId(u,U[0].mpd.manifest,t.index):F.getAdaptationForIndex(n.index,U[0].mpd.manifest,t.index),e.getRepresentationController().updateData(s,i,a))}function N(e,t){w(e),S(t);var n=e.getRepresentationForQuality(t);return n?i(n):null}function M(e){w(e);var t=e.getCurrentRepresentation();return t?i(t):null}function k(e,t,n){if(!e||!t)return null;var r=new m["default"],o=e.scheme_id_uri,i=e.value,a=e.timescale,u=e.presentation_time_delta,s=e.event_duration,c=e.id,l=e.message_data,f=n*a+u;return t[o]?(r.eventStream=t[o],r.eventStream.value=i,r.eventStream.timescale=a,r.duration=s,r.id=c,r.presentationTime=f,r.messageData=l,r.presentationTimeDelta=u,r):null}function D(e,t){var i=[];if(0===U.length)return i;var a=U[0].mpd.manifest;return e instanceof d["default"]?i=F.getEventsForPeriod(o(e,U)):e instanceof l["default"]?i=F.getEventStreamForAdaptationSet(a,r(e)):e instanceof s["default"]&&(i=F.getEventStreamForRepresentation(a,n(e,t.getRepresentationController()))),i}function L(){U=[],B={}}var j=void 0,F=void 0,U=void 0,B=void 0;return j={convertDataToRepresentationInfo:i,getDataForMedia:r,getStreamsInfo:E,getMediaInfoForType:v,getAllMediaInfoForType:y,getCurrentRepresentationInfo:M,getRepresentationInfoForQuality:N,updateData:x,getInitRequest:O,getNextFragmentRequest:P,getFragmentRequestForTime:R,generateFragmentRequestForTime:I,getIndexHandlerTime:A,setIndexHandlerTime:C,getEventsFor:D,getEvent:k,setConfig:t,updatePeriods:_,reset:L},e(),j}Object.defineProperty(t,"__esModule",{value:!0});var i=n(24),a=r(i),u=n(1025),s=r(u),c=n(1023),l=r(c),f=n(1026),d=r(f),p=n(1022),h=r(p),v=n(496),m=r(v),y=n(2),g=r(y),_=n(491),b=r(_);o.__dashjs_factory_name="DashAdapter",t["default"]=g["default"].getSingletonFactory(o),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(){Z=(0,E["default"])(q).getInstance().log.bind(J),f(),W=n(e.mimeType)?(0,N["default"])(q).getInstance():(0,C["default"])(q).getInstance(),W.setConfig({baseURLController:Q,metricsModel:z,mediaPlayerModel:X,errHandler:$}),V.on(v["default"].INITIALIZATION_LOADED,B,J),V.on(v["default"].SEGMENTS_LOADED,H,J)}function n(e){var t=e.split("/")[1];return"webm"===t.toLowerCase()}function r(t){oe=t;var n=oe?oe.getStreamInfo().manifestInfo.isDynamic:null;W.initialize(),ie=(0,I["default"])(q).create(e,n)}function o(){return oe}function i(e){ne=e}function u(){return ne}function c(){return re}function f(){ee=-1,ne=0,re=NaN,te=null,oe=null,ie=null}function h(){f(),V.off(v["default"].INITIALIZATION_LOADED,B,J),V.off(v["default"].SEGMENTS_LOADED,H,J)}function m(e){return e?e.split("$$").join("$"):e}function g(e,t){if(null===t||null===e||e.indexOf("$RepresentationID$")===-1)return e;var n=t.toString();return e.split("$RepresentationID$").join(n)}function _(e,t,n){var r=Q.resolve(n.path),o=void 0,i=void 0;return r&&t!==r.url&&G.isRelative(t)?(o=r.url,i=r.serviceLocation,t&&(o=G.resolve(t,o))):o=t,!G.isRelative(o)&&(e.url=o,e.serviceLocation=i,!0)}function b(e,t){var n=new l["default"],r=e.adaptation.period,o=r.start,i=oe?oe.getStreamInfo().manifestInfo.isDynamic:null;if(n.mediaType=t,n.type=p.HTTPRequest.INIT_SEGMENT_TYPE,n.range=e.range,n.availabilityStartTime=K.calcAvailabilityStartTimeFromPresentationTime(o,r.mpd,i),n.availabilityEndTime=K.calcAvailabilityEndTimeFromPresentationTime(o+r.duration,r.mpd,i),n.quality=e.index,n.mediaInfo=oe?oe.getMediaInfo():null,n.representationId=e.id,_(n,e.initialization,e))return n}function T(e){var t=oe?oe.getType():null;if(!e)return null;var n=b(e,t);return n}function S(e){var t=!1,n=oe?oe.getStreamInfo().manifestInfo.isDynamic:null;if(n||ee!==e.availableSegmentsNumber){var r=(0,P.getSegmentByIndex)(ee,e);if(r){var o=parseFloat((r.presentationStartTime-e.adaptation.period.start).toFixed(5)),i=e.adaptation.period.duration;Z(e.segmentInfoType+": "+o+" / "+i),t=(e.segmentInfoType!==s["default"].SEGMENT_TIMELINE||!n)&&o>=i}else Z("isMediaFinished - no segment found")}else t=!0;return t}function R(e){ie.getSegments(e,te,ee,A)}function A(e,t){var n=oe?oe.getStreamInfo().manifestInfo.isDynamic:null;if(e.segments=t,t&&t.length>0&&(re=isNaN(re)?t[0].presentationStartTime:Math.min(t[0].presentationStartTime,re),n&&isNaN(K.getExpectedLiveEdge()))){var r=t[t.length-1],o=r.presentationStartTime,i=z.getMetricsFor(a["default"].STREAM);K.setExpectedLiveEdge(o),z.updateManifestUpdateInfo(Y.getCurrentManifestUpdate(i),{presentationStartTime:o})}}function x(e){if(!e)throw new Error("no representation");e.segments=null,R(e)}function k(e,t){var n=O["default"].hasInitialization(e),r=O["default"].hasSegments(e),o=oe?oe.getType():null,i=oe?oe.getStreamInfo().manifestInfo.isDynamic:null,a=void 0;return e.segmentDuration||e.segments||x(e),e.segmentAvailabilityRange=null,e.segmentAvailabilityRange=K.calcSegmentAvailabilityRange(e,i),e.segmentAvailabilityRange.end<e.segmentAvailabilityRange.start&&!e.useCalculatedLiveEdgeTime?(a=new d["default"](M,"no segments are available yet",{availabilityDelay:e.segmentAvailabilityRange.start-e.segmentAvailabilityRange.end}),void V.trigger(v["default"].REPRESENTATION_UPDATED,{sender:this,representation:e,error:a})):(t||(ee=-1),e.segmentDuration&&x(e),n||W.loadInitialization(e),r||W.loadSegments(e,o,e.indexRange),void(n&&r&&V.trigger(v["default"].REPRESENTATION_UPDATED,{sender:this,representation:e})))}function D(e,t,n){var r=t.segments,o=r?r.length:null,i=-1,a=void 0,u=void 0,s=void 0,c=void 0,l=void 0;if(r&&o>0)for(l=0;l<o;l++)if(u=r[l],s=u.presentationStartTime,c=u.duration,a=void 0===n||null===n?c/2:n,e+a>=s&&e-a<s+c){i=u.availabilityIdx;break}return i}function L(e){if(null===e||void 0===e)return null;var t=new l["default"],n=e.representation,r=n.adaptation.period.mpd.manifest.Period_asArray[n.adaptation.period.index].AdaptationSet_asArray[n.adaptation.index].Representation_asArray[n.index].bandwidth,o=e.media,i=oe?oe.getType():null;return o=(0,P.replaceTokenForTemplate)(o,"Number",e.replacementNumber),o=(0,P.replaceTokenForTemplate)(o,"Time",e.replacementTime),o=(0,P.replaceTokenForTemplate)(o,"Bandwidth",r),o=g(o,n.id),o=m(o),t.mediaType=i,t.type=p.HTTPRequest.MEDIA_SEGMENT_TYPE,t.range=e.mediaRange,t.startTime=e.presentationStartTime,t.duration=e.duration,t.timescale=n.timescale,t.availabilityStartTime=e.availabilityStartTime,t.availabilityEndTime=e.availabilityEndTime,t.wallStartTime=e.wallStartTime,t.quality=n.index,t.index=e.availabilityIdx,t.mediaInfo=oe.getMediaInfo(),t.adaptationIndex=n.adaptation.index,_(t,o,n)?t:void 0}function j(e,t,n){var r=void 0,o=void 0,i=void 0,a=oe?oe.getType():null,u=oe?oe.getStreamInfo().manifestInfo.isDynamic:null,c=ee,f=!!n&&n.keepIdx,d=n?n.timeThreshold:null,p=!(!n||!n.ignoreIsFinished);return e?(te!==t&&(te=t,Z("Getting the request for "+a+" time : "+t)),R(e),ee=D(t,e,d),ee<0&&(R(e),ee=D(t,e,d)),ee>0&&Z("Index for "+a+" time "+t+" is "+ee),i=!p&&S(e),i?(r=new l["default"],r.action=l["default"].ACTION_COMPLETE,r.index=ee,r.mediaType=a,r.mediaInfo=oe.getMediaInfo(),Z("Signal complete.",r)):(o=(0,P.getSegmentByIndex)(ee,e),r=L(o)),f&&c>=0&&(ee=e.segmentInfoType===s["default"].SEGMENT_TIMELINE&&u?ee:c),r):null}function F(e,t){var n=(e.segmentAvailabilityRange.end-e.segmentAvailabilityRange.start)/2;return e.segments=null,e.segmentAvailabilityRange={start:t-n,end:t+n},j(e,t,{keepIdx:!1,ignoreIsFinished:!0})}function U(e){var t=void 0,n=void 0,r=void 0,o=oe?oe.getType():null,i=oe?oe.getStreamInfo().manifestInfo.isDynamic:null;if(!e||ee===-1)return null;te=null,ee++,Z("Getting the next request at index: "+ee);var a=(0,P.getSegmentByIndex)(ee,e);return!a&&i?(Z("No segment found at index: "+ee+". Wait for next loop"),R(e),ee--,null):(r=S(e),r?(t=new l["default"],t.action=l["default"].ACTION_COMPLETE,t.index=ee,t.mediaType=o,t.mediaInfo=oe.getMediaInfo(),Z("Signal complete.")):(R(e),n=(0,P.getSegmentByIndex)(ee,e),t=L(n),!n&&i&&ee--),t)}function B(e){var t=e.representation;t.segments&&V.trigger(v["default"].REPRESENTATION_UPDATED,{sender:this,representation:t})}function H(e){var t=oe?oe.getType():null,n=oe?oe.getStreamInfo().manifestInfo.isDynamic:null;if(!e.error&&t===e.mediaType){var r=e.segments,o=e.representation,i=[],a=0,u=void 0,s=void 0,c=void 0,l=void 0;for(u=0,s=r.length;u<s;u++)c=r[u],l=(0,P.getTimeBasedSegment)(K,n,o,c.startTime,c.duration,c.timescale,c.media,c.mediaRange,a),i.push(l),l=null,a++;o.segmentAvailabilityRange={start:i[0].presentationStartTime,end:i[s-1].presentationStartTime},o.availableSegmentsNumber=s,A(o,i),O["default"].hasInitialization(o)&&V.trigger(v["default"].REPRESENTATION_UPDATED,{sender:this,representation:o})}}e=e||{};var q=this.context,V=(0,y["default"])(q).getInstance(),G=(0,w["default"])(q).getInstance(),W=void 0,K=e.timelineConverter,Y=e.dashMetrics,z=e.metricsModel,X=e.mediaPlayerModel,$=e.errHandler,Q=e.baseURLController,J=void 0,Z=void 0,ee=void 0,te=void 0,ne=void 0,re=void 0,oe=void 0,ie=void 0;return J={initialize:r,getStreamProcessor:o,getInitRequest:T,getSegmentRequestForTime:j,getNextSegmentRequest:U,generateSegmentRequestForTime:F,updateRepresentation:k,updateSegmentList:x,setCurrentTime:i,getCurrentTime:u,getEarliestTime:c,reset:h},t(),J}Object.defineProperty(t,"__esModule",{value:!0});var i=n(24),a=r(i),u=n(93),s=r(u),c=n(159),l=r(c),f=n(108),d=r(f),p=n(45),h=n(14),v=r(h),m=n(12),y=r(m),g=n(2),_=r(g),b=n(19),E=r(b),T=n(158),w=r(T),S=n(328),O=r(S),P=n(238),R=n(927),I=r(R),A=n(913),C=r(A),x=n(914),N=r(x),M=1;o.__dashjs_factory_name="DashHandler";var k=_["default"].getClassFactory(o);k.SEGMENTS_UNAVAILABLE_ERROR_CODE=M,_["default"].updateClassFactory(o.__dashjs_factory_name,k),t["default"]=k,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(e,t){var n=void 0,r=R.getValue(),o=r.Period_asArray[t];return n=T(o,e),null===n?null:n.bandwidth}function n(e,t){var n=void 0,r=R.getValue(),o=r.Period_asArray[t];return n=E(o,e)}function r(e,t){var n=void 0,r=R.getValue(),o=r.Period_asArray[t];return n=S(o,e)}function o(e){return p(e,c["default"].TRACK_SWITCH)}function a(e){return p(e,c["default"].BUFFER_LEVEL)}function u(e){var t=a(e);return t?(0,l.round10)(t.level/1e3,-3):0}function s(e){return e?e.RequestsQueue:null}function f(e){if(!e)return null;var t=e.HttpList,n=null,r=void 0,o=void 0;if(!t||t.length<=0)return null;for(r=t.length,o=r-1;o>=0;){if(t[o].responsecode){n=t[o];break}o--}return n}function d(e){return e&&e.HttpList?e.HttpList:[]}function p(e,t){if(!e)return null;var n=e[t];if(!n)return null;var r=n.length;return r<=0?null:n[r-1]}function h(e){return p(e,c["default"].DROPPED_FRAMES)}function v(e){return p(e,c["default"].SCHEDULING_INFO)}function m(e){return p(e,c["default"].MANIFEST_UPDATE)}function y(e){return p(e,c["default"].DVR_INFO)}function g(e,t){var n={},r=void 0,o=void 0,a=void 0;for(r=d(e),a=r.length-1;a>=0;a--)if(o=r[a],o.type===i.HTTPRequest.MPD_TYPE){n=b(o._responseHeaders);break}return void 0===n[t]?null:n[t]}function _(e,t){var n={},r=f(e);return r&&(n=b(r._responseHeaders)),void 0===n[t]?null:n[t]}function b(e){var t={};if(!e)return t;for(var n=e.trim().split("\r\n"),r=0,o=n.length;r<o;r++){var i=n[r],a=i.indexOf(": ");a>0&&(t[i.substring(0,a)]=i.substring(a+2))}return t}function E(e,t){var n=T(e,t,!0);return null!==n?n:-1}function T(e,t,n){var r=void 0,o=void 0,i=void 0,a=void 0,u=void 0,s=void 0;if(e)for(o=e.AdaptationSet_asArray,u=0;u<o.length;u+=1)for(r=o[u],a=r.Representation_asArray,s=0;s<a.length;s+=1)if(i=a[s],t===i.id)return n?s:i;return null}function w(e,t){return P.getIsTypeOf(e,t)}function S(e,t){var n=void 0,r=void 0,o=void 0,i=void 0;if(!e||!t)return-1;for(r=e.AdaptationSet_asArray,i=0;i<r.length;i+=1)if(n=r[i],o=n.Representation_asArray,w(n,t))return o.length;return-1}e=e||{};var O=void 0,P=e.dashManifestModel,R=e.manifestModel;return O={getBandwidthForRepresentation:t,getIndexForRepresentation:n,getMaxIndexForBufferType:r,getCurrentRepresentationSwitch:o,getLatestBufferLevelVO:a,getCurrentBufferLevel:u,getCurrentHttpRequest:f,getHttpRequests:d,getCurrentDroppedFrames:h,getCurrentSchedulingInfo:v,getCurrentDVRInfo:y,getCurrentManifestUpdate:m,getLatestFragmentRequestHeaderValueByID:_,getLatestMPDRequestHeaderValueByID:g,getRequestsQueue:s}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(45),a=n(2),u=r(a),s=n(156),c=r(s),l=n(1325);o.__dashjs_factory_name="DashMetrics",t["default"]=u["default"].getSingletonFactory(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(){S=(0,m["default"])(v).getInstance(),P=(0,a["default"])(v).getInstance(),A=(0,O["default"])(v).create({errHandler:T,metricsModel:R,mediaPlayerModel:I,requestModifier:P})}function t(e){e.baseURLController&&(C=e.baseURLController),e.metricsModel&&(R=e.metricsModel),e.mediaPlayerModel&&(I=e.mediaPlayerModel),e.errHandler&&(T=e.errHandler)}function n(){if(!C||!C.hasOwnProperty("resolve"))throw new Error("setConfig function has to be called previously")}function r(e,t){n();var o=null,i=null,a=C.resolve(e.path),u=t||{init:!0,url:a?a.url:void 0,range:{start:0,end:1500},searching:!1,bytesLoaded:0,bytesToLoad:1500};y("Start searching for initialization.");var s=f(u),l=function(t){u.bytesLoaded=u.range.end,i=S.parse(t),o=c(i),o?(e.range=o,g.trigger(d["default"].INITIALIZATION_LOADED,{representation:e})):(u.range.end=u.bytesLoaded+u.bytesToLoad,r(e,u))},p=function(){g.trigger(d["default"].INITIALIZATION_LOADED,{representation:e})};A.load({request:s,success:l,error:p}),y("Perform init search: "+u.url)}function o(e,t,r,i,a){if(n(),r&&(void 0===r.start||void 0===r.end)){var s=r?r.toString().split("-"):null;r=s?{start:parseFloat(s[0]),end:parseFloat(s[1])}:null}a=a?a:p;var c=null,l=null,d=!!r,h=C.resolve(e.path),v={init:!1,url:h?h.url:void 0,range:d?r:{start:0,end:1500},searching:!d,bytesLoaded:i?i.bytesLoaded:0,bytesToLoad:1500},m=f(v),g=function(n){var r=v.bytesToLoad,i=n.byteLength;if(v.bytesLoaded=v.range.end-v.range.start,c=S.parse(n),l=c.getBox("sidx"),l&&l.isComplete){var s=l.references,f=void 0,d=void 0;null!==s&&void 0!==s&&s.length>0&&(f=1===s[0].reference_type),f?!function(){y("Initiate multiple SIDX load."),v.range.end=v.range.start+l.size;var n=void 0,r=void 0,i=void 0,u=void 0,c=void 0,f=[],d=0,p=(l.offset||v.range.start)+l.size,h=function(n){n?(f=f.concat(n),d++,d>=r&&a(f,e,t)):a(null,e,t)};for(n=0,r=s.length;n<r;n++)i=p,u=p+s[n].referenced_size-1,p+=s[n].referenced_size,c={start:i,end:u},o(e,null,c,v,h)}():(y("Parsing segments from SIDX."),d=u(l,v),a(d,e,t))}else{if(l)v.range.start=l.offset||v.range.start,v.range.end=v.range.start+(l.size||r);else{if(i<v.bytesLoaded)return void a(null,e,t);var p=c.getLastBox();p&&p.size?(v.range.start=p.offset+p.size,v.range.end=v.range.start+r):v.range.end+=r}o(e,t,v.range,v,a)}},_=function(){a(null,e,t)};A.load({request:m,success:g,error:_}),y("Perform SIDX load: "+v.url)}function i(){A.abort(),A=null,T=null,S=null,P=null}function u(e,t){for(var n=e.references,r=n.length,o=e.timescale,i=e.earliest_presentation_time,a=t.range.start+e.offset+e.first_offset+e.size,u=[],c=void 0,l=void 0,f=void 0,d=void 0,p=0;p<r;p++)f=n[p].subsegment_duration,d=n[p].referenced_size,c=new s["default"],c.duration=f,c.startTime=i,c.timescale=o,l=a+d-1,c.mediaRange=a+"-"+l,u.push(c),i+=f,a+=d;return u}function c(e){var t=e.getBox("ftyp"),n=e.getBox("moov"),r=null,o=void 0,i=void 0;return y("Searching for initialization."),n&&n.isComplete&&(o=t?t.offset:n.offset,i=n.offset+n.size-1,r=o+"-"+i,y("Found the initialization. Range: "+r)),r}function f(e){if(e.url){var t=new w["default"];return t.type=e.init?E.HTTPRequest.INIT_SEGMENT_TYPE:E.HTTPRequest.MEDIA_SEGMENT_TYPE,t.url=e.url,t.range=e.range.start+"-"+e.range.end,t}}function p(e,t,n){e?g.trigger(d["default"].SEGMENTS_LOADED,{segments:e,representation:t,mediaType:n}):g.trigger(d["default"].SEGMENTS_LOADED,{segments:null,representation:t,mediaType:n,error:new l["default"](null,"error loading segments",null)})}var v=this.context,y=(0,b["default"])(v).getInstance().log,g=(0,h["default"])(v).getInstance(),_=void 0,T=void 0,S=void 0,P=void 0,R=void 0,I=void 0,A=void 0,C=void 0;return _={setConfig:t,initialize:e,loadInitialization:r,loadSegments:o,reset:i}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(243),a=r(i),u=n(329),s=r(u),c=n(108),l=r(c),f=n(14),d=r(f),p=n(12),h=r(p),v=n(339),m=r(v),y=n(2),g=r(y),_=n(19),b=r(_),E=n(45),T=n(159),w=r(T),S=n(196),O=r(S);o.__dashjs_factory_name="SegmentBaseLoader",t["default"]=g["default"].getSingletonFactory(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(){O={EBML:{tag:440786851,required:!0},Segment:{tag:408125543,required:!0,SeekHead:{tag:290298740,required:!0},Info:{tag:357149030,required:!0,TimecodeScale:{tag:2807729,required:!0,parse:"getMatroskaUint"},Duration:{tag:17545,required:!0,parse:"getMatroskaFloat"}},Tracks:{tag:374648427,required:!0},Cues:{tag:475249515,required:!0,CuePoint:{tag:187,required:!0,CueTime:{tag:179,required:!0,parse:"getMatroskaUint"},CueTrackPositions:{tag:183,required:!0,CueTrack:{tag:247,required:!0,parse:"getMatroskaUint"},CueClusterPosition:{tag:241,required:!0,parse:"getMatroskaUint"}}}}},Void:{tag:236,required:!0}}}function t(){R=(0,m["default"])(y).getInstance(),C=(0,w["default"])(y).create({errHandler:P,metricsModel:I,mediaPlayerModel:A,requestModifier:R})}function n(e){if(!(e.baseURLController&&e.metricsModel&&e.mediaPlayerModel&&e.errHandler))throw new Error("Missing config parameter(s)");x=e.baseURLController,I=e.metricsModel,A=e.mediaPlayerModel,P=e.errHandler}function r(e){var t=[],n=void 0,r=void 0,o=(0,l["default"])(y).create({data:e});for(o.consumeTagAndSize(O.Segment.Cues);o.moreData()&&o.consumeTagAndSize(O.Segment.Cues.CuePoint,!0);){for(n={},n.CueTime=o.parseTag(O.Segment.Cues.CuePoint.CueTime),n.CueTracks=[];o.moreData()&&o.consumeTag(O.Segment.Cues.CuePoint.CueTrackPositions,!0);){var i=o.getMatroskaCodedNum(),a=o.getPos();if(r={},r.Track=o.parseTag(O.Segment.Cues.CuePoint.CueTrackPositions.CueTrack),0===r.Track)throw new Error("Cue track cannot be 0");r.ClusterPosition=o.parseTag(O.Segment.Cues.CuePoint.CueTrackPositions.CueClusterPosition),n.CueTracks.push(r),o.setPos(a+i)}if(0===n.CueTracks.length)throw new Error("Mandatory cuetrack not found");t.push(n)}if(0===t.length)throw new Error("mandatory cuepoint not found");return t}function o(e,t,n,o){var i=void 0,a=void 0,u=void 0,s=void 0,c=void 0,l=void 0,f=void 0,d=void 0;for(a=r(e),u=[],c=0,l=a.length;c<l;c+=1)s=new g["default"],i=0,i=c<a.length-1?a[c+1].CueTime-a[c].CueTime:o-a[c].CueTime,s.duration=i,s.startTime=a[c].CueTime,s.timescale=1e3,f=a[c].CueTracks[0].ClusterPosition+t,d=c<a.length-1?a[c+1].CueTracks[0].ClusterPosition+t-1:n-1,s.mediaRange=f+"-"+d,u.push(s);return b("Parsed cues: "+u.length+" cues."),u}function i(e,t,n,r){var i=(0,l["default"])(y).create({data:e}),a=void 0,u=void 0,s=n.split("-"),c=null,f={url:t,range:{start:parseFloat(s[0]),end:parseFloat(s[1])},request:c},d=void 0,h=void 0;for(b("Parse EBML header: "+f.url),i.skipOverElement(O.EBML),i.consumeTag(O.Segment),d=i.getMatroskaCodedNum(),d+=i.getPos(),h=i.getPos();i.moreData()&&!i.consumeTagAndSize(O.Segment.Info,!0);)if(!(i.skipOverElement(O.Segment.SeekHead,!0)||i.skipOverElement(O.Segment.Tracks,!0)||i.skipOverElement(O.Segment.Cues,!0)||i.skipOverElement(O.Void,!0)))throw new Error("no valid top level element found");for(;void 0===a;){var v=i.getMatroskaCodedNum(!0),m=i.getMatroskaCodedNum();switch(v){case O.Segment.Info.Duration.tag:a=i[O.Segment.Info.Duration.parse](m);break;default:i.setPos(i.getPos()+m)}}c=p(f);var g=function(e){u=o(e,h,d,a),r(u)},_=function(){b("Download Error: Cues "+f.url),r(null)};C.load({request:c,success:g,error:_}),b("Perform cues load: "+f.url+" bytes="+f.range.start+"-"+f.range.end)}function u(){if(!x||!x.hasOwnProperty("resolve"))throw new Error("setConfig function has to be called previously")}function c(e,t){u();var n=null,r=x.resolve(e.path),o=r?r.url:void 0,i=e.range.split("-"),s=t||{range:{start:parseFloat(i[0]),end:parseFloat(i[1])},request:n,url:o,init:!0};b("Start loading initialization."),n=p(s);var c=function(){T.trigger(a["default"].INITIALIZATION_LOADED,{representation:e})},l=function(){T.trigger(a["default"].INITIALIZATION_LOADED,{representation:e})};C.load({request:n,success:c,error:l}),b("Perform init load: "+s.url)}function f(e,t,n,r){u();var o=null,a=x.resolve(e.path),s=a?a.url:void 0,c=8192,l={bytesLoaded:0,bytesToLoad:c,range:{start:0,end:c},request:o,url:s,init:!1};r=r?r:d,o=p(l),b("Parsing ebml header");var f=function(o){i(o,s,n,function(n){r(n,e,t)})},h=function(){r(null,e,t)};C.load({request:o,success:f,error:h})}function d(e,t,n){e?T.trigger(a["default"].SEGMENTS_LOADED,{segments:e,representation:t,mediaType:n}):T.trigger(a["default"].SEGMENTS_LOADED,{segments:null,representation:t,mediaType:n,error:new Error(null,"error loading segments",null)})}function p(e){var t=new E["default"];return t.type=e.init?_.HTTPRequest.INIT_SEGMENT_TYPE:_.HTTPRequest.MEDIA_SEGMENT_TYPE,t.url=e.url,t.range=e.range.start+"-"+e.range.end,t}function v(){P=null,R=null,b=null}var y=this.context,b=(0,h["default"])(y).getInstance().log,T=(0,s["default"])(y).getInstance(),S=void 0,O=void 0,P=void 0,R=void 0,I=void 0,A=void 0,C=void 0,x=void 0;return S={setConfig:n,initialize:t,loadInitialization:c,loadSegments:f,reset:v},e(),S}Object.defineProperty(t,"__esModule",{value:!0});var i=n(14),a=r(i),u=n(12),s=r(u),c=n(1011),l=r(c),f=n(2),d=r(f),p=n(19),h=r(p),v=n(243),m=r(v),y=n(329),g=r(y),_=n(45),b=n(159),E=r(b),T=n(196),w=r(T);o.__dashjs_factory_name="WebmSegmentBaseLoader",t["default"]=d["default"].getSingletonFactory(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(){f(),M.on(h["default"].QUALITY_CHANGE_REQUESTED,C,k),M.on(h["default"].REPRESENTATION_UPDATED,R,k),M.on(h["default"].WALLCLOCK_TIME_UPDATED,I,k),M.on(h["default"].BUFFER_LEVEL_UPDATED,A,k)}function t(e){e.abrController&&(B=e.abrController),e.domStorage&&(G=e.domStorage),e.metricsModel&&(V=e.metricsModel),e.dashMetrics&&(Y=e.dashMetrics),e.dashManifestModel&&(K=e.dashManifestModel),e.playbackController&&(q=e.playbackController),e.timelineConverter&&(W=e.timelineConverter),e.manifestModel&&(X=e.manifestModel),e.streamProcessor&&(z=e.streamProcessor)}function n(){H=z.getIndexHandler()}function r(){return z}function o(){return D}function i(){return L}function u(){return j}function c(){return U}function f(){D=null,L=-1,j=!0,F=[],B=null,q=null,V=null,G=null,W=null,K=null,Y=null}function p(){M.off(h["default"].QUALITY_CHANGE_REQUESTED,C,k),M.off(h["default"].REPRESENTATION_UPDATED,R,k),M.off(h["default"].WALLCLOCK_TIME_UPDATED,I,k),M.off(h["default"].BUFFER_LEVEL_UPDATED,A,k),f()}function v(e,t,n){var r=z.getStreamInfo(),o=B.getTopQualityIndexFor(n,r.id),i=B.getMinAllowedIndexFor(n),u=void 0,s=void 0,c=null;if(j=!0,M.trigger(h["default"].DATA_UPDATE_STARTED,{sender:this}),F=w(t),null!==D&&D.id==e.id||n===a["default"].FRAGMENTED_TEXT?u=B.getQualityFor(n,r):(s=B.getThroughputHistory().getAverageThroughput(n),c=s||B.getInitialBitrateFor(n,r),u=B.getQualityForBitrate(z.getMediaInfo(),c)),void 0!==i&&u<i&&(u=i),u>o&&(u=o),U=_(u),D=e,n!==a["default"].VIDEO&&n!==a["default"].AUDIO&&n!==a["default"].FRAGMENTED_TEXT)return j=!1,void M.trigger(h["default"].DATA_UPDATE_COMPLETED,{sender:this,data:D,currentRepresentation:U});for(var l=0;l<F.length;l++)H.updateRepresentation(F[l],!0)}function y(){var e=new Date,t=c(),n=1e3*q.getTime();V.addRepresentationSwitch(t.adaptation.type,e,n,t.id)}function g(){var e=z.getStreamInfo(),t=e?e.manifestInfo:null,n=t?t.isDynamic:null,r=W.calcSegmentAvailabilityRange(U,n);V.addDVRInfo(z.getType(),q.getTime(),t,r)}function _(e){return F[e]}function E(e){return F.indexOf(e)}function T(){for(var e=0,t=F.length;e<t;e++){var n=F[e].segmentInfoType;if(null===F[e].segmentAvailabilityRange||!b["default"].hasInitialization(F[e])||(n===s["default"].SEGMENT_BASE||n===s["default"].BASE_URL)&&!F[e].segments)return!1}return!0}function w(e){var t=void 0;return L=K.getIndexForAdaptation(D,e.period.mpd.manifest,e.period.index),t=K.getRepresentationsForAdaptation(e)}function S(e){for(var t=void 0,n=0,r=F.length;n<r;n++)t=F[n],t.segmentAvailabilityRange=W.calcSegmentAvailabilityRange(t,e)}function O(){F.forEach(function(e){e.segmentAvailabilityRange=null})}function P(e){var t=e,n=function(){if(!u()){j=!0,M.trigger(h["default"].DATA_UPDATE_STARTED,{sender:k}),O();for(var e=0;e<F.length;e++)H.updateRepresentation(F[e],!0)}};j=!1,M.trigger(m["default"].AST_IN_FUTURE,{delay:t}),setTimeout(n,t)}function R(e){if(e.sender.getStreamProcessor()===z&&u()){var t=e.representation,n=V.getMetricsFor(a["default"].STREAM),r=V.getMetricsFor(c().adaptation.type),o=Y.getCurrentManifestUpdate(n),i=!1,f=0,d=void 0,p=void 0,v=void 0;if(t.adaptation.period.mpd.manifest.type===s["default"].DYNAMIC&&!t.adaptation.period.mpd.manifest.ignorePostponeTimePeriod){var m=t.segmentAvailabilityRange.end-t.segmentAvailabilityRange.start,_=q.computeLiveDelay(U.segmentDuration,z.getStreamInfo().manifestInfo.DVRWindowSize);f=1e3*(_-m)}if(f>0)return g(),P(f),p=new l["default"](x,"Segments update failed",null),void M.trigger(h["default"].DATA_UPDATE_COMPLETED,{sender:this,data:D,currentRepresentation:U,error:p});if(o){for(var b=0;b<o.representationInfo.length;b++)if(d=o.representationInfo[b],d.index===t.index&&d.mediaType===z.getType()){i=!0;break}i||V.addManifestUpdateRepresentationInfo(o,t.id,t.index,t.adaptation.period.index,z.getType(),t.presentationTimeOffset,t.startNumber,t.segmentInfoType)}T()&&(j=!1,B.setPlaybackQuality(z.getType(),z.getStreamInfo(),E(U)),V.updateManifestUpdateInfo(o,{latency:U.segmentAvailabilityRange.end-q.getTime()}),v=Y.getCurrentRepresentationSwitch(r),v||y(),M.trigger(h["default"].DATA_UPDATE_COMPLETED,{sender:this,data:D,currentRepresentation:U}))}}function I(e){e.isDynamic&&S(e.isDynamic)}function A(e){if(e.sender.getStreamProcessor()===z){var t=X.getValue();t.doNotUpdateDVRWindowOnBufferUpdated||g()}}function C(e){if(e.mediaType===z.getType()&&z.getStreamInfo().id===e.streamInfo.id&&e.oldQuality!==e.newQuality){U=_(e.newQuality);var t=B.getThroughputHistory().getAverageThroughput(e.mediaType);isNaN(t)||G.setSavedBitrateSettings(e.mediaType,t),y()}}var x=1,N=this.context,M=(0,d["default"])(N).getInstance(),k=void 0,D=void 0,L=void 0,j=void 0,F=void 0,U=void 0,B=void 0,H=void 0,q=void 0,V=void 0,G=void 0,W=void 0,K=void 0,Y=void 0,z=void 0,X=void 0;return k={initialize:n,setConfig:t,getData:o,getDataIndex:i,isUpdating:u,updateData:v,getStreamProcessor:r,getCurrentRepresentation:c,getRepresentationForQuality:_,reset:p},e(),k}Object.defineProperty(t,"__esModule",{value:!0});var i=n(24),a=r(i),u=n(93),s=r(u),c=n(108),l=r(c),f=n(12),d=r(f),p=n(14),h=r(p),v=n(330),m=r(v),y=n(2),g=r(y),_=n(328),b=r(_);o.__dashjs_factory_name="RepresentationController",t["default"]=g["default"].getClassFactory(o),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(e,t){var n=void 0,r=void 0,o=void 0,i=void 0,u=void 0,c=void 0,l=!1,f=!1;if(!e)throw new Error("adaptation is not defined");if(!t)throw new Error("type is not defined");if(e.hasOwnProperty("ContentComponent_asArray")&&(i=e.ContentComponent_asArray),u=t!==a["default"].TEXT?new RegExp(t):new RegExp("(vtt|ttml)"),e.Representation_asArray&&e.Representation_asArray.length&&e.Representation_asArray.length>0&&e.Representation_asArray[0].hasOwnProperty(s["default"].CODECS)&&(c=e.Representation_asArray[0].codecs,0===c.search(a["default"].STPP)||0===c.search(a["default"].WVTT)))return t===a["default"].FRAGMENTED_TEXT;if(i){if(i.length>1)return t===a["default"].MUXED;i[0]&&i[0].contentType===t&&(l=!0,f=!0)}if(e.hasOwnProperty(s["default"].MIME_TYPE)&&(l=u.test(e.mimeType),f=!0),!f)for(n=0,r=e.Representation_asArray&&e.Representation_asArray.length?e.Representation_asArray.length:0;!f&&n<r;)o=e.Representation_asArray[n],o.hasOwnProperty(s["default"].MIME_TYPE)&&(l=u.test(o.mimeType),f=!0),n++;return l}function n(e){return t(e,a["default"].AUDIO)}function r(e){return t(e,a["default"].VIDEO)}function o(e){return t(e,a["default"].FRAGMENTED_TEXT)}function i(e){return t(e,a["default"].TEXT)}function u(e){return t(e,a["default"].MUXED)}function c(e){return"text/vtt"===e||"application/ttml+xml"===e}function f(e){var t="";return e&&e.hasOwnProperty(s["default"].LANG)&&(t=e.lang.replace(/[^A-Za-z0-9-]/g,"")),t}function p(e){return e&&e.hasOwnProperty(s["default"].VIEWPOINT)?e.Viewpoint:null}function v(e){return e&&e.hasOwnProperty(s["default"].ROLE_ASARRAY)?e.Role_asArray:[]}function y(e){return e&&e.hasOwnProperty(s["default"].ACCESSIBILITY_ASARRAY)?e.Accessibility_asArray:[]}function _(e){return e&&e.hasOwnProperty(s["default"].AUDIOCHANNELCONFIGURATION_ASARRAY)?e.AudioChannelConfiguration_asArray:[]}function E(e){return v(e).filter(function(e){return e.value===s["default"].MAIN})[0]}function w(){return function(e,t){return e.bandwidth-t.bandwidth}}function O(e){return e&&void 0!==e.Representation_asArray&&null!==e.Representation_asArray&&e.Representation_asArray.sort(w()),e}function R(e,t,n){var r=t&&t.Period_asArray&&de(n)&&t.Period_asArray[n]?t.Period_asArray[n].AdaptationSet_asArray:[],o=void 0,i=void 0;for(o=0,i=r.length;o<i;o++)if(r[o].hasOwnProperty(s["default"].ID)&&r[o].id===e)return r[o];
return null}function A(e,t,n){var r=t&&t.Period_asArray&&de(n)&&t.Period_asArray[n]?t.Period_asArray[n].AdaptationSet_asArray:null;return r&&de(e)?r[e]:null}function C(e,t,n){var r=t&&t.Period_asArray&&de(n)&&t.Period_asArray[n]?t.Period_asArray[n].AdaptationSet_asArray:[],o=r.length;if(e)for(var i=0;i<o;i++){var a=(0,P["default"])(ae).getInstance();if(a.areEqual(r[i],e))return i}return-1}function x(e,n,r){var o=e&&e.Period_asArray&&de(n)&&e.Period_asArray[n]?e.Period_asArray[n].AdaptationSet_asArray:[],i=void 0,a=void 0,u=[];for(i=0,a=o.length;i<a;i++)t(o[i],r)&&u.push(O(o[i]));return u}function N(e,t,n,r){var o=x(e,t,n);if(!o||0===o.length)return null;if(o.length>1&&r){for(var i=se.getCurrentTrackFor(n,r),a=le.getAllMediaInfoForType(r,n),u=0,s=o.length;u<s;u++)if(i&&se.isTracksEqual(i,a[u]))return o[u];for(var u=0,s=o.length;u<s;u++)if(E(o[u]))return o[u]}return o[0]}function M(e,t){if(e&&e.Representation_asArray&&e.Representation_asArray.length>0){var n=de(t)&&t>=0&&t<e.Representation_asArray.length?e.Representation_asArray[t]:e.Representation_asArray[0];return n.mimeType+';codecs="'+n.codecs+'"'}return null}function k(e){return e&&e.Representation_asArray&&e.Representation_asArray.length>0?e.Representation_asArray[0].mimeType:null}function D(e){return e&&e.hasOwnProperty(s["default"].CENC_DEFAULT_KID)?e[s["default"].CENC_DEFAULT_KID]:null}function L(e){return e&&e.hasOwnProperty(s["default"].CONTENTPROTECTION_ASARRAY)&&0!==e.ContentProtection_asArray.length?e.ContentProtection_asArray:null}function j(e){var t=!1;return e&&e.hasOwnProperty("type")&&(t=e.type===s["default"].DYNAMIC),t}function F(e,t){var n=!1;return e&&e.profiles&&e.profiles.length>0&&(n=e.profiles.indexOf(t)!==-1),n}function U(e){return F(e,fe)}function B(e){var t=void 0;return t=e&&e.hasOwnProperty(s["default"].MEDIA_PRESENTATION_DURATION)?e.mediaPresentationDuration:Number.MAX_SAFE_INTEGER||Number.MAX_VALUE}function H(e){return e&&e.bandwidth?e.bandwidth:NaN}function q(e){var t=arguments.length<=1||void 0===arguments[1]?0:arguments[1],n=NaN;return e&&e.hasOwnProperty(s["default"].MINIMUM_UPDATE_PERIOD)&&(n=e.minimumUpdatePeriod),isNaN(n)?n:Math.max(n-t,1)}function V(e){return e&&e.Representation_asArray&&e.Representation_asArray.length?e.Representation_asArray.length:0}function G(e){if(!e||!e.Representation_asArray||!e.Representation_asArray.length)return null;var t=O(e),n=t.Representation_asArray,r=n.length,o=[],i=0;for(i=0;i<r;i++)o.push({bandwidth:n[i].bandwidth,width:n[i].width||0,height:n[i].height||0,scanType:n[i].scanType||null});return o}function W(e,t){return t&&t.Representation_asArray&&t.Representation_asArray.length>0&&de(e)?t.Representation_asArray[e]:null}function K(e){var t=[],n=void 0,r=void 0,o=void 0,i=void 0,a=void 0,u=void 0,f=void 0;if(e&&e.period&&de(e.period.index)){var d=e.period.mpd.manifest.Period_asArray[e.period.index];d&&d.AdaptationSet_asArray&&de(e.index)&&(i=O(d.AdaptationSet_asArray[e.index]))}for(u=0;i&&u<i.Representation_asArray.length;u++)a=i.Representation_asArray[u],n=new l["default"],n.index=u,n.adaptation=e,a.hasOwnProperty(s["default"].ID)&&(n.id=a.id),a.hasOwnProperty(s["default"].CODECS)&&(n.codecs=a.codecs),a.hasOwnProperty(s["default"].CODEC_PRIVATE_DATA)&&(n.codecPrivateData=a.codecPrivateData),a.hasOwnProperty(s["default"].BANDWITH)&&(n.bandwidth=a.bandwidth),a.hasOwnProperty(s["default"].WIDTH)&&(n.width=a.width),a.hasOwnProperty(s["default"].HEIGHT)&&(n.height=a.height),a.hasOwnProperty(s["default"].SCAN_TYPE)&&(n.scanType=a.scanType),a.hasOwnProperty(s["default"].MAX_PLAYOUT_RATE)&&(n.maxPlayoutRate=a.maxPlayoutRate),a.hasOwnProperty(s["default"].SEGMENT_BASE)?(o=a.SegmentBase,n.segmentInfoType=s["default"].SEGMENT_BASE):a.hasOwnProperty(s["default"].SEGMENT_LIST)?(o=a.SegmentList,o.hasOwnProperty(s["default"].SEGMENT_TIMELINE)?(n.segmentInfoType=s["default"].SEGMENT_TIMELINE,f=o.SegmentTimeline.S_asArray[o.SegmentTimeline.S_asArray.length-1],(!f.hasOwnProperty("r")||f.r>=0)&&(n.useCalculatedLiveEdgeTime=!0)):(n.segmentInfoType=s["default"].SEGMENT_LIST,n.useCalculatedLiveEdgeTime=!0)):a.hasOwnProperty(s["default"].SEGMENT_TEMPLATE)?(o=a.SegmentTemplate,o.hasOwnProperty(s["default"].SEGMENT_TIMELINE)?(n.segmentInfoType=s["default"].SEGMENT_TIMELINE,f=o.SegmentTimeline.S_asArray[o.SegmentTimeline.S_asArray.length-1],(!f.hasOwnProperty("r")||f.r>=0)&&(n.useCalculatedLiveEdgeTime=!0)):n.segmentInfoType=s["default"].SEGMENT_TEMPLATE,o.hasOwnProperty(s["default"].INITIALIZATION_MINUS)&&(n.initialization=o.initialization.split("$Bandwidth$").join(a.bandwidth).split("$RepresentationID$").join(a.id))):n.segmentInfoType=s["default"].BASE_URL,o&&(o.hasOwnProperty(s["default"].INITIALIZATION)?(r=o.Initialization,r.hasOwnProperty(s["default"].SOURCE_URL)?n.initialization=r.sourceURL:r.hasOwnProperty(s["default"].RANGE)&&(n.range=r.range)):a.hasOwnProperty(s["default"].MIME_TYPE)&&c(a.mimeType)&&(n.range=0),o.hasOwnProperty(s["default"].TIMESCALE)&&(n.timescale=o.timescale),o.hasOwnProperty(s["default"].DURATION)&&(n.segmentDuration=o.duration/n.timescale),o.hasOwnProperty(s["default"].START_NUMBER)&&(n.startNumber=o.startNumber),o.hasOwnProperty(s["default"].INDEX_RANGE)&&(n.indexRange=o.indexRange),o.hasOwnProperty(s["default"].PRESENTATION_TIME_OFFSET)&&(n.presentationTimeOffset=o.presentationTimeOffset/n.timescale)),n.MSETimeOffset=ce.calcMSETimeOffset(n),n.path=[e.period.index,e.index,u],t.push(n);return t}function Y(e){var t=e&&de(e.index)?e.mpd.manifest.Period_asArray[e.index]:null,i=[],c=void 0,l=void 0,f=void 0;if(t&&t.AdaptationSet_asArray)for(f=0;f<t.AdaptationSet_asArray.length;f++)l=t.AdaptationSet_asArray[f],c=new d["default"],l.hasOwnProperty(s["default"].ID)&&(c.id=l.id),c.index=f,c.period=e,u(l)?c.type=a["default"].MUXED:n(l)?c.type=a["default"].AUDIO:r(l)?c.type=a["default"].VIDEO:o(l)?c.type=a["default"].FRAGMENTED_TEXT:c.type=a["default"].TEXT,i.push(c);return i}function z(e){var t=!!e&&j(e.manifest),n=[],r=null,o=null,i=null,a=null,u=void 0,c=void 0;for(c=0,u=e&&e.manifest&&e.manifest.Period_asArray?e.manifest.Period_asArray.length:0;c<u;c++)o=e.manifest.Period_asArray[c],o.hasOwnProperty(s["default"].START)?(a=new h["default"],a.start=o.start):null!==r&&o.hasOwnProperty(s["default"].DURATION)&&null!==i?(a=new h["default"],a.start=parseFloat((i.start+i.duration).toFixed(5)),a.duration=o.duration):0!==c||t||(a=new h["default"],a.start=0),null!==i&&isNaN(i.duration)&&(i.duration=parseFloat((a.start-i.start).toFixed(5))),null!==a&&(a.id=X(o,c)),null!==a&&o.hasOwnProperty(s["default"].DURATION)&&(a.duration=o.duration),null!==a&&(a.index=c,a.mpd=e,n.push(a),r=o,i=a),o=null,a=null;return 0===n.length?n:(null!==i&&isNaN(i.duration)&&(i.duration=parseFloat((Q(i)-i.start).toFixed(5))),n)}function X(e,t){if(!e)throw new Error("Period cannot be null or undefined");var n=h["default"].DEFAULT_ID+"_"+t;return e.hasOwnProperty(s["default"].ID)&&e.id.length>0&&"__proto__"!==e.id&&(n=e.id),n}function $(e){var t=new m["default"];return e&&(t.manifest=e,e.hasOwnProperty(s["default"].AVAILABILITY_START_TIME)?t.availabilityStartTime=new Date(e.availabilityStartTime.getTime()):t.availabilityStartTime=new Date(e.loadedTime.getTime()),e.hasOwnProperty(s["default"].AVAILABILITY_END_TIME)&&(t.availabilityEndTime=new Date(e.availabilityEndTime.getTime())),e.hasOwnProperty(s["default"].MINIMUM_UPDATE_PERIOD)&&(t.minimumUpdatePeriod=e.minimumUpdatePeriod),e.hasOwnProperty(s["default"].MEDIA_PRESENTATION_DURATION)&&(t.mediaPresentationDuration=e.mediaPresentationDuration),e.hasOwnProperty(a["default"].SUGGESTED_PRESENTATION_DELAY)&&(t.suggestedPresentationDelay=e.suggestedPresentationDelay),e.hasOwnProperty(s["default"].TIMESHIFT_BUFFER_DEPTH)&&(t.timeShiftBufferDepth=e.timeShiftBufferDepth),e.hasOwnProperty(s["default"].MAX_SEGMENT_DURATION)&&(t.maxSegmentDuration=e.maxSegmentDuration)),t}function Q(e){var t=j(e.mpd.manifest),n=void 0;if(e.mpd.manifest.mediaPresentationDuration)n=e.mpd.manifest.mediaPresentationDuration;else if(e.duration)n=e.duration;else{if(!t)throw new Error("Must have @mediaPresentationDuratio on MPD or an explicit @duration on the last period.");n=Number.POSITIVE_INFINITY}return n}function J(e){var t=e&&e.mpd&&e.mpd.manifest?e.mpd.manifest:null,n=t?t.Period_asArray:null,r=n&&e&&de(e.index)?n[e.index].EventStream_asArray:null,o=[],i=void 0,u=void 0;if(r)for(i=0;i<r.length;i++){var c=new S["default"];if(c.period=e,c.timescale=1,!r[i].hasOwnProperty(a["default"].SCHEME_ID_URI))throw new Error("Invalid EventStream. SchemeIdUri has to be set");for(c.schemeIdUri=r[i].schemeIdUri,r[i].hasOwnProperty(s["default"].TIMESCALE)&&(c.timescale=r[i].timescale),r[i].hasOwnProperty(s["default"].VALUE)&&(c.value=r[i].value),u=0;u<r[i].Event_asArray.length;u++){var l=new b["default"];l.presentationTime=0,l.eventStream=c,r[i].Event_asArray[u].hasOwnProperty(s["default"].PRESENTATION_TIME)&&(l.presentationTime=r[i].Event_asArray[u].presentationTime),r[i].Event_asArray[u].hasOwnProperty(s["default"].DURATION)&&(l.duration=r[i].Event_asArray[u].duration),r[i].Event_asArray[u].hasOwnProperty(s["default"].ID)&&(l.id=r[i].Event_asArray[u].id),o.push(l)}}return o}function Z(e,t){var n=[],r=void 0;if(!e)return n;for(r=0;r<e.length;r++){var o=new S["default"];if(o.timescale=1,o.representation=t,!e[r].hasOwnProperty(a["default"].SCHEME_ID_URI))throw new Error("Invalid EventStream. SchemeIdUri has to be set");o.schemeIdUri=e[r].schemeIdUri,e[r].hasOwnProperty(s["default"].TIMESCALE)&&(o.timescale=e[r].timescale),e[r].hasOwnProperty(s["default"].VALUE)&&(o.value=e[r].value),n.push(o)}return n}function ee(e,t){var n=void 0,r=void 0,o=void 0;return e&&e.Period_asArray&&t&&t.period&&de(t.period.index)&&(r=e.Period_asArray[t.period.index],r&&r.AdaptationSet_asArray&&de(t.index)&&(o=r.AdaptationSet_asArray[t.index],o&&(n=o.InbandEventStream_asArray))),Z(n,null)}function te(e,t){var n=void 0,r=void 0,o=void 0,i=void 0;return e&&e.Period_asArray&&t&&t.adaptation&&t.adaptation.period&&de(t.adaptation.period.index)&&(r=e.Period_asArray[t.adaptation.period.index],r&&r.AdaptationSet_asArray&&de(t.adaptation.index)&&(o=r.AdaptationSet_asArray[t.adaptation.index],o&&o.Representation_asArray&&de(t.index)&&(i=o.Representation_asArray[t.index],i&&(n=i.InbandEventStream_asArray)))),Z(n,t)}function ne(e){var t=j(e),n=!!e&&e.hasOwnProperty(s["default"].AVAILABILITY_START_TIME),r=e?e.UTCTiming_asArray:null,o=[];return(t||n)&&r&&r.forEach(function(e){var t=new g["default"];e.hasOwnProperty(a["default"].SCHEME_ID_URI)&&(t.schemeIdUri=e.schemeIdUri,e.hasOwnProperty(s["default"].VALUE)&&(t.value=e.value.toString(),o.push(t)))}),o}function re(e){var t=[],n=e.BaseURL_asArray||[e.baseUri],r=!1;return n.some(function(n){if(n){var o=new T["default"],i=n.__text||n;return ue.isRelative(i)&&(r=!0,e.baseUri&&(i=ue.resolve(i,e.baseUri))),o.url=i,n.hasOwnProperty(s["default"].SERVICE_LOCATION)&&n.serviceLocation.length?o.serviceLocation=n.serviceLocation:o.serviceLocation=i,n.hasOwnProperty(s["default"].DVB_PRIORITY)&&(o.dvb_priority=n[s["default"].DVB_PRIORITY]),n.hasOwnProperty(s["default"].DVB_WEIGHT)&&(o.dvb_weight=n[s["default"].DVB_WEIGHT]),t.push(o),r}}),t}function oe(e){if(e&&e.hasOwnProperty(a["default"].LOCATION))return e.Location=e.Location_asArray[0],e.Location}e=e||{};var ie=void 0,ae=this.context,ue=(0,I["default"])(ae).getInstance(),se=e.mediaController,ce=e.timelineConverter,le=e.adapter,fe="urn:dvb:dash:profile:dvb-dash:2014",de=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};return ie={getIsTypeOf:t,getIsAudio:n,getIsVideo:r,getIsText:i,getIsMuxed:u,getIsTextTrack:c,getIsFragmentedText:o,getIsMain:E,getLanguageForAdaptation:f,getViewpointForAdaptation:p,getRolesForAdaptation:v,getAccessibilityForAdaptation:y,getAudioChannelConfigurationForAdaptation:_,getAdaptationForIndex:A,getIndexForAdaptation:C,getAdaptationForId:R,getAdaptationsForType:x,getAdaptationForType:N,getCodec:M,getMimeType:k,getKID:D,getContentProtectionData:L,getIsDynamic:j,getIsDVB:U,getDuration:B,getBandwidth:H,getManifestUpdatePeriod:q,getRepresentationCount:V,getBitrateListForAdaptation:G,getRepresentationFor:W,getRepresentationsForAdaptation:K,getAdaptationsForPeriod:Y,getRegularPeriods:z,getMpd:$,getEventsForPeriod:J,getEventStreamForAdaptationSet:ee,getEventStreamForRepresentation:te,getUTCTimingSources:ne,getBaseURLsFromElement:re,getRepresentationSortFunction:w,getLocation:oe}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(24),a=r(i),u=n(93),s=r(u),c=n(328),l=r(c),f=n(931),d=r(f),p=n(934),h=r(p),v=n(933),m=r(v),y=n(497),g=r(y),_=n(496),b=r(_),E=n(495),T=r(E),w=n(932),S=r(w),O=n(508),P=r(O),R=n(158),I=r(R),A=n(2),C=r(A);o.__dashjs_factory_name="DashManifestModel",t["default"]=C["default"].getSingletonFactory(o),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(){p=[new m["default"],new g["default"],new b["default"],new h["default"]],v=new d["default"]({escapeMode:!1,attributePrefix:"",arrayAccessForm:"property",emptyNodeForm:"object",stripWhitespaces:!1,enableToStringFunc:!1,ignoreRoot:!0,matchers:p}),y=new l["default"]([new T["default"],new S["default"]])}function n(){if(!c||!c.hasOwnProperty("manifestError"))throw new Error("Missing config parameter(s)")}function r(){return p}function o(){return y}function i(e){var t=void 0;n();try{var r=window.performance.now();if(t=v.xml_str2json(e),!t)throw new Error("parser error");var o=window.performance.now();y.run(t);var i=window.performance.now();u("Parsing complete: ( xml2json: "+(o-r).toPrecision(3)+"ms, objectiron: "+(i-o).toPrecision(3)+"ms, total: "+((i-r)/1e3).toPrecision(3)+"s)")}catch(a){return c.manifestError("parsing the manifest failed","parse",e,a),null}return t}e=e||{};var a=this.context,u=(0,s["default"])(a).getInstance().log,c=e.errorHandler,f=void 0,p=void 0,v=void 0,y=void 0;return f={parse:i,getMatchers:r,getIron:o},t(),f}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=r(i),u=n(19),s=r(u),c=n(906),l=r(c),f=n(492),d=r(f),p=n(924),h=r(p),v=n(922),m=r(v),y=n(921),g=r(y),_=n(923),b=r(_),E=n(919),T=r(E),w=n(920),S=r(w);o.__dashjs_factory_name="DashParser",t["default"]=a["default"].getClassFactory(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(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t,r){n(this,e);var o=function(e){return e&&e.length&&e.charAt(0)===e.charAt(0).toUpperCase()};this._name=t,this._merge=void 0!==r?r:o(t)}return r(e,[{key:"name",get:function(){return this._name}},{key:"merge",get:function(){return this._merge}}]),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(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(494),c=r(s),l=n(93),f=r(l),d=function(e){function t(){o(this,t);var e=[f["default"].PROFILES,f["default"].WIDTH,f["default"].HEIGHT,f["default"].SAR,f["default"].FRAMERATE,f["default"].AUDIO_SAMPLING_RATE,f["default"].MIME_TYPE,f["default"].SEGMENT_PROFILES,f["default"].CODECS,f["default"].MAXIMUM_SAP_PERIOD,f["default"].START_WITH_SAP,f["default"].MAX_PLAYOUT_RATE,f["default"].CODING_DEPENDENCY,f["default"].SCAN_TYPE,f["default"].FRAME_PACKING,f["default"].AUDIO_CHANNEL_CONFIGURATION,f["default"].CONTENT_PROTECTION,f["default"].ESSENTIAL_PROPERTY,f["default"].SUPPLEMENTAL_PROPERTY,f["default"].INBAND_EVENT_STREAM];u(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,f["default"].ADAPTATION_SET,e,[new c["default"](f["default"].REPRESENTATION,e,[new c["default"](f["default"].SUB_REPRESENTATION,e)])])}return i(t,e),t}(c["default"]);t["default"]=d,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(494),c=r(s),l=n(93),f=r(l),d=function(e){function t(){o(this,t);var e=[f["default"].SEGMENT_BASE,f["default"].SEGMENT_TEMPLATE,f["default"].SEGMENT_LIST];u(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,f["default"].PERIOD,e,[new c["default"](f["default"].ADAPTATION_SET,e,[new c["default"](f["default"].REPRESENTATION,e)])])}return i(t,e),t}(c["default"]);t["default"]=d,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(237),c=r(s),l=60,f=60,d=1e3,p=/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2})(?::([0-9]*)(\.[0-9]*)?)?(?:([+-])([0-9]{2})(?::?)([0-9]{2}))?/,h=function(e){function t(){o(this,t),u(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,function(e){return p.test(e.value)},function(e){var t=p.exec(e),n=void 0;if(n=Date.UTC(parseInt(t[1],10),parseInt(t[2],10)-1,parseInt(t[3],10),parseInt(t[4],10),parseInt(t[5],10),t[6]&&parseInt(t[6],10)||0,t[7]&&parseFloat(t[7])*d||0),t[9]&&t[10]){var r=parseInt(t[9],10)*f+parseInt(t[10],10);n+=("+"===t[8]?-1:1)*r*l*d}return new Date(n)})}return i(t,e),t}(c["default"]);t["default"]=h,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(237),c=r(s),l=n(24),f=r(l),d=n(93),p=r(d),h=/^([-])?P(([\d.]*)Y)?(([\d.]*)M)?(([\d.]*)D)?T?(([\d.]*)H)?(([\d.]*)M)?(([\d.]*)S)?/,v=31536e3,m=2592e3,y=86400,g=3600,_=60,b=function(e){function t(){o(this,t),u(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,function(e){for(var t=[p["default"].MIN_BUFFER_TIME,p["default"].MEDIA_PRESENTATION_DURATION,p["default"].MINIMUM_UPDATE_PERIOD,p["default"].TIMESHIFT_BUFFER_DEPTH,p["default"].MAX_SEGMENT_DURATION,p["default"].MAX_SUBSEGMENT_DURATION,f["default"].SUGGESTED_PRESENTATION_DELAY,p["default"].START,f["default"].START_TIME,p["default"].DURATION],n=t.length,r=0;r<n;r++)if(e.nodeName===t[r])return h.test(e.value);return!1},function(e){var t=h.exec(e),n=parseFloat(t[2]||0)*v+parseFloat(t[4]||0)*m+parseFloat(t[6]||0)*y+parseFloat(t[8]||0)*g+parseFloat(t[10]||0)*_+parseFloat(t[12]||0);return void 0!==t[1]&&(n=-n),n})}return i(t,e),t}(c["default"]);t["default"]=b,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(237),c=r(s),l=/^[-+]?[0-9]+[.]?[0-9]*([eE][-+]?[0-9]+)?$/,f=function(e){function t(){o(this,t),u(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,function(e){return l.test(e.value)},function(e){return parseFloat(e)})}return i(t,e),t}(c["default"]);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,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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":u(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="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 s=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}},c=n(237),l=r(c),f=n(93),d=r(f),p=function(e){function t(){i(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,function(e,t){var n,r=(n={},o(n,d["default"].MPD,[d["default"].ID,d["default"].PROFILES]),o(n,d["default"].PERIOD,[d["default"].ID]),o(n,d["default"].BASE_URL,[d["default"].SERVICE_LOCATION,d["default"].BYTE_RANGE]),o(n,d["default"].SEGMENT_BASE,[d["default"].INDEX_RANGE]),o(n,d["default"].INITIALIZATION,[d["default"].RANGE]),o(n,d["default"].REPRESENTATION_INDEX,[d["default"].RANGE]),o(n,d["default"].SEGMENT_LIST,[d["default"].INDEX_RANGE]),o(n,d["default"].BITSTREAM_SWITCHING,[d["default"].RANGE]),o(n,d["default"].SEGMENT_URL,[d["default"].MEDIA_RANGE,d["default"].INDEX_RANGE]),o(n,d["default"].SEGMENT_TEMPLATE,[d["default"].INDEX_RANGE,d["default"].MEDIA,d["default"].INDEX,d["default"].INITIALIZATION_MINUS,d["default"].BITSTREAM_SWITCHING_MINUS]),o(n,d["default"].ASSET_IDENTIFIER,[d["default"].VALUE,d["default"].ID]),o(n,d["default"].EVENT_STREAM,[d["default"].VALUE]),o(n,d["default"].ADAPTATION_SET,[d["default"].PROFILES,d["default"].MIME_TYPE,d["default"].SEGMENT_PROFILES,d["default"].CODECS,d["default"].CONTENT_TYPE]),o(n,d["default"].FRAME_PACKING,[d["default"].VALUE,d["default"].ID]),o(n,d["default"].AUDIO_CHANNEL_CONFIGURATION,[d["default"].VALUE,d["default"].ID]),o(n,d["default"].CONTENT_PROTECTION,[d["default"].VALUE,d["default"].ID]),o(n,d["default"].ESSENTIAL_PROPERTY,[d["default"].VALUE,d["default"].ID]),o(n,d["default"].SUPPLEMENTAL_PROPERTY,[d["default"].VALUE,d["default"].ID]),o(n,d["default"].INBAND_EVENT_STREAM,[d["default"].VALUE,d["default"].ID]),o(n,d["default"].ACCESSIBILITY,[d["default"].VALUE,d["default"].ID]),o(n,d["default"].ROLE,[d["default"].VALUE,d["default"].ID]),o(n,d["default"].RATING,[d["default"].VALUE,d["default"].ID]),o(n,d["default"].VIEWPOINT,[d["default"].VALUE,d["default"].ID]),o(n,d["default"].CONTENT_COMPONENT,[d["default"].CONTENT_TYPE]),o(n,d["default"].REPRESENTATION,[d["default"].ID,d["default"].DEPENDENCY_ID,d["default"].MEDIA_STREAM_STRUCTURE_ID]),o(n,d["default"].SUBSET,[d["default"].ID]),o(n,d["default"].METRICS,[d["default"].METRICS_MINUS]),o(n,d["default"].REPORTING,[d["default"].VALUE,d["default"].ID]),n);if(r.hasOwnProperty(t)){var i=r[t];return void 0!==i&&i.indexOf(e.name)>=0}return!1},function(e){return String(e)})}return a(t,e),t}(l["default"]);t["default"]=p,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){function e(e){e&&e.boxParser&&(o=e.boxParser)}function t(e){if(!o)throw new Error("boxParser is undefined");if(!e)return{sampleList:[],lastSequenceNumber:NaN,totalDuration:NaN,numSequences:NaN};var t=o.parse(e),n=t.getBoxes("moof"),r=t.getBoxes("mfhd"),i=void 0,a=void 0,u=void 0,s=void 0,c=void 0,l=void 0,f=void 0,d=void 0,p=void 0,h=void 0,v=void 0,m=void 0,y=void 0,g=void 0,_=void 0,b=void 0,E=void 0;b=t.getBoxes("moof").length,_=r[r.length-1].sequence_number,u=0,l=[];var T=-1,w=-1;for(v=0;v<n.length;v++){var S=n[v],O=S.getChildBoxes("traf");for(p=0;p<O.length;p++){var P=O[p],R=P.getChildBox("tfhd"),I=P.getChildBox("tfdt");c=I.baseMediaDecodeTime;var A=P.getChildBoxes("trun"),C=P.getChildBoxes("subs");for(h=0;h<A.length;h++){var x=A[h];for(u=x.sample_count,g=(R.base_data_offset||0)+(x.data_offset||0),d=0;d<u;d++){f=x.samples[d],i=void 0!==f.sample_duration?f.sample_duration:R.default_sample_duration,s=void 0!==f.sample_size?f.sample_size:R.default_sample_size,a=void 0!==f.sample_composition_time_offset?f.sample_composition_time_offset:0;var N={dts:c,cts:c+a,duration:i,offset:S.offset+g,size:s,subSizes:[s]};if(C)for(m=0;m<C.length;m++){var M=C[m];if(T<M.entry_count&&d>w&&(T++,w+=M.entries[T].sample_delta),d==w){N.subSizes=[];var k=M.entries[T];for(y=0;y<k.subsample_count;y++)N.subSizes.push(k.subsamples[y].subsample_size)}}l.push(N),g+=s,c+=i}}E=c-I.baseMediaDecodeTime}}return{sampleList:l,lastSequenceNumber:_,totalDuration:E,numSequences:b}}function n(e){if(!o)throw new Error("boxParser is undefined");var t=o.parse(e),n=t?t.getBox("mdhd"):void 0;return n?n.timescale:NaN}var r=void 0,o=void 0;return r={getSamplesInfo:t,getMediaTimescaleFromMoov:n,setConfig:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=r(i);o.__dashjs_factory_name="FragmentedTextBoxParser",t["default"]=a["default"].getSingletonFactory(o),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){function n(e,n,o,i){var a=e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentList,s=a.SegmentURL_asArray.length,c=[],l=void 0,f=void 0,d=void 0,p=void 0,h=void 0,v=void 0,m=void 0;for(m=e.startNumber,p=(0,u.decideSegmentListRangeForTemplate)(r,t,e,n,o,i),h=Math.max(p.start,0),v=Math.min(p.end,a.SegmentURL_asArray.length-1),l=h;l<=v;l++)d=a.SegmentURL_asArray[l],f=(0,u.getIndexBasedSegment)(r,t,e,l),f.replacementTime=(m+l-1)*e.segmentDuration,f.media=d.media?d.media:"",f.mediaRange=d.mediaRange,f.index=d.index,f.indexRange=d.indexRange,c.push(f),f=null;return e.availableSegmentsNumber=s,c}e=e||{};var r=e.timelineConverter,o=void 0;return o={getSegments:n}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=r(i),u=n(238);o.__dashjs_factory_name="ListSegmentsGetter";var s=a["default"].getClassFactory(o);t["default"]=s,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){function n(){s=(0,l["default"])(i).create(e,t),c=(0,d["default"])(i).create(e,t),f=(0,h["default"])(i).create(e,t)}function r(e,t,n,r,i){var u=void 0,l=e.segmentInfoType;l!==a["default"].SEGMENT_BASE&&l!==a["default"].BASE_URL&&o(e,n)?(l===a["default"].SEGMENT_TIMELINE?u=s.getSegments(e,t,n,i):l===a["default"].SEGMENT_TEMPLATE?u=c.getSegments(e,t,n,i):l===a["default"].SEGMENT_LIST&&(u=f.getSegments(e,t,n,i)),r&&r(e,u)):u=e.segments}function o(e,t){var n=e.segments,r=!1,o=void 0,i=void 0;return n&&0!==n.length?(i=n[0].availabilityIdx,o=n[n.length-1].availabilityIdx,r=t<i||t>o):r=!0,r}var i=this.context,u=void 0,s=void 0,c=void 0,f=void 0;return u={getSegments:r},n(),u}Object.defineProperty(t,"__esModule",{value:!0});var i=n(93),a=r(i),u=n(2),s=r(u),c=n(930),l=r(c),f=n(928),d=r(f),p=n(926),h=r(p);o.__dashjs_factory_name="SegmentsGetter";var v=s["default"].getClassFactory(o);t["default"]=v,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){function n(e,n,o,i){var a=e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentTemplate,s=e.segmentDuration,c=e.segmentAvailabilityRange,l=[],f=null,d=null,p=void 0,h=void 0,v=void 0,m=void 0,y=void 0;for(y=e.startNumber,p=isNaN(s)&&!t?{start:y,end:y}:(0,u.decideSegmentListRangeForTemplate)(r,t,e,n,o,i),v=p.start,m=p.end,h=v;h<=m;h++)d=(0,u.getIndexBasedSegment)(r,t,e,h),d.replacementTime=(y+h-1)*e.segmentDuration,f=a.media,
f=(0,u.replaceTokenForTemplate)(f,"Number",d.replacementNumber),f=(0,u.replaceTokenForTemplate)(f,"Time",d.replacementTime),d.media=f,l.push(d),d=null;return isNaN(s)?e.availableSegmentsNumber=1:e.availableSegmentsNumber=Math.ceil((c.end-c.start)/s),l}var r=e.timelineConverter,o=void 0;return o={getSegments:n}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=r(i),u=n(238);o.__dashjs_factory_name="TemplateSegmentsGetter";var s=a["default"].getClassFactory(o);t["default"]=s,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){function e(){b(),w.on(s["default"].TIME_SYNCHRONIZATION_COMPLETED,g,this)}function t(){return P}function n(e){P=e}function r(){return O}function o(e){O=e}function i(){return R}function u(e){R=e}function c(e,t,n,r){var o=NaN;return o=r?n&&t.timeShiftBufferDepth!=Number.POSITIVE_INFINITY?new Date(t.availabilityStartTime.getTime()+1e3*(e+t.timeShiftBufferDepth)):t.availabilityEndTime:n?new Date(t.availabilityStartTime.getTime()+1e3*(e-O)):t.availabilityStartTime}function l(e,t,n){return c.call(this,e,t,n)}function f(e,t,n){return c.call(this,e,t,n,!0)}function d(e,t){return(e.getTime()-t.mpd.availabilityStartTime.getTime()+1e3*O)/1e3}function p(e,t){var n=t.adaptation.period.start,r=t.presentationTimeOffset;return e+(n-r)}function h(e,t){var n=t.adaptation.period.start,r=t.presentationTimeOffset;return e-n+r}function v(e,t){var n=void 0,r=void 0,o=void 0;return t&&(n=e.representation.adaptation.period.mpd.suggestedPresentationDelay,r=e.presentationStartTime+n,o=new Date(e.availabilityStartTime.getTime()+1e3*r)),o}function m(e,t){var n=e.adaptation.period,r={start:n.start,end:n.start+n.duration};if(!t)return r;if(!P&&e.segmentAvailabilityRange)return e.segmentAvailabilityRange;var o=e.segmentDuration||(e.segments&&e.segments.length?e.segments[e.segments.length-1].duration:0),i=d(new Date,n),a=n.start+n.duration;return r.start=Math.max(i-n.mpd.timeShiftBufferDepth,n.start),r.end=i>=a&&i-o<a?a-o:i-o,r}function y(e,t){var n=e.adaptation.period.start;return t-n}function g(e){P||void 0!==e.offset&&(o(e.offset/1e3),P=!0)}function _(e){var t=e.presentationTimeOffset,n=e.adaptation.period.start;return n-t}function b(){O=0,P=!1,R=NaN}function E(){w.off(s["default"].TIME_SYNCHRONIZATION_COMPLETED,g,this),b()}var T=this.context,w=(0,a["default"])(T).getInstance(),S=void 0,O=void 0,P=void 0,R=void 0;return S={initialize:e,isTimeSyncCompleted:t,setTimeSyncCompleted:n,getClientTimeOffset:r,setClientTimeOffset:o,getExpectedLiveEdge:i,setExpectedLiveEdge:u,calcAvailabilityStartTimeFromPresentationTime:l,calcAvailabilityEndTimeFromPresentationTime:f,calcPresentationTimeFromWallTime:d,calcPresentationTimeFromMediaTime:p,calcPeriodRelativeTimeFromMpdRelativeTime:y,calcMediaTimeFromPresentationTime:h,calcSegmentAvailabilityRange:m,calcWallTimeForSegment:v,calcMSETimeOffset:_,reset:E}}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="TimelineConverter",t["default"]=l["default"].getSingletonFactory(o),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){function n(){if(!(o&&o.hasOwnProperty("calcMediaTimeFromPresentationTime")&&o.hasOwnProperty("calcSegmentAvailabilityRange")&&o.hasOwnProperty("calcMediaTimeFromPresentationTime")))throw new Error("Missing config parameter(s)")}function r(e,r,i,a){if(n(),!e)throw new Error("no representation");void 0===r&&(r=null);var s=e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentTemplate||e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentList,c=s.SegmentTimeline,l=s.SegmentURL_asArray,f=e.availableSegmentsNumber>0,d=void 0;d=a?a:i>-1||null!==r?10:1/0;var p=0,h=0,v=-1,m=[],y=null,g=void 0,_=void 0,b=void 0,E=void 0,T=void 0,w=void 0,S=void 0,O=void 0,P=void 0,R=void 0,I=void 0,A=function(n,r){var i=s.media,a=n.mediaRange;return l&&(i=l[r].media||"",a=l[r].mediaRange),(0,u.getTimeBasedSegment)(o,t,e,p,n.d,I,i,a,v,n.tManifest)};for(I=e.timescale,g=c.S_asArray,R=i,null!==r&&(y=o.calcMediaTimeFromPresentationTime(r,e)),b=0,E=g.length;b<E;b++){if(_=g[b],w=0,_.hasOwnProperty("r")&&(w=_.r),_.hasOwnProperty("t")&&(p=_.t,h=p/I),w<0){if(O=g[b+1],O&&O.hasOwnProperty("t"))S=O.t/I;else{var C=e.segmentAvailabilityRange?e.segmentAvailabilityRange.end:o.calcSegmentAvailabilityRange(e,t).end;S=o.calcMediaTimeFromPresentationTime(C,e),e.segmentDuration=_.d/I}w=Math.ceil((S-h)/(_.d/I))-1}if(P){if(f)break;v+=w+1}else for(T=0;T<=w;T++)if(v++,m.length>d){if(P=!0,f)break}else null!==y?h>=y-_.d/I*1.5&&m.push(A(_,v)):v>=R&&m.push(A(_,v)),p+=_.d,h=p/I}return f||(e.availableSegmentsNumber=v+1),m}e=e||{};var o=e.timelineConverter,i=void 0;return i={getSegments:r}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=r(i),u=n(238);o.__dashjs_factory_name="TimelineSegmentsGetter";var s=a["default"].getClassFactory(o);t["default"]=s,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.period=null,this.index=-1,this.type=null};t["default"]=r,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.adaptionSet=null,this.representation=null,this.period=null,this.timescale=1,this.value="",this.schemeIdUri=""};t["default"]=r,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.manifest=null,this.suggestedPresentationDelay=0,this.availabilityStartTime=null,this.availabilityEndTime=Number.POSITIVE_INFINITY,this.timeShiftBufferDepth=Number.POSITIVE_INFINITY,this.maxSegmentDuration=Number.POSITIVE_INFINITY,this.minimumUpdatePeriod=NaN,this.mediaPresentationDuration=NaN};t["default"]=r,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.id=null,this.index=-1,this.duration=NaN,this.start=NaN,this.mpd=null};r.DEFAULT_ID="defaultId",t["default"]=r,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(){p=(0,a["default"])(u).create({errHandler:e.errHandler,metricsModel:e.metricsModel,mediaPlayerModel:e.mediaPlayerModel,requestModifier:e.requestModifier})}function n(e){var t=function(t){c.trigger(h["default"].CHECK_FOR_EXISTENCE_COMPLETED,{request:e,exists:t})};if(e){var n=new s["default"](e.url);p.load({request:n,success:function(){t(!0)},error:function(){t(!1)}})}else t(!1)}function r(e){var t=function(t,n){c.trigger(h["default"].LOADING_COMPLETED,{request:e,response:t||null,error:n||null,sender:f})};e?p.load({request:e,progress:function(){c.trigger(h["default"].LOADING_PROGRESS,{request:e})},success:function(e){t(e)},error:function(e,n,r){t(void 0,new l["default"](y,r,n))},abort:function(e,t){e&&0===t&&c.trigger(h["default"].LOADING_ABANDONED,{request:e,mediaType:e.mediaType,sender:f})}}):t(void 0,new l["default"](g,_))}function o(){p&&p.abort()}function i(){p&&(p.abort(),p=null)}e=e||{};var u=this.context,c=(0,d["default"])(u).getInstance(),f=void 0,p=void 0;return f={checkForExistence:n,load:r,abort:o,reset:i},t(),f}Object.defineProperty(t,"__esModule",{value:!0});var i=n(196),a=r(i),u=n(1020),s=r(u),c=n(108),l=r(c),f=n(12),d=r(f),p=n(14),h=r(p),v=n(2),m=r(v),y=1,g=2,_="request is null";o.__dashjs_factory_name="FragmentLoader";var b=m["default"].getClassFactory(o);b.FRAGMENT_LOADER_ERROR_LOADING_FAILURE=y,b.FRAGMENT_LOADER_ERROR_NULL_REQUEST=g,m["default"].updateClassFactory(o.__dashjs_factory_name,b),t["default"]=b,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(){c.on(E["default"].XLINK_READY,n,g),b=(0,l["default"])(u).create({errHandler:P,metricsModel:e.metricsModel,mediaPlayerModel:e.mediaPlayerModel,requestModifier:e.requestModifier}),T=(0,s["default"])(u).create({errHandler:P,metricsModel:e.metricsModel,mediaPlayerModel:e.mediaPlayerModel,requestModifier:e.requestModifier}),w=null}function n(e){c.trigger(E["default"].INTERNAL_MANIFEST_LOADED,{manifest:e.manifest})}function r(e){var t=null;return e.indexOf("SmoothStreamingMedia")>-1?(S?(t=S.createMssParser(),S.registerEvents()):P.manifestError("manifest type unsupported","createParser"),t):e.indexOf("MPD")>-1?(0,O["default"])(u).create({errorHandler:P}):t}function o(e){var t=new h["default"](e,y.HTTPRequest.MPD_TYPE);b.load({request:t,success:function(t,n,o){var i=void 0,u=void 0;if(o.responseURL&&o.responseURL!==e?(u=f.parseBaseUrl(o.responseURL),i=o.responseURL):(f.isRelative(e)&&(e=f.resolve(e,window.location.href)),u=f.parseBaseUrl(e)),null===w&&(w=r(t)),null===w)return void c.trigger(E["default"].INTERNAL_MANIFEST_LOADED,{manifest:null,error:new m["default"](I,"Failed detecting manifest type: "+e)});T.setMatchers(w.getMatchers()),T.setIron(w.getIron());var s=w.parse(t);s?(s.url=i||e,s.originalUrl||(s.originalUrl=s.url),s.hasOwnProperty(a["default"].LOCATION)&&(u=f.parseBaseUrl(s.Location_asArray[0]),v("BaseURI set by Location to: "+u)),s.baseUri=u,s.loadedTime=new Date,T.resolveManifestOnLoad(s)):c.trigger(E["default"].INTERNAL_MANIFEST_LOADED,{manifest:null,error:new m["default"](I,C)})},error:function(t,n,r){c.trigger(E["default"].INTERNAL_MANIFEST_LOADED,{manifest:null,error:new m["default"](A,"Failed loading manifest: "+e+", "+r)})}})}function i(){c.off(E["default"].XLINK_READY,n,g),T&&(T.reset(),T=null),b&&(b.abort(),b=null),S&&S.reset()}e=e||{};var u=this.context,c=(0,_["default"])(u).getInstance(),f=(0,d["default"])(u).getInstance(),p=(0,R["default"])(u).getInstance(),v=p.log,g=void 0,b=void 0,T=void 0,w=void 0,S=e.mssHandler,P=e.errHandler;return g={load:o,reset:i},t(),g}Object.defineProperty(t,"__esModule",{value:!0});var i=n(24),a=r(i),u=n(951),s=r(u),c=n(196),l=r(c),f=n(158),d=r(f),p=n(509),h=r(p),v=n(108),m=r(v),y=n(45),g=n(12),_=r(g),b=n(14),E=r(b),T=n(2),w=r(T),S=n(917),O=r(S),P=n(19),R=r(P),I=1,A=2,C="parsing failed";o.__dashjs_factory_name="ManifestLoader";var x=w["default"].getClassFactory(o);x.MANIFEST_LOADER_ERROR_PARSING_FAILURE=I,x.MANIFEST_LOADER_ERROR_LOADING_FAILURE=A,w["default"].updateClassFactory(o.__dashjs_factory_name,x),t["default"]=x,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){function e(e){e&&(e.manifestModel&&(P=e.manifestModel),e.dashManifestModel&&(R=e.dashManifestModel),e.mediaPlayerModel&&(I=e.mediaPlayerModel),e.manifestLoader&&(O=e.manifestLoader))}function t(){r(),_.on(s["default"].STREAMS_COMPOSED,m,this),_.on(s["default"].PLAYBACK_STARTED,h,this),_.on(s["default"].PLAYBACK_PAUSED,v,this),_.on(s["default"].INTERNAL_MANIFEST_LOADED,p,this)}function n(e){l(e)}function r(){E=NaN,S=!1,w=!0,i()}function o(){_.off(s["default"].PLAYBACK_STARTED,h,this),_.off(s["default"].PLAYBACK_PAUSED,v,this),_.off(s["default"].STREAMS_COMPOSED,m,this),_.off(s["default"].INTERNAL_MANIFEST_LOADED,p,this),r()}function i(){null!==T&&(clearInterval(T),T=null)}function u(){i(),isNaN(E)||(g("Refresh manifest in "+E+" seconds."),T=setTimeout(f,1e3*E))}function c(){S=!0;var e=P.getValue(),t=e.url,n=R.getLocation(e);n&&(t=n),O.load(t)}function l(e){P.setValue(e);var t=new Date,n=(t.getTime()-e.loadedTime.getTime())/1e3;E=R.getManifestUpdatePeriod(e,n),_.trigger(s["default"].MANIFEST_UPDATED,{manifest:e}),g("Manifest has been refreshed at "+t+"["+t.getTime()/1e3+"] "),w||u()}function f(){w&&!I.getScheduleWhilePaused()||S||c()}function p(e){e.error||l(e.manifest)}function h(){w=!1,u()}function v(){w=!0,i()}function m(){S=!1}var y=this.context,g=(0,d["default"])(y).getInstance().log,_=(0,a["default"])(y).getInstance(),b=void 0,E=void 0,T=void 0,w=void 0,S=void 0,O=void 0,P=void 0,R=void 0,I=void 0;return b={initialize:t,setManifest:n,refreshManifest:c,setConfig:e,reset:o}}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),f=n(19),d=r(f);o.__dashjs_factory_name="ManifestUpdater",t["default"]=l["default"].getClassFactory(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(e,t,n){if(!e||"VIDEO"!==e.nodeName)return null;if(e._dashjs_player)return e._dashjs_player;var o=void 0,i=e.id||e.name||"video element";if(t=t||[].slice.call(e.querySelectorAll("source")).filter(function(e){return e.type==r})[0],!t&&e.src)t=document.createElement("source"),t.src=e.src;else if(!t&&!e.src)return null;return n=n||{},o=(0,s["default"])(n).create(),o.initialize(e,t.src,e.autoplay),o.getDebug().log("Converted "+i+" to dash.js player and added content: "+t.src),e._dashjs_player=o,o}function t(t,o){var i=[];t=t||"[data-dashjs-player]",o=o||document;for(var a=o.querySelectorAll(t),u=0;u<a.length;u++){var s=e(a[u],null);i.push(s)}for(var c=o.querySelectorAll('source[type="'+r+'"]'),u=0;u<c.length;u++){var l=n(c[u]),s=e(l,null);i.push(s)}return i}function n(e){for(var t=!0;t;){var n=e;if(t=!1,"video"===n.nodeName.toLowerCase())return n;e=n.parentNode,t=!0}}var r="application/dash+xml";return{create:e,createAll:t}}function i(){window.removeEventListener("load",i),c.createAll()}function a(){window.dashjs&&(window.clearInterval(l),c.createAll())}Object.defineProperty(t,"__esModule",{value:!0});var u=n(498),s=r(u),c=o(),l=void 0,f="undefined"!=typeof window&&window&&window.dashjs&&window.dashjs.skipAutoCreate;!f&&"undefined"!=typeof window&&window&&window.addEventListener&&("complete"===window.document.readyState?window.dashjs?c.createAll():l=window.setInterval(a,500):window.addEventListener("load",i)),t["default"]=c,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(){i(),fe=(0,d["default"])(H).create({mediaPlayerModel:K,metricsModel:J,errHandler:$}),V.on(m["default"].BUFFERING_COMPLETED,D,re),V.on(m["default"].DATA_UPDATE_COMPLETED,L,re)}function n(e,t){ue=e,le=t,le&&(V.on(m["default"].KEY_ERROR,S,re),V.on(m["default"].SERVER_CERTIFICATE_UPDATED,S,re),V.on(m["default"].LICENSE_REQUEST_COMPLETE,S,re),V.on(m["default"].KEY_SYSTEM_SELECTED,S,re),V.on(m["default"].KEY_SESSION_CREATED,S,re))}function r(e){ie||(V.on(m["default"].CURRENT_TRACK_CHANGED,R,re),C(e),ie=!0)}function o(){for(var e=oe?oe.length:0,t=0;t<e;t++){var n=oe[t].getFragmentModel();n.removeExecutedRequestsBeforeTime(f()+c()),oe[t].reset()}oe=[],ie=!1,ae=!1,V.off(m["default"].CURRENT_TRACK_CHANGED,R,re)}function i(){o(),ue=null,se={},ce=!1}function u(){ee&&ee.pause(),fe&&(fe.reset(),fe=null),i(),q=null,V.off(m["default"].DATA_UPDATE_COMPLETED,L,re),V.off(m["default"].BUFFERING_COMPLETED,D,re),V.off(m["default"].KEY_ERROR,S,re),V.off(m["default"].SERVER_CERTIFICATE_UPDATED,S,re),V.off(m["default"].LICENSE_REQUEST_COMPLETE,S,re),V.off(m["default"].KEY_SYSTEM_SELECTED,S,re),V.off(m["default"].KEY_SESSION_CREATED,S,re)}function c(){return ue?ue.duration:NaN}function f(){return ue?ue.start:NaN}function p(){return ue?ue.id:NaN}function v(){return ue}function y(){return de}function _(){return fe}function b(){if(!(Z&&Z.hasOwnProperty("getBitrateList")&&z&&z.hasOwnProperty("getAllMediaInfoForType")&&z.hasOwnProperty("getEventsFor")))throw new Error("Missing config parameter(s)")}function E(e){b();var t=M(e);return Z.getBitrateList(t)}function T(){de&&de.start()}function w(){de&&de.stop()}function S(e){e.error&&($.mediaKeySessionError(e.error),q(e.error),u())}function O(e){return e.type===a["default"].TEXT?e.mimeType:e.type}function P(e){var t=e.type,n=void 0,r=void 0;if(t===a["default"].MUXED&&e)return r="Multiplexed representations are intentionally not supported, as they are not compliant with the DASH-AVC/264 guidelines",q(r),$.manifestError(r,"multiplexedrep",G.getValue()),!1;if(t===a["default"].TEXT||t===a["default"].FRAGMENTED_TEXT||t===a["default"].EMBEDDED_TEXT)return!0;if(n=e.codec,q(t+" codec: "+n),e.contentProtection&&!X.supportsEncryptedMedia())$.capabilityError("encryptedmedia");else if(!X.supportsCodec(n))return r=t+"Codec ("+n+") is not supported.",$.manifestError(r,"codec",G.getValue()),q(r),!1;return!0}function R(e){if(e.newMediaInfo.streamInfo.id===ue.id){var t=j(e.oldMediaInfo);if(t){var n=ee.getTime();q("Stream - Process track changed at current time "+n);var r=e.newMediaInfo,o=G.getValue();q("Stream - Update stream controller"),o.refreshManifestOnSwitchTrack?(q("Stream - Refreshing manifest for switch track"),pe=e,Y.refreshManifest()):(t.updateMediaInfo(r),r.type!==a["default"].FRAGMENTED_TEXT&&(Z.updateTopQualityIndex(r),t.switchTrackAsked()))}}}function I(t,n,r,o){var i=(0,s["default"])(H).create({type:O(t),mimeType:t.mimeType,timelineConverter:Q,adapter:z,manifestModel:G,dashManifestModel:W,mediaPlayerModel:K,metricsModel:J,dashMetrics:e.dashMetrics,baseURLController:e.baseURLController,stream:re,abrController:Z,domStorage:e.domStorage,playbackController:ee,mediaController:te,streamController:e.streamController,textController:ne,sourceBufferController:e.sourceBufferController,errHandler:$});if(i.initialize(r),Z.updateTopQualityIndex(t),o?(i.setBuffer(o.buffer),i.getIndexHandler().setCurrentTime(o.currentTime),oe[o.replaceIdx]=i):oe.push(i),!o||!o.ignoreMediaInfo)if(t.type===a["default"].TEXT||t.type===a["default"].FRAGMENTED_TEXT){for(var u=void 0,c=0;c<n.length;c++)n[c].index===t.index&&(u=c),i.updateMediaInfo(n[c]);t.type===a["default"].FRAGMENTED_TEXT&&i.updateMediaInfo(n[u])}else i.updateMediaInfo(t)}function A(e,t){var n=z.getAllMediaInfoForType(ue,e),r=null,o=void 0;if(!n||0===n.length)return void q("No "+e+" data.");for(var i=0,u=n.length;i<u;i++)if(r=n[i],e===a["default"].EMBEDDED_TEXT)ne.addEmbeddedTrack(r);else{if(!P(r))continue;te.isMultiTrackSupportedByType(r.type)&&te.addTrack(r,ue)}e!==a["default"].EMBEDDED_TEXT&&0!==te.getTracksFor(e,ue).length&&(te.checkInitialMediaSettingsForType(e,ue),o=te.getCurrentTrackFor(e,ue),I(o,n,t))}function C(e){b();var t=void 0;if(de||(de=(0,l["default"])(H).create(),de.setConfig({manifestModel:G,manifestUpdater:Y,playbackController:ee}),t=z.getEventsFor(ue),de.addInlineEvents(t)),ce=!0,x(a["default"].VIDEO),x(a["default"].AUDIO),A(a["default"].VIDEO,e),A(a["default"].AUDIO,e),A(a["default"].TEXT,e),A(a["default"].FRAGMENTED_TEXT,e),A(a["default"].EMBEDDED_TEXT,e),A(a["default"].MUXED,e),k(),ae=!0,ce=!1,0===oe.length){var n="No streams to play.";$.manifestError(n,"nostreams",G.getValue()),q(n)}else N()}function x(e){var t=W.getAdaptationForType(G.getValue(),ue.index,e,ue);return t&&Array.isArray(t.Representation_asArray)?void t.Representation_asArray.filter(function(e,n){if(0===n)return!0;var r=W.getCodec(t,n);return!!X.supportsCodec(r)||(q("[Stream] codec not supported: "+r),!1)}):null}function N(){for(var e=oe.length,t=!!se.audio||!!se.video,n=t?new Error(B,"Data update failed",null):null,r=0;r<e;r++)if(oe[r].isUpdating()||ce)return;ae&&(le&&le.initialize(G.getValue(),M(a["default"].AUDIO),M(a["default"].VIDEO)),V.trigger(m["default"].STREAM_INITIALIZED,{streamInfo:ue,error:n}))}function M(e){for(var t=oe.length,n=null,r=0;r<t;r++)if(n=oe[r],n.getType()===e)return n.getMediaInfo();return null}function k(){for(var e=0,t=oe.length;e<t;e++)oe[e].createBuffer()}function D(e){if(e.streamInfo===ue){for(var t=F(),n=t.length,r=0;r<n;r++)if(!t[r].isBufferingCompleted())return;V.trigger(m["default"].STREAM_BUFFERING_COMPLETED,{streamInfo:ue})}}function L(e){var t=e.sender.getStreamProcessor();t.getStreamInfo()===ue&&(se[t.getType()]=e.error,N())}function j(e){if(!e)return!1;var t=F();return t.filter(function(t){return t.getType()===e.type})[0]}function F(){for(var e=oe.length,t=[],n=void 0,r=void 0,o=0;o<e;o++)r=oe[o],n=r.getType(),n!==a["default"].AUDIO&&n!==a["default"].VIDEO&&n!==a["default"].FRAGMENTED_TEXT||t.push(r);return t}function U(e){if(q("Manifest updated... updating data system wide."),ie=!1,ce=!0,ue=e,de){var t=z.getEventsFor(ue);de.addInlineEvents(t)}x(a["default"].VIDEO),x(a["default"].AUDIO);for(var n=0,r=oe.length;n<r;n++){var o=oe[n],i=z.getMediaInfoForType(ue,o.getType());Z.updateTopQualityIndex(i),o.updateMediaInfo(i)}if(pe){var i=pe.newMediaInfo;if("fragmentedText"!==i.type){var u=j(pe.oldMediaInfo);if(!u)return;u.switchTrackAsked(),pe=void 0}}ce=!1,N()}var B=1;e=e||{};var H=this.context,q=(0,g["default"])(H).getInstance().log,V=(0,h["default"])(H).getInstance(),G=e.manifestModel,W=e.dashManifestModel,K=e.mediaPlayerModel,Y=e.manifestUpdater,z=e.adapter,X=e.capabilities,$=e.errHandler,Q=e.timelineConverter,J=e.metricsModel,Z=e.abrController,ee=e.playbackController,te=e.mediaController,ne=e.textController,re=void 0,oe=void 0,ie=void 0,ae=void 0,ue=void 0,se=void 0,ce=void 0,le=void 0,fe=void 0,de=void 0,pe=void 0;return re={initialize:n,activate:r,deactivate:o,getDuration:c,getStartTime:f,getId:p,getStreamInfo:v,getFragmentController:_,getEventController:y,getBitrateListFor:E,startEventController:T,stopEventController:w,updateData:U,reset:u,getProcessors:F},t(),re}Object.defineProperty(t,"__esModule",{value:!0});var i=n(24),a=r(i),u=n(940),s=r(u),c=n(944),l=r(c),f=n(945),d=r(f),p=n(12),h=r(p),v=n(14),m=r(v),y=n(19),g=r(y),_=n(2),b=r(_);o.__dashjs_factory_name="Stream",t["default"]=b["default"].getClassFactory(o),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(){J&&J.getIsDynamic()&&(de=(0,s["default"])(H).create({timelineConverter:K,streamProcessor:ue})),c()}function n(t){q=(0,b["default"])(H).create({mimeType:W,timelineConverter:K,dashMetrics:ie,metricsModel:oe,mediaPlayerModel:X,baseURLController:e.baseURLController,errHandler:G}),q.initialize(this),Q.registerStreamType(V,this),he=$.getFragmentController().getModel(V),he.setStreamProcessor(ue),le=B(V),fe=(0,h["default"])(H).create({type:V,metricsModel:oe,adapter:Y,dashMetrics:ie,dashManifestModel:ae,timelineConverter:K,mediaPlayerModel:X,abrController:Q,playbackController:J,streamController:Z,textController:te,sourceBufferController:ne,streamProcessor:this}),pe=(0,m["default"])(H).create(),pe.setConfig({abrController:Q,domStorage:re,metricsModel:oe,dashMetrics:ie,dashManifestModel:ae,manifestModel:z,playbackController:J,timelineConverter:K,streamProcessor:this}),le.initialize(t),fe.initialize(),pe.initialize()}function r(e){ve.push(e)}function o(e){var t=ve.indexOf(e);t!==-1&&ve.splice(t,1)}function i(){return ve}function u(){ve=[]}function c(){ce=[],se=null,u()}function f(e){q.reset(),le&&(le.reset(e),le=null),fe&&(fe.reset(),fe=null),pe&&(pe.reset(),pe=null),Q&&Q.unRegisterStreamType(V),ve.forEach(function(e){e.reset()}),c(),V=null,$=null,de&&(de.reset(),de=null)}function p(){return!!pe&&pe.isUpdating()}function v(){return V}function y(){return pe}function g(){return q}function _(){return $?$.getFragmentController():null}function E(){return le.getBuffer()}function T(e){le.setBuffer(e)}function w(){return le}function S(){return he}function O(){return de}function P(){return $?$.getStreamInfo():null}function R(){return $?$.getEventController():null}function I(e){e===se||e&&se&&e.type!==se.type||(se=e),ce.indexOf(e)===-1&&ce.push(e),Y.updateData(this)}function A(){return ce}function C(){return se}function x(){return le.getMediaSource()}function N(){return fe}function M(){return Y.getCurrentRepresentationInfo(pe)}function k(e){return Y.getRepresentationInfoForQuality(pe,e)}function D(){return!!le&&le.getIsBufferingCompleted()}function L(){return le.getBufferLevel()}function j(e){le&&le.switchInitData(P().id,e)}function F(){return le.getBuffer()||le.createBuffer(se)}function U(){fe.switchTrackAsked()}function B(e){var t=null;return t=e===a["default"].VIDEO||e===a["default"].AUDIO?(0,l["default"])(H).create({type:e,metricsModel:oe,mediaPlayerModel:X,manifestModel:z,sourceBufferController:ne,errHandler:G,streamController:Z,mediaController:ee,adapter:Y,textController:te,abrController:Q,playbackController:J,streamProcessor:ue}):(0,d["default"])(H).create({type:e,metricsModel:oe,mediaPlayerModel:X,manifestModel:z,sourceBufferController:ne,errHandler:G,streamController:Z,mediaController:ee,adapter:Y,textController:te,abrController:Q,playbackController:J,streamProcessor:ue})}e=e||{};var H=this.context,q=void 0,V=e.type,G=e.errHandler,W=e.mimeType,K=e.timelineConverter,Y=e.adapter,z=e.manifestModel,X=e.mediaPlayerModel,$=e.stream,Q=e.abrController,J=e.playbackController,Z=e.streamController,ee=e.mediaController,te=e.textController,ne=e.sourceBufferController,re=e.domStorage,oe=e.metricsModel,ie=e.dashMetrics,ae=e.dashManifestModel,ue=void 0,se=void 0,ce=void 0,le=void 0,fe=void 0,de=void 0,pe=void 0,he=void 0,ve=void 0;return ue={initialize:n,isUpdating:p,getType:v,getBufferController:w,getFragmentModel:S,getScheduleController:N,getLiveEdgeFinder:O,getEventController:R,getFragmentController:_,getRepresentationController:y,getIndexHandler:g,getCurrentRepresentationInfo:M,getRepresentationInfoForQuality:k,getBufferLevel:L,switchInitData:j,isBufferingCompleted:D,createBuffer:F,getStreamInfo:P,updateMediaInfo:I,switchTrackAsked:U,getMediaInfoArr:A,getMediaInfo:C,getMediaSource:x,getBuffer:E,setBuffer:T,registerExternalController:r,unregisterExternalController:o,getExternalControllers:i,unregisterAllExternalController:u,reset:f},t(),ue}Object.defineProperty(t,"__esModule",{value:!0});var i=n(24),a=r(i),u=n(1013),s=r(u),c=n(134),l=r(c),f=n(1005),d=r(f),p=n(948),h=r(p),v=n(915),m=r(v),y=n(2),g=r(y),_=n(911),b=r(_);o.__dashjs_factory_name="StreamProcessor",t["default"]=g["default"].getClassFactory(o),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(e,t,n){var o=function(r,o){t.resolved=!0,t.resolvedContent=r?r:null,i.trigger(v["default"].XLINK_ELEMENT_LOADED,{element:t,resolveObject:n,error:r||o?null:new a["default"](g,"Failed loading Xlink element: "+e)})};if(e===r)o(null,!0);else{var s=new f["default"](e,c.HTTPRequest.XLINK_TYPE);u.load({request:s,success:function(e){o(e)},error:function(){o(null)}})}}function n(){u&&(u.abort(),u=null)}e=e||{};var r="urn:mpeg:dash:resolve-to-zero:2013",o=this.context,i=(0,p["default"])(o).getInstance(),u=(0,s["default"])(o).create({errHandler:e.errHandler,metricsModel:e.metricsModel,mediaPlayerModel:e.mediaPlayerModel,requestModifier:e.requestModifier}),l=void 0;return l={load:t,reset:n}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(108),a=r(i),u=n(196),s=r(u),c=n(45),l=n(509),f=r(l),d=n(12),p=r(d),h=n(14),v=r(h),m=n(2),y=r(m),g=1;o.__dashjs_factory_name="XlinkLoader";var _=y["default"].getClassFactory(o);_.XLINK_LOADER_ERROR_LOADING_FAILURE=g,y["default"].updateClassFactory(o.__dashjs_factory_name,_),t["default"]=_,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){function e(e){y.invalidateSelectedIndexes(e.entry)}function t(){y=(0,a["default"])(p).create(),_=(0,s["default"])(p).create(),h.on(g["default"].SERVICE_LOCATION_BLACKLIST_CHANGED,e,c)}function n(e){e.baseURLTreeModel&&(y=e.baseURLTreeModel),e.baseURLSelector&&(_=e.baseURLSelector),e.dashManifestModel&&(f=e.dashManifestModel)}function r(e){y.update(e),_.chooseSelectorFromManifest(e)}function o(e){var t=y.getForPath(e),n=t.reduce(function(e,t){var n=_.select(t);return n?(v.isRelative(n.url)?e.url=v.resolve(n.url,e.url):(e.url=n.url,e.serviceLocation=n.serviceLocation),e):new d["default"]},new d["default"]);if(!v.isRelative(n.url))return n}function i(){y.reset(),_.reset()}function u(e){y.setConfig({dashManifestModel:f}),_.setConfig({dashManifestModel:f}),r(e)}var c=void 0,f=void 0,p=this.context,h=(0,m["default"])(p).getInstance(),v=(0,l["default"])(p).getInstance(),y=void 0,_=void 0;return c={reset:i,initialize:u,resolve:o,setConfig:n},t(),c}Object.defineProperty(t,"__esModule",{value:!0});var i=n(971),a=r(i),u=n(1008),s=r(u),c=n(158),l=r(c),f=n(495),d=r(f),p=n(2),h=r(p),v=n(12),m=r(v),y=n(14),g=r(y);o.__dashjs_factory_name="BaseURLController",t["default"]=h["default"].getSingletonFactory(o),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(e){return!!(a.length&&e&&e.length)&&a.indexOf(e)!==-1}function n(e){a.indexOf(e)===-1&&(a.push(e),u.trigger(c,{entry:e}))}function r(e){n(e.entry)}function o(){l&&u.on(l,r,this)}function i(){a=[]}e=e||{};var a=[],u=(0,s["default"])(this.context).getInstance(),c=e.updateEventName,l=e.addBlacklistEventName;return o(),{add:n,contains:t,reset:i}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=r(i),u=n(12),s=r(u);o.__dashjs_factory_name="BlackListController",t["default"]=a["default"].getClassFactory(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(){t()}function t(){C=!1,E={},T={},w={},S=null,O=100,P=O/1e3}function n(){if(!R||!I||!A)throw new Error("setConfig function has to be called previously")}function r(){null!==S&&C&&(clearInterval(S),S=null,C=!1)}function o(){n(),g("Start Event Controller"),C||isNaN(O)||(C=!0,S=setInterval(c,O))}function i(e){if(n(),E={},e)for(var t=0;t<e.length;t++){var r=e[t];E[r.id]=r,g("Add inline event with id "+r.id)}g("Added "+e.length+" inline events")}function a(e){n();for(var t=0;t<e.length;t++){var r=e[t];r.id in T?g("Repeated event with id "+r.id):(T[r.id]=r,g("Add inband event with id "+r.id))}}function u(){if(w)for(var e=A.getTime(),t=Object.keys(w),n=0;n<t.length;n++){var r=t[n],o=w[r];null!==o&&(o.duration+o.presentationTime)/o.eventStream.timescale<e&&(g("Remove Event "+r+" at time "+e),o=null,delete w[r])}}function c(){d(T),d(E),u()}function f(){n(),I.refreshManifest()}function d(e){var t,n=A.getTime();if(e)for(var r=Object.keys(e),o=0;o<r.length;o++){var i=r[o],a=e[i];void 0!==a&&(t=a.presentationTime/a.eventStream.timescale,(0===t||t<=n&&t+P>n)&&(g("Start Event "+i+" at "+n),a.duration>0&&(w[i]=a),a.eventStream.schemeIdUri==v&&a.eventStream.value==m?f():_.trigger(a.eventStream.schemeIdUri,{event:a}),delete e[i]))}}function p(e){e&&(e.manifestModel&&(R=e.manifestModel),e.manifestUpdater&&(I=e.manifestUpdater),e.playbackController&&(A=e.playbackController))}function h(){r(),t()}var v="urn:mpeg:dash:event:2012",m=1,y=this.context,g=(0,s["default"])(y).getInstance().log,_=(0,l["default"])(y).getInstance(),b=void 0,E=void 0,T=void 0,w=void 0,S=void 0,O=void 0,P=void 0,R=void 0,I=void 0,A=void 0,C=void 0;return b={addInlineEvents:i,addInbandEvents:a,stop:r,start:o,setConfig:p,reset:h},e(),b}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=r(i),u=n(19),s=r(u),c=n(12),l=r(c);o.__dashjs_factory_name="EventController",t["default"]=a["default"].getClassFactory(o),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(){o(),m.on(_["default"].FRAGMENT_LOADING_COMPLETED,l,T)}function n(e){var t=S[e];return t||(t=(0,f["default"])(d).create({metricsModel:E,fragmentLoader:(0,p["default"])(d).create({metricsModel:E,mediaPlayerModel:b,errHandler:g,requestModifier:(0,v["default"])(d).getInstance()})}),S[e]=t),t}function r(e){return e&&e.type&&e.type===u.HTTPRequest.INIT_SEGMENT_TYPE}function o(){for(var e in S)S[e].reset();S={}}function i(){m.off(_["default"].FRAGMENT_LOADING_COMPLETED,l,this),o()}function s(e,t,n){var r=new c["default"];return r.streamId=n,r.mediaInfo=t.mediaInfo,r.segmentType=t.type,
r.start=t.startTime,r.duration=t.duration,r.end=r.start+r.duration,r.bytes=e,r.index=t.index,r.quality=t.quality,r.representationId=t.representationId,r}function l(e){if(S[e.request.mediaType]===e.sender){var t=e.request,n=e.response,o=r(t),i=t.mediaInfo.streamInfo;if(e.error&&(e.request.mediaType!==a["default"].AUDIO&&e.request.mediaType!==a["default"].VIDEO||m.trigger(_["default"].SERVICE_LOCATION_BLACKLIST_ADD,{entry:e.request.serviceLocation})),!n||!i)return void h("No "+t.mediaType+" bytes to push or stream is inactive.");var u=s(n,t,i.id);m.trigger(o?_["default"].INIT_FRAGMENT_LOADED:_["default"].MEDIA_FRAGMENT_LOADED,{chunk:u,fragmentModel:e.sender})}}e=e||{};var d=this.context,h=(0,w["default"])(d).getInstance().log,m=(0,y["default"])(d).getInstance(),g=e.errHandler,b=e.mediaPlayerModel,E=e.metricsModel,T=void 0,S=void 0;return T={getModel:n,isInitializationRequest:r,reset:i},t(),T}Object.defineProperty(t,"__esModule",{value:!0});var i=n(24),a=r(i),u=n(45),s=n(1019),c=r(s),l=n(241),f=r(l),d=n(935),p=r(d),h=n(243),v=r(h),m=n(12),y=r(m),g=n(14),_=r(g),b=n(2),E=r(b),T=n(19),w=r(T);o.__dashjs_factory_name="FragmentController",t["default"]=E["default"].getClassFactory(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(){var e="WebKitMediaSource"in window,t="MediaSource"in window;return t?new MediaSource:e?new WebKitMediaSource:null}function t(e,t){var n=window.URL.createObjectURL(e);return t.setSource(n),n}function n(e){e.setSource(null)}function r(e,t){return e.duration!=t&&(e.duration=t),e.duration}function o(e,t,n){"function"==typeof e.setLiveSeekableRange&&"function"==typeof e.clearLiveSeekableRange&&"open"===e.readyState&&t>=0&&t<n&&(e.clearLiveSeekableRange(),e.setLiveSeekableRange(t,n))}function i(e){var t=e.sourceBuffers,n=t.length;if("open"===e.readyState){for(var r=0;r<n;r++){if(t[r].updating)return;if(0===t[r].buffered.length)return}e.endOfStream()}}var a=void 0;return a={createMediaSource:e,attachMediaSource:t,detachMediaSource:n,setDuration:r,setSeekable:o,signalEndOfStream:i}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=r(i);o.__dashjs_factory_name="MediaSourceController",t["default"]=a["default"].getSingletonFactory(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(){P()}function t(e){me=e,Q(),ye=me.manifestInfo.isDynamic,fe=me.start,te.on(h["default"].DATA_UPDATE_COMPLETED,M,this),te.on(h["default"].BYTES_APPENDED,X,this),te.on(h["default"].BUFFER_LEVEL_STATE_CHANGED,$,this),te.on(h["default"].PERIOD_SWITCH_STARTED,n,this),_e&&(_e=!1,o())}function n(e){!ye&&e.fromStreamInfo&&void 0!==pe[e.fromStreamInfo.id]&&(delete ve[e.fromStreamInfo.id],delete pe[e.fromStreamInfo.id])}function r(){var e=I(!0),t=ye?e-me.start:0;return e+(me.duration-t)-p()}function o(){ce&&ce.getElement()?ce.play():_e=!0}function i(){return ce?ce.isPaused():null}function u(){ce&&ce.pause()}function c(){return ce?ce.isSeeking():null}function f(e){ce&&(te.trigger(h["default"].PLAYBACK_SEEK_ASKED),ee("Requesting seek to time: "+e),ce.setCurrentTime(e))}function p(){return ce?ce.getTime():null}function v(){return ce?ce.getPlaybackRate():null}function m(){return ce?ce.getPlayedRanges():null}function y(){return ce?ce.getEnded():null}function b(){return ye}function E(){return re}function T(e){fe=e}function w(){return fe}function S(e,t){var n=ue.getMpd(ae.getValue()),r=void 0,o=void 0,i=10;if(r=ge.getUseSuggestedPresentationDelay()&&n.hasOwnProperty(a["default"].SUGGESTED_PRESENTATION_DELAY)?n.suggestedPresentationDelay:ge.getLiveDelay()?ge.getLiveDelay():isNaN(e)?2*me.manifestInfo.minBufferTime:e*ge.getLiveDelayFragmentCount(),t>0){var u=Math.max(t-i,t/2);o=Math.min(r,u)}else o=r;return he=o,o}function O(){return he}function P(){le=0,fe=NaN,de=null,_e=!1,pe={},he=0,ve={},ce&&(te.off(h["default"].DATA_UPDATE_COMPLETED,M,this),te.off(h["default"].BUFFER_LEVEL_STATE_CHANGED,$,this),te.off(h["default"].BYTES_APPENDED,X,this),x(),J()),ce=null,me=null,ye=null}function R(e){e&&(e.streamController&&(re=e.streamController),e.metricsModel&&(oe=e.metricsModel),e.dashMetrics&&(ie=e.dashMetrics),e.manifestModel&&(ae=e.manifestModel),e.dashManifestModel&&(ue=e.dashManifestModel),e.mediaPlayerModel&&(ge=e.mediaPlayerModel),e.adapter&&(se=e.adapter),e.videoModel&&(ce=e.videoModel))}function I(e,t){var n=void 0,r=(0,l["default"])(Z).getInstance().getURIFragmentData(),o=NaN;if(r){var i=parseInt(r.s,10),a=parseInt(r.t,10);e||(o=isNaN(i)?a:i)}else o=0;if(ye)isNaN(o)||(n=o-me.manifestInfo.availableFrom.getTime()/1e3,(n>fe||n<(isNaN(t)?NaN:t-me.manifestInfo.DVRWindowSize))&&(n=null)),n=n||fe;else if(!isNaN(o)&&o<Math.max(me.manifestInfo.duration,me.duration)&&o>=0)n=o;else{var u=pe[me.id];void 0===u&&(u=re.getActiveStreamCommonEarliestTime()),n=Math.max(u,me.start)}return n}function A(e){var t=oe.getReadOnlyMetricsFor(a["default"].VIDEO)||oe.getReadOnlyMetricsFor(a["default"].AUDIO),n=ie.getCurrentDVRInfo(t),r=n?n.range:null,o=void 0;if(!r)return NaN;if(e>r.end)o=Math.max(r.end-2*me.manifestInfo.minBufferTime,r.start);else{if(!(e<r.start))return e;o=r.start}return o}function C(){if(null===de){var e=function(){Y()};de=setInterval(e,ge.getWallclockTimeUpdateInterval())}}function x(){clearInterval(de),de=null}function N(){if(!i()&&ye&&0!==ce.getReadyState()){var e=p(),t=A(e),n=!isNaN(t)&&t!==e;n&&f(t)}}function M(e){if(!e.error){var t=se.convertDataToRepresentationInfo(e.currentRepresentation),n=t.mediaInfo.streamInfo;me.id===n.id&&(me=n,N())}}function k(){te.trigger(h["default"].CAN_PLAY)}function D(){ee("Native video element event: play"),N(),C(),te.trigger(h["default"].PLAYBACK_STARTED,{startTime:p()})}function L(){ee("Native video element event: playing"),te.trigger(h["default"].PLAYBACK_PLAYING,{playingTime:p()})}function j(){ee("Native video element event: pause"),te.trigger(h["default"].PLAYBACK_PAUSED,{ended:y()})}function F(){var e=p();ee("Seeking to: "+e),C(),te.trigger(h["default"].PLAYBACK_SEEKING,{seekTime:e})}function U(){ee("Native video element event: seeked"),te.trigger(h["default"].PLAYBACK_SEEKED)}function B(){var e=p();le=e,te.trigger(h["default"].PLAYBACK_TIME_UPDATED,{timeToEnd:r(),time:e})}function H(){var e=Date.now();(!be||e>be+_)&&(be=e,B())}function q(){te.trigger(h["default"].PLAYBACK_PROGRESS)}function V(){var e=v();ee("Native video element event: ratechange: ",e),te.trigger(h["default"].PLAYBACK_RATE_CHANGED,{playbackRate:e})}function G(){ee("Native video element event: loadedmetadata"),te.trigger(h["default"].PLAYBACK_METADATA_LOADED),C()}function W(){ee("Native video element event: ended"),u(),x(),te.trigger(h["default"].PLAYBACK_ENDED)}function K(e){var t=e.target||e.srcElement;te.trigger(h["default"].PLAYBACK_ERROR,{error:t.error})}function Y(){te.trigger(h["default"].WALLCLOCK_TIME_UPDATED,{isDynamic:ye,time:new Date}),b()&&i()&&H()}function z(e,t){if(t&&t.length>0)for(var n=0,r=t.length;n<r;n++)if(e>=t.start(n)&&e<t.end(n))return!0;return!1}function X(e){var t=void 0,n=void 0,r=e.bufferedRanges;if(r&&r.length&&pe[me.id]!==!1){var o=e.sender.getType();void 0===ve[me.id]&&(ve[me.id]=[]),ve[me.id][o]=r,void 0===pe[me.id]&&(pe[me.id]=[]),void 0===pe[me.id][o]&&(pe[me.id][o]=Math.max(r.start(0),me.start));var i=re.isVideoTrackPresent(),a=re.isAudioTrackPresent();n=I(!1),a&&i?isNaN(pe[me.id].audio)||isNaN(pe[me.id].video)||(pe[me.id].audio<pe[me.id].video?(t=pe[me.id].video>n?pe[me.id].video:n,r=ve[me.id].audio):(t=pe[me.id].audio>n?pe[me.id].audio:n,r=ve[me.id].video),z(t,r)&&(f(t),pe[me.id]=!1)):pe[me.id][o]&&(t=pe[me.id][o]>n?pe[me.id][o]:n,f(t),pe[me.id]=!1)}}function $(e){e.streamInfo.id===me.id&&ce.setStallState(e.mediaType,e.state===s["default"].BUFFER_EMPTY)}function Q(){ce.addEventListener("canplay",k),ce.addEventListener("play",D),ce.addEventListener("playing",L),ce.addEventListener("pause",j),ce.addEventListener("error",K),ce.addEventListener("seeking",F),ce.addEventListener("seeked",U),ce.addEventListener("timeupdate",B),ce.addEventListener("progress",q),ce.addEventListener("ratechange",V),ce.addEventListener("loadedmetadata",G),ce.addEventListener("ended",W)}function J(){ce.removeEventListener("canplay",k),ce.removeEventListener("play",D),ce.removeEventListener("playing",L),ce.removeEventListener("pause",j),ce.removeEventListener("error",K),ce.removeEventListener("seeking",F),ce.removeEventListener("seeked",U),ce.removeEventListener("timeupdate",B),ce.removeEventListener("progress",q),ce.removeEventListener("ratechange",V),ce.removeEventListener("loadedmetadata",G),ce.removeEventListener("ended",W)}var Z=this.context,ee=(0,g["default"])(Z).getInstance().log,te=(0,d["default"])(Z).getInstance(),ne=void 0,re=void 0,oe=void 0,ie=void 0,ae=void 0,ue=void 0,se=void 0,ce=void 0,le=void 0,fe=void 0,de=void 0,pe=void 0,he=void 0,ve=void 0,me=void 0,ye=void 0,ge=void 0,_e=void 0,be=void 0;return ne={initialize:t,setConfig:R,getStreamStartTime:I,getTimeToStreamEnd:r,getTime:p,getPlaybackRate:v,getPlayedRanges:m,getEnded:y,getIsDynamic:b,getStreamController:E,setLiveStartTime:T,getLiveStartTime:w,computeLiveDelay:S,getLiveDelay:O,play:o,isPaused:i,pause:u,isSeeking:c,seek:f,reset:P},e(),ne}Object.defineProperty(t,"__esModule",{value:!0});var i=n(24),a=r(i),u=n(134),s=r(u),c=n(505),l=r(c),f=n(12),d=r(f),p=n(14),h=r(p),v=n(2),m=r(v),y=n(19),g=r(y),_=500;o.__dashjs_factory_name="PlaybackController",t["default"]=m["default"].getSingletonFactory(o),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(){ye=(0,O["default"])(te).getInstance().log.bind(me),Z()}function n(){ge=ve.getFragmentModel(),xe=se.getScheduleWhilePaused(),Ae=(0,p["default"])(te).create({abrController:ce,dashMetrics:ie,metricsModel:re,mediaPlayerModel:se,textController:de}),Ce=(0,v["default"])(te).create({adapter:oe,sourceBufferController:pe,textController:de}),ae.getIsTextTrack(he)&&ne.on(E["default"].TIMED_TEXT_REQUESTED,U,this),ne.on(E["default"].QUALITY_CHANGE_REQUESTED,w,this),ne.on(E["default"].DATA_UPDATE_STARTED,k,this),ne.on(E["default"].DATA_UPDATE_COMPLETED,P,this),ne.on(E["default"].FRAGMENT_LOADING_COMPLETED,C,this),ne.on(E["default"].STREAM_COMPLETED,A,this),ne.on(E["default"].STREAM_INITIALIZED,R,this),ne.on(E["default"].BUFFER_LEVEL_STATE_CHANGED,L,this),ne.on(E["default"].BUFFER_CLEARED,D,this),ne.on(E["default"].BYTES_APPENDED,N,this),ne.on(E["default"].INIT_REQUESTED,m,this),ne.on(E["default"].QUOTA_EXCEEDED,j,this),ne.on(E["default"].PLAYBACK_SEEKING,H,this),ne.on(E["default"].PLAYBACK_STARTED,B,this),ne.on(E["default"].PLAYBACK_RATE_CHANGED,q,this),ne.on(E["default"].PLAYBACK_TIME_UPDATED,x,this),ne.on(E["default"].URL_RESOLUTION_FAILED,F,this),ne.on(E["default"].FRAGMENT_LOADING_ABANDONED,M,this)}function r(){return Ee===!1}function o(){_e&&!ve.isBufferingCompleted()&&(J(),Ee=!1,be&&(be=!1),h(0),ye("Schedule controller starting for "+he))}function i(){Ee||(Ee=!0,clearTimeout(Re),ye("Schedule controller stopping for "+he))}function s(e,t){Me[t]=Me[t]||{};var n=ce.getTopQualityIndexFor(e,t);return Me[t][e]!=n&&(ye("Top quality "+e+" index has changed from "+Me[t][e]+" to "+n),Me[t][e]=n,!0)}function l(){if(Ee||Oe||!ve.getBufferController()||le.isPaused()&&!xe)return void ye("ScheduleController "+he+"- schedule stop!");d();var e=De.length>0;if(Le||e||s(_e.mediaInfo.type,ve.getStreamInfo().id)||Ae.execute(ve,he,fe.isVideoTrackPresent())){var t=function(){ye("ScheduleController "+he+"- getNextFragment");var e=ve.getFragmentController();if(Le)ye("ScheduleController "+he+"- switch track has been asked, get init request for "+he+" with representationid = "+_e.id),ve.switchInitData(_e.id),ke=_e.quality,Le=!1;else if(_e.quality!==ke)ye("ScheduleController "+he+"- quality has changed, get init request"),ke=_e.quality,ve.switchInitData(_e.id);else{var t=De.shift();if(e.isInitializationRequest(t))ve.switchInitData(t.representationId);else{var n=Ce.execute(ve,t);n?(ye("ScheduleController "+he+"- getNextFragment - request is "+n.url),ge.executeRequest(n)):(ye("getNextFragment "+he+"- Playing at the bleeding live edge and frag is not available yet"),Oe=!1,h(500))}}};Oe=!0,e||Le?t():(ce.checkPlaybackQuality(he),t())}else h(500)}function d(){var e=1.5*_e.fragmentDuration,t=ge.getRequests({state:y["default"].FRAGMENT_MODEL_EXECUTED,time:le.getTime()+e,threshold:0})[0];if(t&&De.indexOf(t)===-1&&!ae.getIsTextTrack(he)){var n=se.getFastSwitchEnabled(),r=ve.getBufferLevel(),o=ce.getAbandonmentStateFor(he);n&&t.quality<_e.quality&&r>=e&&o!==c["default"].ABANDON_LOAD?(T(t),ye("Reloading outdated fragment at index: ",t.index)):t.quality>_e.quality&&G(le.getTime()+ve.getBufferLevel())}}function h(e){clearTimeout(Re),Re=setTimeout(l,e)}function m(e){e.sender&&e.sender.getStreamProcessor()===ve&&g(_e.quality)}function g(e){var t=oe.getInitRequest(ve,e);t&&(Oe=!0,ge.executeRequest(t))}function b(){Le=!0}function T(e){De.push(e)}function w(e){if(he===e.mediaType&&ve.getStreamInfo().id===e.streamInfo.id){if(_e=ve.getRepresentationInfoForQuality(e.newQuality),null===_e||void 0===_e)throw new Error("Unexpected error! - currentRepresentationInfo is null or undefined");Q(new Date,u.PlayListTrace.REPRESENTATION_SWITCH_STOP_REASON),J()}}function S(e){if(le&&ge){var t=ge.getRequests({state:y["default"].FRAGMENT_MODEL_EXECUTED,time:le.getTime(),threshold:0})[0];t&&le.getTime()>=t.startTime&&(t.quality===Ne.quality&&t.adaptationIndex===Ne.adaptationIndex||!e||ne.trigger(E["default"].QUALITY_CHANGE_RENDERED,{mediaType:he,oldQuality:Ne.quality,newQuality:t.quality}),Ne={quality:t.quality,adaptationIndex:t.adaptationIndex})}}function P(e){e.error||e.sender.getStreamProcessor()!==ve||(_e=oe.convertDataToRepresentationInfo(e.currentRepresentation))}function R(e){e.error||ve.getStreamInfo().id!==e.streamInfo.id||(_e=ve.getCurrentRepresentationInfo(),be&&(le.getIsDynamic()?(ue.setTimeSyncCompleted(!0),I()):(Ie=le.getStreamStartTime(!1),ve.getBufferController().setSeekStartTime(Ie))),Ee&&o())}function I(){var e=ve.getLiveEdgeFinder();if(e){var t=e.getLiveEdge(),n=_e.mediaInfo.streamInfo.manifestInfo.DVRWindowSize/2,r=t-le.computeLiveDelay(_e.fragmentDuration,n),o=oe.getFragmentRequestForTime(ve,_e,r,{ignoreIsFinished:!0});le.setLiveStartTime(o.startTime),Ie=le.getStreamStartTime(!1,t),Ie>_e.mediaInfo.streamInfo.start+_e.mediaInfo.streamInfo.duration&&le.seek(Ie);var i=ie.getCurrentManifestUpdate(re.getMetricsFor(a["default"].STREAM));re.updateManifestUpdateInfo(i,{currentTime:Ie,presentationStartTime:t,latency:t-Ie,clientTimeOffset:ue.getClientTimeOffset()})}}function A(e){e.fragmentModel===ge&&(i(),Oe=!1,ye("Stream is complete"))}function C(e){e.sender===ge&&(ae.getIsTextTrack(he)&&(Oe=!1),e.error&&e.request.serviceLocation&&!Ee&&(T(e.request),Oe=!1,h(0)))}function x(){S(!0)}function N(e){e.sender.getStreamProcessor()===ve&&(Oe=!1,h(0))}function M(e){e.streamProcessor===ve&&(ye("[ScheduleController]["+he+"] Request "+e.request.url+" has been aborted"),T(e.request),Oe=!1,h(0))}function k(e){e.sender.getStreamProcessor()===ve&&i()}function D(e){e.sender.getStreamProcessor()===ve&&(ge.removeExecutedRequestsBeforeTime(e.to),e.hasEnoughSpaceToAppend&&Ee&&o())}function L(e){e.sender.getStreamProcessor()!==ve||e.state!==f["default"].BUFFER_EMPTY||le.isSeeking()||(ye("Buffer is empty! Stalling!"),Q(new Date,u.PlayListTrace.REBUFFERING_REASON))}function j(e){e.sender.getStreamProcessor()===ve&&(i(),Oe=!1)}function F(){ge.abortRequests(),i()}function U(e){e.sender.getStreamProcessor()===ve&&g(e.index)}function B(){!Ee&&xe||o()}function H(e){Ie=e.seekTime,W(0),Ee&&o();var t=ie.getCurrentManifestUpdate(re.getMetricsFor(a["default"].STREAM)),n=_e.DVRWindow&&le?_e.DVRWindow.end-le.getTime():NaN;re.updateManifestUpdateInfo(t,{latency:n}),Oe||h(0)}function q(e){we&&(we.playbackspeed=e.playbackRate.toString())}function V(){return Ie}function G(e){Ie=e}function W(e){Pe=e}function K(){return Pe}function Y(){return Ae.getBufferTarget(ve,he,fe.isVideoTrackPresent())}function z(){return he}function X(e){Te=e}function $(e,t){Q(e,t),Te=null}function Q(e,t){if(Te&&Se===!1){var n=we.start,r=e.getTime()-n.getTime();we.duration=r,we.stopreason=t,Te.trace.push(we),Se=!0}}function J(){Te&&Se===!0&&_e&&(Se=!1,we=new u.PlayListTrace,we.representationid=_e.id,we.start=new Date,we.mstart=1e3*le.getTime(),we.playbackspeed=le.getPlaybackRate().toString())}function Z(){Oe=!1,Pe=0,Ie=NaN,Te=null,we=null,Se=!0,be=!0,ke=NaN,Ne={quality:NaN,adaptationIndex:NaN},Me={},De=[],Ee=!0,Le=!0}function ee(){ne.off(E["default"].DATA_UPDATE_STARTED,k,this),ne.off(E["default"].DATA_UPDATE_COMPLETED,P,this),ne.off(E["default"].BUFFER_LEVEL_STATE_CHANGED,L,this),ne.off(E["default"].QUALITY_CHANGE_REQUESTED,w,this),ne.off(E["default"].FRAGMENT_LOADING_COMPLETED,C,this),ne.off(E["default"].STREAM_COMPLETED,A,this),ne.off(E["default"].STREAM_INITIALIZED,R,this),ne.off(E["default"].QUOTA_EXCEEDED,j,this),ne.off(E["default"].BYTES_APPENDED,N,this),ne.off(E["default"].BUFFER_CLEARED,D,this),ne.off(E["default"].INIT_REQUESTED,m,this),ne.off(E["default"].PLAYBACK_RATE_CHANGED,q,this),ne.off(E["default"].PLAYBACK_SEEKING,H,this),ne.off(E["default"].PLAYBACK_STARTED,B,this),ne.off(E["default"].PLAYBACK_TIME_UPDATED,x,this),ne.off(E["default"].URL_RESOLUTION_FAILED,F,this),ne.off(E["default"].FRAGMENT_LOADING_ABANDONED,M,this),ae.getIsTextTrack(he)&&ne.off(E["default"].TIMED_TEXT_REQUESTED,U,this),i(),S(!1),Z()}e=e||{};var te=this.context,ne=(0,_["default"])(te).getInstance(),re=e.metricsModel,oe=e.adapter,ie=e.dashMetrics,ae=e.dashManifestModel,ue=e.timelineConverter,se=e.mediaPlayerModel,ce=e.abrController,le=e.playbackController,fe=e.streamController,de=e.textController,pe=e.sourceBufferController,he=e.type,ve=e.streamProcessor,me=void 0,ye=void 0,ge=void 0,_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;return me={initialize:n,getType:z,getSeekTarget:V,setSeekTarget:G,setTimeToLoadDelay:W,getTimeToLoadDelay:K,replaceRequest:T,switchTrackAsked:b,isStarted:r,start:o,stop:i,reset:ee,setPlayList:X,getBufferTarget:Y,finalisePlayList:$},t(),me}Object.defineProperty(t,"__esModule",{value:!0});var i=n(24),a=r(i),u=n(510),s=n(239),c=r(s),l=n(134),f=r(l),d=n(1001),p=r(d),h=n(1002),v=r(h),m=n(241),y=r(m),g=n(12),_=r(g),b=n(14),E=r(b),T=n(2),w=r(T),S=n(19),O=r(S);o.__dashjs_factory_name="ScheduleController",t["default"]=w["default"].getClassFactory(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(){he=(0,N["default"])(te).getInstance(),ve=(0,k["default"])(te).getInstance(),pe=(0,L["default"])(te).getInstance(),Ee=(0,P["default"])(te).getInstance(),Te=(0,I["default"])(te).getInstance(),$()}function t(e,t){W(),Ae=e,Ie=t,Se.initialize(),ae=(0,p["default"])(te).create(),ae.setConfig({manifestModel:se,dashManifestModel:ce,mediaPlayerModel:Le,manifestLoader:ue}),ae.initialize(),ve.setConfig({dashManifestModel:ce}),re.on(y["default"].TIME_SYNCHRONIZATION_COMPLETED,M,this),re.on(y["default"].PLAYBACK_SEEKING,r,this),re.on(y["default"].PLAYBACK_TIME_UPDATED,n,this),re.on(y["default"].PLAYBACK_ENDED,g,this),re.on(y["default"].PLAYBACK_ERROR,q,this),re.on(y["default"].PLAYBACK_STARTED,o,this),re.on(y["default"].PLAYBACK_PAUSED,a,this),re.on(y["default"].MANIFEST_UPDATED,D,this),re.on(y["default"].STREAM_BUFFERING_COMPLETED,s,this),re.on(C["default"].METRIC_ADDED,J,this)}function n(e){if(F()){var t=ke.getPlaybackQuality();t&&fe.addDroppedFrames(u["default"].VIDEO,t)}De.isSeeking()||e.timeToEnd<=Z&&(ne("[StreamController][onPlaybackTimeUpdated] timeToEnd = "+e.timeToEnd+" PLAYBACK_ENDED need to be triggered"),qe&&(clearTimeout(qe),qe=void 0),qe=setTimeout(function(){qe=void 0,re.trigger(y["default"].PLAYBACK_ENDED)},1e3*(e.timeToEnd+ee)))}function r(e){var t=l(e.seekTime);t&&t!==Pe?(B(T.PlayListTrace.END_OF_PERIOD_STOP_REASON),E(Pe,t,e.seekTime)):B(T.PlayListTrace.USER_REQUEST_STOP_REASON),H(T.PlayList.SEEK_START_REASON)}function o(){Fe?(Fe=!1,H(T.PlayList.INITIAL_PLAYOUT_START_REASON)):je&&(je=!1,H(T.PlayList.RESUME_FROM_PAUSE_START_REASON))}function a(e){e.ended||(je=!0,B(T.PlayListTrace.USER_REQUEST_STOP_REASON))}function s(){var e=V().isLast;Me&&e&&pe.signalEndOfStream(Me)}function l(e){var t=0,n=null,r=Oe.length;r>0&&(t+=Oe[0].getStartTime());for(var o=0;o<r;o++)if(n=Oe[o],t=parseFloat((t+n.getDuration()).toFixed(5)),e<t)return n;return null}function d(e,t){for(var n=null,r=0,o=0,i=null,a=Oe.length,u=0;u<a;u++){if(n=Oe[u],o=n.getStartTime(),i=n.getDuration(),Number.isFinite(o)&&(r=o),n.getId()===t)return e-r;Number.isFinite(i)&&(r+=i)}return null}function h(){return Pe?Pe.getProcessors():[]}function m(){var e=[];return Pe&&Pe.getProcessors().forEach(function(t){e.push(t.getIndexHandler().getEarliestTime())}),Math.min.apply(Math,e)}function g(){qe&&(clearTimeout(qe),qe=void 0);var e=b();e&&E(Pe,e,NaN),B(e?T.PlayListTrace.END_OF_PERIOD_STOP_REASON:T.PlayListTrace.END_OF_CONTENT_STOP_REASON)}function b(){if(Pe){var e=function(){var e=Pe.getStreamInfo().start,t=Pe.getStreamInfo().duration;return{v:Oe.filter(function(n){return n.getStreamInfo().start===parseFloat((e+t).toFixed(5))})[0]}}();if("object"===("undefined"==typeof e?"undefined":i(e)))return e.v}}function E(e,t,n){!Ce&&t&&e!==t&&(Ce=!0,re.trigger(y["default"].PERIOD_SWITCH_STARTED,{fromStreamInfo:e?e.getStreamInfo():null,toStreamInfo:t.getStreamInfo()}),e&&(e.stopEventController(),e.deactivate()),Pe=t,De.initialize(Pe.getStreamInfo()),w(n,e))}function w(e,t){function n(){ne("MediaSource is open!"),window.URL.revokeObjectURL(r),Me.removeEventListener("sourceopen",n),Me.removeEventListener("webkitsourceopen",n),R(),O(e),t||re.trigger(y["default"].SOURCE_INITIALIZED)}var r=void 0;Me?pe.detachMediaSource(ke):Me=pe.createMediaSource(),Me.addEventListener("sourceopen",n,!1),Me.addEventListener("webkitsourceopen",n,!1),r=pe.attachMediaSource(Me,ke),ne("MediaSource attached to element. Waiting on open...")}function O(e){Pe.activate(Me),Fe?Be=U(u["default"].VIDEO):isNaN(e)?!function(){var e=De.getStreamStartTime(!0);Pe.getProcessors().forEach(function(t){le.setIndexHandlerTime(t,e)}),De.seek(e)}():De.seek(e),Pe.startEventController(),!Ae&&Fe||De.play(),Ce=!1,re.trigger(y["default"].PERIOD_SWITCH_COMPLETED,{toStreamInfo:Pe.getStreamInfo()})}function R(){var e=Pe.getStreamInfo().manifestInfo.duration,t=pe.setDuration(Me,e);ne("Duration successfully set to: "+t)}function A(e){for(var t=0,n=Oe.length;t<n;t++)if(Oe[t].getId()===e.id)return Oe[t];return null}function x(){try{var e=le.getStreamsInfo();if(0===e.length)throw new Error("There are no streams");var t=de.getCurrentManifestUpdate(fe.getMetricsFor(u["default"].STREAM));fe.updateManifestUpdateInfo(t,{currentTime:De.getTime(),buffered:ke.getBufferRange(),presentationStartTime:e[0].start,clientTimeOffset:Se.getClientTimeOffset()});for(var n=0,r=e.length;n<r;n++){var o=e[n],i=A(o);i?i.updateData(o):(i=(0,f["default"])(te).create({manifestModel:se,dashManifestModel:ce,mediaPlayerModel:Le,metricsModel:fe,dashMetrics:de,manifestUpdater:ae,adapter:le,timelineConverter:Se,capabilities:ie,errHandler:we,baseURLController:ve,domStorage:me,abrController:ye,playbackController:De,mediaController:ge,textController:_e,sourceBufferController:be,videoModel:ke,streamController:oe}),Oe.push(i),i.initialize(o,Re)),fe.addManifestUpdateStreamInfo(t,o.id,o.index,o.start,o.duration)}Pe||E(null,Oe[0],NaN),re.trigger(y["default"].STREAMS_COMPOSED)}catch(a){we.manifestError(a.message,"nostreamscomposed",se.getValue()),Ne=!0,Q()}}function M(){var e=se.getValue();Re&&(re.trigger(y["default"].PROTECTION_CREATED,{controller:Re,manifest:e}),Re.setMediaElement(ke.getElement()),Ie&&Re.setProtectionData(Ie)),x()}function D(e){e.error?(Ne=!0,Q()):!function(){var t=e.manifest;le.updatePeriods(t);var n=le.getStreamsInfo(t)[0],r=le.getMediaInfoForType(n,u["default"].VIDEO)||le.getMediaInfoForType(n,u["default"].AUDIO),o=void 0,i=void 0;r&&(o=le.getDataForMedia(r),i=ce.getRepresentationsForAdaptation(o)[0].useCalculatedLiveEdgeTime,i&&(ne("SegmentTimeline detected using calculated Live Edge Time"),Le.setUseManifestDateHeaderTimeSource(!1)));var a=ce.getUTCTimingSources(e.manifest),s=!ce.getIsDynamic(t)||i?a:a.concat(Le.getUTCTimingSources()),c=Te.isHTTPS(e.manifest.url);s.forEach(function(e){e.value.replace(/.*?:\/\//g,"")===_["default"].DEFAULT_UTC_TIMING_SOURCE.value.replace(/.*?:\/\//g,"")&&(e.value=e.value.replace(c?new RegExp(/^(http:)?\/\//i):new RegExp(/^(https:)?\/\//i),c?"https://":"http://"),ne("Matching default timing source protocol to manifest protocol: ",e.value))}),ve.initialize(t),he.setConfig({metricsModel:fe,dashMetrics:de}),he.initialize(s,Le.getUseManifestDateHeaderTimeSource())}()}function j(){return void 0===He&&(He=U(u["default"].AUDIO)),He}function F(){return void 0===Be&&(Be=U(u["default"].VIDEO)),Be}function U(e){var t=!1;return Pe&&Pe.getProcessors().forEach(function(n){n.getMediaInfo().type===e&&(t=!0)}),t}function B(e,t){t=t||new Date,Ue&&(Pe&&Pe.getProcessors().forEach(function(n){var r=n.getScheduleController();r&&r.finalisePlayList(t,e)}),fe.addPlayList(Ue),Ue=null)}function H(e){Ue=new T.PlayList,Ue.start=new Date,Ue.mstart=1e3*De.getTime(),Ue.starttype=e,Pe&&Pe.getProcessors().forEach(function(e){var t=e.getScheduleController();t&&t.setPlayList(Ue)})}function q(e){if(e.error){var t="";switch(e.error.code){case 1:t="MEDIA_ERR_ABORTED";break;case 2:t="MEDIA_ERR_NETWORK";break;case 3:t="MEDIA_ERR_DECODE";break;case 4:t="MEDIA_ERR_SRC_NOT_SUPPORTED";break;case 5:t="MEDIA_ERR_ENCRYPTED";break;default:t="UNKNOWN"}xe=!0,e.error.message&&(t+=" ("+e.error.message+")"),e.error.msExtendedCode&&(t+=" (0x"+(e.error.msExtendedCode>>>0).toString(16).toUpperCase()+")"),ne("Video Element Error: "+t),e.error&&ne(e.error),we.mediaSourceError(t),Q()}}function V(){return Pe?Pe.getStreamInfo():null}function G(e){return Oe.filter(function(t){return t.getId()===e})[0]}function W(){if(!(ue&&ue.hasOwnProperty("load")&&Se&&Se.hasOwnProperty("initialize")&&Se.hasOwnProperty("reset")&&Se.hasOwnProperty("getClientTimeOffset")))throw new Error("setConfig function has to be called previously")}function K(){if(!ae||!ae.hasOwnProperty("setManifest"))throw new Error("initialize function has to be called previously")}function Y(e){W(),ue.load(e)}function z(e){K(),ae.setManifest(e)}function X(e){e&&(e.capabilities&&(ie=e.capabilities),e.manifestLoader&&(ue=e.manifestLoader),e.manifestModel&&(se=e.manifestModel),e.dashManifestModel&&(ce=e.dashManifestModel),e.mediaPlayerModel&&(Le=e.mediaPlayerModel),e.protectionController&&(Re=e.protectionController),e.adapter&&(le=e.adapter),e.metricsModel&&(fe=e.metricsModel),e.dashMetrics&&(de=e.dashMetrics),e.errHandler&&(we=e.errHandler),e.timelineConverter&&(Se=e.timelineConverter),e.videoModel&&(ke=e.videoModel),e.playbackController&&(De=e.playbackController),e.domStorage&&(me=e.domStorage),e.abrController&&(ye=e.abrController),e.mediaController&&(ge=e.mediaController),e.textController&&(_e=e.textController),e.sourceBufferController&&(be=e.sourceBufferController))}function $(){Oe=[],Re=null,Ce=!1,Pe=null,xe=!1,Ne=!1,Be=void 0,Fe=!0,je=!1,Ae=!0,Ue=null}function Q(){W(),he.reset(),B(xe||Ne?T.PlayListTrace.FAILURE_STOP_REASON:T.PlayListTrace.USER_REQUEST_STOP_REASON);for(var e=0,t=Oe?Oe.length:0;e<t;e++){var i=Oe[e];i.reset(xe)}re.off(y["default"].PLAYBACK_TIME_UPDATED,n,this),re.off(y["default"].PLAYBACK_SEEKING,r,this),re.off(y["default"].PLAYBACK_ERROR,q,this),re.off(y["default"].PLAYBACK_STARTED,o,this),re.off(y["default"].PLAYBACK_PAUSED,a,this),re.off(y["default"].PLAYBACK_ENDED,g,this),re.off(y["default"].MANIFEST_UPDATED,D,this),re.off(y["default"].STREAM_BUFFERING_COMPLETED,s,this),re.off(C["default"].METRIC_ADDED,J,this),ve.reset(),ae.reset(),fe.clearAllCurrentMetrics(),se.setValue(null),ue.reset(),Se.reset(),Ee.reset(),Me&&(pe.detachMediaSource(ke),Me=null),ke=null,Re&&(Re.setMediaElement(null),Re=null,Ie=null,se.getValue()&&re.trigger(y["default"].PROTECTION_DESTROYED,{data:se.getValue().url})),qe&&(clearTimeout(qe),qe=void 0),re.trigger(y["default"].STREAM_TEARDOWN_COMPLETE),$()}function J(e){e.metric===c["default"].DVR_INFO&&e.mediaType===u["default"].AUDIO&&pe.setSeekable(Me,e.value.range.start,e.value.range.end)}var Z=.5,ee=.1,te=this.context,ne=(0,S["default"])(te).getInstance().log,re=(0,v["default"])(te).getInstance(),oe=void 0,ie=void 0,ae=void 0,ue=void 0,se=void 0,ce=void 0,le=void 0,fe=void 0,de=void 0,pe=void 0,he=void 0,ve=void 0,me=void 0,ye=void 0,ge=void 0,_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;return oe={initialize:t,getActiveStreamInfo:V,isVideoTrackPresent:F,isAudioTrackPresent:j,getStreamById:G,getTimeRelativeToStreamId:d,load:Y,loadWithManifest:z,getActiveStreamProcessors:h,getActiveStreamCommonEarliestTime:m,setConfig:X,reset:Q},e(),oe}var 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};Object.defineProperty(t,"__esModule",{value:!0});var a=n(24),u=r(a),s=n(156),c=r(s),l=n(939),f=r(l),d=n(937),p=r(d),h=n(12),v=r(h),m=n(14),y=r(m),g=n(504),_=r(g),b=n(2),E=r(b),T=n(510),w=n(19),S=r(w),O=n(340),P=r(O),R=n(158),I=r(R),A=n(330),C=r(A),x=n(950),N=r(x),M=n(942),k=r(M),D=n(946),L=r(D);o.__dashjs_factory_name="StreamController",t["default"]=E["default"].getSingletonFactory(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(e,t){D=t,N=0,M=!1,k=!1,L={"urn:mpeg:dash:utc:http-head:2014":w,"urn:mpeg:dash:utc:http-xsdate:2014":T.bind(null,h),"urn:mpeg:dash:utc:http-iso:2014":T.bind(null,v),"urn:mpeg:dash:utc:direct:2014":E,"urn:mpeg:dash:utc:http-head:2012":w,"urn:mpeg:dash:utc:http-xsdate:2012":T.bind(null,h),"urn:mpeg:dash:utc:http-iso:2012":T.bind(null,v),"urn:mpeg:dash:utc:direct:2012":E,"urn:mpeg:dash:utc:http-ntp:2014":b,"urn:mpeg:dash:utc:ntp:2014":b,"urn:mpeg:dash:utc:sntp:2014":b},o()||(P(e),i(!0))}function t(e){e&&(e.metricsModel&&(j=e.metricsModel),e.dashMetrics&&(F=e.dashMetrics))}function n(){return l()}function r(e){M=e}function o(){return M}function i(e){k=e}function u(e){N=e}function l(){return N}function d(e){var t=60,n=60,r=1e3,o=/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2})(?::([0-9]*)(\.[0-9]*)?)?(?:([+\-])([0-9]{2})([0-9]{2}))?/,i=void 0,a=void 0,u=o.exec(e);return i=Date.UTC(parseInt(u[1],10),parseInt(u[2],10)-1,parseInt(u[3],10),parseInt(u[4],10),parseInt(u[5],10),u[6]&&(parseInt(u[6],10)||0),u[7]&&parseFloat(u[7])*r||0),u[9]&&u[10]&&(a=parseInt(u[9],10)*n+parseInt(u[10],10),i+=("+"===u[8]?-1:1)*a*t*r),new Date(i).getTime()}function h(e){var t=Date.parse(e);return isNaN(t)&&(t=d(e)),t}function v(e){return Date.parse(e)}function m(e){return Date.parse(e)}function b(e,t,n){n()}function E(e,t,n){var r=h(e);return isNaN(r)?void n():void t(r)}function T(e,t,n,r,o){var i=void 0,a=void 0,u=!1,s=new XMLHttpRequest,l=o?c.HTTPRequest.HEAD:c.HTTPRequest.GET,f=t.match(/\S+/g);t=f.shift(),i=function(){u||(u=!0,f.length?T(e,f.join(" "),n,r,o):r())},a=function(){var t=void 0,r=void 0;200===s.status&&(t=o?s.getResponseHeader("Date"):s.response,r=e(t),isNaN(r)||(n(r),u=!0))},s.open(l,t),s.timeout=_||0,s.onload=a,s.onloadend=i,s.send()}function w(e,t,n){T(m,e,t,n,!0)}function S(){var e=j.getReadOnlyMetricsFor(a["default"].STREAM),t=F.getLatestMPDRequestHeaderValueByID(e,"Date"),n=null!==t?new Date(t).getTime():Number.NaN;isNaN(n)?O(!0):(u(n-(new Date).getTime()),O(!1,n/1e3,N))}function O(e,t,n){r(!1),C.trigger(p["default"].TIME_SYNCHRONIZATION_COMPLETED,{time:t,offset:n,error:e?new s["default"](g):null})}function P(e,t){
var n=t||0,o=e[n],i=function(e,t){var n=!e||!t;n&&D?S():O(n,e,t)};r(!0),o?L.hasOwnProperty(o.schemeIdUri)?L[o.schemeIdUri](o.value,function(e){var t=(new Date).getTime(),n=e-t;u(n),A("Local time: "+new Date(t)),A("Server time: "+new Date(e)),A("Difference (ms): "+n),i(e,n)},function(){P(e,n+1)}):P(e,n+1):(u(0),i())}function R(){i(!1),r(!1)}var I=this.context,A=(0,y["default"])(I).getInstance().log,C=(0,f["default"])(I).getInstance(),x=void 0,N=void 0,M=void 0,k=void 0,D=void 0,L=void 0,j=void 0,F=void 0;return x={initialize:e,getOffsetToDeviceTimeMs:n,setConfig:t,reset:R}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(24),a=r(i),u=n(108),s=r(u),c=n(45),l=n(12),f=r(l),d=n(14),p=r(d),h=n(2),v=r(h),m=n(19),y=r(m),g=1,_=5e3;o.__dashjs_factory_name="TimeSyncController";var b=v["default"].getSingletonFactory(o);b.TIME_SYNC_FAILED_ERROR_CODE=g,b.HTTP_TIMEOUT_MS=_,v["default"].updateSingletonFactory(o.__dashjs_factory_name,b),t["default"]=b,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(){P.on(l["default"].XLINK_ELEMENT_LOADED,c,I),M=(0,a["default"])(O).create({errHandler:e.errHandler,metricsModel:e.metricsModel,mediaPlayerModel:e.mediaPlayerModel,requestModifier:e.requestModifier})}function n(e){e&&(A=e)}function r(e){e&&(C=e)}function o(e){var t=void 0;N=new h["default"]({escapeMode:!1,attributePrefix:"",arrayAccessForm:"property",emptyNodeForm:"object",stripWhitespaces:!1,enableToStringFunc:!1,ignoreRoot:!0,matchers:A}),x=e,t=d(x.Period_asArray,x,_,y),u(t,_,y)}function i(){P.off(l["default"].XLINK_ELEMENT_LOADED,c,I),M&&(M.reset(),M=null)}function u(e,t,n){var r={},o=void 0,i=void 0;r.elements=e,r.type=t,r.resolveType=n,0===r.elements.length&&f(r);for(var a=0;a<r.elements.length;a++)o=r.elements[a],i=R.isHTTPURL(o.url)?o.url:o.originalContent.BaseURL+o.url,M.load(i,o,r)}function c(e){var t=void 0,n=void 0,r="<response>",o="</response>",i="";if(t=e.element,n=e.resolveObject,t.resolvedContent){var a=0;0===t.resolvedContent.indexOf("<?xml")&&(a=t.resolvedContent.indexOf("?>")+2),i=t.resolvedContent.substr(0,a)+r+t.resolvedContent.substr(a)+o,t.resolvedContent=N.xml_str2json(i)}w(n)&&f(n)}function f(e){var t=[],n=void 0,r=void 0;if(p(e),e.resolveType===g&&P.trigger(l["default"].XLINK_READY,{manifest:x}),e.resolveType===y)switch(e.type){case _:for(n=0;n<x[_+"_asArray"].length;n++)r=x[_+"_asArray"][n],r.hasOwnProperty(b+"_asArray")&&(t=t.concat(d(r[b+"_asArray"],r,b,y))),r.hasOwnProperty(E+"_asArray")&&(t=t.concat(d(r[E+"_asArray"],r,E,y)));u(t,b,y);break;case b:P.trigger(l["default"].XLINK_READY,{manifest:x})}}function d(e,t,n,r){var o=[],i=void 0,a=void 0,u=void 0;for(a=e.length-1;a>=0;a--)i=e[a],i.hasOwnProperty("xlink:href")&&i["xlink:href"]===T&&e.splice(a,1);for(a=0;a<e.length;a++)i=e[a],i.hasOwnProperty("xlink:href")&&i.hasOwnProperty("xlink:actuate")&&i["xlink:actuate"]===r&&(u=v(i["xlink:href"],t,n,a,r,i),o.push(u));return o}function p(e){var t=[],n=void 0,r=void 0,o=void 0,i=void 0,a=void 0,u=void 0;for(i=e.elements.length-1;i>=0;i--){if(n=e.elements[i],r=n.type+"_asArray",!n.resolvedContent||S())delete n.originalContent["xlink:actuate"],delete n.originalContent["xlink:href"],t.push(n.originalContent);else if(n.resolvedContent)for(a=0;a<n.resolvedContent[r].length;a++)o=n.resolvedContent[r][a],t.push(o);for(n.parentElement[r].splice(n.index,1),u=0;u<t.length;u++)n.parentElement[r].splice(n.index+u,0,t[u]);t=[]}e.elements.length>0&&C.run(x)}function v(e,t,n,r,o,i){return{url:e,parentElement:t,type:n,index:r,resolveType:o,originalContent:i,resolvedContent:null,resolved:!1}}function w(e){var t=void 0,n=void 0;for(t=0;t<e.elements.length;t++)if(n=e.elements[t],n.resolved===!1)return!1;return!0}function S(){return!1}e=e||{};var O=this.context,P=(0,s["default"])(O).getInstance(),R=(0,m["default"])(O).getInstance(),I=void 0,A=void 0,C=void 0,x=void 0,N=void 0,M=void 0;return I={resolveManifestOnLoad:o,setMatchers:n,setIron:r,reset:i},t(),I}Object.defineProperty(t,"__esModule",{value:!0});var i=n(941),a=r(i),u=n(12),s=r(u),c=n(14),l=r(c),f=n(2),d=r(f),p=n(492),h=r(p),v=n(158),m=r(v),y="onLoad",g="onActuate",_="Period",b="AdaptationSet",E="EventStream",T="urn:mpeg:dash:resolve-to-zero:2013";o.__dashjs_factory_name="XlinkController",t["default"]=d["default"].getClassFactory(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(e){return i=(0,a["default"])(r).getInstance({eventBus:e.eventBus,metricsModel:e.metricsModel,metricsConstants:e.metricsConstants,events:e.events}),(0,l["default"])(r).create(e)}function t(){return(0,h["default"])(r).getInstance()}function n(){return(0,d["default"])(r).getInstance()}var r=this.context,o=void 0,i=void 0;return o={createMetricsReporting:e,getReportingFactory:t,getMetricsHandlerFactory:n}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(963),a=r(i),u=n(240),s=r(u),c=n(953),l=r(c),f=n(501),d=r(f),p=n(502),h=r(p);o.__dashjs_factory_name="MetricsReporting";var v=dashjs.FactoryMaker.getClassFactory(o);v.events=s["default"],dashjs.FactoryMaker.updateClassFactory(o.__dashjs_factory_name,v),t["default"]=v,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(t){if(!t.error){var n=Object.keys(i),r=(0,s["default"])(u).getInstance({dashManifestModel:e.dashManifestModel,constants:e.constants}).getMetrics(t.manifest);r.forEach(function(t){var r=JSON.stringify(t);if(i.hasOwnProperty(r))n.splice(r,1);else try{var o=(0,a["default"])(u).create(e);o.initialize(t),i[r]=o}catch(s){}}),n.forEach(function(e){i[e].reset(),delete i[e]}),c.trigger(l["default"].METRICS_INITIALISATION_COMPLETE)}}function n(){Object.keys(i).forEach(function(e){i[e].reset()}),i={}}function r(){c.on(f.MANIFEST_UPDATED,t),c.on(f.STREAM_TEARDOWN_COMPLETE,n)}function o(){c.off(f.MANIFEST_UPDATED,t),c.off(f.STREAM_TEARDOWN_COMPLETE,n)}e=e||{};var i={},u=this.context,c=e.eventBus,f=e.events;return r(),{reset:o}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(954),a=r(i),u=n(964),s=r(u),c=n(240),l=r(c);o.__dashjs_factory_name="MetricsCollectionController",t["default"]=dashjs.FactoryMaker.getClassFactory(o),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(t){try{i=(0,a["default"])(c).create({mediaElement:e.mediaElement}),i.initialize(t.Range),o=(0,s["default"])(c).create({log:e.log,metricsConstants:e.metricsConstants}),o.initialize(t.Reporting,i),r=(0,l["default"])(c).create({log:e.log,eventBus:e.eventBus,metricsConstants:e.metricsConstants,events:e.events}),r.initialize(t.metrics,o)}catch(u){throw n(),u}}function n(){r&&r.reset(),o&&o.reset(),i&&i.reset()}e=e||{};var r=void 0,o=void 0,i=void 0,u=void 0,c=this.context;return u={initialize:t,reset:n}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(956),a=r(i),u=n(957),s=r(u),c=n(955),l=r(c);o.__dashjs_factory_name="MetricsController",t["default"]=dashjs.FactoryMaker.getClassFactory(o),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(e){o.forEach(function(t){t.handleNewMetric(e.metric,e.value,e.mediaType)})}function n(e,n){e.split(",").forEach(function(e,t,r){var i=void 0;if(e.indexOf("(")!==-1&&e.indexOf(")")===-1){var a=r[t+1];a&&a.indexOf("(")===-1&&a.indexOf(")")!==-1&&(e+=","+a,delete r[t+1])}i=l.create(e,n),i&&o.push(i)}),s.on(c.METRIC_ADDED,t,i),s.on(c.METRIC_UPDATED,t,i)}function r(){s.off(c.METRIC_ADDED,t,i),s.off(c.METRIC_UPDATED,t,i),o.forEach(function(e){return e.reset()}),o=[]}e=e||{};var o=[],i=void 0,u=this.context,s=e.eventBus,c=e.events,l=(0,a["default"])(u).getInstance({log:e.log,eventBus:e.eventBus,metricsConstants:e.metricsConstants});return i={initialize:n,reset:r}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(501),a=r(i);o.__dashjs_factory_name="MetricsHandlersController",t["default"]=dashjs.FactoryMaker.getClassFactory(o),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(e){e&&e.length&&(e.forEach(function(e){var t=e.starttime,n=t+e.duration;c.add(t,n)}),i=!!e[0]._useWallClockTime)}function n(){c.clear()}function r(){c=(0,a["default"])(u).create()}function o(){var e=c.length,t=void 0;if(!e)return!0;t=i?(new Date).getTime()/1e3:l.currentTime;for(var n=0;n<e;n+=1){var r=c.start(n),o=c.end(n);if(r<=t&&t<o)return!0}return!1}e=e||{};var i=!1,u=this.context,s=void 0,c=void 0,l=e.mediaElement;return s={initialize:t,reset:n,isEnabled:o},r(),s}Object.defineProperty(t,"__esModule",{value:!0});var i=n(506),a=r(i);o.__dashjs_factory_name="RangeController",t["default"]=dashjs.FactoryMaker.getClassFactory(o),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(e,t){e.some(function(e){var n=u.create(e,t);if(n)return o.push(n),!0})}function n(){o.forEach(function(e){return e.reset()}),o=[]}function r(e,t){o.forEach(function(n){return n.report(e,t)})}var o=[],i=void 0,u=(0,a["default"])(this.context).getInstance(e);return i={initialize:t,reset:n,report:r}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(502),a=r(i);o.__dashjs_factory_name="ReportingController",t["default"]=dashjs.FactoryMaker.getClassFactory(o),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(){try{return Object.keys(v).map(function(e){return v[e]}).reduce(function(e,t){return e.level<t.level?e:t})}catch(e){return}}function n(){var e=t();e&&d!==e.t&&(d=e.t,s.report(l,e))}function r(e,t,r){t&&(c=h.validateN(r),s=t,l=h.reconstructFullMetricName(e,r),f=setInterval(n,c))}function o(){clearInterval(f),f=null,c=0,s=null,d=null}function i(e,t,n){e===m.BUFFER_LEVEL&&(v[n]=t)}e=e||{};var u=void 0,s=void 0,c=void 0,l=void 0,f=void 0,d=void 0,p=this.context,h=(0,a["default"])(p).getInstance(),v=[],m=e.metricsConstants;return u={initialize:r,reset:o,handleNewMetric:i}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(503),a=r(i);o.__dashjs_factory_name="BufferLevelHandler",t["default"]=dashjs.FactoryMaker.getClassFactory(o),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.off(a["default"].METRICS_INITIALISATION_COMPLETE,t,this),s.trigger(a["default"].BECAME_REPORTING_PLAYER)}function n(e,n){n&&(u=n,s.on(a["default"].METRICS_INITIALISATION_COMPLETE,t,this))}function r(){u=null}function o(e,t){e===c.DVB_ERRORS&&u&&u.report(e,t)}e=e||{};var i=void 0,u=void 0,s=e.eventBus,c=e.metricsConstants;return i={initialize:n,reset:r,handleNewMetric:o}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(240),a=r(i);t["default"]=dashjs.FactoryMaker.getClassFactory(o),e.exports=t["default"]},function(e,t){"use strict";function n(){function e(e,t){o=e,i=t}function t(){i=null,o=void 0}function n(e,t){e===o&&i&&i.report(o,t)}var r=void 0,o=void 0,i=void 0;return r={initialize:e,reset:t,handleNewMetric:n}}Object.defineProperty(t,"__esModule",{value:!0}),n.__dashjs_factory_name="GenericMetricHandler",t["default"]=dashjs.FactoryMaker.getClassFactory(n),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(){var e=d;e.length&&u&&u.report(l,e),d=[]}function n(e,n,r,o){n&&(s=p.validateN(r),u=n,o&&o.length&&(c=o),l=p.reconstructFullMetricName(e,r,o),f=setInterval(t,s))}function r(){clearInterval(f),f=null,s=null,c=null,d=[],u=null}function o(e,t){e===h.HTTP_REQUEST&&(c&&c!==t.type||d.push(t))}e=e||{};var i=void 0,u=void 0,s=void 0,c=void 0,l=void 0,f=void 0,d=[],p=(0,a["default"])(this.context).getInstance(),h=e.metricsConstants;return i={initialize:n,reset:r,handleNewMetric:o}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(503),a=r(i);o.__dashjs_factory_name="HttpListHandler",t["default"]=dashjs.FactoryMaker.getClassFactory(o),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(e,t,n){var r=new XMLHttpRequest,o=function(){var e=y.indexOf(r);e!==-1&&(y.splice(e,1),r.status>=200&&r.status<300?t&&t():n&&n())};y.push(r);try{r.open("GET",e),r.onloadend=o,r.onerror=o,r.send()}catch(i){r.onerror()}}function n(e,n){Array.isArray(n)||(n=[n]),d&&v.isEnabled()&&n.forEach(function(n){var r=c.serialise(n);f&&e!==g.DVB_ERRORS&&(r="metricname="+e+"&"+r),r=h+"?"+r,t(r,null,function(){d=!1})})}function r(e,t){var n=void 0;if(v=t,h=e["dvb:reportingUrl"],!h)throw new Error("required parameter missing (dvb:reportingUrl)");p||(n=e["dvb:probability"]||e["dvb:priority"]||0,n&&(1e3===n||n/1e3>=l.random())&&(d=!0),p=!0)}function o(){m||(y.forEach(function(e){return e.abort()}),y=[]),p=!1,d=!1,h=null,v=null}e=e||{};var i=void 0,u=this.context,c=(0,a["default"])(u).getInstance(),l=(0,s["default"])(u).getInstance(),f=!0,d=!1,p=!1,h=null,v=null,m=!0,y=[],g=e.metricsConstants;return i={report:n,initialize:r,reset:o}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(965),a=r(i),u=n(966),s=r(u);o.__dashjs_factory_name="DVBReporting",t["default"]=dashjs.FactoryMaker.getClassFactory(o),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(e){var t=new a["default"];if(v){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.mpdurl||(t.mpdurl=v.originalUrl||v.url),t.terror||(t.terror=new Date),h.addDVBErrors(t)}}function n(e){e.error||(v=e.manifest)}function r(e){t({errorcode:a["default"].BASE_URL_CHANGED,servicelocation:e.entry})}function o(){t({errorcode:a["default"].BECAME_REPORTER})}function i(e){(0===e.responsecode||e.responsecode>=400||e.responsecode<100||e.responsecode>=600)&&t({errorcode:e.responsecode||a["default"].CONNECTION_ERROR,url:e.url,terror:e.tresponse,servicelocation:e._serviceLocation})}function u(e){switch(e.metric){case m.HTTP_REQUEST:i(e.value)}}function c(e){var n=e.error?e.error.code:0,r=void 0;switch(n){case MediaError.MEDIA_ERR_NETWORK:r=a["default"].CONNECTION_ERROR;break;case MediaError.MEDIA_ERR_DECODE:r=a["default"].CORRUPT_MEDIA_OTHER;break;default:return}t({errorcode:r})}function l(){p.on(y.MANIFEST_UPDATED,n,d),p.on(y.SERVICE_LOCATION_BLACKLIST_CHANGED,r,d),p.on(y.METRIC_ADDED,u,d),p.on(y.METRIC_UPDATED,u,d),p.on(y.PLAYBACK_ERROR,c,d),p.on(s["default"].BECAME_REPORTING_PLAYER,o,d)}function f(){p.off(y.MANIFEST_UPDATED,n,d),p.off(y.SERVICE_LOCATION_BLACKLIST_CHANGED,r,d),p.off(y.METRIC_ADDED,u,d),p.off(y.METRIC_UPDATED,u,d),p.off(y.PLAYBACK_ERROR,c,d),p.off(s["default"].BECAME_REPORTING_PLAYER,o,d)}e=e||{};var d=void 0,p=e.eventBus,h=e.metricsModel,v=void 0,m=e.metricsConstants,y=e.events;return d={initialise:l,reset:f},l(),d}Object.defineProperty(t,"__esModule",{value:!0});var i=n(967),a=r(i),u=n(240),s=r(u);o.__dashjs_factory_name="DVBErrorsTranslator",t["default"]=dashjs.FactoryMaker.getSingletonFactory(o),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(e,t,n){var r,a,u=o.getMpd(e),s=0;return t?s=u.availabilityStartTime.getTime()/1e3:(r=this.getRegularPeriods(u),r.length&&(s=r[0].start)),a=s,n&&n.hasOwnProperty(i.START_TIME)&&(a+=n.starttime),a}function n(e){var n=[];return e.Metrics_asArray&&e.Metrics_asArray.forEach(function(r){var u=new a["default"],c=o.getIsDynamic(e);r.hasOwnProperty("metrics")&&(u.metrics=r.metrics,r.Range_asArray&&r.Range_asArray.forEach(function(n){var r=new s["default"];r.starttime=t(e,c,n),n.hasOwnProperty("duration")?r.duration=n.duration:r.duration=o.getDuration(e),r._useWallClockTime=c,u.Range.push(r)}),r.Reporting_asArray&&(r.Reporting_asArray.forEach(function(e){var t=new l["default"];if(e.hasOwnProperty(i.SCHEME_ID_URI)){t.schemeIdUri=e.schemeIdUri;for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);u.Reporting.push(t)}}),n.push(u)))}),n}e=e||{};var r=void 0,o=e.dashManifestModel,i=e.constants;return r={getMetrics:n}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(968),a=r(i),u=n(969),s=r(u),c=n(970),l=r(c);o.__dashjs_factory_name="ManifestParsing",t["default"]=dashjs.FactoryMaker.getSingletonFactory(o),e.exports=t["default"]},function(e,t){"use strict";function n(){function e(t){var n=[],r=[],o=void 0,i=void 0;for(o in t)if(t.hasOwnProperty(o)&&0!==o.indexOf("_")){if(i=t[o],void 0!==i&&null!==i||(i=""),Array.isArray(i)){if(!i.length)continue;r=[],i.forEach(function(t){var n="Object"!==Object.prototype.toString.call(t).slice(8,-1);r.push(n?t:e(t))}),i=r.map(encodeURIComponent).join(",")}else"string"==typeof i?i=encodeURIComponent(i):i instanceof Date?i=i.toISOString():"number"==typeof i&&(i=Math.round(i));n.push(o+"="+i)}return n.join("&")}return{serialise:e}}Object.defineProperty(t,"__esModule",{value:!0}),n.__dashjs_factory_name="MetricSerialiser",t["default"]=dashjs.FactoryMaker.getSingletonFactory(n),e.exports=t["default"]},function(e,t){"use strict";function n(){function e(){n&&(a||(a=new r(i)),n.getRandomValues(a),u=0)}function t(t,r){var i=void 0;return t||(t=0),r||(r=1),n?(u===a.length&&e(),i=a[u]/o,u+=1):i=Math.random(),i*(r-t)+t}var n=window.crypto||window.msCrypto,r=Uint32Array,o=Math.pow(2,8*r.BYTES_PER_ELEMENT)-1,i=10,a=void 0,u=void 0,s=void 0;return s={random:t},e(),s}Object.defineProperty(t,"__esModule",{value:!0}),n.__dashjs_factory_name="RNG",t["default"]=dashjs.FactoryMaker.getSingletonFactory(n),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.mpdurl=null,this.errorcode=null,this.terror=null,this.url=null,this.ipaddress=null,this.servicelocation=null};r.SSL_CONNECTION_FAILED_PREFIX="SSL",r.DNS_RESOLUTION_FAILED="C00",r.HOST_UNREACHABLE="C01",r.CONNECTION_REFUSED="C02",r.CONNECTION_ERROR="C03",r.CORRUPT_MEDIA_ISOBMFF="M00",r.CORRUPT_MEDIA_OTHER="M01",r.BASE_URL_CHANGED="F00",r.BECAME_REPORTER="S00",t["default"]=r,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.metrics="",this.Range=[],this.Reporting=[]};t["default"]=r,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.starttime=0,this.duration=1/0,this._useWallClockTime=!1};t["default"]=r,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.schemeIdUri="",this.value=""};t["default"]=r,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(){function e(){s()}function t(e){e.dashManifestModel&&(h=e.dashManifestModel)}function n(e,t,n){var r=h.getBaseURLsFromElement(n);e[t]?m.areEqual(r,e[t].data.baseUrls)||(e[t].data.baseUrls=r,e[t].data.selectedIdx=l):e[t]=new f(r)}function r(e){var t=h.getBaseURLsFromElement(e);m.areEqual(t,p.data.baseUrls)||(p.data.baseUrls=t,p.data.selectedIdx=l),e.Period_asArray&&e.Period_asArray.forEach(function(e,t){n(p.children,t,e),e.AdaptationSet_asArray&&e.AdaptationSet_asArray.forEach(function(e,r){n(p.children[t].children,r,e),e.Representation_asArray&&e.Representation_asArray.sort(h.getRepresentationSortFunction()).forEach(function(e,o){n(p.children[t].children[r].children,o,e)})})})}function o(e,t){var n=t||p;e(n.data),n.children&&n.children.forEach(function(t){return o(e,t)})}function i(e){o(function(t){isNaN(t.selectedIdx)||e===t.baseUrls[t.selectedIdx].serviceLocation&&(t.selectedIdx=l)})}function a(e){r(e)}function s(){p=new f}function c(e){var t=p,n=[t.data];return e.forEach(function(e){t=t.children[e],t&&n.push(t.data)}),n.filter(function(e){return e.baseUrls.length})}var d=void 0,p=void 0,h=void 0,v=this.context,m=(0,u["default"])(v).getInstance();return d={reset:s,update:a,getForPath:c,invalidateSelectedIndexes:i,setConfig:t},e(),d}Object.defineProperty(t,"__esModule",{value:!0});var a=n(508),u=r(a),s=n(2),c=r(s),l=NaN,f=function d(e,t){o(this,d),this.data={baseUrls:e||null,selectedIdx:t||l},this.children=[]};i.__dashjs_factory_name="BaseURLTreeModel",t["default"]=c["default"].getClassFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){function e(){return i}function t(e){i=e,e&&r.trigger(s["default"].MANIFEST_LOADED,{data:e})}var n=this.context,r=(0,a["default"])(n).getInstance(),o=void 0,i=void 0;return o={getValue:e,setValue:t}}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="ManifestModel",t["default"]=l["default"].getSingletonFactory(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(){z={}}function t(e){e&&e.adapter&&(Y=e.adapter)}function n(){W.trigger(N["default"].METRICS_CHANGED)}function r(e){W.trigger(N["default"].METRIC_CHANGED,{mediaType:e}),n()}function o(e,t,n){W.trigger(N["default"].METRIC_UPDATED,{mediaType:e,metric:t,value:n}),r(e)}function i(e,t,n){W.trigger(N["default"].METRIC_ADDED,{mediaType:e,metric:t,value:n}),r(e)}function u(e){delete z[e],r(e)}function c(){z={},n()}function f(e){return z.hasOwnProperty(e)?z[e]:null}function h(e){var t=void 0;return z.hasOwnProperty(e)?t=z[e]:(t=new l["default"],z[e]=t),t}function m(e,t,n){var r=h(e);r[t].push(n),r[t].length>V&&r[t].shift()}function g(e,t,n,r,o,i){var a=new d["default"];return a.tcpid=t,a.dest=n,a.topen=r,a.tclose=o,a.tconnect=i,R(e,s["default"].TCP_CONNECTION,a),a}function b(e,t,n,r){var o=new p.HTTPRequestTrace;return o.s=t,o.d=n,o.b=r,e.trace.push(o),e.interval||(e.interval=0),e.interval+=n,o}function T(e,t,n,r,o,i,a,u,c,l,f,d,h,v){var m=new p.HTTPRequest;return o&&o!==r&&(T(e,null,n,r,null,null,a,u,null,null,null,d,null,null),m.actualurl=o),m.tcpid=t,m.type=n,m.url=r,m.range=a,m.trequest=u,m.tresponse=c,m.responsecode=f,m._tfinish=l,m._stream=e,m._mediaduration=d,m._responseHeaders=h,m._serviceLocation=i,v?v.forEach(function(e){b(m,e.s,e.d,e.b)}):(delete m.interval,delete m.trace),R(e,s["default"].HTTP_REQUEST,m),m}function O(e,t,n,r,o){var i=new v["default"];return i.t=t,i.mt=n,i.to=r,o?i.lto=o:delete i.lto,R(e,s["default"].TRACK_SWITCH,i),i}function R(e,t,n){m(e,t,n),i(e,t,n)}function A(e,t,n){var r=new y["default"];return r.t=t,r.level=n,R(e,s["default"].BUFFER_LEVEL,r),r}function x(e,t,n){var r=new _["default"];return r.target=n,r.state=t,R(e,s["default"].BUFFER_STATE,r),r}function M(e,t,n,r){var o=new E["default"];return o.time=t,o.range=r,o.manifestInfo=n,R(e,s["default"].DVR_INFO,o),o}function k(e,t){var n=new w["default"],r=h(e).DroppedFrames;return n.time=t.creationTime,n.droppedFrames=t.droppedVideoFrames,r.length>0&&r[r.length-1]==n?r[r.length-1]:(R(e,s["default"].DROPPED_FRAMES,n),n)}function D(e,t,n,r,o,i,a,u,c){var l=new P["default"];return l.mediaType=e,l.t=t,l.type=n,l.startTime=r,l.availabilityStartTime=o,l.duration=i,l.quality=a,l.range=u,l.state=c,R(e,s["default"].SCHEDULING_INFO,l),l}function L(e,t,n){var r=new C["default"];r.loadingRequests=t,r.executedRequests=n,h(e).RequestsQueue=r,i(e,s["default"].REQUESTS_QUEUE,r)}function j(e,t,n,r,o,u,c,l,f,d){var p=new S.ManifestUpdate;return p.mediaType=e,p.type=t,p.requestTime=n,p.fetchTime=r,p.availabilityStartTime=o,p.presentationStartTime=u,p.clientTimeOffset=c,p.currentTime=l,p.buffered=f,p.latency=d,m(a["default"].STREAM,s["default"].MANIFEST_UPDATE,p),i(e,s["default"].MANIFEST_UPDATE,p),p}function F(e,t){if(e){for(var n in t)e[n]=t[n];o(e.mediaType,s["default"].MANIFEST_UPDATE,e)}}function U(e,t,n,r,i){if(e){var a=new S.ManifestUpdateStreamInfo;return a.id=t,a.index=n,a.start=r,a.duration=i,e.streamInfo.push(a),o(e.mediaType,s["default"].MANIFEST_UPDATE_STREAM_INFO,e),a}return null}function B(e,t,n,r,i,a,u,c){if(e){var l=new S.ManifestUpdateRepresentationInfo;return l.id=t,l.index=n,l.streamIndex=r,l.mediaType=i,l.startNumber=u,l.fragmentInfoType=c,l.presentationTimeOffset=a,e.representationInfo.push(l),o(e.mediaType,s["default"].MANIFEST_UPDATE_TRACK_INFO,e),l}return null}function H(e){var t=a["default"].STREAM;return e.trace&&Array.isArray(e.trace)?e.trace.forEach(function(e){e.hasOwnProperty("subreplevel")&&!e.subreplevel&&delete e.subreplevel}):delete e.trace,R(t,s["default"].PLAY_LIST,e),e}function q(e){var t=a["default"].STREAM;return R(t,s["default"].DVB_ERRORS,e),e}var V=1e3,G=this.context,W=(0,I["default"])(G).getInstance(),K=void 0,Y=void 0,z=void 0;return K={clearCurrentMetricsForType:u,clearAllCurrentMetrics:c,getReadOnlyMetricsFor:f,getMetricsFor:h,addTcpConnection:g,addHttpRequest:T,addRepresentationSwitch:O,addBufferLevel:A,addBufferState:x,addDVRInfo:M,addDroppedFrames:k,addSchedulingInfo:D,addRequestsQueue:L,addManifestUpdate:j,updateManifestUpdateInfo:F,addManifestUpdateStreamInfo:U,addManifestUpdateRepresentationInfo:B,addPlayList:H,addDVBErrors:q,setConfig:t},e(),K}Object.defineProperty(t,"__esModule",{value:!0});var i=n(24),a=r(i),u=n(156),s=r(u),c=n(1024),l=r(c),f=n(1037),d=r(f),p=n(45),h=n(1034),v=r(h),m=n(1029),y=r(m),g=n(1030),_=r(g),b=n(1031),E=r(b),T=n(1032),w=r(T),S=n(1033),O=n(1036),P=r(O),R=n(12),I=r(R),A=n(1035),C=r(A),x=n(14),N=r(x),M=n(2),k=r(M);o.__dashjs_factory_name="MetricsModel",t["default"]=k["default"].getSingletonFactory(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(){$=[],ee.on(l["default"].PLAYBACK_PLAYING,E,this)}function t(){ee.off(l["default"].PLAYBACK_PLAYING,E,this)}function n(){Y.playbackRate=Q||1,Y.removeEventListener("canplay",n)}function r(e){Y&&(Y.readyState<=2&&e>0?Y.addEventListener("canplay",n):Y.playbackRate=e)}function o(e){if(Y.currentTime!=e)try{Y.currentTime=e}catch(t){0===Y.readyState&&t.code===t.INVALID_STATE_ERR&&setTimeout(function(){Y.currentTime=e},400)}}function i(){return Y}function a(e){Y=e,Y.preload="auto"}function u(e){e?Y.src=e:(Y.removeAttribute("src"),Y.load())}function c(){return Y.src}function f(){return X}function p(e){X=e}function h(){return z}function v(e){z=e,z.style.position="absolute",z.style.display="flex",z.style.overflow="hidden",z.style.pointerEvents="none",z.style.top=0,z.style.left=0}function m(e,t){b(e,t)}function y(){return $.length>0}function g(e){var t=void 0;null===e||Y.seeking||$.indexOf(e)!==-1||($.push(e),1===$.length&&(t=document.createEvent("Event"),t.initEvent("waiting",!0,!1),Q=Y.playbackRate,r(0),Y.dispatchEvent(t)))}function _(e){var t=$.indexOf(e),n=void 0;null!==e&&(t!==-1&&$.splice(t,1),y()===!1&&0===Y.playbackRate&&(r(Q||1),Y.paused||(n=document.createEvent("Event"),n.initEvent("playing",!0,!1),Y.dispatchEvent(n))))}function b(e,t){t?g(e):_(e)}function E(){if(Y&&y()&&0===Y.playbackRate){var e=document.createEvent("Event");e.initEvent("waiting",!0,!1),Y.dispatchEvent(e)}}function T(){var e="webkitDroppedFrameCount"in Y&&"webkitDecodedFrameCount"in Y,t="getVideoPlaybackQuality"in Y,n=null;return t?n=Y.getVideoPlaybackQuality():e&&(n={droppedVideoFrames:Y.webkitDroppedFrameCount,totalVideoFrames:Y.webkitDroppedFrameCount+Y.webkitDecodedFrameCount,creationTime:new Date}),n}function w(){if(Y){Y.autoplay=!0;var e=Y.play();e&&"undefined"!=typeof Promise&&e instanceof Promise&&e["catch"](function(e){"NotAllowedError"===e.name&&ee.trigger(l["default"].PLAYBACK_NOT_ALLOWED),Z("Caught pending play exception - continuing ("+e+")")})}}function S(){return Y?Y.paused:null}function O(){Y&&(Y.pause(),Y.autoplay=!1)}function P(){return Y?Y.seeking:null}function R(){return Y?Y.currentTime:null}function I(){return Y?Y.playbackRate:null}function A(){return Y?Y.played:null}function C(){return Y?Y.ended:null}function x(e,t){Y&&Y.addEventListener(e,t)}function N(e,t){Y&&Y.removeEventListener(e,t)}function M(){return Y?Y.readyState:NaN}function k(){return Y?Y.buffered:null}function D(){return Y?Y.clientWidth:NaN}function L(){return Y?Y.clientHeight:NaN}function j(){return Y?Y.videoWidth:NaN}function F(){return Y?Y.videoHeight:NaN}function U(){return Y&&Y.parentNode?Y.getBoundingClientRect().top-Y.parentNode.getBoundingClientRect().top:NaN}function B(){return Y&&Y.parentNode?Y.getBoundingClientRect().left-Y.parentNode.getBoundingClientRect().left:NaN}function H(){return Y?Y.textTracks:[]}function q(e,t,n,r,o){if(Y)for(var i=0;i<Y.textTracks.length;i++)if(Y.textTracks[i].kind===e&&(!t||Y.textTracks[i].label==t)&&Y.textTracks[i].language===n&&Y.textTracks[i].isTTML===r&&Y.textTracks[i].isEmbedded===o)return Y.textTracks[i];return null}function V(e,t,n){return Y?Y.addTextTrack(e,t,n):null}function G(e){Y&&(Y.appendChild(e),void 0!==e.isTTML&&(Y.textTracks[Y.textTracks.length-1].isTTML=e.isTTML,Y.textTracks[Y.textTracks.length-1].isEmbedded=e.isEmbedded))}function W(e){Y&&Y.removeChild(e)}var K=void 0,Y=void 0,z=void 0,X=void 0,$=void 0,Q=void 0,J=this.context,Z=(0,d["default"])(J).getInstance().log,ee=(0,s["default"])(J).getInstance();return K={initialize:e,setCurrentTime:o,play:w,isPaused:S,pause:O,isSeeking:P,getTime:R,getPlaybackRate:I,getPlayedRanges:A,getEnded:C,setStallState:m,getElement:i,setElement:a,setSource:u,getSource:c,getVideoContainer:f,setVideoContainer:p,getTTMLRenderingDiv:h,setTTMLRenderingDiv:v,getPlaybackQuality:T,addEventListener:x,removeEventListener:N,getReadyState:M,getBufferRange:k,getClientWidth:D,getClientHeight:L,getTextTracks:H,getTextTrack:q,addTextTrack:V,appendChild:G,removeChild:W,getVideoWidth:j,getVideoHeight:F,getVideoRelativeOffsetTop:U,getVideoRelativeOffsetLeft:B,reset:t}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=r(i),u=n(12),s=r(u),c=n(14),l=r(c),f=n(19),d=r(f);o.__dashjs_factory_name="VideoModel",t["default"]=a["default"].getSingletonFactory(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(e){var n=null,r=(0,s["default"])(o).getInstance();r.setConfig({log:e.log,BASE64:e.BASE64}),r.initialize();var i=t(e);return!n&&i&&(n=(0,a["default"])(o).create({protectionModel:i,protectionKeyController:r,adapter:e.adapter,eventBus:e.eventBus,log:e.log,events:e.events,BASE64:e.BASE64,Constants:e.Constants}),e.capabilities.setEncryptedMediaSupported(!0)),n}function t(e){var t=e.log,r=e.eventBus,i=e.errHandler,a=e.videoModel.getElement();return void 0!==a.onencrypted&&void 0!==a.mediaKeys&&void 0!==navigator.requestMediaKeySystemAccess&&"function"==typeof navigator.requestMediaKeySystemAccess?(t("EME detected on this user agent! (ProtectionModel_21Jan2015)"),(0,d["default"])(o).create({log:t,eventBus:r,events:e.events})):n(a,g)?(t("EME detected on this user agent! (ProtectionModel_3Feb2014)"),(0,h["default"])(o).create({log:t,eventBus:r,events:e.events,api:n(a,g)})):n(a,y)?(t("EME detected on this user agent! (ProtectionModel_01b)"),(0,m["default"])(o).create({log:t,eventBus:r,errHandler:i,events:e.events,api:n(a,y)})):(t("No supported version of EME detected on this user agent! - Attempts to play encrypted content will fail!"),null)}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];if("function"==typeof e[r[Object.keys(r)[0]]])return r}return null}var r=void 0,o=this.context;return r={createProtectionSystem:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(977),a=r(i),u=n(242),s=r(u),c=n(976),l=r(c),f=n(983),d=r(f),p=n(984),h=r(p),v=n(982),m=r(v),y=[{generateKeyRequest:"generateKeyRequest",addKey:"addKey",cancelKeyRequest:"cancelKeyRequest",
needkey:"needkey",keyerror:"keyerror",keyadded:"keyadded",keymessage:"keymessage"},{generateKeyRequest:"webkitGenerateKeyRequest",addKey:"webkitAddKey",cancelKeyRequest:"webkitCancelKeyRequest",needkey:"webkitneedkey",keyerror:"webkitkeyerror",keyadded:"webkitkeyadded",keymessage:"webkitkeymessage"}],g=[{setMediaKeys:"setMediaKeys",MediaKeys:"MediaKeys",release:"close",needkey:"needkey",error:"keyerror",message:"keymessage",ready:"keyadded",close:"keyclose"},{setMediaKeys:"msSetMediaKeys",MediaKeys:"MSMediaKeys",release:"close",needkey:"msneedkey",error:"mskeyerror",message:"mskeymessage",ready:"mskeyadded",close:"mskeyclose"}];o.__dashjs_factory_name="Protection";var _=dashjs.FactoryMaker.getClassFactory(o);_.events=l["default"],dashjs.FactoryMaker.updateClassFactory(o.__dashjs_factory_name,_),t["default"]=_,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.INTERNAL_KEY_MESSAGE="internalKeyMessage",this.INTERNAL_KEY_SYSTEM_SELECTED="internalKeySystemSelected",this.KEY_ADDED="public_keyAdded",this.KEY_ERROR="public_keyError",this.KEY_MESSAGE="public_keyMessage",this.KEY_SESSION_CLOSED="public_keySessionClosed",this.KEY_SESSION_CREATED="public_keySessionCreated",this.KEY_SESSION_REMOVED="public_keySessionRemoved",this.KEY_STATUSES_CHANGED="public_keyStatusesChanged",this.KEY_SYSTEM_ACCESS_COMPLETE="keySystemAccessComplete",this.KEY_SYSTEM_SELECTED="public_keySystemSelected",this.LICENSE_REQUEST_COMPLETE="public_licenseRequestComplete",this.NEED_KEY="needkey",this.PROTECTION_CREATED="public_protectioncreated",this.PROTECTION_DESTROYED="public_protectiondestroyed",this.SERVER_CERTIFICATE_UPDATED="serverCertificateUpdated",this.TEARDOWN_COMPLETE="protectionTeardownComplete",this.VIDEO_ELEMENT_SELECTED="videoElementSelected"}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(){k=[],F=!1,U="temporary",B=""}function n(e,t,n){if(!F){var r=void 0;t||n||(r=R.getStreamsInfo()[0]),D=t||(r?R.getMediaInfoForType(r,N.AUDIO):null),L=n||(r?R.getMediaInfoForType(r,N.VIDEO):null);var o=L?L:D,i=O.getSupportedKeySystemsFromContentProtection(o.contentProtection);i&&i.length>0&&b(i,!0),F=!0}}function r(e){return O.getSupportedKeySystemsFromContentProtection(e)}function o(e,t){var n=u["default"].getPSSHForKeySystem(H,e),r=g(H);if(n){for(var o=P.getAllInitData(),i=0;i<o.length;i++)if(O.initDataEquals(n,o[i]))return void C("DRM: Ignoring initData because we have already seen it!");try{P.createKeySession(n,r,U,t)}catch(a){I.trigger(A.KEY_SESSION_CREATED,{data:null,error:"Error creating key session! "+a.message})}}else e?P.createKeySession(e,r,U,t):I.trigger(A.KEY_SESSION_CREATED,{data:null,error:"Selected key system is "+H.systemString+". needkey/encrypted event contains no initData corresponding to that key system!"})}function a(e){P.loadKeySession(e)}function s(e){P.removeKeySession(e)}function l(e){P.closeKeySession(e)}function d(e){P.setServerCertificate(e)}function p(e){e?(P.setMediaElement(e),I.on(A.NEED_KEY,w,this),I.on(A.INTERNAL_KEY_MESSAGE,T,this)):null===e&&(P.setMediaElement(e),I.off(A.NEED_KEY,w,this),I.off(A.INTERNAL_KEY_MESSAGE,T,this))}function h(e){U=e}function v(e){B=e}function m(e){j=e,O.setProtectionData(e)}function y(){p(null),H=void 0,P&&(P.reset(),P=null)}function g(e){var t=null,n=e.systemString;return j&&(t=n in j?j[n]:null),t}function _(e){var t=g(e),n=[],r=[],o=t&&t.audioRobustness&&t.audioRobustness.length>0?t.audioRobustness:B,i=t&&t.videoRobustness&&t.videoRobustness.length>0?t.videoRobustness:B;return D&&n.push(new c["default"](D.codec,o)),L&&r.push(new c["default"](L.codec,i)),new f["default"](n,r,"optional","temporary"===U?"optional":"required",[U])}function b(e,t){var n=this,r=[],i=void 0;if(H){for(i=0;i<e.length;i++)if(H===e[i].ks){var a=function(){r.push({ks:e[i].ks,configs:[_(H)]});var a=function u(r){I.off(A.KEY_SYSTEM_ACCESS_COMPLETE,u,n),r.error?t||I.trigger(A.KEY_SYSTEM_SELECTED,{error:"DRM: KeySystem Access Denied! -- "+r.error}):(C("DRM: KeySystem Access Granted"),I.trigger(A.KEY_SYSTEM_SELECTED,{data:r.data}),o(e[i].initData,e[i].cdmData))};return I.on(A.KEY_SYSTEM_ACCESS_COMPLETE,a,n),P.requestKeySystemAccess(r),"break"}();if("break"===a)break}}else if(void 0===H){var u;!function(){H=null,k.push(e);for(var a=0;a<e.length;a++)r.push({ks:e[a].ks,configs:[_(e[a].ks)]});var s=void 0,c=function l(e){I.off(A.KEY_SYSTEM_ACCESS_COMPLETE,l,n),e.error?(H=void 0,I.off(A.INTERNAL_KEY_SYSTEM_SELECTED,u,n),t||I.trigger(A.KEY_SYSTEM_SELECTED,{data:null,error:"DRM: KeySystem Access Denied! -- "+e.error})):(s=e.data,C("DRM: KeySystem Access Granted ("+s.keySystem.systemString+")! Selecting key system..."),P.selectKeySystem(s))};u=function f(e){if(I.off(A.INTERNAL_KEY_SYSTEM_SELECTED,f,n),I.off(A.KEY_SYSTEM_ACCESS_COMPLETE,c,n),e.error)H=void 0,t||I.trigger(A.KEY_SYSTEM_SELECTED,{data:null,error:"DRM: Error selecting key system! -- "+e.error});else{H=P.getKeySystem(),I.trigger(A.KEY_SYSTEM_SELECTED,{data:s});var r=g(H);r&&r.serverCertificate&&r.serverCertificate.length>0&&P.setServerCertificate(x.decodeArray(r.serverCertificate).buffer);for(var a=0;a<k.length;a++)for(i=0;i<k[a].length;i++)if(H===k[a][i].ks){if(null===k[a][i].initData&&r&&r.hasOwnProperty("clearkeys")){var u={kids:Object.keys(r.clearkeys)};k[a][i].initData=(new TextEncoder).encode(JSON.stringify(u))}o(k[a][i].initData,k[a][i].cdmData);break}}},I.on(A.INTERNAL_KEY_SYSTEM_SELECTED,u,n),I.on(A.KEY_SYSTEM_ACCESS_COMPLETE,c,n),P.requestKeySystemAccess(r)}()}else k.push(e)}function E(e,t){I.trigger(A.LICENSE_REQUEST_COMPLETE,{data:e,error:t})}function T(e){if(C("DRM: onKeyMessage"),e.error)return void C(e.error);var t=e.data;I.trigger(A.KEY_MESSAGE,{data:t});var n=t.messageType?t.messageType:"license-request",r=t.message,o=t.sessionToken,a=g(H),s=H.systemString,c=O.getLicenseServer(H,a,n),l={sessionToken:o,messageType:n};if(!c)return C("DRM: License server request not required for this message (type = "+e.data.messageType+"). Session ID = "+o.getSessionID()),void E(l);if(O.isClearKey(H)){var f=O.processClearKeyLicenseRequest(H,a,r);if(f)return C("DRM: ClearKey license request handled by application!"),E(l),void P.updateKeySession(o,f)}var d=new XMLHttpRequest,p=null;if(a&&a.serverURL){var h=a.serverURL;"string"==typeof h&&""!==h?p=h:"object"===("undefined"==typeof h?"undefined":i(h))&&h.hasOwnProperty(n)&&(p=h[n])}else a&&a.laURL&&""!==a.laURL?p=a.laURL:(p=H.getLicenseServerURLFromInitData(u["default"].getPSSHData(o.initData)),p||(p=e.data.laURL));if(p=c.getServerURLFromMessage(p,r,n),!p)return void E(l,"DRM: No license server URL specified!");var v=function(e,t,n,r){var o=e.response?c.getErrorResponse(e.response,n,r):"NONE";E(t,"DRM: "+n+' update, XHR complete. status is "'+e.statusText+'" ('+e.status+"), readyState is "+e.readyState+". Response is "+o)};d.open(c.getHTTPMethod(n),p,!0),d.responseType=c.getResponseType(s,n),d.onload=function(){if(200==this.status){var e=c.getLicenseMessage(this.response,s,n);null!==e?(E(l),P.updateKeySession(o,e)):v(this,l,s,n)}else v(this,l,s,n)},d.onabort=function(){E(l,"DRM: "+s+' update, XHR aborted. status is "'+this.statusText+'" ('+this.status+"), readyState is "+this.readyState)},d.onerror=function(){E(l,"DRM: "+s+' update, XHR error. status is "'+this.statusText+'" ('+this.status+"), readyState is "+this.readyState)};var m=function(e){if(e)for(var t in e)"authorization"===t.toLowerCase()&&(d.withCredentials=!0),d.setRequestHeader(t,e[t])};a&&m(a.httpRequestHeaders),m(H.getRequestHeadersFromMessage(r)),a&&"boolean"==typeof a.withCredentials&&(d.withCredentials=a.withCredentials),d.send(H.getLicenseRequestFromMessage(r))}function w(e){if(C("DRM: onNeedKey"),"cenc"!==e.key.initDataType)return void C("DRM: Only 'cenc' initData is supported! Ignoring initData of type: "+e.key.initDataType);var t=e.key.initData;if(ArrayBuffer.isView(t)&&(t=t.buffer),H){var n=u["default"].getPSSHForKeySystem(H,t);if(n)for(var r=P.getAllInitData(),o=0;o<r.length;o++)if(O.initDataEquals(n,r[o]))return void C("DRM: Ignoring initData because we have already seen it!")}C("DRM: initData:",String.fromCharCode.apply(null,new Uint8Array(t)));var i=O.getSupportedKeySystems(t,j);return 0===i.length?void C("DRM: Received needkey event with initData, but we don't support any of the key systems!"):void b(i,!1)}function S(){return O?O.getKeySystems():[]}e=e||{};var O=e.protectionKeyController,P=e.protectionModel,R=e.adapter,I=e.eventBus,A=e.events,C=e.log,x=e.BASE64,N=e.Constants,M=void 0,k=void 0,D=void 0,L=void 0,j=void 0,F=void 0,U=void 0,B=void 0,H=void 0;return M={initialize:n,createKeySession:o,loadKeySession:a,removeKeySession:s,closeKeySession:l,setServerCertificate:d,setMediaElement:p,setSessionType:h,setRobustnessLevel:v,setProtectionData:m,getSupportedKeySystemsFromContentProtection:r,getKeySystems:S,reset:y},t(),M}var 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};Object.defineProperty(t,"__esModule",{value:!0});var a=n(157),u=r(a),s=n(989),c=r(s),l=n(336),f=r(l);o.__dashjs_factory_name="ProtectionController",t["default"]=dashjs.FactoryMaker.getClassFactory(o),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(e,t){var n=null;if(e){for(var r=JSON.parse(String.fromCharCode.apply(null,new Uint8Array(t))),o=[],i=0;i<r.kids.length;i++){var u=r.kids[i],c=e.clearkeys&&e.clearkeys.hasOwnProperty(u)?e.clearkeys[u]:null;if(!c)throw new Error("DRM: ClearKey keyID ("+u+") is not known!");o.push(new a["default"](u,c))}n=new s["default"](o)}return n}function n(e){return l["default"].parseInitDataFromContentProtection(e,f)}function r(){return null}function o(e){return new Uint8Array(e)}function i(){return null}function u(){return null}e=e||{};var c=void 0,f=e.BASE64;return c={uuid:p,schemeIdURI:v,systemString:h,getInitData:n,getRequestHeadersFromMessage:r,getLicenseRequestFromMessage:o,getLicenseServerURLFromInitData:i,getCDMData:u,getClearKeysFromProtectionData:t}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(334),a=r(i),u=n(331),s=r(u),c=n(157),l=r(c),f=n(133),d=r(f),p="e2719d58-a985-b3c9-781a-b030af78d30e",h=d["default"].CLEARKEY_KEYSTEM_STRING,v="urn:uuid:"+p;o.__dashjs_factory_name="KeySystemClearKey",t["default"]=dashjs.FactoryMaker.getSingletonFactory(o),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(){if(!y||!y.hasOwnProperty("decodeArray")||!y.hasOwnProperty("decodeArray"))throw new Error("Missing config parameter(s)")}function n(e){var t=void 0,n=void 0,r={},o=new DOMParser,i="utf16"===m?new Uint16Array(e):new Uint8Array(e);t=String.fromCharCode.apply(null,i),n=o.parseFromString(t,"application/xml");for(var a=n.getElementsByTagName("name"),u=n.getElementsByTagName("value"),s=0;s<a.length;s++)r[a[s].childNodes[0].nodeValue]=u[s].childNodes[0].nodeValue;return r.hasOwnProperty("Content")&&(r["Content-Type"]=r.Content,delete r.Content),r}function r(e){var n=void 0,r=void 0,o=null,i=new DOMParser,a="utf16"===m?new Uint16Array(e):new Uint8Array(e);if(t(),n=String.fromCharCode.apply(null,a),r=i.parseFromString(n,"application/xml"),r.getElementsByTagName("Challenge")[0]){var u=r.getElementsByTagName("Challenge")[0].childNodes[0].nodeValue;u&&(o=y.decode(u))}return o}function o(e){if(e)for(var t=new DataView(e),n=t.getUint16(4,!0),r=6,o=new DOMParser,i=0;i<n;i++){var a=t.getUint16(r,!0);r+=2;var u=t.getUint16(r,!0);if(r+=2,1===a){var s=e.slice(r,r+u),c=String.fromCharCode.apply(null,new Uint16Array(s)),l=o.parseFromString(c,"application/xml");if(l.getElementsByTagName("LA_URL")[0]){var f=l.getElementsByTagName("LA_URL")[0].childNodes[0].nodeValue;if(f)return f}if(l.getElementsByTagName("LUI_URL")[0]){var d=l.getElementsByTagName("LUI_URL")[0].childNodes[0].nodeValue;if(d)return d}}else r+=u}return null}function i(e){var n=new Uint8Array([112,115,115,104,0,0,0,0]),r=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]),o=0,i=null,u=void 0,s=void 0,c=void 0,l=void 0,f=void 0;if(t(),"pssh"in e)return a["default"].parseInitDataFromContentProtection(e,y);if("pro"in e)i=y.decodeArray(e.pro.__text);else{if(!("prheader"in e))return null;i=y.decodeArray(e.prheader.__text)}return u=i.length,s=4+n.length+r.length+4+u,c=new ArrayBuffer(s),l=new Uint8Array(c),f=new DataView(c),f.setUint32(o,s),o+=4,l.set(n,o),o+=n.length,l.set(r,o),o+=r.length,f.setUint32(o,u),o+=4,l.set(i,o),o+=u,l.buffer}function u(e){if("utf8"!==e&&"utf16"!==e)throw new Error("Illegal PlayReady message format! -- "+e);m=e}function s(e){e&&(p=e)}function h(){var e=void 0,n=void 0,r=void 0,o=void 0;if(t(),p&&p.cdmData){for(e=[],o=0;o<p.cdmData.length;++o)e.push(p.cdmData.charCodeAt(o)),e.push(0);for(e=String.fromCharCode.apply(null,e),e=y.encode(e),n=d.replace("%CUSTOMDATA%",e),r=[],o=0;o<n.length;++o)r.push(n.charCodeAt(o)),r.push(0);return new Uint8Array(r).buffer}return null}e=e||{};var v=void 0,m="utf16",y=e.BASE64;return v={uuid:c,schemeIdURI:f,systemString:l,getInitData:i,getRequestHeadersFromMessage:n,getLicenseRequestFromMessage:r,getLicenseServerURLFromInitData:o,getCDMData:h,setPlayReadyMessageFormat:u,init:s}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(157),a=r(i),u=n(133),s=r(u),c="9a04f079-9840-4286-ab92-e65be0885f95",l=s["default"].PLAYREADY_KEYSTEM_STRING,f="urn:uuid:"+c,d='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="false"><CustomData encoding="base64encoded">%CUSTOMDATA%</CustomData></LicenseAcquisition></PlayReadyCDMData>',p=void 0;o.__dashjs_factory_name="KeySystemPlayReady",t["default"]=dashjs.FactoryMaker.getSingletonFactory(o),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(e,t){var n=null;if(e){for(var r=JSON.parse(String.fromCharCode.apply(null,new Uint8Array(t))),o=[],i=0;i<r.kids.length;i++){var u=r.kids[i],c=e.clearkeys&&e.clearkeys.hasOwnProperty(u)?e.clearkeys[u]:null;if(!c)throw new Error("DRM: ClearKey keyID ("+u+") is not known!");o.push(new a["default"](u,c))}n=new s["default"](o),d("Warning: ClearKey schemeIdURI is using W3C Common PSSH systemID (1077efec-c0b2-4d02-ace3-3c1e52e2fb4b) in Content Protection. See DASH-IF IOP v4.1 section 7.6.2.4")}return n}function n(e){return l["default"].parseInitDataFromContentProtection(e,f)}function r(){return null}function o(e){return new Uint8Array(e)}function i(){return null}function u(){return null}var c=void 0,f=e.BASE64,d=e.log;return c={uuid:p,schemeIdURI:v,systemString:h,getInitData:n,getRequestHeadersFromMessage:r,getLicenseRequestFromMessage:o,getLicenseServerURLFromInitData:i,getCDMData:u,getClearKeysFromProtectionData:t}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(334),a=r(i),u=n(331),s=r(u),c=n(157),l=r(c),f=n(133),d=r(f),p="1077efec-c0b2-4d02-ace3-3c1e52e2fb4b",h=d["default"].CLEARKEY_KEYSTEM_STRING,v="urn:uuid:"+p;o.__dashjs_factory_name="KeySystemW3CClearKey",t["default"]=dashjs.FactoryMaker.getSingletonFactory(o),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(e){e&&(p=e)}function n(e,t){var n=void 0,r=!0,o=16,i=void 0,a=void 0,u=void 0;for(n=new Uint8Array(e),a=0;a<=n.length-(o+2);a++)if(18===n[a]&&16===n[a+1]){for(i=a+2,u=i;u<i+o;u++)if(255!==n[u]){r=!1;break}break}return r&&n.set(t,i),n.buffer}function r(e){var t=null;return t=p&&p.pssh?h.decodeArray(p.pssh).buffer:a["default"].parseInitDataFromContentProtection(e,h),t&&(t=n(t,e["cenc:default_KID"])),t}function o(){return null}function i(e){return new Uint8Array(e)}function u(){return null}function s(){return null}e=e||{};var d=void 0,p=null,h=e.BASE64;return d={uuid:c,schemeIdURI:f,systemString:l,init:t,getInitData:r,getRequestHeadersFromMessage:o,getLicenseRequestFromMessage:i,getLicenseServerURLFromInitData:u,getCDMData:s}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(157),a=r(i),u=n(133),s=r(u),c="edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",l=s["default"].WIDEVINE_KEYSTEM_STRING,f="urn:uuid:"+c;o.__dashjs_factory_name="KeySystemWidevine",t["default"]=dashjs.FactoryMaker.getSingletonFactory(o),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(){C=null,x=null,M=[],k=[],N=(0,a["default"])(w).getInstance(),L=b()}function n(){C&&T();for(var e=0;e<k.length;e++)v(k[e]);S.trigger(O.TEARDOWN_COMPLETE)}function r(){return x}function o(){for(var e=[],t=0;t<M.length;t++)e.push(M[t].initData);for(var t=0;t<k.length;t++)e.push(k[t].initData);return e}function i(e){var t=C;t||(t=document.createElement("video"));for(var n=!1,r=0;r<e.length;r++)for(var o=e[r].ks.systemString,i=e[r].configs,a=null,u=null,s=0;s<i.length;s++){var c=i[s].videoCapabilities;if(c&&0!==c.length){u=[];for(var l=0;l<c.length;l++)""!==t.canPlayType(c[l].contentType,o)&&u.push(c[l])}if(!(!a&&!u||a&&0===a.length||u&&0===u.length)){n=!0;var f=new h["default"](a,u),d=N.getKeySystemBySystemString(o);S.trigger(O.KEY_SYSTEM_ACCESS_COMPLETE,{data:new m["default"](d,f)});break}}n||S.trigger(O.KEY_SYSTEM_ACCESS_COMPLETE,{error:"Key system access denied! -- No valid audio/video content configurations detected!"})}function u(e){x=e.keySystem,S.trigger(O.INTERNAL_KEY_SYSTEM_SELECTED)}function c(e){C!==e&&(C&&T(),C=e,C&&(C.addEventListener(R.keyerror,L),C.addEventListener(R.needkey,L),C.addEventListener(R.keymessage,L),C.addEventListener(R.keyadded,L),S.trigger(O.VIDEO_ELEMENT_SELECTED)))}function f(e){if(!x)throw new Error("Can not create sessions until you have selected a key system");if(D||0===k.length){var t={sessionID:null,initData:e,getSessionID:function(){return this.sessionID},getExpirationTime:function(){return NaN},getSessionType:function(){return"temporary"}};return M.push(t),C[R.generateKeyRequest](x.systemString,new Uint8Array(e)),t}throw new Error("Multiple sessions not allowed!")}function p(e,t){var n=e.sessionID;if(N.isClearKey(x))for(var r=0;r<t.keyPairs.length;r++)C[R.addKey](x.systemString,t.keyPairs[r].key,t.keyPairs[r].keyID,n);else C[R.addKey](x.systemString,new Uint8Array(t),new Uint8Array(e.initData),n)}function v(e){C[R.cancelKeyRequest](x.systemString,e.sessionID)}function y(){}function g(){}function _(){}function b(){return{handleEvent:function(e){var t=null;switch(e.type){case R.needkey:var n=ArrayBuffer.isView(e.initData)?e.initData.buffer:e.initData;S.trigger(O.NEED_KEY,{key:new s["default"](n,"cenc")});break;case R.keyerror:if(t=E(k,e.sessionId),t||(t=E(M,e.sessionId)),t){var r="";switch(e.errorCode.code){case 1:r+="MEDIA_KEYERR_UNKNOWN - An unspecified error occurred. This value is used for errors that don't match any of the other codes.";break;case 2:r+="MEDIA_KEYERR_CLIENT - The Key System could not be installed or updated.";break;case 3:r+="MEDIA_KEYERR_SERVICE - The message passed into update indicated an error from the license service.";break;case 4:r+="MEDIA_KEYERR_OUTPUT - There is no available output device with the required characteristics for the content protection system.";break;case 5:r+="MEDIA_KEYERR_HARDWARECHANGE - A hardware configuration change caused a content protection error.";break;case 6:r+="MEDIA_KEYERR_DOMAIN - An error occurred in a multi-device domain licensing configuration. The most common error is a failure to join the domain."}r+=" System Code = "+e.systemCode,S.trigger(O.KEY_ERROR,{data:new l["default"](t,r)})}else P("No session token found for key error");break;case R.keyadded:t=E(k,e.sessionId),t||(t=E(M,e.sessionId)),t?(P("DRM: Key added."),S.trigger(O.KEY_ADDED,{data:t})):P("No session token found for key added");break;case R.keymessage:if(D=null!==e.sessionId&&void 0!==e.sessionId,D?(t=E(k,e.sessionId),!t&&M.length>0&&(t=M.shift(),k.push(t),t.sessionID=e.sessionId)):M.length>0&&(t=M.shift(),k.push(t),0!==M.length&&I.mediaKeyMessageError("Multiple key sessions were creates with a user-agent that does not support sessionIDs!! Unpredictable behavior ahead!")),t){var o=ArrayBuffer.isView(e.message)?e.message.buffer:e.message;t.keyMessage=o,S.trigger(O.INTERNAL_KEY_MESSAGE,{data:new d["default"](t,o,e.defaultURL)})}else P("No session token found for key message")}}}}function E(e,t){if(t&&e){for(var n=e.length,r=0;r<n;r++)if(e[r].sessionID==t)return e[r];return null}return null}function T(){C.removeEventListener(R.keyerror,L),C.removeEventListener(R.needkey,L),C.removeEventListener(R.keymessage,L),C.removeEventListener(R.keyadded,L)}e=e||{};var w=this.context,S=e.eventBus,O=e.events,P=e.log,R=e.api,I=e.errHandler,A=void 0,C=void 0,x=void 0,N=void 0,M=void 0,k=void 0,D=void 0,L=void 0;return A={getAllInitData:o,requestKeySystemAccess:i,getKeySystem:r,selectKeySystem:u,setMediaElement:c,createKeySession:f,updateKeySession:p,closeKeySession:v,setServerCertificate:y,loadKeySession:g,removeKeySession:_,reset:n},t(),A}Object.defineProperty(t,"__esModule",{value:!0});var i=n(242),a=r(i),u=n(337),s=r(u),c=n(332),l=r(c),f=n(333),d=r(f),p=n(336),h=r(p),v=n(335),m=r(v);o.__dashjs_factory_name="ProtectionModel_01b",t["default"]=dashjs.FactoryMaker.getClassFactory(o),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(){C=null,x=null,N=null,M=[],D=(0,a["default"])(O).getInstance(),k=T()}function n(){var e=M.length,t=void 0;0!==e?!function(){for(var n=function(e){w(e),0===M.length&&(x?(x.removeEventListener("encrypted",k),x.setMediaKeys(null).then(function(){P.trigger(R.TEARDOWN_COMPLETE)})):P.trigger(R.TEARDOWN_COMPLETE))},r=0;r<e;r++)t=M[r],function(e){t.session.closed.then(function(){n(e)}),E(t)["catch"](function(){n(e)})}(t)}():P.trigger(R.TEARDOWN_COMPLETE)}function r(){return C}function o(){for(var e=[],t=0;t<M.length;t++)e.push(M[t].initData);return e}function i(e){b(e,0)}function u(e){e.mksa.createMediaKeys().then(function(t){C=e.keySystem,N=t,x&&x.setMediaKeys(N).then(function(){P.trigger(R.INTERNAL_KEY_SYSTEM_SELECTED)})})["catch"](function(){P.trigger(R.INTERNAL_KEY_SYSTEM_SELECTED,{error:"Error selecting keys system ("+e.keySystem.systemString+")! Could not create MediaKeys -- TODO"})})}function c(e){x!==e&&(x&&(x.removeEventListener("encrypted",k),x.setMediaKeys(null)),x=e,x&&(x.addEventListener("encrypted",k),N&&x.setMediaKeys(N)))}function f(e){if(!C||!N)throw new Error("Can not set server certificate until you have selected a key system");N.setServerCertificate(e).then(function(){I("DRM: License server certificate successfully updated."),P.trigger(R.SERVER_CERTIFICATE_UPDATED)})["catch"](function(e){P.trigger(R.SERVER_CERTIFICATE_UPDATED,{error:"Error updating server certificate -- "+e.name})})}function p(e,t,n){if(!C||!N)throw new Error("Can not create sessions until you have selected a key system");var r=N.createSession(n),o=S(r,e,n),i=this.getKeySystem(),a=i.systemString===m["default"].CLEARKEY_KEYSTEM_STRING&&t&&t.clearkeys?"keyids":"cenc";r.generateRequest(a,e).then(function(){I("DRM: Session created. SessionID = "+o.getSessionID()),P.trigger(R.KEY_SESSION_CREATED,{data:o})})["catch"](function(e){w(o),P.trigger(R.KEY_SESSION_CREATED,{data:null,error:"Error generating key request -- "+e.name})})}function v(e,t){var n=e.session;D.isClearKey(C)&&(t=t.toJWK()),n.update(t)["catch"](function(t){P.trigger(R.KEY_ERROR,{data:new l["default"](e,"Error sending update() message! "+t.name)})})}function y(e){if(!C||!N)throw new Error("Can not load sessions until you have selected a key system");var t=N.createSession();t.load(e).then(function(n){if(n){var r=S(t);I("DRM: Session created. SessionID = "+r.getSessionID()),P.trigger(R.KEY_SESSION_CREATED,{data:r})}else P.trigger(R.KEY_SESSION_CREATED,{data:null,error:"Could not load session! Invalid Session ID ("+e+")"})})["catch"](function(t){P.trigger(R.KEY_SESSION_CREATED,{data:null,error:"Could not load session ("+e+")! "+t.name})})}function g(e){var t=e.session;t.remove().then(function(){I("DRM: Session removed. SessionID = "+e.getSessionID()),P.trigger(R.KEY_SESSION_REMOVED,{data:e.getSessionID()})},function(t){P.trigger(R.KEY_SESSION_REMOVED,{data:null,error:"Error removing session ("+e.getSessionID()+"). "+t.name})})}function _(e){E(e)["catch"](function(t){w(e),P.trigger(R.KEY_SESSION_CLOSED,{data:null,error:"Error closing session ("+e.getSessionID()+") "+t.name})})}function b(e,t){!function(t){var n=e[t].ks,r=e[t].configs;navigator.requestMediaKeySystemAccess(n.systemString,r).then(function(e){var t="function"==typeof e.getConfiguration?e.getConfiguration():null,r=new h["default"](n,t);r.mksa=e,P.trigger(R.KEY_SYSTEM_ACCESS_COMPLETE,{data:r})})["catch"](function(){++t<e.length?b(e,t):P.trigger(R.KEY_SYSTEM_ACCESS_COMPLETE,{error:"Key system access denied!"})})}(t)}function E(e){var t=e.session;return t.removeEventListener("keystatuseschange",e),t.removeEventListener("message",e),t.close()}function T(){return{handleEvent:function(e){switch(e.type){case"encrypted":if(e.initData){var t=ArrayBuffer.isView(e.initData)?e.initData.buffer:e.initData;P.trigger(R.NEED_KEY,{key:new s["default"](t,e.initDataType)})}}}}}function w(e){for(var t=0;t<M.length;t++)if(M[t]===e){M.splice(t,1);break}}function S(e,t,n){var r={session:e,initData:t,handleEvent:function(e){switch(e.type){case"keystatuseschange":P.trigger(R.KEY_STATUSES_CHANGED,{data:this});break;case"message":var t=ArrayBuffer.isView(e.message)?e.message.buffer:e.message;P.trigger(R.INTERNAL_KEY_MESSAGE,{data:new d["default"](this,t,(void 0),e.messageType)})}},getSessionID:function(){return e.sessionId},getExpirationTime:function(){return e.expiration},getKeyStatuses:function(){return e.keyStatuses},getSessionType:function(){return n}};return e.addEventListener("keystatuseschange",r),e.addEventListener("message",r),e.closed.then(function(){w(r),I("DRM: Session closed. SessionID = "+r.getSessionID()),P.trigger(R.KEY_SESSION_CLOSED,{data:r.getSessionID()})}),M.push(r),r}e=e||{};var O=this.context,P=e.eventBus,R=e.events,I=e.log,A=void 0,C=void 0,x=void 0,N=void 0,M=void 0,k=void 0,D=void 0;return A={getAllInitData:o,requestKeySystemAccess:i,getKeySystem:r,selectKeySystem:u,setMediaElement:c,setServerCertificate:f,createKeySession:p,updateKeySession:v,loadKeySession:y,removeKeySession:g,closeKeySession:_,reset:n},t(),A}Object.defineProperty(t,"__esModule",{value:!0});var i=n(242),a=r(i),u=n(337),s=r(u),c=n(332),l=r(c),f=n(333),d=r(f),p=n(335),h=r(p),v=n(133),m=r(v);o.__dashjs_factory_name="ProtectionModel_21Jan2015",t["default"]=dashjs.FactoryMaker.getClassFactory(o),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(){A=null,C=null,x=null,N=null,M=[],D=(0,a["default"])(w).getInstance(),k=b()}function n(){try{for(var e=0;e<M.length;e++)v(M[e]);A&&A.removeEventListener(R.needkey,k),S.trigger(O.TEARDOWN_COMPLETE)}catch(t){S.trigger(O.TEARDOWN_COMPLETE,{error:"Error tearing down key sessions and MediaKeys! -- "+t.message})}}function r(){return C}function o(){for(var e=[],t=0;t<M.length;t++)e.push(M[t].initData);return e}function i(e){for(var t=!1,n=0;n<e.length;n++)for(var r=e[n].ks.systemString,o=e[n].configs,i=null,a=null,u=0;u<o.length;u++){var s=o[u].audioCapabilities,c=o[u].videoCapabilities;if(s&&0!==s.length){i=[];for(var l=0;l<s.length;l++)window[R.MediaKeys].isTypeSupported(r,s[l].contentType)&&i.push(s[l])}if(c&&0!==c.length){a=[];for(var f=0;f<c.length;f++)window[R.MediaKeys].isTypeSupported(r,c[f].contentType)&&a.push(c[f])}if(!(!i&&!a||i&&0===i.length||a&&0===a.length)){t=!0;var d=new h["default"](i,a),p=D.getKeySystemBySystemString(r);S.trigger(O.KEY_SYSTEM_ACCESS_COMPLETE,{data:new m["default"](p,d)});break}}t||S.trigger(O.KEY_SYSTEM_ACCESS_COMPLETE,{error:"Key system access denied! -- No valid audio/video content configurations detected!"})}function u(e){try{x=e.mediaKeys=new window[R.MediaKeys](e.keySystem.systemString),C=e.keySystem,N=e,A&&E(),S.trigger(O.INTERNAL_KEY_SYSTEM_SELECTED)}catch(t){S.trigger(O.INTERNAL_KEY_SYSTEM_SELECTED,{error:"Error selecting keys system ("+C.systemString+")! Could not create MediaKeys -- TODO"})}}function c(e){A!==e&&(A&&A.removeEventListener(R.needkey,k),A=e,A&&(A.addEventListener(R.needkey,k),x&&E()))}function f(e,t,n,r){if(!C||!x||!N)throw new Error("Can not create sessions until you have selected a key system");var o=null;if(null!==N.ksConfiguration.videoCapabilities&&N.ksConfiguration.videoCapabilities.length>0&&(o=N.ksConfiguration.videoCapabilities[0]),null===o&&null!==N.ksConfiguration.audioCapabilities&&N.ksConfiguration.audioCapabilities.length>0&&(o=N.ksConfiguration.audioCapabilities[0]),null===o)throw new Error("Can not create sessions for unknown content types.");var i=o.contentType,a=x.createSession(i,new Uint8Array(e),r?new Uint8Array(r):null),u=T(a,e);a.addEventListener(R.error,u),a.addEventListener(R.message,u),a.addEventListener(R.ready,u),a.addEventListener(R.close,u),M.push(u),P("DRM: Session created. SessionID = "+u.getSessionID()),S.trigger(O.KEY_SESSION_CREATED,{data:u})}function p(e,t){var n=e.session;D.isClearKey(C)?n.update(new Uint8Array(t.toJWK())):n.update(new Uint8Array(t))}function v(e){var t=e.session;t.removeEventListener(R.error,e),t.removeEventListener(R.message,e),t.removeEventListener(R.ready,e),t.removeEventListener(R.close,e);for(var n=0;n<M.length;n++)if(M[n]===e){M.splice(n,1);break}t[R.release]()}function y(){}function g(){}function _(){}function b(){return{handleEvent:function(e){switch(e.type){case R.needkey:if(e.initData){var t=ArrayBuffer.isView(e.initData)?e.initData.buffer:e.initData;S.trigger(O.NEED_KEY,{key:new s["default"](t,"cenc")})}}}}}function E(){var e=null,t=function(){A.removeEventListener("loadedmetadata",e),A[R.setMediaKeys](x),S.trigger(O.VIDEO_ELEMENT_SELECTED)};A.readyState>=1?t():(e=t.bind(this),A.addEventListener("loadedmetadata",e))}function T(e,t){return{session:e,initData:t,getSessionID:function(){return this.session.sessionId},getExpirationTime:function(){return NaN},getSessionType:function(){return"temporary"},handleEvent:function(e){switch(e.type){case R.error:var t="KeyError";S.trigger(O.KEY_ERROR,{data:new l["default"](this,t)});break;case R.message:var n=ArrayBuffer.isView(e.message)?e.message.buffer:e.message;S.trigger(O.INTERNAL_KEY_MESSAGE,{data:new d["default"](this,n,e.destinationURL)});break;case R.ready:P("DRM: Key added."),S.trigger(O.KEY_ADDED);break;case R.close:P("DRM: Session closed. SessionID = "+this.getSessionID()),S.trigger(O.KEY_SESSION_CLOSED,{data:this.getSessionID()})}}}}e=e||{};var w=this.context,S=e.eventBus,O=e.events,P=e.log,R=e.api,I=void 0,A=void 0,C=void 0,x=void 0,N=void 0,M=void 0,k=void 0,D=void 0;
return I={getAllInitData:o,requestKeySystemAccess:i,getKeySystem:r,selectKeySystem:u,setMediaElement:c,createKeySession:f,updateKeySession:p,closeKeySession:v,setServerCertificate:y,loadKeySession:g,removeKeySession:_,reset:n},t(),I}Object.defineProperty(t,"__esModule",{value:!0});var i=n(242),a=r(i),u=n(337),s=r(u),c=n(332),l=r(c),f=n(333),d=r(f),p=n(336),h=r(p),v=n(335),m=r(v);o.__dashjs_factory_name="ProtectionModel_3Feb2014",t["default"]=dashjs.FactoryMaker.getClassFactory(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(e,t){var n=JSON.parse(String.fromCharCode.apply(null,new Uint8Array(t)));e+="/?";for(var r=0;r<n.kids.length;r++)e+=n.kids[r]+"&";return e=e.substring(0,e.length-1)}function t(){return"GET"}function n(){return"json"}function r(e){if(!e.hasOwnProperty("keys"))return null;for(var t=[],n=0;n<e.keys.length;n++){var r=e.keys[n],o=r.kid.replace(/=/g,""),i=r.k.replace(/=/g,"");t.push(new a["default"](o,i))}return new s["default"](t)}function o(e){return String.fromCharCode.apply(null,new Uint8Array(e))}var i=void 0;return i={getServerURLFromMessage:e,getHTTPMethod:t,getResponseType:n,getLicenseMessage:r,getErrorResponse:o}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(334),a=r(i),u=n(331),s=r(u);o.__dashjs_factory_name="ClearKey",t["default"]=dashjs.FactoryMaker.getSingletonFactory(o),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(){if(!s||!s.hasOwnProperty("decodeArray"))throw new Error("Missing config parameter(s)")}function n(e){return e}function r(){return"POST"}function o(e){return c[e].responseType}function i(e,n){return t(),c[n].getLicenseMessage(e)}function u(e,t){return c[t].getErrorResponse(e)}e=e||{};var s=e.BASE64,c={};c[a["default"].WIDEVINE_KEYSTEM_STRING]={responseType:"json",getLicenseMessage:function(e){return s.decodeArray(e.license)},getErrorResponse:function(e){return e}},c[a["default"].PLAYREADY_KEYSTEM_STRING]={responseType:"arraybuffer",getLicenseMessage:function(e){return e},getErrorResponse:function(e){return String.fromCharCode.apply(null,new Uint8Array(e))}};var l=void 0;return l={getServerURLFromMessage:n,getHTTPMethod:r,getResponseType:o,getLicenseMessage:i,getErrorResponse:u}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(133),a=r(i);o.__dashjs_factory_name="DRMToday",t["default"]=dashjs.FactoryMaker.getSingletonFactory(o),e.exports=t["default"]},function(e,t){"use strict";function n(){function e(e){var t=String.fromCharCode.apply(null,new Uint8Array(e)),n=decodeURIComponent(escape(t));return n}function t(t){if(window.DOMParser){var n=e(t),r=new window.DOMParser,o=r.parseFromString(n,"text/xml"),i=o?o.getElementsByTagNameNS(c,"Envelope")[0]:null,a=i?i.getElementsByTagNameNS(c,"Body")[0]:null,u=a?a.getElementsByTagNameNS(c,"Fault")[0]:null;if(u)return null}return t}function n(t){var n="",r="",o="",i=-1,a=-1;if(window.DOMParser){var u=e(t),s=new window.DOMParser,l=s.parseFromString(u,"text/xml"),f=l?l.getElementsByTagNameNS(c,"Envelope")[0]:null,d=f?f.getElementsByTagNameNS(c,"Body")[0]:null,p=d?d.getElementsByTagNameNS(c,"Fault")[0]:null,h=p?p.getElementsByTagName("detail")[0]:null,v=h?h.getElementsByTagName("Exception")[0]:null,m=null;if(null===p)return u;m=p.getElementsByTagName("faultstring")[0].firstChild,n=m?m.nodeValue:null,null!==v&&(m=v.getElementsByTagName("StatusCode")[0],r=m?m.firstChild.nodeValue:null,m=v.getElementsByTagName("Message")[0],o=m?m.firstChild.nodeValue:null,i=o?o.lastIndexOf("[")+1:-1,a=o?o.indexOf("]"):-1,o=o?o.substring(i,a):"")}var y="code: "+r+", name: "+n;return o&&(y+=", message: "+o),y}function r(e){return e}function o(){return"POST"}function i(){return"arraybuffer"}function a(e){return t.call(this,e)}function u(e){return n.call(this,e)}var s=void 0,c="http://schemas.xmlsoap.org/soap/envelope/";return s={getServerURLFromMessage:r,getHTTPMethod:o,getResponseType:i,getLicenseMessage:a,getErrorResponse:u}}Object.defineProperty(t,"__esModule",{value:!0}),n.__dashjs_factory_name="PlayReady",t["default"]=dashjs.FactoryMaker.getSingletonFactory(n),e.exports=t["default"]},function(e,t){"use strict";function n(){function e(e){return e}function t(){return"POST"}function n(){return"arraybuffer"}function r(e){return e}function o(e){return String.fromCharCode.apply(null,new Uint8Array(e))}var i=void 0;return i={getServerURLFromMessage:e,getHTTPMethod:t,getResponseType:n,getLicenseMessage:r,getErrorResponse:o}}Object.defineProperty(t,"__esModule",{value:!0}),n.__dashjs_factory_name="Widevine",t["default"]=dashjs.FactoryMaker.getSingletonFactory(n),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(e,t){n(this,o),this.contentType=e,this.robustness=t};t["default"]=r,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){function e(e,t){var n=t.droppedVideoFrames-o;o=t.droppedVideoFrames;var a=t.totalVideoFrames-i;i=t.totalVideoFrames,isNaN(e)||(r[e]?(r[e].droppedVideoFrames+=n,r[e].totalVideoFrames+=a):r[e]={droppedVideoFrames:n,totalVideoFrames:a})}function t(){return r}function n(e){r=[],o=e.droppedVideoFrames,i=e.totalVideoFrames}var r=[],o=0,i=0;return{push:e,getFrameHistory:t,reset:n}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=r(i);o.__dashjs_factory_name="DroppedFramesHistory";var u=a["default"].getClassFactory(o);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){function t(){return h.mediaInfo.type}function n(){return h.mediaInfo.streamInfo}function r(){return h.mediaInfo}function o(){return h}function i(){return p}function a(){return d}function u(){return v}function s(){return m}function c(){return y}function l(){return g}e=e||{};var f=void 0,d=e.abrController,p=e.streamProcessor,h=e.streamProcessor.getCurrentRepresentationInfo(),v=e.switchHistory,m=e.droppedFramesHistory,y=e.currentRequest,g=e.useBufferOccupancyABR;return f={getMediaType:t,getMediaInfo:r,getDroppedFramesHistory:s,getCurrentRequest:c,getSwitchHistory:u,getStreamInfo:n,getStreamProcessor:i,getAbrController:a,getRepresentationInfo:o,useBufferOccupancyABR:l}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=r(i);o.__dashjs_factory_name="RulesContext",t["default"]=a["default"].getClassFactory(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(e){e.newValue===s["default"].NO_CHANGE&&(e.newValue=e.oldValue),r[e.oldValue]||(r[e.oldValue]={noDrops:0,drops:0,dropSize:0});var t=e.newValue-e.oldValue,n=t<0?1:0,i=n?-t:0,a=n?0:1;if(r[e.oldValue].drops+=n,r[e.oldValue].dropSize+=i,r[e.oldValue].noDrops+=a,o.push({idx:e.oldValue,noDrop:a,drop:n,dropSize:i}),o.length>c){var u=o.shift();r[u.idx].drops-=u.drop,r[u.idx].dropSize-=u.dropSize,r[u.idx].noDrops-=u.noDrop}}function t(){return r}function n(){r=[],o=[]}var r=[],o=[];return{push:e,getSwitchRequests:t,reset:n}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=r(i),u=n(94),s=r(u),c=8;o.__dashjs_factory_name="SwitchRequestHistory";var l=a["default"].getClassFactory(o);t["default"]=l,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(){M={throughputHalfLife:{fast:w,slow:T},latencyHalfLife:{fast:O,slow:S}},v()}function n(e,t,n){return e===a["default"].VIDEO?n<P:e===a["default"].AUDIO?n<R:void 0}function r(e,t,r){if(t.trace&&t.trace.length){var i=t.tresponse.getTime()-t.trequest.getTime()||1,a=t._tfinish.getTime()-t.tresponse.getTime()||1,u=t.trace.reduce(function(e,t){return e+t.b[0]},0),s=r?a:i+a,c=Math.round(8*u/s);if(p(e),n(e,i,a)){if(A[e].length>0&&!A[e].hasCachedEntries)return;A[e].hasCachedEntries=!0}else A[e]&&A[e].hasCachedEntries&&h(e);A[e].push(c),A[e].length>m&&A[e].shift(),C[e].push(i),C[e].length>m&&C[e].shift(),o(x[e],c,.001*a,M.throughputHalfLife),o(N[e],i,1,M.latencyHalfLife)}}function o(e,t,n,r){var o=Math.pow(.5,n/r.fast);e.fastEstimate=(1-o)*t+o*e.fastEstimate;var i=Math.pow(.5,n/r.slow);e.slowEstimate=(1-i)*t+i*e.slowEstimate,e.totalWeight+=n}function i(e,t,n){var r=void 0,o=void 0;if(e?(r=A[t],o=n?y:g):(r=C[t],o=_),r){if(o>=r.length)o=r.length;else if(e)for(var i=1;i<o;++i){var a=r[-i]/r[-i-1];if((a>=E||a<=1/b)&&(o+=1,o===r.length))break}}else o=0;return o}function u(e,t,n){return I.getMovingAverageMethod()!==a["default"].MOVING_AVERAGE_SLIDING_WINDOW?c(e,t):s(e,t,n)}function s(e,t,n){var r=i(e,t,n),o=e?A:C,a=o[t];return 0!==r&&a&&0!==a.length?(a=a.slice(-r),a.reduce(function(e,t){return e+t})/a.length):NaN}function c(e,t){var n=e?M.throughputHalfLife:M.latencyHalfLife,r=e?x[t]:N[t];if(!r||r.totalWeight<=0)return NaN;var o=r.fastEstimate/(1-Math.pow(.5,r.totalWeight/n.fast)),i=r.slowEstimate/(1-Math.pow(.5,r.totalWeight/n.slow));return e?Math.min(o,i):Math.max(o,i)}function l(e,t){return u(!0,e,t)}function f(e,t){var n=l(e,t);return isNaN(n)||(n*=I.getBandwidthSafetyFactor()),n}function d(e){return u(!1,e)}function p(e){A[e]=A[e]||[],C[e]=C[e]||[],x[e]=x[e]||{fastEstimate:0,slowEstimate:0,totalWeight:0},N[e]=N[e]||{fastEstimate:0,slowEstimate:0,totalWeight:0}}function h(e){delete A[e],delete C[e],delete x[e],delete N[e],p(e)}function v(){A={},C={},x={},N={}}e=e||{};var m=20,y=3,g=4,_=4,b=1.3,E=1.3,T=8,w=3,S=2,O=1,P=50,R=5,I=e.mediaPlayerModel,A=void 0,C=void 0,x=void 0,N=void 0,M=void 0,k={push:r,getAverageThroughput:l,getSafeAverageThroughput:f,getAverageLatency:d,reset:v};return t(),k}Object.defineProperty(t,"__esModule",{value:!0});var i=n(24),a=r(i),u=n(2),s=r(u);o.__dashjs_factory_name="ThroughputHistory",t["default"]=s["default"].getClassFactory(o),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(){g=[],_=[],f.getUseDefaultABRRules()&&(g.push((0,m["default"])(c).create({metricsModel:p,dashMetrics:v,mediaPlayerModel:f})),g.push((0,a["default"])(c).create({metricsModel:p,dashMetrics:v})),g.push((0,s["default"])(c).create({metricsModel:p,dashMetrics:v})),g.push((0,h["default"])(c).create()),g.push((0,d["default"])(c).create()),_.push((0,l["default"])(c).create({metricsModel:p,dashMetrics:v,mediaPlayerModel:f})));var e=f.getABRCustomRules();e.forEach(function(e){e.type===E&&g.push(e.rule(c).create()),e.type===T&&_.push(e.rule(c).create())})}function n(e){return e.filter(function(e){return e.quality>b["default"].NO_CHANGE})}function r(e){var t={},n=void 0,r=void 0,o=void 0,i=void 0,a=void 0;if(0!==e.length){for(t[b["default"].PRIORITY.STRONG]=b["default"].NO_CHANGE,t[b["default"].PRIORITY.WEAK]=b["default"].NO_CHANGE,t[b["default"].PRIORITY.DEFAULT]=b["default"].NO_CHANGE,n=0,r=e.length;n<r;n+=1)o=e[n],o.quality!==b["default"].NO_CHANGE&&(t[o.priority]=t[o.priority]>b["default"].NO_CHANGE?Math.min(t[o.priority],o.quality):o.quality);return t[b["default"].PRIORITY.WEAK]!==b["default"].NO_CHANGE&&(i=t[b["default"].PRIORITY.WEAK]),t[b["default"].PRIORITY.DEFAULT]!==b["default"].NO_CHANGE&&(i=t[b["default"].PRIORITY.DEFAULT]),t[b["default"].PRIORITY.STRONG]!==b["default"].NO_CHANGE&&(i=t[b["default"].PRIORITY.STRONG]),i!==b["default"].NO_CHANGE&&(a=i),(0,b["default"])(c).create(a)}}function o(e){var t=g.map(function(t){return t.getMaxIndex(e)}),o=n(t),i=r(o);return i||(0,b["default"])(c).create()}function i(e){var t=_.map(function(t){return t.shouldAbandon(e)}),o=n(t),i=r(o);return i||(0,b["default"])(c).create()}function u(){[g,_].forEach(function(e){e&&e.length&&e.forEach(function(e){return e.reset&&e.reset()})}),g=[],_=[]}e=e||{};var c=this.context,f=e.mediaPlayerModel,p=e.metricsModel,v=e.dashMetrics,y=void 0,g=void 0,_=void 0;return y={initialize:t,reset:u,getMaxQuality:o,shouldAbandonFragment:i}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1e3),a=r(i),u=n(998),s=r(u),c=n(995),l=r(c),f=n(997),d=r(f),p=n(999),h=r(p),v=n(996),m=r(v),y=n(2),g=r(y),_=n(94),b=r(_),E="qualitySwitchRules",T="abandonFragmentRules";o.__dashjs_factory_name="ABRRulesCollection";var w=g["default"].getClassFactory(o);w.QUALITY_SWITCH_RULES=E,w.ABANDON_FRAGMENT_RULES=T,g["default"].updateSingletonFactory(o.__dashjs_factory_name,w),t["default"]=w,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(){u()}function n(e,t){y[e]=y[e]||{},y[e][t]=y[e][t]||{}}function r(e,t){_[e]=_[e]||[],_[e].push(t)}function i(e){var t=(0,a["default"])(d).create(a["default"].NO_CHANGE,{name:o.__dashjs_factory_name});if(!(e&&e.hasOwnProperty("getMediaInfo")&&e.hasOwnProperty("getMediaType")&&e.hasOwnProperty("getCurrentRequest")&&e.hasOwnProperty("getRepresentationInfo")&&e.hasOwnProperty("getAbrController")))return t;var i=e.getMediaInfo(),u=e.getMediaType(),l=e.getCurrentRequest();if(!isNaN(l.index)){n(u,l.index);var b=h.getStableBufferTime(),E=m.getCurrentBufferLevel(v.getReadOnlyMetricsFor(u));if(E>b)return t;var T=y[u][l.index];if(null===T||null===l.firstByteDate||g.hasOwnProperty(T.id))return t;if(void 0===T.firstByteTime&&(_[u]=[],T.firstByteTime=l.firstByteDate.getTime(),T.segmentDuration=l.duration,T.bytesTotal=l.bytesTotal,T.id=l.index),T.bytesLoaded=l.bytesLoaded,T.elapsedTime=(new Date).getTime()-T.firstByteTime,T.bytesLoaded>0&&T.elapsedTime>0&&r(u,Math.round(8*T.bytesLoaded/T.elapsedTime)),_[u].length>=f&&T.elapsedTime>c&&T.bytesLoaded<T.bytesTotal){var w=_[u].reduce(function(e,t){return e+t},0);if(T.measuredBandwidthInKbps=Math.round(w/_[u].length),T.estimatedTimeOfDownload=+(8*T.bytesTotal/T.measuredBandwidthInKbps/1e3).toFixed(2),T.estimatedTimeOfDownload<T.segmentDuration*s||0===e.getRepresentationInfo().quality)return t;if(!g.hasOwnProperty(T.id)){var S=e.getAbrController(),O=T.bytesTotal-T.bytesLoaded,P=S.getBitrateList(i),R=S.getQualityForBitrate(i,T.measuredBandwidthInKbps*h.getBandwidthSafetyFactor()),I=T.bytesTotal*P[R].bitrate/P[S.getQualityFor(u,i.streamInfo)].bitrate;O>I&&(t.quality=R,t.reason.throughput=T.measuredBandwidthInKbps,t.reason.fragmentID=T.id,g[T.id]=T,p("AbandonRequestsRule ( ",u,"frag id",T.id,") is asking to abandon and switch to quality to ",R," measured bandwidth was",T.measuredBandwidthInKbps),delete y[u][T.id])}}else T.bytesLoaded===T.bytesTotal&&delete y[u][T.id]}return t}function u(){y={},g={},_=[]}e=e||{};var s=1.8,c=500,f=5,d=this.context,p=(0,l["default"])(d).getInstance().log,h=e.mediaPlayerModel,v=e.metricsModel,m=e.dashMetrics,y=void 0,g=void 0,_=void 0,b={shouldAbandon:i,reset:u};return t(),b}Object.defineProperty(t,"__esModule",{value:!0});var i=n(94),a=r(i),u=n(2),s=r(u),c=n(19),l=r(c);o.__dashjs_factory_name="AbandonRequestsRule",t["default"]=s["default"].getClassFactory(o),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(){M(),B.on(v["default"].BUFFER_EMPTY,S,H),B.on(v["default"].PLAYBACK_SEEKING,O,H),B.on(v["default"].PERIOD_SWITCH_STARTED,P,H),B.on(v["default"].MEDIA_FRAGMENT_LOADED,R,H),B.on(v["default"].METRIC_ADDED,I,H),B.on(v["default"].QUALITY_CHANGE_REQUESTED,C,H),B.on(v["default"].FRAGMENT_LOADING_ABANDONED,x,H)}function n(e){return e.map(function(e){return Math.log(e)})}function r(e,t,n){var r=n.reduce(function(e,t,r){return t>n[e]?r:e},0);if(0===r)return null;var o=Math.max(e,E+T*t.length),i=(n[r]-1)/(o/E-1),a=E/i;return{gp:i,Vp:a}}function o(e){var t={},o=e.getMediaInfo(),a=o.bitrateList.map(function(e){return e.bandwidth}),u=n(a);u=u.map(function(e){return e-u[0]+1});var s=U.getStableBufferTime(),c=r(s,a,u);return c?(t.state=_,t.bitrates=a,t.utilities=u,t.stableBufferTime=s,t.Vp=c.Vp,t.gp=c.gp,t.lastQuality=0,i(t)):t.state=g,t}function i(e){e.placeholderBuffer=0,e.mostAdvancedSegmentStart=NaN,e.lastSegmentWasReplacement=!1,e.lastSegmentStart=NaN,e.lastSegmentDurationS=NaN,e.lastSegmentRequestTimeMs=NaN,e.lastSegmentFinishTimeMs=NaN}function u(e,t){var n=U.getStableBufferTime();if(e.stableBufferTime!==n){var o=r(n,e.bitrates,e.utilities);if(o.Vp!==e.Vp||o.gp!==e.gp){var i=j.getCurrentBufferLevel(F.getReadOnlyMetricsFor(t)),a=i+e.placeholderBuffer;a-=E,a*=o.Vp/e.Vp,a+=E,e.stableBufferTime=n,e.Vp=o.Vp,e.gp=o.gp,e.placeholderBuffer=Math.max(0,a-i)}}}function c(e){var t=e.getMediaType(),n=q[t];return n?n.state!==g&&u(n,t):(n=o(e),q[t]=n),n}function l(e,t){for(var n=e.bitrates.length,r=NaN,o=NaN,i=0;i<n;++i){var a=(e.Vp*(e.utilities[i]+e.gp)-t)/e.bitrates[i];(isNaN(o)||a>=o)&&(o=a,r=i)}return r}function d(e,t){return e.Vp*(e.utilities[t]+e.gp)}function h(e,t){for(var n=e.bitrates[t],r=e.utilities[t],o=0,i=t-1;i>=0;--i)if(e.utilities[i]<e.utilities[t]){var a=e.bitrates[i],u=e.utilities[i],s=e.Vp*(e.gp+(n*u-a*r)/(n-a));o=Math.max(o,s)}return o}function m(e,t){var n=Date.now();if(isNaN(e.lastSegmentFinishTimeMs)){if(!isNaN(e.lastCallTimeMs)){var r=.001*(n-e.lastCallTimeMs);e.placeholderBuffer+=Math.max(0,r)}}else{var r=.001*(n-e.lastSegmentFinishTimeMs);e.placeholderBuffer+=Math.max(0,r)}e.lastCallTimeMs=n,e.lastSegmentStart=NaN,e.lastSegmentRequestTimeMs=NaN,e.lastSegmentFinishTimeMs=NaN,u(e,t)}function S(){for(var e in q)q.hasOwnProperty(e)&&q[e].state===b&&(q[e].placeholderBuffer=0)}function O(){for(var e in q)if(q.hasOwnProperty(e)){var t=q[e];t.state!==g&&(t.state=_,i(t))}}function P(){}function R(e){if(e&&e.chunk&&e.chunk.mediaInfo){var t=q[e.chunk.mediaInfo.type];if(t&&t.state!==g){var n=e.chunk.start;isNaN(t.mostAdvancedSegmentStart)||n>t.mostAdvancedSegmentStart?(t.mostAdvancedSegmentStart=n,t.lastSegmentWasReplacement=!1):t.lastSegmentWasReplacement=!0,t.lastSegmentStart=n,t.lastSegmentDurationS=e.chunk.duration,t.lastQuality=e.chunk.quality,A(t,e.chunk.mediaInfo.type)}}}function I(e){if(e&&e.metric===a["default"].HTTP_REQUEST&&e.value&&e.value.type===f.HTTPRequest.MEDIA_SEGMENT_TYPE&&e.value.trace&&e.value.trace.length){var t=q[e.mediaType];t&&t.state!==g&&(t.lastSegmentRequestTimeMs=e.value.trequest.getTime(),t.lastSegmentFinishTimeMs=e.value._tfinish.getTime(),A(t,e.mediaType))}}function A(e,t){if(!isNaN(e.lastSegmentStart)&&!isNaN(e.lastSegmentRequestTimeMs)&&!isNaN(e.placeholderBuffer)){if(e.placeholderBuffer*=w,!isNaN(e.lastSegmentFinishTimeMs)){var n=j.getCurrentBufferLevel(F.getReadOnlyMetricsFor(t)),r=n+.001*(e.lastSegmentFinishTimeMs-e.lastSegmentRequestTimeMs),o=d(e,e.lastQuality),i=Math.max(0,o-r);e.placeholderBuffer=Math.min(i,e.placeholderBuffer)}e.lastSegmentWasReplacement&&!isNaN(e.lastSegmentDurationS)&&(e.placeholderBuffer+=e.lastSegmentDurationS),e.lastSegmentStart=NaN,e.lastSegmentRequestTimeMs=NaN}}function C(e){if(e){var t=q[e.mediaType];t&&t.state!==g&&(t.abrQuality=e.newQuality)}}function x(e){if(e){var t=q[e.mediaType];if(t&&t.state!==g){var n=j.getCurrentBufferLevel(F.getReadOnlyMetricsFor(e.mediaType)),r=void 0;r=t.abrQuality>0?h(t,t.abrQuality):E;var o=Math.max(0,r-n);t.placeholderBuffer=Math.min(t.placeholderBuffer,o)}}}function N(e){var t=e.getMediaInfo(),n=e.getMediaType(),r=F.getReadOnlyMetricsFor(n),o=e.getStreamProcessor(),a=e.getStreamInfo(),u=e.getAbrController(),f=u.getThroughputHistory(),p=a?a.id:null,v=a&&a.manifestInfo&&a.manifestInfo.isDynamic,y=e.useBufferOccupancyABR(),E=(0,s["default"])(D).create();if(E.reason=E.reason||{},!y)return E;o.getScheduleController().setTimeToLoadDelay(0);var T=c(e);if(T.state===g)return L("BOLA ABR rule invoked for media type '"+n+"' with only one bitrate."),E;var w=j.getCurrentBufferLevel(r),S=f.getAverageThroughput(n,v),O=f.getSafeAverageThroughput(n,v),P=f.getAverageLatency(n),R=void 0;if(E.reason.state=T.state,E.reason.throughput=S,E.reason.latency=P,isNaN(S))return E;switch(T.state){case _:R=u.getQualityForBitrate(t,O,P),E.quality=R,E.reason.throughput=O,T.placeholderBuffer=Math.max(0,h(T,R)-w),T.lastQuality=R,!isNaN(T.lastSegmentDurationS)&&w>=T.lastSegmentDurationS&&(T.state=b);break;case b:m(T,n),R=l(T,w+T.placeholderBuffer);var I=u.getQualityForBitrate(t,O,P);R>T.lastQuality&&R>I&&(R=Math.max(I,T.lastQuality));var A=Math.max(0,w+T.placeholderBuffer-d(T,R));A<=T.placeholderBuffer?(T.placeholderBuffer-=A,A=0):(A-=T.placeholderBuffer,T.placeholderBuffer=0,R<u.getTopQualityIndexFor(n,p)?o.getScheduleController().setTimeToLoadDelay(1e3*A):A=0),E.quality=R,E.reason.throughput=S,E.reason.latency=P,E.reason.bufferLevel=w,E.reason.placeholderBuffer=T.placeholderBuffer,E.reason.delay=A,T.lastQuality=R;break;default:L("BOLA ABR rule invoked in bad state."),E.quality=u.getQualityForBitrate(t,O,P),E.reason.state=T.state,E.reason.throughput=O,E.reason.latency=P,T.state=_,i(T)}return E}function M(){q={}}function k(){M(),B.off(v["default"].BUFFER_EMPTY,S,H),B.off(v["default"].PLAYBACK_SEEKING,O,H),B.off(v["default"].PERIOD_SWITCH_STARTED,P,H),B.off(v["default"].MEDIA_FRAGMENT_LOADED,R,H),B.off(v["default"].METRIC_ADDED,I,H),B.off(v["default"].QUALITY_CHANGE_REQUESTED,C,H),B.off(v["default"].FRAGMENT_LOADING_ABANDONED,x,H)}e=e||{};var D=this.context,L=(0,y["default"])(D).getInstance().log,j=e.dashMetrics,F=e.metricsModel,U=e.mediaPlayerModel,B=(0,p["default"])(D).getInstance(),H=void 0,q=void 0;return H={getMaxIndex:N,reset:k},t(),H}Object.defineProperty(t,"__esModule",{value:!0});var i=n(156),a=r(i),u=n(94),s=r(u),c=n(2),l=r(c),f=n(45),d=n(12),p=r(d),h=n(14),v=r(h),m=n(19),y=r(m),g=0,_=1,b=2,E=10,T=2,w=.99;o.__dashjs_factory_name="BolaRule",t["default"]=l["default"].getClassFactory(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(e){var i=e.getDroppedFramesHistory();if(i){for(var a=i.getFrameHistory(),u=0,c=0,l=s["default"].NO_CHANGE,f=1;f<a.length;f++)if(a[f]&&(u=a[f].droppedVideoFrames,c=a[f].totalVideoFrames,c>o&&u/c>r)){l=f-1,n("DroppedFramesRule, index: "+l+" Dropped Frames: "+u+" Total Frames: "+c);break}return(0,s["default"])(t).create(l,{droppedFrames:u})}return(0,s["default"])(t).create()}var t=this.context,n=(0,l["default"])(t).getInstance().log,r=.15,o=375;return{getMaxIndex:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=r(i),u=n(94),s=r(u),c=n(19),l=r(c);o.__dashjs_factory_name="DroppedFramesRule",t["default"]=a["default"].getClassFactory(o),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(){i(),v.on(l["default"].PLAYBACK_SEEKING,u,_)}function n(){if(!(y&&y.hasOwnProperty("getReadOnlyMetricsFor")&&g&&g.hasOwnProperty("getCurrentBufferLevel")))throw new Error("Missing config parameter(s)")}function r(e){var t=(0,m["default"])(d).create();if(!e||!e.hasOwnProperty("getMediaType"))return t;n();var r=e.getMediaType(),i=y.getReadOnlyMetricsFor(r),u=i.BufferState.length>0?i.BufferState[i.BufferState.length-1]:null,s=e.getRepresentationInfo(),c=s.fragmentDuration;if(!u||!o(r,u)||!c)return t;if(u.state===a["default"].BUFFER_EMPTY)p("Switch to index 0; buffer is empty."),t.quality=0,t.reason="InsufficientBufferRule: Buffer is empty";else{var l=e.getMediaInfo(),h=e.getAbrController(),v=h.getThroughputHistory(),_=g.getCurrentBufferLevel(i),b=v.getAverageThroughput(r),E=v.getAverageLatency(r),T=b*(_/c)*f;t.quality=h.getQualityForBitrate(l,T,E),t.reason="InsufficientBufferRule: being conservative to avoid immediate rebuffering"}return t}function o(e,t){b[e]=b[e]||{};var n=!1;return b[e].firstBufferLoadedEvent?n=!0:t&&t.state===a["default"].BUFFER_LOADED&&(b[e].firstBufferLoadedEvent=!0,n=!0),n}function i(){b={}}function u(){i()}function c(){i(),v.off(l["default"].PLAYBACK_SEEKING,u,_)}e=e||{};var f=.5,d=this.context,p=(0,h["default"])(d).getInstance().log,v=(0,s["default"])(d).getInstance(),y=e.metricsModel,g=e.dashMetrics,_=void 0,b=void 0;return _={getMaxIndex:r,reset:c},t(),_}Object.defineProperty(t,"__esModule",{value:!0});var i=n(134),a=r(i),u=n(12),s=r(u),c=n(14),l=r(c),f=n(2),d=r(f),p=n(19),h=r(p),v=n(94),m=r(v);o.__dashjs_factory_name="InsufficientBufferRule",t["default"]=d["default"].getClassFactory(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(e){for(var i=e?e.getSwitchHistory():null,a=i?i.getSwitchRequests():[],u=0,s=0,c=0,f=(0,l["default"])(t).create(),d=0;d<a.length;d++)if(void 0!==a[d]&&(u+=a[d].drops,s+=a[d].noDrops,c+=a[d].dropSize,u+s>=o&&u/s>r)){f.quality=d>0&&a[d].drops>0?d-1:d,f.reason={index:f.quality,drops:u,noDrops:s,dropSize:c},n("Switch history rule index: "+f.quality+" samples: "+(u+s)+" drops: "+u);break}return f}var t=this.context,n=(0,s["default"])(t).getInstance().log,r=.075,o=6;return{getMaxIndex:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=r(i),u=n(19),s=r(u),c=n(94),l=r(c);o.__dashjs_factory_name="SwitchHistoryRule",t["default"]=a["default"].getClassFactory(o),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(){if(!u||!u.hasOwnProperty("getReadOnlyMetricsFor"))throw new Error("Missing config parameter(s)")}function n(e){var n=(0,h["default"])(o).create();if(!(e&&e.hasOwnProperty("getMediaInfo")&&e.hasOwnProperty("getMediaType")&&e.hasOwnProperty("useBufferOccupancyABR")&&e.hasOwnProperty("getAbrController")&&e.hasOwnProperty("getStreamProcessor")))return n;t();var r=e.getMediaInfo(),c=e.getMediaType(),l=u.getReadOnlyMetricsFor(c),f=e.getStreamProcessor(),d=e.getAbrController(),p=e.getStreamInfo(),v=p&&p.manifestInfo?p.manifestInfo.isDynamic:null,m=d.getThroughputHistory(),y=m.getSafeAverageThroughput(c,v),g=m.getAverageLatency(c),_=l.BufferState.length>0?l.BufferState[l.BufferState.length-1]:null,b=e.useBufferOccupancyABR();return!l||isNaN(y)||!_||b?n:(d.getAbandonmentStateFor(c)!==s["default"].ABANDON_LOAD&&(_.state===a["default"].BUFFER_LOADED||v)&&(n.quality=d.getQualityForBitrate(r,y,g),f.getScheduleController().setTimeToLoadDelay(0),i("ThroughputRule requesting switch to index: ",n.quality,"type: ",c,"Average throughput",Math.round(y),"kbps"),n.reason={throughput:y,latency:g}),n)}function r(){}e=e||{};var o=this.context,i=(0,d["default"])(o).getInstance().log,u=e.metricsModel,c={getMaxIndex:n,reset:r};return c}Object.defineProperty(t,"__esModule",{value:!0});var i=n(134),a=r(i),u=n(239),s=r(u),c=n(2),l=r(c),f=n(19),d=r(f),p=n(94),h=r(p);o.__dashjs_factory_name="ThroughputRule",t["default"]=l["default"].getClassFactory(o),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(){}function n(e,t,n){var a=o.getCurrentBufferLevel(i.getReadOnlyMetricsFor(t));return a<r(e,t,n)}function r(e,t,n){var r=NaN,l=e.getCurrentRepresentationInfo();if(t===a["default"].FRAGMENTED_TEXT)r=s.getAllTracksAreDisabled()?0:l.fragmentDuration;else if(t===a["default"].AUDIO&&n){var f=o.getCurrentBufferLevel(i.getReadOnlyMetricsFor(a["default"].VIDEO));r=isNaN(l.fragmentDuration)?f:Math.max(f,l.fragmentDuration)}else{var d=l.mediaInfo.streamInfo;if(c.isPlayingAtTopQuality(d)){var p=d.manifestInfo.duration>=u.getLongFormContentDurationThreshold();r=p?u.getBufferTimeAtTopQualityLongForm():u.getBufferTimeAtTopQuality()}else r=u.getStableBufferTime()}return r}e=e||{};var o=e.dashMetrics,i=e.metricsModel,u=e.mediaPlayerModel,s=e.textController,c=e.abrController,l={execute:n,getBufferTarget:r};return t(),l}Object.defineProperty(t,"__esModule",{value:!0});var i=n(24),a=r(i),u=n(2),s=r(u);o.__dashjs_factory_name="BufferLevelRule",t["default"]=s["default"].getClassFactory(o),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(e,t){var n=e.getCurrentRepresentationInfo(),s=n.mediaInfo,c=s.type,l=e.getScheduleController(),f=l.getSeekTarget(),d=!isNaN(f),p=e.getBuffer(),h=d?f:o.getIndexHandlerTime(e);if(isNaN(h)||c===a["default"].FRAGMENTED_TEXT&&u.getAllTracksAreDisabled())return null;if(d&&l.setSeekTarget(NaN),p){var v=i.getBufferRange(p,h);null!==v&&(r("Prior to making a request for time, NextFragmentRequestRule is aligning index handler's currentTime with bufferedRange.end.",h," was changed to ",v.end),h=v.end)}var m=void 0;if(t)h=t.startTime+t.duration/2,m=o.getFragmentRequestForTime(e,n,h,{timeThreshold:0,ignoreIsFinished:!0});else{for(m=o.getFragmentRequestForTime(e,n,h,{keepIdx:!d});e.getFragmentModel().isFragmentLoaded(m);)m=o.getNextFragmentRequest(e,n);m&&(o.setIndexHandlerTime(e,m.startTime+m.duration),m.delayLoadingTime=(new Date).getTime()+l.getTimeToLoadDelay(),l.setTimeToLoadDelay(0))}return m}e=e||{};var n=this.context,r=(0,s["default"])(n).getInstance().log,o=e.adapter,i=e.sourceBufferController,u=e.textController,c={execute:t};return c}Object.defineProperty(t,"__esModule",{value:!0});var i=n(24),a=r(i),u=n(19),s=r(u),c=n(2),l=r(c);o.__dashjs_factory_name="NextFragmentRequestRule",t["default"]=l["default"].getClassFactory(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(e){for(var t="",n=0;n<e.length;++n){var r=e[n];t+=r.uchar}var o=t.length,i=t.replace(/^\s+/,"").length;return o-i}function t(e){return"left: "+3.125*e.x+"%; top: "+6.66*e.y1+"%; width: "+(100-3.125*e.x)+"%; height: "+6.66*Math.max(e.y2-1-e.y1,1)+"%; align-items: flex-start; overflow: visible; -webkit-writing-mode: horizontal-tb;"}function n(e){return"red"===e?"rgb(255, 0, 0)":"green"===e?"rgb(0, 255, 0)":"blue"===e?"rgb(0, 0, 255)":"cyan"===e?"rgb(0, 255, 255)":"magenta"===e?"rgb(255, 0, 255)":"yellow"===e?"rgb(255, 255, 0)":"white"===e?"rgb(255, 255, 255)":"black"===e?"rgb(0, 0, 0)":e}function r(e,t){var r=e.videoHeight/15;return t?"font-size: "+r+"px; font-family: Menlo, Consolas, 'Cutive Mono', monospace; color: "+(t.foreground?n(t.foreground):"rgb(255, 255, 255)")+"; font-style: "+(t.italics?"italic":"normal")+"; text-decoration: "+(t.underline?"underline":"none")+"; white-space: pre; background-color: "+(t.background?n(t.background):"transparent")+";":"font-size: "+r+"px; font-family: Menlo, Consolas, 'Cutive Mono', monospace; justify-content: flex-start; text-align: left; color: rgb(255, 255, 255); font-style: normal; white-space: pre; line-height: normal; font-weight: normal; text-decoration: none; width: 100%; display: flex;"}function o(e){var t=e.replace(/^\s+/g,"");return t}function i(e){var t=e.replace(/\s+$/g,"");return t}function a(n,a,s,c){var l=null,f=null,d=!1,p=-1,h={start:a,end:s,spans:[]},v="style_cea608_white_black",m={},y={},g=[],_=void 0,b=void 0;for(_=0;_<15;++_){var E=c.rows[_],T="",w=null;if(!1===E.isEmpty()){var S=e(E.chars);null===l&&(l={x:S,y1:_,y2:_+1,p:[]}),S!==p&&d&&(l.p.push(h),h={start:a,end:s,spans:[]},l.y2=_,l.name="region_"+l.x+"_"+l.y1+"_"+l.y2,!1===m.hasOwnProperty(l.name)?(g.push(l),m[l.name]=l):(f=m[l.name],f.p.contat(l.p)),l={x:S,y1:_,y2:_+1,p:[]});for(var O=0;O<E.chars.length;++O){var P=E.chars[O],R=P.penState;if(null===w||!R.equals(w)){T.trim().length>0&&(h.spans.push({name:v,line:T,row:_}),T="");var I="style_cea608_"+R.foreground+"_"+R.background;R.underline&&(I+="_underline"),R.italics&&(I+="_italics"),y.hasOwnProperty(I)||(y[I]=JSON.parse(JSON.stringify(R))),w=R,v=I}T+=P.uchar}T.trim().length>0&&h.spans.push({name:v,line:T,row:_}),d=!0,p=S}else d=!1,p=-1,l&&(l.p.push(h),h={start:a,end:s,spans:[]},l.y2=_,l.name="region_"+l.x+"_"+l.y1+"_"+l.y2,!1===m.hasOwnProperty(l.name)?(g.push(l),m[l.name]=l):(f=m[l.name],f.p.contat(l.p)),l=null)}l&&(l.p.push(h),l.y2=_+1,l.name="region_"+l.x+"_"+l.y1+"_"+l.y2,!1===m.hasOwnProperty(l.name)?(g.push(l),m[l.name]=l):(f=m[l.name],f.p.contat(l.p)),l=null);var A=[];for(_=0;_<g.length;++_){var C=g[_],x="sub_cea608_"+u++,N=document.createElement("div");N.id=x;var M=t(C);N.style.cssText="position: absolute; margin: 0; display: flex; box-sizing: border-box; pointer-events: none;"+M;var k=document.createElement("div");k.className="paragraph bodyStyle",k.style.cssText=r(n);var D=document.createElement("div");D.className="cueUniWrapper",
D.style.cssText="unicode-bidi: normal; direction: ltr;";for(var L=0;L<C.p.length;++L){var j=C.p[L],F=0;for(b=0;b<j.spans.length;++b){var U=j.spans[b];if(U.line.length>0){if(0!==b&&F!=U.row){var B=document.createElement("br");B.className="lineBreak",D.appendChild(B)}var H=!1;F===U.row&&(H=!0),F=U.row;var q=y[U.name],V=document.createElement("span");V.className="spanPadding "+U.name+" customSpanColor",V.style.cssText=r(n,q),0!==b&&H?b===j.spans.length-1?V.textContent=i(U.line):V.textContent=U.line:j.spans.length>1&&b<j.spans.length-1&&U.row===j.spans[b+1].row?V.textContent=o(U.line):V.textContent=U.line.trim(),D.appendChild(V)}}}k.appendChild(D),N.appendChild(k);var G={bodyStyle:["%",90]};for(b in y)y.hasOwnProperty(b)&&(G[b]=["%",90]);A.push({type:"html",start:a,end:s,cueHTMLElement:N,cueID:x,cellResolution:[32,15],isFromCEA608:!0,regions:g,regionID:C.name,videoHeight:n.videoHeight,videoWidth:n.videoWidth,fontSize:G,lineHeight:{},linePadding:{}})}return A}var u=0,s=void 0;return s={createHTMLCaptionsFromScreen:a}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=r(i);o.__dashjs_factory_name="EmbeddedTextHtmlRender",t["default"]=a["default"].getSingletonFactory(o),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(){N=!1,M=null,k=null,L=null,x=!1,O.on(l["default"].DATA_UPDATE_COMPLETED,E,this),O.on(l["default"].INIT_FRAGMENT_LOADED,T,this)}function n(){return v}function r(e){f(e),L=A.getRepresentationController(),j=(0,h["default"])(S).getInstance()}function o(e){try{k=P.createSourceBuffer(M,e),N||(k.hasOwnProperty(a["default"].INITIALIZE)&&k.initialize(I,A),N=!0)}catch(t){R.mediaSourceError("Error creating "+I+" source buffer.")}return k}function i(){return I}function u(){return k}function c(e){k=e}function f(e){M=e}function d(){return M}function p(){return A}function m(e){D=e}function y(){return D}function g(){return 0}function _(){return x}function b(e){O.off(l["default"].DATA_UPDATE_COMPLETED,E,this),O.off(l["default"].INIT_FRAGMENT_LOADED,T,this),e||(P.abort(M,k),P.removeSourceBuffer(M,k))}function E(e){e.sender.getStreamProcessor()===A&&O.trigger(l["default"].TIMED_TEXT_REQUESTED,{index:0,sender:e.sender})}function T(e){e.fragmentModel===A.getFragmentModel()&&e.chunk.bytes&&(j.save(e.chunk),P.append(k,e.chunk))}function w(e,t){var n=j.extract(e,t);n?P.append(k,n):O.trigger(l["default"].INIT_REQUESTED,{sender:C})}e=e||{};var S=this.context,O=(0,s["default"])(S).getInstance(),P=e.sourceBufferController,R=e.errHandler,I=e.type,A=e.streamProcessor,C=void 0,x=void 0,N=void 0,M=void 0,k=void 0,D=void 0,L=void 0,j=void 0;return C={getBufferControllerType:n,initialize:r,createBuffer:o,getType:i,getStreamProcessor:p,setSeekStartTime:m,getSeekStartTime:y,getBuffer:u,setBuffer:c,getBufferLevel:g,setMediaSource:f,getMediaSource:d,getIsBufferingCompleted:_,switchInitData:w,reset:b},t(),C}Object.defineProperty(t,"__esModule",{value:!0});var i=n(24),a=r(i),u=n(12),s=r(u),c=n(14),l=r(c),f=n(2),d=r(f),p=n(340),h=r(p),v="NotFragmentedTextBufferController";o.__dashjs_factory_name=v,t["default"]=d["default"].getClassFactory(o),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(){b=e.type===a["default"].FRAGMENTED_TEXT?(0,l["default"])(_).create({type:e.type,metricsModel:e.metricsModel,mediaPlayerModel:e.mediaPlayerModel,manifestModel:e.manifestModel,sourceBufferController:e.sourceBufferController,errHandler:e.errHandler,streamController:e.streamController,mediaController:e.mediaController,adapter:e.adapter,textController:e.textController,abrController:e.abrController,playbackController:e.playbackController,streamProcessor:e.streamProcessor}):(0,d["default"])(_).create({type:e.type,errHandler:e.errHandler,sourceBufferController:e.sourceBufferController,streamProcessor:e.streamProcessor})}function n(){return b.getBufferControllerType()}function r(e,t){return b.initialize(e,t)}function o(e){return b.createBuffer(e)}function i(){return b.getType()}function u(){return b.getBuffer()}function s(e){b.setBuffer(e)}function c(){return b.getMediaSource()}function f(e){b.setMediaSource(e)}function p(){b.getStreamProcessor()}function h(e){b.setSeekStartTime(e)}function v(){return b.getBufferLevel()}function m(e){b.reset(e)}function y(){return b.getIsBufferingCompleted()}function g(e,t){b.switchInitData(e,t)}e=e||{};var _=this.context,b=void 0,E=void 0;return E={getBufferControllerType:n,initialize:r,createBuffer:o,getType:i,getStreamProcessor:p,setSeekStartTime:h,getBuffer:u,setBuffer:s,getBufferLevel:v,setMediaSource:f,getMediaSource:c,getIsBufferingCompleted:y,switchInitData:g,reset:m},t(),E}Object.defineProperty(t,"__esModule",{value:!0});var i=n(24),a=r(i),u=n(2),s=r(u),c=n(134),l=r(c),f=n(1004),d=r(f);o.__dashjs_factory_name="TextBufferController",t["default"]=s["default"].getClassFactory(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(){L="",j=-1,F=!0,N=(0,d["default"])(w).getInstance(),M=(0,h["default"])(w).getInstance(),k=(0,m["default"])(w).getInstance(),O=(0,l["default"])(w).getInstance(),D=(0,g["default"])(w).getInstance(),N.initialize(),D.on(b["default"].TEXT_TRACKS_QUEUE_INITIALIZED,s,S),E()}function t(e){e&&(e.errHandler&&(P=e.errHandler),e.dashManifestModel&&(R=e.dashManifestModel),e.manifestModel&&(I=e.manifestModel),e.mediaController&&(A=e.mediaController),e.videoModel&&(C=e.videoModel),e.streamController&&(x=e.streamController),e.textTracks&&(N=e.textTracks),e.vttParser&&(M=e.vttParser),e.ttmlParser&&(k=e.ttmlParser),O.setConfig({errHandler:P,dashManifestModel:R,manifestModel:I,mediaController:A,videoModel:C,streamController:x,textTracks:N,vttParser:M,ttmlParser:k}))}function n(){return O}function r(){return U}function o(e){O.addEmbeddedTrack(e)}function i(e){"string"==typeof e&&(L=e)}function u(){return L}function s(e){var t=e.tracks,n=e.index,r=t.findIndex(function(e){return e.lang===L});r!==-1&&(this.setTextTrack(r),n=r),F||this.setTextTrack(-1),j=n,D.trigger(b["default"].TEXT_TRACKS_ADDED,{enabled:!U,index:n,tracks:t})}function c(e){"boolean"==typeof e&&(F=e)}function f(){return F}function p(e){if("boolean"==typeof e){var t=!U;t!==e&&(e&&this.setTextTrack(j),e||(j=this.getCurrentTrackIdx(),this.setTextTrack(-1)))}}function v(){return!U}function y(e){var t=O.getConfig(),n=t.fragmentModel,r=t.fragmentedTracks,o=N.getCurrentTrackIdx();if(o!==e){N.setModeForTrackIdx(o,a["default"].TEXT_HIDDEN),N.setCurrentTrackIdx(e),N.setModeForTrackIdx(e,a["default"].TEXT_SHOWING);var i=N.getCurrentTrackInfo();if(i&&i.isFragmented&&!i.isEmbedded)for(var u=0;u<r.length;u++){var s=r[u];if(i.lang===s.lang&&i.index===s.index&&(!i.label||i.label===s.id)){var c=A.getCurrentTrackFor(a["default"].FRAGMENTED_TEXT,x.getActiveStreamInfo());s!==c&&(n.abortRequests(),n.removeExecutedRequestsBeforeTime(),O.remove(),N.deleteCuesFromTrackIdx(o),A.setTrack(s),O.setCurrentFragmentedTrackIdx(u))}}}U=e===-1}function _(){return N.getCurrentTrackIdx()}function E(){U=!1}function T(){E(),O.resetEmbedded()}var w=this.context,S=void 0,O=void 0,P=void 0,R=void 0,I=void 0,A=void 0,C=void 0,x=void 0,N=void 0,M=void 0,k=void 0,D=void 0,L=void 0,j=void 0,F=void 0,U=void 0;return S={setConfig:t,getTextSourceBuffer:n,getAllTracksAreDisabled:r,addEmbeddedTrack:o,getTextDefaultLanguage:u,setTextDefaultLanguage:i,setTextDefaultEnabled:c,getTextDefaultEnabled:f,enableText:p,isTextEnabled:v,setTextTrack:y,getCurrentTrackIdx:_,reset:T},e(),S}Object.defineProperty(t,"__esModule",{value:!0});var i=n(24),a=r(i),u=n(2),s=r(u),c=n(1007),l=r(c),f=n(338),d=r(f),p=n(1015),h=r(p),v=n(1014),m=r(v),y=n(12),g=r(y),_=n(14),b=r(_);o.__dashjs_factory_name="TextController",t["default"]=s["default"].getSingletonFactory(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(e,t){if(j=null,G=null,W=!1,K=NaN,Y=[],$=null,I||r(),H=t.getMediaInfoArr(),q.setConfig({videoModel:z}),q.initialize(),V=!k.getIsTextTrack(e),N=(0,p["default"])(T).getInstance(),B=(0,f["default"])(T).getInstance(),B.setConfig({boxParser:N}),V){G=t.getFragmentModel(),this.buffered=(0,v["default"])(T).create(),Y=L.getTracksFor(a["default"].FRAGMENTED_TEXT,X.getActiveStreamInfo());for(var n=L.getCurrentTrackFor(a["default"].FRAGMENTED_TEXT,X.getActiveStreamInfo()),o=0;o<Y.length;o++)if(Y[o]===n){Q=o;break}}}function t(){q.deleteAllTextTracks(),j=null,B=null,H=null,q=null,V=!1,G=null,W=!1,K=NaN,Y=[],z=null,X=null,I=!1,J=null}function n(e){var t=e.chunk;t.mediaInfo.embeddedCaptions&&h(t.bytes,t)}function r(){J=[],H=[],q=(0,E["default"])(T).getInstance(),q.setConfig({videoModel:z}),q.initialize(),N=(0,p["default"])(T).getInstance(),B=(0,f["default"])(T).getInstance(),B.setConfig({boxParser:N}),V=!1,Q=null,Z=!1,ee=0,re=[],ne=[],te=null,I=!0,oe=(0,w["default"])(T).getInstance(),P.on(x["default"].VIDEO_CHUNK_RECEIVED,n,this)}function o(){P.off(x["default"].VIDEO_CHUNK_RECEIVED,n,this),q&&q.deleteAllTextTracks(),I=!1,J=[],re=[null,null],ne=[],te=null}function i(e){I||r(),e.id===a["default"].CC1||e.id===a["default"].CC3?J.push(e):S("Warning: Embedded track "+e.id+" not supported!")}function s(e){e&&(e.errHandler&&(M=e.errHandler),e.dashManifestModel&&(k=e.dashManifestModel),e.manifestModel&&(D=e.manifestModel),e.mediaController&&(L=e.mediaController),e.videoModel&&(z=e.videoModel),e.streamController&&(X=e.streamController),e.textTracks&&(q=e.textTracks),e.vttParser&&(F=e.vttParser),e.ttmlParser&&(U=e.ttmlParser))}function l(){var e={errHandler:M,dashManifestModel:k,mediaController:L,videoModel:z,fragmentModel:G,streamController:X,textTracks:q,isFragmented:V,embeddedTracks:J,fragmentedTracks:Y};return e}function d(e){Q=e}function h(e,t){function n(e,t){var n=new c["default"],r={subtitle:"subtitles",caption:"captions"},o=function(){var e=t.roles.length>0?r[t.roles[0]]:r.caption;return e=e===r.caption||e===r.subtitle?e:r.caption},i=function(){var e=!1;return t.codec&&t.codec.search(a["default"].STPP)>=0&&(e=!0),t.mimeType&&t.mimeType.search(a["default"].TTML)>=0&&(e=!0),e};n.captionData=e,n.lang=t.lang,n.label=t.id,n.index=t.index,n.isTTML=i(),n.defaultTrack=y(t),n.isFragmented=V,n.isEmbedded=!!t.isEmbedded,n.kind=o(),n.roles=t.roles;var u=(H?H.length:0)+J.length;q.addTextTrack(n,u)}var r=void 0,o=void 0,i=void 0,s=void 0,l=void 0,f=void 0,d=void 0,p=t.mediaInfo,h=p.type,v=p.mimeType,_=p.codec||v;if(!_)return void S("No text type defined");if(h===a["default"].FRAGMENTED_TEXT)if(W)if(f=B.getSamplesInfo(e),o=f.sampleList,!$&&o.length>0&&($=o[0].cts-t.start*K),_.search(a["default"].STPP)>=0)for(j=null!==j?j:g(_),i=0;i<o.length;i++){var b=o[i],E=b.cts,T=E-$;this.buffered.add(T/K,(T+b.duration)/K);var w=new DataView(e,b.offset,b.subSizes[0]);d=O["default"].Utils.dataViewToString(w,a["default"].UTF8);var P=[],I=b.offset+b.subSizes[0];for(s=1;s<b.subSizes.length;s++){var A=new Uint8Array(e,I,b.subSizes[s]),C=String.fromCharCode.apply(null,A);P.push(C),I+=b.subSizes[s]}try{var x=D.getValue(),N=x.ttmlTimeIsRelative?E/K:0;r=j.parse(d,N,E/K,(E+b.duration)/K,P),q.addCaptions(Q,$/K,r)}catch(k){S("TTML parser error: "+k.message)}}else{var L=[];for(i=0;i<o.length;i++){var b=o[i];b.cts-=$,this.buffered.add(b.cts/K,(b.cts+b.duration)/K);var F=e.slice(b.offset,b.offset+b.size),U=O["default"].parseBuffer(F);for(s=0;s<U.boxes.length;s++){var G=U.boxes[s];if(S("VTT box1: "+G.type),"vtte"!==G.type&&"vttc"===G.type)for(S("VTT vttc boxes.length = "+G.boxes.length),l=0;l<G.boxes.length;l++){var Y=G.boxes[l];if(S("VTT box2: "+Y.type),"payl"===Y.type){var X=Y.cue_text;S("VTT cue_text = "+X);var Z=b.cts/K,ie=(b.cts+b.duration)/K;L.push({start:Z,end:ie,data:X,styles:{}}),S("VTT "+Z+"-"+ie+" : "+X)}}}}L.length>0&&q.addCaptions(Q,0,L)}else{for(W=!0,i=0;i<H.length;i++)n(null,H[i]);K=B.getMediaTimescaleFromMoov(e)}else if(h===a["default"].TEXT){var w=new DataView(e,0,e.byteLength);d=O["default"].Utils.dataViewToString(w,a["default"].UTF8);try{r=g(_).parse(d,0),n(r,p)}catch(k){M.timedTextError(k,"parse",d)}}else if(h===a["default"].VIDEO)if(t.segmentType===u.HTTPRequest.INIT_SEGMENT_TYPE){if(0===ee)for(ee=B.getMediaTimescaleFromMoov(e),i=0;i<J.length;i++)n(null,J[i])}else{if(0===ee)return void S("CEA-608: No timescale for embeddedTextTrack yet");var ae=function(e,t){function n(e,n,r){var o=null;if(z.getTTMLRenderingDiv())o=oe.createHTMLCaptionsFromScreen(z.getElement(),e,n,r);else{var i=r.getDisplayText();o=[{start:e,end:n,data:i,styles:{}}]}o&&q.addCaptions(t,0,o)}return n};f=B.getSamplesInfo(e);var ue=f.lastSequenceNumber;if(!re[0]&&!re[1]){var se=void 0,ce=void 0,le=void 0;for(i=0;i<J.length;i++){if(J[i].id===a["default"].CC1?(se=0,le=q.getTrackIdxForId(a["default"].CC1)):J[i].id===a["default"].CC3&&(se=1,le=q.getTrackIdxForId(a["default"].CC3)),le===-1)return void S("CEA-608: data before track is ready.");ce=ae(this,le),re[i]=new R["default"].Cea608Parser(i,{newCue:ce},null)}}if(ee&&ne.indexOf(ue)==-1){if(null!==te&&ue!==te+f.numSequences)for(i=0;i<re.length;i++)re[i]&&re[i].reset();for(var fe=m(e,f.sampleList),de=0;de<re.length;de++){var pe=fe.fields[de],he=re[de];if(he)for(i=0;i<pe.length;i++)he.addData(pe[i][0]/ee,pe[i][1])}te=ue,ne.push(ue)}}}function m(e,t){if(0===t.length)return null;for(var n={splits:[],fields:[[],[]]},r=new DataView(e),o=0;o<t.length;o++)for(var i=t[o],a=R["default"].findCea608Nalus(r,i.offset,i.size),u=null,s=0,c=0;c<a.length;c++)for(var l=R["default"].extractCea608DataFromRange(r,a[c]),f=0;f<2;f++)l[f].length>0&&(i.cts!==u?s=0:s+=1,n.fields[f].push([i.cts,l[f],s]),u=i.cts);return n.fields.forEach(function(e){e.sort(function(e,t){return e[0]===t[0]?e[2]-t[2]:e[0]-t[0]})}),n}function y(e){var t=!1;return J.length>1&&e.isEmbedded?t=e.id&&e.id===a["default"].CC1:1===J.length?e.id&&"CC"===e.id.substring(0,2)&&(t=!0):0===J.length&&(t=e.index===H[0].index),t}function g(e){var t=void 0;return e.search(a["default"].VTT)>=0?t=F:(e.search(a["default"].TTML)>=0||e.search(a["default"].STPP)>=0)&&(t=U),t}function b(e,t){void 0===e&&e===t&&(e=this.buffered.start(0),t=this.buffered.end(this.buffered.length-1)),this.buffered.remove(e,t)}var T=this.context,S=(0,_["default"])(T).getInstance().log,P=(0,A["default"])(T).getInstance(),I=!1,C=void 0,N=void 0,M=void 0,k=void 0,D=void 0,L=void 0,j=void 0,F=void 0,U=void 0,B=void 0,H=void 0,q=void 0,V=void 0,G=void 0,W=void 0,K=void 0,Y=void 0,z=void 0,X=void 0,$=void 0,Q=void 0,J=void 0,Z=void 0,ee=void 0,te=void 0,ne=void 0,re=void 0,oe=void 0;return C={initialize:e,append:h,abort:t,addEmbeddedTrack:i,resetEmbedded:o,setConfig:s,getConfig:l,setCurrentFragmentedTrackIdx:d,remove:b}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(24),a=r(i),u=n(45),s=n(1027),c=r(s),l=n(925),f=r(l),d=n(339),p=r(d),h=n(506),v=r(h),m=n(2),y=r(m),g=n(19),_=r(g),b=n(338),E=r(b),T=n(1003),w=r(T),S=n(299),O=r(S),P=n(491),R=r(P),I=n(12),A=r(I),C=n(14),x=r(C);o.__dashjs_factory_name="TextSourceBuffer",t["default"]=y["default"].getSingletonFactory(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(){v=(0,l["default"])(u).create({updateEventName:s["default"].SERVICE_LOCATION_BLACKLIST_CHANGED,addBlacklistEventName:s["default"].SERVICE_LOCATION_BLACKLIST_ADD}),m=(0,h["default"])(u).create({blacklistController:v}),_=(0,d["default"])(u).create({blacklistController:v}),b=m}function t(e){e.selector&&(b=e.selector),e.dashManifestModel&&(f=e.dashManifestModel)}function n(){if(!f||!f.hasOwnProperty("getIsDVB"))throw new Error("Missing config parameter(s)")}function r(e){n(),b=f.getIsDVB(e)?_:m}function o(e){var t=e.baseUrls,n=e.selectedIdx;if(!isNaN(n))return t[n];var r=b.select(t);return r?(e.selectedIdx=t.indexOf(r),r):void c.trigger(s["default"].URL_RESOLUTION_FAILED,{error:new Error(y,g)})}function i(){v.reset()}var u=this.context,c=(0,a["default"])(u).getInstance(),f=void 0,p=void 0,v=void 0,m=void 0,_=void 0,b=void 0;return p={chooseSelectorFromManifest:r,select:o,reset:i,setConfig:t},e(),p}Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),a=r(i),u=n(14),s=r(u),c=n(943),l=r(c),f=n(1017),d=r(f),p=n(1016),h=r(p),v=n(2),m=r(v),y=1,g="Failed to resolve a valid URL";o.__dashjs_factory_name="BaseURLSelector";var _=m["default"].getClassFactory(o);_.URL_RESOLUTION_FAILED_GENERIC_ERROR_CODE=y,_.URL_RESOLUTION_FAILED_GENERIC_ERROR_MESSAGE=g,m["default"].updateClassFactory(o.__dashjs_factory_name,_),t["default"]=_,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){function e(){a=!1}function t(){var e="WebKitMediaSource"in window,t="MediaSource"in window;return e||t}function n(){return a}function r(e){a=e}function o(e){return!!("MediaSource"in window&&MediaSource.isTypeSupported(e))||!!("WebKitMediaSource"in window&&WebKitMediaSource.isTypeSupported(e))}var i=void 0,a=void 0;return i={supportsMediaSource:t,supportsEncryptedMedia:n,supportsCodec:o,setEncryptedMediaSupported:r},e(),i}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=r(i);o.__dashjs_factory_name="Capabilities",t["default"]=a["default"].getSingletonFactory(o),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(e){if(void 0!==w)return w;w=!1;var t="1",n="1",r=void 0;try{"undefined"!=typeof window&&(r=window[e])}catch(o){return b("Warning: DOMStorage access denied: "+o.message),w}if(!r||e!==d&&e!==p)return w;try{r.setItem(t,n),r.removeItem(t),w=!0}catch(o){b("Warning: DOMStorage is supported, but cannot be used: "+o.message)}return w}function n(){t(d)&&c.forEach(function(e){var t=localStorage.getItem(e.oldKey);if(t){localStorage.removeItem(e.oldKey);try{localStorage.setItem(e.newKey,t)}catch(n){b(n.message)}}})}function r(){n()}function o(){var e=6e5;return Math.round((new Date).getTime()/e)*e}function i(e,n){return t(e)&&E["get"+n+"CachingInfo"]().enabled}function a(){if(!E||!E.hasOwnProperty("getLastMediaSettingsCachingInfo"))throw new Error("Missing config parameter(s)")}function u(e){if(a(),!i(d,v))return null;var t=null,n=f.replace(/\?/,e);try{var r=JSON.parse(localStorage.getItem(n))||{},o=(new Date).getTime()-parseInt(r.timestamp,10)>=E.getLastMediaSettingsCachingInfo().ttl||!1;t=r.settings,o&&(localStorage.removeItem(n),t=null)}catch(u){return null}return t}function m(e){var t=NaN;if(a(),i(d,h)){var n=l.replace(/\?/,e);try{var r=JSON.parse(localStorage.getItem(n))||{},o=(new Date).getTime()-parseInt(r.timestamp,10)>=E.getLastMediaSettingsCachingInfo().ttl||!1,u=parseFloat(r.bitrate);isNaN(u)||o?o&&localStorage.removeItem(n):(t=u,b("Last saved bitrate for "+e+" was "+u))}catch(s){return null}}return t}function y(e,t){if(i(d,v)){var n=f.replace(/\?/,e);try{localStorage.setItem(n,JSON.stringify({settings:t,timestamp:o()}))}catch(r){b(r.message)}}}function g(e,t){if(i(d,h)&&t){var n=l.replace(/\?/,e);try{localStorage.setItem(n,JSON.stringify({bitrate:t.toFixed(3),timestamp:o()}))}catch(r){b(r.message)}}}e=e||{};var _=this.context,b=(0,s["default"])(_).getInstance().log,E=e.mediaPlayerModel,T=void 0,w=void 0;return T={getSavedBitrateSettings:m,setSavedBitrateSettings:g,getSavedMediaSettings:u,setSavedMediaSettings:y},r(),T}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=r(i),u=n(19),s=r(u),c=[{oldKey:"dashjs_vbitrate",newKey:"dashjs_video_bitrate"},{oldKey:"dashjs_abitrate",newKey:"dashjs_audio_bitrate"},{oldKey:"dashjs_vsettings",newKey:"dashjs_video_settings"},{oldKey:"dashjs_asettings",newKey:"dashjs_audio_settings"}],l="dashjs_?_bitrate",f="dashjs_?_settings",d="localStorage",p="sessionStorage",h="LastBitrate",v="LastMediaSettings";o.__dashjs_factory_name="DOMStorage";var m=a["default"].getSingletonFactory(o);t["default"]=m,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(){return p}function n(e){p=e}function r(e,t){var n=!0,r=0,o=void 0,i=void 0;if(void 0===t&&(t=!1),e.tag>16777215?(d.getUint32(p)!==e.tag&&(n=!1),r=4):e.tag>65535?(o=d.getUint16(p),i=d.getUint8(p+2),256*o+i!==e.tag&&(n=!1),r=3):e.tag>255?(d.getUint16(p)!==e.tag&&(n=!1),r=2):(d.getUint8(p)!==e.tag&&(n=!1),r=1),!n&&e.required&&!t)throw new Error("required tag not found");return n&&(p+=r),n}function o(e,t){var n=r(e,t);return n&&u(),n}function i(e){var t=void 0;return r(e),t=u(),f[e.parse](t)}function a(e,t){var n=r(e,t),o=void 0;return n&&(o=u(),p+=o),n}function u(e){var t=1,n=128,r=8,o=-1,i=0,a=d.getUint8(p),u=0;for(u=0;u<r;u+=1){if((a&n)===n){i=void 0===e?a&~n:a,o=u;break}n>>=1}for(u=0;u<o;u+=1,t+=1)i=i<<8|255&d.getUint8(p+t);return p+=t,i}function s(e){var t=void 0;switch(e){case 4:t=d.getFloat32(p),p+=4;break;case 8:t=d.getFloat64(p),p+=8}return t}function c(e){for(var t=0,n=0;n<e;n+=1)t<<=8,t|=255&d.getUint8(p+n);return p+=e,t}function l(){return p<d.byteLength}e=e||{};var f=void 0,d=new DataView(e.data),p=0;return f={getPos:t,setPos:n,consumeTag:r,consumeTagAndSize:o,parseTag:i,skipOverElement:a,getMatroskaCodedNum:u,getMatroskaFloat:s,getMatroskaUint:c,moreData:l}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=r(i);o.__dashjs_factory_name="EBMLParser",t["default"]=a["default"].getClassFactory(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(e){return e&&u&&u.boxes&&0!==u.boxes.length&&"function"==typeof u.fetch?o(u.fetch(e)):null}function t(e){var t=[];if(!e||!u||"function"!=typeof u.fetchAll)return t;for(var n=u.fetchAll(e),r=void 0,i=0,a=n.length;i<a;i++)r=o(n[i]),r&&t.push(r);return t}function n(e){u=e}function r(){if(!u||!u.boxes||!u.boxes.length)return null;var e=u.boxes[u.boxes.length-1].type,n=t(e);return n.length>0?n[n.length-1]:null}function o(e){if(!e)return null;var t=new a["default"](e);return e.hasOwnProperty("_incomplete")&&(t.isComplete=!e._incomplete),t}var i=void 0,u=void 0;return i={getBox:e,getBoxes:t,setData:n,getLastBox:r}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1021),a=r(i),u=n(2),s=r(u);o.__dashjs_factory_name="IsoFile",t["default"]=s["default"].getClassFactory(o),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(){if(!(i&&i.hasOwnProperty("getExpectedLiveEdge")&&a&&a.hasOwnProperty("getCurrentRepresentationInfo")))throw new Error("Missing config parameter(s)")}function n(){t();var e=a.getCurrentRepresentationInfo(),n=e.DVRWindow.end;return e.useCalculatedLiveEdgeTime&&(n=i.getExpectedLiveEdge(),i.setClientTimeOffset(n-e.DVRWindow.end)),n}function r(){i=null,a=null}e=e||{};var o=void 0,i=e.timelineConverter,a=e.streamProcessor;return o={getLiveEdge:n,reset:r}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=r(i);o.__dashjs_factory_name="LiveEdgeFinder",t["default"]=a["default"].getClassFactory(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(){var e="cue_TTML_"+a;return a++,e}function t(t,n,r,i,a){var u=void 0,s=void 0,l="",f=[],d=void 0,p=void 0,h={},v="",m="",y={onOpenTag:function(e,t,n){if("image"===t&&"http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt"===e){if(!n[" imagetype"]||"PNG"!==n[" imagetype"].value)return void o("Warning: smpte-tt imagetype != PNG. Discarded");v=n["http://www.w3.org/XML/1998/namespace id"].value}},onCloseTag:function(){v&&(h[v]=m.trim()),m="",v=""},onText:function(e){v&&(m+=e)}};if(!t)throw l="no ttml data to parse",new Error(l);var g=(0,c.fromXML)(t,function(e){l=e},y),_=g.getMediaTimeEvents();for(u=0;u<_.length;u++){var b=(0,c.generateISD)(g,_[u],function(e){l=e});for(s=0;s<b.contents.length;s++)b.contents[s].contents.length>=1&&(d=_[u]+n<r?r:_[u]+n,p=_[u+1]+n>i?i:_[u+1]+n,d<p&&f.push({start:d,end:p,type:"html",cueID:e(),isd:b,images:a,embeddedImages:h}))}if(""!==l&&o(l),f.length>0)return f;throw new Error(l)}function n(){}var r=this.context,o=(0,s["default"])(r).getInstance().log,i=void 0,a=0;return i={parse:t},n(),i}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=r(i),u=n(19),s=r(u),c=n(514);o.__dashjs_factory_name="TTMLParser",t["default"]=a["default"].getSingletonFactory(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(){f=/(?:\r\n|\r|\n)/gm,d=/-->/,p=/(^[\s]+|[\s]+$)/g,h=/\s\b/g}function t(e){var t=[],o=void 0,a=void 0;if(!e)return t;e=e.split(f),o=e.length,a=-1;for(var s=0;s<o;s++){var l=e[s];if(l.length>0&&l!==c&&l.match(d)){var h=r(l),v=h.cuePoints,m=h.styles,y=i(e,s+1),g=n(v[0].replace(p,"")),_=n(v[1].replace(p,""));!isNaN(g)&&!isNaN(_)&&g>=a&&_>g?""!==y?(a=g,t.push({start:g,end:_,data:y,styles:m})):u("Skipping cue due to empty/malformed cue text"):u("Skipping cue due to incorrect cue timing")}}return t}function n(e){var t=e.split(":"),n=t.length-1;return e=60*parseInt(t[n-1],10)+parseFloat(t[n]),2===n&&(e+=3600*parseInt(t[0],10)),e}function r(e){var t=e.split(d),n=t[1].split(h);return n.shift(),t[1]=n[0],n.shift(),{cuePoints:t,styles:o(n)}}function o(e){var t={};return e.forEach(function(e){if(e.split(/:/).length>1){var n=e.split(/:/)[1];n&&n.search(/%/)!=-1&&(n=parseInt(n.replace(/%/,""),10)),(e.match(/align/)||e.match(/A/))&&(t.align=n),(e.match(/line/)||e.match(/L/))&&(t.line=n),(e.match(/position/)||e.match(/P/))&&(t.position=n),(e.match(/size/)||e.match(/S/))&&(t.size=n)}}),t}function i(e,t){for(var n=t,r="",o="",i=void 0;""!==e[n]&&n<e.length;)n++;if(i=n-t,i>1)for(var a=0;a<i;a++){if(o=e[t+a],o.match(d)){r="";break}r+=o,a!==i-1&&(r+="\n")}else o=e[t],o.match(d)||(r=o);return r}var a=this.context,u=(0,s["default"])(a).getInstance().log,l=void 0,f=void 0,d=void 0,p=void 0,h=void 0;return l={parse:t},e(),l}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=r(i),u=n(19),s=r(u),c="WEBVTT";o.__dashjs_factory_name="VTTParser",t["default"]=a["default"].getSingletonFactory(o),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(e){var t=0,n=void 0;return e&&e.some(function(e,n){return t=n,!r.contains(e.serviceLocation)})&&(n=e[t]),n}e=e||{};var n=void 0,r=e.blacklistController;return n={select:t}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=r(i);o.__dashjs_factory_name="BasicSelector",t["default"]=a["default"].getClassFactory(o),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(e){var t=[],n=function(e){return!t.length||!e.dvb_priority||t.indexOf(e.dvb_priority)===-1},r=function(e){return!i.contains(e.serviceLocation)||(e.dvb_priority&&t.push(e.dvb_priority),!1)};return e.filter(r).filter(n)}function n(e){var t=function(e,t){var n=e.dvb_priority-t.dvb_priority;return isNaN(n)?0:n},n=function(e,t,n){return!t||n[0].dvb_priority&&e.dvb_priority&&n[0].dvb_priority===e.dvb_priority},r=0,o=[],i=0,a=void 0,u=void 0;if(u=e.sort(t).filter(n),u.length)return u.length>1&&(u.forEach(function(e){r+=e.dvb_weight,o.push(r)}),a=Math.floor(Math.random()*(r-1)),o.every(function(e,t){return i=t,!(a<e)})),u[i]}function r(e){return e&&n(t(e))}e=e||{};var o=void 0,i=e.blacklistController;return o={select:r}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=r(i);o.__dashjs_factory_name="DVBSelector",t["default"]=a["default"].getClassFactory(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.mediaType=null,this.bitrate=null,this.width=null,this.height=null,this.scanType=null,this.qualityIndex=NaN};t["default"]=r,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.streamId=null,this.mediaInfo=null,this.segmentType=null,this.quality=NaN,this.index=NaN,this.bytes=null,this.start=NaN,this.end=NaN,this.duration=NaN,this.representationId=null};t["default"]=r,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(159),c=r(s),l=function(e){function t(e){o(this,t),u(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.url=e||null,this.checkForExistenceOnly=!0}return i(t,e),t}(c["default"]);t["default"]=l,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(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t){if(n(this,e),this.offset=t._offset,this.type=t.type,this.size=t.size,this.boxes=[],t.boxes)for(var r=0;r<t.boxes.length;r++)this.boxes.push(new e(t.boxes[r]));switch(this.isComplete=!0,t.type){case"sidx":if(this.timescale=t.timescale,this.earliest_presentation_time=t.earliest_presentation_time,this.first_offset=t.first_offset,this.references=t.references,t.references){this.references=[];for(var r=0;r<t.references.length;r++){var o={reference_type:t.references[r].reference_type,referenced_size:t.references[r].referenced_size,subsegment_duration:t.references[r].subsegment_duration};this.references.push(o)}}break;case"emsg":this.id=t.id,this.value=t.value,this.timescale=t.timescale,this.scheme_id_uri=t.scheme_id_uri,this.presentation_time_delta=t.presentation_time_delta,this.event_duration=t.event_duration,this.message_data=t.message_data;break;case"mdhd":this.timescale=t.timescale;break;case"mfhd":this.sequence_number=t.sequence_number;break;case"subs":this.entry_count=t.entry_count,this.entries=t.entries;break;case"tfhd":this.base_data_offset=t.base_data_offset,this.sample_description_index=t.sample_description_index,this.default_sample_duration=t.default_sample_duration,this.default_sample_size=t.default_sample_size,this.default_sample_flags=t.default_sample_flags,this.flags=t.flags;break;case"tfdt":this.version=t.version,this.baseMediaDecodeTime=t.baseMediaDecodeTime,this.flags=t.flags;break;case"trun":if(this.sample_count=t.sample_count,this.first_sample_flags=t.first_sample_flags,this.data_offset=t.data_offset,this.flags=t.flags,this.samples=t.samples,t.samples){this.samples=[];for(var r=0,i=t.samples.length;r<i;r++){var a={sample_size:t.samples[r].sample_size,sample_duration:t.samples[r].sample_duration,sample_composition_time_offset:t.samples[r].sample_composition_time_offset};this.samples.push(a)}}}}return r(e,[{key:"getChildBox",value:function(e){for(var t=0;t<this.boxes.length;t++)if(this.boxes[t].type===e)return this.boxes[t];
}},{key:"getChildBoxes",value:function(e){for(var t=[],n=0;n<this.boxes.length;n++)this.boxes[n].type===e&&t.push(this.boxes[n]);return t}}]),e}();t["default"]=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.DVRWindowSize=NaN,this.loadedTime=null,this.availableFrom=null,this.minBufferTime=NaN,this.duration=NaN,this.isDynamic=!1,this.maxFragmentDuration=null};t["default"]=r,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.id=null,this.index=null,this.type=null,this.streamInfo=null,this.representationCount=0,this.lang=null,this.viewpoint=null,this.accessibility=null,this.audioChannelConfiguration=null,this.roles=null,this.codec=null,this.mimeType=null,this.contentProtection=null,this.isText=!1,this.KID=null,this.bitrateList=null};t["default"]=r,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.TcpList=[],this.HttpList=[],this.RepSwitchList=[],this.BufferLevel=[],this.BufferState=[],this.PlayList=[],this.DroppedFrames=[],this.SchedulingInfo=[],this.DVRInfo=[],this.ManifestUpdate=[],this.RequestsQueue=null,this.DVBErrors=[]};t["default"]=r,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.id=null,this.quality=null,this.DVRWindow=null,this.fragmentDuration=null,this.mediaInfo=null,this.MSETimeOffset=null};t["default"]=r,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.id=null,this.index=null,this.start=NaN,this.duration=NaN,this.manifestInfo=null,this.isLast=!0};t["default"]=r,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.captionData=null,this.label=null,this.lang=null,this.defaultTrack=!1,this.kind=null,this.isFragmented=!1,this.isEmbedded=!1};t["default"]=r,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.t=null,this.xywh=null,this.track=null,this.id=null,this.s=null};t["default"]=r,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.t=null,this.level=null};t["default"]=r,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")}Object.defineProperty(t,"__esModule",{value:!0});var i=n(134),a=r(i),u=function s(){o(this,s),this.target=null,this.state=a["default"].BUFFER_EMPTY};t["default"]=u,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.time=null,this.range=null,this.manifestInfo=null};t["default"]=r,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.time=null,this.droppedFrames=null};t["default"]=r,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 a(){n(this,a),this.mediaType=null,this.type=null,this.requestTime=null,this.fetchTime=null,this.availabilityStartTime=null,this.presentationStartTime=0,this.clientTimeOffset=0,this.currentTime=null,this.buffered=null,this.latency=0,this.streamInfo=[],this.representationInfo=[]},o=function u(){n(this,u),this.id=null,this.index=null,this.start=null,this.duration=null},i=function s(){n(this,s),this.id=null,this.index=null,this.mediaType=null,this.streamIndex=null,this.presentationTimeOffset=null,this.startNumber=null,this.fragmentInfoType=null};t.ManifestUpdate=r,t.ManifestUpdateStreamInfo=o,t.ManifestUpdateRepresentationInfo=i},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.t=null,this.mt=null,this.to=null,this.lto=null};t["default"]=r,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.loadingRequests=[],this.executedRequests=[]};t["default"]=r,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.mediaType=null,this.t=null,this.type=null,this.startTime=null,this.availabilityStartTime=null,this.duration=null,this.quality=null,this.range=null,this.state=null};t["default"]=r,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.tcpid=null,this.dest=null,this.topen=null,this.tclose=null,this.tconnect=null};t["default"]=r,e.exports=t["default"]},function(e,t,n){function r(e){return null===e||void 0===e}function o(e){return!(!e||"object"!==("undefined"==typeof e?"undefined":a(e))||"number"!=typeof e.length)&&("function"==typeof e.copy&&"function"==typeof e.slice&&!(e.length>0&&"number"!=typeof e[0]))}function i(e,t,n){var i,f;if(r(e)||r(t))return!1;if(e.prototype!==t.prototype)return!1;if(c(e))return!!c(t)&&(e=u.call(e),t=u.call(t),l(e,t,n));if(o(e)){if(!o(t))return!1;if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}try{var d=s(e),p=s(t)}catch(h){return!1}if(d.length!=p.length)return!1;for(d.sort(),p.sort(),i=d.length-1;i>=0;i--)if(d[i]!=p[i])return!1;for(i=d.length-1;i>=0;i--)if(f=d[i],!l(e[f],t[f],n))return!1;return("undefined"==typeof e?"undefined":a(e))===("undefined"==typeof t?"undefined":a(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},u=Array.prototype.slice,s=n(1040),c=n(1039),l=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=("undefined"==typeof e?"undefined":a(e))&&"object"!=("undefined"==typeof t?"undefined":a(t))?n.strict?e===t:e==t:i(e,t,n))}},function(e,t){function n(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function r(e){return e&&"object"==("undefined"==typeof e?"undefined":o(e))&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}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="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();t=e.exports=i?n:r,t.supported=n,t.unsupported=r},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}t=e.exports="function"==typeof Object.keys?Object.keys:n,t.shim=n},function(e,t,n){(function(t){!function(t){"use strict";function n(){return t.performance&&"function"==typeof t.performance.now?t.performance.now():"function"==typeof Date.now?Date.now():(new Date).getTime()}function r(){var e=n(),t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)});return t}function o(e,t,n,r,o,i,a){if(a=a||{},!e)throw"Missing key; pass in event client key as the first argument.";if(this.clientKey=e,!t)throw"Missing secret; pass in event client secret as the second argument.";if(this.clientSecret=t,!n)throw"Missing post function; pass in ajax post function as the third argument.";if(this.postData=n,!r)throw"Missing url to post to; pass in url as the fourth argument.";if(this.eventsUrl=r,!o)throw"Missing appName; pass in appName as the fifth argument.";if(this.appName=o,!i)throw"Missing calculateHash; pass in calculateHash as the sixth argument.";this.calculateHash=i,"undefined"!=typeof window&&(this.appendClientContext="undefined"==typeof a.appendClientContext||a.appendClientContext),this.bufferTimeout=a.bufferTimeout||100,this.bufferLength=a.bufferLength||40,this.buffer=[]}var i=/[^A-Za-z0-9]/;o.prototype.track=function(e,t,n){var r=this._buildData(e,t,n||{});this._buffer(r)},o.prototype.send=function(e){if(this.buffer.length){var t=JSON.stringify(this.buffer),n=this.calculateHash(this.clientSecret,t),r={"Content-Type":"text/plain"};this.postData({url:this.eventsUrl,data:t,headers:r,query:{key:this.clientKey,mac:n},done:e||function(){}}),this.buffer=[]}},o.prototype._validateClientName=function(e){if(i.test(e))throw e},o.prototype._buildData=function(e,t,n){var o=new Date,i={event_topic:e,event_type:t,event_ts:o.getTime(),uuid:n.uuid||r(),payload:n};if(i.payload.app_name=this.appName,i.payload.utc_offset=o.getTimezoneOffset()/-60,this.appendClientContext){var a=this._buildClientContext();for(var u in a)i.payload[u]=a[u]}return i},o.prototype._buffer=function(e){this.buffer.push(e),this.buffer.length>=this.bufferLength||!this.bufferTimeout?this.send():this.bufferTimeout&&!this.timer&&this._resetTimer()},o.prototype._resetTimer=function(){this.timer&&(clearTimeout(this.timer),this.timer=void 0);var e=this;this.timer=setTimeout(function(){e.send(),e.timer=void 0},this.bufferTimeout)},o.prototype._buildClientContext=function(){return{user_agent:navigator.userAgent,domain:document.location.host,base_url:document.location.pathname+document.location.search+document.location.hash}},e.exports=o}("undefined"!=typeof t?t:this)}).call(t,n(36))},function(e,t){"use strict";function n(e){return e.replace(r,function(e,t){return t.toUpperCase()})}var r=/-(.)/g;e.exports=n},function(e,t,n){"use strict";function r(e){return o(e.replace(i,"ms-"))}var o=n(1042),i=/^-ms-/;e.exports=r},function(e,t,n){"use strict";function r(e,t){return!(!e||!t)&&(e===t||!o(e)&&(o(t)?r(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var o=n(1052);e.exports=r},function(e,t,n){"use strict";function r(e){var t=e.length;if(Array.isArray(e)||"object"!==("undefined"==typeof e?"undefined":a(e))&&"function"!=typeof e?u(!1):void 0,"number"!=typeof t?u(!1):void 0,0===t||t-1 in e?void 0:u(!1),"function"==typeof e.callee?u(!1):void 0,e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(n){}for(var r=Array(t),o=0;o<t;o++)r[o]=e[o];return r}function o(e){return!!e&&("object"==("undefined"==typeof e?"undefined":a(e))||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}function i(e){return o(e)?Array.isArray(e)?e.slice():r(e):[e]}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(11);e.exports=i},function(e,t,n){"use strict";function r(e){var t=e.match(l);return t&&t[1].toLowerCase()}function o(e,t){var n=c;c?void 0:s(!1);var o=r(e),i=o&&u(o);if(i){n.innerHTML=i[1]+e+i[2];for(var l=i[0];l--;)n=n.lastChild}else n.innerHTML=e;var f=n.getElementsByTagName("script");f.length&&(t?void 0:s(!1),a(f).forEach(t));for(var d=Array.from(n.childNodes);n.lastChild;)n.removeChild(n.lastChild);return d}var i=n(47),a=n(1045),u=n(1047),s=n(11),c=i.canUseDOM?document.createElement("div"):null,l=/^\s*<(\w+)/;e.exports=o},function(e,t,n){"use strict";function r(e){return a?void 0:i(!1),d.hasOwnProperty(e)||(e="*"),u.hasOwnProperty(e)||("*"===e?a.innerHTML="<link />":a.innerHTML="<"+e+"></"+e+">",u[e]=!a.firstChild),u[e]?d[e]:null}var o=n(47),i=n(11),a=o.canUseDOM?document.createElement("div"):null,u={},s=[1,'<select multiple="true">',"</select>"],c=[1,"<table>","</table>"],l=[3,"<table><tbody><tr>","</tr></tbody></table>"],f=[1,'<svg xmlns="http://www.w3.org/2000/svg">',"</svg>"],d={"*":[1,"?<div>","</div>"],area:[1,"<map>","</map>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],legend:[1,"<fieldset>","</fieldset>"],param:[1,"<object>","</object>"],tr:[2,"<table><tbody>","</tbody></table>"],optgroup:s,option:s,caption:c,colgroup:c,tbody:c,tfoot:c,thead:c,td:l,th:l},p=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];p.forEach(function(e){d[e]=f,u[e]=!0}),e.exports=r},function(e,t){"use strict";function n(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=n},function(e,t){"use strict";function n(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;e.exports=n},function(e,t,n){"use strict";function r(e){return o(e).replace(i,"-ms-")}var o=n(1049),i=/^ms-/;e.exports=r},function(e,t){"use strict";function n(e){var t=e?e.ownerDocument||e:document,n=t.defaultView||window;return!(!e||!("function"==typeof n.Node?e instanceof n.Node:"object"===("undefined"==typeof e?"undefined":r(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}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";function r(e){return o(e)&&3==e.nodeType}var o=n(1051);e.exports=r},function(e,t){"use strict";function n(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=n},function(e,t){"use strict";var n={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},o="function"==typeof Object.getOwnPropertySymbols;e.exports=function(e,t,i){if("string"!=typeof t){var a=Object.getOwnPropertyNames(t);o&&(a=a.concat(Object.getOwnPropertySymbols(t)));for(var u=0;u<a.length;++u)if(!(n[a[u]]||r[a[u]]||i&&i[a[u]]))try{e[a[u]]=t[a[u]]}catch(s){}}return e}},function(e,t){t.read=function(e,t,n,r,o){var i,a,u=8*o-r-1,s=(1<<u)-1,c=s>>1,l=-7,f=n?o-1:0,d=n?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-l)-1,p>>=-l,l+=u;l>0;i=256*i+e[t+f],f+=d,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=d,l-=8);if(0===i)i=1-c;else{if(i===s)return a?NaN:(p?-1:1)*(1/0);a+=Math.pow(2,r),i-=c}return(p?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,u,s,c=8*i-o-1,l=(1<<c)-1,f=l>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),t+=a+f>=1?d/s:d*Math.pow(2,1-f),t*s>=2&&(a++,s/=2),a+f>=l?(u=0,a=l):a+f>=1?(u=(t*s-1)*Math.pow(2,o),a+=f):(u=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&u,p+=h,u/=256,o-=8);for(a=a<<o|u,c+=o;c>0;e[n+p]=255&a,p+=h,a/=256,c-=8);e[n+p-h]|=128*v}},function(e,t,n){!function(e,t,n,r,o){function i(e){this.node=e}function a(){this.events=[],this.head=null,this.body=null}function u(){this.styling=null,this.layout=null}function s(){this.styles={}}function c(){this.id=null,this.styleAttrs=null,this.styleRefs=null}function l(){this.regions={}}function f(e){this.kind=e,this.begin=null,this.end=null,this.styleAttrs=null,this.regionID=null,this.sets=null,this.timeContainer=null}function d(){f.call(this,"body")}function p(){f.call(this,"div")}function h(){f.call(this,"p")}function v(){f.call(this,"span"),this.space=null}function m(){f.call(this,"span"),this.space=null,this.text=null}function y(){f.call(this,"br")}function g(){this.id=null,this.begin=null,this.end=null,this.styleAttrs=null,this.sets=null}function _(){this.begin=null,this.end=null,this.qname=null,this.value=null}function b(e){return e&&"xml:id"in e.attributes?e.attributes["xml:id"].value||null:null}function E(e){return e&&"region"in e.attributes?e.attributes.region.value:""}function T(e,t){var n=e&&"timeContainer"in e.attributes?e.attributes.timeContainer.value:null;return n&&"par"!==n?"seq"===n?"seq":(L(t,"Illegal value of timeContainer (assuming 'par')"),"par"):"par"}function w(e){return e&&"style"in e.attributes?e.attributes.style.value.split(" "):[]}function S(e,t){var n={};if(null!==e)for(var o in e.attributes){var i=e.attributes[o].uri+" "+e.attributes[o].local,a=r.byQName[i];if(void 0!==a){var u=a.parse(e.attributes[o].value);null!==u?(n[i]=u,a===r.byName.zIndex&&D(t,"zIndex attribute present but not used by IMSC1 since regions do not overlap")):L(t,"Cannot parse styling attribute "+i+" --> "+e.attributes[o].value)}}return n}function O(e,t,n){for(var r in e.attributes)if(e.attributes[r].uri===t&&e.attributes[r].local===n)return e.attributes[r].value;return null}function P(e,t){var r=O(e,n.ns_ittp,"aspectRatio"),o=null;if(null!==r){var i=/(\d+) (\d+)/,a=i.exec(r);if(null!==a){var u=parseInt(a[1]),s=parseInt(a[2]);0!==u&&0!==s?o=u/s:L(t,"Illegal aspectRatio values (ignoring)")}else L(t,"Malformed aspectRatio attribute (ignoring)")}return o}function R(e,t){var r=O(e,n.ns_ttp,"cellResolution"),o=15,i=32;if(null!==r){var a=/(\d+) (\d+)/,u=a.exec(r);null!==u?(i=parseInt(u[1]),o=parseInt(u[2])):D(t,"Malformed cellResolution value (using initial value instead)")}return{w:i,h:o}}function I(e,t){var r,o=O(e,n.ns_ttp,"frameRate"),i=30;if(null!==o){var a=/(\d+)/;r=a.exec(o),null!==r?i=parseInt(r[1]):D(t,"Malformed frame rate attribute (using initial value instead)")}var u=O(e,n.ns_ttp,"frameRateMultiplier"),s=1;if(null!==u){var c=/(\d+) (\d+)/;r=c.exec(u),null!==r?s=parseInt(r[1])/parseInt(r[2]):D(t,"Malformed frame rate multiplier attribute (using initial value instead)")}var l=s*i,f=1,d=O(e,n.ns_ttp,"tickRate");if(null===d)null!==o&&(f=l);else{var p=/(\d+)/;r=p.exec(d),null!==r?f=parseInt(r[1]):D(t,"Malformed tick rate attribute (using initial value instead)")}return{effectiveFrameRate:l,tickRate:f}}function A(e,t){var r=O(e,n.ns_tts,"extent");if(null===r)return null;var i=r.split(" ");if(2!==i.length)return D(t,"Malformed extent (ignoring)"),null;var a=o.parseLength(i[0]),u=o.parseLength(i[1]);return u&&a?{h:u,w:a}:(D(t,"Malformed extent values (ignoring)"),null)}function C(e,t,n){var r,o=/^(\d{2,}):(\d\d):(\d\d(?:\.\d+)?)$/,i=/^(\d{2,}):(\d\d):(\d\d)\:(\d{2,})$/,a=/^(\d+(?:\.\d+)?)f$/,u=/^(\d+(?:\.\d+)?)t$/,s=/^(\d+(?:\.\d+)?)ms$/,c=/^(\d+(?:\.\d+)?)s$/,l=/^(\d+(?:\.\d+)?)h$/,f=/^(\d+(?:\.\d+)?)m$/,d=null;return null!==(r=a.exec(n))?null!==t&&(d=parseFloat(r[1])/t):null!==(r=u.exec(n))?null!==e&&(d=parseFloat(r[1])/e):null!==(r=s.exec(n))?d=parseFloat(r[1])/1e3:null!==(r=c.exec(n))?d=parseFloat(r[1]):null!==(r=l.exec(n))?d=3600*parseFloat(r[1]):null!==(r=f.exec(n))?d=60*parseFloat(r[1]):null!==(r=o.exec(n))?d=3600*parseInt(r[1])+60*parseInt(r[2])+parseFloat(r[3]):null!==(r=i.exec(n))&&null!==t&&(d=3600*parseInt(r[1])+60*parseInt(r[2])+parseInt(r[3])+(null===r[4]?0:parseInt(r[4])/t)),d}function x(e,t,n,r){var o=t&&"seq"===t.timeContainer,i=0;n&&"begin"in n.attributes&&(i=C(e.tickRate,e.effectiveFrameRate,n.attributes.begin.value),null===i&&(D(r,"Malformed begin value "+n.attributes.begin.value+" (using 0)"),i=0));var a=o?0:null;n&&"dur"in n.attributes&&(a=C(e.tickRate,e.effectiveFrameRate,n.attributes.dur.value),null===a&&D(r,"Malformed dur value "+n.attributes.dur.value+" (ignoring)"));var u=null;n&&"end"in n.attributes&&(u=C(e.tickRate,e.effectiveFrameRate,n.attributes.end.value),null===u&&D(r,"Malformed end value (ignoring)"));var s=0;if(t&&(s=o&&"contents"in t&&t.contents.length>0?t.contents[t.contents.length-1].end:t.begin||0),i+=s,null!==a)u=i+a;else{var c=t&&"end"in t?t.end:Number.POSITIVE_INFINITY;u=null!==u?u+s:c}return{begin:i,end:u}}function N(e,t,n){for(;t.styleRefs.length>0;){var r=t.styleRefs.pop();r in e.styles?(N(e,e.styles[r],n),k(e.styles[r].styleAttrs,t.styleAttrs)):L(n,"Non-existant style id referenced")}}function M(e,t,n,r){for(var o=t.length-1;o>=0;o--){var i=t[o];i in e.styles?k(e.styles[i].styleAttrs,n):L(r,"Non-existant style id referenced")}}function k(e,t){for(var n in e)n in t||(t[n]=e[n])}function D(e,t){if(e&&e.warn&&e.warn(t))throw t}function L(e,t){if(e&&e.error&&e.error(t))throw t}function j(e,t){throw e&&e.fatal&&e.fatal(t),t}function F(e,t){for(var n,r=0,o=e.length-1;r<=o;){n=Math.floor((r+o)/2);var i=e[n];if(i<t)r=n+1;else{if(!(i>t))return{found:!0,index:n};o=n-1}}return{found:!1,index:r}}e.fromXML=function(e,r,o){var f=t.parser(!0,{xmlns:!0}),b=[],E=[],T=[],w=0,S=null;f.onclosetag=function(e){if(b[0]instanceof s)for(var t in b[0].styles)N(b[0],b[0].styles[t],r);else if(b[0]instanceof h||b[0]instanceof v){if(b[0].contents.length>1){var a,u=[b[0].contents[0]];for(a=1;a<b[0].contents.length;a++)b[0].contents[a]instanceof m&&u[u.length-1]instanceof m?u[u.length-1].text+=b[0].contents[a].text:u.push(b[0].contents[a]);b[0].contents=u}b[0]instanceof v&&1===b[0].contents.length&&b[0].contents[0]instanceof m&&null===b[0].text&&(b[0].text=b[0].contents[0].text,delete b[0].contents)}else b[0]instanceof i&&(b[0].node.uri===n.ns_tt&&"metadata"===b[0].node.local?w--:w>0&&o&&"onCloseTag"in o&&o.onCloseTag());T.shift(),E.shift(),b.shift()},f.ontext=function(e){if(void 0===b[0]);else if(b[0]instanceof v||b[0]instanceof h){var t=new m;t.initFromText(S,b[0],e,T[0],r),b[0].contents.push(t)}else b[0]instanceof i&&w>0&&o&&"onText"in o&&o.onText(e)},f.onopentag=function(e){var t=e.attributes["xml:space"];t?T.unshift(t.value):0===T.length?T.unshift("default"):T.unshift(T[0]);var f=e.attributes["xml:lang"];if(f?E.unshift(f.value):0===E.length?E.unshift(""):E.unshift(E[0]),e.uri===n.ns_tt)if("tt"===e.local)null!==S&&j("Two <tt> elements at ("+this.line+","+this.column+")"),S=new a,S.initFromNode(e,r),b.unshift(S);else if("head"===e.local)b[0]instanceof a||j("Parent of <head> element is not <tt> at ("+this.line+","+this.column+")"),null!==S.head&&j("Second <head> element at ("+this.line+","+this.column+")"),S.head=new u,b.unshift(S.head);else if("styling"===e.local)b[0]instanceof u||j("Parent of <styling> element is not <head> at ("+this.line+","+this.column+")"),null!==S.head.styling&&j("Second <styling> element at ("+this.line+","+this.column+")"),S.head.styling=new s,b.unshift(S.head.styling);else if("style"===e.local){var m;b[0]instanceof s?(m=new c,m.initFromNode(e,r),m.id?S.head.styling.styles[m.id]=m:L("<style> element missing @id attribute"),b.unshift(m)):b[0]instanceof g?(m=new c,m.initFromNode(e,r),k(m.styleAttrs,b[0].styleAttrs),b.unshift(m)):j(r,"Parent of <style> element is not <styling> or <region> at ("+this.line+","+this.column+")")}else if("layout"===e.local)b[0]instanceof u||j(r,"Parent of <layout> element is not <head> at "+this.line+","+this.column+")"),null!==S.head.layout&&j(r,"Second <layout> element at "+this.line+","+this.column+")"),S.head.layout=new l,b.unshift(S.head.layout);else if("region"===e.local){b[0]instanceof l||j(r,"Parent of <region> element is not <layout> at "+this.line+","+this.column+")");var O=new g;O.initFromNode(S,e,r),!O.id||O.id in S.head.layout.regions?L(r,"Ignoring <region> with duplicate or missing @id at "+this.line+","+this.column+")"):(S.head.layout.regions[O.id]=O,S._registerEvent(O)),b.unshift(O)}else if("body"===e.local){b[0]instanceof a||j(r,"Parent of <body> element is not <tt> at "+this.line+","+this.column+")"),null!==S.body&&j(r,"Second <body> element at "+this.line+","+this.column+")");var P=new d;P.initFromNode(S,e,r),S._registerEvent(P),S.body=P,b.unshift(P)}else if("div"===e.local){b[0]instanceof p||b[0]instanceof d||j(r,"Parent of <div> element is not <body> or <div> at "+this.line+","+this.column+")");var R=new p;R.initFromNode(S,b[0],e,r),S._registerEvent(R),b[0].contents.push(R),b.unshift(R)}else if("p"===e.local){b[0]instanceof p||j(r,"Parent of <p> element is not <div> at "+this.line+","+this.column+")");var I=new h;I.initFromNode(S,b[0],e,r),S._registerEvent(I),b[0].contents.push(I),b.unshift(I)}else if("span"===e.local){b[0]instanceof v||b[0]instanceof h||j(r,"Parent of <span> element is not <span> or <p> at "+this.line+","+this.column+")");var A=new v;A.initFromNode(S,b[0],e,T[0],r),S._registerEvent(A),b[0].contents.push(A),b.unshift(A)}else if("br"===e.local){b[0]instanceof v||b[0]instanceof h||j(r,"Parent of <br> element is not <span> or <p> at "+this.line+","+this.column+")");var C=new y;C.initFromNode(S,b[0],e,r),S._registerEvent(C),b[0].contents.push(C),b.unshift(C)}else if("set"===e.local){b[0]instanceof v||b[0]instanceof h||b[0]instanceof p||b[0]instanceof d||b[0]instanceof g||b[0]instanceof y||j(r,"Parent of <set> element is not a content element or a region at "+this.line+","+this.column+")");var x=new _;x.initFromNode(S,b[0],e,r),S._registerEvent(x),b[0].sets.push(x),b.unshift(x)}else b.unshift(new i(e));else b.unshift(new i(e));if(b[0]instanceof i)if(e.uri===n.ns_tt&&"metadata"===e.local)w++;else if(w>0&&o&&"onOpenTag"in o){var N=[];for(var M in e.attributes)N[e.attributes[M].uri+" "+e.attributes[M].local]={uri:e.attributes[M].uri,local:e.attributes[M].local,value:e.attributes[M].value};o.onOpenTag(e.uri,e.local,N)}},f.write(e).close(),null!==S.head?delete S.head.styling:S.head=new u,null===S.head.layout&&(S.head.layout=new l);var O=!1;for(var P in S.head.layout.regions){O=!0;break}if(!O){var R=g.createDefaultRegion();S.head.layout.regions[R.id]=R}return S},a.prototype.initFromNode=function(e,t){this.cellResolution=R(e,t);var r=I(e,t);this.effectiveFrameRate=r.effectiveFrameRate,this.tickRate=r.tickRate,this.aspectRatio=P(e,t);var o=O(e,n.ns_ttp,"timeBase");null!==o&&"media"!==o&&j(t,"Unsupported time base");var i=A(e,t);null===i?this.pxDimensions={h:480,w:640}:("px"===i.h.unit&&"px"===i.w.unit||j(t,"Extent on TT must be in px or absent"),this.pxDimensions={h:i.h.value,w:i.w.value})},a.prototype._registerEvent=function(e){if(!(e.end<=e.begin)){var t=F(this.events,e.begin);if(t.found||this.events.splice(t.index,0,e.begin),e.end!==Number.POSITIVE_INFINITY){var n=F(this.events,e.end);n.found||this.events.splice(n.index,0,e.end)}}},a.prototype.getMediaTimeRange=function(){return[this.events[0],this.events[this.events.length-1]]},a.prototype.getMediaTimeEvents=function(){return this.events},c.prototype.initFromNode=function(e,t){this.id=b(e),this.styleAttrs=S(e,t),this.styleRefs=w(e)},f.prototype.initFromNode=function(e,t,n,r){var o=x(e,t,n,r);this.begin=o.begin,this.end=o.end,this.styleAttrs=S(n,r),null!==e.head&&null!==e.head.styling&&M(e.head.styling,w(n),this.styleAttrs,r),this.regionID=E(n),this.sets=[],this.timeContainer=T(n,r)},d.prototype.initFromNode=function(e,t,n){f.prototype.initFromNode.call(this,e,null,t,n),this.contents=[]},p.prototype.initFromNode=function(e,t,n,r){f.prototype.initFromNode.call(this,e,t,n,r),this.contents=[]},h.prototype.initFromNode=function(e,t,n,r){f.prototype.initFromNode.call(this,e,t,n,r),this.contents=[]},v.prototype.initFromNode=function(e,t,n,r,o){f.prototype.initFromNode.call(this,e,t,n,o),this.space=r,this.contents=[]},m.prototype.initFromText=function(e,t,n,r,o){f.prototype.initFromNode.call(this,e,t,null,o),this.text=n,this.space=r},y.prototype.initFromNode=function(e,t,n,r){f.prototype.initFromNode.call(this,e,t,n,r)},g.createDefaultRegion=function(){var e=new g;return e.id="",e.begin=0,e.end=Number.POSITIVE_INFINITY,e.styleAttrs={},e.sets=[],e},g.prototype.initFromNode=function(e,t,n){this.id=b(t);var r=x(e,null,t,n);this.begin=r.begin,this.end=r.end,this.styleAttrs=S(t,n),this.sets=[],null!==e.head&&null!==e.head.styling&&M(e.head.styling,w(t),this.styleAttrs,n)},_.prototype.initFromNode=function(e,t,n,r){var o=x(e,t,n,r);this.begin=o.begin,this.end=o.end;var i=S(n,r);for(var a in i){if(this.qname){L(r,"More than one style specified on set");break}this.qname=a,this.value=i[a]}}}(t,"undefined"==typeof sax?n(1723):sax,"undefined"==typeof imscNames?n(244):imscNames,"undefined"==typeof imscStyles?n(343):imscStyles,"undefined"==typeof imscUtils?n(515):imscUtils)},function(e,t,n){!function(e,t,n){function r(e,t,a){var u;if("region"===a.kind?(u=document.createElement("div"),u.style.position="absolute"):"body"===a.kind?u=document.createElement("div"):"div"===a.kind?u=document.createElement("div"):"p"===a.kind?u=document.createElement("p"):"span"===a.kind?u=document.createElement("span"):"br"===a.kind&&(u=document.createElement("br")),!u)return void l(e.errorHandler,"Error processing ISD element kind: "+a.kind);u.style.margin="0";for(var s in f){var c=f[s],d=a.styleAttrs[c.qname];void 0!==d&&null!==c.map&&c.map(e,u,a,d)}var p=u,h=a.styleAttrs[n.byName.multiRowAlign.qname];if(h&&"auto"!==h){var v=document.createElement("span");v.style.display="inline-block",v.style.textAlign=h,u.appendChild(v),p=v,e.mra=h}var m=a.styleAttrs[n.byName.linePadding.qname];if(m&&m>0&&(e.lp=m),"span"===a.kind&&a.text)if(e.lp||e.mra)for(var y=0;y<a.text.length;y++){var g=document.createElement("span");g.textContent=a.text.charAt(y),u.appendChild(g)}else u.textContent=a.text;t.appendChild(u);for(var _ in a.contents)r(e,p,a.contents[_]);if((e.lp||e.mra)&&"p"===a.kind){var b=[];o(p,b,"red"),i(b,e.lp*e.h),e.lp&&delete e.lp,e.mra&&delete e.mra}}function o(e,t,n){if(0===e.childElementCount)t.push({element:e,bgcolor:n});else for(var r=e.style.backgroundColor||n,i=e.firstChild;i;)i.nodeType===Node.ELEMENT_NODE&&o(i,t,r),i=i.nextSibling}function i(e,t){for(var n=null,r=!0,o=!1,i=0;i<=e.length;i++)if(i===e.length||"br"!==e[i].element.localName){if(null===n||i===e.length||e[i].element.getBoundingClientRect().top!==e[n].element.getBoundingClientRect().top){if(t&&!r){for(;--i>=0;)if(0!==e[i].element.getBoundingClientRect().width){if(u(e[i].element,e[i].color,t),0!==e[i].element.getBoundingClientRect().width&&e[i].element.getBoundingClientRect().top===e[n].element.getBoundingClientRect().top)break;s(e[i].element)}r=!0;continue}if(i!==e.length&&null!==n&&!o){var c=document.createElement("br");e[i].element.parentElement.insertBefore(c,e[i].element),e.splice(i,0,{element:c}),o=!0;continue}if(i!==e.length&&t)for(;i<e.length;i++)if(0!==e[i].element.getBoundingClientRect().width){a(e[i].element,e[i].color,t);break}r=!1,o=!1,n=i}}else o=!0}function a(e,t,n){e.style.paddingLeft=n+"px",e.style.backgroundColor=t}function u(e,t,n){e.style.paddingRight=n+"px",e.style.backgroundColor=t}function s(e){e.style.paddingRight=null}function c(e,t){this.qname=e,this.map=t}function l(e,t){if(e&&e.error&&e.error(t))throw t}e.render=function(e,t,n,o,i,a,u){var s=o||t.clientHeight,c=i||t.clientWidth;if(null!==e.aspectRatio){var l=s*e.aspectRatio;l>c?s=Math.round(c/e.aspectRatio):c=l;
}var f=document.createElement("div");f.style.position="relative",f.style.width=c+"px",f.style.height=s+"px",f.style.margin="auto",f.style.top=0,f.style.bottom=0,f.style.left=0,f.style.right=0,f.style.zIndex=0;var d={h:s,w:c,regionH:null,regionW:null,imgResolver:n,displayForcedOnlyMode:a||!1,isd:e,errorHandler:u};t.appendChild(f);for(var p in e.contents)r(d,f,e.contents[p])};var f=[new c("http://www.w3.org/ns/ttml#styling backgroundColor",function(e,t,n,r){t.style.backgroundColor="rgba("+r[0].toString()+","+r[1].toString()+","+r[2].toString()+","+(r[3]/255).toString()+")"}),new c("http://www.w3.org/ns/ttml#styling color",function(e,t,n,r){t.style.color="rgba("+r[0].toString()+","+r[1].toString()+","+r[2].toString()+","+(r[3]/255).toString()+")"}),new c("http://www.w3.org/ns/ttml#styling direction",function(e,t,n,r){t.style.direction=r}),new c("http://www.w3.org/ns/ttml#styling display",function(e,t,n,r){}),new c("http://www.w3.org/ns/ttml#styling displayAlign",function(e,t,n,r){t.style.display="flex",t.style.flexDirection="column","before"===r?t.style.justifyContent="flex-start":"center"===r?t.style.justifyContent="center":"after"===r&&(t.style.justifyContent="flex-end")}),new c("http://www.w3.org/ns/ttml#styling extent",function(e,t,n,r){e.regionH=r.h*e.h,e.regionW=r.w*e.w;var o=0,i=0,a=n.styleAttrs["http://www.w3.org/ns/ttml#styling padding"];a&&(o=(a[0]+a[2])*e.h,i=(a[1]+a[3])*e.w),t.style.height=e.regionH-o+"px",t.style.width=e.regionW-i+"px"}),new c("http://www.w3.org/ns/ttml#styling fontFamily",function(e,t,n,r){var o=[];for(var i in r)"monospaceSerif"===r[i]?(o.push("Courier New"),o.push('"Liberation Mono"'),o.push("Courier"),o.push("monospace")):"proportionalSansSerif"===r[i]?(o.push("Arial"),o.push("Helvetica"),o.push('"Liberation Sans"'),o.push("sans-serif")):"monospace"===r[i]?o.push("monospace"):"sansSerif"===r[i]?o.push("sans-serif"):"serif"===r[i]?o.push("serif"):"monospaceSansSerif"===r[i]?(o.push("Consolas"),o.push("monospace")):"proportionalSerif"===r[i]?o.push("serif"):o.push(r[i]);t.style.fontFamily=o.join(",")}),new c("http://www.w3.org/ns/ttml#styling fontSize",function(e,t,n,r){t.style.fontSize=r*e.h+"px"}),new c("http://www.w3.org/ns/ttml#styling fontStyle",function(e,t,n,r){t.style.fontStyle=r}),new c("http://www.w3.org/ns/ttml#styling fontWeight",function(e,t,n,r){t.style.fontWeight=r}),new c("http://www.w3.org/ns/ttml#styling lineHeight",function(e,t,n,r){"normal"===r?t.style.lineHeight="normal":t.style.lineHeight=r*e.h+"px"}),new c("http://www.w3.org/ns/ttml#styling opacity",function(e,t,n,r){t.style.opacity=r}),new c("http://www.w3.org/ns/ttml#styling origin",function(e,t,n,r){t.style.top=r.h*e.h+"px",t.style.left=r.w*e.w+"px"}),new c("http://www.w3.org/ns/ttml#styling overflow",function(e,t,n,r){t.style.overflow=r}),new c("http://www.w3.org/ns/ttml#styling padding",function(e,t,n,r){var o=[];o[0]=r[0]*e.h+"px",o[1]=r[3]*e.w+"px",o[2]=r[2]*e.h+"px",o[3]=r[1]*e.w+"px",t.style.padding=o.join(" ")}),new c("http://www.w3.org/ns/ttml#styling showBackground",null),new c("http://www.w3.org/ns/ttml#styling textAlign",function(e,t,r,o){var i,a=r.styleAttrs[n.byName.direction.qname];i="start"===o?"rtl"===a?"right":"left":"end"===o?"rtl"===a?"left":"right":o,t.style.textAlign=i}),new c("http://www.w3.org/ns/ttml#styling textDecoration",function(e,t,n,r){t.style.textDecoration=r.join(" ").replace("lineThrough","line-through")}),new c("http://www.w3.org/ns/ttml#styling textOutline",function(e,t,n,r){"none"===r?t.style.textShadow="":t.style.textShadow="rgba("+r.color[0].toString()+","+r.color[1].toString()+","+r.color[2].toString()+","+(r.color[3]/255).toString()+") 0px 0px "+r.thickness*e.h+"px"}),new c("http://www.w3.org/ns/ttml#styling unicodeBidi",function(e,t,n,r){var o;o="bidiOverride"===r?"bidi-override":r,t.style.unicodeBidi=o}),new c("http://www.w3.org/ns/ttml#styling visibility",function(e,t,n,r){t.style.visibility=r}),new c("http://www.w3.org/ns/ttml#styling wrapOption",function(e,t,n,r){"wrap"===r?"preserve"===n.space?t.style.whiteSpace="pre-wrap":t.style.whiteSpace="normal":"preserve"===n.space?t.style.whiteSpace="pre":t.style.whiteSpace="noWrap"}),new c("http://www.w3.org/ns/ttml#styling writingMode",function(e,t,n,r){"lrtb"===r||"lr"===r?t.style.writingMode="horizontal-tb":"rltb"===r||"rl"===r?t.style.writingMode="horizontal-tb":"tblr"===r?t.style.writingMode="vertical-lr":"tbrl"!==r&&"tb"!==r||(t.style.writingMode="vertical-rl")}),new c("http://www.w3.org/ns/ttml#styling zIndex",function(e,t,n,r){t.style.zIndex=r}),new c("http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt backgroundImage",function(e,t,n,r){if(null!==e.imgResolver&&null!==r){var o=document.createElement("img"),i=e.imgResolver(r,o);i&&(o.src=i),o.height=e.regionH,o.width=e.regionW,t.appendChild(o)}}),new c("http://www.w3.org/ns/ttml/profile/imsc1#styling forcedDisplay",function(e,t,n,r){e.displayForcedOnlyMode&&r===!1&&(t.style.visibility="hidden")})],d={};for(var p in f)d[f[p].qname]=f[p]}(t,"undefined"==typeof imscNames?n(244):imscNames,"undefined"==typeof imscStyles?n(343):imscStyles)},function(e,t,n){!function(e,t,n){function r(e,t,a,c,l,f,d,p){if(t<d.begin||t>=d.end)return null;var h="regionID"in d&&""!==d.regionID?d.regionID:f;if(null!==l&&h!==a.id&&(!("contents"in d)||"contents"in d&&0===d.contents.length||""!==h))return null;var v=new u(d);for(var m in d.sets)t<d.sets[m].begin||t>=d.sets[m].end||(v.styleAttrs[d.sets[m].qname]=d.sets[m].value);var y={};for(var g in v.styleAttrs)if(y[g]=!0,g===n.byName.writingMode.qname&&!(n.byName.direction.qname in v.styleAttrs)){var _=v.styleAttrs[g];"lrtb"===_||"lr"===_?v.styleAttrs[n.byName.direction.qname]="ltr":"rltb"!==_&&"rl"!==_||(v.styleAttrs[n.byName.direction.qname]="rtl")}if(null!==l)for(var b in n.all){var E=n.all[b];if(E.qname===n.byName.textDecoration.qname){var T=l.styleAttrs[E.qname],w=v.styleAttrs[E.qname],S=[];void 0===w?S=T:w.indexOf("none")===-1?((w.indexOf("noUnderline")===-1&&T.indexOf("underline")!==-1||w.indexOf("underline")!==-1)&&S.push("underline"),(w.indexOf("noLineThrough")===-1&&T.indexOf("lineThrough")!==-1||w.indexOf("lineThrough")!==-1)&&S.push("lineThrough"),(w.indexOf("noOverline")===-1&&T.indexOf("overline")!==-1||w.indexOf("overline")!==-1)&&S.push("overline")):S.push("none"),v.styleAttrs[E.qname]=S}else E.inherit&&E.qname in l.styleAttrs&&!(E.qname in v.styleAttrs)&&(v.styleAttrs[E.qname]=l.styleAttrs[E.qname])}for(var O in n.all){var P=n.all[O];P.qname in v.styleAttrs||("region"===v.kind||P.inherit===!1&&null!==P.initial)&&(v.styleAttrs[P.qname]=P.parse(P.initial),y[P.qname]=!0)}for(var R in n.all){var I=n.all[R];if(I.qname in y&&null!==I.compute){var A=I.compute(e,l,v,v.styleAttrs[I.qname]);null!==A?v.styleAttrs[I.qname]=A:s(p,"Style '"+I.qname+"' on element '"+v.kind+"' cannot be computed")}}if("none"===v.styleAttrs[n.byName.display.qname])return null;var C;null===l?C=null===c?[]:[c]:"contents"in d&&(C=d.contents);for(var x in C){var N=r(e,t,a,c,v,h,C[x]);null!==N&&v.contents.push(N.element)}for(var M in v.styleAttrs){var k=n.byQName[M];k.applies.indexOf(v.kind)===-1&&delete v.styleAttrs[M]}if("span"===v.kind&&v.text&&"default"===v.space){var D=v.text.replace(/\s+/g," ");v.text=D}if("p"===v.kind){var L=[];o(v,L);for(var j=0,F="after_br",U=0;;)if("after_br"===F)j>=L.length||"br"===L[j].kind?(F="before_br",U=j,j--):("preserve"!==L[j].space&&(L[j].text=L[j].text.replace(/^\s+/g,"")),L[j].text.length>0?(F="looking_br",j++):L.splice(j,1));else if("before_br"===F)if(j<0||"br"===L[j].kind){if(F="after_br",j=U+1,j>=L.length)break}else if("preserve"!==L[j].space&&(L[j].text=L[j].text.replace(/\s+$/g,"")),L[j].text.length>0){if(F="after_br",j=U+1,j>=L.length)break}else L.splice(j,1),j--;else j>=L.length||"br"===L[j].kind?(F="before_br",U=j,j--):j++;i(v)}return"div"===v.kind&&n.byName.backgroundImage.qname in v.styleAttrs||"br"===v.kind||"contents"in v&&v.contents.length>0||"span"===v.kind&&null!==v.text||"region"===v.kind&&"always"===v.styleAttrs[n.byName.showBackground.qname]?{region_id:h,element:v}:null}function o(e,t){if("contents"in e)for(var n in e.contents)o(e.contents[n],t);else t.push(e)}function i(e){if("br"===e.kind)return!1;if("text"in e)return 0===e.text.length;if("contents"in e){for(var t=e.contents.length;t--;)i(e.contents[t])&&e.contents.splice(t,1);return 0===e.contents.length}}function a(e){this.contents=[],this.aspectRatio=e.aspectRatio}function u(e){this.kind=e.kind||"region",this.styleAttrs={};for(var t in e.styleAttrs)this.styleAttrs[t]=e.styleAttrs[t];"text"in e?this.text=e.text:"br"!==e.kind&&(this.contents=[]),"space"in e&&(this.space=e.space)}function s(e,t){if(e&&e.error&&e.error(t))throw t}e.generateISD=function(e,t,n){var o=new a(e);for(var i in e.head.layout.regions){var u=r(e,t,e.head.layout.regions[i],e.body,null,"",e.head.layout.regions[i],n);null!==u&&o.contents.push(u.element)}return o}}(t,"undefined"==typeof imscNames?n(244):imscNames,"undefined"==typeof imscStyles?n(343):imscStyles)},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="undefined"!=typeof JSON?JSON:n(1060);e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var n=t.space||"";"number"==typeof n&&(n=Array(n+1).join(" "));var u="boolean"==typeof t.cycles&&t.cycles,s=t.replacer||function(e,t){return t},c=t.cmp&&function(e){return function(t){return function(n,r){var o={key:n,value:t[n]},i={key:r,value:t[r]};return e(o,i)}}}(t.cmp),l=[];return function f(e,t,d,p){var h=n?"\n"+new Array(p+1).join(n):"",v=n?": ":":";if(d&&d.toJSON&&"function"==typeof d.toJSON&&(d=d.toJSON()),d=s.call(e,t,d),void 0!==d){if("object"!==("undefined"==typeof d?"undefined":r(d))||null===d)return o.stringify(d);if(i(d)){for(var m=[],y=0;y<d.length;y++){var g=f(d,y,d[y],p+1)||o.stringify(null);m.push(h+n+g)}return"["+m.join(",")+h+"]"}if(l.indexOf(d)!==-1){if(u)return o.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}l.push(d);for(var _=a(d).sort(c&&c(d)),m=[],y=0;y<_.length;y++){var t=_[y],b=f(d,t,d[t],p+1);if(b){var E=o.stringify(t)+v+b;m.push(h+n+E)}}return l.splice(l.indexOf(d),1),"{"+m.join(",")+h+"}"}}({"":e},"",e,0)};var i=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},a=Object.keys||function(e){var t=Object.prototype.hasOwnProperty||function(){return!0},n=[];for(var r in e)t.call(e,r)&&n.push(r);return n}},function(e,t,n){t.parse=n(1061),t.stringify=n(1062)},function(e,t){var n,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},u={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},s=function(e){throw{name:"SyntaxError",message:e,at:n,text:o}},c=function(e){return e&&e!==r&&s("Expected '"+e+"' instead of '"+r+"'"),r=o.charAt(n),n+=1,r},l=function m(){var m,e="";for("-"===r&&(e="-",c("-"));r>="0"&&r<="9";)e+=r,c();if("."===r)for(e+=".";c()&&r>="0"&&r<="9";)e+=r;if("e"===r||"E"===r)for(e+=r,c(),"-"!==r&&"+"!==r||(e+=r,c());r>="0"&&r<="9";)e+=r,c();return m=+e,isFinite(m)?m:void s("Bad number")},f=function y(){var e,t,n,y="";if('"'===r)for(;c();){if('"'===r)return c(),y;if("\\"===r)if(c(),"u"===r){for(n=0,t=0;t<4&&(e=parseInt(c(),16),isFinite(e));t+=1)n=16*n+e;y+=String.fromCharCode(n)}else{if("string"!=typeof u[r])break;y+=u[r]}else y+=r}s("Bad string")},d=function(){for(;r&&r<=" ";)c()},p=function(){switch(r){case"t":return c("t"),c("r"),c("u"),c("e"),!0;case"f":return c("f"),c("a"),c("l"),c("s"),c("e"),!1;case"n":return c("n"),c("u"),c("l"),c("l"),null}s("Unexpected '"+r+"'")},h=function g(){var g=[];if("["===r){if(c("["),d(),"]"===r)return c("]"),g;for(;r;){if(g.push(i()),d(),"]"===r)return c("]"),g;c(","),d()}}s("Bad array")},v=function _(){var e,_={};if("{"===r){if(c("{"),d(),"}"===r)return c("}"),_;for(;r;){if(e=f(),d(),c(":"),Object.hasOwnProperty.call(_,e)&&s('Duplicate key "'+e+'"'),_[e]=i(),d(),"}"===r)return c("}"),_;c(","),d()}}s("Bad object")};i=function(){switch(d(),r){case"{":return v();case"[":return h();case'"':return f();case"-":return l();default:return r>="0"&&r<="9"?l():p()}},e.exports=function(e,t){var u;return o=e,n=0,r=" ",u=i(),d(),r&&s("Syntax error"),"function"==typeof t?function c(e,n){var r,o,i=e[n];if(i&&"object"===("undefined"==typeof i?"undefined":a(i)))for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(o=c(i,r),void 0!==o?i[r]=o:delete i[r]);return t.call(e,n,i)}({"":u},""):u}},function(e,t){function n(e){return s.lastIndex=0,s.test(e)?'"'+e.replace(s,function(e){var t=c[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function r(e,t){var s,c,l,f,d,p=o,h=t[e];switch(h&&"object"===("undefined"==typeof h?"undefined":u(h))&&"function"==typeof h.toJSON&&(h=h.toJSON(e)),"function"==typeof a&&(h=a.call(t,e,h)),"undefined"==typeof h?"undefined":u(h)){case"string":return n(h);case"number":return isFinite(h)?String(h):"null";case"boolean":case"null":return String(h);case"object":if(!h)return"null";if(o+=i,d=[],"[object Array]"===Object.prototype.toString.apply(h)){for(f=h.length,s=0;s<f;s+=1)d[s]=r(s,h)||"null";return l=0===d.length?"[]":o?"[\n"+o+d.join(",\n"+o)+"\n"+p+"]":"["+d.join(",")+"]",o=p,l}if(a&&"object"===("undefined"==typeof a?"undefined":u(a)))for(f=a.length,s=0;s<f;s+=1)c=a[s],"string"==typeof c&&(l=r(c,h),l&&d.push(n(c)+(o?": ":":")+l));else for(c in h)Object.prototype.hasOwnProperty.call(h,c)&&(l=r(c,h),l&&d.push(n(c)+(o?": ":":")+l));return l=0===d.length?"{}":o?"{\n"+o+d.join(",\n"+o)+"\n"+p+"}":"{"+d.join(",")+"}",o=p,l}}var o,i,a,u="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},s=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,c={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};e.exports=function(e,t,n){var s;if(o="",i="","number"==typeof n)for(s=0;s<n;s+=1)i+=" ";else"string"==typeof n&&(i=n);if(a=t,t&&"function"!=typeof t&&("object"!==("undefined"==typeof t?"undefined":u(t))||"number"!=typeof t.length))throw new Error("JSON.stringify");return r("",{"":e})}},function(e,t,n){var r=n(166),o=n(53),i=r(o,"DataView");e.exports=i},function(e,t,n){function r(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=n(1116),i=n(1117),a=n(1118),u=n(1119),s=n(1120);r.prototype.clear=o,r.prototype["delete"]=i,r.prototype.get=a,r.prototype.has=u,r.prototype.set=s,e.exports=r},function(e,t,n){var r=n(166),o=n(53),i=r(o,"Promise");e.exports=i},function(e,t,n){var r=n(53),o=r.Reflect;e.exports=o},function(e,t){function n(e,t){return e.set(t[0],t[1]),e}e.exports=n},function(e,t){function n(e,t){return e.add(t),e}e.exports=n},function(e,t){function n(e,t){for(var n=-1,r=e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}e.exports=n},function(e,t,n){function r(e,t,n,r){return void 0===e||o(e,i[n])&&!a.call(r,n)?t:e}var o=n(204),i=Object.prototype,a=i.hasOwnProperty;e.exports=r},function(e,t){function n(e,t,n){return e===e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}e.exports=n},function(e,t,n){function r(e,t,n,r){var f=-1,d=i,p=!0,h=e.length,v=[],m=t.length;if(!h)return v;n&&(t=u(t,s(n))),r?(d=a,p=!1):t.length>=l&&(d=c,p=!1,t=new o(t));e:for(;++f<h;){var y=e[f],g=n?n(y):y;if(y=r||0!==y?y:0,p&&g===g){for(var _=m;_--;)if(t[_]===g)continue e;v.push(y)}else d(t,g,r)||v.push(y)}return v}var o=n(347),i=n(523),a=n(524),u=n(110),s=n(540),c=n(543),l=200;e.exports=r},function(e,t,n){function r(e,t){var n=!0;return o(e,function(e,r,o){return n=!!t(e,r,o)}),n}var o=n(162);e.exports=r},function(e,t,n){function r(e,t,n,r){var a=e.length;for(n=o(n),n<0&&(n=-n>a?0:a+n),r=void 0===r||r>a?a:o(r),r<0&&(r+=a),r=n>r?0:i(r);n<r;)e[n++]=t;return e}var o=n(99),i=n(1210);e.exports=r},function(e,t,n){function r(e,t){var n=[];return o(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n}var o=n(162);e.exports=r},function(e,t){function n(e,t){return t in Object(e)}e.exports=n},function(e,t,n){function r(e,t,n,r){return o(e,function(e,o,i){t(r,n(e),o,i)}),r}var o=n(135);e.exports=r},function(e,t,n){function r(e,t,n){a(t,e)||(t=i(t),e=s(e,t),t=u(t));var r=null==e?e:e[c(t)];return null==r?void 0:o(r,e,n)}var o=n(109),i=n(163),a=n(111),u=n(262),s=n(561),c=n(70);e.exports=r},function(e,t,n){function r(e,t,n,r,m,g){var _=c(e),b=c(t),E=h,T=h;_||(E=s(e),E=E==p?v:E),b||(T=s(t),T=T==p?v:T);var w=E==v&&!l(e),S=T==v&&!l(t),O=E==T;if(O&&!w)return g||(g=new o),_||f(e)?i(e,t,n,r,m,g):a(e,t,E,n,r,m,g);if(!(m&d)){var P=w&&y.call(e,"__wrapped__"),R=S&&y.call(t,"__wrapped__");if(P||R){var I=P?e.value():e,A=R?t.value():t;return g||(g=new o),n(I,A,r,m,g)}}return!!O&&(g||(g=new o),u(e,t,n,r,m,g))}var o=n(246),i=n(552),a=n(1110),u=n(1111),s=n(253),c=n(27),l=n(254),f=n(261),d=2,p="[object Arguments]",h="[object Array]",v="[object Object]",m=Object.prototype,y=m.hasOwnProperty;e.exports=r},function(e,t,n){function r(e,t,n,r){var s=n.length,c=s,l=!r;if(null==e)return!c;for(e=Object(e);s--;){var f=n[s];if(l&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++s<c;){f=n[s];var d=f[0],p=e[d],h=f[1];if(l&&f[2]){if(void 0===p&&!(d in e))return!1}else{var v=new o;if(r)var m=r(p,h,d,e,t,v);if(!(void 0===m?i(h,p,r,a|u,v):m))return!1}}return!0}var o=n(246),i=n(353),a=1,u=2;e.exports=r},function(e,t,n){function r(e){e=null==e?e:Object(e);var t=[];for(var n in e)t.push(n);return t}var o=n(1066),i=n(1128),a=Object.prototype,u=o?o.enumerate:void 0,s=a.propertyIsEnumerable;u&&!s.call({valueOf:1},"valueOf")&&(r=function(e){return i(u(e))}),e.exports=r},function(e,t,n){function r(e,t){var n=-1,r=i(e)?Array(e.length):[];return o(e,function(e,o,i){r[++n]=t(e,o,i)}),r}var o=n(162),i=n(97);e.exports=r},function(e,t,n){function r(e){var t=i(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||o(n,e,t)}}var o=n(1080),i=n(1114),a=n(559);e.exports=r},function(e,t,n){function r(e,t){return u(e)&&s(t)?c(l(e),t):function(n){var r=i(n,e);return void 0===r&&r===t?a(n,e):o(t,r,void 0,f|d)}}var o=n(353),i=n(138),a=n(571),u=n(111),s=n(558),c=n(559),l=n(70),f=1,d=2;e.exports=r},function(e,t,n){function r(e,t,n,r,v,m,y){var g=e[n],_=t[n],b=y.get(_);if(b)return void o(e,n,b);var E=m?m(g,_,n+"",e,t,y):void 0,T=void 0===E;T&&(E=_,s(_)||p(_)?s(g)?E=g:c(g)?E=a(g):(T=!1,E=i(_,!0)):d(_)||u(_)?u(g)?E=h(g):!f(g)||r&&l(g)?(T=!1,E=i(_,!0)):E=g:T=!1),y.set(_,E),T&&v(E,_,r,m,y),y["delete"](_),o(e,n,E)}var o=n(526),i=n(351),a=n(201),u=n(206),s=n(27),c=n(572),l=n(83),f=n(39),d=n(168),p=n(261),h=n(1212);e.exports=r},function(e,t,n){function r(e){return function(t){return o(t,e)}}var o=n(249);e.exports=r},function(e,t,n){function r(e,t){var n;return o(e,function(e,r,o){return n=t(e,r,o),!n}),!!n}var o=n(162);e.exports=r},function(e,t){function n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}e.exports=n},function(e,t,n){function r(e,t){return o(t,function(t){return[t,e[t]]})}var o=n(110);e.exports=r},function(e,t,n){function r(e){if("string"==typeof e)return e;if(i(e))return s?s.call(e):"";var t=e+"";return"0"==t&&1/e==-a?"-0":t}var o=n(348),i=n(207),a=1/0,u=o?o.prototype:void 0,s=u?u.toString:void 0;e.exports=r},function(e,t,n){function r(e,t,n){var r=-1,f=i,d=e.length,p=!0,h=[],v=h;if(n)p=!1,f=a;else if(d>=l){var m=t?null:s(e);if(m)return c(m);p=!1,f=u,v=new o}else v=t?[]:h;e:for(;++r<d;){var y=e[r],g=t?t(y):y;if(y=n||0!==y?y:0,p&&g===g){for(var _=v.length;_--;)if(v[_]===g)continue e;t&&v.push(g),h.push(y)}else f(v,g,n)||(v!==h&&v.push(g),h.push(y))}return h}var o=n(347),i=n(523),a=n(524),u=n(543),s=n(1109),c=n(257),l=200;e.exports=r},function(e,t,n){function r(e,t){t=a(t,e)?[t]:i(t),e=s(e,t);var n=c(u(t));return!(null!=e&&o(e,n))||delete e[n]}var o=n(250),i=n(163),a=n(111),u=n(262),s=n(561),c=n(70);e.exports=r},function(e,t,n){function r(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:o(e,t,n)}var o=n(357);e.exports=r},function(e,t){function n(e){return e&&e.Object===Object?e:null}e.exports=n},function(e,t){function n(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}e.exports=n},function(e,t,n){function r(e,t){var n=t?o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var o=n(358);e.exports=r},function(e,t,n){function r(e,t,n){var r=t?n(a(e),!0):a(e);return i(r,o,new e.constructor)}var o=n(1067),i=n(349),a=n(361);e.exports=r},function(e,t){function n(e){var t=new e.constructor(e.source,r.exec(e));return t.lastIndex=e.lastIndex,t}var r=/\w*$/;e.exports=n},function(e,t,n){function r(e,t,n){var r=t?n(a(e),!0):a(e);return i(r,o,new e.constructor)}var o=n(1068),i=n(349),a=n(257);e.exports=r},function(e,t,n){function r(e){return a?Object(a.call(e)):{}}var o=n(348),i=o?o.prototype:void 0,a=i?i.valueOf:void 0;e.exports=r},function(e,t,n){function r(e,t){var n=t?o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var o=n(358);e.exports=r},function(e,t,n){function r(e,t){return o(e,i(e),t)}var o=n(136),i=n(360);e.exports=r},function(e,t){function n(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&r++;return r}e.exports=n},function(e,t,n){function r(e,t){return function(n,r){if(null==n)return n;if(!o(n))return e(n,r);for(var i=n.length,a=t?i:-1,u=Object(n);(t?a--:++a<i)&&r(u[a],a,u)!==!1;);return n}}var o=n(97);e.exports=r},function(e,t,n){function r(e,t,n){function r(){var t=this&&this!==i&&this instanceof r?s:e;return t.apply(u?n:this,arguments)}var u=t&a,s=o(e);return r}var o=n(251),i=n(53),a=1;e.exports=r},function(e,t,n){function r(e,t,n){function r(){for(var i=arguments.length,d=Array(i),p=i,h=s(r);p--;)d[p]=arguments[p];var v=i<3&&d[0]!==h&&d[i-1]!==h?[]:c(d,h);if(i-=v.length,i<n)return u(e,t,a,r.placeholder,void 0,d,v,void 0,void 0,n-i);var m=this&&this!==l&&this instanceof r?f:e;return o(m,this,d)}var f=i(e);return r}var o=n(109),i=n(251),a=n(548),u=n(550),s=n(165),c=n(137),l=n(53);e.exports=r},function(e,t,n){function r(e){return l(function(t){t=i(t,1);var n=t.length,r=n,l=o.prototype.thru;for(e&&t.reverse();r--;){var y=t[r];if("function"!=typeof y)throw new TypeError(d);if(l&&!g&&"wrapper"==u(y))var g=new o([],(!0))}for(r=g?r:n;++r<n;){y=t[r];var _=u(y),b="wrapper"==_?a(y):void 0;g=b&&c(b[0])&&b[1]==(v|p|h|m)&&!b[4].length&&1==b[9]?g[u(b[0])].apply(g,b[3]):1==y.length&&c(y)?g[_]():g.thru(y)}return function(){var e=arguments,r=e[0];if(g&&1==e.length&&s(r)&&r.length>=f)return g.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}})}var o=n(345),i=n(200),a=n(359),u=n(554),s=n(27),c=n(557),l=n(40),f=200,d="Expected a function",p=8,h=32,v=128,m=256;e.exports=r},function(e,t,n){function r(e,t,n,r){function s(){for(var t=-1,i=arguments.length,u=-1,f=r.length,d=Array(f+i),p=this&&this!==a&&this instanceof s?l:e;++u<f;)d[u]=r[u];for(;i--;)d[u++]=arguments[++t];return o(p,c?n:this,d)}var c=t&u,l=i(e);return s}var o=n(109),i=n(251),a=n(53),u=1;e.exports=r},function(e,t,n){var r=n(519),o=n(576),i=n(257),a=1/0,u=r&&1/i(new r([,-0]))[1]==a?function(e){return new r(e)}:o;e.exports=u},function(e,t,n){function r(e,t,n,r,o,T,S){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case b:return!(e.byteLength!=t.byteLength||!r(new i(e),new i(t)));case f:case d:return+e==+t;case p:return e.name==t.name&&e.message==t.message;case v:return e!=+e?t!=+t:e==+t;case m:case g:return e==t+"";case h:var O=u;case y:var P=T&l;if(O||(O=s),e.size!=t.size&&!P)return!1;var R=S.get(e);return R?R==t:(T|=c,S.set(e,t),a(O(e),O(t),r,o,T,S));case _:if(w)return w.call(e)==w.call(t)}return!1}var o=n(348),i=n(520),a=n(552),u=n(361),s=n(257),c=1,l=2,f="[object Boolean]",d="[object Date]",p="[object Error]",h="[object Map]",v="[object Number]",m="[object RegExp]",y="[object Set]",g="[object String]",_="[object Symbol]",b="[object ArrayBuffer]",E="[object DataView]",T=o?o.prototype:void 0,w=T?T.valueOf:void 0;e.exports=r},function(e,t,n){function r(e,t,n,r,u,s){var c=u&a,l=i(e),f=l.length,d=i(t),p=d.length;if(f!=p&&!c)return!1;for(var h=f;h--;){var v=l[h];if(!(c?v in t:o(t,v)))return!1}var m=s.get(e);if(m)return m==t;var y=!0;s.set(e,t);for(var g=c;++h<f;){v=l[h];var _=e[v],b=t[v];if(r)var E=c?r(b,_,v,t,e,s):r(_,b,v,e,t,s);if(!(void 0===E?_===b||n(_,b,r,u,s):E)){y=!1;break}g||(g="constructor"==v)}if(y&&!g){var T=e.constructor,w=t.constructor;T!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof T&&T instanceof T&&"function"==typeof w&&w instanceof w)&&(y=!1)}return s["delete"](e),y}var o=n(250),i=n(54),a=2;e.exports=r},function(e,t,n){function r(e){return o(e,a,i)}var o=n(533),i=n(360),a=n(54);e.exports=r},function(e,t,n){var r=n(538),o=r("length");e.exports=o},function(e,t,n){function r(e){for(var t=i(e),n=t.length;n--;)t[n][2]=o(t[n][1]);return t}var o=n(558),i=n(374);e.exports=r},function(e,t,n){var r=n(247),o=n(202),i=n(360),a=Object.getOwnPropertySymbols,u=a?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:i;e.exports=u},function(e,t,n){function r(){this.__data__=o?o(null):{}}var o=n(256);e.exports=r},function(e,t){function n(e){return this.has(e)&&delete this.__data__[e]}e.exports=n},function(e,t,n){function r(e){var t=this.__data__;if(o){var n=t[e];return n===i?void 0:n}return u.call(t,e)?t[e]:void 0}var o=n(256),i="__lodash_hash_undefined__",a=Object.prototype,u=a.hasOwnProperty;e.exports=r},function(e,t,n){function r(e){var t=this.__data__;return o?void 0!==t[e]:a.call(t,e)}var o=n(256),i=Object.prototype,a=i.hasOwnProperty;e.exports=r},function(e,t,n){function r(e,t){var n=this.__data__;return n[e]=o&&void 0===t?i:t,this}var o=n(256),i="__lodash_hash_undefined__";e.exports=r},function(e,t){function n(e,t,n){for(var r=e.length,o=t+(n?0:-1);n?o--:++o<r;){var i=e[o];if(i!==i)return o}return-1}e.exports=n},function(e,t){function n(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&o.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var r=Object.prototype,o=r.hasOwnProperty;e.exports=n},function(e,t,n){function r(e,t,n,r){var C=e.constructor;switch(t){case _:return o(e);case f:case d:return new C((+e));case b:return i(e,r);case E:case T:case w:case S:case O:case P:case R:case I:case A:return l(e,r);case p:return a(e,r,n);case h:case y:return new C(e);case v:return u(e);case m:return s(e,r,n);case g:return c(e)}}var o=n(358),i=n(1096),a=n(1097),u=n(1098),s=n(1099),c=n(1100),l=n(1101),f="[object Boolean]",d="[object Date]",p="[object Map]",h="[object Number]",v="[object RegExp]",m="[object Set]",y="[object String]",g="[object Symbol]",_="[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]";e.exports=r},function(e,t,n){function r(e){return"function"!=typeof e.constructor||a(e)?{}:o(i(e))}var o=n(161),i=n(202),a=n(203);e.exports=r},function(e,t,n){function r(e){return i(e)||o(e)}var o=n(206),i=n(27);e.exports=r},function(e,t,n){function r(e){return o(e)&&!(2==e.length&&!i(e[0]))}var o=n(27),i=n(83);e.exports=r},function(e,t){function n(e){var t="undefined"==typeof e?"undefined":r(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}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){function n(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}e.exports=n},function(e,t){function n(){this.__data__=[]}e.exports=n},function(e,t,n){function r(e){var t=this.__data__,n=o(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():a.call(t,n,1),!0}var o=n(248),i=Array.prototype,a=i.splice;e.exports=r},function(e,t,n){function r(e){var t=this.__data__,n=o(t,e);return n<0?void 0:t[n][1]}var o=n(248);e.exports=r},function(e,t,n){function r(e){return o(this.__data__,e)>-1}var o=n(248);e.exports=r},function(e,t,n){function r(e,t){var n=this.__data__,r=o(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}var o=n(248);e.exports=r},function(e,t,n){function r(){this.__data__={hash:new o,map:new(a||i),string:new o}}var o=n(1064),i=n(245),a=n(518);e.exports=r},function(e,t,n){function r(e){return o(this,e)["delete"](e)}var o=n(252);e.exports=r},function(e,t,n){function r(e){return o(this,e).get(e)}var o=n(252);e.exports=r},function(e,t,n){function r(e){return o(this,e).has(e)}var o=n(252);e.exports=r},function(e,t,n){function r(e,t){return o(this,e).set(e,t),this}var o=n(252);e.exports=r},function(e,t,n){function r(e,t){var n=e[1],r=t[1],v=n|r,m=v<(s|c|d),y=r==d&&n==f||r==d&&n==p&&e[7].length<=t[8]||r==(d|p)&&t[7].length<=t[8]&&n==f;if(!m&&!y)return e;r&s&&(e[2]=t[2],v|=n&s?0:l);var g=t[3];if(g){var _=e[3];e[3]=_?o(_,g,t[4]):g,e[4]=_?a(e[3],u):t[4]}return g=t[5],g&&(_=e[5],e[5]=_?i(_,g,t[6]):g,e[6]=_?a(e[5],u):t[6]),g=t[7],g&&(e[7]=g),r&d&&(e[8]=null==e[8]?t[8]:h(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=v,e}var o=n(545),i=n(546),a=n(137),u="__lodash_placeholder__",s=1,c=2,l=4,f=8,d=128,p=256,h=Math.min;e.exports=r},function(e,t,n){function r(e,t,n,a,u,s){return i(e)&&i(t)&&o(e,t,void 0,r,s.set(t,e)),e}var o=n(355),i=n(39);e.exports=r},function(e,t){var n={};e.exports=n},function(e,t,n){function r(e,t){for(var n=e.length,r=a(t.length,n),u=o(e);r--;){var s=t[r];e[r]=i(s,n)?u[s]:void 0}return e}var o=n(201),i=n(167),a=Math.min;e.exports=r},function(e,t){function n(e){return this.__data__.set(e,r),this}var r="__lodash_hash_undefined__";e.exports=n},function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},function(e,t){function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}e.exports=n},function(e,t,n){function r(){this.__data__=new o}var o=n(245);e.exports=r},function(e,t){function n(e){return this.__data__["delete"](e)}e.exports=n},function(e,t){function n(e){return this.__data__.get(e)}e.exports=n},function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},function(e,t,n){function r(e,t){var n=this.__data__;return n instanceof o&&n.__data__.length==a&&(n=this.__data__=new i(n.__data__)),n.set(e,t),this}var o=n(245),i=n(346),a=200;e.exports=r},function(e,t,n){function r(e){if(e instanceof o)return e.clone();var t=new i(e.__wrapped__,e.__chain__);return t.__actions__=a(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var o=n(344),i=n(345),a=n(201);e.exports=r},function(e,t,n){function r(e,t){if("function"!=typeof t)throw new TypeError(i);return e=o(e),function(){if(--e<1)return t.apply(this,arguments)}}var o=n(99),i="Expected a function";e.exports=r},function(e,t,n){var r=n(199),o=n(136),i=n(164),a=n(97),u=n(203),s=n(54),c=Object.prototype,l=c.hasOwnProperty,f=c.propertyIsEnumerable,d=!f.call({valueOf:1},"valueOf"),p=i(function(e,t){if(d||u(t)||a(t))return void o(t,s(t),e);for(var n in t)l.call(t,n)&&r(e,n,t[n])});e.exports=p},function(e,t,n){var r=n(136),o=n(164),i=n(54),a=o(function(e,t,n,o){r(t,i(t),e,o)});e.exports=a},function(e,t,n){var r=n(96),o=n(165),i=n(137),a=n(40),u=1,s=32,c=a(function(e,t,n){var a=u;if(n.length){var l=i(n,o(c));a|=s}return r(e,a,t,n,l)});c.placeholder={},e.exports=c},function(e,t,n){var r=n(96),o=n(165),i=n(137),a=n(40),u=1,s=2,c=32,l=a(function(e,t,n){var a=u|s;if(n.length){var f=i(n,o(l));a|=c}return r(t,a,e,n,f)});l.placeholder={},e.exports=l},function(e,t,n){function r(e){return o(e,!1,!0)}var o=n(351);e.exports=r},function(e,t,n){function r(e,t){var n=i(e);return t?o(n,t):n}var o=n(350),i=n(161);e.exports=r},function(e,t,n){function r(e,t,n){t=n?void 0:t;var a=o(e,i,void 0,void 0,void 0,void 0,void 0,t);return a.placeholder=r.placeholder,a}var o=n(96),i=16;
r.placeholder={},e.exports=r},function(e,t,n){var r=n(109),o=n(1070),i=n(363),a=n(40),u=a(function(e){return e.push(void 0,o),r(i,void 0,e)});e.exports=u},function(e,t,n){var r=n(109),o=n(1140),i=n(575),a=n(40),u=a(function(e){return e.push(void 0,o),r(i,void 0,e)});e.exports=u},function(e,t,n){var r=n(527),o=n(40),i=o(function(e,t){return r(e,1,t)});e.exports=i},function(e,t,n){var r=n(527),o=n(40),i=n(373),a=o(function(e,t,n){return r(e,i(t)||0,n)});e.exports=a},function(e,t,n){e.exports=n(374)},function(e,t,n){e.exports=n(581)},function(e,t,n){function r(e,t,n){var r=u(e)?o:i;return n&&s(e,t,n)&&(t=void 0),r(e,a(t,3))}var o=n(1069),i=n(1073),a=n(34),u=n(27),s=n(255);e.exports=r},function(e,t,n){e.exports=n(565)},function(e,t,n){e.exports=n(363)},function(e,t,n){function r(e,t){var n=u(e)?o:i;return n(e,a(t,3))}var o=n(522),i=n(1075),a=n(34),u=n(27);e.exports=r},function(e,t,n){function r(e,t){return e&&e.length?o(e,i(t,3)):-1}var o=n(528),i=n(34);e.exports=r},function(e,t,n){function r(e,t){return o(e,a(t,3),i,!0)}var o=n(352),i=n(530),a=n(34);e.exports=r},function(e,t,n){function r(e){return o(e,i)}var o=n(96),i=512;e.exports=r},function(e,t,n){var r=n(1107),o=r();e.exports=o},function(e,t,n){function r(e,t){var n=u(e)?o:i;return n(e,a(t,3))}var o=n(198),i=n(162),a=n(34),u=n(27);e.exports=r},function(e,t,n){function r(e,t){return null==e?e:o(e,i(t,3),a)}var o=n(529),i=n(34),a=n(71);e.exports=r},function(e,t,n){function r(e,t){return null==e?e:o(e,i(t,3),a)}var o=n(531),i=n(34),a=n(71);e.exports=r},function(e,t,n){function r(e,t){return e&&o(e,i(t,3))}var o=n(135),i=n(34);e.exports=r},function(e,t,n){function r(e,t){return e&&o(e,i(t,3))}var o=n(530),i=n(34);e.exports=r},function(e,t,n){function r(e,t){return 2==t?function(t,n){return e.apply(void 0,arguments)}:function(t){return e.apply(void 0,arguments)}}function o(e,t){return 2==t?function(t,n){return e(t,n)}:function(t){return e(t)}}function i(e){for(var t=e?e.length:0,n=Array(t);t--;)n[t]=e[t];return n}function a(e){return function(t){return e({},t)}}function u(e,t){return function(){var n=arguments.length;if(!n)return o;for(var r=Array(n);n--;)r[n]=arguments[n];var o=r[0]=t.apply(void 0,r);return e.apply(void 0,r),o}}function s(e,t,n,d){function p(e,t){t=B(t);for(var n=-1,r=t.length,o=r-1,i=N(Object(e)),a=i;null!=a&&++n<r;){var u=t[n],s=a[u];null!=s&&(a[t[n]]=N(n==o?s:Object(s))),a=a[u]}return i}function h(e){return V.runInContext.convert(e)(void 0)}function v(e,t){var n=d;return function(r){var o=E?I:A,i=E?I[e]:t,a=x(x({},n),r);return s(o,e,i,a)}}function m(e,t){return g(e,function(e){return"function"==typeof e?o(e,t):e})}function y(e,t){return g(e,function(e){var n=t.length;return r(F(o(e,n),t),n)})}function g(e,t){return function(){var n=arguments.length;if(!n)return e();for(var r=Array(n);n--;)r[n]=arguments[n];var o=w.rearg?0:n-1;return r[o]=t(r[o]),e.apply(void 0,r)}}function _(e,t){e=c.aliasToReal[e]||e;var n,r=t,o=q[e];return o?r=o(t):w.immutable&&(l.array[e]?r=u(t,i):l.object[e]?r=u(t,a(t)):l.set[e]&&(r=u(t,p))),k(H,function(t){return k(c.aryMethod[t],function(o){if(e==o){var i=!E&&c.iterateeAry[e],a=c.iterateeRearg[e],u=c.methodSpread[e];return n=r,!w.fixed||!O&&c.skipFixed[e]||(n=void 0===u?C(n,t):U(n,u)),w.rearg&&t>1&&(P||!c.skipRearg[e])&&(n=F(n,c.methodRearg[e]||c.aryRearg[t])),w.cap&&(a?n=y(n,a):i&&(n=m(n,i))),(S||w.curry&&t>1)&&(S&&console.log(S,e),n=M(n,t)),!1}}),!n}),n||(n=r),n==t&&(n=S?M(n,1):function(){return t.apply(this,arguments)}),n.convert=v(e,t),c.placeholder[e]&&(b=!0,n.placeholder=t.placeholder=R),n}var b,E="function"==typeof t,T=t===Object(t);if(T&&(d=n,n=t,t=void 0),null==n)throw new TypeError;d||(d={});var w={cap:!("cap"in d)||d.cap,curry:!("curry"in d)||d.curry,fixed:!("fixed"in d)||d.fixed,immutable:!("immutable"in d)||d.immutable,rearg:!("rearg"in d)||d.rearg},S="curry"in d&&d.curry,O="fixed"in d&&d.fixed,P="rearg"in d&&d.rearg,R=E?n:f,I=E?n.runInContext():void 0,A=E?n:{ary:e.ary,assign:e.assign,clone:e.clone,curry:e.curry,forEach:e.forEach,isArray:e.isArray,isFunction:e.isFunction,iteratee:e.iteratee,keys:e.keys,rearg:e.rearg,spread:e.spread,toPath:e.toPath},C=A.ary,x=A.assign,N=A.clone,M=A.curry,k=A.forEach,D=A.isArray,L=A.isFunction,j=A.keys,F=A.rearg,U=A.spread,B=A.toPath,H=j(c.aryMethod),q={castArray:function(e){return function(){var t=arguments[0];return D(t)?e(i(t)):e.apply(void 0,arguments)}},iteratee:function(e){return function(){var t=arguments[0],n=arguments[1],r=e(t,n),i=r.length;return w.cap&&"number"==typeof n?(n=n>2?n-2:1,i&&i<=n?r:o(r,n)):r}},mixin:function(e){return function(t){var n=this;if(!L(n))return e(n,Object(t));var r=[];return k(j(t),function(e){L(t[e])&&r.push([e,n.prototype[e]])}),e(n,Object(t)),k(r,function(e){var t=e[1];L(t)?n.prototype[e[0]]=t:delete n.prototype[e[0]]}),n}},runInContext:function(t){return function(n){return s(e,t(n),d)}}};if(!T)return _(t,n);var V=n,G=[];return k(H,function(e){k(c.aryMethod[e],function(e){var t=V[c.remap[e]||e];t&&G.push([e,_(e,t)])})}),k(j(V),function(e){var t=V[e];if("function"==typeof t){for(var n=G.length;n--;)if(G[n][0]==e)return;t.convert=v(e,t),G.push([e,t])}}),k(G,function(e){V[e[0]]=e[1]}),V.convert=h,b&&(V.placeholder=R),k(j(V),function(e){k(c.realToAlias[e]||[],function(t){V[t]=V[e]})}),V}var c=n(1181),l=c.mutate,f=n(258);e.exports=s},function(e,t){e.exports={cap:!1,curry:!1,fixed:!1,immutable:!1,rearg:!1}},function(e,t){t.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendWith:"assignInWith",first:"head",__:"placeholder",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",equals:"isEqual",identical:"eq",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",unapply:"rest",unnest:"flatten",useWith:"overArgs",whereEq:"filter",zipObj:"zipObject"},t.aryMethod={1:["attempt","castArray","ceil","create","curry","curryRight","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","methodOf","mixin","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words"],2:["add","after","ary","assign","assignIn","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","getOr","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},t.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},t.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findIndex:1,findKey:1,findLast:1,findLastIndex:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},t.iterateeRearg={mapKeys:[1]},t.methodRearg={assignInWith:[1,2,0],assignWith:[1,2,0],getOr:[2,1,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],updateWith:[3,1,2,0],zipWith:[1,2,0]},t.methodSpread={invokeArgs:2,invokeArgsMap:2,partial:1,partialRight:1,without:1},t.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignIn:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsDeep:!0,merge:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},t.placeholder={bind:!0,bindKey:!0,curry:!0,curryRight:!0,partial:!0,partialRight:!0},t.realToAlias=function(){var e=Object.prototype.hasOwnProperty,n=t.aliasToReal,r={};for(var o in n){var i=n[o];e.call(r,i)?r[i].push(o):r[i]=[o]}return r}(),t.remap={curryN:"curry",curryRightN:"curryRight",getOr:"get",invokeArgs:"invoke",invokeArgsMap:"invokeMap",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart"},t.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,runInContext:!0},t.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,without:!0,zip:!0,zipObject:!0}},function(e,t,n){e.exports={ary:n(362),assign:n(350),clone:n(1157),curry:n(568),forEach:n(198),isArray:n(27),isFunction:n(83),iteratee:n(1195),keys:n(535),rearg:n(579),spread:n(580),toPath:n(1211)}},function(e,t,n){var r=n(366),o=r("filter",n(1169));o.placeholder=n(258),e.exports=o},function(e,t,n){e.exports=n(1186)},function(e,t,n){var r=n(366),o=r("flow",n(1173));o.placeholder=n(258),e.exports=o},function(e,t,n){var r=n(366),o=r("head",n(1189),n(1180));o.placeholder=n(258),e.exports=o},function(e,t,n){function r(e){return null==e?[]:o(e,i(e))}var o=n(532),i=n(54);e.exports=r},function(e,t,n){function r(e){return null==e?[]:o(e,i(e))}var o=n(532),i=n(71);e.exports=r},function(e,t){function n(e){return e&&e.length?e[0]:void 0}e.exports=n},function(e,t,n){var r=n(567),o=n(549),i=n(205),a=o(function(e,t,n){e[t]=n},r(i));e.exports=a},function(e,t,n){var r=n(34),o=n(549),i=Object.prototype,a=i.hasOwnProperty,u=o(function(e,t,n){a.call(e,t)?e[t].push(n):e[t]=[n]},r);e.exports=u},function(e,t,n){var r=n(1078),o=n(40),i=o(r);e.exports=i},function(e,t,n){function r(e){if(!a(e))return!1;var t=o(e)||i(e)?p:c;return t.test(u(e))}var o=n(83),i=n(254),a=n(39),u=n(564),s=/[\\^$.*+?()[\]{}|]/g,c=/^\[object .+?Constructor\]$/,l=Object.prototype,f=Function.prototype.toString,d=l.hasOwnProperty,p=RegExp("^"+f.call(d).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=r},function(e,t){function n(e){return null===e}e.exports=n},function(e,t,n){function r(e){return i("function"==typeof e?e:o(e,!0))}var o=n(351),i=n(34);e.exports=r},function(e,t,n){function r(e,t){var n={};return t=i(t,3),o(e,function(e,r,o){n[t(e,r,o)]=e}),n}var o=n(135),i=n(34);e.exports=r},function(e,t,n){function r(e,t){var n={};return t=i(t,3),o(e,function(e,r,o){n[r]=t(e,r,o)}),n}var o=n(135),i=n(34);e.exports=r},function(e,t,n){var r=n(355),o=n(164),i=o(function(e,t,n){r(e,t,n)});e.exports=i},function(e,t){function n(e){if("function"!=typeof e)throw new TypeError(r);return function(){return!e.apply(this,arguments)}}var r="Expected a function";e.exports=n},function(e,t,n){function r(e){return o(2,e)}var o=n(566);e.exports=r},function(e,t,n){var r=n(109),o=n(110),i=n(200),a=n(34),u=n(540),s=n(27),c=n(1126),l=n(40),f=Math.min,d=l(function(e,t){t=1==t.length&&s(t[0])?o(t[0],u(a)):o(i(t,1,c),u(a));var n=t.length;return l(function(o){for(var i=-1,a=f(o.length,n);++i<a;)o[i]=t[i].call(this,o[i]);return r(e,this,o)})});e.exports=d},function(e,t,n){var r=n(96),o=n(165),i=n(137),a=n(40),u=64,s=a(function(e,t){var n=i(t,o(s));return r(e,u,void 0,t,n)});s.placeholder={},e.exports=s},function(e,t,n){function r(e,t){return null==e?{}:i(e,o(t))}var o=n(34),i=n(537);e.exports=r},function(e,t,n){function r(e){return a(e)?o(u(e)):i(e)}var o=n(538),i=n(1086),a=n(111),u=n(70);e.exports=r},function(e,t,n){function r(e,t,n){t=a(t,e)?[t]:o(t);var r=-1,s=t.length;for(s||(e=void 0,s=1);++r<s;){var c=null==e?void 0:e[u(t[r])];void 0===c&&(r=s,c=n),e=i(c)?c.call(e):c}return e}var o=n(163),i=n(83),a=n(111),u=n(70);e.exports=r},function(e,t,n){function r(e,t,n){return null==e?e:o(e,t,n)}var o=n(356);e.exports=r},function(e,t,n){function r(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:o(e,t,n,r)}var o=n(356);e.exports=r},function(e,t,n){function r(e,t,n){return e&&e.length?(t=n||void 0===t?1:i(t),o(e,0,t<0?0:t)):[]}var o=n(357),i=n(99);e.exports=r},function(e,t,n){function r(e){if(!e)return 0===e?e:0;if(e=o(e),e===i||e===-i){var t=e<0?-1:1;return t*a}return e===e?e:0}var o=n(373),i=1/0,a=1.7976931348623157e308;e.exports=r},function(e,t,n){function r(e){return e?o(i(e),0,a):0}var o=n(1071),i=n(99),a=4294967295;e.exports=r},function(e,t,n){function r(e){return a(e)?o(e,c):u(e)?[e]:i(s(e))}var o=n(110),i=n(201),a=n(27),u=n(207),s=n(563),c=n(70);e.exports=r},function(e,t,n){function r(e){return o(e,i(e))}var o=n(136),i=n(71);e.exports=r},function(e,t,n){function r(e){return null==e?"":o(e)}var o=n(1090);e.exports=r},function(e,t,n){function r(e,t,n){var r=c(e)||d(e);if(t=u(t,4),null==n)if(r||f(e)){var p=e.constructor;n=r?c(e)?new p:[]:l(p)?i(s(e)):{}}else n={};return(r?o:a)(e,function(e,r,o){return t(n,e,r,o)}),n}var o=n(198),i=n(161),a=n(135),u=n(34),s=n(202),c=n(27),l=n(83),f=n(39),d=n(261);e.exports=r},function(e,t,n){function r(e){return o(e,1)}var o=n(362);e.exports=r},function(e,t,n){function r(e,t){return null==e||o(e,t)}var o=n(1092);e.exports=r},function(e,t,n){function r(e,t,n){return null==e?e:o(e,t,i(n))}var o=n(541),i=n(544);e.exports=r},function(e,t,n){function r(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:o(e,t,i(n),r)}var o=n(541),i=n(544);e.exports=r},function(e,t,n){function r(e){return null==e?[]:o(e,i(e))}var o=n(542),i=n(71);e.exports=r},function(e,t,n){function r(e,t){return t=null==t?o:t,i(t,e)}var o=n(205),i=n(578);e.exports=r},function(e,t,n){function r(e){if(s(e)&&!u(e)&&!(e instanceof o)){if(e instanceof i)return e;if(f.call(e,"__wrapped__"))return c(e)}return new i(e)}var o=n(344),i=n(345),a=n(354),u=n(27),s=n(113),c=n(1151),l=Object.prototype,f=l.hasOwnProperty;r.prototype=a.prototype,r.prototype.constructor=r,e.exports=r},function(e,t,n){"use strict";var r=n(62),o=n(11),i=n(1224);e.exports=function(){function e(e,t,n,r,a,u){u!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,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=n(1222)()},function(e,t){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=n},function(e,t,n){(function(e,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(a){function u(e){throw new RangeError(L[e])}function s(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function c(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(D,".");var o=e.split("."),i=s(o,t).join(".");return r+i}function l(e){for(var t,n,r=[],o=0,i=e.length;o<i;)t=e.charCodeAt(o++),t>=55296&&t<=56319&&o<i?(n=e.charCodeAt(o++),56320==(64512&n)?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--)):r.push(t);return r}function f(e){return s(e,function(e){var t="";return e>65535&&(e-=65536,t+=U(e>>>10&1023|55296),e=56320|1023&e),t+=U(e)}).join("")}function d(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:O}function p(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function h(e,t,n){var r=0;for(e=n?F(e/A):e>>1,e+=F(e/t);e>j*R>>1;r+=O)e=F(e/j);return F(r+(j+1)*e/(e+I))}function v(e){var t,n,r,o,i,a,s,c,l,p,v=[],m=e.length,y=0,g=x,_=C;for(n=e.lastIndexOf(N),n<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&u("not-basic"),v.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<m;){for(i=y,a=1,s=O;o>=m&&u("invalid-input"),c=d(e.charCodeAt(o++)),(c>=O||c>F((S-y)/a))&&u("overflow"),y+=c*a,l=s<=_?P:s>=_+R?R:s-_,!(c<l);s+=O)p=O-l,a>F(S/p)&&u("overflow"),a*=p;t=v.length+1,_=h(y-i,t,0==i),F(y/t)>S-g&&u("overflow"),g+=F(y/t),y%=t,v.splice(y++,0,g)}return f(v)}function m(e){var t,n,r,o,i,a,s,c,f,d,v,m,y,g,_,b=[];for(e=l(e),m=e.length,t=x,n=0,i=C,a=0;a<m;++a)v=e[a],v<128&&b.push(U(v));for(r=o=b.length,o&&b.push(N);r<m;){for(s=S,a=0;a<m;++a)v=e[a],v>=t&&v<s&&(s=v);for(y=r+1,s-t>F((S-n)/y)&&u("overflow"),n+=(s-t)*y,t=s,a=0;a<m;++a)if(v=e[a],v<t&&++n>S&&u("overflow"),v==t){for(c=n,f=O;d=f<=i?P:f>=i+R?R:f-i,!(c<d);f+=O)_=c-d,g=O-d,b.push(U(p(d+_%g,0))),c=F(_/g);b.push(U(p(c,0))),i=h(n,y,r==o),n=0,++r}++n,++t}return b.join("")}function y(e){return c(e,function(e){return M.test(e)?v(e.slice(4).toLowerCase()):e})}function g(e){return c(e,function(e){return k.test(e)?"xn--"+m(e):e})}var _="object"==i(t)&&t&&!t.nodeType&&t,b="object"==i(e)&&e&&!e.nodeType&&e,E="object"==("undefined"==typeof r?"undefined":i(r))&&r;E.global!==E&&E.window!==E&&E.self!==E||(a=E);var T,w,S=2147483647,O=36,P=1,R=26,I=38,A=700,C=72,x=128,N="-",M=/^xn--/,k=/[^\x20-\x7E]/,D=/[\x2E\u3002\uFF0E\uFF61]/g,L={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},j=O-P,F=Math.floor,U=String.fromCharCode;if(T={version:"1.4.1",ucs2:{decode:l,encode:f},decode:v,encode:m,toASCII:g,toUnicode:y},"object"==i(n(686))&&n(686))o=function(){return T}.call(t,n,t,e),!(void 0!==o&&(e.exports=o));else if(_&&b)if(e.exports==_)b.exports=T;else for(w in T)T.hasOwnProperty(w)&&(_[w]=T[w]);else a.punycode=T}(this)}).call(t,n(64)(e),n(36))},function(e,t){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,o,i){t=t||"&",o=o||"=";var a={};if("string"!=typeof e||0===e.length)return a;var u=/\+/g;e=e.split(t);var s=1e3;i&&"number"==typeof i.maxKeys&&(s=i.maxKeys);var c=e.length;s>0&&c>s&&(c=s);for(var l=0;l<c;++l){var f,d,p,h,v=e[l].replace(u,"%20"),m=v.indexOf(o);m>=0?(f=v.substr(0,m),d=v.substr(m+1)):(f=v,d=""),p=decodeURIComponent(f),h=decodeURIComponent(d),n(a,p)?r(a[p])?a[p].push(h):a[p]=[a[p],h]:a[p]=h}return a};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t){"use strict";function n(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return 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=function(e){switch("undefined"==typeof e?"undefined":r(e)){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,u,s){return t=t||"&",u=u||"=",null===e&&(e=void 0),"object"===("undefined"==typeof e?"undefined":r(e))?n(a(e),function(r){var a=encodeURIComponent(o(r))+u;return i(e[r])?n(e[r],function(e){return a+encodeURIComponent(o(e))}).join(t):a+encodeURIComponent(o(e[r]))}).join(t):s?encodeURIComponent(o(s))+u+encodeURIComponent(o(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},a=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},function(e,t,n){"use strict";t.decode=t.parse=n(1226),t.encode=t.stringify=n(1227)},function(e,t){"use strict";var n={Properties:{"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},DOMAttributeNames:{},DOMPropertyNames:{}};e.exports=n},function(e,t,n){"use strict";var r=n(35),o=n(512),i={focusDOMComponent:function(){o(r.getNodeFromInstance(this))}};e.exports=i},function(e,t,n){"use strict";function r(){var e=window.opera;return"object"===("undefined"==typeof e?"undefined":p(e))&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function o(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function i(e){switch(e){case"topCompositionStart":return R.compositionStart;case"topCompositionEnd":return R.compositionEnd;case"topCompositionUpdate":return R.compositionUpdate}}function a(e,t){return"topKeyDown"===e&&t.keyCode===b}function u(e,t){switch(e){case"topKeyUp":return _.indexOf(t.keyCode)!==-1;case"topKeyDown":return t.keyCode!==b;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function s(e){var t=e.detail;return"object"===("undefined"==typeof t?"undefined":p(t))&&"data"in t?t.data:null}function c(e,t,n,r){var o,c;if(E?o=i(e):A?u(e,n)&&(o=R.compositionEnd):a(e,n)&&(o=R.compositionStart),!o)return null;S&&(A||o!==R.compositionStart?o===R.compositionEnd&&A&&(c=A.getData()):A=m.getPooled(r));var l=y.getPooled(o,t,n,r);if(c)l.data=c;else{var f=s(n);null!==f&&(l.data=f)}return h.accumulateTwoPhaseDispatches(l),l}function l(e,t){switch(e){case"topCompositionEnd":return s(t);case"topKeyPress":var n=t.which;return n!==O?null:(I=!0,P);case"topTextInput":var r=t.data;return r===P&&I?null:r;default:return null}}function f(e,t){if(A){if("topCompositionEnd"===e||!E&&u(e,t)){var n=A.getData();return m.release(A),A=null,n}return null}switch(e){case"topPaste":return null;case"topKeyPress":return t.which&&!o(t)?String.fromCharCode(t.which):null;case"topCompositionEnd":return S?null:t.data;default:return null}}function d(e,t,n,r){var o;if(o=w?l(e,n):f(e,n),!o)return null;var i=g.getPooled(R.beforeInput,t,n,r);return i.data=o,h.accumulateTwoPhaseDispatches(i),i}var p="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},h=n(209),v=n(47),m=n(1237),y=n(1274),g=n(1277),_=[9,13,27,32],b=229,E=v.canUseDOM&&"CompositionEvent"in window,T=null;v.canUseDOM&&"documentMode"in document&&(T=document.documentMode);var w=v.canUseDOM&&"TextEvent"in window&&!T&&!r(),S=v.canUseDOM&&(!E||T&&T>8&&T<=11),O=32,P=String.fromCharCode(O),R={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},I=!1,A=null,C={eventTypes:R,extractEvents:function(e,t,n,r){return[c(e,t,n,r),d(e,t,n,r)]}};e.exports=C},function(e,t,n){"use strict";var r=n(584),o=n(47),i=(n(72),n(1043),n(1283)),a=n(1050),u=n(1053),s=(n(16),u(function(e){return a(e)})),c=!1,l="cssFloat";if(o.canUseDOM){var f=document.createElement("div").style;try{f.font=""}catch(d){c=!0}void 0===document.documentElement.style.cssFloat&&(l="styleFloat")}var p={createMarkupForStyles:function(e,t){var n="";for(var r in e)if(e.hasOwnProperty(r)){var o=e[r];null!=o&&(n+=s(r)+":",n+=i(r,o,t)+";")}return n||null},setValueForStyles:function(e,t,n){var o=e.style;for(var a in t)if(t.hasOwnProperty(a)){var u=i(a,t[a],n);if("float"!==a&&"cssFloat"!==a||(a=l),u)o[a]=u;else{var s=c&&r.shorthandPropertyExpansions[a];if(s)for(var f in s)o[f]="";else o[a]=""}}}};e.exports=p},function(e,t,n){"use strict";function r(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function o(e){var t=w.getPooled(R.change,A,e,S(e));_.accumulateTwoPhaseDispatches(t),T.batchedUpdates(i,t)}function i(e){g.enqueueEvents(e),g.processEventQueue(!1)}function a(e,t){I=e,A=t,I.attachEvent("onchange",o)}function u(){I&&(I.detachEvent("onchange",o),I=null,A=null)}function s(e,t){if("topChange"===e)return t}function c(e,t,n){"topFocus"===e?(u(),a(t,n)):"topBlur"===e&&u()}function l(e,t){I=e,A=t,C=e.value,x=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(I,"value",k),I.attachEvent?I.attachEvent("onpropertychange",d):I.addEventListener("propertychange",d,!1)}function f(){I&&(delete I.value,I.detachEvent?I.detachEvent("onpropertychange",d):I.removeEventListener("propertychange",d,!1),I=null,A=null,C=null,x=null)}function d(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==C&&(C=t,o(e))}}function p(e,t){if("topInput"===e)return t}function h(e,t,n){"topFocus"===e?(f(),l(t,n)):"topBlur"===e&&f()}function v(e,t){if(("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)&&I&&I.value!==C)return C=I.value,A}function m(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function y(e,t){if("topClick"===e)return t}var g=n(208),_=n(209),b=n(47),E=n(35),T=n(84),w=n(100),S=n(389),O=n(390),P=n(601),R={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},I=null,A=null,C=null,x=null,N=!1;b.canUseDOM&&(N=O("change")&&(!document.documentMode||document.documentMode>8));var M=!1;b.canUseDOM&&(M=O("input")&&(!document.documentMode||document.documentMode>11));var k={get:function(){return x.get.call(this)},set:function(e){C=""+e,x.set.call(this,e)}},D={eventTypes:R,extractEvents:function(e,t,n,o){var i,a,u=t?E.getNodeFromInstance(t):window;if(r(u)?N?i=s:a=c:P(u)?M?i=p:(i=v,a=h):m(u)&&(i=y),i){var l=i(e,t);if(l){var f=w.getPooled(R.change,l,n,o);return f.type="change",_.accumulateTwoPhaseDispatches(f),f}}a&&a(e,u,t)}};e.exports=D},function(e,t,n){"use strict";var r=n(23),o=n(171),i=n(47),a=n(1046),u=n(62),s=(n(11),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(i.canUseDOM?void 0:r("56"),t?void 0:r("57"),"HTML"===e.nodeName?r("58"):void 0,"string"==typeof t){var n=a(t,u)[0];e.parentNode.replaceChild(n,e)}else o.replaceChildWithTree(e,t)}});e.exports=s},function(e,t){"use strict";var n=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];e.exports=n},function(e,t,n){"use strict";var r=n(209),o=n(35),i=n(267),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},u={eventTypes:a,extractEvents:function(e,t,n,u){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==e&&"topMouseOver"!==e)return null;var s;if(u.window===u)s=u;else{var c=u.ownerDocument;s=c?c.defaultView||c.parentWindow:window}var l,f;if("topMouseOut"===e){l=t;var d=n.relatedTarget||n.toElement;f=d?o.getClosestInstanceFromNode(d):null}else l=null,f=t;if(l===f)return null;var p=null==l?s:o.getNodeFromInstance(l),h=null==f?s:o.getNodeFromInstance(f),v=i.getPooled(a.mouseLeave,l,n,u);v.type="mouseleave",v.target=p,v.relatedTarget=h;var m=i.getPooled(a.mouseEnter,f,n,u);return m.type="mouseenter",m.target=h,m.relatedTarget=p,r.accumulateEnterLeaveDispatches(v,m,l,f),[v,m]}};e.exports=u},function(e,t,n){"use strict";function r(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var o=n(29),i=n(140),a=n(599);o(r.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,r=n.length,o=this.getText(),i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);var u=t>1?1-t:void 0;return this._fallbackText=o.slice(e,u),this._fallbackText}}),i.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";var r=n(172),o=r.injection.MUST_USE_PROPERTY,i=r.injection.HAS_BOOLEAN_VALUE,a=r.injection.HAS_NUMERIC_VALUE,u=r.injection.HAS_POSITIVE_NUMERIC_VALUE,s=r.injection.HAS_OVERLOADED_BOOLEAN_VALUE,c={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+r.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:o|i,cite:0,classID:0,className:0,cols:u,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,"default":i,defer:i,dir:0,disabled:i,download:s,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:o|i,muted:o|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:u,rowSpan:a,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:o|i,shape:0,size:u,sizes:0,span:u,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,
target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,"typeof":0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{}};e.exports=c},function(e,t,n){"use strict";(function(t){function r(e,t,n,r){var o=void 0===e[n];null!=t&&o&&(e[n]=i(t,!0))}var o=n(173),i=n(600),a=(n(381),n(391)),u=n(603),s=(n(16),{instantiateChildren:function(e,t,n,o){if(null==e)return null;var i={};return u(e,r,i),i},updateChildren:function(e,t,n,r,u,s,c,l,f){if(t||e){var d,p;for(d in t)if(t.hasOwnProperty(d)){p=e&&e[d];var h=p&&p._currentElement,v=t[d];if(null!=p&&a(h,v))o.receiveComponent(p,v,u,l),t[d]=p;else{p&&(r[d]=o.getHostNode(p),o.unmountComponent(p,!1));var m=i(v,!0);t[d]=m;var y=o.mountComponent(m,u,s,c,l,f);n.push(y)}}for(d in e)!e.hasOwnProperty(d)||t&&t.hasOwnProperty(d)||(p=e[d],r[d]=o.getHostNode(p),o.unmountComponent(p,!1))}},unmountChildren:function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];o.unmountComponent(r,t)}}});e.exports=s}).call(t,n(114))},function(e,t,n){"use strict";var r=n(377),o=n(1247),i={processChildrenUpdates:o.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:r.dangerouslyReplaceNodeWithMarkup};e.exports=i},function(e,t,n){"use strict";function r(e){}function o(e,t){}function i(e){return!(!e.prototype||!e.prototype.isReactComponent)}function a(e){return!(!e.prototype||!e.prototype.isPureReactComponent)}var u="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},s=n(23),c=n(29),l=n(174),f=n(383),d=n(101),p=n(384),h=n(210),v=(n(72),n(594)),m=n(173),y=n(197),g=(n(11),n(342)),_=n(391),b=(n(16),{ImpureClass:0,PureClass:1,StatelessFunctional:2});r.prototype.render=function(){var e=h.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return o(e,t),t};var E=1,T={construct:function(e){this._currentElement=e,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(e,t,n,c){this._context=c,this._mountOrder=E++,this._hostParent=t,this._hostContainerInfo=n;var f,d=this._currentElement.props,p=this._processContext(c),v=this._currentElement.type,m=e.getUpdateQueue(),g=i(v),_=this._constructComponent(g,d,p,m);g||null!=_&&null!=_.render?a(v)?this._compositeType=b.PureClass:this._compositeType=b.ImpureClass:(f=_,o(v,f),null===_||_===!1||l.isValidElement(_)?void 0:s("105",v.displayName||v.name||"Component"),_=new r(v),this._compositeType=b.StatelessFunctional);_.props=d,_.context=p,_.refs=y,_.updater=m,this._instance=_,h.set(_,this);var T=_.state;void 0===T&&(_.state=T=null),"object"!==("undefined"==typeof T?"undefined":u(T))||Array.isArray(T)?s("106",this.getName()||"ReactCompositeComponent"):void 0,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var w;return w=_.unstable_handleError?this.performInitialMountWithErrorHandling(f,t,n,e,c):this.performInitialMount(f,t,n,e,c),_.componentDidMount&&e.getReactMountReady().enqueue(_.componentDidMount,_),w},_constructComponent:function(e,t,n,r){return this._constructComponentWithoutOwner(e,t,n,r)},_constructComponentWithoutOwner:function(e,t,n,r){var o=this._currentElement.type;return e?new o(t,n,r):o(t,n,r)},performInitialMountWithErrorHandling:function(e,t,n,r,o){var i,a=r.checkpoint();try{i=this.performInitialMount(e,t,n,r,o)}catch(u){r.rollback(a),this._instance.unstable_handleError(u),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),a=r.checkpoint(),this._renderedComponent.unmountComponent(!0),r.rollback(a),i=this.performInitialMount(e,t,n,r,o)}return i},performInitialMount:function(e,t,n,r,o){var i=this._instance,a=0;i.componentWillMount&&(i.componentWillMount(),this._pendingStateQueue&&(i.state=this._processPendingState(i.props,i.context))),void 0===e&&(e=this._renderValidatedComponent());var u=v.getType(e);this._renderedNodeType=u;var s=this._instantiateReactComponent(e,u!==v.EMPTY);this._renderedComponent=s;var c=m.mountComponent(s,r,t,n,this._processChildContext(o),a);return c},getHostNode:function(){return m.getHostNode(this._renderedComponent)},unmountComponent:function(e){if(this._renderedComponent){var t=this._instance;if(t.componentWillUnmount&&!t._calledComponentWillUnmount)if(t._calledComponentWillUnmount=!0,e){var n=this.getName()+".componentWillUnmount()";p.invokeGuardedCallback(n,t.componentWillUnmount.bind(t))}else t.componentWillUnmount();this._renderedComponent&&(m.unmountComponent(this._renderedComponent,e),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,h.remove(t)}},_maskContext:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return y;var r={};for(var o in n)r[o]=e[o];return r},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t,n=this._currentElement.type,r=this._instance;if(r.getChildContext&&(t=r.getChildContext()),t){"object"!==u(n.childContextTypes)?s("107",this.getName()||"ReactCompositeComponent"):void 0;for(var o in t)o in n.childContextTypes?void 0:s("108",this.getName()||"ReactCompositeComponent",o);return c({},e,t)}return e},_checkContextTypes:function(e,t,n){},receiveComponent:function(e,t,n){var r=this._currentElement,o=this._context;this._pendingElement=null,this.updateComponent(t,r,e,o,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement?m.receiveComponent(this,this._pendingElement,e,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(e,t,n,r,o){var i=this._instance;null==i?s("136",this.getName()||"ReactCompositeComponent"):void 0;var a,u=!1;this._context===o?a=i.context:(a=this._processContext(o),u=!0);var c=t.props,l=n.props;t!==n&&(u=!0),u&&i.componentWillReceiveProps&&i.componentWillReceiveProps(l,a);var f=this._processPendingState(l,a),d=!0;this._pendingForceUpdate||(i.shouldComponentUpdate?d=i.shouldComponentUpdate(l,f,a):this._compositeType===b.PureClass&&(d=!g(c,l)||!g(i.state,f))),this._updateBatchNumber=null,d?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,l,f,a,e,o)):(this._currentElement=n,this._context=o,i.props=l,i.state=f,i.context=a)},_processPendingState:function(e,t){var n=this._instance,r=this._pendingStateQueue,o=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!r)return n.state;if(o&&1===r.length)return r[0];for(var i=c({},o?r[0]:n.state),a=o?1:0;a<r.length;a++){var u=r[a];c(i,"function"==typeof u?u.call(n,i,e,t):u)}return i},_performComponentUpdate:function(e,t,n,r,o,i){var a,u,s,c=this._instance,l=Boolean(c.componentDidUpdate);l&&(a=c.props,u=c.state,s=c.context),c.componentWillUpdate&&c.componentWillUpdate(t,n,r),this._currentElement=e,this._context=i,c.props=t,c.state=n,c.context=r,this._updateRenderedComponent(o,i),l&&o.getReactMountReady().enqueue(c.componentDidUpdate.bind(c,a,u,s),c)},_updateRenderedComponent:function(e,t){var n=this._renderedComponent,r=n._currentElement,o=this._renderValidatedComponent(),i=0;if(_(r,o))m.receiveComponent(n,o,e,this._processChildContext(t));else{var a=m.getHostNode(n);m.unmountComponent(n,!1);var u=v.getType(o);this._renderedNodeType=u;var s=this._instantiateReactComponent(o,u!==v.EMPTY);this._renderedComponent=s;var c=m.mountComponent(s,e,this._hostParent,this._hostContainerInfo,this._processChildContext(t),i);this._replaceNodeWithMarkup(a,c,n)}},_replaceNodeWithMarkup:function(e,t,n){f.replaceNodeWithMarkup(e,t,n)},_renderValidatedComponentWithoutOwnerOrContext:function(){var e,t=this._instance;return e=t.render()},_renderValidatedComponent:function(){var e;if(this._compositeType!==b.StatelessFunctional){d.current=this;try{e=this._renderValidatedComponentWithoutOwnerOrContext()}finally{d.current=null}}else e=this._renderValidatedComponentWithoutOwnerOrContext();return null===e||e===!1||l.isValidElement(e)?void 0:s("109",this.getName()||"ReactCompositeComponent"),e},attachRef:function(e,t){var n=this.getPublicInstance();null==n?s("110"):void 0;var r=t.getPublicInstance(),o=n.refs===y?n.refs={}:n.refs;o[e]=r},detachRef:function(e){var t=this.getPublicInstance().refs;delete t[e]},getName:function(){var e=this._currentElement.type,t=this._instance&&this._instance.constructor;return e.displayName||t&&t.displayName||e.name||t&&t.name||null},getPublicInstance:function(){var e=this._instance;return this._compositeType===b.StatelessFunctional?null:e},_instantiateReactComponent:null};e.exports=T},function(e,t,n){"use strict";var r=n(35),o=n(1255),i=n(593),a=n(173),u=n(84),s=n(1268),c=n(1284),l=n(598),f=n(1292);n(16);o.inject();var d={findDOMNode:c,render:i.render,unmountComponentAtNode:i.unmountComponentAtNode,version:s,unstable_batchedUpdates:u.batchedUpdates,unstable_renderSubtreeIntoContainer:f};"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({ComponentTree:{getClosestInstanceFromNode:r.getClosestInstanceFromNode,getNodeFromInstance:function(e){return e._renderedComponent&&(e=l(e)),e?r.getNodeFromInstance(e):null}},Mount:i,Reconciler:a});e.exports=d},function(e,t,n){"use strict";function r(e){if(e){var t=e._currentElement._owner||null;if(t){var n=t.getName();if(n)return" This DOM node was rendered by `"+n+"`."}}return""}function o(e,t){t&&(X[e._tag]&&(null!=t.children||null!=t.dangerouslySetInnerHTML?m("137",e._tag,e._currentElement._owner?" Check the render method of "+e._currentElement._owner.getName()+".":""):void 0),null!=t.dangerouslySetInnerHTML&&(null!=t.children?m("60"):void 0,"object"===v(t.dangerouslySetInnerHTML)&&V in t.dangerouslySetInnerHTML?void 0:m("61")),null!=t.style&&"object"!==v(t.style)?m("62",r(e)):void 0)}function i(e,t,n,r){if(!(r instanceof k)){var o=e._hostContainerInfo,i=o._node&&o._node.nodeType===W,u=i?o._node:o._ownerDocument;U(t,u),r.getReactMountReady().enqueue(a,{inst:e,registrationName:t,listener:n})}}function a(){var e=this;S.putListener(e.inst,e.registrationName,e.listener)}function u(){var e=this;A.postMountWrapper(e)}function s(){var e=this;N.postMountWrapper(e)}function c(){var e=this;C.postMountWrapper(e)}function l(){var e=this;e._rootNodeID?void 0:m("63");var t=F(e);switch(t?void 0:m("64"),e._tag){case"iframe":case"object":e._wrapperState.listeners=[P.trapBubbledEvent("topLoad","load",t)];break;case"video":case"audio":e._wrapperState.listeners=[];for(var n in K)K.hasOwnProperty(n)&&e._wrapperState.listeners.push(P.trapBubbledEvent(n,K[n],t));break;case"source":e._wrapperState.listeners=[P.trapBubbledEvent("topError","error",t)];break;case"img":e._wrapperState.listeners=[P.trapBubbledEvent("topError","error",t),P.trapBubbledEvent("topLoad","load",t)];break;case"form":e._wrapperState.listeners=[P.trapBubbledEvent("topReset","reset",t),P.trapBubbledEvent("topSubmit","submit",t)];break;case"input":case"select":case"textarea":e._wrapperState.listeners=[P.trapBubbledEvent("topInvalid","invalid",t)]}}function f(){x.postUpdateWrapper(this)}function d(e){J.call(Q,e)||($.test(e)?void 0:m("65",e),Q[e]=!0)}function p(e,t){return e.indexOf("-")>=0||null!=t.is}function h(e){var t=e.type;d(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var v="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},m=n(23),y=n(29),g=n(1230),_=n(1232),b=n(171),E=n(378),T=n(172),w=n(586),S=n(208),O=n(379),P=n(266),R=n(587),I=n(35),A=n(1248),C=n(1249),x=n(588),N=n(1252),M=(n(72),n(1261)),k=n(1266),D=(n(62),n(269)),L=(n(11),n(390),n(342),n(392),n(16),R),j=S.deleteListener,F=I.getNodeFromInstance,U=P.listenTo,B=O.registrationNameModules,H={string:!0,number:!0},q="style",V="__html",G={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},W=11,K={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},Y={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},z={listing:!0,pre:!0,textarea:!0},X=y({menuitem:!0},Y),$=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Q={},J={}.hasOwnProperty,Z=1;h.displayName="ReactDOMComponent",h.Mixin={mountComponent:function(e,t,n,r){this._rootNodeID=Z++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(l,this);break;case"input":A.mountWrapper(this,i,t),i=A.getHostProps(this,i),e.getReactMountReady().enqueue(l,this);break;case"option":C.mountWrapper(this,i,t),i=C.getHostProps(this,i);break;case"select":x.mountWrapper(this,i,t),i=x.getHostProps(this,i),e.getReactMountReady().enqueue(l,this);break;case"textarea":N.mountWrapper(this,i,t),i=N.getHostProps(this,i),e.getReactMountReady().enqueue(l,this)}o(this,i);var a,f;null!=t?(a=t._namespaceURI,f=t._tag):n._tag&&(a=n._namespaceURI,f=n._tag),(null==a||a===E.svg&&"foreignobject"===f)&&(a=E.html),a===E.html&&("svg"===this._tag?a=E.svg:"math"===this._tag&&(a=E.mathml)),this._namespaceURI=a;var d;if(e.useCreateElement){var p,h=n._ownerDocument;if(a===E.html)if("script"===this._tag){var v=h.createElement("div"),m=this._currentElement.type;v.innerHTML="<"+m+"></"+m+">",p=v.removeChild(v.firstChild)}else p=i.is?h.createElement(this._currentElement.type,i.is):h.createElement(this._currentElement.type);else p=h.createElementNS(a,this._currentElement.type);I.precacheNode(this,p),this._flags|=L.hasCachedChildNodes,this._hostParent||w.setAttributeForRoot(p),this._updateDOMProperties(null,i,e);var y=b(p);this._createInitialChildren(e,i,r,y),d=y}else{var _=this._createOpenTagMarkupAndPutListeners(e,i),T=this._createContentMarkup(e,i,r);d=!T&&Y[this._tag]?_+"/>":_+">"+T+"</"+this._currentElement.type+">"}switch(this._tag){case"input":e.getReactMountReady().enqueue(u,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(s,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"select":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"button":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(c,this)}return d},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];if(null!=o)if(B.hasOwnProperty(r))o&&i(this,r,o,e);else{r===q&&(o&&(o=this._previousStyleCopy=y({},t.style)),o=_.createMarkupForStyles(o,this));var a=null;null!=this._tag&&p(this._tag,t)?G.hasOwnProperty(r)||(a=w.createMarkupForCustomAttribute(r,o)):a=w.createMarkupForProperty(r,o),a&&(n+=" "+a)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+w.createMarkupForRoot()),n+=" "+w.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var r="",o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&(r=o.__html);else{var i=H[v(t.children)]?t.children:null,a=null!=i?null:t.children;if(null!=i)r=D(i);else if(null!=a){var u=this.mountChildren(a,e,n);r=u.join("")}}return z[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(e,t,n,r){var o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&b.queueHTML(r,o.__html);else{var i=H[v(t.children)]?t.children:null,a=null!=i?null:t.children;if(null!=i)b.queueText(r,i);else if(null!=a)for(var u=this.mountChildren(a,e,n),s=0;s<u.length;s++)b.queueChild(r,u[s])}},receiveComponent:function(e,t,n){var r=this._currentElement;this._currentElement=e,this.updateComponent(t,r,e,n)},updateComponent:function(e,t,n,r){var i=t.props,a=this._currentElement.props;switch(this._tag){case"input":i=A.getHostProps(this,i),a=A.getHostProps(this,a);break;case"option":i=C.getHostProps(this,i),a=C.getHostProps(this,a);break;case"select":i=x.getHostProps(this,i),a=x.getHostProps(this,a);break;case"textarea":i=N.getHostProps(this,i),a=N.getHostProps(this,a)}switch(o(this,a),this._updateDOMProperties(i,a,e),this._updateDOMChildren(i,a,e,r),this._tag){case"input":A.updateWrapper(this);break;case"textarea":N.updateWrapper(this);break;case"select":e.getReactMountReady().enqueue(f,this)}},_updateDOMProperties:function(e,t,n){var r,o,a;for(r in e)if(!t.hasOwnProperty(r)&&e.hasOwnProperty(r)&&null!=e[r])if(r===q){var u=this._previousStyleCopy;for(o in u)u.hasOwnProperty(o)&&(a=a||{},a[o]="");this._previousStyleCopy=null}else B.hasOwnProperty(r)?e[r]&&j(this,r):p(this._tag,e)?G.hasOwnProperty(r)||w.deleteValueForAttribute(F(this),r):(T.properties[r]||T.isCustomAttribute(r))&&w.deleteValueForProperty(F(this),r);for(r in t){var s=t[r],c=r===q?this._previousStyleCopy:null!=e?e[r]:void 0;if(t.hasOwnProperty(r)&&s!==c&&(null!=s||null!=c))if(r===q)if(s?s=this._previousStyleCopy=y({},s):this._previousStyleCopy=null,c){for(o in c)!c.hasOwnProperty(o)||s&&s.hasOwnProperty(o)||(a=a||{},a[o]="");for(o in s)s.hasOwnProperty(o)&&c[o]!==s[o]&&(a=a||{},a[o]=s[o])}else a=s;else if(B.hasOwnProperty(r))s?i(this,r,s,n):c&&j(this,r);else if(p(this._tag,t))G.hasOwnProperty(r)||w.setValueForAttribute(F(this),r,s);else if(T.properties[r]||T.isCustomAttribute(r)){var l=F(this);null!=s?w.setValueForProperty(l,r,s):w.deleteValueForProperty(l,r)}}a&&_.setValueForStyles(F(this),a,this)},_updateDOMChildren:function(e,t,n,r){var o=H[v(e.children)]?e.children:null,i=H[v(t.children)]?t.children:null,a=e.dangerouslySetInnerHTML&&e.dangerouslySetInnerHTML.__html,u=t.dangerouslySetInnerHTML&&t.dangerouslySetInnerHTML.__html,s=null!=o?null:e.children,c=null!=i?null:t.children,l=null!=o||null!=a,f=null!=i||null!=u;null!=s&&null==c?this.updateChildren(null,n,r):l&&!f&&this.updateTextContent(""),null!=i?o!==i&&this.updateTextContent(""+i):null!=u?a!==u&&this.updateMarkup(""+u):null!=c&&this.updateChildren(c,n,r)},getHostNode:function(){return F(this)},unmountComponent:function(e){switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":var t=this._wrapperState.listeners;if(t)for(var n=0;n<t.length;n++)t[n].remove();break;case"html":case"head":case"body":m("66",this._tag)}this.unmountChildren(e),I.uncacheNode(this),S.deleteAllListeners(this),this._rootNodeID=0,this._domID=0,this._wrapperState=null},getPublicInstance:function(){return F(this)}},y(h.prototype,h.Mixin,M.Mixin),e.exports=h},function(e,t,n){"use strict";function r(e,t){var n={_topLevelWrapper:e,_idCounter:1,_ownerDocument:t?t.nodeType===o?t:t.ownerDocument:null,_node:t,_tag:t?t.nodeName.toLowerCase():null,_namespaceURI:t?t.namespaceURI:null};return n}var o=(n(392),9);e.exports=r},function(e,t,n){"use strict";var r=n(29),o=n(171),i=n(35),a=function(e){this._currentElement=null,this._hostNode=null,this._hostParent=null,this._hostContainerInfo=null,this._domID=0};r(a.prototype,{mountComponent:function(e,t,n,r){var a=n._idCounter++;this._domID=a,this._hostParent=t,this._hostContainerInfo=n;var u=" react-empty: "+this._domID+" ";if(e.useCreateElement){var s=n._ownerDocument,c=s.createComment(u);return i.precacheNode(this,c),o(c)}return e.renderToStaticMarkup?"":"<!--"+u+"-->"},receiveComponent:function(){},getHostNode:function(){return i.getNodeFromInstance(this)},unmountComponent:function(){i.uncacheNode(this)}}),e.exports=a},function(e,t){"use strict";var n={useCreateElement:!0,useFiber:!1};e.exports=n},function(e,t,n){"use strict";var r=n(377),o=n(35),i={dangerouslyProcessChildrenUpdates:function(e,t){var n=o.getNodeFromInstance(e);r.processUpdates(n,t)}};e.exports=i},function(e,t,n){"use strict";function r(){this._rootNodeID&&f.updateWrapper(this)}function o(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);l.asap(r,this);var o=t.name;if("radio"===t.type&&null!=o){for(var a=c.getNodeFromInstance(this),u=a;u.parentNode;)u=u.parentNode;for(var f=u.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),d=0;d<f.length;d++){var p=f[d];if(p!==a&&p.form===a.form){var h=c.getInstanceFromNode(p);h?void 0:i("90"),l.asap(r,h)}}}return n}var i=n(23),a=n(29),u=n(586),s=n(382),c=n(35),l=n(84),f=(n(11),n(16),{getHostProps:function(e,t){var n=s.getValue(t),r=s.getChecked(t),o=a({type:void 0,step:void 0,min:void 0,max:void 0},t,{defaultChecked:void 0,defaultValue:void 0,value:null!=n?n:e._wrapperState.initialValue,checked:null!=r?r:e._wrapperState.initialChecked,onChange:e._wrapperState.onChange});return o},mountWrapper:function(e,t){var n=t.defaultValue;e._wrapperState={initialChecked:null!=t.checked?t.checked:t.defaultChecked,initialValue:null!=t.value?t.value:n,listeners:null,onChange:o.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=t.checked;null!=n&&u.setValueForProperty(c.getNodeFromInstance(e),"checked",n||!1);var r=c.getNodeFromInstance(e),o=s.getValue(t);if(null!=o){var i=""+o;i!==r.value&&(r.value=i)}else null==t.value&&null!=t.defaultValue&&(r.defaultValue=""+t.defaultValue),null==t.checked&&null!=t.defaultChecked&&(r.defaultChecked=!!t.defaultChecked)},postMountWrapper:function(e){var t=e._currentElement.props,n=c.getNodeFromInstance(e);switch(t.type){case"submit":case"reset":break;case"color":case"date":case"datetime":case"datetime-local":case"month":case"time":case"week":n.value="",n.value=n.defaultValue;break;default:n.value=n.value}var r=n.name;""!==r&&(n.name=""),n.defaultChecked=!n.defaultChecked,n.defaultChecked=!n.defaultChecked,""!==r&&(n.name=r)}});e.exports=f},function(e,t,n){"use strict";function r(e){var t="";return i.Children.forEach(e,function(e){null!=e&&("string"==typeof e||"number"==typeof e?t+=e:s||(s=!0))}),t}var o=n(29),i=n(174),a=n(35),u=n(588),s=(n(16),!1),c={mountWrapper:function(e,t,n){var o=null;if(null!=n){var i=n;"optgroup"===i._tag&&(i=i._hostParent),null!=i&&"select"===i._tag&&(o=u.getSelectValueContext(i))}var a=null;if(null!=o){var s;if(s=null!=t.value?t.value+"":r(t.children),a=!1,Array.isArray(o)){for(var c=0;c<o.length;c++)if(""+o[c]===s){a=!0;break}}else a=""+o===s}e._wrapperState={selected:a}},postMountWrapper:function(e){var t=e._currentElement.props;if(null!=t.value){var n=a.getNodeFromInstance(e);n.setAttribute("value",t.value)}},getHostProps:function(e,t){var n=o({selected:void 0,children:void 0},t);null!=e._wrapperState.selected&&(n.selected=e._wrapperState.selected);var i=r(t.children);return i&&(n.children=i),n}};e.exports=c},function(e,t,n){"use strict";function r(e,t,n,r){return e===n&&t===r}function o(e){var t=document.selection,n=t.createRange(),r=n.text.length,o=n.duplicate();o.moveToElementText(e),o.setEndPoint("EndToStart",n);var i=o.text.length,a=i+r;return{start:i,end:a}}function i(e){var t=window.getSelection&&window.getSelection();if(!t||0===t.rangeCount)return null;var n=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=t.getRangeAt(0);try{u.startContainer.nodeType,u.endContainer.nodeType}catch(s){return null}var c=r(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset),l=c?0:u.toString().length,f=u.cloneRange();f.selectNodeContents(e),f.setEnd(u.startContainer,u.startOffset);var d=r(f.startContainer,f.startOffset,f.endContainer,f.endOffset),p=d?0:f.toString().length,h=p+l,v=document.createRange();v.setStart(n,o),v.setEnd(i,a);var m=v.collapsed;return{start:m?h:p,end:m?p:h}}function a(e,t){var n,r,o=document.selection.createRange().duplicate();void 0===t.end?(n=t.start,r=n):t.start>t.end?(n=t.end,r=t.start):(n=t.start,r=t.end),o.moveToElementText(e),o.moveStart("character",n),o.setEndPoint("EndToStart",o),o.moveEnd("character",r-n),o.select()}function u(e,t){if(window.getSelection){var n=window.getSelection(),r=e[l()].length,o=Math.min(t.start,r),i=void 0===t.end?o:Math.min(t.end,r);if(!n.extend&&o>i){var a=i;i=o,o=a}var u=c(e,o),s=c(e,i);if(u&&s){var f=document.createRange();f.setStart(u.node,u.offset),n.removeAllRanges(),o>i?(n.addRange(f),n.extend(s.node,s.offset)):(f.setEnd(s.node,s.offset),n.addRange(f))}}}var s=n(47),c=n(1289),l=n(599),f=s.canUseDOM&&"selection"in document&&!("getSelection"in window),d={getOffsets:f?o:i,setOffsets:f?a:u};e.exports=d},function(e,t,n){"use strict";var r=n(23),o=n(29),i=n(377),a=n(171),u=n(35),s=n(269),c=(n(11),n(392),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});o(c.prototype,{mountComponent:function(e,t,n,r){var o=n._idCounter++,i=" react-text: "+o+" ",c=" /react-text ";if(this._domID=o,this._hostParent=t,e.useCreateElement){var l=n._ownerDocument,f=l.createComment(i),d=l.createComment(c),p=a(l.createDocumentFragment());return a.queueChild(p,a(f)),this._stringText&&a.queueChild(p,a(l.createTextNode(this._stringText))),a.queueChild(p,a(d)),u.precacheNode(this,f),this._closingComment=d,p}var h=s(this._stringText);return e.renderToStaticMarkup?h:"<!--"+i+"-->"+h+"<!--"+c+"-->"},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var r=this.getHostNode();i.replaceDelimitedText(r[0],r[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=u.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n?r("67",this._domID):void 0,8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,u.uncacheNode(this)}}),e.exports=c},function(e,t,n){"use strict";function r(){this._rootNodeID&&l.updateWrapper(this)}function o(e){var t=this._currentElement.props,n=u.executeOnChange(t,e);return c.asap(r,this),n}var i=n(23),a=n(29),u=n(382),s=n(35),c=n(84),l=(n(11),n(16),{getHostProps:function(e,t){null!=t.dangerouslySetInnerHTML?i("91"):void 0;var n=a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue,onChange:e._wrapperState.onChange});return n},mountWrapper:function(e,t){var n=u.getValue(t),r=n;if(null==n){var a=t.defaultValue,s=t.children;null!=s&&(null!=a?i("92"):void 0,Array.isArray(s)&&(s.length<=1?void 0:i("93"),s=s[0]),a=""+s),null==a&&(a=""),r=a}e._wrapperState={initialValue:""+r,listeners:null,onChange:o.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=s.getNodeFromInstance(e),r=u.getValue(t);if(null!=r){var o=""+r;o!==n.value&&(n.value=o),null==t.defaultValue&&(n.defaultValue=o)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=s.getNodeFromInstance(e);t.value=t.textContent}});e.exports=l},function(e,t,n){"use strict";function r(e,t){"_hostNode"in e?void 0:s("33"),"_hostNode"in t?void 0:s("33");for(var n=0,r=e;r;r=r._hostParent)n++;for(var o=0,i=t;i;i=i._hostParent)o++;for(;n-o>0;)e=e._hostParent,n--;for(;o-n>0;)t=t._hostParent,o--;for(var a=n;a--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function o(e,t){"_hostNode"in e?void 0:s("35"),"_hostNode"in t?void 0:s("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function i(e){return"_hostNode"in e?void 0:s("36"),e._hostParent}function a(e,t,n){for(var r=[];e;)r.push(e),e=e._hostParent;var o;for(o=r.length;o-- >0;)t(r[o],"captured",n);for(o=0;o<r.length;o++)t(r[o],"bubbled",n)}function u(e,t,n,o,i){for(var a=e&&t?r(e,t):null,u=[];e&&e!==a;)u.push(e),e=e._hostParent;for(var s=[];t&&t!==a;)s.push(t),t=t._hostParent;var c;for(c=0;c<u.length;c++)n(u[c],"bubbled",o);for(c=s.length;c-- >0;)n(s[c],"captured",i)}var s=n(23);n(11);e.exports={isAncestor:o,getLowestCommonAncestor:r,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:u}},function(e,t,n){"use strict";function r(){this.reinitializeTransaction()}var o=n(29),i=n(84),a=n(268),u=n(62),s={initialize:u,close:function(){d.isBatchingUpdates=!1}},c={initialize:u,close:i.flushBatchedUpdates.bind(i)},l=[c,s];o(r.prototype,a,{getTransactionWrappers:function(){return l}});var f=new r,d={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,r,o,i){var a=d.isBatchingUpdates;return d.isBatchingUpdates=!0,a?e(t,n,r,o,i):f.perform(e,null,t,n,r,o,i)}};e.exports=d},function(e,t,n){"use strict";function r(){w||(w=!0,g.EventEmitter.injectReactEventListener(y),g.EventPluginHub.injectEventPluginOrder(u),g.EventPluginUtils.injectComponentTree(d),g.EventPluginUtils.injectTreeTraversal(h),g.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:T,EnterLeaveEventPlugin:s,ChangeEventPlugin:a,SelectEventPlugin:E,BeforeInputEventPlugin:i}),g.HostComponent.injectGenericComponentClass(f),g.HostComponent.injectTextComponentClass(v),g.DOMProperty.injectDOMPropertyConfig(o),g.DOMProperty.injectDOMPropertyConfig(c),g.DOMProperty.injectDOMPropertyConfig(b),g.EmptyComponent.injectEmptyComponentFactory(function(e){return new p(e)}),g.Updates.injectReconcileTransaction(_),g.Updates.injectBatchingStrategy(m),g.Component.injectEnvironment(l))}var o=n(1229),i=n(1231),a=n(1233),u=n(1235),s=n(1236),c=n(1238),l=n(1240),f=n(1243),d=n(35),p=n(1245),h=n(1253),v=n(1251),m=n(1254),y=n(1258),g=n(1259),_=n(1264),b=n(1269),E=n(1270),T=n(1271),w=!1;e.exports={inject:r}},function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103;e.exports=n},function(e,t,n){"use strict";function r(e){o.enqueueEvents(e),o.processEventQueue(!1)}var o=n(208),i={handleTopLevel:function(e,t,n,i){var a=o.extractEvents(e,t,n,i);r(a)}};e.exports=i},function(e,t,n){"use strict";function r(e){for(;e._hostParent;)e=e._hostParent;var t=f.getNodeFromInstance(e),n=t.parentNode;return f.getClosestInstanceFromNode(n)}function o(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){var t=p(e.nativeEvent),n=f.getClosestInstanceFromNode(t),o=n;do e.ancestors.push(o),o=o&&r(o);while(o);for(var i=0;i<e.ancestors.length;i++)n=e.ancestors[i],v._handleTopLevel(e.topLevelType,n,e.nativeEvent,p(e.nativeEvent))}function a(e){var t=h(window);e(t)}var u=n(29),s=n(511),c=n(47),l=n(140),f=n(35),d=n(84),p=n(389),h=n(1048);u(o.prototype,{destructor:function(){this.topLevelType=null,this.nativeEvent=null,this.ancestors.length=0}}),l.addPoolingTo(o,l.twoArgumentPooler);
var v={_enabled:!0,_handleTopLevel:null,WINDOW_HANDLE:c.canUseDOM?window:null,setHandleTopLevel:function(e){v._handleTopLevel=e},setEnabled:function(e){v._enabled=!!e},isEnabled:function(){return v._enabled},trapBubbledEvent:function(e,t,n){return n?s.listen(n,t,v.dispatchEvent.bind(null,e)):null},trapCapturedEvent:function(e,t,n){return n?s.capture(n,t,v.dispatchEvent.bind(null,e)):null},monitorScrollValue:function(e){var t=a.bind(null,e);s.listen(window,"scroll",t)},dispatchEvent:function(e,t){if(v._enabled){var n=o.getPooled(e,t);try{d.batchedUpdates(i,n)}finally{o.release(n)}}}};e.exports=v},function(e,t,n){"use strict";var r=n(172),o=n(208),i=n(380),a=n(383),u=n(589),s=n(266),c=n(591),l=n(84),f={Component:a.injection,DOMProperty:r.injection,EmptyComponent:u.injection,EventPluginHub:o.injection,EventPluginUtils:i.injection,EventEmitter:s.injection,HostComponent:c.injection,Updates:l.injection};e.exports=f},function(e,t,n){"use strict";var r=n(1282),o=/\/?>/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=r(e);return i.test(e)?e:e.replace(o," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var o=r(e);return o===n}};e.exports=a},function(e,t,n){"use strict";function r(e,t,n){return{type:"INSERT_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function o(e,t,n){return{type:"MOVE_EXISTING",content:null,fromIndex:e._mountIndex,fromNode:d.getHostNode(e),toIndex:n,afterNode:t}}function i(e,t){return{type:"REMOVE_NODE",content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function a(e){return{type:"SET_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function u(e){return{type:"TEXT_CONTENT",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e,t){return t&&(e=e||[],e.push(t)),e}function c(e,t){f.processChildrenUpdates(e,t)}var l=n(23),f=n(383),d=(n(210),n(72),n(101),n(173)),p=n(1239),h=(n(62),n(1285)),v=(n(11),{Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return p.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,r,o,i){var a,u=0;return a=h(t,u),p.updateChildren(e,a,n,r,o,this,this._hostContainerInfo,i,u),a},mountChildren:function(e,t,n){var r=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=r;var o=[],i=0;for(var a in r)if(r.hasOwnProperty(a)){var u=r[a],s=0,c=d.mountComponent(u,t,this,this._hostContainerInfo,n,s);u._mountIndex=i++,o.push(c)}return o},updateTextContent:function(e){var t=this._renderedChildren;p.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&l("118");var r=[u(e)];c(this,r)},updateMarkup:function(e){var t=this._renderedChildren;p.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&l("118");var r=[a(e)];c(this,r)},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var r=this._renderedChildren,o={},i=[],a=this._reconcilerUpdateChildren(r,e,i,o,t,n);if(a||r){var u,l=null,f=0,p=0,h=0,v=null;for(u in a)if(a.hasOwnProperty(u)){var m=r&&r[u],y=a[u];m===y?(l=s(l,this.moveChild(m,v,f,p)),p=Math.max(m._mountIndex,p),m._mountIndex=f):(m&&(p=Math.max(m._mountIndex,p)),l=s(l,this._mountChildAtIndex(y,i[h],v,f,t,n)),h++),f++,v=d.getHostNode(y)}for(u in o)o.hasOwnProperty(u)&&(l=s(l,this._unmountChild(r[u],o[u])));l&&c(this,l),this._renderedChildren=a}},unmountChildren:function(e){var t=this._renderedChildren;p.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,r){if(e._mountIndex<r)return o(e,t,n)},createChild:function(e,t,n){return r(n,t,e._mountIndex)},removeChild:function(e,t){return i(e,t)},_mountChildAtIndex:function(e,t,n,r,o,i){return e._mountIndex=r,this.createChild(e,n,t)},_unmountChild:function(e,t){var n=this.removeChild(e,t);return e._mountIndex=null,n}}});e.exports=v},function(e,t,n){"use strict";function r(e){return!(!e||"function"!=typeof e.attachRef||"function"!=typeof e.detachRef)}var o=n(23),i=(n(11),{addComponentAsRefTo:function(e,t,n){r(n)?void 0:o("119"),n.attachRef(t,e)},removeComponentAsRefFrom:function(e,t,n){r(n)?void 0:o("120");var i=n.getPublicInstance();i&&i.refs[t]===e.getPublicInstance()&&n.detachRef(t)}});e.exports=i},function(e,t){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=n},function(e,t,n){"use strict";function r(e){this.reinitializeTransaction(),this.renderToStaticMarkup=!1,this.reactMountReady=i.getPooled(null),this.useCreateElement=e}var o=n(29),i=n(585),a=n(140),u=n(266),s=n(592),c=(n(72),n(268)),l=n(385),f={initialize:s.getSelectionInformation,close:s.restoreSelection},d={initialize:function(){var e=u.isEnabled();return u.setEnabled(!1),e},close:function(e){u.setEnabled(e)}},p={initialize:function(){this.reactMountReady.reset()},close:function(){this.reactMountReady.notifyAll()}},h=[f,d,p],v={getTransactionWrappers:function(){return h},getReactMountReady:function(){return this.reactMountReady},getUpdateQueue:function(){return l},checkpoint:function(){return this.reactMountReady.checkpoint()},rollback:function(e){this.reactMountReady.rollback(e)},destructor:function(){i.release(this.reactMountReady),this.reactMountReady=null}};o(r.prototype,c,v),a.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){"function"==typeof e?e(t.getPublicInstance()):a.addComponentAsRefTo(t,e,n)}function o(e,t,n){"function"==typeof e?e(null):a.removeComponentAsRefFrom(t,e,n)}var 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},a=n(1262),u={};u.attachRefs=function(e,t){if(null!==t&&"object"===("undefined"==typeof t?"undefined":i(t))){var n=t.ref;null!=n&&r(n,e,t._owner)}},u.shouldUpdateRefs=function(e,t){var n=null,r=null;null!==e&&"object"===("undefined"==typeof e?"undefined":i(e))&&(n=e.ref,r=e._owner);var o=null,a=null;return null!==t&&"object"===("undefined"==typeof t?"undefined":i(t))&&(o=t.ref,a=t._owner),n!==o||"string"==typeof o&&a!==r},u.detachRefs=function(e,t){if(null!==t&&"object"===("undefined"==typeof t?"undefined":i(t))){var n=t.ref;null!=n&&o(n,e,t._owner)}},e.exports=u},function(e,t,n){"use strict";function r(e){this.reinitializeTransaction(),this.renderToStaticMarkup=e,this.useCreateElement=!1,this.updateQueue=new u(this)}var o=n(29),i=n(140),a=n(268),u=(n(72),n(1267)),s=[],c={enqueue:function(){}},l={getTransactionWrappers:function(){return s},getReactMountReady:function(){return c},getUpdateQueue:function(){return this.updateQueue},destructor:function(){},checkpoint:function(){},rollback:function(){}};o(r.prototype,a,l),i.addPoolingTo(r),e.exports=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){}var i=n(385),a=(n(16),function(){function e(t){r(this,e),this.transaction=t}return e.prototype.isMounted=function(e){return!1},e.prototype.enqueueCallback=function(e,t,n){this.transaction.isInTransaction()&&i.enqueueCallback(e,t,n)},e.prototype.enqueueForceUpdate=function(e){this.transaction.isInTransaction()?i.enqueueForceUpdate(e):o(e,"forceUpdate")},e.prototype.enqueueReplaceState=function(e,t){this.transaction.isInTransaction()?i.enqueueReplaceState(e,t):o(e,"replaceState")},e.prototype.enqueueSetState=function(e,t){this.transaction.isInTransaction()?i.enqueueSetState(e,t):o(e,"setState")},e}());e.exports=a},function(e,t){"use strict";e.exports="15.4.0"},function(e,t){"use strict";var n={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},r={accentHeight:"accent-height",accumulate:0,additive:0,alignmentBaseline:"alignment-baseline",allowReorder:"allowReorder",alphabetic:0,amplitude:0,arabicForm:"arabic-form",ascent:0,attributeName:"attributeName",attributeType:"attributeType",autoReverse:"autoReverse",azimuth:0,baseFrequency:"baseFrequency",baseProfile:"baseProfile",baselineShift:"baseline-shift",bbox:0,begin:0,bias:0,by:0,calcMode:"calcMode",capHeight:"cap-height",clip:0,clipPath:"clip-path",clipRule:"clip-rule",clipPathUnits:"clipPathUnits",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",contentScriptType:"contentScriptType",contentStyleType:"contentStyleType",cursor:0,cx:0,cy:0,d:0,decelerate:0,descent:0,diffuseConstant:"diffuseConstant",direction:0,display:0,divisor:0,dominantBaseline:"dominant-baseline",dur:0,dx:0,dy:0,edgeMode:"edgeMode",elevation:0,enableBackground:"enable-background",end:0,exponent:0,externalResourcesRequired:"externalResourcesRequired",fill:0,fillOpacity:"fill-opacity",fillRule:"fill-rule",filter:0,filterRes:"filterRes",filterUnits:"filterUnits",floodColor:"flood-color",floodOpacity:"flood-opacity",focusable:0,fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",glyphRef:"glyphRef",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",hanging:0,horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",ideographic:0,imageRendering:"image-rendering","in":0,in2:0,intercept:0,k:0,k1:0,k2:0,k3:0,k4:0,kernelMatrix:"kernelMatrix",kernelUnitLength:"kernelUnitLength",kerning:0,keyPoints:"keyPoints",keySplines:"keySplines",keyTimes:"keyTimes",lengthAdjust:"lengthAdjust",letterSpacing:"letter-spacing",lightingColor:"lighting-color",limitingConeAngle:"limitingConeAngle",local:0,markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",markerHeight:"markerHeight",markerUnits:"markerUnits",markerWidth:"markerWidth",mask:0,maskContentUnits:"maskContentUnits",maskUnits:"maskUnits",mathematical:0,mode:0,numOctaves:"numOctaves",offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pathLength:"pathLength",patternContentUnits:"patternContentUnits",patternTransform:"patternTransform",patternUnits:"patternUnits",pointerEvents:"pointer-events",points:0,pointsAtX:"pointsAtX",pointsAtY:"pointsAtY",pointsAtZ:"pointsAtZ",preserveAlpha:"preserveAlpha",preserveAspectRatio:"preserveAspectRatio",primitiveUnits:"primitiveUnits",r:0,radius:0,refX:"refX",refY:"refY",renderingIntent:"rendering-intent",repeatCount:"repeatCount",repeatDur:"repeatDur",requiredExtensions:"requiredExtensions",requiredFeatures:"requiredFeatures",restart:0,result:0,rotate:0,rx:0,ry:0,scale:0,seed:0,shapeRendering:"shape-rendering",slope:0,spacing:0,specularConstant:"specularConstant",specularExponent:"specularExponent",speed:0,spreadMethod:"spreadMethod",startOffset:"startOffset",stdDeviation:"stdDeviation",stemh:0,stemv:0,stitchTiles:"stitchTiles",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",string:0,stroke:0,strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",surfaceScale:"surfaceScale",systemLanguage:"systemLanguage",tableValues:"tableValues",targetX:"targetX",targetY:"targetY",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",textLength:"textLength",to:0,transform:0,u1:0,u2:0,underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicode:0,unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",values:0,vectorEffect:"vector-effect",version:0,vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",viewBox:"viewBox",viewTarget:"viewTarget",visibility:0,widths:0,wordSpacing:"word-spacing",writingMode:"writing-mode",x:0,xHeight:"x-height",x1:0,x2:0,xChannelSelector:"xChannelSelector",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlns:0,xmlnsXlink:"xmlns:xlink",xmlLang:"xml:lang",xmlSpace:"xml:space",y:0,y1:0,y2:0,yChannelSelector:"yChannelSelector",z:0,zoomAndPan:"zoomAndPan"},o={Properties:{},DOMAttributeNamespaces:{xlinkActuate:n.xlink,xlinkArcrole:n.xlink,xlinkHref:n.xlink,xlinkRole:n.xlink,xlinkShow:n.xlink,xlinkTitle:n.xlink,xlinkType:n.xlink,xmlBase:n.xml,xmlLang:n.xml,xmlSpace:n.xml},DOMAttributeNames:{}};Object.keys(r).forEach(function(e){o.Properties[e]=0,r[e]&&(o.DOMAttributeNames[e]=r[e])}),e.exports=o},function(e,t,n){"use strict";function r(e){if("selectionStart"in e&&s.hasSelectionCapabilities(e))return{start:e.selectionStart,end:e.selectionEnd};if(window.getSelection){var t=window.getSelection();return{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}}if(document.selection){var n=document.selection.createRange();return{parentElement:n.parentElement(),text:n.text,top:n.boundingTop,left:n.boundingLeft}}}function o(e,t){if(g||null==v||v!==l())return null;var n=r(v);if(!y||!d(y,n)){y=n;var o=c.getPooled(h.select,m,e,t);return o.type="select",o.target=v,i.accumulateTwoPhaseDispatches(o),o}return null}var i=n(209),a=n(47),u=n(35),s=n(592),c=n(100),l=n(513),f=n(601),d=n(342),p=a.canUseDOM&&"documentMode"in document&&document.documentMode<=11,h={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:["topBlur","topContextMenu","topFocus","topKeyDown","topKeyUp","topMouseDown","topMouseUp","topSelectionChange"]}},v=null,m=null,y=null,g=!1,_=!1,b={eventTypes:h,extractEvents:function(e,t,n,r){if(!_)return null;var i=t?u.getNodeFromInstance(t):window;switch(e){case"topFocus":(f(i)||"true"===i.contentEditable)&&(v=i,m=t,y=null);break;case"topBlur":v=null,m=null,y=null;break;case"topMouseDown":g=!0;break;case"topContextMenu":case"topMouseUp":return g=!1,o(n,r);case"topSelectionChange":if(p)break;case"topKeyDown":case"topKeyUp":return o(n,r)}return null},didPutListener:function(e,t,n){"onSelect"===t&&(_=!0)}};e.exports=b},function(e,t,n){"use strict";function r(e){return"."+e._rootNodeID}function o(e){return"button"===e||"input"===e||"select"===e||"textarea"===e}function i(e){if(e){var t=e._currentElement&&e._currentElement.props.disabled;if(t)return o(e._tag)}return!1}var a=n(23),u=n(511),s=n(209),c=n(35),l=n(1272),f=n(1273),d=n(100),p=n(1276),h=n(1278),v=n(267),m=n(1275),y=n(1279),g=n(1280),_=n(211),b=n(1281),E=n(62),T=n(387),w=(n(11),{}),S={};["abort","animationEnd","animationIteration","animationStart","blur","canPlay","canPlayThrough","click","contextMenu","copy","cut","doubleClick","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","focus","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","progress","rateChange","reset","scroll","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchMove","touchStart","transitionEnd","volumeChange","waiting","wheel"].forEach(function(e){var t=e[0].toUpperCase()+e.slice(1),n="on"+t,r="top"+t,o={phasedRegistrationNames:{bubbled:n,captured:n+"Capture"},dependencies:[r]};w[e]=o,S[r]=o});var O={},P={eventTypes:w,extractEvents:function(e,t,n,r){var o=S[e];if(!o)return null;var u;switch(e){case"topAbort":case"topCanPlay":case"topCanPlayThrough":case"topDurationChange":case"topEmptied":case"topEncrypted":case"topEnded":case"topError":case"topInput":case"topInvalid":case"topLoad":case"topLoadedData":case"topLoadedMetadata":case"topLoadStart":case"topPause":case"topPlay":case"topPlaying":case"topProgress":case"topRateChange":case"topReset":case"topSeeked":case"topSeeking":case"topStalled":case"topSubmit":case"topSuspend":case"topTimeUpdate":case"topVolumeChange":case"topWaiting":u=d;break;case"topKeyPress":if(0===T(n))return null;case"topKeyDown":case"topKeyUp":u=h;break;case"topBlur":case"topFocus":u=p;break;case"topClick":if(2===n.button)return null;case"topDoubleClick":case"topMouseDown":case"topMouseMove":case"topMouseUp":if(i(t))return null;case"topMouseOut":case"topMouseOver":case"topContextMenu":u=v;break;case"topDrag":case"topDragEnd":case"topDragEnter":case"topDragExit":case"topDragLeave":case"topDragOver":case"topDragStart":case"topDrop":u=m;break;case"topTouchCancel":case"topTouchEnd":case"topTouchMove":case"topTouchStart":u=y;break;case"topAnimationEnd":case"topAnimationIteration":case"topAnimationStart":u=l;break;case"topTransitionEnd":u=g;break;case"topScroll":u=_;break;case"topWheel":u=b;break;case"topCopy":case"topCut":case"topPaste":u=f}u?void 0:a("86",e);var c=u.getPooled(o,t,n,r);return s.accumulateTwoPhaseDispatches(c),c},didPutListener:function(e,t,n){if("onClick"===t&&!o(e._tag)){var i=r(e),a=c.getNodeFromInstance(e);O[i]||(O[i]=u.listen(a,"click",E))}},willDeleteListener:function(e,t){if("onClick"===t&&!o(e._tag)){var n=r(e);O[n].remove(),delete O[n]}}};e.exports=P},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(100),i={animationName:null,elapsedTime:null,pseudoElement:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(100),i={clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(100),i={data:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(267),i={dataTransfer:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(211),i={relatedTarget:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(100),i={data:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(211),i=n(387),a=n(1286),u=n(388),s={key:a,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:u,charCode:function(e){return"keypress"===e.type?i(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?i(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}};o.augmentClass(r,s),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(211),i=n(388),a={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:i};o.augmentClass(r,a),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(100),i={propertyName:null,elapsedTime:null,pseudoElement:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(267),i={deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null};o.augmentClass(r,i),e.exports=r},function(e,t){"use strict";function n(e){for(var t=1,n=0,o=0,i=e.length,a=i&-4;o<a;){for(var u=Math.min(o+4096,a);o<u;o+=4)n+=(t+=e.charCodeAt(o))+(t+=e.charCodeAt(o+1))+(t+=e.charCodeAt(o+2))+(t+=e.charCodeAt(o+3));t%=r,n%=r}for(;o<i;o++)n+=t+=e.charCodeAt(o);return t%=r,n%=r,t|n<<16}var r=65521;e.exports=n},function(e,t,n){"use strict";function r(e,t,n){var r=null==t||"boolean"==typeof t||""===t;if(r)return"";var o=isNaN(t);if(o||0===t||i.hasOwnProperty(e)&&i[e])return""+t;if("string"==typeof t){t=t.trim()}return t+"px"}var o=n(584),i=(n(16),o.isUnitlessNumber);e.exports=r},function(e,t,n){"use strict";function r(e){if(null==e)return null;if(1===e.nodeType)return e;var t=a.get(e);return t?(t=u(t),t?i.getNodeFromInstance(t):null):void("function"==typeof e.render?o("44"):o("45",Object.keys(e)))}var o=n(23),i=(n(101),n(35)),a=n(210),u=n(598);n(11),n(16);e.exports=r},function(e,t,n){"use strict";(function(t){function r(e,t,n,r){if(e&&"object"===("undefined"==typeof e?"undefined":i(e))){var o=e,a=void 0===o[n];a&&null!=t&&(o[n]=t)}}function o(e,t){if(null==e)return e;var n={};return a(e,r,n),n}var 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},a=(n(381),n(603));n(16);e.exports=o}).call(t,n(114))},function(e,t,n){"use strict";function r(e){if(e.key){var t=i[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=o(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?a[e.keyCode]||"Unidentified":""}var o=n(387),i={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};e.exports=r},function(e,t){"use strict";function n(e){var t=e&&(r&&e[r]||e[o]);if("function"==typeof t)return t}var r="function"==typeof Symbol&&Symbol.iterator,o="@@iterator";e.exports=n},function(e,t){"use strict";function n(){return r++}var r=1;e.exports=n},function(e,t){"use strict";function n(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function r(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function o(e,t){for(var o=n(e),i=0,a=0;o;){if(3===o.nodeType){if(a=i+o.textContent.length,i<=t&&a>=t)return{node:o,offset:t-i};i=a}o=n(r(o))}}e.exports=o},function(e,t,n){"use strict";function r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function o(e){if(u[e])return u[e];if(!a[e])return e;var t=a[e];for(var n in t)if(t.hasOwnProperty(n)&&n in s)return u[e]=t[n];return""}var i=n(47),a={animationend:r("Animation","AnimationEnd"),animationiteration:r("Animation","AnimationIteration"),animationstart:r("Animation","AnimationStart"),transitionend:r("Transition","TransitionEnd")},u={},s={};i.canUseDOM&&(s=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),e.exports=o},function(e,t,n){"use strict";function r(e){return'"'+o(e)+'"'}var o=n(269);e.exports=r},function(e,t,n){"use strict";var r=n(593);e.exports=r.renderSubtreeIntoContainer},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(393),a=r(i),u=n(396),s=r(u),c=n(395),l=r(c),f=n(375),d=r(f),p=n(139),h=r(p),v=n(394),m=r(v),y=n(0),g=r(y),_=1e3/60,b=g["default"].createClass({displayName:"Motion",propTypes:{defaultStyle:y.PropTypes.objectOf(y.PropTypes.number),style:y.PropTypes.objectOf(y.PropTypes.oneOfType([y.PropTypes.number,y.PropTypes.object])).isRequired,children:y.PropTypes.func.isRequired,onRest:y.PropTypes.func},getInitialState:function(){var e=this.props,t=e.defaultStyle,n=e.style,r=t||s["default"](n),o=a["default"](r);return{currentStyle:r,currentVelocity:o,lastIdealStyle:r,lastIdealVelocity:o}},wasAnimating:!1,animationID:null,prevTime:0,accumulatedTime:0,unreadPropStyle:null,clearUnreadPropStyle:function(e){var t=!1,n=this.state,r=n.currentStyle,i=n.currentVelocity,a=n.lastIdealStyle,u=n.lastIdealVelocity;for(var s in e)if(e.hasOwnProperty(s)){var c=e[s];"number"==typeof c&&(t||(t=!0,r=o({},r),i=o({},i),a=o({},a),u=o({},u)),r[s]=c,i[s]=0,a[s]=c,u[s]=0)}t&&this.setState({currentStyle:r,currentVelocity:i,lastIdealStyle:a,lastIdealVelocity:u})},startAnimationIfNecessary:function(){var e=this;this.animationID=h["default"](function(){var t=e.props.style;if(m["default"](e.state.currentStyle,t,e.state.currentVelocity))return e.wasAnimating&&e.props.onRest&&e.props.onRest(),e.animationID=null,e.wasAnimating=!1,void(e.accumulatedTime=0);e.wasAnimating=!0;var n=d["default"](),r=n-e.prevTime;if(e.prevTime=n,e.accumulatedTime=e.accumulatedTime+r,e.accumulatedTime>10*_&&(e.accumulatedTime=0),0===e.accumulatedTime)return e.animationID=null,void e.startAnimationIfNecessary();var o=(e.accumulatedTime-Math.floor(e.accumulatedTime/_)*_)/_,i=Math.floor(e.accumulatedTime/_),a={},u={},s={},c={};for(var f in t)if(t.hasOwnProperty(f)){var p=t[f];if("number"==typeof p)s[f]=p,c[f]=0,a[f]=p,u[f]=0;else{for(var h=e.state.lastIdealStyle[f],v=e.state.lastIdealVelocity[f],y=0;y<i;y++){var g=l["default"](_/1e3,h,v,p.val,p.stiffness,p.damping,p.precision);h=g[0],v=g[1]}var b=l["default"](_/1e3,h,v,p.val,p.stiffness,p.damping,p.precision),E=b[0],T=b[1];s[f]=h+(E-h)*o,c[f]=v+(T-v)*o,a[f]=h,u[f]=v}}e.animationID=null,e.accumulatedTime-=i*_,e.setState({currentStyle:s,currentVelocity:c,lastIdealStyle:a,lastIdealVelocity:u}),e.unreadPropStyle=null,e.startAnimationIfNecessary()})},componentDidMount:function(){this.prevTime=d["default"](),this.startAnimationIfNecessary()},componentWillReceiveProps:function(e){null!=this.unreadPropStyle&&this.clearUnreadPropStyle(this.unreadPropStyle),this.unreadPropStyle=e.style,null==this.animationID&&(this.prevTime=d["default"](),this.startAnimationIfNecessary())},componentWillUnmount:function(){null!=this.animationID&&(h["default"].cancel(this.animationID),this.animationID=null)},render:function(){var e=this.props.children(this.state.currentStyle);return e&&g["default"].Children.only(e)}});t["default"]=b,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){for(var r=0;r<e.length;r++)if(!y["default"](e[r],t[r],n[r]))return!1;return!0}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(393),u=r(a),s=n(396),c=r(s),l=n(395),f=r(l),d=n(375),p=r(d),h=n(139),v=r(h),m=n(394),y=r(m),g=n(0),_=r(g),b=1e3/60,E=_["default"].createClass({displayName:"StaggeredMotion",propTypes:{defaultStyles:g.PropTypes.arrayOf(g.PropTypes.objectOf(g.PropTypes.number)),styles:g.PropTypes.func.isRequired,children:g.PropTypes.func.isRequired},getInitialState:function(){var e=this.props,t=e.defaultStyles,n=e.styles,r=t||n().map(c["default"]),o=r.map(function(e){return u["default"](e)});return{currentStyles:r,currentVelocities:o,lastIdealStyles:r,lastIdealVelocities:o}},animationID:null,prevTime:0,accumulatedTime:0,unreadPropStyles:null,clearUnreadPropStyle:function(e){for(var t=this.state,n=t.currentStyles,r=t.currentVelocities,o=t.lastIdealStyles,a=t.lastIdealVelocities,u=!1,s=0;s<e.length;s++){var c=e[s],l=!1;for(var f in c)if(c.hasOwnProperty(f)){var d=c[f];"number"==typeof d&&(l||(l=!0,u=!0,n[s]=i({},n[s]),r[s]=i({},r[s]),o[s]=i({},o[s]),a[s]=i({},a[s])),n[s][f]=d,r[s][f]=0,o[s][f]=d,a[s][f]=0)}}u&&this.setState({currentStyles:n,currentVelocities:r,lastIdealStyles:o,lastIdealVelocities:a})},startAnimationIfNecessary:function(){var e=this;this.animationID=v["default"](function(){var t=e.props.styles(e.state.lastIdealStyles);if(o(e.state.currentStyles,t,e.state.currentVelocities))return e.animationID=null,void(e.accumulatedTime=0);var n=p["default"](),r=n-e.prevTime;if(e.prevTime=n,e.accumulatedTime=e.accumulatedTime+r,e.accumulatedTime>10*b&&(e.accumulatedTime=0),0===e.accumulatedTime)return e.animationID=null,void e.startAnimationIfNecessary();for(var i=(e.accumulatedTime-Math.floor(e.accumulatedTime/b)*b)/b,a=Math.floor(e.accumulatedTime/b),u=[],s=[],c=[],l=[],d=0;d<t.length;d++){var h=t[d],v={},m={},y={},g={};for(var _ in h)if(h.hasOwnProperty(_)){var E=h[_];if("number"==typeof E)v[_]=E,m[_]=0,y[_]=E,g[_]=0;else{for(var T=e.state.lastIdealStyles[d][_],w=e.state.lastIdealVelocities[d][_],S=0;S<a;S++){var O=f["default"](b/1e3,T,w,E.val,E.stiffness,E.damping,E.precision);T=O[0],w=O[1]}var P=f["default"](b/1e3,T,w,E.val,E.stiffness,E.damping,E.precision),R=P[0],I=P[1];v[_]=T+(R-T)*i,m[_]=w+(I-w)*i,y[_]=T,g[_]=w}}c[d]=v,l[d]=m,u[d]=y,s[d]=g}e.animationID=null,e.accumulatedTime-=a*b,e.setState({currentStyles:c,currentVelocities:l,lastIdealStyles:u,lastIdealVelocities:s}),e.unreadPropStyles=null,e.startAnimationIfNecessary()})},componentDidMount:function(){this.prevTime=p["default"](),this.startAnimationIfNecessary()},componentWillReceiveProps:function(e){null!=this.unreadPropStyles&&this.clearUnreadPropStyle(this.unreadPropStyles),this.unreadPropStyles=e.styles(this.state.lastIdealStyles),null==this.animationID&&(this.prevTime=p["default"](),this.startAnimationIfNecessary())},componentWillUnmount:function(){null!=this.animationID&&(v["default"].cancel(this.animationID),this.animationID=null)},render:function(){var e=this.props.children(this.state.currentStyles);return e&&_["default"].Children.only(e)}});t["default"]=E,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return null==t?e.map(function(e,t){return{key:e.key,data:e.data,style:n[t]}}):e.map(function(e,r){for(var o=0;o<t.length;o++)if(t[o].key===e.key)return{key:t[o].key,data:t[o].data,style:n[r]};return{key:e.key,data:e.data,style:n[r]}})}function i(e,t,n,r){if(r.length!==t.length)return!1;for(var o=0;o<r.length;o++)if(r[o].key!==t[o].key)return!1;for(var o=0;o<r.length;o++)if(!E["default"](e[o],t[o].style,n[o]))return!1;return!0}function a(e,t,n,r,o,i,a,u){for(var s=v["default"](n,r,function(e,n){var r=t(n);return null==r?null:E["default"](o[e],r,i[e])?null:{key:n.key,data:n.data,style:r}}),l=[],f=[],d=[],p=[],h=0;h<s.length;h++){for(var m=s[h],y=null,g=0;g<n.length;g++)if(n[g].key===m.key){y=g;break}if(null==y){var _=e(m);l[h]=_,d[h]=_;var b=c["default"](m.style);f[h]=b,p[h]=b}else l[h]=o[y],d[h]=a[y],f[h]=i[y],p[h]=u[y]}return[s,l,f,d,p]}t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(393),c=r(s),l=n(396),f=r(l),d=n(395),p=r(d),h=n(1296),v=r(h),m=n(375),y=r(m),g=n(139),_=r(g),b=n(394),E=r(b),T=n(0),w=r(T),S=1e3/60,O=w["default"].createClass({displayName:"TransitionMotion",propTypes:{defaultStyles:T.PropTypes.arrayOf(T.PropTypes.shape({key:T.PropTypes.string.isRequired,data:T.PropTypes.any,style:T.PropTypes.objectOf(T.PropTypes.number).isRequired})),styles:T.PropTypes.oneOfType([T.PropTypes.func,T.PropTypes.arrayOf(T.PropTypes.shape({key:T.PropTypes.string.isRequired,data:T.PropTypes.any,style:T.PropTypes.objectOf(T.PropTypes.oneOfType([T.PropTypes.number,T.PropTypes.object])).isRequired}))]).isRequired,children:T.PropTypes.func.isRequired,willLeave:T.PropTypes.func,willEnter:T.PropTypes.func},getDefaultProps:function(){
return{willEnter:function(e){return f["default"](e.style)},willLeave:function(){return null}}},getInitialState:function(){var e=this.props,t=e.defaultStyles,n=e.styles,r=e.willEnter,o=e.willLeave,i="function"==typeof n?n(t):n,u=void 0;u=null==t?i:t.map(function(e){for(var t=0;t<i.length;t++)if(i[t].key===e.key)return i[t];return e});var s=null==t?i.map(function(e){return f["default"](e.style)}):t.map(function(e){return f["default"](e.style)}),l=null==t?i.map(function(e){return c["default"](e.style)}):t.map(function(e){return c["default"](e.style)}),d=a(r,o,u,i,s,l,s,l),p=d[0],h=d[1],v=d[2],m=d[3],y=d[4];return{currentStyles:h,currentVelocities:v,lastIdealStyles:m,lastIdealVelocities:y,mergedPropsStyles:p}},animationID:null,prevTime:0,accumulatedTime:0,unreadPropStyles:null,clearUnreadPropStyle:function(e){for(var t=a(this.props.willEnter,this.props.willLeave,this.state.mergedPropsStyles,e,this.state.currentStyles,this.state.currentVelocities,this.state.lastIdealStyles,this.state.lastIdealVelocities),n=t[0],r=t[1],o=t[2],i=t[3],s=t[4],c=0;c<e.length;c++){var l=e[c].style,f=!1;for(var d in l)if(l.hasOwnProperty(d)){var p=l[d];"number"==typeof p&&(f||(f=!0,r[c]=u({},r[c]),o[c]=u({},o[c]),i[c]=u({},i[c]),s[c]=u({},s[c]),n[c]={key:n[c].key,data:n[c].data,style:u({},n[c].style)}),r[c][d]=p,o[c][d]=0,i[c][d]=p,s[c][d]=0,n[c].style[d]=p)}}this.setState({currentStyles:r,currentVelocities:o,mergedPropsStyles:n,lastIdealStyles:i,lastIdealVelocities:s})},startAnimationIfNecessary:function(){var e=this;this.animationID=_["default"](function(){var t=e.props.styles,n="function"==typeof t?t(o(e.state.mergedPropsStyles,e.unreadPropStyles,e.state.lastIdealStyles)):t;if(i(e.state.currentStyles,n,e.state.currentVelocities,e.state.mergedPropsStyles))return e.animationID=null,void(e.accumulatedTime=0);var r=y["default"](),u=r-e.prevTime;if(e.prevTime=r,e.accumulatedTime=e.accumulatedTime+u,e.accumulatedTime>10*S&&(e.accumulatedTime=0),0===e.accumulatedTime)return e.animationID=null,void e.startAnimationIfNecessary();for(var s=(e.accumulatedTime-Math.floor(e.accumulatedTime/S)*S)/S,c=Math.floor(e.accumulatedTime/S),l=a(e.props.willEnter,e.props.willLeave,e.state.mergedPropsStyles,n,e.state.currentStyles,e.state.currentVelocities,e.state.lastIdealStyles,e.state.lastIdealVelocities),f=l[0],d=l[1],h=l[2],v=l[3],m=l[4],g=0;g<f.length;g++){var _=f[g].style,b={},E={},T={},w={};for(var O in _)if(_.hasOwnProperty(O)){var P=_[O];if("number"==typeof P)b[O]=P,E[O]=0,T[O]=P,w[O]=0;else{for(var R=v[g][O],I=m[g][O],A=0;A<c;A++){var C=p["default"](S/1e3,R,I,P.val,P.stiffness,P.damping,P.precision);R=C[0],I=C[1]}var x=p["default"](S/1e3,R,I,P.val,P.stiffness,P.damping,P.precision),N=x[0],M=x[1];b[O]=R+(N-R)*s,E[O]=I+(M-I)*s,T[O]=R,w[O]=I}}v[g]=T,m[g]=w,d[g]=b,h[g]=E}e.animationID=null,e.accumulatedTime-=c*S,e.setState({currentStyles:d,currentVelocities:h,lastIdealStyles:v,lastIdealVelocities:m,mergedPropsStyles:f}),e.unreadPropStyles=null,e.startAnimationIfNecessary()})},componentDidMount:function(){this.prevTime=y["default"](),this.startAnimationIfNecessary()},componentWillReceiveProps:function(e){this.unreadPropStyles&&this.clearUnreadPropStyle(this.unreadPropStyles),"function"==typeof e.styles?this.unreadPropStyles=e.styles(o(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.lastIdealStyles)):this.unreadPropStyles=e.styles,null==this.animationID&&(this.prevTime=y["default"](),this.startAnimationIfNecessary())},componentWillUnmount:function(){null!=this.animationID&&(_["default"].cancel(this.animationID),this.animationID=null)},render:function(){var e=o(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.currentStyles),t=this.props.children(e);return t&&w["default"].Children.only(t)}});t["default"]=O,e.exports=t["default"]},function(e,t){"use strict";function n(e,t,n){for(var r={},o=0;o<e.length;o++)r[e[o].key]=o;for(var i={},o=0;o<t.length;o++)i[t[o].key]=o;for(var a=[],o=0;o<t.length;o++)a[o]=t[o];for(var o=0;o<e.length;o++)if(!i.hasOwnProperty(e[o].key)){var u=n(o,e[o]);null!=u&&a.push(u)}return a.sort(function(e,n){var o=i[e.key],a=i[n.key],u=r[e.key],s=r[n.key];if(null!=o&&null!=a)return i[e.key]-i[n.key];if(null!=u&&null!=s)return r[e.key]-r[n.key];if(null!=o){for(var c=0;c<t.length;c++){var l=t[c].key;if(r.hasOwnProperty(l)){if(o<i[l]&&s>r[l])return-1;if(o>i[l]&&s<r[l])return 1}}return 1}for(var c=0;c<t.length;c++){var l=t[c].key;if(r.hasOwnProperty(l)){if(a<i[l]&&u>r[l])return 1;if(a>i[l]&&u<r[l])return-1}}return-1})}t.__esModule=!0,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;var o=n(1293);t.Motion=r(o);var i=n(1294);t.StaggeredMotion=r(i);var a=n(1295);t.TransitionMotion=r(a);var u=n(1299);t.spring=r(u);var s=n(604);t.presets=r(s);var c=n(1298);t.reorderKeys=r(c)},function(e,t,n){"use strict";function r(){}t.__esModule=!0,t["default"]=r;e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){return i({},s,t,{val:e})}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t["default"]=o;var a=n(604),u=r(a),s=i({},u["default"].noWobble,{precision:.01});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(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":u(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 "+("undefined"==typeof t?"undefined":u(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="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};t.__esModule=!0,t["default"]=void 0;var s=n(0),c=n(605),l=r(c),f=n(606),d=(r(f),function(e){function t(n,r){o(this,t);var a=i(this,e.call(this,n,r));return a.store=n.store,a}return a(t,e),t.prototype.getChildContext=function(){return{store:this.store}},t.prototype.render=function(){var e=this.props.children;return s.Children.only(e)},t}(s.Component));t["default"]=d,d.propTypes={store:l["default"].isRequired,children:s.PropTypes.element.isRequired},d.childContextTypes={store:l["default"].isRequired}},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(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":l(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 "+("undefined"==typeof t?"undefined":l(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){return e.displayName||e.name||"Component"}function s(e,t){try{return e.apply(t)}catch(n){return I.value=n,I}}function c(e,t,n){var r=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],c=Boolean(e),l=e||O,p=void 0;p="function"==typeof t?t:t?(0,g["default"])(t):P;var v=n||R,y=r.pure,_=void 0===y||y,b=r.withRef,E=void 0!==b&&b,w=_&&v!==R,C=A++;return function(e){function t(e,t,n){var r=v(e,t,n);return r}var n="Connect("+u(e)+")",r=function(r){function u(e,t){o(this,u);var a=i(this,r.call(this,e,t));a.version=C,a.store=e.store||t.store,(0,S["default"])(a.store,'Could not find "store" in either the context or '+('props of "'+n+'". ')+"Either wrap the root component in a <Provider>, "+('or explicitly pass "store" as a prop to "'+n+'".'));var s=a.store.getState();return a.state={storeState:s},a.clearCache(),a}return a(u,r),u.prototype.shouldComponentUpdate=function(){return!_||this.haveOwnPropsChanged||this.hasStoreStateChanged},u.prototype.computeStateProps=function(e,t){if(!this.finalMapStateToProps)return this.configureFinalMapState(e,t);var n=e.getState(),r=this.doStatePropsDependOnOwnProps?this.finalMapStateToProps(n,t):this.finalMapStateToProps(n);return r},u.prototype.configureFinalMapState=function(e,t){var n=l(e.getState(),t),r="function"==typeof n;return this.finalMapStateToProps=r?n:l,this.doStatePropsDependOnOwnProps=1!==this.finalMapStateToProps.length,r?this.computeStateProps(e,t):n},u.prototype.computeDispatchProps=function(e,t){if(!this.finalMapDispatchToProps)return this.configureFinalMapDispatch(e,t);var n=e.dispatch,r=this.doDispatchPropsDependOnOwnProps?this.finalMapDispatchToProps(n,t):this.finalMapDispatchToProps(n);return r},u.prototype.configureFinalMapDispatch=function(e,t){var n=p(e.dispatch,t),r="function"==typeof n;return this.finalMapDispatchToProps=r?n:p,this.doDispatchPropsDependOnOwnProps=1!==this.finalMapDispatchToProps.length,r?this.computeDispatchProps(e,t):n},u.prototype.updateStatePropsIfNeeded=function(){var e=this.computeStateProps(this.store,this.props);return(!this.stateProps||!(0,m["default"])(e,this.stateProps))&&(this.stateProps=e,!0)},u.prototype.updateDispatchPropsIfNeeded=function(){var e=this.computeDispatchProps(this.store,this.props);return(!this.dispatchProps||!(0,m["default"])(e,this.dispatchProps))&&(this.dispatchProps=e,!0)},u.prototype.updateMergedPropsIfNeeded=function(){var e=t(this.stateProps,this.dispatchProps,this.props);return!(this.mergedProps&&w&&(0,m["default"])(e,this.mergedProps))&&(this.mergedProps=e,!0)},u.prototype.isSubscribed=function(){return"function"==typeof this.unsubscribe},u.prototype.trySubscribe=function(){c&&!this.unsubscribe&&(this.unsubscribe=this.store.subscribe(this.handleChange.bind(this)),this.handleChange())},u.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},u.prototype.componentDidMount=function(){this.trySubscribe()},u.prototype.componentWillReceiveProps=function(e){_&&(0,m["default"])(e,this.props)||(this.haveOwnPropsChanged=!0)},u.prototype.componentWillUnmount=function(){this.tryUnsubscribe(),this.clearCache()},u.prototype.clearCache=function(){this.dispatchProps=null,this.stateProps=null,this.mergedProps=null,this.haveOwnPropsChanged=!0,this.hasStoreStateChanged=!0,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,this.renderedElement=null,this.finalMapDispatchToProps=null,this.finalMapStateToProps=null},u.prototype.handleChange=function(){if(this.unsubscribe){var e=this.store.getState(),t=this.state.storeState;if(!_||t!==e){if(_&&!this.doStatePropsDependOnOwnProps){var n=s(this.updateStatePropsIfNeeded,this);if(!n)return;n===I&&(this.statePropsPrecalculationError=I.value),this.haveStatePropsBeenPrecalculated=!0}this.hasStoreStateChanged=!0,this.setState({storeState:e})}}},u.prototype.getWrappedInstance=function(){return(0,S["default"])(E,"To access the wrapped instance, you need to specify { withRef: true } as the fourth argument of the connect() call."),this.refs.wrappedInstance},u.prototype.render=function(){var t=this.haveOwnPropsChanged,n=this.hasStoreStateChanged,r=this.haveStatePropsBeenPrecalculated,o=this.statePropsPrecalculationError,i=this.renderedElement;if(this.haveOwnPropsChanged=!1,this.hasStoreStateChanged=!1,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,o)throw o;var a=!0,u=!0;_&&i&&(a=n||t&&this.doStatePropsDependOnOwnProps,u=t&&this.doDispatchPropsDependOnOwnProps);var s=!1,c=!1;r?s=!0:a&&(s=this.updateStatePropsIfNeeded()),u&&(c=this.updateDispatchPropsIfNeeded());var l=!0;return l=!!(s||c||t)&&this.updateMergedPropsIfNeeded(),!l&&i?i:(E?this.renderedElement=(0,d.createElement)(e,f({},this.mergedProps,{ref:"wrappedInstance"})):this.renderedElement=(0,d.createElement)(e,this.mergedProps),this.renderedElement)},u}(d.Component);return r.displayName=n,r.WrappedComponent=e,r.contextTypes={store:h["default"]},r.propTypes={store:h["default"]},(0,T["default"])(r,e)}}var l="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},f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.__esModule=!0,t["default"]=c;var d=n(0),p=n(605),h=r(p),v=n(1302),m=r(v),y=n(1303),g=r(y),_=n(606),b=(r(_),n(168)),E=(r(b),n(1054)),T=r(E),w=n(516),S=r(w),O=function(e){return{}},P=function(e){return{dispatch:e}},R=function(e,t,n){return f({},n,e,t)},I={value:null},A=0},function(e,t){"use strict";function n(e,t){if(e===t)return!0;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=Object.prototype.hasOwnProperty,i=0;i<n.length;i++)if(!o.call(t,n[i])||e[n[i]]!==t[n[i]])return!1;return!0}t.__esModule=!0,t["default"]=n},function(e,t,n){"use strict";function r(e){return function(t){return(0,o.bindActionCreators)(e,t)}}t.__esModule=!0,t["default"]=r;var o=n(212)},function(e,t){"use strict";function n(e){var t=/[=:]/g,n={"=":"=0",":":"=2"},r=(""+e).replace(t,function(e){return n[e]});return"$"+r}function r(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"},r="."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1);return(""+r).replace(t,function(e){return n[e]})}var o={escape:n,unescape:r};e.exports=o},function(e,t,n){"use strict";var r=n(176),o=(n(11),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},a=function(e,t,n){var r=this;if(r.instancePool.length){var o=r.instancePool.pop();return r.call(o,e,t,n),o}return new r(e,t,n)},u=function(e,t,n,r){var o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,e,t,n,r),i}return new o(e,t,n,r)},s=function(e,t,n,r,o){var i=this;if(i.instancePool.length){var a=i.instancePool.pop();return i.call(a,e,t,n,r,o),a}return new i(e,t,n,r,o)},c=function(e){var t=this;e instanceof t?void 0:r("25"),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},l=10,f=o,d=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||f,n.poolSize||(n.poolSize=l),n.release=c,n},p={addPoolingTo:d,oneArgumentPooler:o,twoArgumentPooler:i,threeArgumentPooler:a,fourArgumentPooler:u,fiveArgumentPooler:s};e.exports=p},function(e,t,n){"use strict";function r(e){return(""+e).replace(b,"$&/")}function o(e,t){this.func=e,this.context=t,this.count=0}function i(e,t,n){var r=e.func,o=e.context;r.call(o,t,e.count++)}function a(e,t,n){if(null==e)return e;var r=o.getPooled(t,n);y(e,i,r),o.release(r)}function u(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function s(e,t,n){var o=e.result,i=e.keyPrefix,a=e.func,u=e.context,s=a.call(u,t,e.count++);Array.isArray(s)?c(s,o,n,m.thatReturnsArgument):null!=s&&(v.isValidElement(s)&&(s=v.cloneAndReplaceKey(s,i+(!s.key||t&&t.key===s.key?"":r(s.key)+"/")+n)),o.push(s))}function c(e,t,n,o,i){var a="";null!=n&&(a=r(n)+"/");var c=u.getPooled(t,a,o,i);y(e,s,c),u.release(c)}function l(e,t,n){if(null==e)return e;var r=[];return c(e,r,null,t,n),r}function f(e,t,n){return null}function d(e,t){return y(e,f,null)}function p(e){var t=[];return c(e,t,null,m.thatReturnsArgument),t}var h=n(1305),v=n(175),m=n(62),y=n(1314),g=h.twoArgumentPooler,_=h.fourArgumentPooler,b=/\/+/g;o.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},h.addPoolingTo(o,g),u.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},h.addPoolingTo(u,_);var E={forEach:a,map:l,mapIntoWithKeyPrefixInternal:c,count:d,toArray:p};e.exports=E},function(e,t,n){"use strict";function r(e){return e}function o(e,t){var n=E.hasOwnProperty(t)?E[t]:null;w.hasOwnProperty(t)&&("OVERRIDE_BASE"!==n?p("73",t):void 0),e&&("DEFINE_MANY"!==n&&"DEFINE_MANY_MERGED"!==n?p("74",t):void 0)}function i(e,t){if(t){"function"==typeof t?p("75"):void 0,m.isValidElement(t)?p("76"):void 0;var n=e.prototype,r=n.__reactAutoBindPairs;t.hasOwnProperty(_)&&T.mixins(e,t.mixins);for(var i in t)if(t.hasOwnProperty(i)&&i!==_){var a=t[i],u=n.hasOwnProperty(i);if(o(u,i),T.hasOwnProperty(i))T[i](e,a);else{var l=E.hasOwnProperty(i),f="function"==typeof a,d=f&&!l&&!u&&t.autobind!==!1;if(d)r.push(i,a),n[i]=a;else if(u){var h=E[i];!l||"DEFINE_MANY_MERGED"!==h&&"DEFINE_MANY"!==h?p("77",h,i):void 0,"DEFINE_MANY_MERGED"===h?n[i]=s(n[i],a):"DEFINE_MANY"===h&&(n[i]=c(n[i],a))}else n[i]=a}}}else;}function a(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){var o=n in T;o?p("78",n):void 0;var i=n in e;i?p("79",n):void 0,e[n]=r}}}function u(e,t){e&&t&&"object"===("undefined"==typeof e?"undefined":d(e))&&"object"===("undefined"==typeof t?"undefined":d(t))?void 0:p("80");for(var n in t)t.hasOwnProperty(n)&&(void 0!==e[n]?p("81",n):void 0,e[n]=t[n]);return e}function s(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return u(o,n),u(o,r),o}}function c(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function l(e,t){var n=t.bind(e);return n}function f(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],o=t[n+1];e[r]=l(e,o)}}var d="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},p=n(176),h=n(29),v=n(397),m=n(175),y=(n(609),n(398)),g=n(197),_=(n(11),n(16),"mixins"),b=[],E={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},T={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)i(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=h({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=h({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=s(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=h({},e.propTypes,t)},statics:function(e,t){a(e,t)},autobind:function(){}},w={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e),t&&this.updater.enqueueCallback(this,t,"replaceState")},isMounted:function(){return this.updater.isMounted(this)}},S=function(){};h(S.prototype,v.prototype,w);var O={createClass:function(e){var t=r(function(e,n,r){this.__reactAutoBindPairs.length&&f(this),this.props=e,this.context=n,this.refs=g,this.updater=r||y,this.state=null;var o=this.getInitialState?this.getInitialState():null;"object"!==("undefined"==typeof o?"undefined":d(o))||Array.isArray(o)?p("82",t.displayName||"ReactCompositeComponent"):void 0,this.state=o});t.prototype=new S,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],b.forEach(i.bind(null,t)),i(t,e),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),t.prototype.render?void 0:p("83");for(var n in E)t.prototype[n]||(t.prototype[n]=null);return t},injection:{injectMixin:function(e){b.push(e)}}};e.exports=O},function(e,t,n){"use strict";var r=n(175),o=r.createFactory,i={a:o("a"),abbr:o("abbr"),address:o("address"),area:o("area"),article:o("article"),aside:o("aside"),audio:o("audio"),b:o("b"),base:o("base"),bdi:o("bdi"),bdo:o("bdo"),big:o("big"),blockquote:o("blockquote"),body:o("body"),br:o("br"),button:o("button"),canvas:o("canvas"),caption:o("caption"),cite:o("cite"),code:o("code"),col:o("col"),colgroup:o("colgroup"),data:o("data"),datalist:o("datalist"),dd:o("dd"),del:o("del"),details:o("details"),dfn:o("dfn"),dialog:o("dialog"),div:o("div"),dl:o("dl"),dt:o("dt"),em:o("em"),embed:o("embed"),fieldset:o("fieldset"),figcaption:o("figcaption"),figure:o("figure"),footer:o("footer"),form:o("form"),h1:o("h1"),h2:o("h2"),h3:o("h3"),h4:o("h4"),h5:o("h5"),h6:o("h6"),head:o("head"),header:o("header"),hgroup:o("hgroup"),hr:o("hr"),html:o("html"),i:o("i"),iframe:o("iframe"),img:o("img"),input:o("input"),ins:o("ins"),kbd:o("kbd"),keygen:o("keygen"),label:o("label"),legend:o("legend"),li:o("li"),link:o("link"),main:o("main"),map:o("map"),mark:o("mark"),menu:o("menu"),menuitem:o("menuitem"),meta:o("meta"),meter:o("meter"),nav:o("nav"),noscript:o("noscript"),object:o("object"),ol:o("ol"),optgroup:o("optgroup"),option:o("option"),output:o("output"),p:o("p"),param:o("param"),picture:o("picture"),pre:o("pre"),progress:o("progress"),q:o("q"),rp:o("rp"),rt:o("rt"),ruby:o("ruby"),s:o("s"),samp:o("samp"),script:o("script"),section:o("section"),select:o("select"),small:o("small"),source:o("source"),span:o("span"),strong:o("strong"),style:o("style"),sub:o("sub"),summary:o("summary"),sup:o("sup"),table:o("table"),tbody:o("tbody"),td:o("td"),textarea:o("textarea"),tfoot:o("tfoot"),th:o("th"),thead:o("thead"),time:o("time"),title:o("title"),tr:o("tr"),track:o("track"),u:o("u"),ul:o("ul"),"var":o("var"),video:o("video"),wbr:o("wbr"),circle:o("circle"),clipPath:o("clipPath"),defs:o("defs"),ellipse:o("ellipse"),g:o("g"),image:o("image"),line:o("line"),linearGradient:o("linearGradient"),mask:o("mask"),path:o("path"),pattern:o("pattern"),polygon:o("polygon"),polyline:o("polyline"),radialGradient:o("radialGradient"),rect:o("rect"),stop:o("stop"),svg:o("svg"),text:o("text"),tspan:o("tspan")};e.exports=i},function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function o(e){this.message=e,this.stack=""}function i(e){function t(t,n,r,i,a,u,s){i=i||R,u=u||r;if(null==n[r]){var c=w[a];return t?new o(null===n[r]?"The "+c+" `"+u+"` is marked as required "+("in `"+i+"`, but its value is `null`."):"The "+c+" `"+u+"` is marked as required in "+("`"+i+"`, but its value is `undefined`.")):null}return e(n,r,i,a,u)}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function a(e){function t(t,n,r,i,a,u){var s=t[n],c=g(s);if(c!==e){var l=w[i],f=_(s);return new o("Invalid "+l+" `"+a+"` of type "+("`"+f+"` supplied to `"+r+"`, expected ")+("`"+e+"`."))}return null}return i(t)}function u(){return i(O.thatReturns(null))}function s(e){function t(t,n,r,i,a){if("function"!=typeof e)return new o("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var u=t[n];if(!Array.isArray(u)){var s=w[i],c=g(u);return new o("Invalid "+s+" `"+a+"` of type "+("`"+c+"` supplied to `"+r+"`, expected an array."))}for(var l=0;l<u.length;l++){var f=e(u,l,r,i,a+"["+l+"]",S);if(f instanceof Error)return f}return null}return i(t)}function c(){function e(e,t,n,r,i){var a=e[t];if(!T.isValidElement(a)){var u=w[r],s=g(a);return new o("Invalid "+u+" `"+i+"` of type "+("`"+s+"` supplied to `"+n+"`, expected a single ReactElement."))}return null}return i(e)}function l(e){function t(t,n,r,i,a){if(!(t[n]instanceof e)){var u=w[i],s=e.name||R,c=b(t[n]);return new o("Invalid "+u+" `"+a+"` of type "+("`"+c+"` supplied to `"+r+"`, expected ")+("instance of `"+s+"`."))}return null}return i(t)}function f(e){function t(t,n,i,a,u){for(var s=t[n],c=0;c<e.length;c++)if(r(s,e[c]))return null;var l=w[a],f=JSON.stringify(e);return new o("Invalid "+l+" `"+u+"` of value `"+s+"` "+("supplied to `"+i+"`, expected one of "+f+"."))}return Array.isArray(e)?i(t):O.thatReturnsNull}function d(e){function t(t,n,r,i,a){if("function"!=typeof e)return new o("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var u=t[n],s=g(u);if("object"!==s){var c=w[i];return new o("Invalid "+c+" `"+a+"` of type "+("`"+s+"` supplied to `"+r+"`, expected an object."))}for(var l in u)if(u.hasOwnProperty(l)){var f=e(u,l,r,i,a+"."+l,S);if(f instanceof Error)return f}return null}return i(t)}function p(e){function t(t,n,r,i,a){for(var u=0;u<e.length;u++){var s=e[u];if(null==s(t,n,r,i,a,S))return null}var c=w[i];return new o("Invalid "+c+" `"+a+"` supplied to "+("`"+r+"`."))}return Array.isArray(e)?i(t):O.thatReturnsNull}function h(){function e(e,t,n,r,i){if(!m(e[t])){var a=w[r];return new o("Invalid "+a+" `"+i+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return null}return i(e)}function v(e){function t(t,n,r,i,a){var u=t[n],s=g(u);if("object"!==s){var c=w[i];return new o("Invalid "+c+" `"+a+"` of type `"+s+"` "+("supplied to `"+r+"`, expected `object`."))}for(var l in e){var f=e[l];if(f){var d=f(u,l,r,i,a+"."+l,S);if(d)return d}}return null}return i(t)}function m(e){switch("undefined"==typeof e?"undefined":E(e)){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(m);if(null===e||T.isValidElement(e))return!0;var t=P(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!m(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!m(o[1]))return!1}return!0;default:return!1}}function y(e,t){return"symbol"===e||("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}function g(e){var t="undefined"==typeof e?"undefined":E(e);return Array.isArray(e)?"array":e instanceof RegExp?"object":y(t,e)?"symbol":t}function _(e){var t=g(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function b(e){return e.constructor&&e.constructor.name?e.constructor.name:R}var E="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},T=n(175),w=n(609),S=n(1310),O=n(62),P=n(611),R=(n(16),"<<anonymous>>"),I={array:a("array"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:u(),arrayOf:s,element:c(),instanceOf:l,node:h(),objectOf:d,oneOf:f,oneOfType:p,shape:v};o.prototype=Error.prototype,e.exports=I},function(e,t){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=n},function(e,t,n){"use strict";function r(e,t,n){this.props=e,this.context=t,this.refs=s,this.updater=n||u}function o(){}var i=n(29),a=n(397),u=n(398),s=n(197);o.prototype=a.prototype,r.prototype=new o,r.prototype.constructor=r,i(r.prototype,a.prototype),r.prototype.isPureReactComponent=!0,e.exports=r},function(e,t){"use strict";e.exports="15.4.0"},function(e,t,n){"use strict";function r(e){return i.isValidElement(e)?void 0:o("143"),e}var o=n(176),i=n(175);n(11);e.exports=r},function(e,t,n){"use strict";function r(e,t){return e&&"object"===("undefined"==typeof e?"undefined":a(e))&&null!=e.key?l.escape(e.key):t.toString(36)}function o(e,t,n,i){var p="undefined"==typeof e?"undefined":a(e);if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===s)return n(i,e,""===t?f+r(e,0):t),1;var h,v,m=0,y=""===t?f:t+d;if(Array.isArray(e))for(var g=0;g<e.length;g++)h=e[g],v=y+r(h,g),m+=o(h,v,n,i);else{var _=c(e);if(_){var b,E=_.call(e);if(_!==e.entries)for(var T=0;!(b=E.next()).done;)h=b.value,v=y+r(h,T++),m+=o(h,v,n,i);else for(;!(b=E.next()).done;){var w=b.value;w&&(h=w[1],v=y+l.escape(w[0])+d+r(h,0),m+=o(h,v,n,i))}}else if("object"===p){var S="",O=String(e);u("31","[object Object]"===O?"object with keys {"+Object.keys(e).join(", ")+"}":O,S)}}return m}function i(e,t,n){return null==e?0:o(e,"",t,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(176),s=(n(101),n(608)),c=n(611),l=(n(11),n(1304)),f=(n(16),"."),d=":";e.exports=i},function(e,t,n){e.exports=n(141)},function(e,t,n){"use strict";function r(e){return this instanceof r?void o.call(this,e):new r(e)}e.exports=r;var o=n(613),i=n(195);i.inherits=n(160),i.inherits(r,o),r.prototype._transform=function(e,t,n){n(null,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,n){e.copy(t,n)}var i=n(401).Buffer;e.exports=function(){function e(){r(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return i.alloc(0);if(1===this.length)return this.head.data;for(var t=i.allocUnsafe(e>>>0),n=this.head,r=0;n;)o(n.data,t,r),r+=n.data.length,n=n.next;return t},e}()},function(e,t,n){e.exports=n(400).PassThrough},function(e,t,n){e.exports=n(400).Transform},function(e,t,n){e.exports=n(399)},function(e,t){e.exports=function(e,t,n){for(var r=0,o=e.length,i=3==arguments.length?n:e[r++];r<o;)i=t.call(null,i,e[r],++r,e);return i}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(n,r,o){var a=e(n,r,o),s=a.dispatch,c=[],l={getState:a.getState,dispatch:function(e){return s(e)}};return c=t.map(function(e){return e(l)}),s=u["default"].apply(void 0,c)(a.dispatch),i({},a,{dispatch:s})}}}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t["default"]=o;var a=n(616),u=r(a)},function(e,t){"use strict";function n(e,t){return function(){return t(e.apply(void 0,arguments))}}function r(e,t){if("function"==typeof e)return n(e,t);if("object"!==("undefined"==typeof e?"undefined":o(e))||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":"undefined"==typeof e?"undefined":o(e))+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var r=Object.keys(e),i={},a=0;a<r.length;a++){var u=r[a],s=e[u];"function"==typeof s&&(i[u]=n(s,t))}return i}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};t.__esModule=!0,t["default"]=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n=t&&t.type,r=n&&'"'+n.toString()+'"'||"an action";return"Given action "+r+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state.'}function i(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:u.ActionTypes.INIT});if("undefined"==typeof r)throw new Error('Reducer "'+t+'" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined.');
var o="@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".");if("undefined"==typeof n(void 0,{type:o}))throw new Error('Reducer "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle "+u.ActionTypes.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined.")})}function a(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var a=t[r];"function"==typeof e[a]&&(n[a]=e[a])}var u,s=Object.keys(n);try{i(n)}catch(c){u=c}return function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=arguments[1];if(u)throw u;for(var r=!1,i={},a=0;a<s.length;a++){var c=s[a],l=n[c],f=e[c],d=l(f,t);if("undefined"==typeof d){var p=o(c,t);throw new Error(p)}i[c]=d,r=r||d!==f}return r?i:e}}t.__esModule=!0,t["default"]=a;var u=n(617),s=n(168),c=(r(s),n(618));r(c)},function(e,t){var n=t.decimalAdjust=function(e,t,n){return"undefined"==typeof n||0===+n?Math[e](t):(t=+t,n=+n,isNaN(t)||"number"!=typeof n||n%1!==0?NaN:(t=t.toString().split("e"),t=Math[e](+(t[0]+"e"+(t[1]?+t[1]-n:-n))),t=t.toString().split("e"),+(t[0]+"e"+(t[1]?+t[1]+n:n))))};e.exports={round10:function(e,t){return n("round",e,t)},floor10:function(e,t){return n("floor",e,t)},ceil10:function(e,t){return n("ceil",e,t)}},e.exports.polyfill=function(){Math.round10||(Math.round10=e.exports.round10),Math.floor10||(Math.floor10=e.exports.floor10),Math.ceil10||(Math.ceil10=e.exports.ceil10)}},function(e,t,n){function r(){o.call(this)}e.exports=r;var o=n(341).EventEmitter,i=n(160);i(r,o),r.Readable=n(400),r.Writable=n(1320),r.Duplex=n(1315),r.Transform=n(1319),r.PassThrough=n(1318),r.Stream=r,r.prototype.pipe=function(e,t){function n(t){e.writable&&!1===e.write(t)&&c.pause&&c.pause()}function r(){c.readable&&c.resume&&c.resume()}function i(){l||(l=!0,e.end())}function a(){l||(l=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(s(),0===o.listenerCount(this,"error"))throw e}function s(){c.removeListener("data",n),e.removeListener("drain",r),c.removeListener("end",i),c.removeListener("close",a),c.removeListener("error",u),e.removeListener("error",u),c.removeListener("end",s),c.removeListener("close",s),e.removeListener("close",s)}var c=this;c.on("data",n),e.on("drain",r),e._isStdio||t&&t.end===!1||(c.on("end",i),c.on("close",a));var l=!1;return c.on("error",u),e.on("error",u),c.on("end",s),c.on("close",s),e.on("close",s),e.emit("pipe",c),e}},function(e,t,n){var r=n(620);t.clearTimeout=function(){return this._timeout=0,clearTimeout(this._timer),this},t.parse=function(e){return this._parser=e,this},t.timeout=function(e){return this._timeout=e,this},t.then=function(e,t){return this.end(function(n,r){n?t(n):e(r)})},t.use=function(e){return e(this),this},t.get=function(e){return this._header[e.toLowerCase()]},t.getHeader=t.get,t.set=function(e,t){if(r(e)){for(var n in e)this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},t.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},t.field=function(e,t){return this._getFormData().append(e,t),this}},function(e,t){function n(e,t,n){return"function"==typeof n?new e("GET",t).end(n):2==arguments.length?new e("GET",t):new e(t,n)}e.exports=n},function(e,t,n){"use strict";(function(t){e.exports=n(1330)(t||window||this)}).call(t,n(36))},function(e,t){"use strict";e.exports=function(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}},function(e,t){"use strict";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={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"===("undefined"==typeof e?"undefined":n(e))&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,n){(function(t){function n(e,t){function n(){if(!o){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),o=!0}return e.apply(this,arguments)}if(r("noDeprecation"))return e;var o=!1;return n}function r(e){try{if(!t.localStorage)return!1}catch(n){return!1}var r=t.localStorage[e];return null!=r&&"true"===String(r).toLowerCase()}e.exports=n}).call(t,n(36))},function(e,t,n){"use strict";t.a={request:"request",response:"response",error:"error",result:"result"}},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=n(271),u="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},s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function(){return(16*Math.random()).toFixed()},f=function(){function e(t,n){i(this,e);for(var r=this.constructor,o=r.API_ALIASES,a=r.PROPERTIES,u=r.DERIVED_PROPERTIES,s=Object.keys(t),c=0;c<s.length;c++){var l=s[c];if(!u[l]){var f=o[l];f||(f=l);var d=a[f];d&&(this[f]=d(t[l]))}}for(var p in a)void 0===this[p]&&(this[p]=a[p]());for(var h=Object.keys(u),v=0;v<h.length;v++){var m=h[v],y=u[m],g=a[m];y&&g&&(this[m]=g(y(t)))}this.uuid=this.makeUUID(t),this.paginationId=this.makePaginationId(t),this.type=this.getType(t,this.uuid),n||Object.freeze(this)}return c(e,null,[{key:"fromJSON",value:function(e){return new this(e)}},{key:"Mock",value:function(){var e=this,t=Object.keys(this.PROPERTIES).reduce(function(t,n){return s({},t,o({},n,e.MOCKS[n]?e.MOCKS[n]():null))},{});return new this(t)}}]),c(e,[{key:"_diff",value:function(e,t){return"object"===("undefined"==typeof e?"undefined":u(e))?e:o({},e,t)}},{key:"set",value:function(e,t){return new this.constructor(s({},this.toJSON(),this._diff(e,t)))}},{key:"stub",value:function t(e,n,r){r||(r=n);var o=s({},this.toJSON(),this._diff(e,n)),t=new this.constructor(o,(!0));return t.promise=r,Object.freeze(t),t}},{key:"makeUUID",value:function(e){return e.uuid?e.uuid:e.id?e.id:(console.warn("generating fake uuid"),l())}},{key:"makePaginationId",value:function(e){return this.uuid||this.makeUUID(e)}},{key:"getType",value:function(){return this.constructor.type}},{key:"toRecord",value:function(){return new a.a(this.type,this.uuid,this.paginationId)}},{key:"toJSON",value:function(){var e=this,t={};return Object.keys(this).forEach(function(n){e.constructor.PROPERTIES[n]&&(t[n]=e[n])}),t.uuid=this.uuid,t.type=this.type,t}}]),e}();f.Types={string:function(e){return e?String(e):""},number:function(e){return void 0===e?0:Number(e)},array:function(e){return Array.isArray(e)?e:[]},arrayOf:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.Types.nop;return function(t){return f.Types.array(t).map(e)}},shape:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.Types.nop;return function(t){return Object.keys(t).reduce(function(n,r){return e[r]&&(n[r]=e[r](t[r])),n},{})}},bool:function(e){return Boolean(e)},likes:function(e){switch(e){case!0:return 1;case!1:return-1;case null:return 0;default:return e}},nop:function(e){return e}},f.MockTypes={string:function(){return Math.random().toString(36).substring(Math.floor(10*Math.random())+5)},number:function(){return Math.floor(100*Math.random())},array:function(){return Array.apply(void 0,r(Array(Math.floor(10*Math.random()))))},bool:function(){return Math.floor(10*Math.random())<5},likes:function(){return Math.round(2*Math.random()+-1)},nop:function(){return null}},f.API_ALIASES={},f.PROPERTIES={},f.MOCKS={},f.DERIVED_PROPERTIES={},t.a=f},function(e,t,n){"use strict";var r=n(142),o=n.n(r),i=n(622);t.a=function(e,t){var r=e.accessToken,a=e.apiUrl,u=e.loid,s=e.sessionTracker,c=e.contextKey,l={Authorization:"Bearer "+r};u&&(l["X-Reddit-Loid"]=u),s&&(l["X-Reddit-Session"]=s);var f=o.a.post(a);return f.set(l),f.type("json"),f.send(t),new Promise(function(e,t){f.end(function(r,o){o&&o.headers&&n.i(i.a)(c,o.headers),r?(429!==o.status&&console.log(JSON.stringify({loid:u,status:o.status,text:o.text})),t(r)):e(o)})})}},function(e,t,n){"use strict";var r=n(41),o=n(632),i=n(143),a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(e){return e.loggedOut?"api/me.json":"me"===e.user?"api/v1/me":"user/"+e.user+"/about.json"},s=function(e){var t=e.response.body;if(t){var n=a({name:"me",loid:t.loid,loid_created:t.loid_created},t.data||t);e.addResult(o.a.fromJSON(n));var r=t.data?t.data.subreddit:void 0;r&&e.addResult(i.a.fromJSON(r))}return e};t.a={get:function(e,t){var o=u(t);return n.i(r.a)(e,"GET",o,{query:t}).then(s)}}},function(e,t,n){"use strict";var r=n(85),o=n(102),i=n(38),a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u={t1:o.a,t3:i.a},s=function(e){return"user/"+e.user+"/"+e.activity+".json"},c=function(e){return a({},e,{feature:"link_preview",sr_detail:"true"})},l=function(e,t){var n=e.body;if(n){var r=n.data.children;r.forEach(function(e){var n=u[e.kind];t.addResult(n.fromJSON(e.data))})}};t.a={get:function(e,t){var o=s(t),i=c(t);return n.i(r.b)(e,"get",o,i,t,l)}}},function(e,t,n){"use strict";var r=n(138),o=n.n(r),i=n(41),a=n(38),u=function(e){var t=o()(e,"response.body.data.children");return(t||[]).map(function(e){return new a.a(e.data)})};t.a={get:function(e){var t="/api/comments_page_ads.json",r={raw_json:1};return n.i(i.a)(e,"POST",t,r).then(function(e){return u(e)})}}},function(e,t,n){"use strict";var r=n(1335),o=n(1725),i=n.n(o);t.a={get:function(e){return n.i(r.a)(e,i.a)}}},function(e,t,n){"use strict";var r=n(112),o=n.n(r),i=n(41),a=n(65),u=n(102),s=n(38),c=n(1362),l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f={t1:u.a,t3:s.a,t4:c.a},d=function(e){var t=e.response.body;t.data.children.forEach(function(t){var n=[];t.data.replies&&t.data.replies.data.children.forEach(function(t){e.addModel(f[t.kind].fromJSON(t.data)),n.push(t.kind+"_"+t.data.id)}),t.data.replies=n,e.addResult(f[t.kind].fromJSON(t.data))});var n=t.data,r=n.before,o=n.after;return e.meta={before:r,after:o},e},p=function(e){var t=e.response.body;if(o()(t,"json.errors")&&t.json.errors.length){var n=e.request.url.indexOf("compose")!==-1?"compose":"reply";throw new a.a("Message "+n,t.json.errors,t.status)}if(o()(t,"json.data.things.0.data")){var r=t.json.data.things[0],i=f[r.kind].fromJSON(r.data);return i}return null},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.subreddit,n=e.type,r=e.thread,o=t?"r/"+t+"/":"",i=r?"/"+r:"";return o+"message/"+n+i+".json"},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.thingId;return t?"api/comment":"api/compose"},m=function(e){var t={api_type:"json",raw_json:1,text:e.body};return e.thingId&&(t.thing_id=e.thingId),e.to&&(t.to=e.to),e.subreddit&&(t.from_sr=e.subreddit),e.subject&&(t.subject=e.subject),t};t.a={get:function(e,t){var r=h(t),o=l({},t.query,{raw_json:1});return n.i(i.a)(e,"GET",r,{query:o}).then(d)},post:function(e,t){var r=v(t),o=m(t);return n.i(i.a)(e,"POST",r,{body:o,type:"form"}).then(p)}}},function(e,t,n){"use strict";var r=n(41),o=n(1363),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(e){var t=e.response.body;if(t.data){var n=o.a.fromJSON(t.data);e.addResult(n)}return e},u=function(e,t){return n.i(r.a)(e,"GET","api/multi/user/"+t.multiUser+"/m/"+t.multi,{query:i({},t,{raw_json:1})}).then(a)};t.a={get:u}},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(85),i=n(295),a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=this,s="/api/v1/me/prefs";t.a={get:function(){var e=r(regeneratorRuntime.mark(function t(e){var r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.i(o.b)(e,"get",s,{},{});case 2:return r=t.sent,t.abrupt("return",i.a.fromJSON(r||{}));case 4:case"end":return t.stop()}},t,u)}));return function(t){return e.apply(this,arguments)}}(),patch:function(){var e=r(regeneratorRuntime.mark(function t(e,r){var c,l;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return c=a({},r,{api_type:"json"}),t.next=3,n.i(o.c)(e,"patch",s,c);case 3:return l=t.sent,t.abrupt("return",i.a.fromJSON(l||{}));case 5:case"end":return t.stop()}},t,u)}));return function(t,n){return e.apply(this,arguments)}}()}},function(e,t,n){"use strict";var r=n(41);t.a={postOptIn:function(e,t){var o={sr_name:t,api_type:"json"};return n.i(r.a)(e,"POST","api/quarantine_optin",{body:o,type:"form"})},postOptOut:function(e,t){var o={sr_name:t,api_type:"json"};return n.i(r.a)(e,"POST","api/quarantine_optout",{body:o,type:"form"})}}},function(e,t,n){"use strict";var r=n(58),o=n.n(r),i=n(41),a=n(143),u=function(e){var t=e.response.body;return t.data&&Array.isArray(t.data.children)?t.data.children.forEach(function(t){return e.addResult(a.a.fromJSON(t.data))}):o()(t)||e.addResult(a.a.fromJSON(t.data||t)),e},s=function(e,t){return n.i(i.a)(e,"GET","api/similar_subreddits.json",{query:t}).then(u)};t.a={get:s}},function(e,t,n){"use strict";var r=n(85),o=n(38),i=n(143),a=n(20),u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(e){var t="";return e.subreddit&&(t="r/"+e.subreddit+"/"),t+"search.json"},c=function(e){return e.subreddit&&(e.restrict_sr="on",delete e.subreddit),e.sr_detail="true",e},l=function(e){var t=e.body;return t?Array.isArray(t)?t:[t]:[]},f=function(e,t){var n=l(e);n.forEach(function(e){e.data.children.length&&(e.data.children[0].kind===a.n?(e.data.children.forEach(function(e){t.addResult(o.a.fromJSON(e.data))}),t.meta.after=e.data.after,t.meta.before=e.data.before):e.data.children.forEach(function(e){t.addResult(i.a.fromJSON(e.data))}))})};t.a={get:function(e,t){var o=s(t),i=c(u({},t));return n.i(r.b)(e,"get",o,i,t,f)}}},function(e,t,n){"use strict";var r=n(58),o=n.n(r),i=n(41),a=n(38),u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(e){var t=e.response.body;return t.data&&Array.isArray(t.data.children)?t.data.children.forEach(function(t){return e.addResult(a.a.fromJSON(t.data))}):o()(t)||e.addResult(a.a.fromJSON(t.data||t)),e},c=function(e,t){return n.i(i.a)(e,"GET","api/similar_links.json",{query:u({},t,{raw_json:1})}).then(s)};t.a={get:c}},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(41),i=n(274);t.a={get:function(e){var t=this;return r(regeneratorRuntime.mark(function a(){var r,u,s,c;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r="api/sitewide_rules.json",u={raw_json:1},t.next=4,n.i(o.a)(e,"GET",r,{query:u});case 4:return s=t.sent,c=s.response.body.sitewide_rules,c&&c.forEach(function(e){s.addResult(i.a.fromJSON(e))}),t.abrupt("return",s);case 8:case"end":return t.stop()}},a,t)}))()}}},function(e,t,n){"use strict";var r=n(85),o="/api/search_reddit_names.json";t.a={get:function(e,t,i){var a={query:t,include_over_18:i};return n.i(r.e)(e,"post",o,a)}}},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(41),i=n(275),a="api/add_subreddit_rule",u="api/remove_subreddit_rule",s="api/update_subreddit_rule";t.a={get:function(e,t){var a=this;return r(regeneratorRuntime.mark(function u(){var r,s,c,l;return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return r="r/"+t+"/about/rules.json",s={raw_json:1},a.next=4,n.i(o.a)(e,"GET",r,{query:s});case 4:return c=a.sent,l=c.response.body.rules,l&&l.forEach(function(e){e.subredditName=t,c.addResult(i.a.fromJSON(e))}),a.abrupt("return",c);case 8:case"end":return a.stop()}},u,a)}))()},post:function(e,t,i){var u=this;return r(regeneratorRuntime.mark(function s(){var r,c;return regeneratorRuntime.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return r=a,c={api_type:"json",raw_json:1,r:t,description:i.description,kind:i.kind,short_name:i.shortName},i.violationReason&&(c.violation_reason=i.violation_reason),u.abrupt("return",n.i(o.a)(e,"POST",r,{body:c,type:"form"}));case 4:case"end":return u.stop()}},s,u)}))()},put:function(e,t,i,a){var u=this;return r(regeneratorRuntime.mark(function c(){var r,l;return regeneratorRuntime.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return r=s,l={api_type:"json",raw_json:1,r:t,old_short_name:i,description:a.description,kind:a.kind,short_name:a.shortName},a.violationReason&&a.violationReason!==i&&(a.violation_reason=a.violationReason),u.abrupt("return",n.i(o.a)(e,"POST",r,{body:l,type:"form"}));case 4:case"end":return u.stop()}},c,u)}))()},del:function(e,t,i){var a=this;return r(regeneratorRuntime.mark(function s(){var r,c;return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return r=u,c={api_type:"json",raw_json:1,r:t,short_name:i},a.abrupt("return",n.i(o.a)(e,"POST",r,{body:c,type:"form"}));case 3:case"end":return a.stop()}},s,a)}))()}}},function(e,t,n){"use strict";var r=n(58),o=n.n(r),i=n(41),a=n(143),u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(e){var t=e.response.body;return t.data&&Array.isArray(t.data.children)?t.data.children.forEach(function(t){return e.addResult(a.a.fromJSON(t.data))}):o()(t)||e.addResult(a.a.fromJSON(t.data||t)),e},c=function(e,t){return n.i(i.a)(e,"GET","api/subreddits_by_link.json",{query:u({},t,{raw_json:1})}).then(s)};t.a={get:c}},function(e,t,n){"use strict";var r=n(58),o=n.n(r),i=n(41),a=n(38),u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(e){var t=e.response.body;return t.data&&Array.isArray(t.data.children)?t.data.children.forEach(function(t){return e.addResult(a.a.fromJSON(t.data))}):o()(t)||e.addResult(a.a.fromJSON(t.data||t)),e},c=function(e,t){return n.i(i.a)(e,"GET","api/subreddits_to_links_by_link.json",{query:u({},t,{raw_json:1})}).then(s)};t.a={get:c}},function(e,t,n){"use strict";var r=n(85),o="api/subscribe",i=function(e){return!!e.subreddit},a=function(e,t){n.i(r.d)(t,"post","subscriptions",i);var a={sr:t.subreddit,action:"sub",api_type:"json"};return n.i(r.b)(e,"post",o,a,t)},u=function(e,t){n.i(r.d)(t,"del","subscriptions",i);var a={sr:t.subreddit,action:"unsub",api_type:"json"};return n.i(r.b)(e,"post",o,a,t)};t.a={post:a,del:u}},function(e,t,n){"use strict";function r(e){return"api/v1/verify_email/"+e+".json"}function o(e){var t=e.response.body;return t}var i=n(41),a=n(631);t.a={post:function(e,t){var u=r(t);return e.origin=a.d,e.token=null,n.i(i.a)(e,"POST",u).then(o)["catch"](o)}}},function(e,t,n){"use strict";var r=n(85),o="api/vote",i=function(e){return!!e.thingId&&"number"==typeof e.direction},a=function(e,t){n.i(r.d)(t,"post","votes",i);var a={id:t.thingId,dir:t.direction,api_type:"json"};return n.i(r.e)(e,"post",o,a)},u=function(e,t){n.i(r.d)(t,"del","votes",i);var a={id:t.thingId,dir:0,api_type:"json"};return n.i(r.e)(e,"post",o,a)};t.a={post:a,del:u}},function(e,t,n){"use strict";var r=n(85),o=n(1364),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(e){var t=e.subredditName,n=e.path;return n||(n="index"),n=n.endsWith("/")?n.slice(0,-1):n,t?"r/"+t+"/wiki/"+n:"wiki/"+n},u=function(e){return function(t,n){var r=t.body;if(r){var a=i({path:e},r.data||r);n.addResult(o.a.fromJSON(a))}}};t.a={get:function(e,t){var o=a(t),i=o+".json";return n.i(r.b)(e,"get",i,{},t,u(o))}}},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")}var i=n(98),a=n.n(i),u=n(621),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function(e){return e},f=function(){function e(t){o(this,e),this.apiResponse=t,this.nextResponse=this.nextResponse.bind(this),this.prevResponse=this.prevResponse.bind(this)}return c(e,null,[{key:"baseOptions",value:function(){return{}}},{key:"getResponse",value:function(){function e(e){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function n(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.endpoint.get(e,s({},this.baseOptions(),r));case 2:return t=n.sent,n.abrupt("return",t);case 4:case"end":return n.stop()}},n,this)}));return e}()},{key:"fetch",value:function(){function e(e){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.t0=this,n.next=3,this.getResponse(e,t);case 3:return n.t1=n.sent,n.abrupt("return",new n.t0(n.t1));case 5:case"end":return n.stop()}},n,this)}));return e}()}]),c(e,[{key:"afterId",value:function(e){return n.i(u.a)(e)}},{key:"hasNextPage",value:function(){return!!this.afterId}},{key:"prevId",value:function(e){return n.i(u.b)(e)}},{key:"hasPreviousPage",value:function(){return!!this.prevId}},{key:"nextResponse",value:function(){function e(e){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function n(e){var t,r;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(t=this.afterId(this.apiResponse)){n.next=3;break}return n.abrupt("return");case 3:return r=a()(s({},this.apiResponse.query,{after:t}),"before"),n.next=6,this.constructor.getResponse(e,r);case 6:return n.abrupt("return",n.sent);case 7:case"end":return n.stop()}},n,this)}));return e}()},{key:"prevResponse",value:function(){function e(e){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function n(e){var t,r;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(t=this.prevId(this.apiResponse)){n.next=3;break}return n.abrupt("return");case 3:return r=a()(s({},this.apiResponse.query,{before:t}),"after"),n.next=6,this.constructor.getResponse(e,r);case 6:return n.abrupt("return",n.sent);case 7:case"end":return n.stop()}},n,this)}));return e}()},{key:"fetchAndMakeInstance",value:function(){function e(e,n,r){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function n(e,t,r){var o;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e(t);case 2:if(o=n.sent,!o){n.next=5;break}return n.abrupt("return",new this.constructor(r(o)));case 5:case"end":return n.stop()}},n,this)}));return e}()},{key:"nextPage",value:function(){function e(e){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function n(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.fetchAndMakeInstance(this.nextResponse,e,l));case 1:case"end":return t.stop()}},n,this)}));return e}()},{key:"withNextPage",value:function(){function e(e){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function n(e){var t,r;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return t=this.nextResponse,r=this.apiResponse,n.abrupt("return",this.fetchAndMakeInstance(t,e,r.appendResponse));case 2:case"end":return n.stop()}},n,this)}));return e}()},{key:"prevPage",value:function(){function e(e){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function n(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.fetchAndMakeInstance(this.prevResponse,e,l));case 1:case"end":return t.stop()}},n,this)}));return e}()},{key:"withPrevPage",value:function(){function e(e){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function n(e){var t=this;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this.fetchAndMakeInstance(this.prevResponse,e,function(e){return e.appendResponse(t.apiResponse)}));case 1:case"end":return n.stop()}},n,this)}));return e}()}]),e}();f.endpoint={get:function(){}},t.a=f},function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t={};e.forEach(function(e){var n=e.data;t[n.name]=n});var n=[];return e.forEach(function(e){var r=e.data,o=t[r.parent_id];return o?(o.replies||(o.replies={data:{children:[]}}),void o.replies.data.children.push(e)):void n.push(e)}),n}function o(e){return"more"===e.kind?"_"===e.data.id?i.c:i.b:"t1"===e.kind?i.a:void 0}var i=n(20),a=n(102),u=n(1361),s=n(1360);t.b=r,n.d(t,"a",function(){return c});var c=function(e,t){var n=function r(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t.forEach(function(t){var c=t.data?t.data:t;c.depth=n;var l=o(t);switch(l){case i.a:c.replies=c.replies?c.replies.data.children:[];var f=a.a.fromJSON(c);e.addResult(f),r(c.replies,n+1);break;case i.b:var d=u.a.fromJSON(c);e.addResult(d);break;case i.c:var p=s.a.fromJSON(c);e.addResult(p)}})};return n(t)}},function(e,t,n){"use strict";function r(e){return o.test(e)}t.a=r;var o=new RegExp("^t\\d_[0-9a-z]+","i")},function(e,t,n){"use strict";function r(e){if(e)return e.replace(/^https?:\/\/(?:np\.)?(?:www\.)?reddit\.com\//,"/")}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(66),u=n(271),s=n(20),c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=a.a.Types,f=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),c(t,[{key:"makeUUID",value:function(){return this.parentId+"-"+s.c}},{key:"toRecord",value:function(){return new u.b(this.type,this.uuid,this.paginationId,this.depth)}}]),t}(a.a);f.type=s.c,f.PROPERTIES={parentId:l.string,id:l.string,depth:l.number},f.API_ALIASES={parent_id:"parentId"},t.a=f},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(271),s=n(20),c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=a.a.Types,f=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),c(t,[{key:"makeUUID",value:function(){return this.parentId+"-"+s.b}},{key:"toRecord",value:function(){return new u.b(this.type,this.uuid,this.paginationId,this.depth)}}]),t}(a.a);f.type=s.b,f.PROPERTIES={parentId:l.string,children:l.arrayOf(l.string),count:l.number,depth:l.number},f.API_ALIASES={parent_id:"parentId"},t.a=f},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=a.a.Types,s=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),t}(a.a);s.PROPERTIES={id:u.string,author:u.string,name:u.string,bodyHTML:u.string,isComment:u.bool,firstMessage:u.string,firstMessageName:u.string,createdUTC:u.number,subreddit:u.string,parentId:u.string,replies:u.arrayOf(u.string),distinguished:u.string,subject:u.string,cleanPermalink:u.link},s.API_ALIASES={was_comment:"isComment",first_message:"firstMessage",first_message_name:"firstMessageName",created_utc:"createdUTC",body_html:"bodyHTML",parent_id:"parentId"},s.DERIVED_PROPERTIES={cleanPermalink:function(e){
var t=e.id;return t?"/message/messages/"+t:null}},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(66),u=n(20),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=a.a.Types,l=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),s(t,[{key:"makeUUID",value:function(e){return e.path}}]),t}(a.a);l.type=u.k,l.PROPERTIES={descriptionHTML:c.string,displayName:c.string,over18:c.bool,name:c.string,owner:c.string,url:c.string,icon:c.string,subredditCount:c.number},l.API_ALIASES={description_html:"descriptionHTML",display_name:"displayName",name:"name",path:"url",owner:"owner",over_18:"over18",icon_url:"icon"},l.DERIVED_PROPERTIES={subredditCount:function(e){var t=e.subreddits;return t?t.length:null}},t.a=l},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=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=a.a.Types,l=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),s(t,[{key:"makeUUID",value:function(e){return e.path}}]),t}(a.a);l.type=u.j,l.PROPERTIES={contentHTML:c.string,contentMD:c.string,path:c.string,mayRevise:c.bool,revisionBy:c.nop,revisionDate:c.number},l.API_ALIASES={content_html:"contentHTML",content_md:"contentMD",may_revise:"mayRevise",revision_by:"revisionBy",revision_date:"revisionDate"},t.a=l},function(e,t,n){"use strict";t.a=function(e,t){Object.keys(t).map(function(n){e.prototype[n]=t[n]});var n=e.constructor;e.constructor=function(){var e=this;Object.keys(t).map(function(t){e[t]=e[t].bind(e)}),n.apply(void 0,arguments)}}},function(e,t,n){"use strict";function r(){return'<h1>This is a header or something</h1><sup><sup>TM</sup></sup><a href="https://www.reddit.com/r/reactjs">reactjs subreddit</a>'}t.a=r},function(e,t,n){"use strict";function r(){var e=Math.toFixed(10*Math.random());return e<=3?"https://www.reddit.com/r/theonion":e<=6?"https://www.reddit.com/r/nothteonion":"https://www.theonion.com"}t.a=r},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r="SET_API_REQUEST_HEADERS"},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(7),i=n(10),a=n(55),u=n(143);n.d(t,"a",function(){return f});var s=this,c=function(e,t){t(o.e(i.a.GET,"/r/"+e,{}))},l=function(e,t){return!!t.subreddits[e]},f=function(e){return function(){var t=r(regeneratorRuntime.mark(function n(t,r,f){var d,p,h,v=f.waitForAction;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(d=u.a.cleanName(e),!l(d,r())){n.next=4;break}return c(d,t),n.abrupt("return");case 4:return t(a.a(d)),n.next=7,v(function(e){return e.type===a.b&&e.name===d});case 7:if(!l(d,r())){n.next=10;break}return c(d,t),n.abrupt("return");case 10:p=e,p.indexOf("/")!==-1&&(p=p.location.split("/")[1]),h={q:p},t(o.e(i.a.GET,"/search",{queryParams:h}));case 14:case"end":return n.stop()}},n,s)}));return function(e,n,r){return t.apply(this,arguments)}}()}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r="CONTEXT__SET_KEY"},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r="SET_EXPERIMENT_OVERRIDES"},function(e,t,n){"use strict";n(1339),n(22);n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var r="EXPERIMENTS__REQUESTED",o="EXPERIMENTS__REQUEST_LOADED"},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var r="GRAPHQL__FORCED_ON",o="GRAPHQL__FORCED_OFF"},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r="SET_META"},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r="SET_RECENT_SUBREDDITS"},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(86),i=n(145);n.d(t,"a",function(){return u});var a=this,u=function(){return function(){var e=r(regeneratorRuntime.mark(function t(e,n){var r,u;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=n(),u=!r.session.accessToken||r.session.unsafeLoggedOut,t.next=4,e(o.a({name:"me",loggedOut:u}));case 4:return t.next=6,e(i.a());case 6:case"end":return t.stop()}},t,a)}));return function(t,n){return e.apply(this,arguments)}}()}},function(e,t,n){"use strict";function r(e){var t=e.post,r=t.outboundLink,o=t.callToAction,i=t.domain,d=t.cleanUrl,p=t.promoted,h=t.thumbnail,v=n.i(s.a)(n.i(c.a)(d)),m=e.showLinksInNewTab?"_blank":null,y=n.i(l.a)("adLinkBar",{__compactView:e.displayCompact,__compactNoImg:!h&&e.displayCompact});return f("div",{className:y},void 0,f(u.a,{href:v,target:m,promoted:p,outboundLink:r},void 0,i),o&&f(a.a,{href:v,target:m,promoted:p,outboundLink:r,callToAction:o}))}var o=n(1624),i=(n.n(o),n(0)),a=(n.n(i),n(1381)),u=n(280),s=n(219),c=n(220),l=n(30);t.a=r;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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}()},function(e,t,n){"use strict";function r(){return u("div",{id:i.o,className:s,style:{height:1,width:1,position:"absolute",left:"-1000%"}})}var o=n(0),i=(n.n(o),n(5)),a=n(17);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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=a.a.adblockTestClassName},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(177)),u=n(1390),s=n(1439),c=n(1440),l=n(1429),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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),d=f(u.a,{}),p=f(s.a,{}),h=f(c.a,{}),v=function(e){var t=e.pageData.urlParams.subredditName,n=e.overlay;switch(n){case a.c:return d;case a.j:return p;case a.b:return h;case a.a:return f(l.a,{subredditName:t});default:return null}},m=n.i(i.createSelector)(function(e){return e.platform.currentPage},function(e){return e.overlay},function(e,t){return{pageData:e,overlay:t}});t.a=n.i(o.connect)(m)(v)},function(e,t,n){"use strict";var r=n(0),o=(n.n(r),n(30)),i=n(1626),a=(n.n(i),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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}()),u=function(e){var t=e.children,r=e.large;return a("div",{className:n.i(o.a)("BadgedIcon",{large:r})},void 0,t)};t.a=u},function(e,t,n){"use strict";function r(e){var t=e.href,n=e.target,r=e.promoted,o=e.outboundLink,i=e.callToAction;return u(a.a,{className:"callToAction",target:n,href:t,outboundLink:o,promoted:r},void 0,i)}var o=n(1628),i=(n.n(o),n(0)),a=(n.n(i),n(280));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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}()},function(e,t,n){"use strict";var r=n(1392),o=n(1629),i=(n.n(o),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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}()),a=i("span",{className:"ClaimCheeseburger"},void 0,i("span",{},void 0,"Get your McDonalds burger"),i("span",{className:"ClaimCheeseburger__right"},void 0,i(r.a,{}))),u=function(){return a};t.a=u},function(e,t,n){"use strict";function r(e){var t=e.id,n=e.permalink,r=e.commentAuthor,o=e.username,i=e.isSaved,f=e.onEdit,d=e.onDelete,p=e.onToggleSave,h=e.onReportComment,v=e.onToggleModal,m=e.isSubredditModerator,y=e.isRemoved,g=e.isSpam,_=e.isApproved,b=e.isSticky,E=e.approvedBy,T=e.removedBy,w=e.showModModal,S=e.modModalId,O=e.isMine,P=e.distinguishType,R=e.reportModalId,I=e.reports,A=r.toLowerCase()===o,C=[A?l(a.a,{icon:"post_edit",text:"Edit Comment",onClick:f}):null,A?l(a.a,{icon:"delete_remove",text:"Delete Comment",onClick:d}):null,l(a.c,{href:n,icon:"link",text:"Permalink"}),o?l(a.a,{icon:"save",text:i?"Saved":"Save",isSelected:i,onClick:p}):null,A?null:l(a.c,{href:"/user/"+r,icon:"user-account",text:r+"'s profile"}),o?l(a.a,{onClick:h,icon:"flag",text:"Report"}):null],x=void 0;return x=w&&m?l("div",{},void 0,l(u.a,{id:t,modModalId:S,onClick:v,isRemoved:y,isApproved:_,isSpam:g,approvedBy:E,removedBy:T,distinguishType:P,isMine:O,isSticky:b,targetType:c.a,reports:I,reportModalId:R}),l(s.a,{reportModalId:R,isRemoved:y,isApproved:_,isSpam:g,approvedBy:E,removedBy:T,reports:I,onClick:v})):l(a.d,{id:t,onClick:v,showX:!0},void 0,C)}var o=n(0),i=n.n(o),a=n(182),u=n(653),s=n(663),c=n(20);t.a=r;var l=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),f=i.a.PropTypes;r.propTypes={id:f.string.isRequired,permalink:f.string.isRequired,commentAuthor:f.string.isRequired,username:f.string,isSaved:f.bool,onEdit:f.func,onDelete:f.func,onToggleSave:f.func,onReportComment:f.func.isRequired,isSubredditModerator:f.bool.isRequired,isRemoved:f.bool,isSpam:f.bool,isApproved:f.bool,approvedBy:f.string,removedBy:f.string,showModModal:f.bool,modModalId:f.string,distinguishType:f.string,isMine:f.bool,reportModalId:f.string,reports:f.object},r.defaultProps={username:"",isSaved:!1,onEdit:function(){},onDelete:function(){},onToggleSave:function(){},onToggleModal:function(){},isRemoved:!1,isSpam:!1,isApproved:!1,approvedBy:null,removedBy:null,showModModal:!1,modModalId:"",isDistinguished:"",isMine:!1,reports:{},reportModalId:""}},function(e,t,n){"use strict";function r(e){switch(e){case"self":return"icon icon-user-account mint";case"moderator":return"icon icon-mod green";case"admin":return"icon icon-snoosilhouette orangered";case"op":return"icon icon-op blue";default:return""}}function o(e){var t=v()(Array(e),"•").join(" ");return b("div",{className:"CommentHeader__dots"},void 0,t)}function i(e,t,n,r){var i=n?{width:26+10*n}:null,a="CommentHeader__caron icon icon-caron-circled tween";return e&&(a+=" m-collapsed"),r?a+=" mango":t&&(a+=" mint"),b("td",{className:"CommentHeader__col1",style:i},void 0,n?o(n):null,b("div",{className:a}))}function a(e,t,n,o,i,a){var c=r(o),l="CommentHeader__usernameIcon "+c,f="CommentHeader__username";return i?f+=" m-highlight":o&&(f+=" m-"+o),b("td",{className:"CommentHeader__col2"},void 0,b("div",{className:f},void 0,a?P:null,e,c?b("div",{className:l}):null),t?u(t,i):null,T,s(n,i))}function u(e,t){var n="CommentHeader__flair";return t&&(n+=" m-highlight"),b("div",{className:n},void 0,e)}function s(e,t){var r="CommentHeader__timestamp";return t&&(r+=" m-highlight"),b("div",{className:r},void 0,n.i(m.a)(e))}function c(e,t){return b("td",{className:"CommentHeader__col3"},void 0,e&&e.length?b(g.a,{allAwardings:e}):b(_.a,{gildings:t}))}function l(e){var t=e.allAwardings,r=e.collapsed,o=e.topLevel,u=e.dots,s=e.highlight,l=e.author,f=e.flair,d=e.created,p=e.authorType,h=e.gildings,v=e.stickied,m=e.isApproved,g=e.isRemoved,_=e.isSpam,E=e.reports,T=n.i(y.a)(E),P=[b("td",{className:"CommentHeader__modStatus icon icon-flag "+(m?"":"warning-yellow")}),b("td",{className:"CommentHeader__modStatus m-report-count "+(m?"":"warning-yellow")},void 0,T)];return b("div",{className:"CommentHeader",onClick:e.onToggleCollapse},void 0,b("table",{className:"CommentHeader__table"},void 0,b("tbody",{},void 0,b("tr",{},void 0,i(r,o,u,s),a(l,f,d,p,s,v),c(t,h),m?w:null,g?S:null,_?O:null,T>0?P:null))))}var f=n(1630),d=(n.n(f),n(0)),p=n.n(d),h=n(569),v=n.n(h),m=n(186),y=n(292),g=n(642),_=n(649);t.a=l;var b=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),E=p.a.PropTypes,T=b("div",{className:"CommentHeader__separator"},void 0," • "),w=b("td",{className:"CommentHeader__modStatus icon icon-check-circled green"}),S=b("td",{className:"CommentHeader__modStatus icon icon-delete_remove ban-red"}),O=b("td",{className:"CommentHeader__modStatus icon icon-spam nsfw-salmon"}),P=b("div",{className:"CommentHeader__sticky icon icon-sticky green"});l.propTypes={allAwardings:E.nop,author:E.string.isRequired,created:E.number.isRequired,authorType:E.string,flair:E.string,gildings:E.nop,collapsed:E.bool,topLevel:E.bool,dots:E.number,highlight:E.bool,stickied:E.bool,isApproved:E.bool,isRemoved:E.bool,isSpam:E.bool,reports:E.object},l.defaultProps={allAwardings:null,gildings:{gid_1:0,gid_2:0,gid_3:0},collapsed:!1,authorType:"",dots:0,highlight:!1,stickied:!1,isApproved:!1,isRemoved:!1,isSpam:!1,reports:null}},function(e,t,n){"use strict";function r(e){var t=e.id,n=e.score,r=e.scoreHidden,o=e.voteDirection,i=e.commentingDisabled,a=e.votingDisabled,u=e.commentAuthor,s=e.username,c=e.saved,l=e.permalinkUrl,d=e.onEdit,h=e.onDelete,m=e.onToggleSave,_=e.onReportComment,T=e.onToggleModal,w=e.isSubredditModerator,S=e.isApproved,O=e.isSpam,P=e.isRemoved,R=e.approvedBy,I=e.removedBy,A=e.isMine,C=e.distinguishType,x=e.isSticky,N=e.reports,M="mod-"+t,k="report-"+t;return f("div",{className:"CommentTools"},void 0,i?null:p(e),y(t),w?v(M):null,b(e),g(t,n,r,o,a),E(t,l,u,s,c,d,h,m,_,T,w,S,O,P,R,I,!1,null,x,null,null),w?E(t,l,u,s,c,d,h,m,_,T,w,S,O,P,R,I,!0,M,A,C,x,N,k):null)}var o=n(1632),i=(n.n(o),n(0)),a=n.n(i),u=n(90),s=(n.n(u),n(670)),c=n(1383),l=n(30);t.a=r;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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),d=a.a.PropTypes;r.propTypes={id:d.string.isRequired,score:d.number.isRequired,commentAuthor:d.string.isRequired,username:d.string,scoreHidden:d.bool,voteDirection:d.number,votingDisabled:d.bool,saved:d.bool,permalinkUrl:d.string,onEdit:d.func,onDelete:d.func,onToggleSave:d.func,onReportComment:d.func.isRequired,onReplyOpen:d.func,onToggleModal:d.func.isRequired,isSpam:d.bool,isRemoved:d.bool,isApproved:d.bool,approvedBy:d.string,removedBy:d.string,reports:d.object},r.defaultProps={voteDirection:0,votingDisabled:!1,scoreHidden:!1,saved:!1,permalinkUrl:"",onEdit:function(){},onDelete:function(){},onToggleSave:function(){},onToggleReply:function(){},onToggleModal:function(){},reports:null};var p=function(e){var t=e.commentReplying,r=e.onToggleReply;return f("span",{className:n.i(l.a)("CommentTools__reply icon icon-reply2",{CommentTools__reply__replying:t}),onClick:r})},h=f("div",{className:"CommentTools__more icon icon-mod"}),v=function(e){return f(u.ModalTarget,{id:e},void 0,h)},m=f("div",{className:"CommentTools__more icon icon-seashells"}),y=function(e){return f(u.ModalTarget,{id:e},void 0,m)},g=function(e,t,n,r,o){return f(s.a,{thingId:e,score:t,scoreHidden:n,voteDirection:r,hideDownvote:o})},_=f("div",{className:"CommentTools__divider"}),b=function(){return _},E=function(e,t,n,r,o,i,a,u,s,l,d,p,h,v,m,y,g,_,b,E,T,w,S){return f(c.a,{id:e,permalink:t,commentAuthor:n,username:r,isSaved:o,onEdit:i,onDelete:a,onToggleSave:u,onReportComment:s,onToggleModal:l,isSubredditModerator:d,isApproved:p,isSpam:h,isRemoved:v,isSticky:T,approvedBy:m,removedBy:y,showModModal:g,modModalId:_,isMine:b,distinguishType:E,reports:w,reportModalId:S})}},function(e,t,n){"use strict";function r(e){var t=e.comment,r=e.userActivityPage,o=e.commentDispatchers,i=e.user,p=e.commentReplying,h=e.editing,v=e.editPending;return d("div",{className:"CommentPreview "+(r?"in-list":"separated")},void 0,d("div",{className:"CommentPreview__wrapper"},void 0,r&&t.quarantine?l.a:null,d(u.b,{className:"CommentPreview__permalink",href:t.cleanPermalink},void 0,t.linkTitle),a.a.createElement(s.a,f({comment:t,isUserActivityPage:r,preview:!0,isTopLevel:!1,user:i,commentReplying:p,editing:h,editPending:v},n.i(c.a)(o,t.name)))))}var o=n(1634),i=(n.n(o),n(0)),a=n.n(i),u=n(6),s=n(646),c=n(418),l=n(660);t.a=r;var f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}()},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)}function a(e){var t=C()(Array(e),"•").join(" ");return N("div",{className:"CommentHeader__dots"},void 0,t)}function u(e,t,n){return e.distinguished?e.distinguished:t&&t.name===e.author?"self":e.author===n?"op":""}function s(e){return e.split("_")[1]}var c=n(1635),l=(n.n(c),n(0)),f=n.n(l),d=n(3),p=(n.n(d),n(4)),h=(n.n(p),n(6)),v=n(259),m=n.n(v),y=n(643),g=n(646),_=n(1405),b=n(5),E=n(30),T=n(1600),w=n(73),S=n(74),O=n(418),P=n(42),R=n(20),I=n(38),A=n(569),C=n.n(A),x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),M=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),k=f.a.PropTypes,D=6,L=16,j=N(P.a,{}),F=function(e){function t(){var e,n,i,a;r(this,t);for(var u=arguments.length,s=Array(u),c=0;c<u;c++)s[c]=arguments[c];return n=i=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),i.state={bannerCommentName:null},i.refByCommentName={},a=n,o(i,a)}return i(t,e),M(t,[{key:"componentDidMount",value:function(){if(this.props.features.enabled(b.h.MID_COMMENT_BANNER))for(var e=window.innerHeight*b.P,t=0;t<this.props.comments.length;t++){var n=this.props.comments[t];if(0===n.depth){var r=this.refByCommentName[n.data.name],o=r.getBoundingClientRect().top+window.scrollY;if(o>e&&t>0){this.setState({bannerCommentName:n.data.name});break}}}}},{key:"render",value:function(){var e=this,t=this.props,n=t.comments,r=t.post,o=t.pageUrl,i=t.isCrawlerRequest,a=t.commentsPending;return a?j:N("div",{className:"CommentTree"},void 0,i&&n.length?N(_.a,{post:r,comments:n.filter(function(e){return 0===e.depth}).map(function(e){return e.data}),pageUrl:o}):null,N("div",{className:"CommentTree__tree"},void 0,n.map(function(t){var n=t.depth,r=t.data,o=t.isHidden;return U(e.props,n,r,o,function(t){e.refByCommentName[r.name]=t},e.state.bannerCommentName===r.name&&e.props.features.enabled(b.h.MID_COMMENT_BANNER))})),!r.promoted&&this.props.features.enabled(b.h.BOTTOM_COMMENT_BANNER)&&"all_ads"===r.whitelistStatus&&6===r.wls&&!r.over18&&N(y.a,{id:"btf-comments-banner",shouldCollapse:!0,listingName:"comments",a9:!0,whitelistStatus:r.whitelistStatus,wls:r.wls,placement:"BTF",withBottomSpacing:!0}))}}]),t}(f.a.Component);F.propTypes={post:k.instanceOf(I.a).isRequired,isCrawlerRequest:k.bool,pageUrl:k.string,pageId:k.string},F.defaultProps={isCrawlerRequest:!1};var U=function(e,t,r,o,i,a){var s=e.onLoadMore,c=e.replyingList,l=e.thingsBeingEdited,d=e.user,p=e.post,h=e.isSubredditModerator,v=e.commentDispatchers,m=e.reports,_=p.cleanPermalink,b=r.name,T=u(r,d,p.author||""),w=l[b],S=!!c[b],P=Math.min(t,D),R=t-D,I=R>0?R:0;return f.a.createElement("div",{className:n.i(E.a)("CommentTree__comment",{"m-toplevel":0===t,"m-hidden":o}),style:{paddingLeft:P*L},ref:i},a&&!p.promoted&&"all_ads"===p.whitelistStatus&&6===p.wls&&!p.over18&&N(y.a,{id:"mid-comments-banner",shouldCollapse:!0,listingName:"comments",a9:!0,whitelistStatus:p.whitelistStatus,wls:p.wls,sizes:[300,250]}),B(P),"comment"===r.type?f.a.createElement(g.a,x({isSubredditModerator:h,commentReplying:S,authorType:T,comment:r,commentCollapsed:r.isCollapsed,editing:!!w,editPending:!(!w||!w.pending),isTopLevel:0===t,user:d,votingDisabled:p.archived,dotsNum:I,reports:m},n.i(O.a)(v,b))):q(function(e){return s(r,e)},r,0===t,I,_))},B=function(e){for(var t=[],r=0;r<e;r++)t.push(N("div",{className:n.i(E.a)("CommentTree__commentDepthLine",{"m-thick":0===r}),style:{left:L*(r+1)-1}}));return t},H=N("div",{className:"CommentTree__continueThreadIcon icon icon-arrowforward"}),q=function(e,t,n,r,o){var i=t.isPending,u=t.type===R.b,c=u?"More Comments":"Continue Thread",l=s(t.parentId),f=""+o+l;return N(h.b,{className:"CommentTree__continueThread",onClick:function(t){u&&e(t)},href:f},void 0,a(r),N("span",{className:"icon icon-caron-circled "+(n?"mint":"")}),i?"LOADING...":c,u?" ("+t.children.length+")":"",i?null:H)},V=n.i(p.createSelector)(function(e,t){return t.post.subreddit},function(e){return e.user},function(e,t){var n=t.pageId;return e.commentsPages.data[n]||[]},function(e,t){var n=t.pageId,r=e.commentsPages.api[n];return!r||r.pending},function(e){return e.platform.currentPage.url},function(e){return e.comments.data},function(e){return e.comments.loadMore},function(e){return e.comments.continueThread},function(e){return e.comments.collapsed},function(e){return e.comments.loadMorePending},function(e){return e.editingText},function(e){return e.replying},function(e){return e.moderatingSubreddits.names},function(e){return e.reports},function(e){return S.a.withContext({state:e})},function(e,t,r,o,i,a,u,s,c,l,f,d,p,h,v){return{user:t,thingsBeingEdited:f,currentUrl:i,replyingList:d,isSubredditModerator:m()(p,e.toLowerCase()),comments:r.length>0?n.i(T.a)({commentsList:r,allComments:a,allLoadMoreComments:u,allContinueThreads:s,collapsedComments:c,pendingLoadMore:l}):[],reports:h,commentsPending:o,features:v}}),G=function(e,t){var r=t.pageId,o=t.post;return{onLoadMore:function(t,n){n.preventDefault(),e(w.f(t.uuid,r,o.uuid))},commentDispatchers:n.i(O.b)(e)}},W=function(e,t,n){return x({},e,t,n)};t.a=n.i(d.connect)(V,G,W)(F)},function(e,t,n){"use strict";var r=n(1636),o=(n.n(r),n(0)),i=(n.n(o),n(6)),a=n(645),u=n(665),s=n(76),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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),l=c("span",{},void 0,"You are viewing a single comment's thread."),f=c("div",{},void 0,"Post is archived"),d=c("div",{},void 0,"Comments are locked"),p=c("div",{},void 0,"You are banned from commenting in this community for now"),h=function(e,t){var n=e.archived,r=e.locked,o=e.subredditDetail,a=void 0;if(t?a=c("div",{},void 0,l,c(i.b,{href:e.cleanPermalink},void 0,"View the rest of the comments")):n?a=f:r?a=d:o&&o.user_is_banned&&(a=p),a)return c("div",{className:"alert-warning"},void 0,a)};t.a=function(e){var t=e.isReplying,n=e.post,r=e.hasSingleComment,o=e.preferences,i=e.id,l=e.onSortChange,f=e.onToggleReply,d=e.currentPage.queryParams.sort,p=!!n&&n.archived,v=!!n&&n.locked,m=p||v,y=!o.ignoreSuggestedSort&&n.suggestedSort;return c("div",{className:"CommentsPage__tools"},void 0,c("div",{className:"CommentsPage__tools_toolbar"},void 0,c(u.a,{className:"CommentsPage__tools_sortSelector",id:"comment-sort-selector",title:"Sort comments by:",sortValue:d||y||o.defaultCommentSort,sortOptions:[s.a.CONFIDENCE,s.a.TOP,s.a.NEW,s.a.CONTROVERSIAL,s.a.QA],onSortChange:l}),m?null:c("span",{className:"Button m-linkbutton",onClick:f},void 0,"Write a comment")),n?h(n,r):null,t?c("div",{className:"CommentsPage__replyForm"},void 0,c(a.a,{parentId:i,onToggleReply:f})):null)}},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(6),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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=c("label",{className:"OverlayMenu-form-label r-label",htmlFor:"location-input"},void 0,"r/"),d=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={hasInput:!1},n._handleInputChange=n._handleInputChange.bind(n),n}return i(t,e),l(t,[{key:"render",value:function(){var e="icon icon-nav-arrowforward";return this.state.hasInput&&(e+=" blue"),c("li",{className:"OverlayMenu-row bottom bottom-border"},void 0,c(s.d,{className:"OverlayMenu-form",action:"/actions/community-goto"},void 0,c("div",{className:"OverlayMenu-form-input-group"},void 0,f,u.a.createElement("input",{type:"text",ref:"location",className:"OverlayMenu-form-input",id:"location-input",placeholder:"find a community",name:"location",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false",onChange:this._handleInputChange}),c("span",{className:"OverlayMenu-form-button right-arrow"},void 0,c("button",{type:"submit",className:e})))))}},{key:"_handleInputChange",value:function(){var e=!!this.refs.location.value.trim();this.setState({hasInput:e})}}]),t}(u.a.Component);t.a=d},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(3),a=(n.n(i),n(4)),u=(n.n(a),n(369)),s=n.n(u),c=n(654),l=n(281),f=n(657),d=n(1389),p=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")}}(),h=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),v=function(e,t){var n=e.length;return n>1?n+" Communities":1===n?"1 Community":t?"Loading My Communities":"No Communities"},m=function(e,t,n){return h(f.a,{autoExpanded:!0,icon:"icon-settings",text:"My communities",subtext:v(e,t)},"communities-row",s()(e,function(e){var t=e.displayNamePrefixed.split("/"),r=p(t,2),o=r[0],i=r[1];return h(f.b,{href:e.url,icon:"OverlayMenu-icon-following-snoo",text:h("span",{},void 0,h("span",{className:"CommunityRow__rSlash"},void 0,o,"/"),i,e.over18?c.a:null),iconURL:e.iconImage,iconBackgroundColor:e.keyColor||"",theme:n},"OverlayMenu-row-subscription-"+e.url)}))},y=h(d.a,{}),g=h(f.b,{text:"Home",href:"/",icon:"icon-snoo-circled icon-xl orangered"},"front-page-row"),_=h(f.b,{text:"Popular",href:"/r/popular",icon:"icon-rising mint-circled-xl"},"popular-link"),b=h(f.b,{text:"All",href:"/r/all",icon:"icon-bar-chart orangered-circled-xl"},"all-link"),E=h(f.b,{text:"Popular",href:"/",icon:"icon-rising mint-circled-xl"},"popular-link"),T=h(f.b,{text:"All",href:"/r/all",icon:"icon-bar-chart orangered-circled-xl"},"all-link"),w=function(e){var t=e.user,n=e.subscriptions,r=e.subscriptionsLoading,i=e.theme;return h(l.a,{},void 0,y,t.loggedOut?o.a.Children.toArray([E,T]):o.a.Children.toArray([g,_,b]),m(n,r,i))},S=function(e){return e.subscribedSubreddits.subreddits},O=function(e){return e.subscribedSubreddits.fetching},P=function(e){return e.subreddits},R=function(e){return e.theme},I=function(e){return e.user},A=function(e,t){var n=e.displayName.toUpperCase(),r=t.displayName.toUpperCase();return n<r?-1:n>r?1:0},C=function(e,t,n,r,o){var i=s()(e,function(e){return n[e.uuid]});return i.sort(A),{subscriptions:i,subscriptionsLoading:t,theme:r,user:o}},x=n.i(a.createSelector)(S,O,P,R,I,C);t.a=n.i(i.connect)(x)(w)},function(e,t,n){"use strict";var r=n(1638),o=(n.n(r),n(0)),i=(n.n(o),n(3)),a=(n.n(i),n(4)),u=(n.n(a),n(6)),s=n(654),c=n(423),l=n(5),f=n(289),d=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")}}(),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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),h=l.g.NIGHTMODE,v=function(e,t,n,r){var o=void 0;return n&&(o=r!==h||e?{backgroundColor:n}:{borderColor:n}),p(u.b,{className:"CommunityRow__icon",href:t},void 0,e?p("img",{className:"CommunityRow__iconImg",src:e,style:o}):p("div",{className:"CommunityRow__iconBlank",style:o}))},m=function(e){var t=e.accountsActive,n=e.displayNamePrefixed,r=e.over18,o=e.subscribers,i=e.url,a=n.split("/"),c=d(a,2),l=c[0],h=c[1];return p(u.b,{className:"CommunityRow__details",href:i},void 0,p("div",{className:"CommunityRow__name"},void 0,p("span",{className:"CommunityRow__rSlash"},void 0,l,"/"),h,r?s.a:null),p("div",{className:"CommunityRow__counts"},void 0,[o,t].filter(function(e){return!!e}).map(f.a).map(function(e,t){return 0===t?e+" followers":e+" online"}).join(" • ")))},y=p("button",{className:"CommunityRow__subscriptionButton icon icon-check-circled lime"}),g=p("button",{className:"CommunityRow__subscriptionButton icon icon-follow blue"}),_=function(e){return e?y:g},b=function(e){return p(c.a,{subredditName:e,className:"CommunityRow__add",renderBody:_})},E=function(e){var t=e.subreddit,n=e.theme;return p("div",{className:"CommunityRow"},void 0,v(t.iconImage,t.url,t.keyColor,n),m(t),b(t.uuid))},T=function(e,t){return e.subreddits[t.subredditName]},w=function(e){return e.theme},S=function(){return n.i(a.createSelector)(T,w,function(e,t){return{subreddit:e,theme:t}})};t.a=n.i(i.connect)(S)(E)},function(e,t,n){"use strict";var r=n(1639),o=(n.n(r),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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}()),i=o("span",{className:"CustomAdFlair"},void 0,"Ad"),a=function(){return i};t.a=a},function(e,t,n){"use strict";var r=n(1640),o=(n.n(r),n(0)),i=(n.n(o),n(3)),a=(n.n(i),n(4)),u=(n.n(a),n(42)),s=n(119),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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),l=c(u.a,{}),f=function(e){var t=e.multireddit,n=e.multiredditRequest;return t?c("div",{className:"CustomFeedHeader"},void 0,c("img",{className:"CustomFeedHeader-icon",src:t.icon}),c("div",{},void 0,c("h3",{className:"CustomFeedHeader-title"},void 0,t.displayName),c("div",{className:"CustomFeedHeader-details"},void 0,c("div",{},void 0,t.subredditCount," ",1===t.subredditCount?"community":"communities"),c("div",{},void 0,"Custom feed by u/",t.owner)),!!t.descriptionHTML&&c(s.a,{},void 0,c("div",{className:"CustomFeedHeader-description",dangerouslySetInnerHTML:{__html:t.descriptionHTML}})))):n&&n.failed?null:l},d=n.i(a.createStructuredSelector)({multireddit:function(e,t){return e.multireddits[t.multiPath]},multiredditRequest:function(e,t){return e.multiredditRequests[t.multiPath]}});t.a=n.i(i.connect)(d)(f)},function(e,t,n){"use strict";function r(e){return s(u.c,{className:"DirectMessageComposition",onSubmit:e.onSubmit},void 0,s("input",{className:"DirectMessageComposition__input",name:"to",placeholder:"Who do you want to message?",defaultValue:e.recipient}),s("input",{className:"DirectMessageComposition__input",type:"disabled",readOnly:!0,value:"From: "+e.username}),s("input",{className:"DirectMessageComposition__input",name:"subject",placeholder:"Add an interesting title",defaultValue:e.subject}),s("textarea",{className:"DirectMessageComposition__textarea",name:"body",rows:"5",placeholder:"Fill in your message",defaultValue:e.message}),l)}var o=n(1641),i=(n.n(o),n(0)),a=n.n(i),u=n(6);t.a=r;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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),c=a.a.PropTypes,l=s("button",{className:"DirectMessageComposition__submit",type:"submit"},void 0,"SEND MESSAGE");r.propTypes={username:c.string.isRequired,recipient:c.string},r.defaultProps={recipient:""}},function(e,t,n){"use strict";function r(){return u("div",{className:"DirectMessageHeader"},void 0,u(a.e,{className:"DirectMessageHeader__back icon icon-nav-close",href:a.e.AUTO_ROUTE,backupHref:"/message/messages"}),s)}var o=n(1642),i=(n.n(o),n(0)),a=(n.n(i),n(6));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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=u("div",{className:"DirectMessageHeader__title"},void 0,"Direct Message")},function(e,t,n){"use strict";function r(e){return p("div",{className:"DirectMessage"},void 0,v,p("div",{className:"DirectMessage__body"},void 0,p(f.a,{onSubmit:e.onFormSubmit,username:e.user.name,recipient:e.recipient,subject:e.subject,message:e.message})))}var o=n(1643),i=(n.n(o),n(0)),a=n.n(i),u=n(3),s=(n.n(u),n(4)),c=(n.n(s),n(87)),l=n(1395),f=n(1394),d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),h=a.a.PropTypes,v=p("div",{className:"DirectMessage__header"},void 0,p(l.a,{}));r.propTypes={user:h.object.isRequired,recipient:h.string,subject:h.string,message:h.string},r.defaultProps={recipient:"",subject:"",message:""};var m=n.i(s.createSelector)(function(e){return e.user},function(e){return{user:e}}),y=function(e){return{onFormSubmit:function(t){return e(c.b(t))}}},g=function(e,t,n){return d({},e,t,{recipient:n.queryParams.to,subject:n.queryParams.subject,message:n.queryParams.message})};t.a=n.i(u.connect)(m,y,g)(r)},function(e,t,n){"use strict";function r(){return u}var o=n(1645),i=(n.n(o),n(0));n.n(i);t.a=r;var 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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),u=a("div",{className:"DropdownCover"})},function(e,t,n){"use strict";function r(){return u}var o=n(440),i=(n.n(o),n(0));n.n(i);t.a=r;var 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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),u=a("div",{className:"DualPartInterstitialFooter__bulletList"},void 0,a("div",{className:"DualPartInterstitialFooter__bulletItem"},void 0,a("span",{className:"DualPartInterstitialFooter__bulletIcon icon icon-controversial"}),"50% Faster"),a("div",{className:"DualPartInterstitialFooter__bulletItem"},void 0,a("span",{className:"DualPartInterstitialFooter__bulletIcon icon icon-compact"}),"Infinite Scroll"),a("div",{className:"DualPartInterstitialFooter__bulletItem"},void 0,a("span",{className:"DualPartInterstitialFooter__bulletIcon icon icon-play_triangle"}),"Autoplay GIFs"))},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(440),u=(n.n(a),n(63)),s=n.n(u),c=n(0),l=n.n(c),f=n(3),d=(n.n(f),n(4)),p=(n.n(d),n(7)),h=n(43),v=n(57),m=n(46),y=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),g=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),_=function(e){function t(){var e,i,a,u;r(this,t);for(var s=arguments.length,c=Array(s),l=0;l<s;l++)c[l]=arguments[l];return i=a=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(c))),a.onClose=function(){var e=a.props,t=e.dispatch,r=e.requireLogin;r?t(n.i(p.k)(a.loginLink())):(t(h.d()),t(h.e()))},u=i,o(a,u)}return i(t,e),g(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.dispatch,n=e.requireLogin;n&&t(h.m())}},{key:"loginLink",value:function(){var e=this.props.nativeLoginLink;return s.a.format({pathname:"/login",query:{native_app_promo:"true",native_app_link:e}})}},{key:"dismissalLink",value:function(){var e=this.props.requireLogin,t="DualPartInterstitialFooter__dismissalLink",n=y("span",{},void 0,"or go to the ",y("a",{className:t,onClick:this.onClose},void 0,"mobile site")),r=y("span",{},void 0,"or ",y("a",{className:t,onClick:this.onClose},void 0,"login")," to the mobile site");return y("span",{className:"DualPartInterstitialFooter__dismissalText"},void 0,e?r:n)}},{key:"render",value:function(){return this.dismissalLink()}}]),t}(l.a.Component),b=n.i(d.createStructuredSelector)({requireLogin:m.h,nativeLoginLink:function(e){return n.i(v.i)(e,"login")}});t.a=n.i(f.connect)(b)(_)},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(440),u=(n.n(a),n(0)),s=n.n(u),c=n(3),l=(n.n(c),n(4)),f=(n.n(l),n(187)),d=n(5),p=n(46),h=n(439),v=n(647),m=n(1398),y=n(1399),g=n(46),_=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),b=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),E=_(m.a,{}),T=_("div",{className:"DualPartInterstitialFooter__dismissal"},void 0,_(y.a,{})),w=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),b(t,[{key:"buttonProps",value:function(){var e=this.props.xpromoTheme;return{title:e===d.e.PERSIST?"Open in app":"Continue",visitTrigger:n.i(h.a)(e).visitTrigger,interstitialType:e}}},{key:"subtitleText",value:function(){var e=this.props.subredditNamePrefixed,t=e?e:"Reddit";return"View "+t+" in the official Reddit app for the best experience."}},{key:"render",value:function(){return _("div",{className:"DualPartInterstitialFooter"},void 0,_("div",{className:"DualPartInterstitialFooter__content"},void 0,_("div",{className:"DualPartInterstitialFooter__subtitle"},void 0,this.subtitleText()),E,_("div",{className:"DualPartInterstitialFooter__button"},void 0,s.a.createElement(v.a,this.buttonProps())),T))}}]),t}(s.a.Component),S=n.i(l.createStructuredSelector)({xpromoTheme:function(e){return n.i(p.n)(e)},subredditNamePrefixed:f.b,variant:function(e){return n.i(g.f)(e)}});t.a=n.i(c.connect)(S)(w)},function(e,t,n){"use strict";function r(e){var t=e.children;return u("div",{className:"DualPartInterstitialHeader plain"},void 0,u(c,{},void 0,l,t))}var o=n(1647),i=(n.n(o),n(0)),a=(n.n(i),n(668));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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=u("div",{className:"TransparentOverlay__overlay"}),c=function(e){return u("div",{className:"TransparentOverlay"},void 0,s,u("div",{className:"TransparentOverlay__childContainer"},void 0,e.children))},l=u(a.a,{})},function(e,t,n){"use strict";function r(e){var t=e.mixin,r=e.scrollPast,o=e.xpromoTheme,i=e.isXPromoPersistentActive,u="DualPartInterstitial",s=n.i(l.a)(o,r,i).displayClass;return m(d.a,{},void 0,m("div",{className:n.i(c.a)(u,s,t)},void 0,m("div",{className:u+"__content"},void 0,m("div",{className:u+"__common"},void 0,a.a.createElement(p.a,e),a.a.createElement(h.a,e)))))}var o=n(1648),i=(n.n(o),n(0)),a=n.n(i),u=n(3),s=(n.n(u),n(4)),c=(n.n(s),n(30)),l=n(439),f=n(290),d=n(1456),p=n(1401),h=n(1400),v=n(46),m=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),y=n.i(s.createSelector)(f.c,v.l,v.n,v.o,function(e,t,n,r){return{device:e,scrollPast:t,xpromoTheme:n,isXPromoPersistentActive:r}});t.a=n.i(u.connect)(y)(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(1649),u=(n.n(a),n(0)),s=n.n(u),c=n(3),l=(n.n(c),n(4)),f=(n.n(l),n(17)),d=n(634),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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),h=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),v=s.a.PropTypes,m=p("span",{className:"icon icon-x"}),y=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),h(t,[{key:"updateDisplayCount",value:function(){this.props.show&&this.props.onCookieNoticeRendered()}},{key:"componentDidMount",value:function(){this.updateDisplayCount()}},{key:"componentDidUpdate",value:function(){this.updateDisplayCount()}},{key:"render",value:function(){if(!this.props.show)return null;var e=this.props.onClose;return p("div",{className:"EUCookieNotice"},void 0,p("div",{className:"EUCookieNotice__content"},void 0,p("div",{className:"EUCookieNotice__close",onClick:e},void 0,m),p("p",{},void 0,"Cookies help us deliver our Services. By using our Services, you agree to our use of cookies.",p("a",{className:"EUCookieNotice__link",target:"_blank",href:f.a.reddit+"/help/privacypolicy"},void 0,"Learn More"))))}}]),t}(s.a.Component);y.propTypes={show:v.bool.isRequired,url:v.string.isRequired,onCookieNoticeRendered:v.func.isRequired,onClose:v.func.isRequired};var g=n.i(l.createSelector)(function(e){return e.euCookieNotice.showEUCookie},function(e){return e.platform.currentPage.url},function(e,t){return{show:e,url:t}}),_=function(e){return{onCookieNoticeRendered:function(){return e(d.a())},onClose:function(){return e(d.b())}}};t.a=n.i(c.connect)(g,_)(y)},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(1651),a=(n.n(i),n(6)),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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=o.a.PropTypes,c="Go Back!",l="Go to the front page!",f="Page Not Found",d="Sorry, you don't have access to this.",p=u("div",{},void 0,u("div",{},void 0,"Something went wrong."),u("div",{},void 0,"Please refresh this page or")),h={403:d,404:f},v=u("div",{className:"ErrorPage__image"}),m=function(e){var t=""===e.referrer||e.referrer===e.url,n=t?"/":e.referrer,r=t?l:c,o=h[String(e.status)]||p;return u("div",{className:"ErrorPage"},void 0,v,u("div",{className:"ErrorPage__error"},void 0,o," "),u(a.b,{href:n,className:"ErrorPage__redirect-anchor"},void 0,r))};m.propTypes={referrer:s.string.isRequired,url:s.string.isRequired,status:s.number.isRequired},t.a=m},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(98),a=n.n(i),u=n(63),s=n.n(u),c=n(102),l=n(38),f=n(17),d=n(120),p=n(1613),h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),m=o.a.PropTypes,y=f.a.reddit,g=s.a.parse(y),_=g.host,b=g.protocol,E=function(e){var t=e.post,r=e.comments,o=e.pageUrl;return t&&r&&r.length?v("div",{dangerouslySetInnerHTML:{__html:"\n <script type='application/ld+json'>\n "+n.i(p.a)(T(o,t,r))+"\n </script>\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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),w=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),S=l.a.PropTypes,O=T("span",{className:"HTML5StreamPlayer__playback-mute icon icon-mute"}),P=T("span",{className:"HTML5StreamPlayer__playback-unmute icon icon-unmute"}),R=T("div",{className:"HTML5StreamPlayer__playback-action-circle regular"},void 0,T("div",{className:"HTML5StreamPlayer__replay-icon-container"},void 0,T("span",{className:"HTML5StreamPlayer__playback-action-icon white icon icon-replay"}))),I=T("div",{className:"HTML5StreamPlayer__playback-action-circle regular"},void 0,T("div",{className:"HTML5StreamPlayer__play-icon-container"},void 0,T("span",{className:"HTML5StreamPlayer__playback-action-icon white icon icon-play_triangle"}))),A=function(e){function t(e){var a,u;o(this,t);var s=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return s.isScrolledIntoView=function(){if(!s.state.videoFullScreen){var e=s.refs.HTML5StreamPlayerVideo,t=s.refs.HTML5StreamPlayerContainer,r=t.getBoundingClientRect().top,o=t.getBoundingClientRect().bottom,i=o-r,a=void 0;a=r<0?o:o>window.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<r||s.didTriggerPercentagePixel(r)||(s.percentagePixelsTriggered[r]=!0,s.props.dispatch(n.i(m.d)(t,r)),100===r&&clearInterval(s.percentWatchedInterval))})}},s.trackVideoWatchedTime=function(e,t){if(s.isPromoted()){e/t>=.95&&(e=g.K);var r=s.getPostId();g.L.forEach(function(t){e<t||s.timePixelsTriggered[t]||(s.timePixelsTriggered[t]=!0,s.props.dispatch(n.i(m.e)(r,t)))})}},s.sendBufferedStatus=function(){var e=s.refs.HTML5StreamPlayerVideo;s.isPromoted()&&e.buffered.length!==s.state.buffered&&(s.setState({buffered:e.buffered.length}),s.props.dispatch(n.i(m.f)(s.getPostId(),!!e.buffered.length)))},s.sendVideoSeekedStatus=function(){s.isPromoted()&&s.props.dispatch(n.i(m.g)(s.getPostId(),s.latestStartTime))},s.didTriggerPercentagePixel=function(e){return s.percentagePixelsTriggered[e]},s.trackVideoWatchedPercent=function(){if(s.isPromoted()){var e=void 0;s.percentWatchedInterval=window.setInterval(function(){e=s.state.scrubPosition,e>20&&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;o<e.buffered.length;o++){var i=e.buffered.start(o)*r,a=e.buffered.end(o)*r,u=a-i;n.fillRect(i,0,u,t.height),n.stroke()}n.fillStyle="#0DD3BB",n.strokeStyle="#0DD3BB",n.fillRect(0,0,e.currentTime*r,t.height)}}}},{key:"renderThumbnail",value:function(){return T("div",{className:this.state.currentlyScrubbing?"HTML5StreamPlayer__control__thumbContainer":"HTML5StreamPlayer__control__scrubThumbHidden"},void 0,l.a.createElement("div",{style:{left:this.state.thumbPosition},className:"HTML5StreamPlayer__control__scrubThumb",ref:"scrubberThumbnailContainer"},l.a.createElement("video",{className:"HTML5StreamPlayer__control__scrubVideo",preload:"metadata",autoPlay:!1,playsInline:!0,muted:!0,ref:"scrubberThumbnail"},T("source",{src:this.props.scrubberThumbSource,type:"video/mp4"}))))}},{key:"render",value:function(){return l.a.createElement("div",{className:"HTML5StreamPlayer",ref:"HTML5StreamPlayerContainer"},T("div",{className:this.state.videoFullScreen?"HTML5StreamPlayer__videoContainer__fullscreen":"HTML5StreamPlayer__videoContainer"},void 0,T("div",{className:"HTML5StreamPlayer__videoTrim\n "+(this.state.videoFullScreen?"":this.props.aspectRatioClassname)},void 0,l.a.createElement("video",{"data-dashjs-player":!0,loop:this.props.isGif,autoPlay:!1,muted:this.state.videoMuted,onTimeUpdate:this.updateTime,poster:this.props.posterImage,preload:"metadata",playsInline:!0,className:this.state.videoFullScreen?"HTML5StreamPlayer__video__fullscreen":"HTML5StreamPlayer__video__regular",ref:"HTML5StreamPlayerVideo"},T("source",{src:this.props.mpegDashSource,type:"application/dash+xml"}),T("source",{src:this.props.hlsSource,type:"application/vnd.apple.mpegURL"}))),T("div",{className:"HTML5StreamPlayer__controlPanel",id:"html5-video-stream-controls"},void 0,T("div",{className:"HTML5StreamPlayer__control__play"},void 0,T("button",{className:"HTML5StreamPlayer__control__play",onClick:this.playPauseVideo},void 0,this.videoIsPaused()&&this.state.videoLoaded&&this.renderPlaybackIcon())),T("div",{className:"HTML5StreamPlayer__control__bar"},void 0,!this.props.isGif&&T("div",{className:"HTML5StreamPlayer__control__fullscreen"},void 0,T("button",{className:"HTML5StreamPlayer__control__button",onClick:this.state.videoFullScreen?this.exitFullscreen:this.enterFullScreen},void 0,T("span",{className:this.state.videoFullScreen?"HTML5StreamPlayer__playback-full-screen-collapse icon icon-full-screen-collapse":"HTML5StreamPlayer__playback-full-screen icon icon-full-screen"}))),T("div",{className:"HTML5StreamPlayer__control__mute"},void 0,T("button",{className:"HTML5StreamPlayer__control__button",onClick:this.muteVideo},void 0,this.renderMute())),!this.props.isGif&&T("div",{className:"HTML5StreamPlayer__control__scrubberContainer"},void 0,T("div",{className:"HTML5StreamPlayer__control__barMargin"},void 0,T("div",{className:"HTML5StreamPlayer__control__timeTotal"},void 0,this.state.totalTime),T("div",{className:"HTML5StreamPlayer__control__timeCurrent"},void 0,this.state.currentTime),l.a.createElement("canvas",{ref:"scrubBuffer",className:"HTML5StreamPlayer__control__scrubBar__buffer"}),T("input",{type:"range",step:"any",value:this.state.currentlyScrubbing?this.state.scrubPosition:this.state.videoPosition,className:"HTML5StreamPlayer__control__scrubBar",onChange:this.setVideoPos,onTouchEnd:this.scrubEnd,onTouchStart:this.scrubStart}),this.renderThumbnail()))))))}},{key:"buildBaseEventData",value:function(){var e=this.refs.HTML5StreamPlayerVideo,t=this.props,r=t.postData,o=t.isVertical,i=t.isGif,a=0,u=0,s=this.state.videoFullScreen?"full_screen":"listing";e&&(a=parseInt(1e3*e.currentTime),u=parseInt(1e3*e.duration),n.i(b.c)(this.props.currentPage)===!0&&(s="comments"));var c=new Date,l=Math.round(c.getTime()/1e3),f=parseInt(1e3*(l-r.createdUTC)),d=r.subredditId;d.length>3&&(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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=function y(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:y(o,t,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},v=c.a.PropTypes,m=function(e,t){var r=t.id;return{onToggleModal:function(){return e(n.i(l.toggleModal)(r))}}};t.a=n.i(f.connect)(null,m)((u=a=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),p(t,[{key:"makeHandler",value:function(){var e=this,n=h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"makeHandler",this).call(this);return d({},n,{onClick:function(t){e.props.interceptClick(t)||n.onClick(t)}})}}]),t}(l._ModalTarget),a.propTypes=d({},l._ModalTarget.propTypes,{interceptClick:v.func.isRequired}),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}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(684),s=(n.n(u),n(0)),c=n.n(s),l=n(3),f=(n.n(l),n(4)),d=(n.n(f),n(10)),p=n(6),h=n(5),v=n(181),m=n(416),y=n(43),g=n(434),_=n(57),b=n(147),E=n(650),T=n(651),w=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),S=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),O=w("span",{className:"icon icon-x red"}),P=w("p",{className:"Login__app-promo__or"},void 0,"or"),R=w("p",{className:"Login__app-promo__subtext"},void 0,"(no login required)"),I=w("div",{},void 0,w(b.a,{}),w("div",{className:"Login__register-link"},void 0,"Login to complete verification.")),A=w("div",{},void 0,w(b.a,{}),w("div",{className:"Login__register-link"},void 0,w("p",{},void 0,w(p.b,{href:"/register"},void 0," New user? Sign up! ")))),C=w("div",{className:"Login__tfa-title"},void 0,w("h1",{className:"tfa-title-header"},void 0,"Enter the 6 digit code from your authenticator app"),w("p",{className:"tfa-title-desc"},void 0,"You have 2 factor authentication enabled on this account because you're awesome.")),x=w("div",{className:"Login__tfa-title"},void 0,w("h1",{className:"tfa-title-header"},void 0,"Enter a 6 digit backup code"),w("p",{className:"tfa-title-desc"},void 0,"You have 2 factor authentication enabled on this account because you're awesome.")),N=function(e){function t(e){o(this,t);var r=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.onAppPromoClick=function(){var e=r.props,t=e.nativeAppNavigator,o=e.nativeAppLink;n.i(_.c)(),t(o)},r.state={isPasswordField:!0,password:"",username:"",otp:""},r.handleBackToAuth=r.handleBackToAuth.bind(r),r.handleOpenAppCodeForm=r.handleOpenAppCodeForm.bind(r),r.handleOpenBackupCodeForm=r.handleOpenBackupCodeForm.bind(r),r.clearPassword=r.clearField.bind(r,"password"),r.clearUsername=r.clearField.bind(r,"username"),r.clearOtp=r.clearField.bind(r,"otp"),r.updatePassword=r.updateField.bind(r,"password"),r.updateUsername=r.updateField.bind(r,"username"),r.updateOtp=r.updateField.bind(r,"otp"),r.toggleEye=r.toggleEye.bind(r),r}return a(t,e),S(t,[{key:"toggleEye",value:function(){var e=this.state.isPasswordField;this.setState({isPasswordField:!e})}},{key:"clearField",value:function(e,t){var n=this.props.resetSessionError;t.preventDefault(),this.setState(r({},e,""),n)}},{key:"updateField",value:function(e,t){t.preventDefault(),this.setState(r({},e,t.target.value))}},{key:"renderClear",value:function(e){return w("button",{type:"button",className:"Login__input-action-btn",onClick:this[e]},void 0,O)}},{key:"renderEye",value:function(){var e=this.state.isPasswordField,t=e?"":"blue";return w("button",{type:"button",className:"Login__input-action-btn",onClick:this.toggleEye},void 0,w("span",{className:"icon icon-eye "+t}))}},{key:"renderAppPromo",value:function(){return w("div",{className:"Login__app-promo"},void 0,P,w(T.a,{onClick:this.onAppPromoClick,modifier:"orangered",text:"Continue in the app"}),R)}},{key:"handleBackToAuth",value:function(e){var t=this.props.openAuthForm;t(),this.clearOtp(e)}},{key:"renderCloseButton",value:function(){var e=this.props,t=e.activeForm,r=e.platform,o=n.i(g.a)(r,["/login","/register"]);return t===h.l.APP_CODE||t===h.l.BACKUP_CODE?w("a",{className:"Login__back-to-auth icon icon-nav-arrowup",onClick:this.handleBackToAuth,href:""}):w(p.e,{className:"Register__close icon icon-x",href:o})}},{key:"renderTitle",value:function(){var e=this.props,t=e.activeForm,n=e.verificationToken;return n?I:t===h.l.AUTH?A:t===h.l.APP_CODE?C:t===h.l.BACKUP_CODE?x:void 0}},{key:"handleOpenBackupCodeForm",value:function(e){var t=this.props.openBackupCodeForm;t(),this.clearOtp(e)}},{key:"handleOpenAppCodeForm",value:function(e){var t=this.props.openAppCodeForm;t(),this.clearOtp(e)}},{key:"renderCodeTypeSwitcher",value:function(){var e=this.props.activeForm;return e===h.l.APP_CODE?w("div",{className:"Login__switch-code-type"},void 0,w("a",{onClick:this.handleOpenBackupCodeForm},void 0,"Or use a backup code")):e===h.l.BACKUP_CODE?w("div",{className:"Login__switch-code-type"},void 0,w("a",{onClick:this.handleOpenAppCodeForm},void 0,"Or use a code from an authenticator app")):void 0}},{key:"render",value:function(){var e=this.props,t=e.session,r=e.platform,o=e.displayAppPromo,i=e.activeForm,a=this.state,u=a.isPasswordField,s=a.password,c=a.username,l=a.otp,f=i===h.l.AUTH,v=f?u?"password":"text":"hidden",m=f?"hidden":"number",y=f?"text":"hidden",_=i===h.l.APP_CODE?"Application code":"Backup code",b=f?"LOG IN":"CHECK CODE",S=n.i(g.a)(r,["/login","/register"]),O=t?t.error:null,P={username:"",password:"",otp:""};switch(O){case h.S.WRONG_PASSWORD:P.password="Sorry, thats not the right password";break;case h.S.BAD_USERNAME:P.username="Sorry, thats not a valid username";break;case h.S.INCORRECT_USERNAME_PASSWORD:P.username=!0,P.password="Sorry, thats an incorrect username or password";break;case h.S.WRONG_OTP:P.otp="The verification code you entered is not valid.";break;case h.T.UNKNOWN_ERROR:P.password="Sorry, we were unable to log you in"}return w("div",{className:"Login"},void 0,w("div",{className:"Register__header"},void 0,this.renderCloseButton()),this.renderTitle(),w(p.d,{className:"Login__form",method:d.a.POST,action:"login.php"},void 0,w(E.a,{name:"username",type:y,placeholder:"Username",showTopBorder:!0,error:P.username,onChange:this.updateUsername,value:c},void 0,f&&P.username?this.renderClear("clearUsername"):null),w(E.a,{name:"password",type:v,placeholder:"Password",showTopBorder:!1,shouldAutocomplete:!1,error:P.password,onChange:this.updatePassword,value:s},void 0,f?P.password?this.renderClear("clearPassword"):this.renderEye():null),w(E.a,{name:"otp",type:m,placeholder:_,showTopBorder:!1,shouldAutocomplete:!1,error:P.otp,onChange:this.updateOtp,value:l,otpInput:!0},void 0,P.otp?this.renderClear("clearOtp"):null),w(E.a,{name:"redirectTo",type:"hidden",value:S}),this.renderCodeTypeSwitcher(),w("div",{className:"Login__submit"},void 0,w(T.a,{text:b,type:"submit"}))),o?this.renderAppPromo():null)}}]),t}(c.a.Component),M=n.i(f.createSelector)(function(e){return e.session},function(e){return e.platform},function(e){return e.twoFactorAuthentication},function(e,t,n){var r=t.currentPage.queryParams.verification_token,o=!!t.currentPage.queryParams.native_app_promo,i=t.currentPage.queryParams.native_app_link,a=n.activeForm;return{session:e,platform:t,nativeAppLink:i,displayAppPromo:o,activeForm:a,verificationToken:r}}),k=function(e){return{resetSessionError:function(){e(v.b(null))},nativeAppNavigator:function(e){y.g(e)},openAuthForm:function(){e(m.b())},openAppCodeForm:function(){e(m.a())},openBackupCodeForm:function(){e(m.c())}}};t.a=n.i(l.connect)(M,k)(N)},function(e,t,n){"use strict";function r(e){return u(a.a,{className:"Logo SVG-icon",width:55,height:17.44,fallbackImg:e.assetPath+"/img/reddit-wordmark.png"},void 0,s)}var o=n(0),i=n.n(o),a=n(421);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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=u("g",{},void 0,u("circle",{fill:"#ff4500",cx:"45.77",cy:"3.33",r:"2.05"}),u("path",{fill:"currentColor",d:"M16.73,12.05a1.44,1.44,0,0,0,1.54-1.48,4.91,4.91,0,0,0-.1-0.83,5.66,5.66,0,0,0-5.34-4.61c-3,0-5.51,2.76-5.51,6.15s2.47,6.15,5.51,6.15a5.47,5.47,0,0,0,4.26-1.78,1.19,1.19,0,0,0-.19-1.77,1.25,1.25,0,0,0-1.53.16,3.78,3.78,0,0,1-2.54,1.09,3.42,3.42,0,0,1-3.14-3.08h7ZM12.82,7.44a3.3,3.3,0,0,1,3,2.56h-6A3.3,3.3,0,0,1,12.82,7.44Z"}),u("path",{fill:"currentColor",d:"M7.44,6.32a1.15,1.15,0,0,0-1-1.14A4.46,4.46,0,0,0,2.31,6.69V6.54A1.15,1.15,0,1,0,0,6.54V16a1.18,1.18,0,0,0,1.08,1.2A1.15,1.15,0,0,0,2.31,16V11.15A3.51,3.51,0,0,1,6.15,7.47H6.38A1.15,1.15,0,0,0,7.44,6.32Z"}),u("path",{fill:"currentColor",d:"M46.92,7.56a1.15,1.15,0,0,0-2.31,0V16a1.15,1.15,0,1,0,2.31,0V7.56Z"}),u("path",{fill:"currentColor",d:"M29.87,1.15A1.15,1.15,0,0,0,28.72,0h0a1.15,1.15,0,0,0-1.15,1.15V6.31a4,4,0,0,0-2.95-1.18c-3,0-5.51,2.76-5.51,6.15s2.47,6.15,5.51,6.15a4.08,4.08,0,0,0,3-1.19A1.15,1.15,0,0,0,29.87,16V1.15Zm-5.26,14c-1.77,0-3.21-1.72-3.21-3.85s1.43-3.85,3.21-3.85,3.21,1.72,3.21,3.85S26.39,15.13,24.62,15.13Z"}),u("path",{fill:"currentColor",d:"M41.92,1.15A1.15,1.15,0,0,0,40.77,0h0a1.15,1.15,0,0,0-1.15,1.15V6.31a4,4,0,0,0-2.95-1.18c-3,0-5.51,2.76-5.51,6.15s2.47,6.15,5.51,6.15a4.08,4.08,0,0,0,3-1.19A1.15,1.15,0,0,0,41.92,16V1.15Zm-5.26,14c-1.77,0-3.21-1.72-3.21-3.85s1.43-3.85,3.21-3.85,3.21,1.72,3.21,3.85S38.44,15.13,36.67,15.13Z"}),u("path",{fill:"currentColor",d:"M52.91,16V7.44h1a1,1,0,0,0,1.06-1,1,1,0,0,0-1-1.09H52.91V3.76a1.18,1.18,0,0,0-1.08-1.19,1.15,1.15,0,0,0-1.23,1.15V5.38h-1a1,1,0,0,0-1.06,1,1,1,0,0,0,1,1.09h1V16a1.15,1.15,0,0,0,1.15,1.15h0A1.15,1.15,0,0,0,52.91,16Z"}));r.propTypes={assetPath:i.a.PropTypes.string.isRequired}},function(e,t,n){"use strict";function r(e){var t=e.message;return l("div",{className:"MessageThreadMessage"},void 0,l("div",{className:"MessageThreadMessage__title"},void 0,l(u.b,{className:"MessageThreadMessage__authorLink",href:"/user/"+t.author},void 0,t.author),d,n.i(s.a)(t.createdUTC)),l(c.a,{},void 0,l("div",{className:"MessageThreadMessage__body",dangerouslySetInnerHTML:{__html:t.bodyHTML}})))}var o=n(1657),i=(n.n(o),n(0)),a=n.n(i),u=n(6),s=n(186),c=n(119);t.a=r;var l=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),f=a.a.PropTypes,d=" • ";r.propTypes={message:f.object.isRequired}},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(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(1658),s=(n.n(u),n(0)),c=n.n(s),l=n(3),f=(n.n(l),n(4)),d=(n.n(f),n(6)),p=n(87),h=n(1410),v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),y=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),g=c.a.PropTypes,_=m(d.e,{className:"MessageThread__backlink icon icon-x",href:"/message/messages/"}),b=m("div",{className:"MessageThread__divider"}),E=m("span",{className:"MessageThread__cancelReplyIcon icon icon-x"}),T=m("span",{className:"MessageThread__replyIcon icon icon-reply2"}),w=m("button",{className:"MessageThread__formSubmit",type:"submit"},void 0,"SEND MESSAGE"),S=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onFormSubmitAction=function(e){n.props.onFormSubmit(e),n.setState({showForm:!1,formBody:""})},n.onToggleShowForm=function(){n.setState({showForm:!n.state.showForm})},n.onEditReply=function(e){e.preventDefault(),n.setState({formBody:e.target.value})},n.state={showForm:!1,formBody:""},n}return a(t,e),y(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.headMessage,r=t.messages,o=t.replyMessageId,i=this.state.showForm;return m("div",{className:"MessageThread"},void 0,m("div",{className:"MessageThread__header"},void 0,_,m("div",{className:"MessageThread__subject"},void 0,n.subject)),b,m("div",{className:"MessageThread__content"},void 0,this.renderMessage(n),n.replies.map(function(t){return e.renderMessage(r[t])})),o?this.renderReplyToggle():null,i&&o?this.renderForm(o):null)}},{key:"renderMessage",value:function(e){return m("div",{className:"MessageThread__item"},void 0,m(h.a,{message:e}))}},{key:"renderReplyToggle",value:function(){var e=this.state.showForm;return e?m("div",{className:"MessageThread__reply",onClick:this.onToggleShowForm},void 0,E):m("div",{className:"MessageThread__reply",onClick:this.onToggleShowForm},void 0,T,"Reply")}},{key:"renderForm",value:function(e){var t=this.state.formBody;return m(d.c,{className:"MessageThread__form",onSubmit:this.onFormSubmitAction},void 0,m("textarea",{className:"MessageThread__formBody",name:"body",placeholder:"Memes go here",value:t,rows:"5",onChange:this.onEditReply}),m("input",{name:"thingId",type:"hidden",readOnly:!0,value:e}),w)}}]),t}(c.a.Component);S.propTypes={headMessage:g.object.isRequired,messages:g.object.isRequired,replyMessageId:g.string.isRequired};var O=n.i(f.createSelector)(function(e){return e.messages},function(e){return e.user},function(e,t){return{messages:e,user:t}}),P=function(e){return{onFormSubmit:function(t){return e(p.b(t))}}},R=function(e,t,n){var o=n.urlParams.threadId,i=e.messages,a=e.user,u="t4_"+o,s=i[u],c=[].concat(r(s.replies.slice().reverse()),[u]),l=c.find(function(e){return i[e].author.toLowerCase()!==a.name});return v({},e,t,{headMessage:s,replyMessageId:l})};t.a=n.i(l.connect)(O,P,R)(S)},function(e,t,n){"use strict";function r(e){var t=e.comment;return l("div",{className:"MessagesComment"},void 0,l(u.b,{className:"MessagesComment__title",href:t.cleanPermalink},void 0,t.linkTitle),l("div",{className:"MessagesComment__metaData"},void 0,l(u.b,{className:"MessagesComment__metaDataLink",href:"/user/"+t.author},void 0,t.author),d,l(u.b,{className:"MessagesComment__metaDataLink",href:"/r/"+t.subreddit},void 0,t.subreddit),d,n.i(s.a)(t.createdUTC)),l(c.a,{},void 0,l("div",{className:"MessagesComment__body",dangerouslySetInnerHTML:{__html:t.bodyHTML}})))}var o=n(1659),i=(n.n(o),n(0)),a=n.n(i),u=n(6),s=n(186),c=n(119);t.a=r;var l=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),f=a.a.PropTypes,d=" • ";r.propTypes={comment:f.object.isRequired}},function(e,t,n){"use strict";function r(){return s}var o=n(1660),i=(n.n(o),n(0)),a=(n.n(i),n(6));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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=u("div",{className:"MessageHeader"},void 0,u("div",{className:"MessageHeader__title"},void 0,"Inbox"),u(a.b,{className:"MessageHeader__compose icon icon-message",href:"/message/compose"}))},function(e,t,n){"use strict";function r(e){var t=e.message;return l("div",{className:"MessagesMessage"},void 0,l("div",{className:"MessagesMessage__header"},void 0,l("div",{className:"MessagesMessage__title"},void 0,l(u.b,{className:"MessagesMessage__titleLink",href:t.cleanPermalink},void 0,t.subject)),l("div",{className:"MessagesMessage__subtitle"},void 0,l(u.b,{className:"MessagesMessage__authorLink",href:"/user/"+t.author},void 0,t.author),d,n.i(s.a)(t.createdUTC)),l(u.b,{className:"MessagesMessage__link icon icon-nav-arrowforward",href:t.cleanPermalink})),l(c.a,{},void 0,l("div",{className:"MessagesMessage__body",dangerouslySetInnerHTML:{__html:t.bodyHTML}})))}var o=n(1661),i=(n.n(o),n(0)),a=n.n(i),u=n(6),s=n(186),c=n(119);t.a=r;var l=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),f=a.a.PropTypes,d=" • ";r.propTypes={message:f.object.isRequired}},function(e,t,n){"use strict";function r(e){return s("div",{className:"MessagesNav"},void 0,l.map(function(t){return f(t,e.currentMailType)}))}var o=n(1662),i=(n.n(o),n(0)),a=n.n(i),u=n(6);t.a=r;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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),c=a.a.PropTypes,l=[{type:"messages",basepath:"message",text:"MESSAGES",icon:"icon-message"},{type:"comments",basepath:"notification",text:"COMMENTS",icon:"icon-comment"},{type:"selfreply",basepath:"notification",text:"POST REPLIES",icon:"icon-post"},{type:"mentions",basepath:"notification",text:"MENTIONS",icon:"icon-crown"}];r.propTypes={currentMailType:c.string.isRequired};var f=function(e,t){var n=e.type,r=e.text,o=e.icon,i=e.basepath;return s(u.b,{className:"MessagesNav__item "+(n===t?"m-selected":""),href:"/"+i+"/"+n},void 0,s("div",{
className:"MessagesNav__icon icon "+o}),s("div",{className:"MessagesNav__text"},void 0,r))}},function(e,t,n){"use strict";function r(){return a("div",{className:"MessagesPost"},void 0)}var o=n(1663),i=(n.n(o),n(0));n.n(i);t.a=r;var 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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}()},function(e,t,n){"use strict";function r(e){var t=e.messages,n=e.comments,r=e.posts,o=e.currentPage,i=e.mailData,a=e.mailType,u=i.meta,s=b(o,u),l=s.prevUrl,d=s.nextUrl;return m("div",{className:"Messages"},void 0,g,m("div",{className:"Messages__nav"},void 0,m(f.a,{currentMailType:a})),_,m("div",{className:"Messages__content"},void 0,i.order.map(function(e){var o=e.type,i=e.uuid;return m("div",{className:"Messages__item"},void 0,E(o,i,t,n,r))})),m(c.a,{compact:!0,preventUrlCreation:!0,prevUrl:l,nextUrl:d}))}var o=n(1664),i=(n.n(o),n(0)),a=n.n(i),u=n(3),s=(n.n(u),n(4)),c=(n.n(s),n(282)),l=n(1413),f=n(1415),d=n(1412),p=n(1414),h=n(1416),v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),y=a.a.PropTypes,g=m("div",{className:"Messages__header"},void 0,m(l.a,{})),_=m("div",{className:"Messages__divider"});r.propTypes={messages:y.object.isRequired,comments:y.object.isRequired,posts:y.object.isRequired,mailData:y.object.isRequired,mailType:y.string.isRequired};var b=function(e,t){var n=e.url,r=t.before,o=t.after,i={};return r&&(i.prevUrl=n+"?count=25&before="+r),o&&(i.nextUrl=n+"?count=25&after="+o),i},E=function(e,t,n,r,o){switch(e){case"comment":return m(d.a,{comment:r[t]});case"message":return m(p.a,{message:n[t]});case"post":return m(h.a,{post:o[t]});default:return null}},T=n.i(s.createSelector)(function(e){return e.messages},function(e){return e.comments.data},function(e){return e.posts},function(e){return e.platform.currentPage},function(e,t){return e.mail[t.urlParams.mailType]},function(e,t,n,r,o){return{messages:e,comments:t,posts:n,currentPage:r,mailData:o}}),w=function(e,t,n){return v({},e,t,{mailType:n.urlParams.mailType})};t.a=n.i(u.connect)(T,null,w)(r)},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(3),a=(n.n(i),n(4)),u=(n.n(a),n(1436)),s=n(1437),c=n(146),l=n(179),f=function(e){switch(e.modal.type){case c.d:return o.a.createElement(u.a,e.modal);case l.d:return o.a.createElement(s.a,e.modal.props);default:return null}},d=n.i(a.createSelector)(function(e){return e.modal},function(e){return{modal:e}});t.a=n.i(i.connect)(d)(f)},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(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)}function u(e,t){var n=arguments.length>2&&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;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),C=O.c.CLASSIC,x=O.c.SNACKBAR,N=O.c.PILL,M=O.c.NATIVE,k=A(w.a,{active:!0}),D=A(E.a,{}),L=A(v.b,{active:!0}),j=A(y.a,{}),F=A(m.a,{}),U=A(T.a,{}),B=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),I(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.showXPromo,r=e.isXPromoFixed,o=e.xpromoComponentName,i=e.shouldShowXpromoFooter,a=n&&r,s=u(o,t,a,"m-invisible"),c=u(o,t,n),l=A("div",{},void 0,j,A("div",{className:"NavFrame__below-top-nav"},void 0,F,t,i&&U),s);return A("div",{className:"NavFrame"},void 0,c,l)}}]),t}(f.a.Component),H=n.i(p.createSelector)(g.p,g.q,function(e,t){return{showXPromo:e,isXPromoFixed:t}});t.a=n.i(d.connect)(s)(B)},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)}function a(e){var t=e.notification,n=t.title,r=t.content,o=t.button,i=t.visible;return{title:n,content:r,button:o,visible:i}}var u=n(1671),s=(n.n(u),n(0)),c=n.n(s),l=n(3),f=(n.n(l),n(410)),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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),p(t,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.content,r=e.button,o=e.dismiss,i=e.visible,a="Notification "+(i?"":"hidden");return d("div",{className:a},void 0,d("span",{className:"Notification__close icon icon-x",onClick:o}),d("div",{className:"Notification__title"},void 0,t),d("div",{className:"Notification__content"},void 0,n),d("div",{className:"Notification__button",onClick:o},void 0,r))}}]),t}(c.a.Component),v={dismiss:f.b};t.a=n.i(l.connect)(a,v)(h)},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(1673),u=(n.n(a),n(0)),s=n.n(u),c=n(17),l=n(259),f=n.n(l),d=n(3),p=(n.n(d),n(4)),h=(n.n(p),n(7)),v=n(42),m=n(672),y=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),g=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),_=n.i(p.createStructuredSelector)({currentPageUrl:function(e){return e.platform.currentPage.url},loggedOut:function(e){return e.user.loggedOut},token:function(e){return e.session.accessToken}}),b=function(e){return{placeRedirect:function(){return e(n.i(h.k)("/place"))}}},E=y("div",{className:"Place__loadingWrapper"},void 0,y(v.a,{}));t.a=n.i(d.connect)(_,b)(function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.renderSubreddit=function(e){if(e)return s.a.createElement(m.a,n.props)},n.renderPlaceIframeRedirect=function(e,t){if(e)return y("div",{className:"Place__click",onClick:t})},n.state={loading:!0},n}return i(t,e),g(t,[{key:"componentDidMount",value:function(){var e=this,t=f()(this.props.currentPageUrl,"/r/place");this.props.loggedOut||t?this.ifr.onload=function(){e.setState({loading:!1})}:this.ifr.onload=function(){e.setState({loading:!1}),e.ifr.contentWindow.postMessage(JSON.stringify({name:"PLACE_MESSAGE",payload:{Authorization:"bearer "+e.props.token}}),c.a.placeDomain)}}},{key:"render",value:function(){var e=this,t=f()(this.props.currentPageUrl,"/r/place"),n=c.a.placeDomain+"/place?webview=true",r=this.props.placeRedirect;return y("div",{className:"Place__container"},void 0,this.state.loading?E:null,this.renderPlaceIframeRedirect(t,r),s.a.createElement("iframe",{className:"Place__iframe "+(t?"small":"large"),ref:function(t){e.ifr=t},src:""+n+(t?"&hide_palette=true":""),frameBorder:"0"}),this.renderSubreddit(t))}}]),t}(s.a.Component))},function(e,t,n){"use strict";function r(){return u}var o=n(0),i=(n.n(o),n(421));t.a=r;var 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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),u=a(i.a,{className:"SVG-icon PlanetIcon"},void 0,a("path",{fill:"#FFFFFF",d:"M15.8286,15.8998 C15.3466,16.3788 12.6326,15.5598 8.5516,11.4798 C4.4706,7.3968 3.6486,4.6858 4.1316,4.2038 C4.3566,3.9788 4.9286,3.9208 5.9126,4.3518 C5.6166,4.5678 5.3306,4.8008 5.0666,5.0658 C5.0536,5.0798 5.0416,5.0948 5.0266,5.1098 C5.5756,6.4268 6.8946,8.4088 9.2596,10.7728 C11.6206,13.1338 13.6046,14.4538 14.9246,15.0028 C14.9376,14.9898 14.9526,14.9778 14.9666,14.9638 C15.2316,14.6988 15.4646,14.4128 15.6786,14.1178 C16.1096,15.1028 16.0526,15.6748 15.8286,15.8998 M16.7526,11.8998 C17.4066,9.5458 16.8136,6.9138 14.9666,5.0658 C13.6436,3.7438 11.8866,3.0148 10.0166,3.0148 C9.3686,3.0148 8.7356,3.1078 8.1286,3.2768 C5.7306,1.7598 3.9176,1.5898 2.7176,2.7898 C1.4036,4.1028 2.0736,6.1918 3.2866,8.1688 C2.6446,10.5128 3.2276,13.1258 5.0666,14.9638 C6.3886,16.2868 8.1456,17.0148 10.0166,17.0148 C10.6536,17.0148 11.2746,16.9178 11.8736,16.7518 C13.0856,17.4938 14.3406,18.0318 15.4316,18.0318 C16.1156,18.0318 16.7366,17.8198 17.2426,17.3138 C18.4416,16.1138 18.2706,14.2988 16.7526,11.8998"}))},function(e,t,n){"use strict";function r(e){var t=e.id,n=e.canModify,r=e.permalink,a=e.subreddit,u=e.author,p=e.isLoggedIn,h=e.onToggleEdit,v=e.onToggleModal,m=e.isSticky,y=e.isSubredditModerator,g=e.isRemoved,_=e.isApproved,b=e.isSpam,E=e.isLocked,T=e.isNSFW,w=e.isSpoiler,S=e.approvedBy,O=e.removedBy,P=e.showModModal,R=e.modModalId,I=e.distinguishType,A=e.isMine,C=e.reports,x=e.reportModalId;return P&&y?d("div",{},void 0,d(c.a,{id:t,modModalId:R,onClick:v,isSticky:m,isRemoved:g,isApproved:_,isSpam:b,isLocked:E,isNSFW:T,isSpoiler:w,approvedBy:S,removedBy:O,isMine:A,distinguishType:I,targetType:s.d,reports:C,reportModalId:x}),d(f.a,{reportModalId:x,isRemoved:g,isApproved:_,isSpam:b,approvedBy:S,removedBy:O,reports:C,onClick:v})):d(l.d,{id:t,onClick:v,showX:!0},void 0,n?d(l.a,{icon:"post_edit",text:"Edit Post",onClick:h}):null,d(l.c,{href:r,icon:"link",text:"Permalink"}),a?i(a):null,d(l.c,{href:"/user/"+u,icon:"user-account",text:u+"'s profile"}),p?o(e):null)}function o(e){var t=e.isSaved,n=e.isHidden,r=e.onToggleSave,o=e.onToggleHide,i=e.onReportPost;return[d(l.a,{icon:"save",text:t?"Saved":"Save",onClick:r,isSelected:t}),d(l.a,{icon:"hide",text:n?"Unhide":"Hide",onClick:o}),d(l.a,{onClick:i,icon:"flag",text:"Report"})]}function i(e){return d(l.c,{href:"/r/"+e,icon:"snoosilhouette",text:"More from r/"+e})}var a=n(0),u=n.n(a),s=n(20),c=n(653),l=n(182),f=n(663);t.a=r;var 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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),p=u.a.PropTypes;r.propTypes={id:p.string.isRequired,canModify:p.bool,permalink:p.string.isRequired,author:p.string.isRequired,isSticky:p.bool,isSaved:p.bool,isLoggedIn:p.bool,isHidden:p.bool,subreddit:p.string,onToggleSave:p.func,onToggleHide:p.func,onReportPost:p.func.isRequired,onToggleEdit:p.func,onToggleModal:p.func,isRemoved:p.bool,isApproved:p.bool,isLocked:p.bool,isNSFW:p.bool,isSpam:p.bool,isSpoiler:p.bool,approvedBy:p.string,removedBy:p.string,modModalId:p.string,showModModal:p.bool,reports:p.object},r.defaultProps={canModify:!1,isSticky:!1,isSaved:!1,isLoggedIn:!1,isHidden:!1,modModalId:"",onToggleSave:function(){},onToggleHide:function(){},onToggleEdit:function(){},onToggleModal:function(){},showModModal:!1,reports:null}},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(1675),u=(n.n(a),n(0)),s=n.n(u),c=n(6),l=n(38),f=n(1423),d=n(664),p=n(670),h=n(1407),v=n(438),m=n(5),y=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),g=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),_=s.a.PropTypes,b=y("span",{className:"PostFooter__comments-icon icon icon-comment"}),E=y("div",{className:"PostFooter__dropdown-button PostFooter__hit-area icon icon-seashells"}),T=y("div",{className:"PostFooter__dropdown-button PostFooter__hit-area icon icon-mod"}),w=y("span",{className:"PostFooter__vertical-divider"}),S=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onOpenDropdown=n.onOpenDropdown.bind(n),n.onDropdownClosed=n.onDropdownClosed.bind(n),n}return i(t,e),g(t,[{key:"onOpenDropdown",value:function(e){this.setState({dropdownTarget:e.target})}},{key:"onDropdownClosed",value:function(){this.setState({dropdownTarget:null})}},{key:"renderCommentsLink",value:function(e,t){var n=this;if(!e.disableComments){var r=e.numComments;return y(c.b,{className:"PostFooter__hit-area PostFooter__comments-link",href:e.cleanPermalink,onClick:function(e){t(e,m.u.COMMENTS_LINK)||n.props.onElementClick(e)}},void 0,b,this.numCommentsText(r))}}},{key:"numCommentsText",value:function(e){return 0===e?"Comment":1===e?"1 Comment":n.i(v.a)(e)}},{key:"renderDropdown",value:function(e,t,n,r){var o=e.post,i=e.user,a=e.onToggleEdit,u=e.onToggleSave,s=e.onToggleHide,c=e.onReportPost,l=e.single,d=e.onToggleModal,p=e.isSubredditModerator,h=e.reports,v=i&&!i.loggedOut,m=l&&v&&i.name===o.author.toLowerCase();return y(f.a,{id:o.name,canModify:m,permalink:o.cleanPermalink,subreddit:o.subreddit,author:o.author,isSticky:o.stickied,isSaved:o.saved,isHidden:o.hidden,isLoggedIn:v,onToggleEdit:a,onToggleSave:u,onToggleHide:s,onReportPost:c,onToggleModal:d,isSubredditModerator:p,isRemoved:o.removed,isApproved:o.approved,isSpam:o.spam,isLocked:o.locked,isNSFW:o.over18,isSpoiler:o.spoiler,approvedBy:o.approvedBy,removedBy:o.bannedBy,showModModal:t,modModalId:n,distinguishType:o.distinguished,isMine:i&&i.name===o.author.toLowerCase(),reports:h,reportModalId:r})}},{key:"render",value:function(){var e=this.props,t=e.post,n=e.compact,r=e.hideDownvote,o=e.isSubredditModerator,i=e.interceptListingClick,a=e.single,u="mod-"+t.name,s="report-"+t.name,c=t.hideScore||t.score_hidden;return y("footer",{className:"PostFooter "+(n?"size-compact":"")+" "+(a?"single":""),onClick:function(e){return i(e,m.u.FOOTER)}},void 0,y(d.a,{post:t}),this.renderCommentsLink(t,i),y("div",{className:"PostFooter__vote-and-tools-wrapper"},void 0,y(h.a,{id:t.name,interceptClick:function(e){return i(e,m.u.FOOTER_DROPDOWN)}},void 0,E),o?y(h.a,{id:u,interceptClick:function(e){return i(e,m.u.MOD_SHIELD)}},void 0,T):null,w,y(p.a,{thingId:t.name,score:t.score,scoreHidden:c,voteDirection:t.likes,hideDownvote:r,interceptVote:function(e){return i(e,m.u.VOTE_CONTROLS)}})),this.renderDropdown(this.props,!1,null),o?this.renderDropdown(this.props,!0,u,s):null)}}]),t}(s.a.Component);S.propTypes={user:_.object,single:_.bool.isRequired,compact:_.bool.isRequired,post:_.instanceOf(l.a),viewComments:_.bool.isRequired,onToggleEdit:_.func.isRequired,onToggleHide:_.func.isRequired,onReportPost:_.func.isRequired,onHide:_.func.isRequired,onEdit:_.func.isRequired,onDelete:_.func.isRequired,onToggleSave:_.func.isRequired,onElementClick:_.func.isRequired,onToggleModal:_.func.isRequired,isSubredditModerator:_.bool.isRequired,interceptListingClick:_.bool.isRequired},t.a=S},function(e,t,n){"use strict";function r(e){return"moderator"===e?"PostHeader__mod-text":"admin"===e?"PostHeader__admin-text":void 0}function o(e){return"#efefed"!==e&&"#222222"!==e}function i(e,t,n,r){if(!n&&t){var i={};if(e&&e.key_color&&o(e.key_color)){var a=e.key_color;Object.assign(i,{color:a})}var u=e?e.url:"/r/"+t,s=e?e.display_name_prefixed:"r/"+t;return D(E.b,{className:"PostHeader__subreddit-link",href:u,style:i,onClick:function(e){return r(e,R.u.SUBREDDIT)}},void 0,s)}}function a(e){if(e.linkFlairText)return D("span",{className:"PostHeader__link-flair"},void 0,e.linkFlairText)}function u(e,t,r,o,i){var a=e.author,u=e.createdUTC,s=e.subredditDetail,c=s&&"user"===s.subreddit_type,l=c?null:D(E.b,{className:"PostHeader__author-link "+i,href:"/user/"+a,onClick:function(e){return t(e,R.u.AUTHOR)}},void 0,"u/"+a);return o?l:c?D("span",{},void 0,n.i(w.a)(u)):r?D("span",{},void 0,l,j,n.i(w.a)(u)):D("span",{},void 0,n.i(w.a)(u),j,l)}function s(e,t){var r=n.i(C.c)(e),o=e.distinguished,i=e.stickied,a=e.promoted,u=e.spoiler,s=e.quarantine,c=s&&t;return i||"admin"===o||r||a||u||c?D("span",{},void 0,c?A.a:null,i?B:null,"admin"===o?q:null,r?F:null,u?U:null,a?G:null):null}function c(e,t){var r=e.approved,o=e.removed,i=e.spam,a=e.distinguished,u=e.locked,s=e.stickied,c=n.i(O.a)(t),l=[D("span",{className:"icon icon-flag "+(r?"":"warning-yellow")}),D("span",{className:"m-report-count "+(r?"":"warning-yellow")},void 0," ",c," ")];return r||o||i||u||""!==a||s||c>0?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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),L=b.a.PropTypes,j=D("span",{className:"PostHeader__seperator PostHeader__flush-w-icon"}),F=D("span",{className:"PostHeader__nsfw-text"},void 0,D("span",{className:"icon icon-nsfw nsfw"}),D("span",{className:"PostHeader__flush-w-icon"},void 0,"NSFW")),U=D("span",{className:"PostHeader__spoiler-text"},void 0,"SPOILER"),B=D("span",{className:"icon icon-sticky green"}),H=D("span",{className:"icon icon-lock warning-yellow"}),q=D("span",{className:"icon icon-snoosilhouette orangered"}),V=D("span",{className:"icon icon-mod green"}),G=D("span",{className:"PostHeader__promoted-flair"},void 0,"PROMOTED"),W=D("span",{className:"icon icon-check-circled green"}),K=D("span",{className:"icon icon-delete_remove ban-red"}),Y=D("span",{className:"icon icon-spam nsfw-salmon"});y.propTypes={post:L.instanceOf(P.a),single:L.bool.isRequired,compact:L.bool.isRequired,hideSubredditLabel:L.bool.isRequired,hideWhen:L.bool.isRequired,nextToThumbnail:L.bool.isRequired,isPromotedUserPost:L.bool.isRequired,showingLink:L.bool.isRequired,renderMediaFullbleed:L.bool.isRequired,showLinksInNewTab:L.bool.isRequired,onElementClick:L.func.isRequired,titleOpensExpando:L.bool.isRequired,userActivityPage:L.bool};var z=D("span",{className:"PostHeader__megaphone blue icon icon-megaphone"}),X=D("span",{className:"PostHeader__post-link-icon icon icon-linkout blue"})},function(e,t,n){"use strict";function r(e){return Math.min(Math.max(g,e),y)}function o(e,t){return 0===t?e:o(t,e%t)}function i(e,t){return Math.round(e/t)*t}function a(e){if(!e)return"aspect-ratio-16x9";var t=i(e*b,_),n=o(t,b);return"aspect-ratio-"+t/n+"x"+b/n}function u(e,t,n,r,o,i){var a=e?f.O:o;if(e&&n&&!i)return{url:n,width:f.O,height:f.O};if(t&&t.images.length){var u=c(e,t.images[0],a,i);if(u)return u}return r?l(r,i):void 0}function s(e){if(v()(e)||v()(e.images))return null;var t=e.images[0];if(!p()(t,"variants.gif.resolutions")||!p()(t,"variants.mp4.resolutions"))return null;var n=t.variants.mp4;if(!n.resolutions)return n.source;var r=n.resolutions.sort(function(e,t){return t.width-e.width});return r[0]}function c(e,t,n,r){if(r){if(!p()(t,"variants.obfuscated.resolutions"))return{};t=t.variants.obfuscated}var o=t.resolutions;if(o){var i=o.sort(function(e,t){return e.width-t.width}).find(function(t){return e?t.width>=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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}()),v=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),m=u.a.PropTypes,y="Search for a community",g="Communities",_="Recently visited",b=10,E=h("div",{className:"icon icon-search"}),T=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onSubredditInput=function(t){return e.onSubredditInput(t.target.value)},n.renderSubredditRow=n.renderSubredditRow.bind(n),n}return i(t,e),v(t,[{key:"render",value:function(){var e=this.props,t=e.onExitModal,n=e.title,r=e.subreddits,o=e.submissionType;return h(d.a,{exitTo:"/submit?type="+o,onExit:t,titleText:"Post to a community"},void 0,h("div",{className:"PostSubmitCommunity"},void 0,h("div",{className:"PostSubmitCommunity__search"},void 0,E,h("div",{className:"PostSubmitCommunity__search-input"},void 0,h("input",{placeholder:y,onChange:this.onSubredditInput}))),h("div",{className:"PostSubmitCommunity__subreddits"},void 0,h("div",{className:"PostSubmitCommunity__subreddits-title"},void 0,n),h("div",{className:"PostSubmitCommunity__subreddits-list"},void 0,r.map(this.renderSubredditRow)))))}},{key:"renderSubredditRow",value:function(e){var t=e.name,n=e.iconUrl,r=this.props.submissionType,o=n?{backgroundImage:"url("+n+")"}:null;return h(l.b,{className:"PostSubmitCommunity__subreddits-row",href:"/r/"+t+"/submit?type="+r},t,h("div",{className:"PostSubmitCommunity__subreddits-icon"},void 0,h("div",{className:"PostSubmitCommunity__subreddits-icon-snoo",style:o})),h("div",{className:"PostSubmitCommunity__subreddits-name"},void 0,"r/"+t))}}]),t}(u.a.Component);T.propTypes={title:m.string.isRequired,submissionType:m.string.isRequired,subreddits:m.array.isRequired,onSubredditInput:m.func.isRequired,onExitModal:m.func.isRequired};var w=n.i(c.createSelector)(function(e){return e.autocompleteSubreddits},function(e){return e.recentSubreddits},function(e){return e.subreddits},function(e){return e.posting.currentType},function(e,t,n,r){if(e.subredditNames.length){var o=e.subredditNames.slice(0,b);return{submissionType:r,title:g,subreddits:o.map(function(e){return{name:e,iconUrl:null}})}}return{submissionType:r,title:_,subreddits:t.slice(0,b).map(function(e){var t=n[e],r=t?t.iconImage:null;return{name:e,iconUrl:r}})}}),S=function(e){return{onSubredditInput:function(t){return e(f.a(t))},onExitModal:function(){return e(f.b())}}};t.a=n.i(s.connect)(w,S)(T)},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(1166),c=n.n(s),l=n(58),f=n.n(l),d=n(3),p=(n.n(d),n(4)),h=(n.n(p),n(63)),v=(n.n(h),n(6)),m=n(30),y=n(1603),g=n(652),_=n(1431),b=n(413),E=n(1680),T=(n.n(E),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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}()),w=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),S=u.a.PropTypes,O={self:"Text",link:"Link"},P="Select a community",R="Add an interesting title",I="Posting this link saves the image or gif to Reddit",A=/\b(gfycat\.com|imgur\.com)$/i,C=/\.(gif|jpeg|jpg|png|tiff)$/,x=T("div",{className:"PostSubmitModal__safeHarborText"},void 0,I),N=T("div",{className:"icon icon-nav-arrowdown"}),M=function(e){function t(){var e,i,a,u;r(this,t);for(var s=arguments.length,c=Array(s),l=0;l<s;l++)c[l]=arguments[l];return i=a=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(c))),a.isUrlScraped=function(e){var t=n.i(h.parse)(n.i(y.a)(e));return!(!t.hostname||!A.test(t.hostname))||!(!t.pathname||!C.test(t.pathname))},u=i,o(a,u)}return i(t,e),w(t,[{key:"render",value:function(){var e=this.props,t=e.meta,r=e.submissionType,o=e.readyToPost,i=e.onSubmit,a=e.onFieldUpdate,u=e.onRecaptchaLoaded,s=e.showCaptcha,c=e.onCloseCaptcha,l=e.title,f=O[r],d=n.i(m.a)("PostSubmitModal__submit-button",{ready:o}),p=this.isUrlScraped(t);return T(g.a,{exitTo:"/",titleText:f},void 0,T(v.c,{onSubmit:i,className:"PostSubmitModal"},void 0,T("div",{className:"PostSubmitModal__submit"},void 0,T("button",{type:"submit",className:d},void 0,"POST")),this.renderSubredditButton(),T("div",{className:"PostSubmitModal__title"},void 0,T("input",{value:l,placeholder:R,onChange:a.bind(this,"title")})),T("div",{className:"PostSubmitModal__content"},void 0,this.chooseContentInput(r))),s?T(_.a,{onCloseCaptcha:c,onRecaptchaLoaded:u,onSubmit:i}):null,p?x:null)}},{key:"chooseContentInput",value:function(){switch(this.props.submissionType){case"self":return this.renderTextInput();case"link":return this.renderLinkInput();default:return this.renderTextInput()}}},{key:"renderTextInput",value:function(){return T("div",{className:"PostSubmitModal__content-text"},void 0,T("textarea",{rows:"5",value:this.props.meta,placeholder:"Add your text...",onChange:this.props.onFieldUpdate.bind(this,"meta")}))}},{key:"renderLinkInput",value:function(){return T("div",{className:"PostSubmitModal__content-link"},void 0,T("input",{value:this.props.meta,placeholder:"Paste your link here...",onChange:this.props.onFieldUpdate.bind(this,"meta")}))}},{key:"renderSubredditButton",value:function(){var e=this.props,t=e.subreddit,r=t.name,o=t.iconUrl,i=e.submissionType,a=o?{backgroundImage:"url("+o+")"}:null,u=r?r:P,s=n.i(m.a)("PostSubmitModal__community-text",{greyed:!r});return T("div",{className:"PostSubmitModal__community"},void 0,T("div",{className:"PostSubmitModal__community-snoo-icon"},void 0,T("div",{className:"PostSubmitModal__community-snoo",style:a})),T(v.b,{href:"/submit/to_community?type="+i},void 0,T("div",{className:s},void 0,u,N)))}}]),t}(u.a.Component);M.propTypes={readyToPost:S.bool.isRequired,subreddit:S.object.isRequired,title:S.string.isRequired,meta:S.oneOfType([S.string,S.instanceOf(e.File)]).isRequired,showCaptcha:S.bool.isRequired,submissionType:S.string.isRequired,onFieldUpdate:S.func.isRequired,onRecaptchaLoaded:S.func.isRequired,onSubmit:S.func.isRequired,onCloseCaptcha:S.func.isRequired};var k=n.i(p.createSelector)(function(e){return e.posting},function(e){return e.subreddits},function(e){return e.platform.currentPage.urlParams.subredditName},function(e,t,n){var r=e.title,o=e.meta,i=e.gRecaptchaResponse,a=e.showCaptcha,u=e.currentType,s=t[n],l=s?s.iconImage:null,d="self"===u?[r,n]:[r,o,n],p=c()(d,function(e){return!f()(e)});return{title:r,meta:o,gRecaptchaResponse:i,submissionType:u,readyToPost:p,showCaptcha:a,subreddit:{name:n,iconUrl:l}}}),D=function(e){return{onFieldUpdate:function(t,n){return e(b.a(t,n.target.value))},onRecaptchaLoaded:function(t,n){return e(b.a(t,n))},onCloseCaptcha:function(){return e(b.b())},_onSubmit:function(t){return e(b.c(t))}}},L=function(e,t){var n=t.onFieldUpdate,r=t.onRecaptchaLoaded,o=t.onCloseCaptcha,i=t._onSubmit,a=e.title,u=e.meta,s=e.gRecaptchaResponse,c=e.showCaptcha,l=e.submissionType,f=e.readyToPost,d=e.subreddit;return{meta:u,title:a,gRecaptchaResponse:s,submissionType:l,readyToPost:f,subreddit:d,showCaptcha:c,onFieldUpdate:n,onRecaptchaLoaded:r,onCloseCaptcha:o,onSubmit:function(){f&&i({title:a,meta:u,gRecaptchaResponse:s,showCaptcha:c,sr:d.name,kind:l})}}};t.a=n.i(d.connect)(k,D,L)(M)}).call(t,n(36))},function(e,t,n){"use strict";function r(e){var t=e.subredditName,n=t?"/r/"+t+"/submit":"/submit";return s(a.a,{},void 0,s("div",{className:"PostSubmitOverlay"},void 0,s("div",{className:"PostSubmitOverlay__icons"},void 0,s(i.b,{className:"PostSubmitOverlay__icon",href:n+"?type=self"},void 0,c,l),s(i.b,{className:"PostSubmitOverlay__icon",href:n+"?type=link"},void 0,f,d))))}var o=n(0),i=(n.n(o),n(6)),a=n(281),u=n(1681);n.n(u);t.a=r;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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),c=s("div",{className:"icon icon-post-text"}),l=s("div",{className:"PostSubmitOverlay__icon-text"},void 0,"TEXT"),f=s("div",{className:"icon icon-post-link"}),d=s("div",{className:"PostSubmitOverlay__icon-text"},void 0,"LINK")},function(e,t,n){"use strict";function r(e){return u("div",{className:"QuarantineInterstitial"},void 0,s,c,l,u("div",{className:"QuarantineInterstitial__message",dangerouslySetInnerHTML:{__html:e.quarantineMessage}}),f,u("div",{className:"QuarantineInterstitial__buttons"},void 0,d,u(a.d,{action:"/actions/optIntoQuarantine",className:"QuarantineInterstitial__form"},void 0,u("input",{type:"hidden",name:"subredditName",value:e.subredditName}),p)))}var o=n(1685),i=(n.n(o),n(0)),a=(n.n(i),n(6));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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=u("div",{className:"QuarantineInterstitial__icon-wrapper"},void 0,u("span",{className:"QuarantineInterstitial__icon icon icon-header_quarantine quarantine"})),c=u("h3",{className:"QuarantineInterstitial__header"},void 0,"Are you sure you want to view this community?"),l=u("p",{className:"QuarantineInterstitial__text"},void 0,"This community is quarantined."),f=u("p",{className:"QuarantineInterstitial__text"},void 0,"Are you certain you want to continue?"),d=u(a.b,{href:"/",className:"QuarantineInterstitial__button"},void 0,"NO THANK YOU"),p=u("button",{type:"submit",className:"QuarantineInterstitial__button"},void 0,"CONTINUE")},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(17),a=n(662),u=n(1687),s=(n.n(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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}()),c=o.a.PropTypes,l=s("div",{className:"ReCaptchaBox__question"},void 0,"Ok, one more thing... You're human right?"),f=function(e){var t=e.onCloseCaptcha,n=e.onRecaptchaLoaded,r=e.onSubmit,o=i.a.recaptchaSitekey;return s("div",{className:"ReCaptchaBox"},void 0,s("div",{onClick:t,className:"icon icon-nav-close icon-large"}),l,s("div",{className:"ReCaptchaBox__captcha"},void 0,s(a.a,{sitekey:o,onSuccess:function(e){return n("gRecaptchaResponse",e)}})),s("button",{className:"ReCaptchaBox__submit",onClick:r},void 0,"POST"))};f.propTypes={onCloseCaptcha:c.func.isRequired,onRecaptchaLoaded:c.func.isRequired,onSubmit:c.func.isRequired},t.a=f},function(e,t,n){"use strict";function r(e){var t=e.posts,n=e.recommendedPostIds,r=e.trackPostRecommendationClick,o=n.length>0,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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),p=a.a.PropTypes,h=d("div",{className:"RecommendedPosts__title"},void 0,d("div",{className:"title-text"},void 0,"You May Also Like")),v=d("hr",{});r.propTypes={posts:p.object.isRequired,recommendedPostIds:p.arrayOf(p.string).isRequired,trackPostRecommendationClick:p.func.isRequired};var m=n.i(s.createSelector)(function(e){return e.posts},function(e,t){var n=t.postId,r=t.postLoaded,o=null;return r&&n in e.subredditsToPostsByPost&&(o=e.subredditsToPostsByPost[n]),r&&n in e.similarPosts&&(o=e.similarPosts[n]),o},function(e,t){return{posts:e,recommendedPostIds:t?t:[]}}),y=function(e){return{trackPostRecommendationClick:function(t){return e(l.b(t))}}},g=function(e,t,n){var r=t.trackPostRecommendationClick;return f({},e,n,{trackPostRecommendationClick:function(e){r(e)}})};t.a=n.i(u.connect)(m,y,g)(r)},function(e,t,n){"use strict";function r(e){var t=e.subreddits,n=e.recommendedSubredditIds,r=e.trackSubredditRecommendationClick,o=n.length>0,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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),p=a.a.PropTypes,h=d("div",{className:"RecommendedSubreddits__title"},void 0,d("div",{className:"title-text"},void 0,"You May Also Like")),v=d("hr",{});r.propTypes={subreddits:p.object.isRequired,recommendedSubredditIds:p.arrayOf(p.string).isRequired,trackSubredditRecommendationClick:p.func.isRequired};var m=function(e){return e.replace(/^\//,"").replace(/\/$/,"")},y=n.i(s.createSelector)(function(e){return e.subreddits},function(e,t){var n=t.postId,r=t.postLoaded,o=null;return r&&n in e.subredditsByPost&&(o=e.subredditsByPost[n]),o},function(e,t){return{subreddits:e,recommendedSubredditIds:t?t:[]}}),g=function(e){return{trackSubredditRecommendationClick:function(t){return e(l.b(t))}}},_=function(e,t,n){var r=t.trackSubredditRecommendationClick;return f({},e,n,{trackSubredditRecommendationClick:function(e){r(e)}})};t.a=n.i(u.connect)(y,g,_)(r)},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(0),s=n.n(u),c=n(3),l=(n.n(c),n(4)),f=(n.n(l),n(10)),d=n(6),p=n(17),h=n(181),v=n(434),m=n(5),y=n(650),g=n(662),_=n(147),b=n(651),E=n(684),T=(n.n(E),function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()),w=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),S=m.g.DAYMODE,O={BAD_CAPTCHA:"Please provide a valid captcha"},P={BAD_EMAIL:"Sorry, the email you entered is invalid",NEWSLETTER_NO_EMAIL:"Sorry, we need an email to send you the newsletter"},R={SHORT_PASSWORD:"Sorry, the password you entered is too short"},I={USERNAME_TAKEN:"Sorry, that username is taken",USERNAME_INVALID_CHARACTERS:"Sorry, your username contains invalid characters",USERNAME_TOO_SHORT:"Sorry, your username must be between 3 and 20 characters",USERNAME_TAKEN_DEL:"Sorry, the account associated with that username is deleted"},A={UNKNOWN_ERROR:"Sorry, something went wrong. Please try again later"},C=function(e){return w("p",{className:"Register__error-text"},void 0,e)},x=w("a",{href:"/help/useragreement",className:"text-link",target:"_blank"},void 0,"'Terms '"),N=w("a",{href:"/help/privacypolicy",className:"text-link",target:"_blank"},void 0,"'Privacy Policy '"),M=w("a",{href:"/help/contentpolicy/",className:"text-link",target:"_blank"},void 0,"'Content Policy'"),k=w("div",{className:"Register__terms"},void 0,"By signing up, you agree to our ",x,"and that you have read our ",N,"and ",M,"."),D=w("span",{className:"icon icon-x red"}),L=w(_.a,{}),j=w("div",{className:"Register__login-link"},void 0,w("p",{},void 0,w(d.b,{href:"/login",className:"Register__login-link"},void 0,"Already own an account? Log in!"))),F=w("label",{className:"Register__checkbox-label"},void 0,w("input",{className:"Register__checkbox",type:"checkbox",name:"newsletter",defaultChecked:!0}),"Subscribe to newsletter"),U=w("div",{className:"Register__submit"},void 0,w(b.a,{text:"REGISTER",type:"submit"})),B=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={username:"",password:"",isPasswordField:!0,email:"",gRecaptchaResponse:""},n.clearUsername=n.clearField.bind(n,"username"),n.clearPassword=n.clearField.bind(n,"password"),n.clearEmail=n.clearField.bind(n,"email"),n.updateUsername=n.updateField.bind(n,"username"),n.updatePassword=n.updateField.bind(n,"password"),n.updateEmail=n.updateField.bind(n,"email"),n.setRecaptchaResponse=n.setRecaptchaResponse.bind(n),n.toggleEye=n.toggleEye.bind(n),n}return a(t,e),T(t,[{key:"toggleEye",value:function(){var e=this.state.isPasswordField;this.setState({isPasswordField:!e})}},{key:"clearField",value:function(e,t){var n=this.props.resetErrors;t.preventDefault(),this.setState(r({},e,""),n)}},{key:"updateField",value:function(e,t){t.preventDefault(),this.setState(r({},e,t.target.value))}},{key:"setRecaptchaResponse",value:function(e){this.setState({gRecaptchaResponse:e})}},{key:"renderEye",value:function(){var e=this.state.isPasswordField,t=e?"":"blue";return w("button",{type:"button",className:"Register__input-action-btn",onClick:this.toggleEye},void 0,w("span",{className:"icon icon-eye "+t}))}},{key:"renderClear",value:function(e){return w("button",{type:"button",className:"Register__input-action-btn",onClick:this[e]},void 0,D)}},{key:"render",value:function(){var e=this.props,t=e.error,r=e.theme,o=e.platform,i=this.state,a=i.username,u=i.password,s=i.isPasswordField,c=i.email,l=i.gRecaptchaResponse,h=s?"password":"text",m=n.i(v.a)(o,["/login","/register"]),_=p.a.recaptchaSitekey,b=r===S?"light":"dark";return w("div",{className:"Register"},void 0,w("div",{className:"Register__header"},void 0,w(d.e,{className:"Register__close icon icon-x",href:m})),L,j,w(d.d,{className:"Register__form",method:f.a.POST,action:"/register"},void 0,w(y.a,{name:"username",type:"text",placeholder:"Choose a unique username",showTopBorder:!0,error:t.username,onChange:this.updateUsername,value:a},void 0,t.username?this.renderClear("clearUsername"):null),w(y.a,{name:"password",type:h,placeholder:"Choose a unique password",showTopBorder:!1,shouldAutocomplete:!1,error:t.password,onChange:this.updatePassword,value:u},void 0,t.password?this.renderClear("clearPassword"):this.renderEye()),w(y.a,{name:"email",type:"email",placeholder:"Your email",showTopBorder:!1,error:t.email,onChange:this.updateEmail,value:c},void 0,t.email?this.renderClear("clearEmail"):null),F,w(g.a,{sitekey:_,onSuccess:this.setRecaptchaResponse,theme:b,reloadComparisonKey:JSON.stringify(t)}),w("input",{name:"gRecaptchaResponse",type:"hidden",value:l}),t.captcha?C(t.captcha):null,t["default"]?C(t["default"]):null,U),k)}}]),t}(s.a.Component),H=function(e){var t={username:"",password:"",email:"",captcha:"","default":""},n=e?e.error:null;return n in P?t.email=P[n]:n in R?t.password=R[n]:n in I?t.username=I[n]:n in O?t.captcha=O[n]:n in A?t["default"]=A[n]:n&&(t["default"]=n),t},q=n.i(l.createSelector)(function(e){return e.theme},function(e){return e.platform},function(e){return e.session},function(e,t,n){return{theme:e,platform:t,error:H(n)}}),V=function(e){return{resetErrors:function(){e(h.b(null))}}};t.a=n.i(c.connect)(q,V)(B)},function(e,t,n){"use strict";function r(e){var t=e.topPosts,r=e.width,o=e.postId,i=e.visited,a=e.goToPost,u=e.loid,s=u.loid,c=u.loidCreated,l=e.isSelf,f=function(e){return!e.over_18&&e.uuid!==o&&!e.stickied&&i.indexOf(e.id)===-1},d=y()(p()(f),v.a)(t);if(!d)return null;var h=d.disableComments,m=n.i(O.a)(n.i(_.a)(h?d.url:d.cleanPermalink)),g=d.id,b=d.title,E=d.name,w=R({preview:{}},d,{thumbnail:d.thumbnail||"img/placeholder-thumbnail.svg",cleanUrl:"#"}),S=function(e){e.preventDefault(),a({url:m,id:E,isSelfText:l,loid:s,loidCreated:c})},I="bottom",A=P("span",{className:"PostHeader__post-descriptor-line"},void 0,d.ups," upvotes in r/",d.subreddit),x="NEXT",N=n.i(O.d)(w);return P("div",{className:"NextContent container "+I,onClick:S},"nextcontent-container",P("article",{className:"Post"},g,P("div",{className:"NextContent__post-wrapper"},void 0,P(T.a,{post:w,single:!1,compact:!0,expandedCompact:!1,onTapExpand:function(){},width:r,toggleShowNSFW:!1,showNSFW:!1,editing:!1,toggleEditing:!1,saveUpdatedText:!1,forceHTTPS:!0,isDomainExternal:N,renderMediaFullbleed:!0,showLinksInNewTab:!1}),P("header",{className:"NextContent__header"},void 0,P("div",{className:"NextContent__post-descriptor-line"},void 0,P("span",{className:"NextContent__post-title-line"},void 0,b)),A)),P("div",{className:"NextContent__next-link"},void 0,x,C)))}function o(e){var t=e.feature,n=e.postId,o=e.winWidth,i=e.topPosts,a=e.visited,u=e.goToPost,s=e.loid,c=e.post;return t.enabled(I)&&c&&0!==i.length?P(r,{topPosts:i,width:o,postId:n,visited:a,goToPost:u,loid:s,isSelf:c.isSelf}):null}var i=n(1690),a=(n.n(i),n(0)),u=n.n(a),s=n(3),c=(n.n(s),n(4)),l=(n.n(c),n(7)),f=n(10),d=n(1183),p=n.n(d),h=n(1184),v=n.n(h),m=n(1185),y=n.n(m),g=n(187),_=n(220),b=n(431),E=n(5),T=n(658),w=n(183),S=n(48),O=n(219),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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),R=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I=E.h.VARIANT_NEXTCONTENT_BOTTOM,A=u.a.PropTypes,C=P("span",{className:"icon-nav-arrowforward icon"});o.propTypes={postId:A.string.isRequired,post:A.object,topPosts:A.arrayOf(A.object).isRequired,feature:A.object.isRequired,visited:A.arrayOf(A.string).isRequired,loid:A.object},o.defaultProps={winWidth:360};var x=n.i(c.createSelector)(function(e,t){return t.postId},function(e,t){return e.posts[t.postId]},function(e){return e.posts},b.a,function(e){return e.visitedPosts},function(e){return e.loid},g.a,function(e){return e.postsLists},function(e,t,r,o,i,a,u,s){var c=n.i(S.d)({subredditName:u}),l=n.i(w.a)(c),f=s[l],d=!f||f.loading?[]:f.results,p=d.map(function(e){var t=e.uuid;return r[t]});return{postId:e,post:t,topPosts:p,feature:o,visited:i,loid:a}}),N=function(e){return{goToPost:function(t){var r=t.url;e(n.i(l.e)(f.a.GET,r))}}};t.a=n.i(s.connect)(x,N)(o)},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)}function a(e){var t=e.modal.props,r=t.subredditName,o=t.thingId,i=h.m(o);return n.i(E.a)(e,r,i)}var u=n(1691),s=(n.n(u),n(0)),c=n.n(s),l=n(3),f=(n.n(l),n(4)),d=(n.n(f),n(274)),p=n(275),h=n(20),v=n(408),m=n(146),y=n(42),g=n(1458),_=n(1604),b=n(1614),E=n(682),T=n(30),w=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),S=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),O=c.a.PropTypes,P=w("div",{className:"ReportingModal__close"}),R=w(y.a,{}),I=function(e){function t(){var e,n,i,a;r(this,t);for(var u=arguments.length,s=Array(u),c=0;c<u;c++)s[c]=arguments[c];return n=i=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),i.state={sequenceOfParentRules:[],indexOfChosenChildRule:null,fileAComplaintPage:!1},i.handlerBack=i.handleBack.bind(i),i.handlerNextOrSubmit=i.handleNextOrSubmit.bind(i),a=n,o(i,a)}return i(t,e),S(t,[{key:"render",value:function(){var e=this,t=this.props,r=t.onCloseReportFlow,o=t.sitewideRules,i=t.thingId,a=this.state,u=a.fileAComplaintPage,s=a.indexOfChosenChildRule,c=a.sequenceOfParentRules,l=!!o.length,f=null!==s,d=!c.length,p=this.getCurrentRules()[s];return w("div",{className:"ReportingModalWrapper",onClick:r},void 0,w("div",{className:"ReportingModal",onClick:this.stopPropagationOfClick},void 0,w("div",{className:"ReportingModal__title-bar"},void 0,P,w("div",{className:"ReportingModal__title"},void 0,this.getCurrentHeader())),u?w("div",{},void 0,w("div",{className:"ReportingModal__file-prompt"},void 0,p.complaintPrompt),w("div",{className:"ReportingModal__file-complaint-button"},void 0,w("a",{href:n.i(_.a)(decodeURI(p.complaintUrl),{thing:i}),target:"_blank"},void 0,p.complaintButtonText))):l?w("div",{className:"ReportingModal__options"},void 0,this.getCurrentRules().map(function(t,n){return e.renderReportRow(t,n)})):R,u?w("div",{className:"ReportingModal__submit"},void 0,w("div",{className:n.i(T.a)("ReportingModal__submit-button",{disabled:!0})},void 0,"REPORT"),w("div",{className:"ReportingModal__back-button",onClick:r},void 0,"CLOSE")):l?w("div",{className:"ReportingModal__submit"},void 0,w("div",{className:n.i(T.a)("ReportingModal__submit-button",{disabled:!f}),onClick:f?this.handlerNextOrSubmit:this.stopPropagationOfClick},void 0,!f||this.getCurrentRules()[s].nextStepReasons&&this.getCurrentRules()[s].nextStepReasons.length?"NEXT":"REPORT"),w("div",{className:"ReportingModal__back-button",onClick:d?r:this.handlerBack},void 0,d?"CLOSE":"BACK")):null))}},{key:"getAllRules",value:function(){var e=this.props,t=e.sitewideRules,n=e.subredditName,r=e.subredditRules,o=t.slice(),i="It breaks r/"+n+"'s rules";if(r&&r.length){var a={nextStepHeader:"Which rule does it break?",nextStepReasons:r,reasonTextToShow:i,getReportReasonToShow:function(){return i}};o.splice(2,0,a)}return o}},{key:"getCurrentRules",value:function(){var e=this.state.sequenceOfParentRules,t=this.getAllRules();return e.forEach(function(e){t=t[e].nextStepReasons}),t}},{key:"getCurrentHeader",value:function(){var e=this.state,t=e.fileAComplaintPage,n=e.indexOfChosenChildRule,r=e.sequenceOfParentRules,o=this.getCurrentRules()[n];if(t)return o.complaintPageTitle;if(!r.length)return"We're sorry something's wrong. How can we help?";var i=this.getAllRules(),a=void 0;return r.forEach(function(e){a=i[e],i=i[e].nextStepReasons}),a.nextStepHeader}},{key:"onUpdateIndexOfChosenRule",value:function(e){this.setState({indexOfChosenChildRule:e})}},{key:"onAddToSequenceOfParentRules",value:function(e){var t=this.state.sequenceOfParentRules.slice();t.push(e),this.setState({sequenceOfParentRules:t,indexOfChosenChildRule:null})}},{key:"handleNextOrSubmit",value:function(e){e.stopPropagation();var t=this.props,n=t.onCloseReportFlow,r=t.onSubmit,o=t.thingId,i=this.state.indexOfChosenChildRule,a=this.getCurrentRules()[i];if(a.fileComplaint)return void this.setState({fileAComplaintPage:!0});if(a.nextStepReasons&&a.nextStepReasons.length)this.onAddToSequenceOfParentRules(i);else{var u=void 0;u=a instanceof d.a?g.a.fromSitewideRule(o,a):g.a.fromSubredditRule(o,a),r(u),n()}}},{key:"handleBack",value:function(e){e.stopPropagation();var t=this.state.sequenceOfParentRules.slice();t.pop(),this.setState({sequenceOfParentRules:t,indexOfChosenChildRule:null})}},{key:"renderReportRow",value:function(e,t){var r=this,o=function(e){e.stopPropagation(),r.onUpdateIndexOfChosenRule(t)},i=this.state.indexOfChosenChildRule===t,a=n.i(T.a)("icon",{"icon-check-circled":i,"icon-circle":!i}),u=e.getReportReasonToShow();return w("div",{className:"ReportingModal__option",onClick:o},void 0,w("div",{className:a}),w("div",{className:"ReportingModal__reason-text"},void 0,u))}},{key:"stopPropagationOfClick",value:function(e){e.stopPropagation()}}]),t}(c.a.Component);I.propTypes={onCloseReportFlow:O.func.isRequired,onSubmit:O.func.isRequired,sitewideRules:O.arrayOf(d.a),subredditName:O.string,subredditRules:O.arrayOf(p.a),thingId:O.string};var A=n.i(f.createSelector)(function(e){return e.modal.props.thingId},function(e){return n.i(b.a)(e)},function(e){return e.modal.props.subredditName},function(e){return a(e)},function(e,t,n,r){return{thingId:e,sitewideRules:t,subredditName:n,subredditRules:r}}),C=function(e){return{onCloseReportFlow:function(){return e(v.a())},onSubmit:function(t){return e(m.c(t))}}};t.a=n.i(l.connect)(A,C)(I)},function(e,t,n){"use strict";function r(e){var t=e.onClickAccept,n=e.onClickDecline,r=e.onClickInside,o=e.onClickOutside,i=e.rules,a=e.subredditName;return v("div",{className:"RulesModal",onClick:o},void 0,v("div",{className:"RulesModal__modal",onClick:r},void 0,i?v("div",{className:"RulesModal__body"},void 0,v("header",{className:"RulesModal__header"},void 0,v("h2",{className:"RulesModal__title"},void 0,"Rules for r/",a),y),v("div",{className:"RulesModal__rules"},void 0,i.map(function(e){return u.a.createElement(p.a,e)})),v("footer",{className:"RulesModal__footer"},void 0,v("a",{className:"RulesModal__rulesLink",href:"/r/"+a+"/about/rules",target:"_blank"},void 0,"View the full list of rules."),v("div",{className:"RulesModal__footerButtonRow"},void 0,v("button",{className:"RulesModal__button RulesModal__declineButton",onClick:n},void 0,"Decline"),v("button",{className:"RulesModal__button RulesModal__acceptButton",onClick:t},void 0,"Agree")))):g))}function o(e,t){var n=t.featureName,r=t.isRequired,o=t.onDecline,i=t.subredditName;return{onClickOutside:function(){r||(e(f.c(n,i)),e(l.a()))},onClickAccept:function(){e(f.c(n,i)),e(l.a())},onClickDecline:function(){e(l.a()),o&&o(e)}}}var i=n(1693),a=(n.n(i),n(0)),u=n.n(a),s=n(3),c=(n.n(s),n(4)),l=(n.n(c),n(408)),f=n(179),d=n(42),p=n(667),h=n(682),v=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),m=u.a.PropTypes,y=v("p",{className:"RulesModal__description"},void 0,"The moderators ask you to observe these rules:"),g=v(d.a,{});r.propTypes={featureName:m.string.isRequired,isRequired:m.bool.isRequired,thingType:m.string.isRequired,onClickAccept:m.func,onClickDecline:m.func,onClickInside:m.func,onClickOutside:m.func.isRequired,onDecline:m.func,rules:m.arrayOf(m.shape(p.a.propTypes)),subredditName:m.string.isRequired},r.defaultProps={onClickAccept:function(){},onClickDecline:function(){},onClickInside:function(){},onDecline:function(){},rules:null};var _=n.i(c.createSelector)(function(e,t){return n.i(h.a)(e,t.subredditName,t.thingType);
},function(e){return{rules:e}});t.a=n.i(s.connect)(_,o)(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)}function a(e){e&&e.focus()}var u=n(1694),s=(n.n(u),n(0)),c=n.n(s),l=n(6),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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=c.a.PropTypes,h=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleResetInput=n.handleResetInput.bind(n),n}return i(t,e),d(t,[{key:"componentDidMount",value:function(){a(this.refs.input)}},{key:"handleResetInput",value:function(){this.refs.input.value="",a(this.refs.input)}},{key:"render",value:function(){var e=this.props,t=e.placeholder,n=e.initialValue,r=e.subreddit;return f(l.d,{className:"SearchBar",action:"/search"},void 0,f("input",{type:"hidden",name:"subreddit",value:r},"search-hidden"),c.a.createElement("input",{key:"search",className:"SearchBar__input",defaultValue:n,name:"q",placeholder:t,ref:"input",type:"search"}),f("div",{className:"SearchBar__reset icon icon-x-circled",onClick:this.handleResetInput}))}}]),t}(c.a.Component);h.propTypes={subreddit:p.string,initialValue:p.string,placeholder:p.string},h.defaultProps={subreddit:"",initialValue:"",placeholder:"Search Reddit"},t.a=h},function(e,t,n){"use strict";var r=n(1695),o=(n.n(r),n(0)),i=(n.n(o),n(3)),a=(n.n(i),n(4)),u=(n.n(a),n(177)),s=n(281),c=n(1438),l=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),f=l("span",{className:"icon icon-nav-arrowback"}),d=function(e){var t=e.pageData,n=e.closeSearchBar,r=t.queryParams,o=t.urlParams,i=o.subredditName,a=r.q;return l(s.a,{fullscreen:!0,onCloseOverlay:n},void 0,l("div",{className:"SearchBarOverlay__searchArea"},void 0,l("div",{className:"SearchBarOverlay__close",onClick:n},void 0,f),l("div",{className:"SearchBarOverlay__barContainer"},void 0,l(c.a,{subreddit:i,initialValue:a?decodeURIComponent(a):""}))))};t.a=n.i(i.connect)(n.i(a.createSelector)(function(e){return e.platform.currentPage},function(e){return{pageData:e}}),function(e){return{closeSearchBar:function(){return e(u.i())}}})(d)},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(3),a=(n.n(i),n(4)),u=(n.n(a),n(95)),s=n.n(u),c=n(1617),l=n(293),f=n(281),d=n(657),p=n(1382),h=n(1724),v=n.n(h),m=n(5),y=n(88),g=n(46),_=n(431),b=n(411),E=n(17),T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),S=m.g.NIGHTMODE,O={utm_source:"mweb_navbar",utm_medium:"2X",utm_name:"desktop_link"},P=365,R="icon-user-account icon-large blue",I=function(e){var t=e.url;return t.indexOf("/help")!==-1||t.indexOf("/wiki")!==-1?{href:e.url}:{href:""+E.a.reddit+e.url,noRoute:!0}},A=w(d.b,{text:"Log in / sign up",icon:R,href:"/login"}),C=function(){return A},x=function(e){return w(d.b,{text:"Ask To Open In App (On)",icon:"icon-linkout icon-large blue",noRoute:!0,onClick:e.dismissedXpromo},"xpromo-off")},N=w("form",{className:"OverlayMenu-row-right-item",action:"/logout",method:"POST"},void 0,w("button",{type:"submit"},void 0,"Log out")),M=w(d.b,{text:"Settings",noRoute:!0,href:"https://www.reddit.com/prefs",icon:"icon-settings icon-large blue"},"settings"),k=function(e){var t=e.inboxCount,n=void 0;return t&&(n=w("span",{className:"badge badge-orangered badge-with-spacing"},void 0,t)),[w(d.b,{text:e.name,href:"/user/"+e.name,icon:R},"account",N),w(d.b,{text:["Inbox",n],href:"/message/messages",icon:"icon-message icon-large "+(t?"orangered":"blue")},"inbox"),w(d.b,{text:"Saved",href:"/user/"+e.name+"/saved",icon:"icon-save icon-large lime"},"saved"),M]},D=w(p.a,{}),L=function(e){var t=e.compact,r=e.theme,i=e.pageData,a=e.user,u=e.optOut,s=e.feature,p=i.url,h=i.queryParams,y=T({},h,O);return w(f.a,{},void 0,s.enabled(m.h.MCDONALDS_CAMPAIGN)&&w(d.b,{href:"https://smart.link/5b86b5c671171",text:D,iconURL:E.a.assetPath+"/img/mcdonalds-snoo@2x.png",noRoute:!0,iconWidth:"22px"},"mcdonalds-campaign"),a?k(a):C(),w(d.c,{action:"/actions/overlay-compact-toggle",icon:"icon-compact icon-large blue",text:(t?"Card":"Compact")+" view"},"compact-toggle"),w(d.c,{action:"/actions/overlay-theme-toggle",icon:"icon-spaceship icon-large blue",text:(r===S?"Day":"Night")+" Theme"},"theme-toggle"),w(d.b,{text:"Desktop Site",icon:"icon-desktop icon-large blue",noRoute:!0,href:E.a.reddit+n.i(l.a)(p,y),onClick:e.onGoToDesktop},"goto-desktop"),u?x(e):null,w(d.a,{icon:"icon-info icon-large",text:"About Reddit"},"about-reddit",v.a.aboutItems.map(function(e){return o.a.createElement(d.b,T({},I(e),{key:e.url,text:n.i(c.a)(e.title)}))})),w(d.a,{icon:"icon-rules icon-large",text:"Reddit Rules"},"reddit-rules",v.a.ruleItems.map(function(e){return o.a.createElement(d.b,T({},I(e),{key:e.url,text:n.i(c.a)(e.title)}))})))},j=n.i(a.createSelector)(function(e){return e.compact},function(e){return e.theme},function(e){return e.platform.currentPage},g.s,y.a,_.a,function(e,t,n,r,o,i){return{compact:e,theme:t,pageData:n,optOut:r,user:o,feature:i}}),F=function(e){return{dismissedXpromo:function(){return e(n.i(b.a)())}}},U=function(e,t){return T({},e,t,{onGoToDesktop:function(){s.a.set("mweb-no-redirect","1",{domain:E.a.rootReddit,expires:P})}})};t.a=n.i(i.connect)(j,F,U)(L)},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(1696),u=(n.n(a),n(0)),s=n.n(u),c=n(3),l=(n.n(c),n(151)),f=n(664),d=n(30),p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),v=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),m=!!(window&&window.navigator&&window.navigator.share),y=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),v(t,[{key:"render",value:function(){var e=this,t=this.props,r=t.link,o=t.visible,i=t.hideCTA,a=t.icon,u=t.iconType,s=!r,c=m?"SHARE LINK":"COPY LINK";return h("div",{className:n.i(d.a)("ShareCTA",{visible:o,pending:s})},void 0,h("div",{className:"ShareCTA__content"},void 0,h("span",{className:"ShareCTA__close icon icon-x",onClick:i}),h("div",{className:"ShareCTA__header"},void 0,h("img",{className:"ShareCTA__image "+u,src:a}),"Share this Link"),h("div",{className:"ShareCTA__target"},void 0,s?"Preparing your link":r),h("div",{className:"ShareCTA__button",onClick:function(){e.handleShare()}},void 0,c)))}},{key:"handleShare",value:function(){var e=this.props.link;e&&this.props.executeShare()}}]),t}(s.a.Component),g=function(e){return p({},n.i(f.b)(e),{link:e.sharing.link,visible:e.sharing.visible})},_={executeShare:l.b,hideCTA:l.c};t.a=n.i(c.connect)(g,_)(y)},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(1698),s=(n.n(u),n(0)),c=n.n(s),l=n(3),f=(n.n(l),n(30)),d=n(147),p=n(57),h=n(43),v=n(5),m=this,y=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),g=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),_="Open in the official Reddit app",b="Fastest way to browse and packed with exclusive features like Chat and News.",E="NO",T="CONTINUE",w=y("div",{className:"SnackBar__header"},void 0,y(d.a,{}),y("span",{className:"SnackBar__text"},void 0,_)),S=y("div",{className:"SnackBar__body"},void 0,b),O=function(e){function t(){o(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.state={dismissed:!1},e}return a(t,e),g(t,[{key:"render",value:function(){var e=this,t=this.props,r=t.href,o=t.listingClickModalIsActive,i=function(){e.props.promoDismissed(),e.setState({dismissed:!0})},a=this.state.dismissed||o,u=!this.props.nightmode;return y("div",{className:n.i(f.a)("SnackBar","amp",{dismissed:a},{nightmode:u})},void 0,w,S,y("div",{className:"SnackBar__buttons"},void 0,y("div",{className:"SnackBar__no SnackBar__button",onClick:i},void 0,E),y("a",{className:"SnackBar__yes SnackBar__button",href:r},void 0,T)))}}]),t}(c.a.Component),P=function(e){var t=n.i(p.j)(e,e.platform.currentPage.url,{tags:[v.t[v.c.SNACKBAR]],utm_content:v.t[v.c.SNACKBAR]}),r=e.xpromo.listingClick.active;return{href:t,nightmode:"nightmode"===e.theme,listingClickModalIsActive:r}},R={promoDismissed:function(){return function(){var e=r(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e(n.i(h.d)()),e(n.i(h.e)());case 2:case"end":return t.stop()}},t,m)}));return function(t){return e.apply(this,arguments)}}()}};t.a=n.i(l.connect)(P,R)(O)},function(e,t,n){"use strict";function r(e){var t=e.subreddit,n=e.subredditName,r=e.subredditRequest,o=e.user;return d("div",{className:"SubredditAbout"},void 0,t?d("div",{className:"SubredditAbout__content"},void 0,d("div",{className:"SubredditAbout__community-rules-link"},void 0,d(c.b,{href:"/r/"+n+"/about/rules"},void 0,"View this communitys rules")),d(f.a,{},void 0,d("div",{className:"SubredditAbout__description",dangerouslySetInnerHTML:{__html:t.descriptionHTML}}))):r&&r.failed?d("div",{className:"SubredditAbout__loading-error"},void 0,"Sorry, there was an error loading ",d(c.b,{href:"/r/"+n},void 0,"r/"+n),o.loggedOut&&h):v)}var o=n(1701),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(42),f=n(119),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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),p=a.a.PropTypes,h=d("div",{className:"SubredditAbout__try-logging-in"},void 0,"You may need to try ",d(c.b,{href:"login.php"},void 0,"logging in")," to view this community"),v=d(l.a,{});r.propTypes={subreddit:p.shape({descriptionHTML:p.string.isRequired}),subredditName:p.string.isRequired,subredditRequest:p.shape({failed:p.bool.isRequired}),user:p.shape({loggedOut:p.bool.isRequired})},r.defaultProps={subreddit:null,subredditRequest:null,user:null};var m=n.i(s.createSelector)(function(e,t){return e.subreddits[t.subredditName]},function(e,t){return e.subredditRequests[t.subredditName]},function(e){return e.user},function(e,t,n){return{subreddit:e,subredditRequest:t,user:n}});t.a=n.i(u.connect)(m)(r)},function(e,t,n){"use strict";function r(e){var t=e.subredditName,n=e.rules,r=e.requestError;return d("div",{className:"SubredditRulesList"},void 0,n?d("div",{className:"SubredditRulesList__content"},void 0,d("header",{},void 0,d("h2",{className:"SubredditRulesList__title"},void 0,"Rules for r/",t),h),n.map(function(e){return a.a.createElement(f.a,e)})):r?d("div",{className:"SubredditRulesList__error"},void 0,"Sorry, there was an error loading ",d(c.b,{href:"/r/"+t},void 0,"r/"+t)):v)}var o=n(1703),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(42),f=n(667),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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),p=a.a.PropTypes,h=d("p",{className:"SubredditRulesList__description"},void 0,"Rules that visitors must follow to participate. May be used as reasons to report or ban."),v=d(l.a,{});r.propTypes={subredditName:p.string.isRequired,rules:p.arrayOf(p.shape(f.a.propTypes)),requestError:p.bool},r.defaultProps={rules:null,requestError:!1};var m=n.i(s.createSelector)(function(e,t){var n=t.subredditName;return e.subredditRules[n]},function(e,t){var n=t.subredditName;return e.subredditRulesRequests[n]},function(e,t){return{rules:e,requestError:t&&t.failed}});t.a=n.i(u.connect)(m)(r)},function(e,t,n){"use strict";var r=n(1704),o=(n.n(r),n(0)),i=n.n(o);n.d(t,"a",function(){return f});var 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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),u=i.a.PropTypes,s=a("div",{className:"SuspensionBanner__text"},void 0,"Your account has been suspended."),c=a("div",{className:"SuspensionBanner__text"},void 0,"Uh oh! We have suspended your account due to suspicious activity. Not to worry. You can continue using Reddit by resetting your password."),l=a("div",{className:"SuspensionBanner__icon icon icon-xl icon-law"}),f=function(e){var t=s,n=c,r="https://www.reddithelp.com/en/categories/using-reddit/your-reddit-account/my-account-was-disabled",o="https://www.reddithelp.com/en/node/851";return a("a",{className:"SuspensionBanner",href:e.isFPR?r:o,target:"blank"},void 0,l,e.isFPR?n:t)};f.propTypes={isFPR:u.bool}},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)}function a(e){switch(e.type){case h.c.ERROR:return u(e,"error","moose");case h.c.SUCCESS:return u(e,"success","snoo");case h.c.REPORT_SUCCESS:return u(e,"report-success","flag");default:return null}}function u(e,t,n){return m("div",{className:"Toaster__content"},void 0,m("div",{className:"Toaster__icon-box "+t},void 0,m("div",{className:"icon icon-"+n})),m("div",{className:"Toaster__message"},void 0,e.message),m("div",{className:"Toaster__close icon icon-nav-close",onClick:e.onClose}))}var s=n(1705),c=(n.n(s),n(0)),l=n.n(c),f=n(1297),d=(n.n(f),n(3)),p=(n.n(d),n(4)),h=(n.n(p),n(150)),v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),y=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),g=l.a.PropTypes,_=function(){},b=80,E=3e3,T={stiffness:400},w=function(e){function t(){var e,n,i,a;r(this,t);for(var u=arguments.length,s=Array(u),c=0;c<u;c++)s[c]=arguments[c];return n=i=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),i.state={isShowing:!0},i.closeTimeout=null,a=n,o(i,a)}return i(t,e),y(t,[{key:"componentDidMount",value:function(){var e=this;this.closeTimeout=setTimeout(function(){return e.setState({isShowing:!1})},E)}},{key:"componentWillUnmount",value:function(){clearTimeout(this.closeTimeout)}},{key:"render",value:function(){var e=this,t=this.state.isShowing,r=t?{bottom:-b}:{bottom:0},o=t?{bottom:n.i(f.spring)(0,T)}:{bottom:n.i(f.spring)(-b,T)},i=t?_:this.props.onClose;return m(f.Motion,{defaultStyle:r,style:o,onRest:i},void 0,function(t){return m("div",{className:"Toaster",style:v({height:b},t)},void 0,a(e.props))})}}]),t}(l.a.Component);w.propTypes={message:g.string.isRequired,type:g.string.isRequired,isOpen:g.bool.isRequired,onClose:g.func.isRequired};var S=n.i(p.createSelector)(function(e){return e.toaster},function(e){return v({},e)}),O=function(e){return{onClose:function(){return e(h.d())}}},P=function(e,t){return v({},e,{onClose:function(){e.isOpen&&t.onClose()}})};t.a=n.i(d.connect)(S,O,P)(w)},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(1707),u=(n.n(a),n(0)),s=n.n(u),c=n(6),l=n(17),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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=l.a.assetPath,h=f("span",{className:"Tutorial__rowText"},void 0,"Welcome! Reddit is home to many communities, called subreddits, dedicated to every topic imaginable"),v=f("span",{className:"Tutorial__rowText"},void 0,"Vote on posts and help communities lift the best content to the top"),m=f("span",{className:"Tutorial__rowText"},void 0,"Join communities to fill up this empty screen with fresh posts"),y=f(c.b,{className:"Tutorial__button",href:"/r/popular"},void 0,"Explore popular communities"),g=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),d(t,[{key:"render",value:function(){return f("div",{className:"Tutorial"},void 0,f("div",{className:"Tutorial__row"},void 0,f("img",{className:"Tutorial__rowImg",src:p+"/img/tutorial-post.png"}),h),f("div",{className:"Tutorial__row"},void 0,f("img",{className:"Tutorial__rowImg",src:p+"/img/tutorial-vote.png"}),v),f("div",{className:"Tutorial__row"},void 0,f("img",{className:"Tutorial__rowImg",src:p+"/img/tutorial-discuss.png"}),m),y)}}]),t}(s.a.Component);t.a=g},function(e,t,n){"use strict";function r(e){var t=e.iconName,n=e.color;return f("span",{className:"UserProfileSummary__badgeIcon icon icon-"+t+" "+n+" "})}var o=n(1709),i=(n.n(o),n(0)),a=n.n(i),u=n(6),s=n(632),c=n(289),l=n(186);n.d(t,"a",function(){return p});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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),d=a.a.PropTypes,p=function(e){var t=e.user;return f("div",{className:"UserProfileSummary"},void 0,f(v,{},void 0,f(b,{text:n.i(c.a)(t.karma),subtext:"KARMA",half:!0},void 0,_),f(b,{text:n.i(l.a)(t.createdUTC),subtext:"REDDIT AGE",half:!0},void 0,g)),a.a.createElement(h,e))};p.propTypes={user:d.instanceOf(s.a),isMyUser:d.bool};var h=function(e){var t=e.user,r=e.isMyUser;return r?t.goldExpiration?f(v,{},void 0,f(b,{text:n.i(l.b)(t.goldExpiration),subtext:"of reddit gold remaining"},void 0,y)):null:f(u.b,{href:"/user/"+t.name+"/gild"},void 0,f(v,{},void 0,f(b,{text:"Give "+t.name+" gold",subtext:"show your appreciation"},void 0,m)))},v=function(e){return f("div",{className:"UserProfileSummary__row"},void 0,e.children)},m=f(r,{iconName:"gold-snoo",color:"gold"}),y=f(r,{iconName:"gold-snoo",color:"gold"}),g=f(r,{iconName:"cake",color:"mint"}),_=f(r,{iconName:"karma",color:"orangered"}),b=function(e){var t=e.text,n=e.subtext,r=e.half;return f("div",{className:"UserProfileSummary__badge "+(r?"half":"")},void 0,e.children,f("div",{className:"UserProfileSummary__text-wrapper"},void 0,f("div",{className:"UserProfileSummary__badge-text"},void 0,t),f("div",{className:"UserProfileSummary__badge-subtext"},void 0,n)))}},function(e,t,n){"use strict";var r=n(1711),o=(n.n(r),n(0)),i=(n.n(o),n(3)),a=(n.n(i),n(4)),u=(n.n(a),n(63)),s=n.n(u),c=n(6),l=n(437),f=n(42),d=n(119),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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),h=48,v=function(e,t){return p(d.a,{},void 0,p("div",{className:"Wiki__content",dangerouslySetInnerHTML:{__html:e},onClick:m(t)}))},m=function(e){return function(t){var n=t.target.href;if(n){var r=s.a.parse(n),o=r.path,i=r.hash;if(o===e&&i){t.preventDefault();var a=document.getElementById(i.slice(1));a&&(document.body.scrollTop=a.offsetTop-h)}}}},y=p("div",{className:"Wiki__try-logging-in"},void 0,"You may need to try ",p(c.b,{href:"/login"},void 0,"logging in")," to view this community"),g=function(){return y},_=function(e,t){return p("div",{className:"Wiki__loading-error"},void 0,"Sorry, there was an error loading ",p(c.b,{href:"/r/"+e},void 0,"r/"+e),t.loggedOut&&g())},b=p(f.a,{}),E=function(e){var t=e.currentPath,n=e.subredditName,r=e.user,o=e.wiki,i=e.wikiRequest;return p("div",{className:"Wiki"},void 0,o?v(o.contentHTML,t):i&&i.failed?_(n,r):b)},T=n.i(a.createSelector)(function(e,t){return e.wikis[n.i(l.b)(t.subredditName,t.path)]},function(e,t){return e.wikiRequests[n.i(l.b)(t.subredditName,t.path)]},function(e){return e.user},function(e){return e.platform.currentPage.url},function(e,t,n,r){return{wiki:e,wikiRequest:t,user:n,currentPath:r}});t.a=n.i(i.connect)(T)(E)},function(e,t,n){"use strict";var r=n(1712),o=(n.n(r),n(0)),i=(n.n(o),n(439)),a=n(647),u=n(5);n.d(t,"a",function(){return h});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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),c=s("div",{className:"XPromoAdFeed__img"}),l=s("h1",{className:"XPromoAdFeed__title"},void 0,"Reddit Mobile App",s("br",{}),"Better, Faster, Stronger"),f=s("p",{className:"XPromoAdFeed__text"},void 0,"The best way to Reddit",s("br",{}),"is the Reddit Mobile App"),d=function(){return s("div",{className:"XPromoAdFeed mSmall"},void 0,c,l,f,s("div",{className:"XPromoAdFeed__button"},void 0,s(a.a,{interstitialType:u.Q,title:"OPEN IN APP",visitTrigger:n.i(i.a)(u.e.ADFEED)})))},p=s(d,{}),h=function(e,t){return e.splice(t,0,p)}},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(1713),u=(n.n(a),n(0)),s=n.n(u),c=n(676),l=n(30),f=n(17),d=n(147),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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),h=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),v=f.a.assetPath,m=p("div",{className:"XPromoPopup__overlay"}),y=p(d.a,{}),g=p("span",{className:"XPromoPopup__actionTitle"},void 0,"Reddit App"),_=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.handleDismiss=function(){e.setState({dismissed:!0}),e.props.onDismiss&&e.props.onDismiss()},e.state={dismissed:!1},e}return i(t,e),h(t,[{key:"render",value:function(){var e=this.props,t=e.link,r=e.active,o=e.text,i=void 0===o?"this post":o,a=n.i(l.a)("XPromoPopup",{active:r&&!this.state.dismissed}),u=void 0,s=void 0,f=void 0;return n.i(c.a)()?(u=v+"/img/safari.png",f="Safari",s="XPromoPopup__safari"):n.i(c.b)()?(u=v+"/img/chrome.png",f="Chrome",s="XPromoPopup__chrome"):(u=v+"/img/chrome.png",f="Browser",s="XPromoPopup__chrome"),p("div",{className:a},void 0,m,p("div",{className:"XPromoPopup__content"},void 0,p("div",{className:"XPromoPopup__header"},void 0,"See "+i+" in"),p("div",{className:"XPromoPopup__actions"},void 0,p("div",{className:"XPromoPopup__action"},void 0,y,g,p("a",{href:t,className:"XPromoPopup__actionButton"},void 0,"OPEN")),p("div",{className:"XPromoPopup__action"},void 0,p("img",{src:""+u,className:s}),p("span",{className:"XPromoPopup__actionTitle"},void 0,f),p("span",{onClick:this.handleDismiss,className:"XPromoPopup__actionButton"},void 0,"CONTINUE")))))}}]),t}(s.a.Component);t.a=_},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(17)),u=n(676),s=n(30),c=n(291),l=n(57),f=n(1714),d=(n.n(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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}()),p=function(e){return e?a.a.assetPath+"/img/google-play-badge.png":a.a.assetPath+"/img/app-store-badge_white.svg"},h=n.i(i.createStructuredSelector)({appLink:function(e){return n.i(l.j)(e,e.platform.currentPage.url,{tags:["footer_upsell"],utm_content:"footer_upsell"})}}),v=n.i(o.connect)(h),m=d("h5",{className:"xPromoAppStoreFooter__header"},void 0,"Get infinite scroll, chat, and more with our app."),y=function(e){var t=e.appLink,r=n.i(c.a)();return d("div",{className:"xPromoAppStoreFooter"},void 0,m,d("a",{className:n.i(s.a)("xPromoAppStoreFooter__appButton",{
large:r,"m-safari":n.i(u.a)()}),href:t,style:{backgroundImage:"url('"+p(r)+"')"}}))};t.a=v(y)},function(e,t,n){"use strict";var r=n(0),o=(n.n(r),n(1422)),i=n(147),a=n(5),u=n(1715),s=(n.n(u),Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}),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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),l=a.g.NIGHTMODE,f=c(o.a,{}),d=c(i.a,{}),p=function(e){var t=e.subreddit,n=e.theme;return t?t.iconImage?c("div",{className:"Avatar",style:s({},n===l&&{borderColor:t.keyColor},{backgroundImage:"url('"+t.iconImage+"')"})}):f:d};t.a=p},function(e,t,n){"use strict";var r=n(0),o=(n.n(r),n(17)),i=n(1380),a=n(644),u=n(1453),s=n(438),c=n(1716),l=(n.n(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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}()),f=l(a.a,{}),d=l("h3",{className:"xPromoChat__title"},void 0,"Switch to the Reddit App"),p=l("p",{className:"xPromoChat__description"},void 0,"Get the Reddit app to view your chatrooms."),h=function(e){var t=e.appLink,r=e.subreddit,a=e.theme,c=r&&r.accountsActive;return l("div",{className:"xPromoChat"},void 0,l(i.a,{large:!0},void 0,l(u.a,{subreddit:r,theme:a}),f),d,p,!!c&&l("div",{className:"xPromoChat__activeUsers"},void 0,l("img",{className:"xPromoChat__usersIcon",src:o.a.assetPath+"/img/snoovatars.png"}),l("span",{className:"xPromoChat__number"},void 0,n.i(s.a)(c)+" active members")),l("a",{className:"xPromoChat__button",href:t},void 0,"Join reddit chat"))};t.a=h},function(e,t,n){"use strict";var r=n(1718),o=(n.n(r),n(0)),i=(n.n(o),n(3)),a=(n.n(i),n(89)),u=n(57),s=n(5),c=n(46),l=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),f=function(e){return{isOptOut:n.i(c.g)(e),isWikiPage:n.i(a.g)(e),link:n.i(u.j)(e,e.platform.currentPage.url,{tags:[s.t[s.c.TOPBUTTON]],utm_content:s.t[s.c.TOPBUTTON]})}},d=function(e){var t=e.isOptOut,n=e.isWikiPage,r=e.link;return t||n?null:l("a",{className:"TopButton",href:r},void 0,"USE APP")};t.a=n.i(i.connect)(f)(d)},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(372)),l=n.n(c),f=n(4),d=(n.n(f),n(1618)),p=n(43),h=n(46),v=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),m=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onScroll=function(){var e=n.props,t=e.alreadyScrolledStart,r=e.alreadyScrolledPast,o=e.xpromoThemeIsUsual,i=e.isXPromoPersistent;o||t||n.props.promoScrollStart(),n.isScrollPast()&&!r&&n.props.promoScrollPast(),!n.isScrollPast()&&r&&n.props.promoScrollUp(),o&&r&&!i&&n.toggleOnScroll(!1)},n.scrollListener=l()(n.onScroll,100),n}return i(t,e),v(t,[{key:"launchPersistentExperiment",value:function(){this.props.isXPromoPersistent&&this.displayPersistBannerByTimer()}},{key:"displayPersistBannerByTimer",value:function(){var e=this;d.a(function(t){switch(t){case d.b.SHOW_SAME_SESSION:case d.b.SHOW_NEW_SESSION:e.props.promoPersistActivate();break;case d.b.HIDE:case d.b.BLOCK_SHOW:e.props.promoPersistDeactivate()}})}},{key:"isScrollPast",value:function(){var e=this.props.alreadyScrolledPast,t=window.pageYOffset>window.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;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function(){function e(t,n,o){r(this,e),this.thingId=t,this.ruleName=n,this.reason=o}return i(e,null,[{key:"fromSitewideRule",value:function(t,n){return new e(t,o.a.SITEWIDE_RULE_KEYWORD,n.reasonText)}},{key:"fromSubredditRule",value:function(t,n){return new e(t,n.shortName,n.violationReason)}}]),e}();t.a=a},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){return{loading:!0,failed:!1}}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){return{id:e,loading:!0,failed:!1}}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){return{id:e,loading:!0,failed:!1}}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){return{subreddits:{},fetching:!1,loaded:!1}}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){return{id:e,loading:!0}}},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(3),a=(n.n(i),n(4)),u=(n.n(a),n(1621)),s=n(1466),c=n(76),l=n(672),f=n(1467),d=n(1468),p=n(1469),h=n(1470),v=n(1471),m=n(673),y=n(1472),g=n(1465),_=n(1396),b=n(1397),E=n(1404),T=n(1408),w=n(1417),S=n(1411),O=n(1418),P=n(1421),R=n(1427),I=n(1428),A=n(1430),C=n(1434),x=n(1446),N=n(1441),M=n(1419),k=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),D=c.b.join("|"),L=n.i(a.createSelector)(function(e){return e.platform.currentPage},function(e){return e.toaster.isOpen},function(e){return!!e.widgets.tooltip.id},function(e){return e.posting.showCaptcha},function(e){return!!e.modal.type},function(e){return e.quarantine},function(e,t,n,r,o,i){var a=e.urlParams.subredditName,u=a?a.toLowerCase():"",s=u in i,c=s?i[u]:"";return{isModalOpen:o,isToasterOpen:t,showDropdownCover:n||r||o,url:e.url,referrer:e.referrer,statusCode:e.status,subredditName:a,isQuarantine:s,quarantineMessage:c}}),j=function(e){return function(t){return k(M.a,{},void 0,o.a.createElement(e,t))}},F=j(l.a),U=j(P.a),B=j(s.a),H=j(d.a),q=j(p.a),V=j(h.a),G=j(y.a),W=j(v.a),K=j(m.b),Y=j(f.a),z=j(_.a),X=j(w.a),$=j(g.a),Q=k(u.a,{url:"/login",component:T.a}),J=k(u.a,{url:"/register",component:C.a}),Z=k(u.a,{url:"/message/messages/:threadId",component:S.a}),ee=k(u.a,{url:"/r/:subredditName/submit",component:I.a}),te=k(u.a,{url:"/submit",component:I.a}),ne=k(u.a,{url:"/submit/to_community",component:R.a}),re=k(u.a,{url:"/",component:F}),oe=k(u.a,{url:"/place",component:U}),ie=k(u.a,{url:"/r/:subredditName(place)",component:U}),ae=k(u.a,{url:"/r/:subredditName",component:F}),ue=k(u.a,{url:"/r/:subredditName/comments/:postId/comment/:commentId",component:B}),se=k(u.a,{url:"/r/:subredditName/comments/:postId/:postTitle/:commentId",component:B}),ce=k(u.a,{url:"/r/:subredditName/comments/:postId/:postTitle?",component:B}),le=k(u.a,{url:"/search",component:H}),fe=k(u.a,{url:"/r/:subredditName/search",component:H}),de=k(u.a,{url:"/r/:subredditName/about",component:q}),pe=k(u.a,{url:"/r/:subredditName/about/rules",component:V}),he=k(u.a,{url:"/r/:subredditName/(w|wiki)/:path(.*)?",component:G}),ve=k(u.a,{url:"/(help|w|wiki)/:path(.*)?",component:G}),me=k(u.a,{url:"/comments/:postId/:postTitle/:commentId",component:B}),ye=k(u.a,{url:"/comments/:postId/:postTitle?",component:B}),ge=k(u.a,{url:"/user/:userName/activity",component:W}),_e=k(u.a,{url:"/user/:userName/comments",component:W}),be=k(u.a,{url:"/user/:userName/submitted",component:W}),Ee=k(u.a,{url:"/user/:userName",component:W}),Te=k(u.a,{url:"/user/:userName/gild",component:K}),we=k(u.a,{url:"/user/:userName/:savedOrHidden(saved|hidden)",component:Y}),Se=k(u.a,{url:"/user/:userName/about",component:K}),Oe=k(u.a,{url:"/user/:userName/comments/:postId/:postTitle/:commentId",component:B}),Pe=k(u.a,{url:"/user/:userName/comments/:postId/:postTitle?",component:B}),Re=k(u.a,{url:"/user/:multiUser/m/:multi",component:F}),Ie=k(u.a,{url:"/message/compose",component:z}),Ae=k(u.a,{url:"/message/:mailType",component:X}),Ce=k(u.a,{url:"/notification/:mailType",component:X}),xe=k(u.a,{url:"/xpromochat",component:$}),Ne=k(b.a,{}),Me=k(x.a,{}),ke=k(O.a,{}),De=k(N.a,{}),Le=function(e){var t=e.statusCode,n=e.url,r=e.referrer,o=e.isToasterOpen,i=e.isModalOpen,a=e.showDropdownCover,s=e.subredditName,c=e.isQuarantine,l=e.quarantineMessage;return c?k("div",{className:"AppMainPage"},void 0,k(M.a,{},void 0,k(A.a,{subredditName:s,quarantineMessage:l}))):200!==t?k("div",{className:"AppMainPage"},void 0,k(M.a,{},void 0,k(E.a,{status:t,url:n,referrer:r}))):k("div",{className:"AppMainPage"},void 0,k(u.b,{},void 0,Q,J,Z,ee,te,ne,re,oe,ie,ae,k(u.a,{url:"/:sort("+D+")",component:F}),k(u.a,{url:"/r/:subredditName(place)/:sort("+D+")",component:U}),k(u.a,{url:"/r/:subredditName/:sort("+D+")",component:F}),ue,se,ce,le,fe,de,pe,he,ve,me,ye,ge,_e,be,Ee,Te,we,Se,Oe,Pe,Re,k(u.a,{url:"/user/:multiUser/m/:multi/:sort("+D+")",component:F}),Ie,Ae,Ce,xe),a?Ne:null,o?Me:null,i?ke:null,De)};t.a=n.i(i.connect)(L)(Le)},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(1454)),u=n(5),s=n(89),c=n(57),l=n(1719),f=(n.n(l),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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}()),d=u.R.CHAT_INTERSTITIAL,p=u.R.USER_PROFILE,h=n.i(i.createStructuredSelector)({appLink:function(e){var t=n.i(s.d)(e),r=t&&t.url,o=n.i(s.e)(r)?p:d,i=!1;return n.i(c.j)(e,e.platform.currentPage.url,{tags:[o],utm_content:o},i)},subreddit:function(e){var t=n.i(s.f)(e);return e.subreddits[t&&t.toLowerCase()]},theme:function(e){return e.theme}}),v=n.i(o.connect)(h,null),m=function(e){var t=e.appLink,n=e.subreddit,r=e.theme;return f("div",{className:"ChatPage"},void 0,f(a.a,{appLink:t,subreddit:n,theme:r}))};t.a=v(m)},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(112)),f=n.n(l),d=n(7),p=n(10),h=n(117),v=n(1584),m=n(1435),y=n(1387),g=n(1388),_=n(283),b=n(42),E=n(1432),T=n(1433),w=n(666),S=n(643),O=n(641),P=n(187),R=n(430),I=n(426),A=n(48),C=n(291),x=n(424),N=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},M=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),k=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),D=u.a.PropTypes,L=.01,j=function(e){return!e.promoted&&"all_ads"===e.whitelistStatus&&6===e.wls&&!e.over18},F=M("div",{className:"CommentsPage"},void 0,M(b.a,{})),U=M(w.a,{}),B=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),k(t,[{key:"componentDidMount",value:function(){Math.random()<=L&&this.props.fetchAds()}},{key:"render",value:function(){var e=this.props,t=e.pageParams,r=e.commentsPageId,o=e.post,i=e.isReplying,a=e.currentPage,u=e.preferences,s=e.isCrawlerRequest,c=e.postLoaded,l=e.onSortChange,d=e.onToggleReply,p=e.spoilersEnabled,h=e.commentsPageAds;return c?M("div",{className:"CommentsPage"},void 0,U,M(_.a,{postId:t.id,single:!0,subredditShowSpoilers:p},"post"),j(o)&&h.length>0&&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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),c=function(e){var t=u.a.pageParamsToSavedParams(e),r=u.a.isSavedPage(e),c=r?"savedRequests":"hiddenRequests",l=r?n.i(i.a)(t):n.i(a.a)(t);return s(o.a,{requestLocation:c,requestId:l})}},function(e,t,n){"use strict";var r=n(1720),o=(n.n(r),n(0)),i=(n.n(o),n(3)),a=(n.n(i),n(4)),u=(n.n(a),n(6)),s=n(675),c=n(429),l=n(1391),f=n(282),d=n(42),p=n(420),h=n(422),v=n(76);n.d(t,"a",function(){return W});var m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),g=[v.a.RELEVANCE,v.a.TOP,v.a.NEW,v.a.CONTROVERSIAL],_=y("div",{className:"SearchPage__loading"},void 0,y(d.a,{})),b=function(){return _},E=y("div",{className:"SearchPage__noResultsMsg"},void 0,"Sorry, we couldn't find any results for"),T=function(e){return y("div",{className:"SearchPage__noResults"},void 0,E,y("div",{className:"SearchPage__noresultsQuery"},void 0,"'",e,"'"))},w=y("div",{className:"SearchPage__helpfulMsg"},void 0,"Tap the ",y("div",{className:"SearchPage__helpfulIcon icon icon-search blue"})," icon to get started."),S=function(){return w},O=function(e){return y("div",{className:"SearchPage__communitiesResults"},void 0,e.map(function(e){return y("div",{className:"SearchPage__community"},e.uuid,y(l.a,{subredditName:e.uuid}))}))},P=y("div",{className:"SearchPage__communitiesHeaderMoreIcon icon icon-nav-arrowforward"}),R=function(e){var t=e.urlParams,n=e.queryParams,r=s.a.buildURL(t,m({},n,{type:"sr"}));return y(u.b,{className:"SearchPage__communitiesHeaderMore",href:r},void 0,"View More",P)},I=y("div",{className:"SearchPage__communitiesHeaderTitle"},void 0,"Communities"),A=function(e,t){return y("div",{className:"SearchPage__communitiesHeader"},void 0,I,e?R(t):null)},C=function(e,t,n){return!n&&(t.length>=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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),d=n.i(i.createStructuredSelector)({subreddit:function(e,t){var n=t.urlParams.subredditName;if(n)return e.subreddits[n.toLowerCase()]},subredditName:function(e,t){return t.urlParams.subredditName}}),p=function(e){return f("div",{className:"SubredditAboutPage__invalid-subreddit"},void 0,"Sorry, there's no about page for",f(a.e,{className:"SubredditAboutPage__invalid-link",href:"/r/"+e},void 0,"r/"+e))},h=n.i(o.connect)(d)(function(e){var t=e.subreddit,r=e.subredditName;return n.i(l.a)(r)?p(r):f("div",{className:"SubredditAboutPage"},void 0,f(u.a,{subredditName:r}),t&&t.quarantine?f(s.a,{expanded:!0,quarantineMessageHTML:t.quarantineMessageHTML,subredditName:r}):null,f(c.a,{subredditName:r}))})},function(e,t,n){"use strict";var r=n(0),o=(n.n(r),n(6)),i=n(279),a=n(1444),u=n(56);n.d(t,"a",function(){return l});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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),c=function(e){return s("div",{className:"SubredditRulesPage__invalid-subreddit"},void 0,"Sorry, there's no about page for",s(o.e,{className:"SubredditRulesPage__invalid-link",href:"/r/"+e},void 0,"r/"+e))},l=function(e){var t=e.urlParams.subredditName;return n.i(u.a)(t)?c(t):s("div",{className:"SubredditRulesPage"},void 0,s(i.a,{subredditName:t}),s(a.a,{subredditName:t}))}},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(669)),u=n(659),s=n(422),c=n(656),l=n(5),f=n(673),d=n(88),p=n(287),h=n(425),v=n(7),m=n(10);n.d(t,"a",function(){return E});var y=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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),g=n.i(i.createSelector)(d.a,function(e,t){return e.accounts[t.urlParams.userName.toLowerCase()]},function(e,t){return e.accountRequests[t.urlParams.userName]},function(e){return e.activitiesRequests},function(e){return e.subreddits},function(e){return e.preferences},function(e){return e.user&&!e.user.loggedOut},function(e,t){return t},function(e,t,r,o,i,a,u,s){var c=p.a.pageParamsToActivitiesParams(s),l=n.i(h.a)(c);return{myUser:e,queriedUser:t||{},queriedUserRequest:r,activitiesId:l,currentActivity:c.activity,isContributor:t&&!!t.subredditName,isLoggedIn:u,queriedUserSubreddit:t?i[t.subredditName.toLowerCase()]:null,preferences:a}}),_=function(e){return{toggleXPromoChat:function(){e(n.i(v.e)(m.a.GET,l.A))}}},b=y(s.a,{className:"UserProfilePage__sorts"}),E=n.i(o.connect)(g,_)(function(e){var t=e.myUser,n=e.queriedUser,r=e.queriedUserRequest,o=e.activitiesId,i=e.currentActivity,s=e.preferences,l=e.isContributor,d=e.isLoggedIn,p=e.toggleXPromoChat,h=e.queriedUserSubreddit,v=n.name,m=n.karma,g=n.subredditName,_=!!t&&t.name===v,E=!!r&&!r.loading,T=E&&l&&!!h&&h.over18;return y(c.a,{isContentAdultStatusKnown:E&&(!!h||!l),isContentOver18:T,userPermitsOver18:s.over18},void 0,y("div",{className:"UserProfilePage"},void 0,y(f.a,{},void 0,E&&y(a.a,{userName:v,userSubreddit:g,karma:m,isLoggedIn:d,isMyUser:_,currentActivity:i,toggleXPromoChat:p})),E&&b,y(u.a,{requestLocation:"activitiesRequests",requestId:o,thingProps:{userActivityPage:!0}})))})},function(e,t,n){"use strict";var r=n(0),o=(n.n(r),n(6)),i=n(279),a=n(1449),u=n(56);n.d(t,"a",function(){return l});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;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),c=function(e){return s("div",{className:"WikiPage__invalid-subreddit"},void 0,"Sorry, there's no wiki for",s(o.e,{className:"WikiPage__invalid-link",href:"/r/"+e},void 0,"r/"+e))},l=function(e){var t=e.urlParams,r=t.subredditName,o=t.path;return r&&n.i(u.a)(r)?c(r):s("div",{className:"WikiPage "},void 0,r?s(i.a,{subredditName:r.toLowerCase()}):null,s(a.a,{subredditName:r,path: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}var o=n(9),i=n(86),a=n(8),u={},s=function(e){return{id:e,loading:!0,failed:!1,error:null,meta: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 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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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.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;t<arguments.length;t++){
var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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.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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E={};t.a=function(){var e=arguments.length>0&&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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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.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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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.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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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 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);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(1170),a=n.n(i),u=n(73),s=n(48),c=n(8),l=n(117),f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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 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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u={showEUCookie:!1,numberOfTimesShown:0};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: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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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 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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i={requested:!1,models:[]};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.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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s={loid:"",loidCreated:"",loidCookie:"",loidCreatedCookie:"",edgeBucket:""};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: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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=["messages","comments","selfreply","mentions"].reduce(function(e,t){return u({},e,r({},t,{pending:!1,order:[],meta:{},error:null}))},{});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.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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i={visible:!1,title:"",content:"",button:""};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.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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a={title:"reddit: the front page of the internet"};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: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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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={};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 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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T={},w=function(e,t){var n=e[t.uuid];return n?t.set({events:n.events,expandedContent:n.expandedContent,media:n.media,mediaOembed:n.mediaOembed,preview:n.preview,promoted:n.promoted,selfTextMD:n.selfTextMD,selfTextHTML:n.selfTextHTML,outboundLink:n.outboundLink}):t};t.a=function(){var e=arguments.length>0&&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);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var o=n(8),i=n(55),a=n(1375),u=10,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 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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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.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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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 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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i={visible:!1,link:null,post:null,pending:!1,hasWebShare:!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 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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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 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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=n.i(c.a)(),d=function(e,t){var n=Object.keys(t);if(!n.length)return e;var r=l({},e.subreddits),o=!1;return n.forEach(function(e){var n=t[e];!n.userIsSubscriber&&r[e]?(o=!0,delete r[e]):n.userIsSubscriber&&!r[e]&&(o=!0,r[e]=n.toRecord())}),o?l({},e,{subreddits:r}):e};t.a=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.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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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 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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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 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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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 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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s={showBanner:!1,loginRequired:!1,scrolledPast:!1,scrolledStart:!1,ampExemption:!1};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 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);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var o=n(9),i=n(43),a={firstBuckets:[]};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.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;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),I=function(e){switch(e.type){case f.d:case d.f:case p.m:case h.m:case h.p:case v.h:case m.d:case y.e:case g.n:case _.g:case b.f:case E.d:case T.d:case w.d:case S.f:case S.g:case O.d:case P.d:var t=e.error;if(t)return t;if(e.payload&&e.payload.error)return e.payload.error}},A=function(e,t,r,o){var i=t.meta.userAgent,c=t.platform.currentPage;n.i(s.a)({error:e,userAgent:i,reduxInfo:r.toString(),requestUrl:n.i(a.b)(c),possibleDuplicate:o},{hivemind:u.a.statsURL,log:u.a.postErrorURL})},C=function(){function e(t){var n=arguments.length>1&&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<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:u.a.GET,value:function(){function e(){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function n(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}},n,this)}));return e}()}]),t}(u.b);t.a=c},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=n(1369),c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),c(t,[{key:u.a.POST,value:function(){function e(e){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function n(e){var t;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:t=(this.bodyParams.location||"").trim(),e(s.a(t));case 2:case"end":return n.stop()}},n,this)}));return e}()}]),t}(u.b);t.a=l},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=n(7),c=n(5),l=n(75),f=n(26),d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),d(t,[{key:u.a.GET,value:function(){function e(e,n){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function o(e,t){return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(t().session.isValid){r.next=2;break}return r.abrupt("return",e(s.a(c.B)));case 2:return r.next=4,n.i(l.a)(e);case 4:n.i(f.a)(t());case 5:case"end":return r.stop()}},o,this)}));return e}()}]),t}(u.b);t.a=p},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(7),s=n(10),c=n(17),l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:s.a.GET,value:function(){function e(e){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function n(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e(u.k(""+c.a.reddit+this.originalUrl));case 1:case"end":return t.stop()}},n,this)}));return e}()}]),t}(s.b);t.a=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")})}}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,t,r,o){var i=b({},n.i(g.b)(o),{successful:t,user_name:e.username});!t&&r&&(i.process_notes=r),n.i(y.a)().track("login_events","cs.login_attempt",i)}var s=n(10),c=n(7),l=n(65),f=n(296),d=n(181),p=n(8),h=n(416),v=n(5),m=n(88),y=n(121),g=n(26),_=n(417),b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),T=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),E(t,[{key:s.a.GET,value:function(){function e(e,n){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function o(e,t){var r,i,a,u;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:r=t(),n.i(m.a)(r)?(i=r.platform.currentPage,a=i.queryParams,u=i.hashParams,e(c.e(s.a.GET,"/",{queryParams:a,hashParams:u}))):n.i(g.a)(r);case 2:case"end":return o.stop()}},o,this)}));return e}()},{key:s.a.POST,value:function(){function e(e,n){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function o(e,t){var r,i,a,s,m,y,g,b,E,T,w,S;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return r=this.bodyParams,i=r.username,a=r.password,s=r.otp,m=r.redirectTo,y=!0,g=null,o.prev=3,b=t(),E=n.i(_.b)(b),T=b.twoFactorAuthentication&&b.twoFactorAuthentication.activeForm,w=T===v.l.BACKUP_CODE?"B_"+s:s,o.next=10,f.a.fromLogin(i,a,w);case 10:if(S=o.sent,!S||S.details!==v.m.TWO_FA_REQUIRED){o.next=14;break}return e(h.a()),o.abrupt("return");case 14:return e(d.a(S.session)),e(p.a()),o.next=18,e(c.k(m));case 18:E&&e(n.i(_.a)(E)),o.next=30;break;case 21:if(o.prev=21,o.t0=o["catch"](3),y=!1,!(o.t0 instanceof l.a&&o.t0.errors&&o.t0.errors[0])){o.next=29;break}g=o.t0.errors[0].error,e(d.b(g)),o.next=30;break;case 29:throw o.t0;case 30:u(this.bodyParams,y,g,t());case 31:case"end":return o.stop()}},o,this,[[3,21]])}));return e}()}]),t}(s.b);t.a=T},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=n(7),c=n(5),l=n(87),f=n(75),d=n(26),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),p(t,[{key:u.a.GET,value:function(){function e(e,n){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function o(e,t){var r;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(t().session.isValid){o.next=2;break}return o.abrupt("return",e(s.a(c.B)));case 2:return r=this.urlParams.mailType?this.urlParams.mailType:"messages",e(l.a(r,this.queryParams,this.urlParams.threadId)),o.next=6,n.i(f.a)(e);case 6:n.i(d.a)(t());case 7:case"end":return o.stop()}},o,this)}));return e}()}]),t}(u.b);t.a=h},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=n(214),c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),c(t,[{key:u.a.POST,value:function(){function e(e){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function o(e){var t;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:t=this.bodyParams.subredditName,e(n.i(s.b)(t));case 2:case"end":return r.stop()}},o,this)}));return e}()}]),t}(u.b);t.a=l},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=n(214),c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),c(t,[{key:u.a.POST,value:function(){function e(e){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function o(e){var t;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:t=this.bodyParams.subredditName,e(n.i(s.c)(t));case 2:case"end":return r.stop()}},o,this)}));return e}()}]),t}(u.b);t.a=l},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=n(407),c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),c(t,[{key:u.a.POST,value:function(){function e(e){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function o(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e(n.i(s.a)());case 1:case"end":return t.stop()}},o,this)}));return e}()}]),t}(u.b);t.a=l},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=n(415),c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),c(t,[{key:u.a.POST,value:function(){function e(e){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function o(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e(n.i(s.a)());case 1:case"end":return t.stop()}},o,this)}));return e}()}]),t}(u.b);t.a=l},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(20),s=n(10),c=n(7),l=n(179),f=n(55),d=n(5),p=n(74),h=n(75),v=n(26);n.d(t,"a",function(){return y}),n.d(t,"b",function(){return g});var m=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),y=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),m(t,[{key:s.a.GET,value:function(){function e(e,n){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function o(e,t){var r,i,a,s,f,m,y,g,_,b;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(r=t(),r.session.isValid){o.next=4;break}return e(c.a(d.B)),o.abrupt("return");case 4:return o.next=6,n.i(h.a)(e);case 6:if(n.i(v.a)(t()),i=r.platform.currentPage.urlParams.subredditName,a="rules_modal_on_submit",s=l.a(a,i),!r.platform.shell){o.next=12;break}return o.abrupt("return");case 12:if(i){o.next=14;break}return o.abrupt("return");case 14:if(!r.rulesModal[s]){o.next=16;break}return o.abrupt("return");case 16:if(f=p.a.withContext({state:r}),m=f.enabled(d.h.RULES_MODAL_ON_SUBMIT_CLICK_ANYWHERE),y=f.enabled(d.h.RULES_MODAL_ON_SUBMIT_CLICK_BUTTON),m||y){o.next=21;break}return o.abrupt("return");case 21:g=y,_=u.d,b=function(e){return e(c.e("get","/r/"+i))},e(l.b(a,i,_,g,b));case 25:case"end":return o.stop()}},o,this)}));return e}()}]),t}(s.b),g=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),m(t,[{key:s.a.GET,value:function(){function e(e,n){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function o(e,t){var r;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(r=t(),r.session.isValid){o.next=4;break}return e(c.a(d.B)),o.abrupt("return");case 4:return r.recentSubreddits.forEach(function(t){e(f.a(t))}),o.next=7,n.i(h.a)(e);case 7:n.i(v.a)(t());case 8:case"end":return o.stop()}},o,this)}));return e}()}]),t}(s.b)},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){if(!e)return!1;var t=e.split("/");return"r"===t[1]&&"comments"===t[3]}function s(e,t,r,o){var i=_({},n.i(y.b)(o),{successful:t,user_name:e.username,email:e.email,newsletter:e.newsletter&&"on"===e.newsletter[0]});!t&&r&&(i.process_notes=r),n.i(m.a)().track("login_events","cs.register_attempt",i)}var c=n(10),l=n(7),f=n(65),d=n(1457),p=n(296),h=n(181),v=n(8),m=n(121),y=n(26),g=n(434),_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),E=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),b(t,[{key:c.a.GET,value:function(){function e(e,n){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function o(e,t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.i(y.a)(t());case 1:case"end":return e.stop()}},o,this)}));return e}()},{key:c.a.POST,value:function(){function e(e,n){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function o(e,t){var r,i,a,m,y,_,b,E,T,w,S;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return r=this.bodyParams,i=r.username,a=r.password,m=r.email,y=r.newsletter,_=r.gRecaptchaResponse,b=!0,E=null,o.prev=3,o.next=6,n.i(d.a)(i,a,m,y,_);case 6:return T=o.sent,e(h.a(new p.a(T))),e(v.a()),w=n.i(g.a)(t().platform,["register","login"]),S=u(w)?w:"/",o.next=13,e(l.e(c.a.GET,S));case 13:o.next=24;break;case 15:if(o.prev=15,o.t0=o["catch"](3),b=!1,!(o.t0 instanceof f.a&&o.t0.errors&&o.t0.errors[0])){o.next=23;break}E=o.t0.errors[0].error,e(h.b(E)),o.next=24;break;case 23:throw o.t0;case 24:s(this.bodyParams,b,E,t());case 25:case"end":return o.stop()}},o,this,[[3,15]])}));return e}()}]),t}(c.b);t.a=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=n(178),c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),c(t,[{key:u.a.POST,value:function(){function e(e){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function n(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e(s.a());case 1:case"end":return t.stop()}},n,this)}));return e}()}]),t}(u.b);t.a=l},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=n(7),c=n(26),l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:u.a.GET,value:function(){function e(e,n){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function o(e,t){return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:e(n.i(s.l)(404)),n.i(c.a)(t());case 2:case"end":return r.stop()}},o,this)}));return e}()}]),t}(u.b);t.a=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")})}}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=n(55),c=n(75),l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:u.a.GET,value:function(){function e(e,n){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function o(e,t){var r,i;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(r=t(),!r.platform.shell){o.next=3;break}return o.abrupt("return");case 3:i=this.urlParams.subredditName,e(s.a(i)),n.i(c.a)(e);case 6:case"end":return o.stop()}},o,this)}));return e}()}]),t}(u.b);t.a=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")})}}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=n(215),c=n(55),l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:u.a.GET,value:function(){function e(e,n){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function n(e,t){var r,o;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(r=t(),!r.platform.shell){n.next=3;break}return n.abrupt("return");case 3:o=this.urlParams.subredditName,e(s.a(o)),e(c.a(o));case 6:case"end":return n.stop()}},n,this)}));return e}()}]),t}(u.b);t.a=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")})}}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=n(7),c=n(5),l=n(216),f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),f(t,[{key:u.a.POST,value:function(){function e(e,n){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function n(e,t){var r;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(r=t(),r.session.isValid){n.next=3;break}return n.abrupt("return",e(s.a(c.B)));case 3:e(l.a(this.bodyParams));case 4:case"end":return n.stop()}},n,this)}));return e}()}]),t}(u.b);t.a=d},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=n(7),c=n(287),l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:u.a.GET,value:function(){function e(e,n){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function n(e,t){var r,o,i,a,u,l;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:r=t(),o=r.platform.currentPage,i=o.urlParams,a=o.queryParams,u=i.userName,l=c.a.activityUrl(u,a.activity),e(s.k(l));case 5:case"end":return n.stop()}},n,this)}));return e}()}]),t}(u.b);t.a=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")})}}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=n(86),c=n(75),l=n(26),f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),f(t,[{key:u.a.GET,value:function(){function e(e,n){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function o(e,t){var r,i,a;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(r=t(),!r.platform.shell){o.next=3;break}return o.abrupt("return");case 3:return i=this.urlParams.userName,o.next=6,Promise.all([e(s.a({name:i})),n.i(c.a)(e)]);case 6:a=t(),n.i(l.a)(a,n.i(l.h)(a,{screen_name:"profile_about"}));case 8:case"end":return o.stop()}},o,this)}));return e}()}]),t}(u.b);t.a=d},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(7),s=n(10),c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),c(t,[{key:s.a.GET,value:function(){function e(e,n){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function o(e,t){var r,i,a,c,l,f,d;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:r=t(),i=r.platform.currentPage,a=i.urlParams,c=i.queryParams,l=i.hashParams,f=i.referrer,d=i.url,d=d.replace("/u/","/user/"),e(n.i(u.e)(s.a.GET,d,{urlParams:a,queryParams:c,hashParams:l}));case 5:case"end":return o.stop()}},o,this)}));return e}()}]),t}(s.b);t.a=l},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(7),s=n(10),c=n(88),l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),f(t,[{key:s.a.GET,value:function(){function e(e,n){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function o(e,t){var r,i,a,f,d,p,h,v,m,y;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:r=t(),i=r.platform.currentPage,a=n.i(c.a)(r),f=a&&!a.loggedOut,d=i.urlParams,p=i.queryParams,h=i.hashParams,v=d.verificationToken,m=l({},p,{verification_token:v}),y=function(e){return e&&!/^\/?verification\//.test(e.url)},e(f?n.i(u.e)(s.a.GET,"/",{queryParams:m,hashParams:h}):n.i(u.a)("/login",{queryParams:m,hashParams:h})),e(n.i(u.m)(y));case 8:case"end":return o.stop()}},o,this)}));return e}()}]),t}(s.b);t.a=d},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=n(55),c=n(218),l=n(75),f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),f(t,[{key:u.a.GET,value:function(){function e(e,n){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function o(e,t){var r,i,a,u;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(r=t(),!r.platform.shell){o.next=3;break}return o.abrupt("return");case 3:i=this.urlParams,a=i.subredditName,u=i.path,a&&e(s.a(a)),e(c.a({subredditName:a,path:u})),n.i(l.a)(e);case 7:case"end":return o.stop()}},o,this)}));return e}()}]),t}(u.b);t.a=d},function(e,t,n){"use strict";t.a=function(e){var t=e.meta,n=void 0===t?{}:t;return"SERVER"===n.env&&(n.userAgent||"").indexOf("bot")>-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;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),m=3e4,y=function(e){function t(e){var n=this;o(this,t);var a=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.handleBeforeInstallPrompt=function(e){a.props.isAddToHomePromptEnabled&&(a.props.hideXPromo(),a.props.isServiceWorkerRegistered?a.doPrompt(e):a.deferredPrompt=e)},a.doPrompt=function(){var e=r(regeneratorRuntime.mark(function t(e){var r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a.setState({installable:!0}),a.props.sendEvent("popup","view","add_to_home",!0),t.prev=2,t.next=5,e.userChoice;case 5:r=t.sent,"accepted"===r.outcome?a.props.sendEvent("popup","add","add_to_home",!0):a.props.sendEvent("popup","cancel","add_to_home",!0),a.props.isNotificationPromptEnabled&&!a.notificationTimeout&&(a.notificationTimeout=window.setTimeout(a.requestNotificationPermission,m)),t.next=12;break;case 10:t.prev=10,t.t0=t["catch"](2);case 12:a.props.showXPromo();case 13:case"end":return t.stop()}},t,n,[[2,10]])}));return function(t){return e.apply(this,arguments)}}(),a.handleAppInstalled=function(){a.props.setInstalledToHome(),a.props.sendEvent("mweb","install","pwa",!0)},a.requestNotificationPermission=r(regeneratorRuntime.mark(function u(){var e,t;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(window.Notification&&"granted"!==Notification.permission&&"denied"!==Notification.permission){n.next=2;break}return n.abrupt("return");case 2:return e=a.state.installable,a.props.sendEvent("notifications","view","system_prompt_permissions",e),n.next=6,Notification.requestPermission();case 6:t=n.sent,"granted"===t?a.props.sendEvent("notifications","enable","system_prompt_permissions",e):"denied"===t?a.props.sendEvent("notifications","disable","system_prompt_permissions",e):a.props.sendEvent("notifications","close","system_prompt_permissions",e);case 8:case"end":return n.stop()}},u,n)})),a.state={installable:!1},a}return a(t,e),v(t,[{key:"componentDidMount",value:function(){window.addEventListener("beforeinstallprompt",this.handleBeforeInstallPrompt),window.addEventListener("appinstalled",this.handleAppInstalled),this.props.isNotificationPromptEnabled&&(this.notificationTimeout=window.setTimeout(this.requestNotificationPermission,m))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("beforeinstallprompt",this.handleBeforeInstallPrompt),window.removeEventListener("appinstalled",this.handleAppInstalled)}},{key:"componentDidUpdate",value:function(){if(this.deferredPrompt&&this.props.isServiceWorkerRegistered&&this.props.isAddToHomePromptEnabled){var e=this.deferredPrompt;this.deferredPrompt=null,this.doPrompt(e)}}},{key:"render",value:function(){return null}}]),t}(s.a.Component),g=n.i(l.createStructuredSelector)({isServiceWorkerRegistered:function(e){return e.serviceWorker},isAddToHomePromptEnabled:d.c,isNotificationPromptEnabled:d.d,sendEvent:function(e){return function(t,r,o){var i=arguments.length>3&&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;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),v=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),i=e.url,a=e.scrollY;return n.state={url:i,scrollY:a},n.callMeasureScrollPosition=n.callMeasureScrollPosition.bind(n),n.measureScrollPosition=n.measureScrollPosition.bind(n),n}return i(t,e),h(t,[{key:"componentDidMount",
value:function(){window.addEventListener("scroll",this.callMeasureScrollPosition)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this.callMeasureScrollPosition)}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"callMeasureScrollPosition",value:function(){f()(this.measureScrollPosition)}},{key:"measureScrollPosition",value:function(){this.setState({scrollY:document.body.scrollTop})}},{key:"componentWillReceiveProps",value:function(e){if(e.url!==this.state.url){this.props.onSaveScrollPosition(this.state.url,this.state.scrollY);var t=e.url,n=e.scrollY;this.setState({url:t,scrollY:n}),f()(function(){document.body.scrollTop=n})}}},{key:"render",value:function(){return null}}]),t}(u.a.Component),m=function(e){return n.i(d.b)(e)},y=n.i(c.createSelector)(function(e){return m(e.platform.currentPage)},function(e){var t=e.scrollPositions,n=e.platform.currentPage;return t[m(n)]||0},function(e,t){return{url:e,scrollY:t}}),g=function(e){return{onSaveScrollPosition:function(t,n){e(p.a(t,n))}}};t.a=n.i(s.connect)(y,g)(v)},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(1612)),f=n(638),d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=3e5,h=function(e){function t(){var e,n,i,a;r(this,t);for(var u=arguments.length,s=Array(u),c=0;c<u;c++)s[c]=arguments[c];return n=i=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),i.refreshTimer=null,a=n,o(i,a)}return i(t,e),d(t,[{key:"componentDidMount",value:function(){var e=this;this.refreshSession(),n.i(l.a)(function(){return e.refreshSession({expiredOnly:!0})})}},{key:"componentDidUpdate",value:function(){this.startRefreshTimer()}},{key:"startRefreshTimer",value:function(){var e=this;clearTimeout(this.refreshTimer);var t=Math.max(.9*(this.props.session.expires-Date.now()),p);this.refreshTimer=setTimeout(function(){return e.refreshSession()},t)}},{key:"refreshSession",value:function(){var e=arguments.length>0&&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;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=u.a.PropTypes,h=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),d(t,[{key:"componentDidMount",value:function(){this.fire()}},{key:"shouldComponentUpdate",value:function(e){return e.pixelTrackerUrl!==this.props.pixelTrackerUrl}},{key:"componentDidUpdate",value:function(){this.fire()}},{key:"fire",value:function(){var e=this.props,t=e.compact,n=e.dnt,r=e.loid,o=e.loidCreated,i=e.referrer,a=e.pixelTrackerUrl;if("undefined"!=typeof Image&&a){var u=a+"&r="+Math.random();if(i){var s=f.a.parse(i).host;s&&(u+="&referrer_domain="+s)}r&&o&&(u+="&loid="+r,u+="&loidcreated="+o),u+=t?"&view_type=compact":"&view_type=list",u+="&dnt="+n;var c=new Image;c.src=u}}},{key:"render",value:function(){return null}}]),t}(u.a.Component);h.propTypes={compact:p.bool,dnt:p.bool,loid:p.string,loidCreated:p.number,referrer:p.string,pixelTrackerUrl:p.string},h.defaultProps={compact:!1,dnt:!1,loid:"",loidCreated:"",referrer:"",pixelTrackerUrl:""};var v=n.i(c.createSelector)(function(e){return e.compact},function(e){return e.user},function(e){return e.loid},function(e){return e.platform},function(e){return e.tracking},function(t,n,r,o,i){return{compact:t,dnt:!!e.DO_NOT_TRACK,loid:n.loggedOut?r.loid:null,loidCreated:n.loggedOut?r.loidCreated:null,referrer:o.currentPage.referrer,pixelTrackerUrl:i.pixel}});t.a=n.i(s.connect)(v)(h)}).call(t,n(36))},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return o});var r=["AskHistorians","apple","CasualConversation","tourettes","PartyParrot","townofsalemgame","books","NeutralPolitics","history","freebies","battlestations","pcgaming","DBZDokkanBattle","analog","pokemongo","ClashRoyale","OnePieceTC","television","MealtimeVideos","steam_giveaway","marketing","toronto","ukpersonalfinance","lesbianactually","MLPLounge","SandersForPresident","DailyShow","mylittlepony","adventures","running","aspergers_Beta","VPN","woweconomy","NotTheOnion","Videos","needamod","scandal","yokaiwatch","jillstein","RandomActsOfBlowJob","NBA2K","SeattleWA","ccw","freelance","shutupandtakemymoney","chronicpain","jailbreak","iOSthemes","pathofexile","mylittleantisonic1","drugs","nfl","campingandhiking","DestinyTheGame","Louisville","Drugs","LGBTeens","politics","twitchplayspokemon","nintendo","LiverpoolFC","Judaism","restaurateur","powerlifting","parentsofmultiples","woahdude","JUSTNOMIL","offmychest","Lightroom","niu","gopro","StuckInThisAirport","History","Vinesauce","titlegore","partyparrot","NASCAR","wow","welding","icandrawthat","DiaryOfARedditor","bravefrontier","ToolBand","BoomBeach","CompetitiveOverwatch","WikiLeaks","Rainbow6","crypto","ShiftyLifeProTips","Electronics","AskElectronics","howtheworldworks","HITMAN","InfinityTrain","boulder","2007scape","InternetIsBeautiful","androiddev","animenocontext","birthday","dirtykikpals","AT4W","NintendoSwitch","FireEmblemHeroes","amiibo","mildlyinfuriating","trailerparkboys","steam","korea","realms","wow","SubredditDrama","Wellthatsucks","TheoryOfReddit","BoomBeach","sitecore","SkincareAddiction","maninthehighcastle","DestinyTheGame","Minecraft","worldnews","OverwatchUniversity","thewalkingdead","natureismetal","SexyButNotPornofMen","confession","emulation","popheads","WritingPrompts","thenetherlands","BigBrother","razer","runescape","cordcutters","MorbidReality","opiates","DestinyLore","Neverwinter","im14andthisisfunny","AndroidGaming","phoenix","DarkNetMarkets","DarkNetMarketsNoobs","howtonotgiveafuck","youwontgetbanned","chess","csgo","lounge","prettygirls","Overwatch","AngelDensetsu","food","military","darknet"],o=["actuallesbians","addiction","alcoholism","anxiety","AskTransgender","bipolarreddit","BodyAcceptance","depression","gay","gaybros","genderqueer","getting_over_it","GriefSupport","itgetsbetter","lgbt","mentalhealth","miscarriage","opiatesrecovery","rape","rapecounseling","redditorsinrecovery","selfharm","stopdrinking","stopselfharm","stopsmoking","SuicideBereavement","SuicideWatch","transgender","transpassing"]},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;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function u(e,t){r(this,u),this.next=null,this.prev=null,this.value=e,this.key=t},a=function(){function e(t){r(this,e),this.head=null,this.tail=null,this.data={},this.maxSize=t,this.currentSize=0}return o(e,[{key:"get",value:function(e){var t=this.data[e];if(void 0!==t)return this._removeNodeFromList(t),this._setHeadNode(t),t.value}},{key:"set",value:function(e,t){var n=this.data[e];return void 0===n?(this.currentSize===this.maxSize?(n=this.tail,this._removeNodeFromList(n),this.data[n.key]=void 0,n.key=e,n.value=t):(n=new i(t,e),this.currentSize+=1),this.data[e]=n):this._removeNodeFromList(n),this._setHeadNode(n),this}},{key:"remove",value:function(e){var t=this.data[e];return void 0!==t&&(this._removeNodeFromList(t),this.data[e]=void 0,this.currentSize-=1),this}},{key:"_removeNodeFromList",value:function(e){e.prev?e.prev.next=e.next:(this.head=e.next,this.head&&(this.head.prev=null)),e.next?e.next.prev=e.prev:(this.tail=e.prev,this.tail&&(this.tail.next=null))}},{key:"_setHeadNode",value:function(e){e!==this.head&&(e.next=this.head,e.prev=null,null!==this.head&&(this.head.prev=e),this.head=e,null===this.tail&&(this.tail=e))}}]),e}();t.a=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")}var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(t){r(this,e),this.size=t,this.stack=new Array(t),this.head=0}return o(e,[{key:"push",value:function(e){this.stack[this.head]=e,this.head=(this.head+1)%this.size}},{key:"values",value:function(){return this.stack.slice(this.head).concat(this.stack.slice(0,this.head)).filter(function(e){return!!e}).reverse()}}]),e}();t.a=i},function(e,t,n){"use strict";var r=n(677),o=n(5);n.d(t,"a",function(){return i});var i=function(){var e=document.getElementById(o.o);if(!e)return!0;var t=e.getBoundingClientRect();return!(t&&t.height&&t.width)||n.i(r.a)(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")})}}var o=n(442),i=n.n(o),a=n(17);n.d(t,"a",function(){return s});var u=this,s=function(){var e=r(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e){var t=setTimeout(function(){return e(!1)},3e3);i.a.init(a.a.branchKey,{},function(n,r){n?e(!1):r&&e(r.has_app),clearInterval(t)})}));case 1:case"end":return e.stop()}},t,u)}));return function(){return e.apply(this,arguments)}}()},function(e,t,n){"use strict";function r(){a=document.createElement("textArea"),a.style.opacity=0,a.style.position="fixed",a.style.left="-200px",a.style.top="-200px",a.contentEditable=!0,a.readOnly=!0,document.body.appendChild(a)}function o(){return a||r(),a}function i(e){var t=o();if(t.value=e,navigator.userAgent.match(/ipad|ipod|iphone/i)){var n=document.createRange();n.selectNodeContents(t);var r=window.getSelection();r.removeAllRanges(),r.addRange(n),t.setSelectionRange(0,999999)}else t.select();var i=document.execCommand("copy");return t.blur(),i}t.a=i;var a=null},function(e,t,n){"use strict";var r=n(17);n.d(t,"b",function(){return o}),n.d(t,"a",function(){return i});var o=function(){return{secure:r.a.https,secureProxy:r.a.httpsProxy,httpOnly:!1}},i=function(){var e=new Date;e.setFullYear(e.getFullYear()+2);var t=o();return t.expires=e,t}},function(e,t,n){"use strict";var r=36e5,o=Math.floor(100*Math.random()),i=function(e,t,n,i,a){var u={},s=void 0;if(t.isLoggedOut){if(t.loid.loidCreated){var c=new Date(t.loid.loidCreated).getTime(),l=(new Date).getTime();s=l-c}}else;return s&&(u.age_hours=Math.floor(s/r)),u.subreddit_screen=!!n,u.logged_in=!t.isLoggedOut,u.percentage=u.random_number=o,u.placement=e,u.full_url="undefined"!=typeof window&&window.location&&window.location.href,u.nsfw=n&&n.over18,n&&(u.subreddit=n.name),u.theme=i,u.compact=a,u};t.a=i},function(e,t,n){"use strict";function r(){var e=arguments.length>0&&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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a={list:[],currentCollapsedDepth:1/0}},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)}function a(e){return function(t){function n(e){r(this,n);var t=o(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.state={mounted:!1},t}return i(n,t),c(n,[{key:"componentDidMount",value:function(){this.setState({mounted:!0})}},{key:"render",value:function(){return this.state.mounted?s.a.createElement(e,this.props):null}}]),n}(s.a.Component)}var u=n(0),s=n.n(u),c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.a=a},function(e,t,n){"use strict";function r(e){return"A"===e.tagName?e:e.parentNode?r(e.parentNode):null}t.a=r},function(e,t,n){"use strict";t.a=function(e){return e.startsWith("http")?e.replace(/^http:\/\//i,"https://"):"https://"+e}},function(e,t,n){"use strict";function r(e,t){return e.replace(o,function(e,n){return n in t?t[n]:e})}t.a=r;var o=/%\((\w+)\)s/g},function(e,t,n){"use strict";(function(e){function n(t){if(t.origin===e.location.origin||p.test(t.origin)||"null"===t.origin){var n=JSON.parse(t.data),r=n.type;if(v.test(r)){var o=r.split(".",2)[1];if(m[o]){var i=m[o];i.targets.forEach(function(e){frames.postMessage(e,r,n.data,n.options)})}var a=new CustomEvent(r,{detail:n.data});a.source=t.source,e.dispatchEvent(a)}}}function r(t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on"+t,n)}function o(t,n){e.removeEventListener?e.removeEventListener(t,n):e.detachEvent&&e.detachEvent("on"+t,n)}function i(e){return new RegExp("^http(s)?:\\/\\/"+e.join("|")+"$","i")}function a(e){return new RegExp("\\.(?:"+e.join("|")+")$")}function u(e){return/\*/.test(e)}var s=".*",c=".postMessage",l={targetOrigin:"*"},f=/\..+$/,d=[s],p=i(d),h=[c],v=a(h),m={},y=!1;t.a={postMessage:function(e,t,n,r){f.test(t)||(t+=c),r=r||{};var o=void 0;for(o in l)r.hasOwnProperty(o)||(r[o]=l[o]);e.postMessage(JSON.stringify({type:t,data:n,options:r}),r.targetOrigin)},receiveMessage:function(e,t,n,i){"string"==typeof e&&(i=n,n=t,t=e,e=null),i=i||this;var a=function(t){e&&e!==t.source&&e.contentWindow!==t.source||n.apply(i,arguments)};return r(t,a),{off:function(){o(t,a)}}},proxy:function(e,t){this.listen(e),Array.isArray(t)||(t=[t]);var n=m[e];n?n.targets=[].concat(n.targets,t):n={targets:t},m[e]=n},receiveMessageOnce:function(e,t,n,r){var o=frames.receiveMessage(e,t,function(){n&&n.apply(this,arguments),o.off()},r);return o},addPostMessageOrigin:function(e){u(e)?d=[s]:d.indexOf(e)===-1&&(frames.removePostMessageOrigin(s),d.push(e),p=i(d))},removePostMessageOrigin:function(e){var t=d.indexOf(e);t!==-1&&(d.splice(t,1),p=i(d))},listen:function(e){h.indexOf(e)===-1&&(h.push(e),v=a(h)),y||(r("message",n),y=!0)},stopListening:function(e){var t=h.indexOf(e);t!==-1&&(h.splice(t,1),h.length?v=a(h):(o("message",n),y=!1))}}}).call(t,n(36))},function(e,t,n){"use strict";function r(e){if(i()(e,["platform","currentPage","urlParams","postId"])&&i()(e,["commentsPages","data","current"])){var t=e.commentsPages.data[e.commentsPages.data.current];return t.postId}if(i()(e,["platform","currentPage","urlParams","subredditName"])){var n=e.platform.currentPage.urlParams.subredditName;if(n){var r=e.subreddits[n.toLowerCase()];if(r)return r.name}}return null}var o=n(112),i=n.n(o);t.a=r},function(e,t,n){"use strict";var r=n(95),o=n.n(r);n.d(t,"a",function(){return a});var i="reddaid",a=function(){var e=o.a.get(i);return e||null}},function(e,t,n){"use strict";function r(e){return e.replace(/^http:\/\//,"https://")}function o(e,t,n){var r=e.split("#"),o=f(r,2),i=o[0],a=o[1],u=void 0!==a?"#"+a:"";return""+i.replace(d,t).replace(v,"")+n+u}function i(e){return o(e,p,"-mobile.mp4")}function a(e){return o(e,h,".webm")}function u(e){return o(e,p,"-mobile.jpg")}function s(e){var t=n.i(l.a)(e);if("gfycat.com"===t)return u(e)}function c(e,t){var o=n.i(l.a)(e);if(o){if("gfycat.com"===o)return{mp4:i(e),webm:a(e),poster:u(e)};if("redditmedia.com"===o&&y.test(e)){var s=r(e);return{mp4:s,poster:t}}if("giphy.com"===o&&v.test(e)){var c=r(e);return{mp4:c.replace(v,".mp4"),poster:c.replace(v,"_s.gif")}}if("imgur.com"===o){var f=r(e);if(f=f.replace(_,".gifv"),(g.test(f)||/\.jpg(\?.*$)$/.test(f))&&(f=f.replace(g,"/").replace(/\.(jpg|gif|gifv)(\?.*$)?/,""),f+=".gifv"),m.test(f))return{webm:f.replace(m,".webm"),mp4:f.replace(m,".mp4"),poster:f.replace(m,"h.jpg")}}}}var l=n(681);n.d(t,"b",function(){return s}),t.a=c;var f=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=/^https?:\/\/(.*\.?)gfycat.com/,p="https://thumbs.gfycat.com",h="https://zippy.gfycat.com",v=/\.gif$/,m=/\.gifv$/,y=/\.gif\?(.*&)*fm=mp4(&|$)/,g=/\/gallery\//,_=/\.gif\?.*$/},function(e,t,n){"use strict";t.a=new Set(["i.redd.it","i.redditmedia.com","g.redditmedia.com","i.reddituploads.com","500px.com","abload.de","anony.ws","deviantart.com","deviantart.net","fav.me","fbcdn.net","flickr.com","forgifs.com","giphy.com","gfycat.com","gifsoup.com","gyazo.com","imageshack.us","imgclean.com","imgflip.com","imgur.com","i.imgur.com","instagr.am","instagram.com","mediacru.sh","media.tumblr.com","media.gify.com","min.us","minus.com","myimghost.com","pbs.twimg.com","photobucket.com","picsarus.com","postimg.org","puu.sh","staticflickr.com","tinypic.com","twitpic.com","upload.wikimedia.org"])},function(e,t,n){(function(e){"undefined"==typeof window&&(e.window={}),"undefined"==typeof document&&(e.document={}),function(e,t){"use strict";function n(t){this.time=t.time,this.target=t.target,this.rootBounds=t.rootBounds,this.boundingClientRect=t.boundingClientRect,this.intersectionRect=t.intersectionRect||l(),this.intersectionRect.bottom=Math.min(this.intersectionRect.bottom,e.innerHeight),this.intersectionRect.height=this.intersectionRect.bottom-this.intersectionRect.top,this.isIntersecting=!!t.intersectionRect;var n=this.boundingClientRect,r=n.width*n.height,o=this.intersectionRect,i=o.width*o.height;void 0!==r?(this.intersectionRatio=i/r,0==this.intersectionRatio&&(this.isIntersecting=!1)):this.intersectionRatio=this.isIntersecting?1:0}function r(e,t){var n=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=i(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map(function(e){return e.value+e.unit}).join(" ")}function o(){return e.performance&&performance.now&&performance.now()}function i(e,t){var n=null;return function(){n||(n=setTimeout(function(){e(),n=null},t))}}function a(e,t,n,r){"function"==typeof e.addEventListener?e.addEventListener(t,n,r||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function u(e,t,n,r){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,r||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,n)}function s(e,t){var n=Math.max(e.top,t.top),r=Math.min(e.bottom,t.bottom),o=Math.max(e.left,t.left),i=Math.min(e.right,t.right),a=i-o,u=r-n;return a>=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;o<this.thresholds.length;o++){var i=this.thresholds[o];if(i==n||i==r||i<n!=i<r)return!0}},r.prototype._rootIsInDom=function(){return!this.root||f(t,this.root)},r.prototype._rootContainsTarget=function(e){return f(this.root||t,e)},r.prototype._registerInstance=function(){p.indexOf(this)<0&&p.push(this)},r.prototype._unregisterInstance=function(){var e=p.indexOf(this);e!=-1&&p.splice(e,1)},e.IntersectionObserver=r,e.IntersectionObserverEntry=n}(window,document)}).call(t,n(36))},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=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")}}(),o=function(e,t){if(e&&e.includes(".")){var n=e.split("."),o=r(n,3),i=o[0],a=o[2];return{loid:i,loidCookie:e,loidCreated:a,loidCreatedCookie:t}}return{loid:e,loidCookie:e,loidCreated:t,loidCreatedCookie:t}}},function(e,t,n){"use strict";var r=n(570),o=n.n(r),i=function(){},a={hidden:"visibilitychange",webkitHidden:"webkitvisibilitychange",mozHidden:"mozvisibilitychange",msHidden:"msvisibilitychange"};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]: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,"\\u003C").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;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(t){r(this,e),this.timer=void 0,this.delay=t?t:1e3,this.checker=function(){console.error("forgot to add checker")}}return o(e,[{key:"stop",value:function(){clearTimeout(this.timer)}},{key:"start",value:function(e){var t=this;this.stop(),this.setChecker(e),this.checker()&&(this.timer=setTimeout(function(){t.start()},this.delay))}},{key:"setChecker",value:function(e){this.checker=e||this.checker}}]),e}();t.a=i},function(e,t,n){"use strict";function r(e){return e.toLowerCase().replace(/\b[a-z]/g,function(e){return e.toUpperCase()})}t.a=r},function(e,t,n){"use strict";var r=n(5),o=n(189),i=n(1616);n.d(t,"b",function(){return a}),n.d(t,"a",function(){return f});var a={SHOW_SAME_SESSION:"SHOW_BANNER_SAME_SESSION",SHOW_NEW_SESSION:"SHOW_BANNER_NEW_SESSION",NEW_SESSION:"NEW_ROUND_SESSION",JUST_DISMISSED:"DISMISSED_BY_LINK",BLOCK_SHOW:"BLOCK_SHOW_BANNER",HIDE:"HIDE_BANNER"},u=r.f.BANNER_PERSIST_SHOWED,s={showTime:6e4,hideTime:6e5},c=new i.a(1e3),l=function(e){var t=g(),n=t+s.showTime,r=t+s.hideTime,o=Date.now()<=n,i=Date.now()>r;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);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var o=n(58),i=n.n(o),a=n(9),u=n(104),s=n(7),c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l={currentPageIndex:-1,history:[],currentPage:{},shell:!1,incognito:!1};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.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<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=u.a.PropTypes,h=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),d(t,[{key:"render",value:function(){var e=this.props,t=e.exec,n=e.pageProperties;return t(n)}}]),t}(u.a.Component);h.propTypes={url:p.string.isRequired,exec:p.func.isRequired,pageProperties:p.object};var v=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),d(t,[{key:"render",value:function(){var e=this.props,t=e.component,n=e.pageProperties;return u.a.createElement(t,n)}}]),t}(u.a.Component);v.propTypes={url:p.string.isRequired,pageProperties:p.object};var m=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),d(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.currentPage,r=Array.isArray(t)?t:[t],o=null,i=!0,a=!1,s=void 0;try{for(var c,l=r[Symbol.iterator]();!(i=(c=l.next()).done);i=!0){var d=c.value,p=d.props.url,h=f()(p),v=h.exec(n.url);if(v){o=d;break}}}catch(m){a=!0,s=m}finally{try{!i&&l["return"]&&l["return"]()}finally{if(a)throw s}}return!!o&&u.a.cloneElement(o,{pageProperties:n})}}]),t}(u.a.Component);m.propTypes={children:p.oneOfType([p.arrayOf(p.element),p.object]),currentPage:p.object.isRequired};var y=n.i(c.createSelector)(function(e){return e.platform.currentPage},function(e){return{currentPage:e}}),g=n.i(s.connect)(y)(m)},function(e,t,n){"use strict";var r=n(5);n.d(t,"a",function(){return i});var o=r.g.DAYMODE,i=function(e){return e===o?"dayMode":"nightMode"}},function(e,t,n){(function(t){!function(t){"use strict";function n(e,t,n,r){var i=t&&t.prototype instanceof o?t:o,a=Object.create(i.prototype),u=new p(r||[]);return a._invoke=c(e,n,u),a}function r(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}function o(){}function i(){}function a(){}function u(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function s(e){function n(t,o,i,a){var u=r(e[t],e,o);if("throw"!==u.type){var s=u.arg,c=s.value;return c&&"object"==typeof c&&g.call(c,"__await")?Promise.resolve(c.__await).then(function(e){n("next",e,i,a)},function(e){n("throw",e,i,a)}):Promise.resolve(c).then(function(e){s.value=e,i(s)},a)}a(u.arg)}function o(e,t){function r(){return new Promise(function(r,o){n(e,t,r,o)})}return i=i?i.then(r,r):r()}"object"==typeof t.process&&t.process.domain&&(n=t.process.domain.bind(n));var i;this._invoke=o}function c(e,t,n){var o=O;return function(i,a){if(o===R)throw new Error("Generator is already running");if(o===I){if("throw"===i)throw a;return v()}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var s=l(u,n);if(s){if(s===A)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===O)throw o=I,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=R;var c=r(e,t,n);if("normal"===c.type){if(o=n.done?I:P,c.arg===A)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=I,n.method="throw",n.arg=c.arg)}}}function l(e,t){var n=e.iterator[t.method];if(n===m){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=m,l(e,t),"throw"===t.method))return A;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return A}var o=r(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,A;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=m),t.delegate=null,A):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,A)}function f(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function d(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function p(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(f,this),this.reset(!0)}function h(e){if(e){var t=e[b];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function o(){for(;++n<e.length;)if(g.call(e,n))return o.value=e[n],o.done=!1,o;return o.value=m,o.done=!0,o};return r.next=r}}return{next:v}}function v(){return{value:m,done:!0}}var m,y=Object.prototype,g=y.hasOwnProperty,_="function"==typeof Symbol?Symbol:{},b=_.iterator||"@@iterator",E=_.asyncIterator||"@@asyncIterator",T=_.toStringTag||"@@toStringTag",w="object"==typeof e,S=t.regeneratorRuntime;if(S)return void(w&&(e.exports=S));S=t.regeneratorRuntime=w?e.exports:{},S.wrap=n;var O="suspendedStart",P="suspendedYield",R="executing",I="completed",A={},C={};C[b]=function(){return this};var x=Object.getPrototypeOf,N=x&&x(x(h([])));N&&N!==y&&g.call(N,b)&&(C=N);var M=a.prototype=o.prototype=Object.create(C);i.prototype=M.constructor=a,a.constructor=i,a[T]=i.displayName="GeneratorFunction",S.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===i||"GeneratorFunction"===(t.displayName||t.name))},S.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,a):(e.__proto__=a,T in e||(e[T]="GeneratorFunction")),e.prototype=Object.create(M),e},S.awrap=function(e){return{__await:e}},u(s.prototype),s.prototype[E]=function(){return this},S.AsyncIterator=s,S.async=function(e,t,r,o){var i=new s(n(e,t,r,o));return S.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},u(M),M[T]="Generator",M[b]=function(){return this},M.toString=function(){return"[object Generator]"},S.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},S.values=h,p.prototype={constructor:p,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=m,this.done=!1,this.delegate=null,this.method="next",this.arg=m,this.tryEntries.forEach(d),!e)for(var t in this)"t"===t.charAt(0)&&g.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=m)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,r){return i.type="throw",i.arg=e,n.next=t,r&&(n.method="next",n.arg=m),!!r}if(this.done)throw e;for(var n=this,r=this.tryEntries.length-1;r>=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<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&g.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,A):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),A},finish:function(e){for(var t=this.tryEntries.length-1;t>=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;o<i;o++){var a=e[A[o]].length;if(a>n)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<n;t++)e[A[t]]=""}function a(e){v(e),""!==e.cdata&&(h(e,"oncdata",e.cdata),e.cdata=""),""!==e.script&&(h(e,"onscript",e.script),e.script="")}function u(e,t){return new s(e,t)}function s(e,t){if(!(this instanceof s))return new s(e,t);C.apply(this),this._parser=new r(e,t),this.writable=!0,this.readable=!0;var n=this;this._parser.onend=function(){n.emit("end")},this._parser.onerror=function(e){n.emit("error",e),n._parser.error=null},this._decoder=null,N.forEach(function(e){Object.defineProperty(n,"on"+e,{get:function(){return n._parser["on"+e]},set:function(t){return t?void n.on(e,t):(n.removeAllListeners(e),n._parser["on"+e]=t,t)},enumerable:!0,configurable:!1})})}function c(e){return e.split("").reduce(function(e,t){return e[t]=!0,e},{})}function l(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function f(e,t){return l(e)?!!t.match(e):e[t]}function d(e,t){return!f(e,t)}function p(e,t,n){e[t]&&e[t](n)}function h(e,t,n){e.textNode&&v(e),p(e,t,n)}function v(e){e.textNode=m(e.opt,e.textNode),e.textNode&&p(e,"ontext",e.textNode),e.textNode=""}function m(e,t){return e.trim&&(t=t.trim()),e.normalize&&(t=t.replace(/\s+/g," ")),t}function y(e,t){return v(e),e.trackPosition&&(t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c),t=new Error(t),e.error=t,p(e,"onerror",t),e}function g(e){return e.sawRoot&&!e.closedRoot&&_(e,"Unclosed root tag"),e.state!==Y.BEGIN&&e.state!==Y.BEGIN_WHITESPACE&&e.state!==Y.TEXT&&y(e,"Unexpected end"),v(e),e.c="",e.closed=!0,p(e,"onend"),r.call(e,e.strict,e.opt),e}function _(e,t){if("object"!=typeof e||!(e instanceof r))throw new Error("bad call to strictFail");e.strict&&y(e,t)}function b(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,n=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(n.ns=t.ns),e.attribList.length=0,h(e,"onopentagstart",n)}function E(e,t){var n=e.indexOf(":"),r=n<0?["",e]:e.split(":"),o=r[0],i=r[1];return t&&"xmlns"===e&&(o="xmlns",i=""),{prefix:o,local:i}}function T(e){if(e.strict||(e.attribName=e.attribName[e.looseCase]()),e.attribList.indexOf(e.attribName)!==-1||e.tag.attributes.hasOwnProperty(e.attribName))return void(e.attribName=e.attribValue="");if(e.opt.xmlns){var t=E(e.attribName,!0),n=t.prefix,r=t.local;if("xmlns"===n)if("xml"===r&&e.attribValue!==B)_(e,"xml: prefix must be bound to "+B+"\nActual: "+e.attribValue);else if("xmlns"===r&&e.attribValue!==H)_(e,"xmlns: prefix must be bound to "+H+"\nActual: "+e.attribValue);else{var o=e.tag,i=e.tags[e.tags.length-1]||e;o.ns===i.ns&&(o.ns=Object.create(i.ns)),o.ns[r]=e.attribValue}e.attribList.push([e.attribName,e.attribValue])}else e.tag.attributes[e.attribName]=e.attribValue,h(e,"onattribute",{name:e.attribName,value:e.attribValue});e.attribName=e.attribValue=""}function w(e,t){if(e.opt.xmlns){var n=e.tag,r=E(e.tagName);n.prefix=r.prefix,n.local=r.local,n.uri=n.ns[r.prefix]||"",n.prefix&&!n.uri&&(_(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName)),n.uri=r.prefix);var o=e.tags[e.tags.length-1]||e;n.ns&&o.ns!==n.ns&&Object.keys(n.ns).forEach(function(t){h(e,"onopennamespace",{prefix:t,uri:n.ns[t]})});for(var i=0,a=e.attribList.length;i<a;i++){var u=e.attribList[i],s=u[0],c=u[1],l=E(s,!0),f=l.prefix,d=l.local,p=""===f?"":n.ns[f]||"",v={name:s,value:c,prefix:f,local:d,uri:p};f&&"xmlns"!==f&&!p&&(_(e,"Unbound namespace prefix: "+JSON.stringify(f)),v.uri=f),e.tag.attributes[s]=v,h(e,"onattribute",v)}e.attribList.length=0}e.tag.isSelfClosing=!!t,e.sawRoot=!0,e.tags.push(e.tag),h(e,"onopentag",e.tag),t||(e.noscript||"script"!==e.tagName.toLowerCase()?e.state=Y.TEXT:e.state=Y.SCRIPT,e.tag=null,e.tagName=""),e.attribName=e.attribValue="",e.attribList.length=0}function S(e){if(!e.tagName)return _(e,"Weird empty close tag."),e.textNode+="</>",void(e.state=Y.TEXT);if(e.script){if("script"!==e.tagName)return e.script+="</"+e.tagName+">",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+="</"+e.tagName+">",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<e.length&&(n=e.charAt(t)),n}function I(e){var t=this;if(this.error)throw this.error;if(t.closed)return y(t,"Cannot write after close. Assign an onready handler.");if(null===e)return g(t);"object"==typeof e&&(e=e.toString());for(var n=0,r="";;){if(r=R(e,n++),t.c=r,!r)break;switch(t.trackPosition&&(t.position++,"\n"===r?(t.line++,t.column=0):t.column++),t.state){case Y.BEGIN:if(t.state=Y.BEGIN_WHITESPACE,"\ufeff"===r)continue;P(t,r);continue;case Y.BEGIN_WHITESPACE:P(t,r);continue;case Y.TEXT:if(t.sawRoot&&!t.closedRoot){for(var i=n-1;r&&"<"!==r&&"&"!==r;)r=R(e,n++),r&&t.trackPosition&&(t.position++,"\n"===r?(t.line++,t.column=0):t.column++);t.textNode+=e.substring(i,n-1)}"<"!==r||t.sawRoot&&t.closedRoot&&!t.strict?(!d(M,r)||t.sawRoot&&!t.closedRoot||_(t,"Text data outside of root node."),"&"===r?t.state=Y.TEXT_ENTITY:t.textNode+=r):(t.state=Y.OPEN_WAKA,t.startTagPosition=t.position);continue;case Y.SCRIPT:"<"===r?t.state=Y.SCRIPT_ENDING:t.script+=r;continue;case Y.SCRIPT_ENDING:"/"===r?t.state=Y.CLOSE_TAG:(t.script+="<"+r,t.state=Y.SCRIPT);continue;case Y.OPEN_WAKA:if("!"===r)t.state=Y.SGML_DECL,t.sgmlDecl="";else if(f(M,r));else if(f(V,r))t.state=Y.OPEN_TAG,t.tagName=r;else if("/"===r)t.state=Y.CLOSE_TAG,t.tagName="";else if("?"===r)t.state=Y.PROC_INST,t.procInstName=t.procInstBody="";else{if(_(t,"Unencoded <"),t.startTagPosition+1<t.position){var a=t.position-t.startTagPosition;r=new Array(a).join(" ")+r}t.textNode+="<"+r,t.state=Y.TEXT}continue;case Y.SGML_DECL:(t.sgmlDecl+r).toUpperCase()===F?(h(t,"onopencdata"),t.state=Y.CDATA,t.sgmlDecl="",t.cdata=""):t.sgmlDecl+r==="--"?(t.state=Y.COMMENT,t.comment="",t.sgmlDecl=""):(t.sgmlDecl+r).toUpperCase()===U?(t.state=Y.DOCTYPE,(t.doctype||t.sawRoot)&&_(t,"Inappropriately located doctype declaration"),t.doctype="",t.sgmlDecl=""):">"===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+="</"+t.tagName,t.tagName="",t.state=Y.SCRIPT):(d(M,r)&&_(t,"Invalid tagname in closing tag"),t.state=Y.CLOSE_TAG_SAW_WHITE);else{if(f(M,r))continue;d(V,r)?t.script?(t.script+="</"+r,t.state=Y.SCRIPT):_(t,"Invalid tagname in closing tag."):t.tagName=r}continue;case Y.CLOSE_TAG_SAW_WHITE:if(f(M,r))continue;">"===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="";++a<u;){var c=Number(arguments[a]);if(!isFinite(c)||c<0||c>1114111||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<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),B=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},H=Date.now(),q=void 0;window.onload=function(){var e=Date.now();n.i(I.a)(H,e,q),n.i(w.b)(),n.i(S.d)()};var V={log:E.a.postErrorURL,hivemind:E.a.statsURL},G={SHOULD_RETHROW:!1},W=function(){var e=window.location,t=e.pathname,n=e.search,r=e.hash;return""+t+n+r},K=function(){return{userAgent:window.navigator.userAgent,requestUrl:W()}},Y=function(){},z=window.onerror||Y;window.onerror=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=t[0],i=t[1],a=t[2],u=t[3],s=t[4];n.i(T.a)(B({},K(),{error:s,message:o,url:i,line:a,column:u}),V,G),z.apply(void 0,t)},window.onunhandledrejection=function(e){n.i(T.a)(B({},K(),{rejection:e}),V,G)};var X=n.i(c.a)({routes:O.a,reducers:P.a,reduxMiddleware:R.a,modifyData:function(e){if(u()(e.session)||(e.session=new A.a(e.session),window.session=e.session),e.preferences=C.a.fromJSON(e.preferences),e.meta.env="CLIENT",n.i(s.a)()){try{var t=window.localStorage.collapsedComments;void 0!==t&&(e.comments.collapsed=JSON.parse(t))}catch(r){console.warn(r)}try{var o=window.localStorage.expandedPosts;void 0!==o&&(e.expandedPosts=JSON.parse(o))}catch(r){console.warn(r)}try{var i=window.localStorage.visitedPosts;void 0!==i&&(i.startsWith("[")?e.visitedPosts=JSON.parse(i):e.visitedPosts=i.split(","))}catch(r){console.warn(r)}try{var a=window.localStorage.optOuts;void 0!==a&&(e.optOuts=JSON.parse(a))}catch(r){console.warn(r)}try{var c=window.localStorage.rulesModal;void 0!==c&&(e.rulesModal=JSON.parse(c))}catch(r){console.warn(r)}try{var l=window.localStorage.pwaInstalledTimestamp;void 0!==l&&(e.pwaInstalledTimestamp=JSON.parse(l))}catch(r){console.warn(r)}}return e},appComponent:U(b.a,{}),debug:!1,onHandlerComplete:I.b})();n.i(M.b)({dispatch:X.dispatch},X.getState().contextKey),q=X.getState().platform.shell,X.dispatch(l.o());var $=n.i(L.b)();X.dispatch(d.f($));var Q=X.getState();if(Q.pwaInstalled){var J={pwa:n.i(D.c)(Q)};n.i(f.a)(n.i(D.b)(X.getState(),"global","view","screen",J))}(Q.pwaInstalled||n.i(_.e)(Q))&&X.dispatch(n.i(v.b)()),q&&!$&&X.dispatch(x.a()),X.dispatch(n.i(h.I)()),X.dispatch(p.h()),Q=X.getState();var Z=n.i(g.i)(Q);n.i(k.p)(Q),n.i(N.a)().then(function(e){e&&X.dispatch(l.p())}),Z&&X.dispatch(n.i(m.a)(y.Y)),p.i.link=function(e,t){return F.a.link(e,t)}}]);
//# sourceMappingURL=ProductionClient.62deff0b1c9fbf3af019.js.map