!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b3ff7dc5-1c39-40a3-b94b-164b3dbe65e8",e._sentryDebugIdIdentifier="sentry-dbid-b3ff7dc5-1c39-40a3-b94b-164b3dbe65e8")}catch(e){}}(),(self.webpackChunktwitch_twilight=self.webpackChunktwitch_twilight||[]).push([[18880],{199264:function(e,n,t){"use strict";t.d(n,{TD:function(){return m},Zu:function(){return r}});var r,i=t(331635),o=t(474848),a=t(216042),s=t(914421),c=t(808681),u=t(86011),l=t(324602),d=t(296540),f=t(868238),h=t(883474),p=t(73849),g=function(e){function n(n){var t=e.call(this,n)||this;return t.state={isError:!1,options:null,balloonID:""},t.logger=h.x2.logger.withCategory("balloon-layer"),t.handleHistoryChange=function(){t.hideBalloon()},r=t,t}return(0,i.__extends)(n,e),n.prototype.componentDidMount=function(){this.props.subscribe(this.handleHistoryChange)},n.prototype.componentDidCatch=function(e,n){var t=this;this.setState({isError:!0},(function(){h.x2.stats.recordComponentError("BalloonLayer"),t.logger.errorAndReport(e,"A unhandled exception occurred in the component hierarchy",{info:n})}))},n.prototype.componentDidUpdate=function(e,n){var t=n.options,r=t&&t.onBalloonUpdate,i=t&&t.onHideBalloon,o=this.state.options,a=o&&o.onBalloonUpdate;t!==o&&(r&&r(this.state.balloonID),i&&i(),a&&a!==r&&a(this.state.balloonID))},n.prototype.render=function(){if(this.state.isError)return null;var e=null;if(this.state.options){var n={left:this.state.options.from.x,top:this.state.options.from.y};e=(0,o.jsx)(a.S,{className:"balloon-layer",position:s.yX.Fixed,zIndex:s.Py.Above,children:(0,o.jsx)("div",{style:n,children:(0,o.jsx)(c.E,{direction:this.state.options.direction?this.state.options.direction:u.j.Right,size:this.state.options.size||l.$V.Large,show:!0,children:this.state.options.content})})})}return e},n.prototype.showBalloon=function(e,n){this.setState({options:e,balloonID:n})},n.prototype.hideBalloon=function(){this.setState({options:null,balloonID:""})},n}(d.Component),m=(0,f.Zz)(p.y)(g)},368029:function(e,n,t){"use strict";t.d(n,{K:function(){return a}});var r=t(926839),i=t(227175),o=t(534019),a=function(){return{light:r.J,dark:i.B,overlay:o.f}}},282008:function(e,n,t){"use strict";t.d(n,{e:function(){return g}});var r=t(331635),i=t(474848),o=t(959340),a=t(914421),s=t(312663),c=t(588702),u=t(79004),l=t(902418),d=t(636367),f=t(296540),h=t(883474),p=t(684990),g=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.renderHeader=function(){var e=n.props.subtitle?(0,i.jsxs)(o.P,{display:a.nl.Flex,flexDirection:a.bo.Column,justifyContent:a.A9.Center,alignItems:a.k2.Center,children:[(0,i.jsx)(o.P,{children:(0,i.jsx)(s.N,{type:c.M2.H6,color:a.Q1.Alt,bold:!0,children:n.props.title})}),(0,i.jsx)(o.P,{children:(0,i.jsx)(s.N,{type:c.M2.P,color:a.Q1.Alt2,children:n.props.subtitle})})]}):(0,i.jsx)(s.N,{type:c.M2.H6,color:a.Q1.Alt,bold:!0,children:n.props.title});return(0,i.jsxs)(o.P,{className:"dropdown-menu-header",background:a.VS.Alt,display:a.nl.Flex,alignItems:a.k2.Center,borderBottom:!0,children:[(0,i.jsx)(o.P,{display:a.nl.Flex,alignItems:a.k2.Center,flexGrow:1,flexShrink:1,fullWidth:!0,justifyContent:a.A9.Start,children:n.props.onBackClick&&(0,i.jsx)(o.P,{className:"back-button",children:(0,i.jsx)(u.a2,{"aria-label":(0,h.hw)("Back button","DropDownMenuHeader"),size:l.f.Small,icon:p.fj,onClick:n.props.onBackClick})})}),(0,i.jsx)(o.P,{display:a.nl.Flex,alignItems:a.k2.Center,flexGrow:1,flexShrink:0,justifyContent:a.A9.Center,children:e}),(0,i.jsx)(o.P,{display:a.nl.Flex,alignItems:a.k2.Center,flexGrow:1,flexShrink:1,fullWidth:!0,justifyContent:a.A9.End})]})},n}return(0,r.__extends)(n,e),n.prototype.render=function(){return this.props.onClick?(0,i.jsx)(d.tD,{onClick:this.props.onClick,children:this.renderHeader()}):this.renderHeader()},n}(f.Component)},148030:function(e,n,t){"use strict";t.d(n,{K:function(){return c},u:function(){return u}});var r=t(331635),i=t(474848),o=t(296540),a=t(638230),s=t(12109),c=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(n,e),n.prototype.render=function(){return(0,s.fX)(this.props.name,{defaultThreshold:this.props.defaultThreshold})?(0,i.jsx)(i.Fragment,{children:this.props.children}):null},n}(o.Component);function u(e){var n=(0,a._)(e.id,e.type,e.defaultValue,e.subjectAttributes,e.opts).value;return e.enabled(n)?(0,i.jsx)(i.Fragment,{children:e.children}):null}},419356:function(e,n,t){"use strict";t.d(n,{A:function(){return l}});var r=t(331635),i=t(474848),o=(t(296540),t(883474)),a=t(29896),s=t(306730),c=t(921844),u=t.n(c),l=function(e){return"defaultCountryAllowList"in e&&e.defaultCountryAllowList?(0,i.jsx)(d,(0,r.__assign)({},e,{children:e.children})):"defaultCountryBlockList"in e&&e.defaultCountryBlockList?(0,i.jsx)(f,(0,r.__assign)({},e,{children:e.children})):null},d=function(e){var n=e.defaultCountryAllowList,t=e.dynamicSettingsKeyForCountryAllowList,r=e.children,a=h();return a&&(t?o.Zn.get(t,n):n).includes(a)?(0,i.jsx)(i.Fragment,{children:null!=r?r:null}):null},f=function(e){var n=e.defaultCountryBlockList,t=e.dynamicSettingsKeyForCountryBlockList,r=e.children,a=h();return a?(t?o.Zn.get(t,n):n).includes(a)?null:(0,i.jsx)(i.Fragment,{children:null!=r?r:null}):null},h=function(){var e=(0,s.If)(),n=(0,a.IT)(u(),{skip:!!e}).data;return e||((null==n?void 0:n.requestInfo.countryCode)||null)}},310006:function(e,n,t){"use strict";t.d(n,{H:function(){return u}});var r=t(474848),i=t(564368),o=t(959340),a=(t(296540),t(883474)),s=t(413647),c=t(166012),u=function(e){var n=(0,r.jsx)(i.$n,{linkTo:e.linkWithinApp?"/directory":(0,c.VV)("/directory"),"data-a-target":"browse-channels-button",targetBlank:e.openInNewTab,children:(0,a.hw)("Browse channels","PageNotFound")});return(0,r.jsx)(s.A,{message:e.overrideMessage||(0,a.hw)("Sorry. Unless you've got a time machine, that content is unavailable.","PageNotFound"),children:(0,r.jsx)(o.P,{margin:{top:2},children:e.children||n})})};u.displayName="PageNotFound"},844023:function(e,n,t){"use strict";t.d(n,{Es:function(){return r},Vq:function(){return g},MD:function(){return f},T4:function(){return p},UJ:function(){return h}});var r,i=t(331635),o=t(474848),a=t(246942),s=t.n(a),c=t(296540),u=t(192941),l=t(265827);!function(e){e[e.Resize=0]="Resize",e[e.Scroll=1]="Scroll",e[e.Wheel=2]="Wheel"}(r||(r={}));var d=(0,l.q)("ScrollableProvider",{registerReceiver:function(){return function(){return null}},requestVisibilityCheck:function(){},getScrollContent:function(){return null},scrollToTop:function(){},yScrollTo:function(){}}),f=d.context,h=d.withContext,p=function(){return(0,c.useContext)(f)};var g=c.forwardRef((function(e,n){var t=e.contentClassName,a=p(),l=c.useRef(null),d=(0,c.useCallback)((function(){return l.current}),[]),h=function(e){var n=e.ignoreParentScrollEvents,t=e.parent,r=e.scrollContent,o=c.useRef([]),a=c.useRef(new WeakSet),s=(0,c.useCallback)((function(e,n){o.current.length<1||requestAnimationFrame((function(){if(r.current){var t=o.current;if(n&&(t=t.filter((function(e){return!a.current.has(e)}))),t.length){var i=r.current.getBoundingClientRect();e&&(e.offset=r.current.scrollTop),t.forEach((function(t){t.checkVisible(i,e),n&&a.current.add(t)}))}}}))}),[r]),u=c.useRef(!1);c.useEffect((function(){r.current&&!u.current&&(u.current=!0,s(void 0,!0))}));var l=(0,c.useCallback)((function(e){r.current&&s((0,i.__assign)((0,i.__assign)({},e),{offset:r.current.scrollTop}))}),[s,r]),d=(0,c.useCallback)((function(e,n){requestAnimationFrame((function(){var t=r.current;if(t){if(n&&a.current.has(e))return;var i=t.getBoundingClientRect();e.checkVisible(i),a.current.add(e)}}))}),[r]);return{registerReceiver:(0,c.useCallback)((function(e){n||t.registerReceiver(e);var r=o.current;return r.push(e),d(e,!0),function(){var n=r.indexOf(e);r.splice(n,1)}}),[n,t,d]),requestVisibilityCheck:d,handleEvent:l}}({parent:a,scrollContent:l,ignoreParentScrollEvents:e.ignoreParentScrollEvents}),g=h.handleEvent,m=h.registerReceiver,_=h.requestVisibilityCheck,v=(0,c.useCallback)((function(e){g({type:r.Wheel,wheelEvent:e})}),[g]),y=(0,c.useCallback)((function(){g({type:r.Scroll})}),[g]);c.useEffect((function(){var e=function(){g({type:r.Resize})};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}));var k=(0,c.useCallback)((function(e){var n;null===(n=l.current)||void 0===n||n.scrollTo({top:e})}),[]),b=(0,c.useCallback)((function(){k(0)}),[k]),C=(0,c.useCallback)((function(){l.current&&l.current.scrollTo({top:l.current.scrollHeight})}),[]);c.useEffect((function(){var e=l.current;if(e&&t)return e.classList.add(t),function(){null==e||e.classList.remove(t)}}),[t]);var w=(0,c.useMemo)((function(){return{registerReceiver:m,requestVisibilityCheck:_,getScrollContent:d,scrollToTop:b,yScrollTo:k}}),[m,_,d,b,k]),S=c.useMemo((function(){return{get scrollContent(){return l.current},scrollToBottom:C,scrollToTop:b}}),[C,b]);return c.useImperativeHandle(n,(function(){return S}),[S]),(0,o.jsx)("div",(0,i.__assign)({className:s()("scrollable-area",e.className),style:{overflowX:e.suppressScrollX?"hidden":void 0,overflowY:e.suppressScrollY?"hidden":void 0,scrollbarWidth:e.scrollbarWidth},ref:l,onScroll:y,onWheel:v},(0,u.F)(e),{children:(0,o.jsx)(f.Provider,{value:w,children:e.children})}))}))},118021:function(e,n,t){"use strict";t.d(n,{$:function(){return i}});var r=t(296540);function i(e,n){var t=r.useRef((function(){}));r.useEffect((function(){t.current=e}),[e]),r.useEffect((function(){if(null!==n){var e=setInterval((function(){t.current&&t.current()}),n);return function(){return clearInterval(e)}}}),[n])}},806677:function(e,n,t){"use strict";t.d(n,{Z:function(){return i}});var r=t(296540);function i(e){var n=(0,r.useRef)();return(0,r.useEffect)((function(){n.current=e}),[e]),n.current}},192941:function(e,n,t){"use strict";function r(e){for(var n={},t=0,r=Object.keys(e).filter((function(e){return e.startsWith("data-")}));ti||n())&&u(!0)}(0,o.$)(d,t&&!c?a:null)}({callback:(0,r.useCallback)((function(){return s(e)}),[e]),startAttempting:n,maxAttempts:5,attemptIntervalMS:1e3})}function u(e,n){!function(e){var n=e.callback,t=e.startAttempting,r=e.maxAttempts,i=e.attemptIntervalMS,o=0,a=!1,s=null;t&&!a&&(s=setInterval((function(){if(++o>r)return a=!0,void(s&&clearInterval(s));n()&&(a=!0,s&&clearInterval(s))}),i))}({callback:function(){return s(e)},startAttempting:n,maxAttempts:5,attemptIntervalMS:1e3})}},59285:function(e,n,t){"use strict";t.d(n,{v:function(){return s}});var r=t(331635),i=t(980926),o=t(597195),a=t(820257);function s(e,n){var t=this;return function(){return(0,r.__awaiter)(t,void 0,void 0,(function(){var t;return(0,r.__generator)(this,(function(r){switch(r.label){case 0:if((0,a.W)(a.y.LanguageSelection+e)(),!(t=(0,o.eM)(e)))return[3,5];if(!n)return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,(0,o.PE)({userID:n,preferredLanguageTag:(0,o.UB)(t)})];case 2:return r.sent(),[3,4];case 3:return r.sent(),[3,4];case 4:(0,i.wh)(e),r.label=5;case 5:return window.location.reload(!0),[2]}}))}))}}},820257:function(e,n,t){"use strict";t.d(n,{W:function(){return a},y:function(){return r}});var r,i=t(331635),o=t(883474);!function(e){e.HomeIcon="home_icon",e.Discover="discover",e.Following="following",e.Browse="browse",e.AppDownloads="app_downloads",e.TryPrime="try_prime",e.GoTurbo="go_turbo",e.ThreeDot="three_dot",e.PrimeCrown="prime_crown",e.NotificationsBell="notifications_bell",e.GetBits="get_bits",e.AvatarDropdown="avatar_dropdow",e.LogIn="login",e.SignUp="signup",e.Esports="esports",e.MusicDirectory="music_directory",e.PlayLuna="play_luna",e.Roblox="roblox",e.About="about",e.AccessibilityStatement="accessibility_statement",e.AdChoices="ad_choices",e.Advertisers="advertisers",e.Blog="blog",e.CommunityGuidelines="community_guidelines",e.CookiePolicy="cookie_policy",e.Creative="creative",e.Developers="developers",e.EntityInformation="entity_information",e.GermanDisclosure="german_disclosure",e.GetDesktop2="get_desktop2",e.GiftCard="giftcard",e.Help="help",e.IGDB="igdb",e.Jobs="jobs",e.Language="language",e.Legal="legal",e.Music="music",e.Store2="store2",e.Luna="luna",e.Partners="partners",e.Press="press",e.PrivacyPolicy="privacy_policy",e.PrivacyCenter="privacy_center",e.SafetyCenter="safety_center",e.Security="security",e.Terms="terms",e.Turbo="turbo",e.TwitchConEU="twitchcon_eu",e.TwitchMusic="twitch_music",e.LanguageSelection="language_",e.Profile="user_profile",e.Settings="user_settings",e.SocialSharingBadge="social_sharing_badge"}(r||(r={}));var a=function(e,n){return function(){var t=o.E5.getLastPageview();o.E5.track("top_nav_click",(0,i.__assign)({location:null==t?void 0:t.location,button_name:e},n))}}},836677:function(e,n,t){"use strict";t.d(n,{c:function(){return o},n:function(){return a}});var r=t(883474),i=t(306730),o=function(e,n){r.x2.tracking.__track_SSRMigrationFixme("tos_s_pv_dialog",{action:e,country:(0,i.If)()||"",tos_version:n.TERMS_OF_SERVICE||null,sale_version:n.TERMS_OF_SALE||null,privacy_version:n.PRIVACY_NOTICE||null})},a=function(e){return e.reduce((function(e,n){return e[n.consentType]=n.version,e}),{})}},760501:function(e,n,t){"use strict";t.d(n,{H1:function(){return f},N3:function(){return d},nE:function(){return c},rm:function(){return h},uF:function(){return l}});var r=t(474848),i=t(70931),o=t(883474),a=t(876531),s=t(836677),c="tacos-properties",u=864e5;function l(e){return Date.now()-e>u}function d(e){return e.firstPageLoaded&&e.isLoggedIn}var f=function(e){var n=e.find((function(e){return e.consentType===a.wsc.TERMS_OF_SERVICE})),t=e.find((function(e){return e.consentType===a.wsc.TERMS_OF_SALE})),r=e.find((function(e){return e.consentType===a.wsc.PRIVACY_NOTICE}));return n&&t&&r?(0,o.hw)("Twitch has updated its Terms of Service, Terms of Sale, and Privacy Notice. Please be sure to read our updated documents.","TOSBottomBanner"):n&&t&&!r?(0,o.hw)("Twitch has updated its Terms of Service and Terms of Sale. Please be sure to read our updated Terms.","TOSBottomBanner"):n&&!t&&r?(0,o.hw)("Twitch has updated its Terms of Service and Privacy Notice. Please be sure to read our updated documents.","TOSBottomBanner"):!n||t||r?!n&&t&&r?(0,o.hw)("Twitch has updated its Terms of Sale and Privacy Notice. Please be sure to read our updated documents.","TOSBottomBanner"):n||!t||r?n||t||!r?void 0:(0,o.hw)("Twitch has updated its Privacy Notice. Please be sure to read our updated Notice.","TOSBottomBanner"):(0,o.hw)("Twitch has updated its Terms of Sale. Please be sure to read our updated Terms.","TOSBottomBanner"):(0,o.hw)("Twitch has updated its Terms of Service. Please be sure to read our updated Terms.","TOSBottomBanner")},h=function(e){var n=e.find((function(e){return e.consentType===a.wsc.TERMS_OF_SERVICE})),t=e.find((function(e){return e.consentType===a.wsc.TERMS_OF_SALE})),c=e.find((function(e){return e.consentType===a.wsc.PRIVACY_NOTICE})),u=function(e){return(0,r.jsx)(i.Cb,{targetBlank:!0,linkTo:null==n?void 0:n.url,onClick:function(){return(0,s.c)("click_tos",{TERMS_OF_SERVICE:null==n?void 0:n.version,TERMS_OF_SALE:null==t?void 0:t.version,PRIVACY_NOTICE:null==c?void 0:c.version})},underline:!1,children:e})},l=function(e){return(0,r.jsx)(i.Cb,{targetBlank:!0,linkTo:null==t?void 0:t.url,onClick:function(){return(0,s.c)("click_sale",{TERMS_OF_SERVICE:null==n?void 0:n.version,TERMS_OF_SALE:null==t?void 0:t.version,PRIVACY_NOTICE:null==c?void 0:c.version})},underline:!1,children:e})},d=function(e){return(0,r.jsx)(i.Cb,{targetBlank:!0,linkTo:null==c?void 0:c.url,onClick:function(){return(0,s.c)("click_privacy",{TERMS_OF_SERVICE:null==n?void 0:n.version,TERMS_OF_SALE:null==t?void 0:t.version,PRIVACY_NOTICE:null==c?void 0:c.version})},underline:!1,children:e})};return n&&t&&c?(0,o.hw)("By clicking \"Accept\" you agree to Twitch's Terms of Service and Terms of Sale, and acknowledge Twitch's Privacy Notice applies.",{"x:link1":u,"x:link2":l,"x:link3":d},"TOSBottomBanner"):n&&t&&!c?(0,o.hw)('By clicking "Accept" you agree to Twitch\'s Terms of Service and Terms of Sale.',{"x:link1":u,"x:link2":l},"TOSBottomBanner"):n&&!t&&c?(0,o.hw)("By clicking \"Accept\" you agree to Twitch's Terms of Service and acknowledge Twitch's Privacy Notice applies.",{"x:link1":u,"x:link2":d},"TOSBottomBanner"):!n||t||c?!n&&t&&c?(0,o.hw)("By clicking \"Accept\" you agree to Twitch's Terms of Sale and acknowledge Twitch's Privacy Notice applies.",{"x:link1":l,"x:link2":d},"TOSBottomBanner"):n||!t||c?n||t||!c?void 0:(0,o.hw)('By clicking "Accept" you acknowledge Twitch\'s Privacy Notice applies.',{"x:link":d},"TOSBottomBanner"):(0,o.hw)('By clicking "Accept" you agree to Twitch\'s Terms of Sale.',{"x:link":l},"TOSBottomBanner"):(0,o.hw)('By clicking "Accept" you agree to Twitch\'s Terms of Service.',{"x:link":u},"TOSBottomBanner")}},835222:function(e,n,t){"use strict";t.d(n,{MV:function(){return r},zJ:function(){return p}});var r,i=t(331635),o=t(474848),a=t(296540),s=t(868238),c=t(883474),u=t(2441),l=t(102203),d=t(590745),f=t(750735);!function(e){e.Default="amazon_ads_url",e.CrownUs="amazon_ads_url_crown_us",e.CrownUk="amazon_ads_url_crown_uk",e.PrimePageUs="amazon_ads_url_prime_page_us",e.PrimePageUk="amazon_ads_url_prime_page_uk"}(r||(r={}));var h=function(e){function n(n){var t=e.call(this,n)||this;t.logger=c.vF.withCategory("Tracking/AmazonAds");var r=n.settingsKey,i=c.Zn.get(r,""),o=c.Zn.get("amazon_ads_countries",["US","UK"]),a=n.countryCode,s=a&&o.includes(a);return s&&i?(t.imageSrc=i,t.logger.debug("Created",{imageSrc:t.imageSrc,userCountry:a,isSupportedCountry:s,supportedCountries:o})):t.logger.debug("Skipping",{isSupportedCountry:s,userCountry:a,supportedCountries:o}),t}return(0,i.__extends)(n,e),n.prototype.render=function(){var e;return this.imageSrc&&!(0,u.bq)(l.F.TwitchAmazon,null===(e=this.props)||void 0===e?void 0:e.consent)?(0,o.jsx)("img",{src:this.imageSrc,style:{display:"none"}}):null},n}(a.Component),p=(0,s.Zz)((0,f.W)("AmazonAds",{autoReportInteractive:!0}),d.z3)(h)},959389:function(e,n,t){"use strict";t.d(n,{D:function(){return R}});var r=t(331635),i=t(474848),o=t(882439),a=t(296540),s=t(868238),c=t(883474),u=t(997942),l=t(276337),d=t(713534),f=t(73849),h=t(102203),p=t(750735),g=t(835222),m=t(148030),_=t(419356),v=t(664865),y=t(2441),k=t(590745),b=t(979203),C=t.n(b),w=function(e){function n(n){var t=e.call(this,n)||this;return t.fetchIdentityUrl=function(){return(0,r.__awaiter)(t,void 0,void 0,(function(){var e,n;return(0,r.__generator)(this,(function(t){switch(t.label){case 0:e={targetDeviceID:c.x2.session.deviceID},t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.props.connectAdIdentity((0,v.AR)(e))];case 2:if(!(n=t.sent().data)||!n.connectAdIdentity||!n.connectAdIdentity.identityURL)throw new Error("connectAdIdentity mutation data missing");return this.setState({imageSrc:n.connectAdIdentity.identityURL,cookieSyncImageSrc:this.cookieSyncUrl}),[3,4];case 3:return t.sent(),[3,4];case 4:return[2]}}))}))},t.state={imageSrc:"",cookieSyncImageSrc:"",iframeReady:!1},t.cookieSyncUrl=c.Zn.get("cookie_sync_url","https://s.amazon-adsystem.com/iu3?cm3ppd=1&d=dtb-pub&csif=t&dl=gg_n-index_kg_n-MediaNet_n-Ogury_ox-db5_pm-db5_rx_r1u_rbd_3lift_an-db5"),t}return(0,r.__extends)(n,e),n.prototype.componentDidMount=function(){this.fetchIdentityUrl()},n.prototype.render=function(){var e=this,n=!(0,y.bq)(h.F.TwitchAmazon,this.props.consent);return this.state.imageSrc&&n?(0,i.jsxs)(i.Fragment,{children:[this.state.iframeReady&&this.state.cookieSyncImageSrc&&(0,i.jsx)(m.K,{name:"cookie_sync_enabled",children:(0,i.jsx)(_.A,{dynamicSettingsKeyForCountryAllowList:"cookie_sync_country_allowlist",defaultCountryAllowList:["AU"],children:(0,i.jsx)("iframe",{title:(0,c.hw)("Cookie Sync","CookieSyncPixel"),src:this.state.cookieSyncImageSrc,height:"0",width:"0",style:{display:"none"}})})}),(0,i.jsx)("iframe",{title:(0,c.hw)("No Content","AmazonPixel"),src:this.state.imageSrc,onLoad:function(){return e.setState({iframeReady:!0})},height:"0",width:"0",style:{display:"none"},frameBorder:"0"})]}):null},n}(a.Component),S=(0,s.Zz)((0,l._v)(C(),{name:"connectAdIdentity"}),k.z3)(w),x=function(e){function n(n){var t=e.call(this,n)||this;return t.containerRef=null,t.renderBinding=function(e){t.containerRef=e},t.onScriptLoaded=function(){t.logger.debug("Script loaded"),t.sendBeacon(t.props.location)},t.sendBeacon=function(e){var n,i;if(!c.Zn.get("No_Track_Pages",[]).includes(e.pathname)){var o=(0,y.gK)(h.F.ComScore,null===(n=t.props)||void 0===n?void 0:n.consent)?(0,y.bq)(h.F.ComScore,null===(i=t.props)||void 0===i?void 0:i.consent)?0:1:"*null",a=(0,r.__assign)((0,r.__assign)({},t.data),{cs_ucfr:o});window.COMSCORE&&window.COMSCORE.beacon?(t.logger.debug("Sent",{data:a}),window.COMSCORE.beacon(a)):t.logger.debug("Could not send beacon; COMSCORE not available.",{data:a})}},t.onHistoryChange=function(e){var n=e.location;window.COMSCORE&&"function"==typeof window.COMSCORE.beacon&&t.sendBeacon(n)},t.scriptSrc=c.Zn.get("comscore_url","https://sb.scorecardresearch.com/beacon.js"),t.logger=c.vF.withCategory("Tracking/Comscore"),t.data={c1:c.Zn.get("comscore_config_c1",2),c2:c.Zn.get("comscore_config_c2",6745306),c3:c.Zn.get("comscore_config_c3",1),c5:c.Zn.get("comscore_config_c5","01")},t}return(0,r.__extends)(n,e),n.prototype.componentDidMount=function(){if(this.scriptSrc&&this.containerRef){if(document.querySelector('[data-name="comscore"]'))return;this.logger.debug("Loading",{url:this.scriptSrc});var e=document.createElement("script");e.async=!0,e.src=this.scriptSrc,e.dataset&&(e.dataset.name="comscore"),e.onload=this.onScriptLoaded,this.containerRef.appendChild(e)}else this.logger.warn("Skipping");this.props.subscribe(this.onHistoryChange),this.props.latencyTracking.reportInteractive()},n.prototype.render=function(){return this.scriptSrc?(0,i.jsx)("div",{ref:this.renderBinding}):null},n}(a.Component),T=(0,s.Zz)(f.y,(0,p.W)("Comscore"),k.z3)(x),I=t(921844),B=t.n(I),E=function(e){function n(n){var t=e.call(this,n)||this;return t.state={isError:!1},t.logger=c.vF.withCategory("Tracking/Manager"),t}return(0,r.__extends)(n,e),n.prototype.componentDidCatch=function(e,n){var t=this;this.setState({isError:!0},(function(){c.x2.stats.recordComponentError("TrackingManager"),t.logger.errorAndReport(e,"A unhandled exception occurred in the component hierarchy",{info:n})}))},n.prototype.componentDidMount=function(){this.reportInteractive(),c.E5.track("bttv_check",{is_bttv:!!window.BetterTTV}),c.E5.track("ffz_check",{is_ffz:!!window.FrankerFaceZ})},n.prototype.componentDidUpdate=function(){this.reportInteractive()},n.prototype.render=function(){if(this.state.isError||!this.props.data||this.props.data.loading||this.props.data.error)return null;var e=this.props.data.requestInfo.countryCode;if(!e&&c.$W.buildType!==d.n.Production){var n=o.parse(this.props.location.search||"");n.country?(e=n.country.toString(),this.logger.debug("Using supplied country code",{countryCode:e})):(e="US",this.logger.debug("Using default country code",{countryCode:e}))}return(0,i.jsxs)("div",{children:[(0,i.jsx)(g.zJ,{settingsKey:g.MV.Default,countryCode:e}),(0,i.jsx)(S,{}),(0,i.jsx)(u.j,{consentVendor:h.F.ComScore,children:(0,i.jsx)(T,{})})]})},n.prototype.reportInteractive=function(){!this.props.data||this.props.data.loading&&!this.props.data.error||this.props.latencyTracking.reportInteractive()},n}(a.Component),R=(0,s.Zz)(f.y,(0,l._v)(B()),(0,p.W)("TrackingManager"))(E)},540219:function(e,n,t){"use strict";t.d(n,{f6:function(){return m}});var r,i=t(331635),o=t(296540),a=t(415044),s=t(868238),c=t(883474),u=t(73849),l=t(368770),d=/^assets\/(.+)-.+\.(.+?)$/i,f=function(){function e(e,n){this.enabled=!0,this.logger=e.withCategory("update-manager"),this.config=n,n.manifestURL||(this.logger.debug("Disabling update loader. manifestURL is undefined."),this.enabled=!1),n.cdnURL||(this.logger.debug("Disabling update loader. cdnURL is undefined."),this.enabled=!1)}return e.prototype.getManifest=function(){return(0,i.__awaiter)(this,void 0,void 0,(function(){var e,n,t,r;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:return this.config.manifestURL?(this.logger.debug("Downloading manifest",{url:this.config.manifestURL}),e={},[4,fetch(this.config.manifestURL,e)]):(this.logger.errorAndReport(new Error("Unable to download manifest: The manifest URL is not set."),"Unable to download manifest: The manifest URL is not set."),[2]);case 1:if(!(n=i.sent()).ok)return this.logger.errorAndReport(new Error("Unable to download manifest"),"Unable to download manifest.",{status:n.status}),[2];i.label=2;case 2:return i.trys.push([2,4,,5]),[4,n.json()];case 3:if(!(t=i.sent()).channels)throw new Error("Update manager could not load manifest. It appears to be an invalid format.");return[2,t];case 4:return r=i.sent(),this.logger.errorAndReport(r,"Unable to parse manifest."),[3,5];case 5:return[2]}}))}))},e.prototype.getChunkURLs=function(e){for(var n=[],t=0,r=e;t