if (self.CavalryLogger) { CavalryLogger.start_js(["krOCo"]); } __d("VideoComponentScrubberPreviewQuery.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"LocalArgument",name:"videoID",type:"ID!",defaultValue:null}],b=[{kind:"Variable",name:"id",variableName:"videoID"}],c={kind:"InlineFragment",type:"Video",selections:[{kind:"LinkedField",alias:"scrubberPreviewThumbnailInformation",name:"scrubber_preview_thumbnail_information",storageKey:"scrubber_preview_thumbnail_information(height:45,width:45)",args:[{kind:"Literal",name:"height",value:45},{kind:"Literal",name:"width",value:45}],concreteType:"ScrubberPreview",plural:!1,selections:[{kind:"ScalarField",alias:"timeIntervalBetweenImages",name:"time_interval_between_image",args:null,storageKey:null},{kind:"ScalarField",alias:"previewScrubberWidth",name:"thumbnail_width",args:null,storageKey:null},{kind:"ScalarField",alias:"previewScrubberHeight",name:"thumbnail_height",args:null,storageKey:null},{kind:"ScalarField",alias:"maxImagesPerSprite",name:"max_number_of_images_per_sprite",args:null,storageKey:null},{kind:"ScalarField",alias:"imagesPerRow",name:"num_images_per_row",args:null,storageKey:null},{kind:"ScalarField",alias:"hasPreviewThumbnails",name:"has_preview_thumbnails",args:null,storageKey:null},{kind:"ScalarField",alias:"spriteIndexToURIMap",name:"sprite_uris",args:null,storageKey:null},{kind:"ScalarField",alias:"scrubberVideoURI",name:"scrubber_video_uri",args:null,storageKey:null}]}]};return{kind:"Request",fragment:{kind:"Fragment",name:"VideoComponentScrubberPreviewQuery",type:"Query",metadata:null,argumentDefinitions:a,selections:[{kind:"LinkedField",alias:"video",name:"node",storageKey:null,args:b,concreteType:null,plural:!1,selections:[c]}]},operation:{kind:"Operation",name:"VideoComponentScrubberPreviewQuery",argumentDefinitions:a,selections:[{kind:"LinkedField",alias:"video",name:"node",storageKey:null,args:b,concreteType:null,plural:!1,selections:[{kind:"ScalarField",alias:null,name:"__typename",args:null,storageKey:null},{kind:"ScalarField",alias:null,name:"id",args:null,storageKey:null},c]}]},params:{operationKind:"query",name:"VideoComponentScrubberPreviewQuery",id:"1932498816782184",text:null,metadata:{}}}}();e.exports=a}),null); __d("VideoComponentWithInstreamVideoQuery.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"LocalArgument",name:"videoID",type:"ID!",defaultValue:null}],b=[{kind:"Variable",name:"id",variableName:"videoID"}],c={kind:"InlineFragment",type:"Video",selections:[{kind:"ScalarField",alias:"adBreaksViewerConfig",name:"ad_breaks_viewer_config",args:null,storageKey:null}]};return{kind:"Request",fragment:{kind:"Fragment",name:"VideoComponentWithInstreamVideoQuery",type:"Query",metadata:null,argumentDefinitions:a,selections:[{kind:"LinkedField",alias:"video",name:"node",storageKey:null,args:b,concreteType:null,plural:!1,selections:[c]}]},operation:{kind:"Operation",name:"VideoComponentWithInstreamVideoQuery",argumentDefinitions:a,selections:[{kind:"LinkedField",alias:"video",name:"node",storageKey:null,args:b,concreteType:null,plural:!1,selections:[{kind:"ScalarField",alias:null,name:"__typename",args:null,storageKey:null},{kind:"ScalarField",alias:null,name:"id",args:null,storageKey:null},c]}]},params:{operationKind:"query",name:"VideoComponentWithInstreamVideoQuery",id:"1941634209219931",text:null,metadata:{}}}}();e.exports=a}),null); __d("InstreamVideoAdBreak",[],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(){__p&&__p();function a(a){this.$1=a.instreamPlacement,this.$2=a.index,this.$3=a.timeOffsetInMs,this.$4=a.adBreakDurationInMs,this.$5=a.isAdBreakAutoInserted,this.$6=a.naturalnessScore,this.$7=a.midSpeechScore}var b=a.prototype;b.getInstreamPlacement=function(){return this.$1};b.getIndex=function(){return this.$2};b.getTimeOffsetInMs=function(){return this.$3};b.getAdBreakDurationInMs=function(){return this.$4};b.getIsAdBreakAutoInserted=function(){return this.$5};b.getNaturalnessScore=function(){return this.$6};b.getMidSpeechScore=function(){return this.$7};return a}();e.exports=a}),null); __d("PopoverAsyncMenu.react",["cx","CSS","InlineBlock.react","MenuTheme","Popover","PopoverAsyncMenu","PopoverLoadingMenu","PopoverMenu.react","React","ReactDOM","URI","joinClasses"],(function(a,b,c,d,e,f,g){__p&&__p();a=b("React").PropTypes;c=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){__p&&__p();var c,d;for(var e=arguments.length,f=new Array(e),g=0;gd){this.$7.release();b("QE").logExposure(this.$4);if(!this.$5){d={ad_break_index:this.$3[c].getIndex(),commercial_break_no_ad_reason:"control_group",host_video_id:this.$1.getVideoID(),instream_video_ad_type:this.$2?"vod":"nonlive"};b("MarauderLogger").log("commercial_break_start_show_nothing","commercial_break",d)}return}}};return a}();e.exports=a}),null); __d("CommercialBreakStartingIndicator.react",["cx","fbt","CircularProgressBar.react","CSS","DateConsts","React","Style","SubscriptionsHandler","VideoPlayerUIComponentDrawer","clearInterval","clearTimeout","setInterval","setTimeout"],(function(a,b,c,d,e,f,g,h){__p&&__p();var i=300,j=300,k=31;a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(c){__p&&__p();var d;d=a.call(this,c)||this;d.$1=null;d.$2=null;d.$4=null;d.$12=null;d.$13=null;d.$15=!1;d.state={percentComplete:-1};d.$11=!1;d.$15=!1;d.$3=new(b("SubscriptionsHandler"))();d.$6=d.props.controller.addListener("optionsChange",function(){return d.$16()});d.$16();d.$14=d.props.controller.registerDrawer(b("VideoPlayerUIComponentDrawer").priorities.AdBreakStartingIndicator,k);return d}var d=c.prototype;d.$16=function(){__p&&__p();var a=this;if(!this.$1){var b=this.props.controller.getOption("VideoWithInstreamVideo","controller");this.$1=b&&b.getConfig()}if(!this.$5){b=this.props.controller.getOption("VideoWithCommercialBreak","controller");this.$5=b&&b.addListener("commercialBreak/stateChange",function(b){return a.$17(b.state)})}this.$1&&this.$5&&this.$6.remove()};d.$18=function(){b("clearInterval")(this.$4),b("CSS").addClass(this.props.container,"_20dq"),this.$10&&b("CSS").removeClass(this.$10,"_3ee4"),this.$9&&b("CSS").removeClass(this.$9,"_3ee4"),this.$7&&b("CSS").removeClass(this.$7,"_3ee6"),this.$7&&b("CSS").removeClass(this.$7,"_3ee4"),b("CSS").removeClass(this.props.container,"_1xn2"),this.setState({percentComplete:-1}),this.$11=!1};d.$19=function(a){var c=this.props.controller.getCurrentTimePosition()*b("DateConsts").MS_PER_SEC,d=-1;c>a?this.$20():this.$1&&this.$1.startingIndicatorMs&&c>a-this.$1.startingIndicatorMs&&(d=100-100*(a-c)/this.$1.startingIndicatorMs);this.setState({percentComplete:d})};d.$21=function(a){__p&&__p();var c=this,d=this.props.controller.getCurrentTimePosition()*b("DateConsts").MS_PER_SEC;if(d>a){this.$15||this.$20();return}b("clearInterval")(this.$4);if(!this.$1||!this.$1.startingIndicatorMs)return;this.$4=b("setInterval")(function(){c.$19(a)},this.$1.startingIndicatorMs/100);this.$15=!0};d.componentDidMount=function(){var a=this;this.$3.addSubscriptions(this.props.controller.addListener("commercialBreak/vodBreakStarting",function(b){a.$21(b)}),this.props.controller.addListener("seekRequested",this.$18.bind(this)));this.props.controller.registerOption("WatchAndScroll","hideOverlay",function(){return a.$2!==null});this.props.controller.registerOption("VideoContextMenu","disablePauseMenuItem",function(){return a.$2!==null});this.props.controller.registerOption("VideoWithInstreamVideo","disableClickToPause",function(){return a.$2!==null})};d.componentWillUnmount=function(){this.$3.release(),this.$5&&this.$5.remove(),this.props.controller.unregisterOption("WatchAndScroll","hideOverlay"),this.props.controller.unregisterOption("VideoContextMenu","disablePauseMenuItem"),this.props.controller.unregisterOption("VideoWithInstreamVideo","disableClickToPause")};d.UNSAFE_componentWillReceiveProps=function(a){a.adsStopped&&this.$20()};d.componentDidUpdate=function(){this.$9&&this.$8&&b("Style").set(this.$9,"width",this.$8.clientWidth+34+"px"),!this.$11&&this.state.percentComplete>=0&&(b("CSS").addClass(this.props.container,"_1xn2"),this.$11=!0,this.$14.reserve())};d.$17=function(a){switch(a){case"ENTERING_TRANSITION":this.$22();break;case"INIT":case"PLAY_AD":this.$20();break}};d.$22=function(){__p&&__p();var a=this;b("clearInterval")(this.$4);var c=this.$1;if(!c||!c.beginningNonLiveTransitionTimeMs)return;c=c.beginningNonLiveTransitionTimeMs-i;if(c=0&&this.$23()};d.render=function(){var a=this;this.$2&&b("CSS").removeClass(this.props.container,"_20dq");return b("React").createElement("div",{className:"_3ee7"},b("React").createElement("div",{className:"_1xne",ref:function(b){a.$9=b}}),b("React").createElement("div",{className:"_3ee9",ref:function(b){a.$10=b}},b("React").createElement("div",{className:"_20ds"},b("React").createElement(b("CircularProgressBar.react"),{percentComplete:this.state.percentComplete})),b("React").createElement("div",{className:"_4zpn",ref:function(b){a.$8=b}},this.$24())),b("React").createElement("div",{className:"_3eea",ref:function(b){a.$7=b}},this.$25()))};return c}(b("React").Component);e.exports=a}),null); __d("CommercialBreakVideoAdOverlay",["cx","Arbiter","CommercialBreakUtil","CSS","DOM","DOMDimensions","Event","InstreamVideoAdsController","SubscriptionsHandler","getFullScreenElement","gkx","setTimeout"],(function(a,b,c,d,e,f,g){__p&&__p();var h=300;a=function(){"use strict";__p&&__p();function a(a){this.$7=a.root,this.$9=!1,this.$4=null,this.$10=!1,this.$11=!1,this.$12=0,this.$14=!1}var c=a.prototype;c.enable=function(a){var b=this;this.$1=a;this.$6=a.addListener("optionsChange",function(){return b.$15()});this.$15()};c.disable=function(){this.$6.remove()};c.stopAdWithoutTransition=function(){this.$16(),this.$3&&this.$3.reset()};c.$15=function(){__p&&__p();var a=this;this.$2=this.$1.getOption("VideoWithInstreamVideo","controller");if(!this.$2)return;this.$3=this.$1.getOption("VideoWithCommercialBreak","controller");if(!this.$3)return;this.$6.remove();this.$8=this.$2.getConfig();this.$1.addListener("commercialBreak/vodBreakStarting",function(){a.$17()});this.$3.addListener("commercialBreak/videoAdStoryFetched",function(c,d,e,f,g){c&&(b("DOM").setContent(a.$7,c),a.$10=!0,a.$11=!d,a.$12=e,a.$2.setCurrentInstreamVideoAdBreakVideoID(f),a.$2.setCurrentInstreamVideoAdBreakClientToken(g))});this.$3.addListener("commercialBreak/stateChange",function(c){__p&&__p();c=c.state;switch(c){case"AD_REQUEST_SENT":case"ENTERING_TRANSITION":c=a.$18();!!c.height&&!!c.width&&(a.$13=c);break;case"PLAY_AD":b("CommercialBreakUtil").getNonInterruptiveStoryTypeConfig().has(a.$3.getReceivedAdStoryType())||a.$19();break;case"INIT":a.$20();break;case"LEAVING_TRANSITION":a.$8.isBroadcast&&(a.$21()?(b("CSS").addClass(a.$7,"_7zxn"),b("setTimeout")(function(){return a.$16()},h)):a.$16());break}});this.$3.addListener("commercialBreak/inTransition",function(b){return a.$22(b.shouldShowAd)});this.$1.addListener("commercialBreak/CTAClicked",this.$23.bind(this))};c.$23=function(){this.$14=!0};c.$24=function(a){__p&&__p();var b=this,c;a.setLogEntryPropertyGetters((c={},c.host_video_id=this.$8.hostVideoID,c.instream_video_ad_break_index=this.$12,c));a.addListener("stateChange",function(){!b.$4?b.$25():b.$4.isState("finished")&&b.$25()});a.addListener("playRequested",function(a){a==="user_initiated"&&b.$2.logMarauderEvent("commercial_break_play_ad")});a.addListener("pauseRequested",function(a){b.$2.logMarauderEvent("commercial_break_pause_ad",{video_player_reason:a})});this.$2.registerInstreamVideo(a);this.$26();this.$27();this.$28();this.$29()};c.$30=function(){var a=this.$2.getCurrentInstreamVideoAdType();switch(a){case"live":this.$3.getIsDuplicateLiveVideo()?a="duplicate_video":!this.$10?a="wait_for_failed":!this.$11?a="no_video_ad":a="playback_error";this.$2.logMarauderEvent("commercial_break_static_countdown",{commercial_break_no_ad_reason:a});break;case"vod":case"nonlive":a="playback_error";this.$2.logMarauderEvent("commercial_break_start_show_nothing",{commercial_break_no_ad_reason:a});this.$3.reset();break}};c.$25=function(){this.$8.isBroadcast&&!this.$21()&&this.$16(),this.$3.leaveAdBreak()};c.$19=function(){this.$9=!1,this.$17(),this.$4?this.$24(this.$4):this.$30()};c.$17=function(){var a=this;this.$4=b("InstreamVideoAdsController").findVideoControllerForStory(this.$7);this.$4&&!this.$4.hasOption("CommercialBreakVideoAdOverlay","videoController")&&this.$4.registerOption("CommercialBreakVideoAdOverlay","videoController",function(){return a.$1});this.$4&&!this.$4.hasOption("VideoContextMenu","disablePauseMenuItem")&&this.$4.registerOption("VideoContextMenu","disablePauseMenuItem",function(){return a.$8.isLive||!a.$8.canPauseAdBreak})};c.$18=function(){var a=b("DOMDimensions").getElementDimensions(this.$1.getRootNode());this.$1.isFullscreen()&&(a=b("DOMDimensions").getElementDimensions(b("getFullScreenElement")()));return a};c.$26=function(){var a=this.$4;if(!a)return;var b=this.$18();(!b.width||!b.height)&&this.$13&&(b=this.$13);a.setDimensions(b.width,b.height)};c.$27=function(){var a=this.$4;if(!a)return;var b=this.$1.getSource();b&&a.updateSource(b)};c.$28=function(){if(!b("gkx")("678895"))return;var a=this.$4;if(!a)return;var c=this.$1.getSelectedVideoQuality();c&&a.setPreferredVideoQuality(c)};c.$31=function(){this.$2.shouldPlayInstreamAd()&&(b("CSS").removeClass(this.$7,"_50m2"),this.$21()&&(this.$7.style.setProperty("display","flex"),this.$7.style.setProperty("flex-direction","column"),this.$7.style.setProperty("justify-content","center")),(!this.$8.isBroadcast||this.$2.getCurrentInstreamPlacement()==="pre_roll")&&this.$1.emit("commercialBreak/hideUFI"),this.$2.playInstreamAd())};c.$22=function(a){a?(this.$17(),this.$26(),this.$4&&b("CSS").removeClass(this.$7,"_50m2")):this.$16()};c.$29=function(){__p&&__p();var a=this;if(this.$9)return;this.$9=!0;this.$5=new(b("SubscriptionsHandler"))();this.$5.addSubscriptions(this.$1.addListener("VideoChannelController/enterChannel",this.$32.bind(this)),b("Arbiter").subscribe("VideoChannelView/closed",this.$32.bind(this)),this.$1.addListener("TahoeController/exitTahoe",this.$32.bind(this)),this.$1.addListener("TahoeController/enterTahoe",this.$32.bind(this)),this.$1.addListener("toggleFullscreen",function(){a.$26(),a.$4&&a.$4.logEvent(a.$4.isFullscreen()?"entered_fs":"exited_fs")}),this.$1.addListener("WatchAndScroll/positionUpdated",this.$26.bind(this)),this.$1.addListener("commercialBreak/scrollAway",function(){a.$4&&a.$4.isState("playing")&&(a.$4.pause("autoplay_initiated"),a.$1.once("commercialBreak/scrollInto",function(){a.$9&&a.$4&&a.$4.isState("paused")&&a.$4.play("autoplay_initiated")}))}),this.$1.addListener("commercialBreak/scrollInto",function(){a.$9&&a.$4&&a.$4.isState("ready")&&a.$31()}),b("Event").listen(window,"focus",this.$33.bind(this)));this.$31()};c.$33=function(){this.$14&&this.$3.endCommercialBreakByCTAClick()};c.$32=function(){this.$26(),this.$27()};c.$16=function(){if(!this.$9)return;this.$4&&this.$4.isState("playing")&&this.$4.pause("autoplay_initiated");this.$20()};c.$20=function(){__p&&__p();this.$5&&this.$5.release();this.$9=!1;this.$10=!1;this.$11=!1;this.$12=0;this.$2.setCurrentInstreamVideoAdBreakVideoID(null);this.$14=!1;b("CSS").removeClass(this.$7,"_7zxn");b("CSS").addClass(this.$7,"_50m2");this.$4&&this.$4.destroy();this.$4=null;while(this.$7.children.length>0)b("DOM").remove(this.$7.children[0])};c.$21=function(){var a=this.$1.getOption("CommercialBreakWithSqueezeback","controller");return a&&a.isEligibleForSqueezeback()};return a}();e.exports=a}),null); __d("InstreamNFXHideType",[],(function(a,b,c,d,e,f){e.exports={HIDE_AD:"HIDE_AD",HIDE_AD_BREAKS:"HIDE_AD_BREAKS"}}),null); __d("CountdownTimer.react",["fbt","React"],(function(a,b,c,d,e,f,g){__p&&__p();a=b("React").PropTypes;var h=1e3,i=3600,j=i*24*h;function k(a){if(a<10)return"0"+a;else return a.toString()}function l(a,b){var c=0;while(c=j){var c=Math.floor(a/j);return b("React").createElement("span",null,c===1?g._("1 day"):g._({"*":"{number} days"},[g._param("number",c,[0])]))}else{c=Math.ceil(a/h);a=Math.floor(c/i);c=new Date(c%i*h);var d=c.getUTCMinutes();c=c.getSeconds();return b("React").createElement("span",null,this.formatTime(a,d,c))}};return c}(b("React").Component);c.propTypes={endTime:a.number.isRequired,format:a.oneOf([n.HUMAN,n.DIGITAL]).isRequired,onComplete:a.func};e.exports=c}),null); __d("GamesVideoAdStartedMutationWebGraphQLMutation",["WebGraphQLMutationBase"],(function(a,b,c,d,e,f){"use strict";__p&&__p();e.exports=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}b.__getDocID=function(){return"2542375465834301"};b.getQueryID=function(){return"328985801280026"};return b}(b("WebGraphQLMutationBase"))}),null); __d("VideoCommercialBreakTransitionOverlay",["cx","fbt","CenteredContainer.react","CountdownTimer.react","CSS","DOMDimensions","GamesVideoAdStartedMutationWebGraphQLMutation","Image.react","QE2Logger","React","ReactDOM","SubscriptionsHandler","WebGraphQL","XUISpinner.react","XUIText.react","clearTimeout","setTimeout"],(function(a,b,c,d,e,f,g,h){__p&&__p();var i=300,j=300;a=function(){"use strict";__p&&__p();function a(a){this.$12=null,this.$13=null,this.$1=a.root,this.$2=a.body,this.$3=a.ownerName,this.$4=a.ownerPictureUri,this.$5=a.interactiveAlertAdStartedConfig,this.$10=new(b("SubscriptionsHandler"))()}var c=a.prototype;c.enable=function(a){var b=this;this.$7=a;this.$8=a.addListener("optionsChange",function(){return b.$14()});this.$14()};c.disable=function(){this.$8.remove()};c.$14=function(){__p&&__p();var a=this;this.$6=this.$7.getOption("VideoWithCommercialBreak","controller");if(!this.$6)return;var b=this.$7.getOption("VideoWithInstreamVideo","controller");if(!b)return;this.$9=b.getConfig();this.$8.remove();this.$10.engage();this.$10.addSubscriptions(this.$6.addListener("commercialBreak/stateChange",function(b){var c=b.state,d=b.countdownDurationMsecs;b=b.instreamPlacement;a.$15(c,d,b)}));this.$7.addListener("VideoChannelController/exitChannel",this.$16.bind(this));this.$7.addListener("stateChange",this.$16.bind(this))};c.$15=function(a,b,c){__p&&__p();this.$11=a;switch(a){case"PREPARE":this.$17(c);break;case"ENTERING_TRANSITION":this.$18(c);break;case"PLAY_AD":this.$19(b,c);break;case"LEAVING_TRANSITION":this.$20(c);break;case"INIT":this.$21();break}this.$16(c)};c.$22=function(){var a=this.$5;if(!a)return;b("QE2Logger").logExposureForUser(a.interactiveAlertQEName);if(!a.enabled)return;b("WebGraphQL").exec(new(b("GamesVideoAdStartedMutationWebGraphQLMutation"))({input:{video_id:this.$9.hostVideoID.toString()}}))};c.$17=function(a){a==="pre_roll"&&(b("CSS").addClass(this.$2,"_1p58"),b("ReactDOM").render(b("React").createElement(b("XUISpinner.react"),{className:"_179h",size:"large",background:"dark"}),this.$2));return};c.$18=function(a){this.$22(),this.$9.isBroadcast&&a!=="pre_roll"?(this.$23(h._("will be back soon"),null),this.$7.emit("commercialBreak/hideUFI")):this.$24(a)};c.$24=function(a){var c=this;if(!this.$9.beginningNonLiveTransitionTimeMs)return;this.$25();var d=Math.max(i,this.$9.beginningNonLiveTransitionTimeMs-i);a==="pre_roll"&&b("ReactDOM").render(b("React").createElement(b("CenteredContainer.react"),{fullHeight:!0,horizontal:!0,vertical:!0},b("React").createElement(b("XUIText.react"),{size:"header3",color:"white",display:"block"},h._("Video will begin after an ad"))),this.$2);b("CSS").addClass(this.$2,"_hax");this.$12=b("setTimeout")(function(){b("clearTimeout")(c.$12),c.$6.emit("commercialBreak/inTransition",{shouldShowAd:!0}),b("CSS").addClass(c.$2,"_hay")},d)};c.$20=function(a){this.$9.isLive&&a==="pre_roll"?this.$26():this.$9.isBroadcast?this.$27()?b("ReactDOM").unmountComponentAtNode(this.$2):this.$23(h._("is returning now"),null):this.$28()};c.$26=function(){var a=this;if(!this.$9.endingNonLiveTransitionTimeMs)return;this.$25();b("CSS").addClass(this.$2,"_6h7-");this.$13=b("setTimeout")(function(){b("clearTimeout")(a.$13),a.$6.emit("commercialBreak/inTransition",{shouldShowAd:!1}),b("CSS").addClass(a.$2,"_hay")},j)};c.$28=function(){var a=this;if(!this.$9.endingNonLiveTransitionTimeMs)return;this.$25();b("CSS").addClass(this.$2,"_hax");this.$13=b("setTimeout")(function(){b("clearTimeout")(a.$13),a.$6.emit("commercialBreak/inTransition",{shouldShowAd:!1}),b("CSS").addClass(a.$2,"_hay")},j)};c.$25=function(){b("CSS").removeClass(this.$2,"_hax"),b("CSS").removeClass(this.$2,"_6h7-"),b("CSS").removeClass(this.$2,"_hay"),b("CSS").removeClass(this.$2,"_1p58"),b("ReactDOM").unmountComponentAtNode(this.$2)};c.$19=function(a,c){this.$9.isBroadcast&&c!=="pre_roll"&&(a?this.$23(h._("will return in"),a):this.$23(h._("will be back soon"),null)),c==="pre_roll"&&b("ReactDOM").unmountComponentAtNode(this.$2)};c.$23=function(a,c,d){__p&&__p();var e=this;b("ReactDOM").unmountComponentAtNode(this.$2);d=null;c&&(d=b("React").createElement("div",{className:"_4fih"},b("React").createElement(b("CountdownTimer.react"),{endTime:Date.now()+c,format:"digital"})));c=b("React").createElement("div",{className:"_3y74"},b("React").createElement("div",{className:"_2s3m"},this.$3),b("React").createElement(b("Image.react"),{src:this.$4,width:56,className:"_2s3l"}),b("React").createElement("div",null,b("React").createElement("div",{className:"_4fid"},a),d));a=this.$29();d=a?a.videoHeight/a.videoWidth*b("DOMDimensions").getElementDimensions(a).width:0;a=this.$27()?b("React").createElement("div",{style:{height:d+"px",overflow:"hidden"}},b("React").createElement(b("Image.react"),{src:this.$4,className:"_7zyc"}),c):b("React").createElement(b("React").Fragment,null,c);this.$27()&&(b("CSS").addClass(this.$2,"_7-4w"),b("CSS").addClass(this.$2,"_7zyd"),this.$12=b("setTimeout")(function(){b("clearTimeout")(e.$12),b("CSS").addClass(e.$2,"_7zxn")},this.$9.beginningTransitionTimeMs-i));b("ReactDOM").render(a,this.$2)};c.$21=function(){b("ReactDOM").unmountComponentAtNode(this.$2),this.$7.emit("commercialBreak/showUFI"),b("clearTimeout")(this.$12),b("clearTimeout")(this.$13)};c.$29=function(){return this.$7?this.$7.getVideoNodeNullable():null};c.$30=function(){var a=this.$29();a&&(b("CSS").removeClass(a,"_1_d3"),b("CSS").removeClass(this.$1,"_2s3i"),b("CSS").removeClass(this.$1,"_bvi"),b("CSS").removeClass(this.$2,"_3j0w"),b("CSS").removeClass(this.$2,"_7zxn"));b("CSS").addClass(this.$1,"_4fii")};c.$31=function(a){var c=this.$29();this.$9.isBroadcast&&a!=="pre_roll"&&c?(b("CSS").addClass(this.$1,"_2s3i"),this.$27()||b("CSS").addClass(c,"_1_d3")):(b("CSS").addClass(this.$2,"_3j0w"),b("CSS").addClass(this.$1,"_bvi"));b("CSS").removeClass(this.$1,"_4fii")};c.$16=function(a){switch(this.$11){case"PREPARE":a==="pre_roll"&&this.$31(a);break;case"ENTERING_TRANSITION":case"LEAVING_TRANSITION":this.$31(a);break;case"PLAY_AD":this.$9.isBroadcast&&a!=="pre_roll"?this.$31(a):this.$30();break;case"AD_REQUEST_SENT":break;default:this.$30()}};c.$27=function(){var a=this.$7.getOption("CommercialBreakWithSqueezeback","controller");return a&&a.isEligibleForSqueezeback()};return a}();e.exports=a}),null); __d("XInstreamVideoDemoStoryAsyncController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/video/instream_demo/view/story/async/",{instream_video_type:{type:"Enum",required:!0,enumType:1},instream_video_break_index:{type:"Int",required:!0},show_short_ad:{type:"Bool",defaultValue:!1},instream_placement:{type:"Enum",required:!0,enumType:1}})}),null); __d("XInstreamVideoSponsoredStoryAsyncController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/video/instream_video/view/story/async/",{host_video_id:{type:"FBID",required:!0},instream_video_type:{type:"Enum",required:!0,enumType:1},instream_video_break_index:{type:"Int",required:!0},player_origin:{type:"String"},player_sub_origin:{type:"String"},script_path:{type:"String"},video_channel_caller:{type:"Enum",enumType:1},is_sponsored_host_video:{type:"Bool",defaultValue:!1},referrer:{type:"String"},option_menu_button_id:{type:"String"},host_video_stall_count:{type:"Int"},ad_break_duration_ms:{type:"Int"},player_format:{type:"String"},instream_placement:{type:"Enum",required:!0,enumType:1},story_identifier:{type:"String"},window_href:{type:"String"},ad_trigger_source:{type:"Enum",enumType:1},client_live_video_timestamp:{type:"Int"}})}),null); __d("isVideoAutoplayAllowed",[],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=new Blob([],{type:"video/mp4"});function a(a){var b=document.createElement("video"),c=URL.createObjectURL(g);b.src=c;var d=function(){b.removeAttribute("src"),URL.revokeObjectURL(c)},e=b.play();e!==void 0?e.then(function(){return a(!0)})["catch"](function(b){b.name==="NotAllowedError"?a(!1):a(!0)})["finally"](function(){return d()}):(d(),a(!0))}e.exports=a}),null); __d("VideoWithCommercialBreak",["cx","invariant","Arbiter","AsyncRequest","BanzaiODS","Base64","CommercialBreakExperiments","CommercialBreakHostStoryComponentType","CommercialBreakUtil","CSS","DataStore","DateConsts","DOM","DOMQuery","EntstreamFeedObjectFollowup","EventEmitter","InstreamNFXHideType","QE2Logger","ScriptPath","StoryComponentVideoPlayerControllerRegistry","SubscriptionsHandler","ViewportTrackingHelper","Visibility","XInstreamVideoDemoStoryAsyncController","XInstreamVideoSponsoredStoryAsyncController","ghlTestUBT","gkx","isVideoAutoplayAllowed","setTimeout","uniqueID"],(function(a,b,c,d,e,f,g,h){__p&&__p();var i=Object.freeze({SHORT_AD_COUNTDOWN_MS:3e3}),j=Object.freeze({NONE:"none",PLAYBACK_FINISHED:"playback_finished",CUT_OFF:"cut_off",HIDE_AD:"hide_ad",HIDE_AD_BREAKS:"hide_ad_breaks",CALL_TO_ACTION_BUTTON_CLICKS:"call_to_action_button_clicks"}),k=Object.freeze({NORMAL:"normal",STALL_STREAM:"stall_stream",STREAM_DRY_OUT:"stream_dry_out"});a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(c){__p&&__p();var d;d=a.call(this)||this;d.$VideoWithCommercialBreak8="INIT";d.$VideoWithCommercialBreak13=new(b("SubscriptionsHandler"))();d.$VideoWithCommercialBreak14=null;d.$VideoWithCommercialBreak21=!1;d.$VideoWithCommercialBreak24=0;d.$VideoWithCommercialBreak20=null;d.$VideoWithCommercialBreak28=b("uniqueID")();d.$VideoWithCommercialBreak30=-1;d.$VideoWithCommercialBreak18=!1;d.$VideoWithCommercialBreak38=c.nonInterruptiveAdConfig;d.$VideoWithCommercialBreak32=c.preRollAdBreak;d.$VideoWithCommercialBreak33=c.preRollConfig;d.$VideoWithCommercialBreak34=null;d.$VideoWithCommercialBreak41={NISourceState:null,isNICollapse:!1,isEnable:!1,isNIPreloadedAndHide:!1,isNIRemovedDuringPreloaded:!1,NIhidedInWNS:!1};d.$VideoWithCommercialBreak33&&d.$VideoWithCommercialBreak33.preRollEnabled&&(d.$VideoWithCommercialBreak34="init");b("ghlTestUBT")(function(a){d.$VideoWithCommercialBreak23=a});return d}var d=c.prototype;d.enable=function(a){__p&&__p();var c=this;this.$VideoWithCommercialBreak1=a;this.$VideoWithCommercialBreak42=a.getRootNode();this.$VideoWithCommercialBreak2=a.addListener("optionsChange",function(){return c.$VideoWithCommercialBreak43()});this.$VideoWithCommercialBreak35=b("Arbiter").subscribe("commercialBreak/start",this.$VideoWithCommercialBreak44.bind(this));this.$VideoWithCommercialBreak36=b("Arbiter").subscribe("RHCVideoWNSController/closeEnd",this.$VideoWithCommercialBreak45.bind(this));this.$VideoWithCommercialBreak43();this.$VideoWithCommercialBreak5=a.addListener("TahoeController/enterTahoe",this.$VideoWithCommercialBreak46.bind(this));this.$VideoWithCommercialBreak6=a.addListener("TahoeController/exitTahoe",this.$VideoWithCommercialBreak47.bind(this))};d.disable=function(){this.$VideoWithCommercialBreak2.remove(),this.$VideoWithCommercialBreak5!=null&&this.$VideoWithCommercialBreak5.remove(),this.$VideoWithCommercialBreak6!=null&&this.$VideoWithCommercialBreak6.remove(),this.$VideoWithCommercialBreak3!=null&&this.$VideoWithCommercialBreak3.remove(),this.$VideoWithCommercialBreak1.unregisterOption("VideoWithCommercialBreak","enabled"),this.$VideoWithCommercialBreak1.unregisterOption("VideoWithCommercialBreak","controller"),this.$VideoWithCommercialBreak1.unregisterOption("VideoWithCommercialBreak","isInstreamPausedByNFX"),this.$VideoWithCommercialBreak35&&this.$VideoWithCommercialBreak35.unsubscribe(),this.$VideoWithCommercialBreak36&&this.$VideoWithCommercialBreak36.unsubscribe(),this.$VideoWithCommercialBreak34=null};d.shouldPlayPreRollAds=function(a){__p&&__p();if(!(a==="user_initiated"||this.$VideoWithCommercialBreak48()))return!1;a=this.$VideoWithCommercialBreak33;if(!a)return!1;if(!this.$VideoWithCommercialBreak32)return!1;if(this.$VideoWithCommercialBreak7.shouldShowDemoAd&&this.$VideoWithCommercialBreak7.instreamPlacement=="pre_roll")return this.$VideoWithCommercialBreak34=="init";if(!this.$VideoWithCommercialBreak49())return!1;b("QE2Logger").logExposureForUser(a.preRollQEName);if(!this.$VideoWithCommercialBreak34)return!1;if(this.$VideoWithCommercialBreak34!="init")return!1;var c=this.$VideoWithCommercialBreak1,d=c.getPlayerOrigin(),e=b("CommercialBreakUtil").getVideoPlayerSubOrigin(c);c=c.getUpstreamPlayerSource();var f=a.videoHomeWatchlistEnabled&&d==="video_home"&&e==="watchlist";c=a.serpEnabled&&d==="video_home"&&e==="entry_point"&&c==="search";var g=a.serpEnabled&&d==="search",h=a.pageTabHomeEnabled&&d==="page_timeline"&&e==="page_tab_home",i=a.pageTabEpisodeEnabled&&d==="page_timeline"&&e==="page_tab_episodes",j=a.gamingStreamerHubEnabled&&d==="games_video_hub"&&e==="gaming_video_destination_streamer_hub",k=a.permalinkTahoeEnabled&&d==="permalink"&&e==="tahoe";d=a.notificationsTahoeEnabled&&d==="notifications"&&e==="tahoe";if(f||c||g||h||i||j||k||d){if(b("gkx")("678897"))return!0;e=this.$VideoWithCommercialBreak7.startTimestampSec*b("DateConsts").MS_PER_SEC;f=this.$VideoWithCommercialBreak7.videoPlayableDurationInMs;if(e&&f){c=f-e;if(e>a.maxVideoPlaybackTimeMs){this.$VideoWithCommercialBreak12.logMarauderEvent("commercial_break_pre_roll_blocked_by_resume_time",{video_resume_time_in_ms:e,video_play_time_left_in_ms:c});return!1}else if(c>a.minVideoTimeLeftMs){this.$VideoWithCommercialBreak12.logMarauderEvent("commercial_break_pre_roll_blocked_by_remaining_time",{video_resume_time_in_ms:e,video_play_time_left_in_ms:c});return!1}}return!0}return!1};d.schedulePreRollAds=function(){var a=this.$VideoWithCommercialBreak32;a||h(0,5654);this.onIntentCommand(a.getIndex(),a.getInstreamPlacement(),a.getAdBreakDurationInMs())};d.$VideoWithCommercialBreak50=function(){var a=this.$VideoWithCommercialBreak1,c=a.getPlayerOrigin();a=b("CommercialBreakUtil").getVideoPlayerSubOrigin(a);if(c==="games_video_hub"&&a==="gaming_video_destination_streamer_hub"||c==="permalink"&&a==="tahoe")return!0;else return!1};d.$VideoWithCommercialBreak49=function(){var a=this.$VideoWithCommercialBreak1,c=a.getPlayerOrigin(),d=b("CommercialBreakUtil").getVideoPlayerSubOrigin(a);a=a.getUpstreamPlayerSource();return c==="video_home"&&d==="watchlist"||c==="video_home"&&d==="entry_point"&&a==="search"||c==="page_timeline"&&d==="page_tab_home"||c==="page_timeline"&&d==="page_tab_episodes"||c==="search"||c==="games_video_hub"&&d==="gaming_video_destination_streamer_hub"||c==="permalink"&&d==="tahoe"||c==="notifications"&&d==="tahoe"?!0:!1};d.$VideoWithCommercialBreak48=function(){var a=this.$VideoWithCommercialBreak1,c=a.getPlayerOrigin(),d=b("CommercialBreakUtil").getVideoPlayerSubOrigin(a);a=a.getUpstreamPlayerSource();return c==="video_home"&&d==="entry_point"&&a==="search"?!0:!1};d.$VideoWithCommercialBreak43=function(){__p&&__p();var a=this;this.$VideoWithCommercialBreak12=this.$VideoWithCommercialBreak1.getOption("VideoWithInstreamVideo","controller");if(!this.$VideoWithCommercialBreak12)return;this.$VideoWithCommercialBreak2.remove();this.$VideoWithCommercialBreak7=this.$VideoWithCommercialBreak12.getConfig();this.$VideoWithCommercialBreak7.isComposerPreviewing||(b("CommercialBreakExperiments").instreamAdsNFXOnContextCard&&b("StoryComponentVideoPlayerControllerRegistry").registerVideoPlayerController(this.$VideoWithCommercialBreak1,b("CommercialBreakHostStoryComponentType").POP_OVER_MENU),b("CommercialBreakExperiments").instreamAdsEnableGreyHostStory&&b("StoryComponentVideoPlayerControllerRegistry").registerVideoPlayerController(this.$VideoWithCommercialBreak1,b("CommercialBreakHostStoryComponentType").HOST_STORY_HEADER));this.reset();this.$VideoWithCommercialBreak1.registerOption("VideoWithCommercialBreak","enabled",function(){return!0});this.$VideoWithCommercialBreak1.registerOption("VideoWithCommercialBreak","controller",function(){return a});this.$VideoWithCommercialBreak1.registerOption("VideoWithCommercialBreak","isInstreamPausedByNFX",this.$VideoWithCommercialBreak51.bind(this));this.$VideoWithCommercialBreak7!=null&&this.$VideoWithCommercialBreak7.shouldShowNIDemoAd&&(this.$VideoWithCommercialBreak3=this.addListener("commercialBreak/nonInterruptiveAdStoryFetched",function(b){a.showNonInterruptiveAd()}));this.$VideoWithCommercialBreak1.addListener("tahoeController/displayNewMedia",function(){a.cleanUpAdWhenHostVideoEnd()})};d.$VideoWithCommercialBreak52=function(){return this.$VideoWithCommercialBreak7.isLive&&this.$VideoWithCommercialBreak25==="false"&&this.$VideoWithCommercialBreak14===null&&this.$VideoWithCommercialBreak12.getCurrentInstreamPlacement()==="mid_roll"};d.$VideoWithCommercialBreak53=function(a,c){__p&&__p();c===void 0&&(c={});if(a===this.$VideoWithCommercialBreak8)return;if(a==="ENTERING_TRANSITION"&&this.$VideoWithCommercialBreak52()){this.reset();return}c.state=a;Object.prototype.hasOwnProperty.call(c,"instreamPlacement")||(c.instreamPlacement=this.$VideoWithCommercialBreak12.getCurrentInstreamPlacement());a==="INIT"?(this.$VideoWithCommercialBreak12.resetInstreamVideo(),this.$VideoWithCommercialBreak13.release(),this.$VideoWithCommercialBreak13.engage(),this.$VideoWithCommercialBreak14=null,this.$VideoWithCommercialBreak26=null,this.$VideoWithCommercialBreak27=null,this.$VideoWithCommercialBreak29=null,this.$VideoWithCommercialBreak30=-1):a==="PREPARE"?(this.$VideoWithCommercialBreak15=null,this.$VideoWithCommercialBreak37=null,this.$VideoWithCommercialBreak39!=null&&(b("CommercialBreakUtil").removeNonInterruptiveAd(this.$VideoWithCommercialBreak39,this.$VideoWithCommercialBreak40),this.$VideoWithCommercialBreak39=null,this.resetNonInterruptiveStatus())):(a==="ENTERING_TRANSITION"||a==="PLAY_AD"&&!b("CommercialBreakUtil").getNonInterruptiveStoryTypeConfig().has(this.$VideoWithCommercialBreak15)||a==="LEAVING_TRANSITION")&&this.$VideoWithCommercialBreak12.registerInstreamVideo(null);this.$VideoWithCommercialBreak8=a;this.emit("commercialBreak/stateChange",c)};d.setStoryIdentifier=function(a){this.$VideoWithCommercialBreak31=a};d.getChevronButtonID=function(){return this.$VideoWithCommercialBreak28};d.getInstreamVideoOptionMenuURI=function(){return this.$VideoWithCommercialBreak20};d.getIsCommercialBreakOngoing=function(){return this.$VideoWithCommercialBreak8==="ENTERING_TRANSITION"&&this.$VideoWithCommercialBreak7.isBroadcast||this.$VideoWithCommercialBreak8==="PLAY_AD"||this.$VideoWithCommercialBreak8==="LEAVING_TRANSITION"};d.getIsDuringTransition=function(){return this.$VideoWithCommercialBreak8==="ENTERING_TRANSITION"||this.$VideoWithCommercialBreak8==="LEAVING_TRANSITION"};d.reset=function(){this.$VideoWithCommercialBreak53("INIT"),this.$VideoWithCommercialBreak9=0,this.$VideoWithCommercialBreak24=0,this.$VideoWithCommercialBreak10=-1,this.$VideoWithCommercialBreak11=-1,this.$VideoWithCommercialBreak19=null,this.$VideoWithCommercialBreak21=!1,this.$VideoWithCommercialBreak12.setCurrentInstreamVideoAdBreakIndex(null),this.$VideoWithCommercialBreak12.setCurrentInstreamVideoAdBreakVideoID(null),this.$VideoWithCommercialBreak12.setCurrentInstreamPlacement(null),this.$VideoWithCommercialBreak12.setCurrentAdTriggerSource(null),this.$VideoWithCommercialBreak12.setCurrentClientLiveVideoTimestamp(null),this.$VideoWithCommercialBreak20=null,this.$VideoWithCommercialBreak41.isEnable=!1};d.logAndEndCommercialBreak=function(a){this.$VideoWithCommercialBreak19=a||null,this.$VideoWithCommercialBreak54(),this.reset()};d.endCommercialBreakByCTAClick=function(){this.logAndEndCommercialBreak(j.CALL_TO_ACTION_BUTTON_CLICKS)};d.setIsDuplicateLiveVideo=function(a){this.$VideoWithCommercialBreak18=a};d.getIsDuplicateLiveVideo=function(){return this.$VideoWithCommercialBreak18};d.onIntentCommand=function(a,c,d){__p&&__p();var e=this;if(this.$VideoWithCommercialBreak8!=="INIT"&&this.$VideoWithCommercialBreak8!=="PREPARE"&&this.$VideoWithCommercialBreak8!=="AD_REQUEST_SENT")return;this.$VideoWithCommercialBreak53("INIT");this.$VideoWithCommercialBreak53("PREPARE",{instreamPlacement:c});this.$VideoWithCommercialBreak12.setCurrentInstreamVideoAdBreakIndex(a);this.$VideoWithCommercialBreak12.setCurrentInstreamPlacement(c);var f=this.$VideoWithCommercialBreak55(a,c,d);if(!f)return;var g=null;if(c==="pre_roll"){a=this.$VideoWithCommercialBreak33;a||h(0,5655);g=a.maxFetchTimeMs}c==="pre_roll"&&this.$VideoWithCommercialBreak50()?b("isVideoAutoplayAllowed")(function(a){a?(e.$VideoWithCommercialBreak56(f,g),e.$VideoWithCommercialBreak53("AD_REQUEST_SENT")):e.reset()}):(this.$VideoWithCommercialBreak56(f,g),this.$VideoWithCommercialBreak53("AD_REQUEST_SENT"))};d.onLiveIntentCommand=function(a){__p&&__p();var b=a.commercial_break_length_ms?parseInt(a.commercial_break_length_ms,10):null,c=Object.prototype.hasOwnProperty.call(a,"index")?parseInt(a.index,10):0;if(a.type==="intent"){this.$VideoWithCommercialBreak12.logMarauderEvent("commercial_break_skywalker_receive_intent",{topic:this.$VideoWithCommercialBreak7.skywalkerTopic,commercial_break_length_ms:b,ad_break_index:c});a=a.lastScrollAwayTime;if(a&&a>0&&Date.now()-a>this.$VideoWithCommercialBreak7.maxDurationHostVideoOffscreenToFetchMs)return}if(this.$VideoWithCommercialBreak8!=="INIT"&&this.$VideoWithCommercialBreak8!=="PREPARE"&&this.$VideoWithCommercialBreak8!=="AD_REQUEST_SENT")return;this.$VideoWithCommercialBreak53("INIT");this.$VideoWithCommercialBreak53("PREPARE");this.$VideoWithCommercialBreak12.setCurrentInstreamVideoAdBreakIndex(c);this.$VideoWithCommercialBreak12.setCurrentInstreamPlacement("mid_roll");b&&(this.$VideoWithCommercialBreak9=b);if(this.$VideoWithCommercialBreak18)return;a=this.$VideoWithCommercialBreak55(c,"mid_roll",b);if(!a)return;this.$VideoWithCommercialBreak56(a);this.$VideoWithCommercialBreak53("AD_REQUEST_SENT")};d.$VideoWithCommercialBreak57=function(){return b("CommercialBreakUtil").getVideoPlayerFormat(this.$VideoWithCommercialBreak1)};d.$VideoWithCommercialBreak55=function(a,c,d){var e=this.$VideoWithCommercialBreak12.getCurrentInstreamVideoAdType();if(!e||!this.$VideoWithCommercialBreak7.hostVideoID&&!this.$VideoWithCommercialBreak7.shouldShowDemoAd){b("BanzaiODS").bumpEntityKey(2966,"instreamads","missing_query_params");return null}var f=this.$VideoWithCommercialBreak1.getSource()==="permalink"?document.referrer:null;return{host_video_id:this.$VideoWithCommercialBreak7.hostVideoID,instream_video_type:e,instream_video_break_index:a,player_origin:this.$VideoWithCommercialBreak1.getPlayerOrigin(),script_path:b("ScriptPath").getScriptPath(),player_sub_origin:b("CommercialBreakUtil").getVideoPlayerSubOrigin(this.$VideoWithCommercialBreak1),is_sponsored_host_video:this.$VideoWithCommercialBreak7.isSponsored,video_channel_caller:this.$VideoWithCommercialBreak7.videoChannelCaller,host_video_stall_count:this.$VideoWithCommercialBreak1.getStallCount(),ad_break_duration_ms:d,referrer:f,option_menu_button_id:b("CommercialBreakExperiments").instreamAdsNFXOnContextCard?this.getChevronButtonID():"",should_show_demo_ad:this.$VideoWithCommercialBreak7.shouldShowDemoAd,should_show_short_demo_ad:this.$VideoWithCommercialBreak7.shouldShowShortDemoAd,player_format:this.$VideoWithCommercialBreak57(),instream_placement:c,story_identifier:this.$VideoWithCommercialBreak31?b("Base64").encode(this.$VideoWithCommercialBreak31):null,window_href:window.location.href,ad_trigger_source:this.$VideoWithCommercialBreak12.getCurrentAdTriggerSource(),client_live_video_timestamp:this.$VideoWithCommercialBreak12.getCurrentClientLiveVideoTimestamp()}};d.$VideoWithCommercialBreak56=function(a,c){__p&&__p();var d=this,e=null;if(a.should_show_demo_ad){var f=b("XInstreamVideoDemoStoryAsyncController").getURIBuilder().setEnum("instream_video_type",a.instream_video_type).setInt("instream_video_break_index",a.instream_video_break_index).setBool("show_short_ad",a.should_show_short_demo_ad).setEnum("instream_placement",a.instream_placement);e=new(b("AsyncRequest"))(f.getURI()).setMethod("GET").setReadOnly(!0).setHandler(function(a){d.$VideoWithCommercialBreak58(a.getPayload())}).setErrorHandler(this.$VideoWithCommercialBreak59.bind(this))}else{f=b("XInstreamVideoSponsoredStoryAsyncController").getURIBuilder().setFBID("host_video_id",a.host_video_id).setEnum("instream_video_type",a.instream_video_type).setInt("instream_video_break_index",a.instream_video_break_index).setEnum("video_channel_caller",a.video_channel_caller).setBool("is_sponsored_host_video",a.is_sponsored_host_video).setInt("host_video_stall_count",a.host_video_stall_count).setInt("ad_break_duration_ms",a.ad_break_duration_ms).setString("player_origin",a.player_origin).setString("player_sub_origin",a.player_sub_origin).setString("script_path",a.script_path).setString("referrer",a.referrer).setString("option_menu_button_id",a.option_menu_button_id).setString("player_format",a.player_format).setEnum("instream_placement",a.instream_placement).setString("story_identifier",a.story_identifier).setString("window_href",a.window_href).setEnum("ad_trigger_source",a.ad_trigger_source).setInt("client_live_video_timestamp",a.client_live_video_timestamp);e=new(b("AsyncRequest"))(f.getURI()).setMethod("GET").setReadOnly(!0).setHandler(function(a){d.$VideoWithCommercialBreak58(a.getPayload())}).setErrorHandler(this.$VideoWithCommercialBreak59.bind(this))}c&&(e&&e.setTimeoutHandler(c,this.$VideoWithCommercialBreak60.bind(this)));e&&e.send();this.$VideoWithCommercialBreak1.emit("commercialBreak/toast","fetch_ad");this.$VideoWithCommercialBreak30=Date.now()};d.$VideoWithCommercialBreak60=function(a){this.$VideoWithCommercialBreak12.getCurrentInstreamPlacement()==="pre_roll"&&(this.$VideoWithCommercialBreak61("fetch_timeout"),this.$VideoWithCommercialBreak12.logMarauderEvent("commercial_break_pre_roll_fetch_success_late"),this.reset());return};d.$VideoWithCommercialBreak59=function(){var a=this;b("ghlTestUBT")(function(b){a.$VideoWithCommercialBreak12.logMarauderEvent("commercial_break_video_fetch_failure",{is_ad_block_enabled:b})});this.$VideoWithCommercialBreak12.getCurrentInstreamPlacement()==="pre_roll"&&(this.$VideoWithCommercialBreak61("fetch_fail"),this.reset());this.$VideoWithCommercialBreak1.emit("commercialBreak/toast","fetch_ad_fail")};d.$VideoWithCommercialBreak58=function(a){__p&&__p();if(!this.$VideoWithCommercialBreak7.isBroadcast&&this.$VideoWithCommercialBreak8==="ENTERING_TRANSITION")return;if(this.$VideoWithCommercialBreak8!=="AD_REQUEST_SENT"&&this.$VideoWithCommercialBreak8!=="CB_SCHEDULED"&&this.$VideoWithCommercialBreak8!=="ENTERING_TRANSITION")return;var c=a.isEmpty,d=a.instreamVideoAdBreakIndex,e=a.instreamVideoAdType,f=a.instreamPlacement,g=a.videoAdStory,i=a.instreamVideoAdBreakVideoID,j=a.instreamVideoOptionMenuURI;this.$VideoWithCommercialBreak14=c?null:d;this.$VideoWithCommercialBreak15=a.adStoryType;if(g){this.$VideoWithCommercialBreak12.logMarauderEvent("commercial_break_video_fetch_success",{is_empty:c,commercial_break_ad_client_token:a.instreamVideoAdBreakClientToken,client_side_ads_query_consumed_time_in_ms:this.$VideoWithCommercialBreak30>0?Date.now()-this.$VideoWithCommercialBreak30:null});var k=this.$VideoWithCommercialBreak12.getCurrentInstreamVideoAdType(),l=this.$VideoWithCommercialBreak12.getCurrentInstreamPlacement();e===k&&f===l||h(0,5656);e=c?null:i;this.$VideoWithCommercialBreak26=a.callToAction;this.$VideoWithCommercialBreak27=a.contextCardTrackingWrapper;this.$VideoWithCommercialBreak29=a.infoCardNuxID;this.$VideoWithCommercialBreak12.setIntegratedLoudnessValue(a.integratedLoudnessValue);this.emit("commercialBreak/videoAdStoryFetched",g,c,d,e,a.instreamVideoAdBreakClientToken);c||this.emit("commercialBreak/runFraudDetector",a.instreamAdImpressionIdentifier,a.botDetectionBeneficiaryID,a.botDetectionContentID);this.$VideoWithCommercialBreak1.emit("commercialBreak/toast","fetch_ad_succeed",{isEmpty:c,disabledReason:a.disabledReason});b("CommercialBreakExperiments").instreamAdsNFXOnContextCard&&!c&&(this.$VideoWithCommercialBreak20=j);l==="pre_roll"&&(!c?this.$VideoWithCommercialBreak62(d,f):(this.$VideoWithCommercialBreak61("fetch_nothing"),this.$VideoWithCommercialBreak12.logMarauderEvent("commercial_break_start_show_nothing",{instream_placement:"pre_roll"}),this.reset()));this.$VideoWithCommercialBreak12.getCurrentAdTriggerSource()==="unified_scheduler"&&(!c&&this.$VideoWithCommercialBreak63()?this.$VideoWithCommercialBreak64():this.reset())}else if(b("CommercialBreakUtil").getNonInterruptiveStoryTypeConfig().has(this.$VideoWithCommercialBreak15)){this.$VideoWithCommercialBreak20=j;this.$VideoWithCommercialBreak37=a;this.$VideoWithCommercialBreak37&&this.$VideoWithCommercialBreak1.emit("commercialBreak/toast","fetch_ad_succeed",{isEmpty:c,disabledReason:a.disabledReason});this.$VideoWithCommercialBreak7&&this.$VideoWithCommercialBreak7.shouldShowNIDemoAd&&this.emit("commercialBreak/nonInterruptiveAdStoryFetched",this.$VideoWithCommercialBreak37);k=this.$VideoWithCommercialBreak37;k&&(this.$VideoWithCommercialBreak41.isNIPreloadedAndHide=!0,this.$VideoWithCommercialBreak65(k.trackingWrapper),this.emit("nonInterruptiveAd/showNonInterruptiveAd",k))}else this.$VideoWithCommercialBreak12.logMarauderEvent("commercial_break_video_fetch_failure")};d.$VideoWithCommercialBreak62=function(a,c){if(b("Visibility").isHidden()){this.$VideoWithCommercialBreak61("skipped");this.reset();return}this.onStartCommand(a,c,0)};d.$VideoWithCommercialBreak64=function(){if(b("Visibility").isHidden()){this.reset();return}this.$VideoWithCommercialBreak53("ENTERING_TRANSITION");b("setTimeout")(this.$VideoWithCommercialBreak66.bind(this),this.$VideoWithCommercialBreak7.beginningTransitionTimeMs)};d.$VideoWithCommercialBreak63=function(){var a=this.$VideoWithCommercialBreak1.getOption("CommercialBreakWithSqueezeback","controller");return a&&a.isEligibleForSqueezeback()};d.$VideoWithCommercialBreak61=function(a){this.$VideoWithCommercialBreak34=a;a=this.$VideoWithCommercialBreak1;if(!a.isState("destroyed")&&!a.isState("fallback")){var c=b("ViewportTrackingHelper").isVisible(a.getRootNode(),0);c&&a.play("user_initiated")}};d.getCallToAction=function(){return this.$VideoWithCommercialBreak26};d.getContextCardTrackingWrapper=function(){return this.$VideoWithCommercialBreak27};d.getNonInterruptiveAdTrackingWrapper=function(){return this.$VideoWithCommercialBreak40};d.getInfoCardNuxID=function(){return this.$VideoWithCommercialBreak29};d.onStartCommand=function(a,c,d){__p&&__p();var e=this;this.$VideoWithCommercialBreak10=d;if(this.$VideoWithCommercialBreak8!=="INIT"&&this.$VideoWithCommercialBreak8!=="PREPARE"&&this.$VideoWithCommercialBreak8!=="AD_REQUEST_SENT")return;this.$VideoWithCommercialBreak12.setCurrentInstreamVideoAdBreakIndex(a);this.$VideoWithCommercialBreak12.setCurrentInstreamPlacement(c);this.$VideoWithCommercialBreak8==="INIT"&&this.onIntentCommand(a,c,this.$VideoWithCommercialBreak7.commercialBreakLengthMs);this.$VideoWithCommercialBreak53("CB_SCHEDULED");this.$VideoWithCommercialBreak4=this.$VideoWithCommercialBreak1.addListener("updateStatus",function(){return e.$VideoWithCommercialBreak67()});this.$VideoWithCommercialBreak67();b("Arbiter").inform("commercialBreak/start",this)};d.onLiveStartCommand=function(a){__p&&__p();var c=this,d=parseInt(a.commercial_break_start_time_ms,10);this.$VideoWithCommercialBreak10=d;var e=this.$VideoWithCommercialBreak68();this.$VideoWithCommercialBreak11=e;this.$VideoWithCommercialBreak25=Object.prototype.hasOwnProperty.call(a,"commercial_break_drop_live_stream")?a.commercial_break_drop_live_stream:null;var f=Object.prototype.hasOwnProperty.call(a,"index")?parseInt(a.index,10):0;this.$VideoWithCommercialBreak12.logMarauderEvent("commercial_break_skywalker_receive_start",{topic:this.$VideoWithCommercialBreak7.skywalkerTopic,commercial_break_start_time_ms:d,ad_break_index:f});if(d0&&d<=this.$VideoWithCommercialBreak7.startFromStreamDryDeltaMs&&this.$VideoWithCommercialBreak1.isBuffering()&&this.$VideoWithCommercialBreak1.isState("playing");if(!this.$VideoWithCommercialBreak7.isLive||this.$VideoWithCommercialBreak12.getCurrentInstreamPlacement()==="pre_roll"||Math.abs(d)<=this.$VideoWithCommercialBreak7.allowedStartTimeDeltaMs||e||a){this.$VideoWithCommercialBreak4.remove();var f=k.NORMAL;e?f=k.STALL_STREAM:a&&(f=k.STREAM_DRY_OUT);e=this.$VideoWithCommercialBreak10-this.$VideoWithCommercialBreak11;this.$VideoWithCommercialBreak12.logMarauderEvent("commercial_break_start",{timestamp_delta_ms:parseInt(d,10),timestamp_latency_ms:parseInt(e,10),playback_trigger_event:f,viewer_count:this.$VideoWithCommercialBreak69()});this.$VideoWithCommercialBreak53("ENTERING_TRANSITION");this.$VideoWithCommercialBreak12.logMarauderEvent("commercial_break_transit");a=this.$VideoWithCommercialBreak7.isBroadcast?this.$VideoWithCommercialBreak7.beginningTransitionTimeMs:this.$VideoWithCommercialBreak7.beginningNonLiveTransitionTimeMs;b("setTimeout")(this.$VideoWithCommercialBreak66.bind(this),a)}else c>this.$VideoWithCommercialBreak10&&(this.$VideoWithCommercialBreak4.remove(),this.reset())};d.$VideoWithCommercialBreak65=function(a){b("CommercialBreakUtil").removeNonInterruptiveAd(this.$VideoWithCommercialBreak39,this.$VideoWithCommercialBreak40);this.$VideoWithCommercialBreak39=b("DOM").create("div",{className:"_6-gf"});var c=this.$VideoWithCommercialBreak39;this.$VideoWithCommercialBreak41.isNIPreloadedAndHide&&(c&&(b("CSS").addClass(c,"_8f71"),this.$VideoWithCommercialBreak1.getSource()==="watch_scroll"&&(this.$VideoWithCommercialBreak41.NIhidedInWNS=!0)));b("DOM").insertAfter(this.$VideoWithCommercialBreak42,this.$VideoWithCommercialBreak39);c&&(b("CommercialBreakUtil").renderNonInterruptiveAd(this,c,a),this.$VideoWithCommercialBreak41.NISourceState=this.$VideoWithCommercialBreak1.getSource(),this.$VideoWithCommercialBreak53("PLAY_AD"))};d.getNextNonInterruptiveAd=function(){return this.$VideoWithCommercialBreak37};d.showNonInterruptiveAd=function(){__p&&__p();var a=this.$VideoWithCommercialBreak37;if(!a||this.$VideoWithCommercialBreak1.getSource()==="watch_scroll")return;if(this.$VideoWithCommercialBreak7&&this.$VideoWithCommercialBreak7.shouldShowNIDemoAd||this.$VideoWithCommercialBreak38&&this.$VideoWithCommercialBreak38.nonInterruptiveAdEnabled){if(this.$VideoWithCommercialBreak41.isNIPreloadedAndHide&&!this.$VideoWithCommercialBreak41.isNIRemovedDuringPreloaded){var c=this.$VideoWithCommercialBreak39;if(c){b("CSS").removeClass(c,"_8f71");this.$VideoWithCommercialBreak41.isNIPreloadedAndHide=!1;this.$VideoWithCommercialBreak70();this.emit("nonInterruptiveAd/unhide");this.$VideoWithCommercialBreak41.isEnable=!0;return}}this.$VideoWithCommercialBreak41.isNIRemovedDuringPreloaded&&(this.$VideoWithCommercialBreak41.isNIPreloadedAndHide=!1,this.$VideoWithCommercialBreak41.isNIRemovedDuringPreloaded=!1);this.$VideoWithCommercialBreak65(a.trackingWrapper);this.$VideoWithCommercialBreak70()}this.emit("nonInterruptiveAd/showNonInterruptiveAd",a);this.$VideoWithCommercialBreak41.isEnable=!0};d.logExposureForNonInterruptiveAd=function(){var a=this.$VideoWithCommercialBreak38;if(!a)return;b("QE2Logger").logExposureForUser(a.nonInterruptiveQEName)};d.$VideoWithCommercialBreak70=function(){var a="_1kyo",c="_1dwg";if(this.$VideoWithCommercialBreak42){c=b("DOMQuery").scry(this.$VideoWithCommercialBreak42,"^."+c+" ."+a);if(c.length>0){a=c[0];a.style.display="none"}}};d.$VideoWithCommercialBreak66=function(){__p&&__p();var a=this;if(this.$VideoWithCommercialBreak8!=="CB_SCHEDULED"&&this.$VideoWithCommercialBreak8!=="ENTERING_TRANSITION"&&this.$VideoWithCommercialBreak8!=="PLAY_AD")return;if(!this.$VideoWithCommercialBreak7.isLive||this.$VideoWithCommercialBreak12.getCurrentInstreamPlacement()==="pre_roll"){this.$VideoWithCommercialBreak53("PLAY_AD",{countdownDurationMsecs:0});return}if(this.$VideoWithCommercialBreak25==="false"){this.$VideoWithCommercialBreak53("PLAY_AD",{countdownDurationMsecs:0});return}var c=this.$VideoWithCommercialBreak9-this.$VideoWithCommercialBreak7.beginningTransitionTimeMs,d=c-this.$VideoWithCommercialBreak7.endingTransitionTimeMs;this.$VideoWithCommercialBreak24=d;this.$VideoWithCommercialBreak53("PLAY_AD",{countdownDurationMsecs:this.$VideoWithCommercialBreak7.isLive?d:0});this.$VideoWithCommercialBreak16=!0;this.$VideoWithCommercialBreak12.getCurrentAdTriggerSource()==="unified_scheduler"&&this.$VideoWithCommercialBreak63()?this.$VideoWithCommercialBreak16=!1:b("setTimeout")(function(){a.$VideoWithCommercialBreak16=!1},d-i.SHORT_AD_COUNTDOWN_MS);b("setTimeout")(this.$VideoWithCommercialBreak71.bind(this),d);this.$VideoWithCommercialBreak17=!1;b("setTimeout")(this.$VideoWithCommercialBreak72.bind(this),c);b("setTimeout")(this.$VideoWithCommercialBreak73.bind(this),c+this.$VideoWithCommercialBreak7.maxOverduePlayingTimeMs)};d.leaveAdBreak=function(){__p&&__p();var a=this,c=this.$VideoWithCommercialBreak51(),d=this.$VideoWithCommercialBreak12.getCurrentInstreamPlacement();if(!this.$VideoWithCommercialBreak7.isLive||d==="pre_roll"){this.$VideoWithCommercialBreak19=c?this.$VideoWithCommercialBreak22==b("InstreamNFXHideType").HIDE_AD_BREAKS?j.HIDE_AD_BREAKS:j.HIDE_AD:j.PLAYBACK_FINISHED;this.$VideoWithCommercialBreak12.logMarauderEvent("commercial_break_transit");this.$VideoWithCommercialBreak53("LEAVING_TRANSITION");var e=this.$VideoWithCommercialBreak7.isBroadcast&&d!=="pre_roll"?this.$VideoWithCommercialBreak7.endingTransitionTimeMs:this.$VideoWithCommercialBreak7.endingNonLiveTransitionTimeMs;this.$VideoWithCommercialBreak7.isLive&&d==="pre_roll"&&this.$VideoWithCommercialBreak74();b("setTimeout")(function(){a.$VideoWithCommercialBreak75()},e);return}if(this.$VideoWithCommercialBreak25==="false"){this.$VideoWithCommercialBreak19=c?j.HIDE_AD:j.PLAYBACK_FINISHED;this.$VideoWithCommercialBreak12.logMarauderEvent("commercial_break_transit");this.$VideoWithCommercialBreak53("LEAVING_TRANSITION");b("setTimeout")(this.$VideoWithCommercialBreak72.bind(this),this.$VideoWithCommercialBreak7.endingTransitionTimeMs);return}this.$VideoWithCommercialBreak8==="PLAY_AD"&&(!this.$VideoWithCommercialBreak12.getIsAdActive()?(this.$VideoWithCommercialBreak19=j.NONE,this.$VideoWithCommercialBreak12.logMarauderEvent("commercial_break_transit"),this.$VideoWithCommercialBreak53("LEAVING_TRANSITION")):((this.$VideoWithCommercialBreak12.isState("finished")||this.$VideoWithCommercialBreak12.isState("destroyed"))&&!this.$VideoWithCommercialBreak16||c)&&(this.$VideoWithCommercialBreak19=c?j.HIDE_AD:j.PLAYBACK_FINISHED,this.$VideoWithCommercialBreak17?(this.$VideoWithCommercialBreak54(),this.reset()):(this.$VideoWithCommercialBreak12.logMarauderEvent("commercial_break_transit"),this.$VideoWithCommercialBreak53("LEAVING_TRANSITION"))))};d.shouldShowNonInterruptiveAd=function(){var a=this.$VideoWithCommercialBreak38;return!a?!1:a.nonInterruptiveAdEnabled};d.$VideoWithCommercialBreak75=function(){this.$VideoWithCommercialBreak12.getCurrentInstreamPlacement()==="pre_roll"&&this.$VideoWithCommercialBreak61("playback_finished"),this.$VideoWithCommercialBreak54(),this.reset()};d.$VideoWithCommercialBreak44=function(a,b){b!==this&&this.reset()};d.$VideoWithCommercialBreak72=function(){this.$VideoWithCommercialBreak8==="LEAVING_TRANSITION"?(this.$VideoWithCommercialBreak54(),this.reset()):this.$VideoWithCommercialBreak8==="PLAY_AD"&&(this.$VideoWithCommercialBreak17=!0)};d.$VideoWithCommercialBreak73=function(){if(this.$VideoWithCommercialBreak51())return;this.$VideoWithCommercialBreak8==="PLAY_AD"&&(this.$VideoWithCommercialBreak19=j.CUT_OFF,this.$VideoWithCommercialBreak54(),this.reset())};d.$VideoWithCommercialBreak71=function(){if(this.$VideoWithCommercialBreak51())return;this.leaveAdBreak()};d.$VideoWithCommercialBreak54=function(){this.$VideoWithCommercialBreak12.getIsVisibleForAutoplay()&&this.$VideoWithCommercialBreak12.logMarauderEvent("commercial_break_end",{ending_reason:this.$VideoWithCommercialBreak19})};d.$VideoWithCommercialBreak68=function(){var a=this.$VideoWithCommercialBreak1.getCurrentTimePosition()*b("DateConsts").MS_PER_SEC;return a};d.$VideoWithCommercialBreak69=function(){if(!this.$VideoWithCommercialBreak7.isLive)return null;var a=this.$VideoWithCommercialBreak1.getOption("VideoWithLiveBroadcast","viewCount");a=a&&JSON.parse(b("DataStore").get(a,"store",null));return a?a.viewerCount:null};d.$VideoWithCommercialBreak51=function(){var a=this.$VideoWithCommercialBreak12.getAdController();return a&&a.isState("paused")&&this.$VideoWithCommercialBreak8==="PLAY_AD"&&this.$VideoWithCommercialBreak21};d.$VideoWithCommercialBreak74=function(){var a=this.$VideoWithCommercialBreak1,b=a.getSeekableRanges();if(b){b=b.end(b.length()-1);a.seek(b)}};d.triggerUnifiedSchedulerFetch=function(a){__p&&__p();if(this.$VideoWithCommercialBreak8!=="INIT"&&this.$VideoWithCommercialBreak8!=="PREPARE"&&this.$VideoWithCommercialBreak8!=="AD_REQUEST_SENT")return;this.$VideoWithCommercialBreak53("INIT");this.$VideoWithCommercialBreak53("PREPARE");this.$VideoWithCommercialBreak12.setCurrentInstreamVideoAdBreakIndex(this.$VideoWithCommercialBreak7.unifiedSchedulerDefaultIndex);this.$VideoWithCommercialBreak12.setCurrentInstreamPlacement("mid_roll");this.$VideoWithCommercialBreak12.setCurrentAdTriggerSource("unified_scheduler");this.$VideoWithCommercialBreak12.setCurrentClientLiveVideoTimestamp(Math.round(a));this.$VideoWithCommercialBreak9=this.$VideoWithCommercialBreak7.commercialBreakLengthMs;a=this.$VideoWithCommercialBreak55(this.$VideoWithCommercialBreak7.unifiedSchedulerDefaultIndex,"mid_roll",this.$VideoWithCommercialBreak9);if(!a)return;this.$VideoWithCommercialBreak56(a);this.$VideoWithCommercialBreak53("AD_REQUEST_SENT")};d.startBreakWithNoVideoAd=function(a,b,c){this.$VideoWithCommercialBreak12.setCurrentInstreamVideoAdBreakIndex(c),this.$VideoWithCommercialBreak12.logMarauderEvent("commercial_break_start_show_nothing",{commercial_break_no_ad_reason:a}),this.reset()};d.hasReceivedAdStory=function(a){return a===this.$VideoWithCommercialBreak14};d.onPauseAdFromNFX=function(){if(this.$VideoWithCommercialBreak8!=="PLAY_AD"||b("CommercialBreakUtil").getNonInterruptiveStoryTypeConfig().has(this.$VideoWithCommercialBreak15))return;this.$VideoWithCommercialBreak21=!0;b("EntstreamFeedObjectFollowup").addInstreamAdsFollowup(this.$VideoWithCommercialBreak1.getRootNode());var a=this.$VideoWithCommercialBreak12.getAdController();a&&(a.pause("user_initiated"),b("CSS").addClass(a.getVideoNode(),"_1_d3"),b("CSS").addClass(a.getRootNode(),"_4ap-"))};d.onPlayAdFromNFX=function(){if(this.$VideoWithCommercialBreak8!=="PLAY_AD")return;var a=this.$VideoWithCommercialBreak12.getAdController();a&&(this.$VideoWithCommercialBreak21=!1,b("CSS").removeClass(a.getVideoNode(),"_1_d3"),b("CSS").removeClass(a.getRootNode(),"_4ap-"),this.$VideoWithCommercialBreak12.play("user_initiated"))};d.onLeaveAdFromNFX=function(a){if(this.$VideoWithCommercialBreak8!=="PLAY_AD")return;this.$VideoWithCommercialBreak22=a;this.leaveAdBreak();this.$VideoWithCommercialBreak21=!1;this.$VideoWithCommercialBreak22=null};d.getLiveCountdownDurationMs=function(){return this.$VideoWithCommercialBreak24};d.getReceivedAdStoryType=function(){return this.$VideoWithCommercialBreak15};d.setNonInterruptiveAdContainer=function(a){this.$VideoWithCommercialBreak39=a};d.setNonInterruptiveAdTrackingWrapper=function(a){this.$VideoWithCommercialBreak40=a};d.getNonInterruptiveAdContainer=function(){return this.$VideoWithCommercialBreak39};d.cleanUpAdWhenHostVideoEnd=function(){this.$VideoWithCommercialBreak8==="PLAY_AD"&&b("CommercialBreakUtil").getNonInterruptiveStoryTypeConfig().has(this.$VideoWithCommercialBreak15)&&(b("CommercialBreakUtil").removeNonInterruptiveAd(this.$VideoWithCommercialBreak39,this.$VideoWithCommercialBreak40),this.$VideoWithCommercialBreak53("INIT"),this.$VideoWithCommercialBreak41.isEnable=!1)};d.getIsNICommercialBreakOnGoing=function(){return this.getIsCommercialBreakOngoing()&&b("CommercialBreakUtil").getNonInterruptiveStoryTypeConfig().has(this.$VideoWithCommercialBreak15)&&!this.$VideoWithCommercialBreak41.isNIPreloadedAndHide};d.getIsVideoAdCommercialBreakOnGoing=function(){return this.getIsCommercialBreakOngoing()&&!b("CommercialBreakUtil").getNonInterruptiveStoryTypeConfig().has(this.$VideoWithCommercialBreak15)};d.$VideoWithCommercialBreak46=function(){if(this.$VideoWithCommercialBreak41.NISourceState==="tahoe")return;this.$VideoWithCommercialBreak76()};d.$VideoWithCommercialBreak47=function(){if(this.$VideoWithCommercialBreak41.NISourceState!=="tahoe")return;this.$VideoWithCommercialBreak76()};d.$VideoWithCommercialBreak45=function(){this.$VideoWithCommercialBreak41.NIhidedInWNS&&(b("CommercialBreakUtil").removeNonInterruptiveAd(this.$VideoWithCommercialBreak39,this.$VideoWithCommercialBreak40),this.$VideoWithCommercialBreak41.NIhidedInWNS=!1,this.$VideoWithCommercialBreak41.isNIPreloadedAndHide=!1)};d.$VideoWithCommercialBreak76=function(){this.$VideoWithCommercialBreak41.isNIPreloadedAndHide&&(b("CommercialBreakUtil").removeNonInterruptiveAd(this.$VideoWithCommercialBreak39,this.$VideoWithCommercialBreak40),this.$VideoWithCommercialBreak41.isNIRemovedDuringPreloaded=!0),this.getIsNICommercialBreakOnGoing()&&this.showNonInterruptiveAd()};d.updateNIStatus=function(a){Object.assign(this.$VideoWithCommercialBreak41,a)};d.getNonInterruptiveStatus=function(){return this.$VideoWithCommercialBreak41};d.getIsNIPreloadedAndHide=function(){return this.$VideoWithCommercialBreak41.isNIPreloadedAndHide};d.resetNonInterruptiveStatus=function(){this.$VideoWithCommercialBreak41.NISourceState=null,this.$VideoWithCommercialBreak41.isNICollapse=!1,this.$VideoWithCommercialBreak41.isEnable=!1,this.$VideoWithCommercialBreak41.isNIPreloadedAndHide=!1,this.$VideoWithCommercialBreak41.isNIRemovedDuringPreloaded=!1,this.$VideoWithCommercialBreak41.NIhidedInWNS=!1};return c}(b("EventEmitter"));e.exports=a}),null); __d("VideoWithInstreamVideo",["BanzaiODS","CommercialBreakShouldLogMarauderEvent","CommercialBreakUtil","DateConsts","EventEmitter","MarauderLogger","SubscriptionsHandler","gkx","onViewportChanged"],(function(a,b,c,d,e,f){__p&&__p();a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(b){var c;c=a.call(this)||this;c.$VideoWithInstreamVideo20=-18;c.$VideoWithInstreamVideo4=b;return c}var d=c.prototype;d.enable=function(a){__p&&__p();var c=this;if(this.$VideoWithInstreamVideo2)return;this.$VideoWithInstreamVideo2=a;this.$VideoWithInstreamVideo3=a;this.$VideoWithInstreamVideo15=!1;this.$VideoWithInstreamVideo16=this.getIsVisibleForAutoplay();b("onViewportChanged")(this.$VideoWithInstreamVideo22.bind(this));this.$VideoWithInstreamVideo1=new(b("SubscriptionsHandler"))();this.$VideoWithInstreamVideo1.engage();this.$VideoWithInstreamVideo17=[];this.$VideoWithInstreamVideo23();this.$VideoWithInstreamVideo4.hostVideoLoudness!=null&&this.$VideoWithInstreamVideo4.hostVideoLoudness0&&(c=b("DateConsts").MS_PER_SEC*(d.getPlaybackDuration()-d.getCurrentTimePosition()));this.logMarauderEvent(a?"commercial_break_scrolled_into":"commercial_break_scrolled_away",{remaining_ad_duration_ms:c})}this.$VideoWithInstreamVideo2.emit(a?"commercialBreak/scrollInto":"commercialBreak/scrollAway")}this.$VideoWithInstreamVideo16=a};d.getIsVisibleForAutoplay=function(){var a=this.$VideoWithInstreamVideo2.getOption("FeedAutoplay","isVisibleForAutoplay");return a||a===void 0};d.getMostRecentAdInfo=function(){return this.$VideoWithInstreamVideo18};d.logMarauderEvent=function(a,c){__p&&__p();c===void 0&&(c={});if(!Object.prototype.hasOwnProperty.call(b("CommercialBreakShouldLogMarauderEvent"),a)||!b("CommercialBreakShouldLogMarauderEvent")[a])return;c.host_video_id=this.$VideoWithInstreamVideo4.hostVideoID;c.instream_video_ad_type=this.getCurrentInstreamVideoAdType();Object.prototype.hasOwnProperty.call(c,"ad_break_index")||(c.ad_break_index=this.$VideoWithInstreamVideo5);Object.prototype.hasOwnProperty.call(c,"instream_placement")||(c.instream_placement=this.$VideoWithInstreamVideo6);c.is_sponsored=this.$VideoWithInstreamVideo4.isSponsored;c.is_visible=this.getIsVisibleForAutoplay();c.player_origin=this.$VideoWithInstreamVideo4.playerOrigin;Object.prototype.hasOwnProperty.call(c,"commercial_break_ad_client_token")||(c.commercial_break_ad_client_token=this.$VideoWithInstreamVideo8);b("MarauderLogger").log(a,"commercial_break",c)};d.getNormalizedVolume=function(a){return a==null||a<=this.$VideoWithInstreamVideo20?1:Math.pow(10,(this.$VideoWithInstreamVideo20-a)/20)};d.setIntegratedLoudnessValue=function(a){this.$VideoWithInstreamVideo21=a};return c}(b("EventEmitter"));e.exports=a}),null); __d("VodWithCommercialBreak",["CommercialBreakExperiments","CommercialBreakUtil","DateConsts","UFIVideoPlayerRegistry","Visibility","clearTimeout","setTimeout"],(function(a,b,c,d,e,f){__p&&__p();var g=Object.freeze({RECHECK_START_MS:300});a=function(){"use strict";__p&&__p();function a(a){__p&&__p();var b=this,c=a.videoPlayerController;a=a.adBreaks;this.$1=a;this.$4=c;this.$7=!1;this.$9=-1;this.$12=0;this.$13=0;this.$8=!1;this.$3=c.addListener("optionsChange",function(){return b.$14()});this.$14()}var c=a.prototype;c.setAdBreaks=function(a){this.$15(),this.$1=a};c.$15=function(){this.$10&&b("clearTimeout")(this.$10),this.$11&&b("clearTimeout")(this.$11),this.$10=null,this.$11=null,this.$9=-1};c.$14=function(){this.$5=this.$4.getOption("VideoWithInstreamVideo","controller");this.$6=this.$4.getOption("VideoWithCommercialBreak","controller");if(!this.$5||!this.$6)return;this.$3.remove();this.$2=this.$5.getConfig();this.$4.isState("playing")&&this.$16();this.$4.addListener("beginPlayback",this.$16.bind(this));this.$4.addListener("pausePlayback",this.$17.bind(this))};c.$16=function(){__p&&__p();this.$7||(this.$7=!0);this.$12===0&&(this.$12=Date.now());var a=this.$18();if(a===0){this.$4.once("updateStatus",this.$16.bind(this));return}var b=this.$19(a);b===this.$9&&(b+=1);this.$20(b,a)};c.$17=function(){this.$12>0&&(this.$13+=Date.now()-this.$12),this.$12=0,this.$15()};c.$19=function(a){var b=this.$1.length;for(var c=this.$1.length-1;c>=0;c--){var d=this.$1[c].getTimeOffsetInMs();if(d&&d>a+this.$2.vodAllowStartTimeDeltaMs)b=c;else break}return b};c.$20=function(a,c){__p&&__p();var d=this;this.$15();if(a>=this.$1.length)return;var e=this.$1[a],f=e.getTimeOffsetInMs();if(!f)return;f=f-c;c=f-this.$2.vodPrefetchTimeMs;if(f<0){this.$16();return}c<=this.$2.vodAllowIntentTimeDeltaMs?this.$21(a):this.$10=b("setTimeout")(function(){return d.$21(a)},c);!this.$2.isBroadcast&&!(e.getInstreamPlacement()==="non_interruptive")&&(f-=this.$2.startingIndicatorMs);f<=this.$2.vodAllowStartTimeDeltaMs?this.$22(a):this.$11=b("setTimeout")(function(){return d.$22(a)},f)};c.$21=function(a){__p&&__p();var c=this,d=this.$18(),e=this.$1[a],f=e.getTimeOffsetInMs();if(!f)return;var g=f-this.$2.vodPrefetchTimeMs;g=g-d;if(g>this.$2.vodAllowIntentTimeDeltaMs){this.$10=b("setTimeout")(function(){return c.$21(a)},g);return}g=this.$13+f-d;this.$12>0&&(g+=Date.now()-this.$12);f=!this.$6.hasReceivedAdStory(e.getIndex())&&g>=this.$2.vodMinWatchTimeSeconds*b("DateConsts").MS_PER_SEC;f&&(this.$6.reset(),this.$6.onIntentCommand(e.getIndex(),e.getInstreamPlacement(),e.getAdBreakDurationInMs()));this.$10=null};c.$22=function(a){__p&&__p();var c=this,d=this.$18(),e=this.$1[a],f=e.getTimeOffsetInMs();if(!f)return;d=f-d;var h=this.$13+d;this.$12>0&&(h+=Date.now()-this.$12);var i=null;if(hthis.$2.vodAllowStartTimeDeltaMs){this.$2.isBroadcast||(d=Math.min(d,g.RECHECK_START_MS));this.$11=b("setTimeout")(function(){return c.$22(a)},d);return}!i?(b("CommercialBreakUtil").getNonInterruptiveStoryTypeConfig().has(this.$6.getReceivedAdStoryType())?(this.$6.showNonInterruptiveAd(),this.$16()):this.$6.onStartCommand(e.getIndex(),e.getInstreamPlacement(),f),this.$12=0,this.$13=0):this.$6.startBreakWithNoVideoAd(i,f,e.getIndex());this.$9=a;this.$11=null;this.$8=!1};c.$18=function(){return this.$4.getCurrentTimePosition()*b("DateConsts").MS_PER_SEC};return a}();e.exports=a}),null); __d("VideoComponentCommercialBreakStartingIndicator.react",["cx","CommercialBreakStartingIndicator.react","React","ReactDOM","VideoComponent"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.enable=function(a){this.$1=a,this.$2()};d.disable=function(){this.$1=null};d.$2=function(a){this.$1&&this.refs.root&&b("ReactDOM").render(b("React").createElement(b("CommercialBreakStartingIndicator.react"),{adsStopped:a,container:this.refs.root,controller:this.$1,vodTransitionRedesign:!0}),this.refs.root)};d.componentDidMount=function(){this.$2()};d.componentDidUpdate=function(a){a.adsStopped!==this.props.adsStopped&&this.$2(this.props.adsStopped)};d.shouldComponentUpdate=function(a,b){return!1};d.render=function(){return b("React").createElement("div",{ref:"root",className:"_167h _2lwf _4ubd _3ee8 _20dq _2h-t _o9y _3htz _5odv"})};return c}(b("React").Component);e.exports=b("VideoComponent").createContainer(a)}),null); __d("VideoComponentCommercialBreakVideoAdOverlay.react",["cx","CommercialBreakVideoAdOverlay","React","VideoComponent"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.enable=function(a){this.$1=new(b("CommercialBreakVideoAdOverlay"))({root:this.refs.root}),this.$1.enable(a)};d.disable=function(){this.$1&&this.$1.stopAdWithoutTransition(),this.$1=null};d.componentDidUpdate=function(a,b){this.props.adsStopped&&!a.adsStopped&&this.$1&&this.$1.stopAdWithoutTransition()};d.shouldComponentUpdate=function(a,b){return!1};d.render=function(){var a="_4wd3 _50m2 _167h _4ubd _2lwf";return b("React").createElement("div",{ref:"root",className:a})};return c}(b("React").Component);e.exports=b("VideoComponent").createContainer(a)}),null); __d("VideoComponentCommercialBreakVodTransitionOverlay.react",["cx","React","VideoCommercialBreakTransitionOverlay","VideoComponent"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.enable=function(a){this.$1=new(b("VideoCommercialBreakTransitionOverlay"))({root:this.refs.root,body:this.refs.body,ownerName:null,ownerPictureUri:null,interactiveAlertAdStartedConfig:null}),this.$1.enable(a)};d.disable=function(){this.$1=null};d.shouldComponentUpdate=function(a,b){return!1};d.render=function(){return b("React").createElement("div",{ref:"root",className:"_2lwf _4ubd _4fii _bvi _167h"},b("React").createElement("div",{ref:"body",className:"_3j0w"}))};return c}(b("React").Component);e.exports=b("VideoComponent").createContainer(a)}),null); __d("VideoComponentScrubberPreview.react",["React","RelayModern","VideoComponent","VideoScrubberPreviewComponent","VideoComponentScrubberPreviewQuery.graphql"],(function(a,b,c,d,e,f){"use strict";__p&&__p();b("RelayModern").graphql;a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.componentDidUpdate=function(a){__p&&__p();var c=this.props.video;if(c&&c!==a.video){a={};Object.assign(a,c.scrubberPreviewThumbnailInformation);if(Array.isArray(a.spriteIndexToURIMap)){c=a.spriteIndexToURIMap.slice();c.unshift(null);a.spriteIndexToURIMap=c}new(b("VideoScrubberPreviewComponent"))(this.vpc,a)}};d.disable=function(a){};d.enable=function(a){this.vpc=a};d.render=function(){return null};return c}(b("React").Component);e.exports=b("VideoComponent").createContainer(a,{videoGraphQLQuery:function(){return b("VideoComponentScrubberPreviewQuery.graphql")}})}),null); __d("VideoComponentVodWithCommercialBreak.react",["React","VideoComponent","VodWithCommercialBreak"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.enable=function(a){this.$1=a,this.$2=new(b("VodWithCommercialBreak"))({videoPlayerController:a,adBreaks:this.props.adBreaks})};d.componentDidUpdate=function(a){this.$2&&JSON.stringify(this.props.adBreaks)!==JSON.stringify(a.adBreaks)&&this.$2.setAdBreaks(this.props.adBreaks)};d.disable=function(){this.$1=null,this.$2=null};d.render=function(){return null};return c}(b("React").Component);e.exports=b("VideoComponent").createContainer(a)}),null); __d("VideoComponentWithCommercialBreak.react",["React","VideoComponent","VideoWithCommercialBreak"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.enable=function(a){this.$1=new(b("VideoWithCommercialBreak"))({}),this.$1.enable(a)};d.disable=function(){this.$1=null};d.render=function(){return null};return c}(b("React").Component);e.exports=b("VideoComponent").createContainer(a)}),null); __d("VideoComponentWithInstreamVideo.react",["ComposerAdBreaksPreviewConfig","React","RelayModern","VideoComponent","VideoWithInstreamVideo","VideoComponentWithInstreamVideoQuery.graphql"],(function(a,b,c,d,e,f){"use strict";__p&&__p();b("RelayModern").graphql;a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(c){var d;d=a.call(this,c)||this;c.shouldUsePreviewConfig&&b("ComposerAdBreaksPreviewConfig").config&&(d.$1=b("ComposerAdBreaksPreviewConfig").config);return d}var d=c.prototype;d.UNSAFE_componentWillReceiveProps=function(a){!a.shouldUsePreviewConfig&&a.video&&a.video!==this.props.video&&(this.$1=JSON.parse(a.video.adBreaksViewerConfig),this.$4()),this.$2&&a.thumbnailURLForPreview&&this.$2.setThumbnailURLForPreview(a.thumbnailURLForPreview)};d.enable=function(a){this.$3=a,this.$4()};d.$4=function(){var a=this.$3;a&&this.$1&&(this.$2=new(b("VideoWithInstreamVideo"))(this.$1),this.$2.enable(a),a.emit("commercialBreak/videoWithInstreamVideoReady"))};d.disable=function(){this.$2=null,this.$3=null};d.render=function(){return null};return c}(b("React").Component);e.exports=b("VideoComponent").createContainer(a,{videoGraphQLQuery:function(){return b("VideoComponentWithInstreamVideoQuery.graphql")}})}),null);