;/*FB_PKG_DELIM*/

__d("AutoplayRulesEngine",[],(function(a,b,c,d,e,f){"use strict";var g=-2,h=-1;a=function(){function a(a){this.$1=g,this.$2=a}var b=a.prototype;b.evaluateAutoplay=function(a,b){b=b();var c=h;if(a)for(var d=0;d<this.$2.length;d++){var e=this.$2[d](a);if(e!=="SKIP"){b=e;c=d;break}}this.$1=c;return b};b.getIndexOfLastWinningRule=function(){return this.$1};b.getRules=function(){return this.$2};return a}();f["default"]=a}),66);
__d("CVCv3DisabledPlayerOrigins",[],(function(a,b,c,d,e,f){a=Object.freeze({BEEPER:"beeper",FB_STORIES:"fb_stories"});f["default"]=a}),66);
__d("CVCv3DisabledPlayerSubOrigins",[],(function(a,b,c,d,e,f){a=Object.freeze({LIVE_BEEPER:"live_beeper"});f["default"]=a}),66);
__d("CvcV3HttpEventFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("1856513");b=d("FalcoLoggerInternal").create("cvc_v3_http_event",a);e=b;g["default"]=e}),98);
__d("CVCv3SubscriptionHelper",["CvcV3HttpEventFalcoEvent","DateConsts","guid"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a,b,d){this.$1=a;this.$2=c("guid")();this.$3=((a=b)!=null?a:"null")+"::"+((b=d)!=null?b:"null");this.$4=null;this.$5=null}var b=a.prototype;b.isValidSubscription=function(){return!!this.$1};b.makeCVCv3StateUpdate=function(a,b,c,e){var f=null;a!=null&&!Number.isNaN(a)&&b!=null&&!Number.isNaN(b)&&(f={m:e,pf:Math.floor((b-a)*d("DateConsts").MS_PER_SEC),s:c,sa:Math.floor(a*d("DateConsts").MS_PER_SEC)});e={pps:this.$4,ps:f,si:this.$2,so:this.$3,vi:this.$1};this.$4=f;return e};b.makeUnifiedVideoCVCUpdate=function(a,b,c,d,e){a=this.makeCVCv3StateUpdate(a,b,c,d);this.$5!=null&&(a.tk=this.$5);return babelHelpers["extends"]({},a,e)};b.processUnifiedResponse=function(a){a=a;this.$5=a.tk;return a};b.clearAnyPreviousContext=function(){this.$4=null};b.logHttpRequestSuccess=function(a){var b=this;c("CvcV3HttpEventFalcoEvent").log(function(){return{name:"http_request_success",duration_ms:a!=null?a.toString():null,countable_id:b.$1}})};b.logHttpRequestFailure=function(a,b){var d=this;c("CvcV3HttpEventFalcoEvent").log(function(){return{name:"http_request_failed",error_msg:a,duration_ms:b!=null?b.toString():null,countable_id:d.$1}})};b.logHttpRequestTimeout=function(a){var b=this;c("CvcV3HttpEventFalcoEvent").log(function(){return{name:"http_request_timeout",duration_ms:a!=null?a.toString():null,countable_id:b.$1}})};b.logHttpResponseBad=function(a,b){var d=this;c("CvcV3HttpEventFalcoEvent").log(function(){return{name:"http_response_bad",error_msg:a,duration_ms:b!=null?b.toString():null,countable_id:d.$1}})};b.logDebugInfo=function(a){var b=this;c("CvcV3HttpEventFalcoEvent").log(function(){return{name:a,countable_id:b.$1}})};return a}();g["default"]=a}),98);
__d("CometAudioManagerHooks",["CometAudioManagerContexts","react","recoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useContext;function a(){var a=i(d("CometAudioManagerContexts").AudioApiContext);return a}g.useAudioApi=a}),98);
__d("makeAudioSymbol",[],(function(a,b,c,d,e,f){"use strict";function a(a,b){return b+"::"+a}f["default"]=a}),66);
__d("CoreVideoPlayerAudioClient.react",["CometAudioManagerContexts","CometAudioManagerHooks","CometThrottle","VideoPlayerHooks","VideoPlayerPortalingPlaceInfoProvider.react","createVideoStateHook","makeAudioSymbol","react","usePrevious"],(function(a,b,c,d,e,f,g){"use strict";var h,i;b=h||d("react");var j=b.useContext,k=b.useEffect,l=b.useId,m=b.useMemo,n=b.useRef,o=b.useState;e=d("createVideoStateHook").createVideoStateHook();var p=e.valueHook;function a(){var a=p({isVolumeInitialized:!1}),b=l(),e=(i||(i=d("VideoPlayerHooks"))).useInstanceKey(),f=m(function(){return c("makeAudioSymbol")(b,e)},[b,e]),g=d("CometAudioManagerHooks").useAudioApi(),h=n(g);k(function(){h.current=g},[g]);var q=i.useController(),r=200,s=i.useLastPlayReason(),t=i.useLastMuteReason(),u=i.useMuted();r=c("CometThrottle")(i.useVolume,r,{trailing:!0});var v=r(),w=c("usePrevious")(v),x=i.usePaused(),y=j(d("CometAudioManagerContexts").CometAudioLocalScopeContext),z=j(d("CometAudioManagerContexts").CometAudioGroupContext),A=d("VideoPlayerPortalingPlaceInfoProvider.react").useVideoPlayerPortalingPlaceInfo(),B=i.useVolumeSetting(),C=m(function(){return(z==null?void 0:z.groupID)||d("CometAudioManagerContexts").makeAudioGroupID()},[z==null?void 0:z.groupID]);r=o(!0);var D=r[0];r=r[1];var E=m(function(){return{audioLocalScope:y,controller:q,groupID:C,instanceKey:e,lastMuteReason:t,lastPlayReason:s,muted:u,paused:x,previousVolume:w,symbol:f,videoPlayerPortalingPlaceInfo:A,volume:v}},[y,q,C,e,t,s,u,x,w,f,A,v]);k(function(){B!=null&&a.isVolumeInitialized!==!0&&(q.setVolume(B),a.isVolumeInitialized=!0)},[q,a,!0,B]);r=z||{allowSound:D,groupID:C,setAllowSound:r};var F=n(r);k(function(){g&&g.register(E,F.current);return function(){g&&g.unregister(f,C)}},[g,E,C,f]);k(function(){g&&g.update(E)},[g,E]);k(function(){!D&&h.current&&q.setMuted(!0,"audio_manager_initiated")},[D,h,q]);return null}g["default"]=a}),98);
__d("VideoPlayerAutoplayHooks",["VideoPlayerAutoplayContexts","react","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useContext;function a(){var a=i(d("VideoPlayerAutoplayContexts").AutoplayApiContext);if(a==null)throw c("unrecoverableViolation")("Empty AutoplayApiContext. Are you rendering useAutoplayApi outside of VideoAutoplayManagerX?","comet_video_player");return a}function b(){return i(d("VideoPlayerAutoplayContexts").VideoAutoplayLocalScopeContext)}g.useAutoplayApi=a;g.useVideoAutoplayLocalScope=b}),98);
__d("VideoPlayerDebugAutoplayAPI",["cr:1453865","emptyFunction"],(function(a,b,c,d,e,f,g){"use strict";d=(a=b("cr:1453865"))!=null?a:{useVideoPlayerDebugAPI:c("emptyFunction").thatReturns(null),useVideoPlayerDebugAPIDefinition:c("emptyFunction"),useVideoPlayerDebugInfo:c("emptyFunction").thatReturns(null)};g["default"]=d}),98);
__d("evaluateVideoAutoplayDefaultAllowRule",[],(function(a,b,c,d,e,f){"use strict";function a(){return"ALLOW"}a.displayName="evaluateVideoAutoplayDefaultRule";f["default"]=a}),66);
__d("makeSelectedAutoplayVideoSymbol",[],(function(a,b,c,d,e,f){"use strict";function a(a,b){return b+"::"+a}f["default"]=a}),66);
__d("useAutoplayRulesEngine",["AutoplayRulesEngine","react"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useEffect,j=b.useRef,k=b.useState,l=b.c;function a(a){var b=l(8),d=j(a),e;b[0]!==a?(e=function(){return new(c("AutoplayRulesEngine"))(a)},b[0]=a,b[1]=e):e=b[1];e=k(e);var f=e[0],g=e[1],h;b[2]!==a?(e=function(){d.current!==a&&g(function(){return new(c("AutoplayRulesEngine"))(a)})},h=[a],b[2]=a,b[3]=e,b[4]=h):(e=b[3],h=b[4]);i(e,h);b[5]!==f?(e=function(){d.current=f.getRules()},h=[f],b[5]=f,b[6]=e,b[7]=h):(e=b[6],h=b[7]);i(e,h);return f}g["default"]=a}),98);
__d("useConcurrentAutoplayManagementAPI",["react","removeFromArray"],(function(a,b,c,d,e,f,g){"use strict";var h;e=h||d("react");var i=e.useId,j=e.useState;function a(){return i()}function k(){var a=[];return{isControllingComponent:function(b){var c=a.length;return a[c-1]===b},registerControllingComponent:function(b){c("removeFromArray")(a,b),a.push(b)},unregisterControllingComponent:function(b){var d=a.length;d>1&&c("removeFromArray")(a,b);return d>1}}}function b(){var a=j(l);a=a[0];return a}function l(){return k()}g.useAutoplayControlID=a;g.createConcurrentAutoplayManagementAPI=k;g.useConcurrentAutoplayManagementAPI=b}),98);
__d("VideoPlayerViewabilityHooks",["VideoPlayerHooks"],(function(a,b,c,d,e,f,g){"use strict";var h;g.useVideoPlayerExtendedPassiveViewabilityInfo=(h||(h=d("VideoPlayerHooks"))).useVideoPlayerExtendedPassiveViewabilityInfo;g.useVideoPlayerPassiveViewabilityInfo=h.useVideoPlayerPassiveViewabilityInfo;g.useVideoPlayerViewabilityInfo=h.useVideoPlayerViewabilityInfo}),98);
__d("useEventCallbackOn",["react"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useEffect,j=b.c;function a(a,b,c){var d=j(5),e,f;d[0]!==a||d[1]!==b||d[2]!==c?(e=function(){a.addEventListener(b,c);return function(){a.removeEventListener(b,c)}},f=[a,b,c],d[0]=a,d[1]=b,d[2]=c,d[3]=e,d[4]=f):(e=d[3],f=d[4]);i(e,f)}g["default"]=a}),98);
__d("useIsBackgrounded",["emptyFunction","react","useEventCallbackOn"],(function(a,b,c,d,e,f,g){"use strict";var h;f=h||d("react");f.useCallback;var i=f.useState,j=f.c;function b(){var b=a.document;if(typeof b.hidden!=="undefined")return"visibilitychange";else if(typeof b.mozHidden!=="undefined")return"mozvisibilitychange";else if(typeof b.msHidden!=="undefined")return"msvisibilitychange";else if(typeof b.webkitHidden!=="undefined")return"webkitvisibilitychange";return"visibilitychange"}function k(){var b=a.document;if(typeof b.hidden!=="undefined")return b.hidden;else if(typeof b.mozHidden!=="undefined")return b.mozHidden;else if(typeof b.msHidden!=="undefined")return b.msHidden;else if(typeof b.webkitHidden!=="undefined")return b.webkitHidden;return!1}var l=b();function m(b){var c=a.document.hasFocus?a.document.hasFocus():!0,d=k();return d||(b?!1:!c)}function n(){return k()}function e(b){var d=j(11),e=(b==null?void 0:b.noPauseOnBlurOrFocus)===!0,f;d[0]!==e?(f=function(){return m(e)},d[0]=e,d[1]=f):f=d[1];f=i(f);var g=f[0],h=f[1];f=i(o);var k=f[0],p=f[1],q=!!b&&b.scrollTerminatesHiddenOrBlurred===!0;d[2]!==e?(f=function(){h(m(e)),p(n())},d[2]=e,d[3]=f):f=d[3];b=f;f=b;var r;d[4]!==e||d[5]!==q||d[6]!==g?(r=function(){var a=m(e);a&&q&&g&&h(!1)},d[4]=e,d[5]=q,d[6]=g,d[7]=r):r=d[7];r=r;e&&(f=c("emptyFunction"));c("useEventCallbackOn")(a.window,"blur",f);c("useEventCallbackOn")(a.window,"focus",f);c("useEventCallbackOn")(a.document,l,b);c("useEventCallbackOn")(a.window,"scroll",r);d[8]!==k||d[9]!==g?(f={isDocumentHidden:k,isDocumentHiddenOrBlurred:g},d[8]=k,d[9]=g,d[10]=f):f=d[10];return f}function o(){return n()}g["default"]=e}),98);
__d("VideoPlayerOzWWWGlobalConfig",["VideoPlayerShakaGlobalConfig"],(function(a,b,c,d,e,f,g){"use strict";var h="oz_www_";a={getBool:function(a,b){return d("VideoPlayerShakaGlobalConfig").getBool(h+a,b)},getNumber:function(a,b){return d("VideoPlayerShakaGlobalConfig").getNumber(h+a,b)},getString:function(a,b){return d("VideoPlayerShakaGlobalConfig").getString(h+a,b)}};b=a;g["default"]=b}),98);
__d("useVideoPlayerBandwidthEstimate",["VideoPlayerOzWWWGlobalConfig","oz-player/networks/OzBandwidthEstimator","react","useInterval"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useState,j=b.c,k=5e3;function a(){var a=j(2),b=l,d;a[0]===Symbol["for"]("react.memo_cache_sentinel")?(d=b(),a[0]=d):d=a[0];d=i(d);var e=d[0],f=d[1];a[1]===Symbol["for"]("react.memo_cache_sentinel")?(d=function(){return f(b())},a[1]=d):d=a[1];c("useInterval")(d,k);return e}function l(){return c("oz-player/networks/OzBandwidthEstimator").getBandwidth(c("VideoPlayerOzWWWGlobalConfig"))}g["default"]=a}),98);
__d("useVideoAutoplayState",["HiddenSubtreePassiveContext","VideoPlayerHooks","VideoPlayerShakaGlobalConfig","VideoPlayerViewabilityHooks","react","useIsBackgrounded","useVideoPlayerBandwidthEstimate"],(function(a,b,c,d,e,f,g){"use strict";var h,i;b=h||d("react");var j=b.startTransition,k=b.useContext,l=b.useEffect;b.useMemo;var m=b.useRef,n=b.useState,o=b.c;function a(a){var b=o(42),e=(i||(i=d("VideoPlayerHooks"))).useAdClientToken(),f=i.useAutoplayGatingResult(),g=i.useBroadcastStatus(),h=i.useEnded(),p=i.useIsFrozenPassive(),q=i.useLastPauseReason(),r=i.useLastPlayReason(),s=i.useMuted(),t=i.usePaused(),u=k(c("HiddenSubtreePassiveContext")),v=!e,w;b[0]!==a?(w=(a==null?void 0:a.noPauseOnBlurOrFocus)===!0||d("VideoPlayerShakaGlobalConfig").getBool("comet_www_no_pause_on_blur_or_focus_events",!1),b[0]=a,b[1]=w):w=b[1];a=w;b[2]!==a||b[3]!==v?(w={noPauseOnBlurOrFocus:a,scrollTerminatesHiddenOrBlurred:v},b[2]=a,b[3]=v,b[4]=w):w=b[4];a=c("useIsBackgrounded")(w);v=a.isDocumentHidden;w=a.isDocumentHiddenOrBlurred;a=c("useVideoPlayerBandwidthEstimate")();var x=d("VideoPlayerViewabilityHooks").useVideoPlayerPassiveViewabilityInfo(),y=d("VideoPlayerViewabilityHooks").useVideoPlayerExtendedPassiveViewabilityInfo(),z;b[5]!==u?(z=u.getCurrentState(),b[5]=u,b[6]=z):z=b[6];z=n(z.backgrounded);var A=z[0],B=z[1];b[7]!==u?(z=u.getCurrentState(),b[7]=u,b[8]=z):z=b[8];z=n(z.hidden);var C=z[0],D=z[1],E;b[9]!==u?(z=function(){var a=function(){j(function(){var a=u.getCurrentState();D(a.hidden);B(a.backgrounded)})},b=u.subscribeToChanges(a);a();return function(){b.remove()}},E=[u,B,D],b[9]=u,b[10]=z,b[11]=E):(z=b[10],E=b[11]);l(z,E);b[12]!==p?(z=function(){return p.getCurrentState()},b[12]=p,b[13]=z):z=b[13];E=n(z);z=E[0];var F=E[1],G;b[14]!==p?(E=function(){var a=p.subscribeToChanges(function(a){F(a)}),b=p.getCurrentState();F(b);return function(){a.remove()}},G=[p,F],b[14]=p,b[15]=E,b[16]=G):(E=b[15],G=b[16]);l(E,G);b[17]!==e||b[18]!==f||b[19]!==a||b[20]!==g||b[21]!==z||b[22]!==A||b[23]!==C||b[24]!==h||b[25]!==u||b[26]!==v||b[27]!==w||b[28]!==p||b[29]!==q||b[30]!==r||b[31]!==s||b[32]!==t||b[33]!==y||b[34]!==x?(E={adClientToken:e,autoplayGatingResult:f,bandwidthEstimate:a,broadcastStatus:g,controllerIsFrozen:z,currentSubtreeIsBackgrounded:A,currentSubtreeIsHidden:C,ended:h,hiddenSubtreePassive:u,isDocumentHidden:v,isDocumentHiddenOrBlurred:w,isFrozenPassive:p,lastPauseReason:q,lastPlayReason:r,muted:s,paused:t,videoPlayerExtendedPassiveViewabilityInfo:y,videoPlayerPassiveViewabilityInfo:x},b[17]=e,b[18]=f,b[19]=a,b[20]=g,b[21]=z,b[22]=A,b[23]=C,b[24]=h,b[25]=u,b[26]=v,b[27]=w,b[28]=p,b[29]=q,b[30]=r,b[31]=s,b[32]=t,b[33]=y,b[34]=x,b[35]=E):E=b[35];G=E;var H=G;e=n(H);var I=e[0],J=e[1],K=m(I);b[36]!==I?(f=function(){K.current=I},a=[I],b[36]=I,b[37]=f,b[38]=a):(f=b[37],a=b[38]);l(f,a);b[39]!==H?(g=function(){var a=!1;for(var b in H)if(Object.prototype.hasOwnProperty.call(H,b)&&H[b]!==K.current[b]){a=!0;break}a&&J(H)},z=[H,J],b[39]=H,b[40]=g,b[41]=z):(g=b[40],z=b[41]);l(g,z);return I}g["default"]=a}),98);
__d("CoreVideoPlayerAutoplayClient.react",["CoreVideoPlayerAutoplayClientUtils","HiddenSubtreePassiveContext","VideoPlayerAutoplayHooks","VideoPlayerDebugAutoplayAPI","VideoPlayerHooks","VideoPlayerViewabilityConstants","WwwCometVideoAutoplayFalcoEvent","evaluateVideoAutoplayDefaultAllowRule","evaluateVideoAutoplayDefaultIgnoreRule","makeSelectedAutoplayVideoSymbol","react","useAutoplayRulesEngine","useConcurrentAutoplayManagementAPI","useVideoAutoplayState"],(function(a,b,c,d,e,f,g){"use strict";var h,i;b=h||d("react");b.useCallback;var j=b.useContext,k=b.useEffect,l=b.useId;b.useMemo;var m=b.useRef,n=b.useState,o=b.c;function a(){var a=o(85),b=l(),e=(i||(i=d("VideoPlayerHooks"))).useCanAutoplay(),f=i.useInstanceKey(),g;a[0]!==b||a[1]!==f?(g=c("makeSelectedAutoplayVideoSymbol")(b,f),a[0]=b,a[1]=f,a[2]=g):g=a[2];b=g;var h=b,p=m(h);a[3]!==h?(g=function(){p.current=h},b=[h],a[3]=h,a[4]=g,a[5]=b):(g=a[4],b=a[5]);k(g,b);var q=j(c("HiddenSubtreePassiveContext")),r=i.useController(),s=m(!1),t=d("useConcurrentAutoplayManagementAPI").useAutoplayControlID();a[6]!==t||a[7]!==r?(g=function(){d("CoreVideoPlayerAutoplayClientUtils").log(p.current,"[ASSUME CONTROL] "+t),r.registerControllingComponent(t)},b=[r,t],a[6]=t,a[7]=r,a[8]=g,a[9]=b):(g=a[8],b=a[9]);k(g,b);var u=i.useVideoPlayerPassiveViewabilityInfo();a[10]!==r?(g=r.getCurrentState(),a[10]=r,a[11]=g):g=a[11];b=g;g=b.paused;var v=m(g),w=d("VideoPlayerAutoplayHooks").useVideoAutoplayLocalScope(),x=m(w);a[12]!==w?(b=function(){x.current=w},g=[w],a[12]=w,a[13]=b,a[14]=g):(b=a[13],g=a[14]);k(b,g);a[15]!==r||a[16]!==u?(b=function(){var a=r.getCurrentState(),b=a.lastPlayReason;a=a.paused;var d=v.current;v.current=a;var e=u==null?void 0:u.getCurrent();if(e){e=e.visiblePercentage;a=!a&&a!==d;d=e<c("VideoPlayerViewabilityConstants").DEFAULT_VIEWABILITY_PERCENTAGE_FOR_PAUSE&&e>0;x.current.disableScrollBeforePlayWhenOffscreen!==!0&&a&&b==="user_initiated"&&d&&(s.current=!0)}},a[15]=r,a[16]=u,a[17]=b):b=a[17];var y=b,z=m(y);a[18]!==y?(g=function(){z.current=y},b=[y],a[18]=y,a[19]=g,a[20]=b):(g=a[19],b=a[20]);k(g,b);a[21]!==r||a[22]!==y?(g=function(){var a=r.subscribe(function(){y()});return function(){a.remove()}},b=[r,y],a[21]=r,a[22]=y,a[23]=g,a[24]=b):(g=a[23],b=a[24]);k(g,b);a[25]!==w.noPauseOnBlurOrFocus?(g={noPauseOnBlurOrFocus:w.noPauseOnBlurOrFocus},a[25]=w.noPauseOnBlurOrFocus,a[26]=g):g=a[26];var A=c("useVideoAutoplayState")(g),B=c("useAutoplayRulesEngine")(w.autoplayLocalRules),C=e==="allow"?c("evaluateVideoAutoplayDefaultAllowRule"):c("evaluateVideoAutoplayDefaultIgnoreRule");a[27]!==C?(b=function(){return C},a[27]=C,a[28]=b):b=a[28];g=n(b);b=g[0];var D=g[1];g=n(null);var E=g[0],F=g[1];a[29]!==B||a[30]!==A||a[31]!==C?(g=function(){return B.evaluateAutoplay(A,C)},a[29]=B,a[30]=A,a[31]=C,a[32]=g):g=a[32];g=n(g);var G=g[0],H=g[1];g=n(null);var I=g[0],J=g[1],K=m(G),L=d("VideoPlayerAutoplayHooks").useAutoplayApi(),M=m(L),N;a[33]!==L?(g=function(){M.current=L},N=[L],a[33]=L,a[34]=g,a[35]=N):(g=a[34],N=a[35]);k(g,N);var O=e!=="dangerously_disable_autoplay_management";a[36]!==L||a[37]!==h||a[38]!==f||a[39]!==w||a[40]!==r||a[41]!==q||a[42]!==O?(g=function(){L.register(h,f,w,r,q,O);c("WwwCometVideoAutoplayFalcoEvent").log(function(){return{autoplay_event_name:"register",autoplay_scope_id:x.current.autoplayScopeID,event_creation_time:Date.now(),initiator:p.current,initiator_type:"autoplay_component",selected_autoplay_video_symbol:L.getAutoplayManagerDebugInfo(x.current).selectedAutoplayVideoSymbol,target:p.current,target_current_autoplay_decision:K.current}});return function(){L.unregister(h),c("WwwCometVideoAutoplayFalcoEvent").log(function(){return{autoplay_event_name:"unregister",autoplay_scope_id:x.current.autoplayScopeID,event_creation_time:Date.now(),initiator:p.current,initiator_type:"autoplay_component",selected_autoplay_video_symbol:L.getAutoplayManagerDebugInfo(x.current).selectedAutoplayVideoSymbol,target:p.current,target_current_autoplay_decision:K.current}})}},N=[L,w,r,q,f,O,h],a[36]=L,a[37]=h,a[38]=f,a[39]=w,a[40]=r,a[41]=q,a[42]=O,a[43]=g,a[44]=N):(g=a[43],N=a[44]);k(g,N);a[45]!==B||a[46]!==A||a[47]!==C||a[48]!==u||a[49]!==r||a[50]!==I||a[51]!==t||a[52]!==z||a[53]!==L||a[54]!==E||a[55]!==h||a[56]!==q?(e=function(){var a=function(){var a=B.evaluateAutoplay(A,C);K.current=a;var b=B.getRules(),e=B.getIndexOfLastWinningRule(),f=e>=0?b[e]:C;b=u&&u.getCurrent();e=r.getCurrentState();e=e.paused;(I===null||I!==a)&&(H(a),J(a));if(a==="PAUSE"&&!e&&r.isControllingComponent(t)){e=!0;z.current();if(s.current){s.current=!1;var g=b==null?void 0:b.positionToViewport;g&&r.scrollIntoView(g.top<0);e=!1}if(e){g="[PAUSE] via short-circuit on "+f.name+".";d("CoreVideoPlayerAutoplayClientUtils").log(p.current,g);r.pause("autoplay_initiated");c("WwwCometVideoAutoplayFalcoEvent").log(function(){return{autoplay_event_name:"pause",autoplay_scope_id:x.current.autoplayScopeID,event_creation_time:Date.now(),initiator:p.current,initiator_type:"autoplay_component",selected_autoplay_video_symbol:L.getAutoplayManagerDebugInfo(x.current).selectedAutoplayVideoSymbol,target:p.current,target_current_autoplay_decision:a}})}}(E===null||E!==f)&&(D(function(){return f}),F(function(){return f}),c("WwwCometVideoAutoplayFalcoEvent").log(function(){return{autoplay_event_name:"rule_changed",autoplay_scope_id:x.current.autoplayScopeID,event_creation_time:Date.now(),initiator:p.current,initiator_type:"autoplay_component",selected_autoplay_video_symbol:L.getAutoplayManagerDebugInfo(x.current).selectedAutoplayVideoSymbol,target:p.current,target_current_autoplay_decision:a}}));d("CoreVideoPlayerAutoplayClientUtils").log(p.current,"[DECISION: "+a+"] from "+f.name);b&&L.update(h,a,b)},b=q.subscribeToChanges(function(a){q.getCurrentState().hidden||q.getCurrentState().backgrounded?r.isControllingComponent(t)||r.unregisterControllingComponent(t):r.registerControllingComponent(t)}),e=u?u.subscribe(function(){q.getCurrentState().hidden||q.getCurrentState().backgrounded?r.isControllingComponent(t)||r.unregisterControllingComponent(t):r.registerControllingComponent(t),a()}):null;a();return function(){b.remove(),e&&e.remove()}},a[45]=B,a[46]=A,a[47]=C,a[48]=u,a[49]=r,a[50]=I,a[51]=t,a[52]=z,a[53]=L,a[54]=E,a[55]=h,a[56]=q,a[57]=e):e=a[57];a[58]!==L||a[59]!==t||a[60]!==B||a[61]!==r||a[62]!==C||a[63]!==q||a[64]!==E||a[65]!==I||a[66]!==h||a[67]!==A||a[68]!==u?(g=[L,t,B,r,C,q,E,I,D,H,F,J,h,A,u],a[58]=L,a[59]=t,a[60]=B,a[61]=r,a[62]=C,a[63]=q,a[64]=E,a[65]=I,a[66]=h,a[67]=A,a[68]=u,a[69]=g):g=a[69];k(e,g);a[70]!==r||a[71]!==t||a[72]!==G?(N=function(){var a=r.isControllingComponent(t),b=r.getCurrentState();b=b.paused;d("CoreVideoPlayerAutoplayClientUtils").componentShouldPause(G,K.current,b,a)&&(d("CoreVideoPlayerAutoplayClientUtils").log(p.current,"[PAUSE] the video for "+G),r.pause("autoplay_initiated"),c("WwwCometVideoAutoplayFalcoEvent").log(function(){return{autoplay_event_name:"pause",autoplay_scope_id:x.current.autoplayScopeID,event_creation_time:Date.now(),initiator:p.current,initiator_type:"autoplay_component",selected_autoplay_video_symbol:M.current.getAutoplayManagerDebugInfo(x.current).selectedAutoplayVideoSymbol,target:p.current,target_current_autoplay_decision:G}}))},e=[G,r,t],a[70]=r,a[71]=t,a[72]=G,a[73]=N,a[74]=e):(N=a[73],e=a[74]);k(N,e);a[75]!==t||a[76]!==r?(g=function(){return function(){d("CoreVideoPlayerAutoplayClientUtils").log(p.current,"[RELEASE CONTROL] "+t),r.unregisterControllingComponent(t)}},N=[r,t],a[75]=t,a[76]=r,a[77]=g,a[78]=N):(g=a[77],N=a[78]);k(g,N);a[79]!==b||a[80]!==M||a[81]!==G||a[82]!==w||a[83]!==h?(e={applicableRule:b,autoplayApiRef:M,autoplayDecision:G,autoplayLocalScope:w,symbol:h},a[79]=b,a[80]=M,a[81]=G,a[82]=w,a[83]=h,a[84]=e):e=a[84];c("VideoPlayerDebugAutoplayAPI").useVideoPlayerDebugAPIDefinition(e);return null}g["default"]=a}),98);
__d("VideoPlayerViewabilityProvider.react",["VideoPlayerViewabilityContexts","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||(h=d("react"))).c,j=h;function a(a){var b=i(9),c=a.children,e=a.isDesktopPictureInPicture,f=a.isFullscreen;a=a.videoPlayerPassiveViewabilityInfo;var g;b[0]!==f||b[1]!==c?(g=j.jsx(d("VideoPlayerViewabilityContexts").VideoPlayerFullscreenContext.Provider,{value:f,children:c}),b[0]=f,b[1]=c,b[2]=g):g=b[2];b[3]!==e||b[4]!==g?(f=j.jsx(d("VideoPlayerViewabilityContexts").VideoPlayerDesktopPictureInPictureContext.Provider,{value:e,children:g}),b[3]=e,b[4]=g,b[5]=f):f=b[5];b[6]!==a||b[7]!==f?(c=j.jsx(d("VideoPlayerViewabilityContexts").VideoPlayerPassiveViewabilityInfoContext.Provider,{value:a,children:f}),b[6]=a,b[7]=f,b[8]=c):c=b[8];return c}g["default"]=a}),98);
__d("useBlockCappedListItemWhenPlayingVideo",["CappedListItemContext","err","react"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useContext,j=b.useEffect,k=b.c;function a(a,b){var d;b=k(4);var e=(d=i(c("CappedListItemContext")))==null?void 0:d.registerBlocker,f;b[0]!==e||b[1]!==a?(d=function(){if(!e)return;var b;b=null;var c;c=null;var d=function(){var d=a.getCurrentState().playing;if(d!==b){b=d;c&&(c(),c=null);if(d){var f;c=e({reason:"playing_video",source:f})}}};d();var f=a.subscribe(d);return function(){f.remove(),c&&(c(),c=null)}},f=[a,e],b[0]=e,b[1]=a,b[2]=d,b[3]=f):(d=b[2],f=b[3]);j(d,f)}g["default"]=a}),98);
__d("useDisableVirtualizationWhenPlayingVideo",["VirtualizationContext","react"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useContext,j=b.useEffect,k=b.c;function a(a,b){var d=k(5),e=i(c("VirtualizationContext")),f,g;d[0]!==e||d[1]!==b||d[2]!==a?(f=function(){if(e==null)return;var c=e.createFlag,d=e.createPin,f;f=null;var g;g=null;var h=function(){g==null&&(g=c("HAS_PLAYER","playerInstanceKey: "+b));var e=a.getCurrentState();e.playing?f||(f=d("player "+b+" is playing")):e.isFullscreen?f||(f=d("player "+b+" is fullscreen")):(f==null?void 0:f(),f=null)};h();var i=a.subscribe(h);return function(){i.remove(),g==null?void 0:g(),g=null,f==null?void 0:f(),f=null}},g=[a,b,e],d[0]=e,d[1]=b,d[2]=a,d[3]=f,d[4]=g):(f=d[3],g=d[4]);j(f,g)}g["default"]=a}),98);
__d("wrapWithContextProviders",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a,b){return b.reduceRight(function(a,b){return b(a)},a)}a.displayName=a.name+" [from "+f.id+"]";function b(a,b){return function(c){return i.jsx(a.Provider,{value:b,children:c})}}g.wrapWithContextProviders=a;g.makeRenderProviderFn=b}),98);
__d("VideoPlayerComponentContainer.react",["CometVisualCompletionAttributes","VideoPlayerContexts","VideoPlayerHooks","VideoPlayerViewabilityProvider.react","clearTimeout","cr:6094","react","setTimeout","stylex","useBlockCappedListItemWhenPlayingVideo","useDisableVirtualizationWhenPlayingVideo","wrapWithContextProviders"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=i||(i=d("react"));e=i;e.useCallback;var m=e.useEffect,n=e.useRef,o=e.useState,p=e.c,q={"default":{height:"x5yr21d",position:"x10l6tqk",top:"x13vifvy",width:"xh8yej3",$$css:!0},hiddenCursor:{cursor:"xjfk50j",$$css:!0}};function r(a){var b=p(10),d=n(a),e,f;b[0]!==a?(e=function(){d.current=a},f=[a],b[0]=a,b[1]=e,b[2]=f):(e=b[1],f=b[2]);m(e,f);e=o(!1);f=e[0];var g=e[1];b[3]===Symbol["for"]("react.memo_cache_sentinel")?(e=function(){var a;a=null;return{cleanup:function(){a&&a()},pingNotIdle:function(){a&&a();g(!1);var b=c("setTimeout")(function(){g(!0)},d.current);a=function(){c("clearTimeout")(b),a=null}}}},b[3]=e):e=b[3];e=o(e);e=e[0];var h=e.cleanup;e=e.pingNotIdle;var i,j;b[4]!==h?(i=function(){return h},j=[h],b[4]=h,b[5]=i,b[6]=j):(i=b[5],j=b[6]);m(i,j);b[7]!==f||b[8]!==e?(i={isIdle:f,pingNotIdle:e},b[7]=f,b[8]=e,b[9]=i):i=b[9];return i}function s(){var a=p(18),b=o(!1),c=b[0],d=b[1];b=r(3e3);var e=b.isIdle,f=b.pingNotIdle;a[0]!==f?(b=function(){d(!0),f()},a[0]=f,a[1]=b):b=a[1];b=b;var g;a[2]!==f?(g=function(){d(!1),f()},a[2]=f,a[3]=g):g=a[3];g=g;var h;a[4]!==f?(h=function(){d(!0),f()},a[4]=f,a[5]=h):h=a[5];h=h;var i;a[6]!==f?(i=function(){f()},a[6]=f,a[7]=i):i=a[7];i=i;var j;a[8]!==f?(j=function(){f()},a[8]=f,a[9]=j):j=a[9];j=j;var k;a[10]!==c||a[11]!==e||a[12]!==i||a[13]!==b||a[14]!==g||a[15]!==h||a[16]!==j?(k={isHovering:c,isIdle:e,onMouseDown:i,onMouseEnter:b,onMouseLeave:g,onMouseMove:h,onMouseUp:j},a[10]=c,a[11]=e,a[12]=i,a[13]=b,a[14]=g,a[15]=h,a[16]=j,a[17]=k):k=a[17];return k}function t(a){var b=p(16);a=a.children;var e=s(),f=e.isHovering,g=e.isIdle,i=e.onMouseDown,m=e.onMouseEnter,n=e.onMouseLeave,o=e.onMouseMove;e=e.onMouseUp;var r=(k||(k=d("VideoPlayerHooks"))).useIsFullscreen();r=r&&g&&q.hiddenCursor;var t;b[0]!==r?(t=(h||(h=c("stylex")))(q["default"],r),b[0]=r,b[1]=t):t=b[1];b[2]!==g||b[3]!==a?(r=l.jsx((j||(j=d("VideoPlayerContexts"))).VideoPlayerMouseIdleContext.Provider,{value:g,children:a}),b[2]=g,b[3]=a,b[4]=r):r=b[4];b[5]!==f||b[6]!==r?(g=l.jsx((j||(j=d("VideoPlayerContexts"))).VideoPlayerMouseHoverContext.Provider,{value:f,children:r}),b[5]=f,b[6]=r,b[7]=g):g=b[7];b[8]!==t||b[9]!==i||b[10]!==m||b[11]!==n||b[12]!==o||b[13]!==e||b[14]!==g?(a=l.jsx("div",babelHelpers["extends"]({className:t},c("CometVisualCompletionAttributes").IGNORE,{onMouseDown:i,onMouseEnter:m,onMouseLeave:n,onMouseMove:o,onMouseUp:e,children:g})),b[8]=t,b[9]=i,b[10]=m,b[11]=n,b[12]=o,b[13]=e,b[14]=g,b[15]=a):a=b[15];return a}function a(a){var e=p(74),f,g;e[0]!==a?(g=a.children,f=babelHelpers.objectWithoutPropertiesLoose(a,["children"]),e[0]=a,e[1]=f,e[2]=g):(f=e[1],g=e[2]);a=f;var h=a.adClientToken,i=a.audioAvailabilityInfo,k=a.autoplayGatingResult,m=a.broadcastStatus,n=a.canAutoplay,o=a.controller,q=a.dimensions,r=a.initialTracePolicy,s=a.instanceKey,u=a.isDesktopPictureInPicture,v=a.isFullscreen,w=a.isNCSR,x=a.isPremiumMusicVideo,y=a.lastMuteReason,z=a.lastPauseReason,A=a.lastPlayReason,B=a.videoFBID,C=a.videoPixelsAspectRatio,D=a.videoPlayerPassiveViewabilityInfo,E=a.videoState;a=a.volumeSetting;var F=E.activeCaptions,G=E.activeEmsgBoxes,H=E.availableAudioTracks,I=E.availableVideoQualities,J=E.availableVideoTracks,K=E.bufferEnd,L=E.captionDisplayStyle,M=E.captionsLoaded,N=E.captionsVisible,O=E.currentAudioTrackID,P=E.currentVideoQuality,Q=E.duration,R=E.ended,S=E.error,T=E.inbandCaptionsAutogenerated,U=E.inPlayStalling,V=E.isAbrEnabled,W=E.isLiveRewindActive,X=E.lastPlayedTimeMs,Y=E.latencyLevel,Z=E.loopCount,aa=E.loopCurrent,ba=E.muted,ca=E.paused,da=E.playerVersion,ea=E.playing,fa=E.seekableRanges,ga=E.seeking,ha=E.selectedVideoQuality,ia=E.stalling,ja=E.streamInterrupted,ka=E.targetAudioTrack,la=E.targetPlaybackRate,ma=E.targetVideoQuality,na=E.volume;E=E.watchTimeMs;var $;e[3]!==g?($=l.jsx(t,{children:g}),e[3]=g,e[4]=$):$=e[4];g=$;e[5]!==o||e[6]!==f||e[7]!==D?($={controller:o,coreVideoStates:f,videoPlayerPassiveViewabilityInfo:D},e[5]=o,e[6]=f,e[7]=D,e[8]=$):$=e[8];b("cr:6094")(s,$);if(e[9]!==B||e[10]!==ia||e[11]!==ea||e[12]!==U||e[13]!==K||e[14]!==y||e[15]!==A||e[16]!==z||e[17]!==ca||e[18]!==O||e[19]!==P||e[20]!==ba||e[21]!==ka||e[22]!==na||e[23]!==ha||e[24]!==ga||e[25]!==Q||e[26]!==R||e[27]!==S||e[28]!==q||e[29]!==s||e[30]!==o||e[31]!==H||e[32]!==I||e[33]!==J||e[34]!==da||e[35]!==V||e[36]!==ma||e[37]!==la||e[38]!==n||e[39]!==a||e[40]!==k||e[41]!==m||e[42]!==Z||e[43]!==aa||e[44]!==h||e[45]!==F||e[46]!==N||e[47]!==L||e[48]!==M||e[49]!==T||e[50]!==ja||e[51]!==E||e[52]!==X||e[53]!==fa||e[54]!==Y||e[55]!==W||e[56]!==i||e[57]!==w||e[58]!==x||e[59]!==r||e[60]!==G||e[61]!==C||e[62]!==u||e[63]!==v||e[64]!==D||e[65]!==g){e[67]!==u||e[68]!==v||e[69]!==D?(f=function(a){return l.jsx(c("VideoPlayerViewabilityProvider.react"),{isDesktopPictureInPicture:u,isFullscreen:v,videoPlayerPassiveViewabilityInfo:D,children:a})},e[67]=u,e[68]=v,e[69]=D,e[70]=f):f=e[70];$=d("wrapWithContextProviders").wrapWithContextProviders(g,[d("wrapWithContextProviders").makeRenderProviderFn((j||(j=d("VideoPlayerContexts"))).VideoFBIDContext,B),d("wrapWithContextProviders").makeRenderProviderFn(j.StallingContext,ia),d("wrapWithContextProviders").makeRenderProviderFn(j.PlayingContext,ea),d("wrapWithContextProviders").makeRenderProviderFn(j.InPlayStallingContext,U),d("wrapWithContextProviders").makeRenderProviderFn(j.BufferEndContext,K),d("wrapWithContextProviders").makeRenderProviderFn(j.LastMuteReasonContext,y),d("wrapWithContextProviders").makeRenderProviderFn(j.LastPlayReasonContext,A),d("wrapWithContextProviders").makeRenderProviderFn(j.LastPauseReasonContext,z),d("wrapWithContextProviders").makeRenderProviderFn(j.PausedContext,ca),d("wrapWithContextProviders").makeRenderProviderFn(j.CurrentAudioTrackIDContext,O),d("wrapWithContextProviders").makeRenderProviderFn(j.CurrentVideoQualityContext,P),d("wrapWithContextProviders").makeRenderProviderFn(j.MutedContext,ba),d("wrapWithContextProviders").makeRenderProviderFn(j.TargetAudioTrackContext,ka),d("wrapWithContextProviders").makeRenderProviderFn(j.VolumeContext,na),d("wrapWithContextProviders").makeRenderProviderFn(j.SelectedVideoQualityContext,ha),d("wrapWithContextProviders").makeRenderProviderFn(j.SeekingContext,ga),d("wrapWithContextProviders").makeRenderProviderFn(j.DurationContext,Q),d("wrapWithContextProviders").makeRenderProviderFn(j.EndedContext,R),d("wrapWithContextProviders").makeRenderProviderFn(j.ErrorContext,S),d("wrapWithContextProviders").makeRenderProviderFn(j.DimensionsContext,q||null),d("wrapWithContextProviders").makeRenderProviderFn(j.InstanceKeyContext,s),d("wrapWithContextProviders").makeRenderProviderFn(j.ControllerContext,o),d("wrapWithContextProviders").makeRenderProviderFn(j.AvailableAudioTracksContext,H),d("wrapWithContextProviders").makeRenderProviderFn(j.AvailableVideoQualitiesContext,I),d("wrapWithContextProviders").makeRenderProviderFn(j.AvailableVideoTracksContext,J),d("wrapWithContextProviders").makeRenderProviderFn(j.PlayerVersionContext,da),d("wrapWithContextProviders").makeRenderProviderFn(j.IsAbrEnabledContext,V),d("wrapWithContextProviders").makeRenderProviderFn(j.TargetVideoQualityContext,ma),d("wrapWithContextProviders").makeRenderProviderFn(j.PlaybackRateContext,la),d("wrapWithContextProviders").makeRenderProviderFn(j.CanAutoplayContext,n),d("wrapWithContextProviders").makeRenderProviderFn(j.VolumeSettingContext,a),d("wrapWithContextProviders").makeRenderProviderFn(j.AutoplayGatingResultContext,k),d("wrapWithContextProviders").makeRenderProviderFn(j.BroadcastStatusContext,m),d("wrapWithContextProviders").makeRenderProviderFn(j.LoopCountContext,Z),d("wrapWithContextProviders").makeRenderProviderFn(j.LoopCurrentContext,aa),d("wrapWithContextProviders").makeRenderProviderFn(j.AdClientTokenContext,h),d("wrapWithContextProviders").makeRenderProviderFn(j.ActiveCaptionsContext,F),d("wrapWithContextProviders").makeRenderProviderFn(j.CaptionsVisibleContext,N),d("wrapWithContextProviders").makeRenderProviderFn(j.CaptionDisplayStyleContext,L),d("wrapWithContextProviders").makeRenderProviderFn(j.CaptionsLoadedContext,M),d("wrapWithContextProviders").makeRenderProviderFn(j.InbandCaptionsAutogeneratedContext,T),d("wrapWithContextProviders").makeRenderProviderFn(j.StreamInterruptedContext,ja),d("wrapWithContextProviders").makeRenderProviderFn(j.WatchTimeContext,E),d("wrapWithContextProviders").makeRenderProviderFn(j.LastPlayedTimeContext,X),d("wrapWithContextProviders").makeRenderProviderFn(j.SeekableRangesContext,fa),d("wrapWithContextProviders").makeRenderProviderFn(j.LatencyLevelContext,Y),d("wrapWithContextProviders").makeRenderProviderFn(j.IsLiveRewindActiveContext,W),d("wrapWithContextProviders").makeRenderProviderFn(j.AudioAvailabilityInfoContext,i),d("wrapWithContextProviders").makeRenderProviderFn(j.IsNCSRContext,w),d("wrapWithContextProviders").makeRenderProviderFn(j.IsPremiumMusicVideoContext,x),d("wrapWithContextProviders").makeRenderProviderFn(j.InitialTracePolicyContext,r),d("wrapWithContextProviders").makeRenderProviderFn(j.ActiveEmsgBoxesContext,G),d("wrapWithContextProviders").makeRenderProviderFn(j.VideoPixelsAspectRatioContext,($=C)!=null?$:null),f]);e[9]=B;e[10]=ia;e[11]=ea;e[12]=U;e[13]=K;e[14]=y;e[15]=A;e[16]=z;e[17]=ca;e[18]=O;e[19]=P;e[20]=ba;e[21]=ka;e[22]=na;e[23]=ha;e[24]=ga;e[25]=Q;e[26]=R;e[27]=S;e[28]=q;e[29]=s;e[30]=o;e[31]=H;e[32]=I;e[33]=J;e[34]=da;e[35]=V;e[36]=ma;e[37]=la;e[38]=n;e[39]=a;e[40]=k;e[41]=m;e[42]=Z;e[43]=aa;e[44]=h;e[45]=F;e[46]=N;e[47]=L;e[48]=M;e[49]=T;e[50]=ja;e[51]=E;e[52]=X;e[53]=fa;e[54]=Y;e[55]=W;e[56]=i;e[57]=w;e[58]=x;e[59]=r;e[60]=G;e[61]=C;e[62]=u;e[63]=v;e[64]=D;e[65]=g;e[66]=$}else $=e[66];f=$;c("useBlockCappedListItemWhenPlayingVideo")(o,s);c("useDisableVirtualizationWhenPlayingVideo")(o,s);e[71]!==s||e[72]!==f?(B=l.jsx("div",{"data-instancekey":s,"data-testid":void 0,children:f}),e[71]=s,e[72]=f,e[73]=B):B=e[73];return B}f=l.memo(a);g["default"]=f}),98);
__d("VideoPlayerFullscreenController",["CometFullScreen","removeFromArray","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";function h(a){return a.current!=null&&d("CometFullScreen").getFullScreenElement()===a.current}function a(a){var b=[];function e(){b.forEach(function(a){a()})}var f=null;return{getIsFullscreen:function(){return h(a)},requestSetIsFullscreen:function(b,e){var f=a.current;if(f==null)throw c("unrecoverableViolation")("Requested full screen while the element is not present","comet_video_player");d("CometFullScreen").isSupported()?b!==h(a)&&(b===!0?d("CometFullScreen").requestFullScreen(f):b===!1&&d("CometFullScreen").exitFullScreen()):b&&e!=null&&typeof e.webkitEnterFullScreen==="function"?e.webkitEnterFullScreen():!b&&e!=null&&typeof e.webkitExitFullScreen==="function"&&e.webkitExitFullscreen()},subscribe:function(a){b.length===0&&f==null&&(f=d("CometFullScreen").subscribeToFullScreenChangeEvent(e));b.push(a);return{remove:function(){c("removeFromArray")(b,a),b.length===0&&f!=null&&(f(),f=null)}}}}}g.createFullscreenController=a}),98);
__d("VideoPlayerPortalingPlaceState",["GlobalVideoPortsContexts","GlobalVideoPortsID","gkx","react","usePrevious"],(function(a,b,c,d,e,f,g){"use strict";var h;f=h||d("react");var i=f.useEffect,j=f.useState,k=f.c;function a(a,b){var e=k(5),f=c("usePrevious")(a),g,h;e[0]!==a||e[1]!==f||e[2]!==b?(g=function(){a!==f&&(f!==null&&f&&!a&&b(d("GlobalVideoPortsID").makeVideoID()))},h=[a,f,b],e[0]=a,e[1]=f,e[2]=b,e[3]=g,e[4]=h):(g=e[3],h=e[4]);i(g,h)}function b(a,b){var c=j(null),e=c[0];c=c[1];a!==e&&(e!==null&&e&&!a&&b(d("GlobalVideoPortsID").makeVideoID()),c(a))}var l=c("gkx")("24382")?b:a;function e(a){var b=k(11),c=a.portalingEnabled;a=a.portalingFromVideoID;var e=d("GlobalVideoPortsContexts").useGlobalVideoPortsLoader(),f=d("GlobalVideoPortsContexts").useGlobalVideoPortsManager(),g=d("GlobalVideoPortsContexts").useGlobalVideoPortsState(),h=f!=null&&g!=null,o=(h||e!=null)&&(c||a!=null),p=j(n);p=p[0];var q=j(m),r=q[0];q=q[1];c=o&&c&&a!=null;a=c&&a!=null?a:r;l(c,q);b[0]!==o||b[1]!==h||b[2]!==e?(r=function(){o&&!h&&e&&e()},c=[h,o,e],b[0]=o,b[1]=h,b[2]=e,b[3]=r,b[4]=c):(r=b[3],c=b[4]);i(r,c);b[5]!==o||b[6]!==a||b[7]!==f||b[8]!==g||b[9]!==p?(q={canBecomePortableLater:o,currentVideoID:a,globalVideoPortsManager:f,globalVideoPortsState:g,thisPlaceID:p},b[5]=o,b[6]=a,b[7]=f,b[8]=g,b[9]=p,b[10]=q):q=b[10];return q}function m(){return d("GlobalVideoPortsID").makeVideoID()}function n(){return d("GlobalVideoPortsID").makePlaceID()}g.useRegenerateUniqueVideoID_exportedForTest=l;g.useVideoPlayerPortalingPlaceState=e}),98);
__d("VideoPlayerPortalingPlaceWithPortaling.react",["BaseContextualLayerAnchorRootContext","CoreVideoPlayerFitParentContainer.react","GlobalVideoPortsRenderers.react","getOwnObjectValues","killswitch","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useContext,k=b.useEffect,l=b.useRef,m=b.useState;function a(a){var b=a.coreVideoPlayerMetaData,e=a.currentPlaceID,f=a.currentVideoID,g=a.fullscreenController,h=a.globalVideoPortsManager,n=a.globalVideoPortsState_DEPRECATED,o=a.implementations,p=a.isFullscreen,q=a.portablePlaceMetaData,r=a.previousPlaceMetaData,s=a.renderComponents,t=a.renderPlaceholder,u=a.thisPlaceID,v=a.trackingDataEncrypted,w=a.trackingNodes,x=a.viewportMarginsForViewability;a=m(function(){return d("CoreVideoPlayerFitParentContainer.react").createFitParentContainerDiv({debugRole:null})});var y=a[0],z=l(null);k(function(){h.addOrUpdatePlace({coreVideoPlayerMetaData:b,fullscreenController:g,implementations:o,injectCoreVideoStatesRef:z,isFullscreen:p,portablePlaceContainer:y,portablePlaceID:u,portablePlaceMetaData:q,portableVideoID:f,renderComponents:s,renderPlaceholder:t,trackingDataEncrypted:v,trackingNodes:w,viewportMarginsForViewability:x})},[].concat(c("getOwnObjectValues")(b),[f,g,p,h,y],c("getOwnObjectValues")(q||{}),[s,t,u,v,w,x]));k(function(){return function(){h.removePlace({portablePlaceID:u})}},[h,u]);a=j(c("BaseContextualLayerAnchorRootContext"));var A=l(null);return i.jsxs(c("BaseContextualLayerAnchorRootContext").Provider,{value:p&&!c("killswitch")("WORKPLACE_VIDEO_FULLSCREEN_CONTEXT_LAYER_ROOT")?A:a,children:[i.jsx(d("CoreVideoPlayerFitParentContainer.react").CoreVideoPlayerFitParentDOMContainer,{debugRole:null,domElement:y},u),i.jsx(d("GlobalVideoPortsRenderers.react").GlobalVideoPortsVideoComponentsRenderer,{currentPlaceID:n!=null?(a=(a=h.getCurrentPlaceStateForVideo(n,f))==null?void 0:a.portablePlaceID)!=null?a:null:e,currentVideoID:f,injectCoreVideoStatesRef:z,previousPlaceMetaData:n!=null?(e=(a=h.getPortableVideoState(n,f))==null?void 0:a.previousPlaceMetaData)!=null?e:null:r,renderComponents:s,thisPlaceID:u}),i.jsx("div",{ref:A})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("VideoPlayerPortalingPlace.react",["BaseViewportMarginsContext","CometTrackingCodeContext","CometTrackingNodesContext","CoreVideoPlayer.react","CoreVideoPlayerFitParentContainer.react","GlobalVideoPortsID","GlobalVideoPortsRenderers.react","VideoPlayerFullscreenController","VideoPlayerPortalingPlaceInfoProvider.react","VideoPlayerPortalingPlaceState","VideoPlayerPortalingPlaceWithPortaling.react","react","recoverableViolation","useStable","useUnsafeRef_DEPRECATED"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));b=i;var k=b.useContext,l=b.useEffect,m=b.useState,n=b.c,o={bottom:0,left:0,right:0,top:0},p=j.forwardRef(function(a,b){var c=a.children,e=a.debugRole;a=a.testid;return j.jsx(d("CoreVideoPlayerFitParentContainer.react").CoreVideoPlayerFitParentContainer,{debugRole:e,ref:b,testid:void 0,children:c})});function a(a){var b=n(77),e,f,g,i,r,s,t;b[0]!==a?(i=a.implementations,f=a.portalingEnabled,e=a.portalingFromVideoID,s=a.portalingPlaceMetaData,r=a.renderComponents,t=a.renderPlaceholder,g=babelHelpers.objectWithoutPropertiesLoose(a,["implementations","portalingEnabled","portalingFromVideoID","portalingPlaceMetaData","renderComponents","renderPlaceholder"]),b[0]=a,b[1]=e,b[2]=f,b[3]=g,b[4]=i,b[5]=r,b[6]=s,b[7]=t):(e=b[1],f=b[2],g=b[3],i=b[4],r=b[5],s=b[6],t=b[7]);b[8]===Symbol["for"]("react.memo_cache_sentinel")?(a=[],b[8]=a):a=b[8];l(q,a);b[9]!==e?(a=e!=null?d("GlobalVideoPortsID").ensureVideoID(e):null,b[9]=e,b[10]=a):a=b[10];a=a;e!=null&&a==null&&c("recoverableViolation")("The provided portalingFromVideoID ("+String(e)+") does not look like such an ID. The video player will not use portaling until a valid ID is provided","comet_video_player");b[11]!==f||b[12]!==a?(e={portalingEnabled:f,portalingFromVideoID:a},b[11]=f,b[12]=a,b[13]=e):e=b[13];f=d("VideoPlayerPortalingPlaceState").useVideoPlayerPortalingPlaceState(e);a=f.canBecomePortableLater;e=f.currentVideoID;var u=f.globalVideoPortsManager,v=f.globalVideoPortsState;f=f.thisPlaceID;var w=k(c("BaseViewportMarginsContext")),x=(h||(h=c("useUnsafeRef_DEPRECATED")))(null),y;b[14]!==x?(y=function(){return d("VideoPlayerFullscreenController").createFullscreenController(x)},b[14]=x,b[15]=y):y=b[15];var z=c("useStable")(y);b[16]!==z?(y=z.getIsFullscreen(),b[16]=z,b[17]=y):y=b[17];y=m(y);var A=y[0],B=y[1],C;b[18]!==z?(y=function(){var a=z.subscribe(function(){var a=z.getIsFullscreen();B(a)});B(z.getIsFullscreen());return function(){a.remove()}},C=[z,B],b[18]=z,b[19]=y,b[20]=C):(y=b[19],C=b[20]);l(y,C);y=k(c("CometTrackingNodesContext"));b[21]!==y?(C=y.join(""),b[21]=y,b[22]=C):C=b[22];y=C;C=k(c("CometTrackingCodeContext"));C=(C=C.encrypted_tracking[0])!=null?C:"";w=A?o:w;var D="comet-video-player-place"+(g.videoFBID!=null?"-vid-"+g.videoFBID:"");if(!a){b[23]!==g||b[24]!==z||b[25]!==i||b[26]!==A||b[27]!==r||b[28]!==C||b[29]!==y||b[30]!==w?(a=j.jsx(c("CoreVideoPlayer.react"),babelHelpers["extends"]({},g,{fullscreenController:z,implementations:i,isFullscreen:A,renderWithCoreVideoStates:r,trackingDataEncrypted:C,trackingNodes:y,viewportMarginsForViewability:w})),b[23]=g,b[24]=z,b[25]=i,b[26]=A,b[27]=r,b[28]=C,b[29]=y,b[30]=w,b[31]=a):a=b[31];var E;b[32]!==f||b[33]!==e||b[34]!==a?(E=j.jsx(d("VideoPlayerPortalingPlaceInfoProvider.react").VideoPlayerPortalingPlaceInfoProvider,{currentPlaceID:f,currentVideoID:e,portalingEnabled:!1,previousPlaceMetaData:null,thisPlaceID:f,children:a}),b[32]=f,b[33]=e,b[34]=a,b[35]=E):E=b[35];b[36]!==x||b[37]!==D||b[38]!==E?(a=j.jsx(p,{debugRole:null,ref:x,testid:void 0,children:E}),b[36]=x,b[37]=D,b[38]=E,b[39]=a):a=b[39];return a}if(u&&v){if(b[40]!==u||b[41]!==v||b[42]!==e){E=(a=(E=u.getCurrentPlaceStateForVideo(v,e))==null?void 0:E.portablePlaceID)!=null?a:null;b[40]=u;b[41]=v;b[42]=e;b[43]=E}else E=b[43];if(b[44]!==u||b[45]!==v||b[46]!==e){a=(a=(a=u.getPortableVideoState(v,e))==null?void 0:a.previousPlaceMetaData)!=null?a:null;b[44]=u;b[45]=v;b[46]=e;b[47]=a}else a=b[47];b[48]!==g||b[49]!==E||b[50]!==e||b[51]!==z||b[52]!==u||b[53]!==i||b[54]!==A||b[55]!==s||b[56]!==a||b[57]!==r||b[58]!==t||b[59]!==f||b[60]!==C||b[61]!==y||b[62]!==w?(v=j.jsx(c("VideoPlayerPortalingPlaceWithPortaling.react"),{coreVideoPlayerMetaData:g,currentPlaceID:E,currentVideoID:e,fullscreenController:z,globalVideoPortsManager:u,globalVideoPortsState_DEPRECATED:null,implementations:i,isFullscreen:A,portablePlaceMetaData:s,previousPlaceMetaData:a,renderComponents:r,renderPlaceholder:t,thisPlaceID:f,trackingDataEncrypted:C,trackingNodes:y,viewportMarginsForViewability:w}),b[48]=g,b[49]=E,b[50]=e,b[51]=z,b[52]=u,b[53]=i,b[54]=A,b[55]=s,b[56]=a,b[57]=r,b[58]=t,b[59]=f,b[60]=C,b[61]=y,b[62]=w,b[63]=v):v=b[63];b[64]!==x||b[65]!==D||b[66]!==v?(E=j.jsx(p,{debugRole:null,ref:x,testid:void 0,children:v}),b[64]=x,b[65]=D,b[66]=v,b[67]=E):E=b[67];return E}else{i=(u=g.videoPixelsAspectRatio)!=null?u:null;b[68]!==e||b[69]!==t||b[70]!==f||b[71]!==i?(A=j.jsx(d("GlobalVideoPortsRenderers.react").GlobalVideoPortsPlaceholderRenderer,{currentPlaceID:null,currentVideoID:e,previousPlaceMetaData:null,renderPlaceholder:t,thisPlaceID:f,videoPixelsAspectRatio:i}),b[68]=e,b[69]=t,b[70]=f,b[71]=i,b[72]=A):A=b[72];b[73]!==x||b[74]!==D||b[75]!==A?(s=j.jsx(p,{debugRole:null,ref:x,testid:void 0,children:A}),b[73]=x,b[74]=D,b[75]=A,b[76]=s):s=b[76];return s}}function q(){return r}function r(){}g["default"]=a}),98);
__d("VideoPlayerTracePolicyContext",["react"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||(h=d("react"));var i=h.useContext;c={initialTracePolicy:null,routeTracePolicy:null};var j=b.createContext(c);function a(){return i(j)}g.VideoPlayerTracePolicyContext=j;g.useVideoPlayerTracePolicy=a}),98);
__d("VideoPlayerTracePolicyProvider.react",["VideoPlayerTracePolicyContext","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useEffect,k=b.useState,l=b.c;function a(a){var b=l(12),c=a.children,e=a.initialTracePolicy,f=a.routeTracePolicy;a=k(e);var g=a[0],h=a[1];a=k(f);var m=a[0],n=a[1],o;b[0]!==g||b[1]!==e||b[2]!==m||b[3]!==f?(a=function(){g!==e&&h(e),m!==f&&n(f)},o=[e,f,g,m],b[0]=g,b[1]=e,b[2]=m,b[3]=f,b[4]=a,b[5]=o):(a=b[4],o=b[5]);j(a,o);b[6]!==g||b[7]!==m?(a={initialTracePolicy:g,routeTracePolicy:m},b[6]=g,b[7]=m,b[8]=a):a=b[8];b[9]!==a||b[10]!==c?(o=i.jsx(d("VideoPlayerTracePolicyContext").VideoPlayerTracePolicyContext.Provider,{value:a,children:c}),b[9]=a,b[10]=c,b[11]=o):o=b[11];return o}g["default"]=a}),98);
__d("CoreVideoPlayerWithComponents.react",["VideoPlayerComponentContainer.react","VideoPlayerPortalingPlace.react","VideoPlayerTracePolicyProvider.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;b.useCallback;var j=b.c;function a(a){var b=j(22),d,e,f,g,h,k,l;b[0]!==a?(d=a.children,f=a.implementations,g=a.portalingEnabled,h=a.portalingFromVideoID,k=a.portalingPlaceMetaData,l=a.portalingRenderPlaceholder,e=babelHelpers.objectWithoutPropertiesLoose(a,["children","implementations","portalingEnabled","portalingFromVideoID","portalingPlaceMetaData","portalingRenderPlaceholder"]),b[0]=a,b[1]=d,b[2]=e,b[3]=f,b[4]=g,b[5]=h,b[6]=k,b[7]=l):(d=b[1],e=b[2],f=b[3],g=b[4],h=b[5],k=b[6],l=b[7]);b[8]!==d?(a=function(a){return i.jsx(c("VideoPlayerComponentContainer.react"),babelHelpers["extends"]({},a,{children:d}))},b[8]=d,b[9]=a):a=b[9];a=a;var m;b[10]!==e||b[11]!==f||b[12]!==g||b[13]!==h||b[14]!==k||b[15]!==a||b[16]!==l?(m=i.jsx(c("VideoPlayerPortalingPlace.react"),babelHelpers["extends"]({},e,{implementations:f,portalingEnabled:g,portalingFromVideoID:h,portalingPlaceMetaData:k,renderComponents:a,renderPlaceholder:l})),b[10]=e,b[11]=f,b[12]=g,b[13]=h,b[14]=k,b[15]=a,b[16]=l,b[17]=m):m=b[17];b[18]!==e.initialTracePolicy||b[19]!==e.routeTracePolicy||b[20]!==m?(f=i.jsx(c("VideoPlayerTracePolicyProvider.react"),{initialTracePolicy:e.initialTracePolicy,routeTracePolicy:e.routeTracePolicy,children:m}),b[18]=e.initialTracePolicy,b[19]=e.routeTracePolicy,b[20]=m,b[21]=f):f=b[21];return f}g["default"]=a}),98);
__d("GraphQLVideoAutoplayGatingResult",[],(function(a,b,c,d,e,f){"use strict";function a(a,b,c){a=a!=null?a:"unknown";b=b?b:null;return{autoplayGatingResult:a,autoplaySetting:b,canAutoplay:c!=null?c:!1}}f.makeGraphQLVideoAutoplayGatingResult=a}),66);
__d("LiveTraceWwwVideoPlayerFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("1743810");b=d("FalcoLoggerInternal").create("live_trace_www_video_player",a);e=b;g["default"]=e}),98);
__d("MediaPlaybackCompoundFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("2074");b=d("FalcoLoggerInternal").create("media_playback_compound",a);e=b;g["default"]=e}),98);
__d("MediaPlaybackCompoundEventLogger",["MediaPlaybackCompoundFalcoEvent"],(function(a,b,c,d,e,f,g){"use strict";a={logComet:function(a){c("MediaPlaybackCompoundFalcoEvent").log(function(){return a})},logCometImmediately:function(a){c("MediaPlaybackCompoundFalcoEvent").logImmediately(function(){return a})}};b=a;g["default"]=b}),98);
__d("MediaPlaybackCompoundEventStateMachineLogger",["NetworkStatus","emptyFunction","gkx"],(function(a,b,c,d,e,f,g){"use strict";var h=6e4,i=.5,j=1e3,k=Object.freeze(["paused","completed","cancelled","error","heartbeat"]);d=b=c("emptyFunction");e=b;f=b;d=b;function l(){return{canLogPausedOrFinishedPlaying:!1,canLogPlayingEvent:!0,errorRecoveryAttemptState:{eventsLogged:0},hasPendingRequestedPlaying:!1,isLoggingBufferingSequence:!1,isLoggingScrubbingSequence:!1,lastLoggedError:null,lastLoggedTagMetadata:{},nextHeartbeatTime:null,shouldIgnoreDomPause:!1,shouldIgnoreDomPlay:!1,shouldLogRequestedPlayingForScrub:!1}}function a(a){var b={},d=a.initialLoggingMetaData;d;var e=[],f=l(),g=[],m={};function n(b){var c,f=b.events;b=b.state;var g=babelHelpers["extends"]({},d.coreVideoPlayerMetaData.additionalSNAPLLogData,m);g=(c=(c=a.metadataProvider)==null?void 0:c.getRequiredMetadata({logDataAdditions:g,loggingMetaData:d,state:b}))!=null?c:{current_watching_module:"",media_id:"",tracking_type:""};b={events:f,required_metadata:g};e.push(b)}function o(a){var c=a.event;a=a.state;g.push(c);if(k.includes(c.event_name)){c=[].concat(g);g=[];n({events:c,state:a})}return b}function p(a){var b=a.snaplOverrides;a=a.state;var c="0";(b==null?void 0:b.video_time_position)!=null?c=Math.round(b.video_time_position*1e3).toString():a.uncontrolledState.videoElementPlayheadPosition!=null&&(c=Math.round(a.uncontrolledState.videoElementPlayheadPosition*1e3).toString());return c}function q(a){d;if(a.type==="notify_logging_metadata_change"){a=a.payload.loggingMetaData;d=a}}function r(a,c,d){if(a.controlledState.playbackState!==c.controlledState.playbackState&&c.controlledState.playbackState==="ended"&&f.canLogPausedOrFinishedPlaying){d={client_time_ms:Date.now().toString(),event_name:"completed",media_time_ms:p({state:c})};o({event:d,state:c});f.canLogPausedOrFinishedPlaying=!1;return b}else return b}function s(a,c){c={client_time_ms:Date.now().toString(),event_name:"requested_playing",media_time_ms:p({snaplOverrides:c,state:a}),player_instance_key:d.instanceKey};o({event:c,state:a});f.hasPendingRequestedPlaying=!0;f.canLogPausedOrFinishedPlaying=!0;return b}function t(a){if(!f.canLogPausedOrFinishedPlaying)return b;else if(f.hasPendingRequestedPlaying){u(a);f.canLogPausedOrFinishedPlaying=!1;f.hasPendingRequestedPlaying=!1;return b}else{var c={client_time_ms:Date.now().toString(),event_name:"paused",media_time_ms:p({state:a})};o({event:c,state:a});f.canLogPausedOrFinishedPlaying=!1;f.hasPendingRequestedPlaying=!1;return b}}function u(a){var c={client_time_ms:Date.now().toString(),event_name:"cancelled",media_time_ms:p({state:a})};o({event:c,state:a});return b}function v(a,c,d){if(d.type==="dom_event_play_promise_rejected"&&f.hasPendingRequestedPlaying){a=d.payload.playPromiseRejectionReason;if(a!=null&&a.name==="NotAllowedError"){u(c);return b}else return b}else return b}function w(a,c,d){if((d.type==="controller_play_requested"||d.type==="dom_event_play"&&!f.shouldIgnoreDomPlay)&&a.controlledState.playbackState!==c.controlledState.playbackState){s(c);return b}else return b}function x(a){var c={client_time_ms:Date.now().toString(),event_name:"requested_seek",media_time_ms:p({state:a}),player_instance_key:d.instanceKey};o({event:c,state:a});return b}function y(a,c,d){var e=c.controlledState.playbackState,g=a.controlledState.playbackState;if(d.type==="controller_scrub_begin_requested"&&!a.controlledState.scrubbing&&e!=="paused"&&e!=="ended"){t(c);x(c);f.isLoggingScrubbingSequence=!0;return b}else if(!a.controlledState.seeking&&c.controlledState.seeking&&!f.isLoggingScrubbingSequence&&e!=="paused"&&e!=="ended"&&!f.hasPendingRequestedPlaying){t(c);x(c);f.shouldLogRequestedPlayingForScrub=!0;return b}else if(d.type==="controller_scrub_end_requested"&&a.controlledState.scrubbing&&e!=="paused"&&e!=="ended"){s(c,{video_time_position:d.payload.seekTargetPosition});return b}else if(a.controlledState.seeking&&!c.controlledState.seeking){d=c.uncontrolledState.videoElementPlayheadPosition;a=a.controlledState.implementationSeekSourcePosition;a!=null&&d!=null&&Math.abs(a-d)>i&&(f.shouldLogRequestedPlayingForScrub&&e!=="paused"&&e!=="ended"&&s(c),f.isLoggingScrubbingSequence=!1,f.shouldLogRequestedPlayingForScrub=!1,g!=="paused"&&g!=="ended"&&(f.canLogPlayingEvent=!0));return b}else return b}function z(a,c,e){if(a.controlledState.playbackState==="stalling"&&c.controlledState.playbackState==="playing"&&f.canLogPlayingEvent){e={client_time_ms:Date.now().toString(),event_name:"started_playing",media_time_ms:p({state:c}),player_instance_key:d.instanceKey};o({event:e,state:c});f.canLogPlayingEvent=!1;f.hasPendingRequestedPlaying=!1;return b}else return b}function A(a,c,d){if((d.type==="controller_pause_requested"||d.type==="dom_event_pause"&&!f.shouldIgnoreDomPause)&&a.controlledState.playbackState!==c.controlledState.playbackState){t(c);return b}else return b}function B(a,d,e){a=d.controlledState.playbackState;if(a!=="paused"&&a!=="ended"){c("gkx")("24379")&&e.type==="implementation_video_node_unmounted"?t(d):(e.type==="implementation_unmounted"||e.type==="implementation_engine_destroy_requested")&&t(d);return b}else return b}function C(c,d,e){c=d.controlledState.error;if(c!=null&&c!==f.lastLoggedError&&c.errorCode!=="410"){e=babelHelpers["extends"]({},(e=a.metadataProvider)==null?void 0:e.getErrorMetadata({videoPlayerError:c}),{name:"failed_playing"});e={client_time_ms:Date.now().toString(),error_metadata:e,event_name:"error",media_time_ms:p({state:d})};o({event:e,state:d});f.lastLoggedError=c}return b}function D(d,e,g){if(g.type==="error_recovery_attempt"&&f.errorRecoveryAttemptState.eventsLogged<j){d=g.payload.recoverableError;if(d!=null&&d.errorName==="OZ_NETWORK"&&!c("NetworkStatus").isOnline())return b;g=babelHelpers["extends"]({},(g=a.metadataProvider)==null?void 0:g.getErrorMetadata({videoPlayerError:d}),{name:"error_recovery_attempt"});d={client_time_ms:Date.now().toString(),error_metadata:g,event_name:"error",media_time_ms:p({state:e})};o({event:d,state:e});f.errorRecoveryAttemptState.eventsLogged++}return b}function E(a,c,d){d=a.controlledState.playbackState;a=c.controlledState.playbackState;if(f.hasPendingRequestedPlaying||f.shouldLogRequestedPlayingForScrub||f.isLoggingBufferingSequence)return b;if(d!=="stalling"&&a==="stalling"){d={client_time_ms:Date.now().toString(),event_name:"started_buffering",media_time_ms:p({state:c})};o({event:d,state:c});f.isLoggingBufferingSequence=!0;f.shouldIgnoreDomPause=!0;f.shouldIgnoreDomPlay=!0}return b}function F(a,c,d){a=a.controlledState.playbackState;var e=c.controlledState.playbackState;if(!f.isLoggingBufferingSequence)return b;if((d.type==="dom_event_playing"||d.type==="buffering_end_requested")&&a==="stalling"&&e!=="stalling"){d={client_time_ms:Date.now().toString(),event_name:"stopped_buffering",media_time_ms:p({state:c})};o({event:d,state:c});f.isLoggingBufferingSequence=!1;f.shouldIgnoreDomPause=!1;f.shouldIgnoreDomPlay=!1}return b}function G(a,c,d){a=c.controlledState.playbackState;a==="paused"||a==="ended"?f.nextHeartbeatTime=null:a!=="stalling"&&f.nextHeartbeatTime==null&&(f.nextHeartbeatTime=Date.now()+h);d=f.nextHeartbeatTime;if(d!=null){var e=Date.now();if(e>=d){if(a!=="stalling"){d={client_time_ms:Date.now().toString(),event_name:"heartbeat",media_time_ms:p({state:c})};o({event:d,state:c})}f.nextHeartbeatTime=e+h}}return b}function H(c,e,g){c=babelHelpers["extends"]({},d.coreVideoPlayerMetaData.additionalSNAPLLogData,m);var h=f.lastLoggedTagMetadata,i=(g=a.metadataProvider)==null?void 0:g.getTagMetadata({logDataAdditions:c,loggingMetaData:d,state:e});if(i&&JSON.stringify(i)!==JSON.stringify(h)){var j={};Object.keys(i).forEach(function(a){if(i[a]!==h[a]){var b;j=babelHelpers["extends"]({},j,(b={},b[a]=i[a],b))}});g={client_time_ms:Date.now().toString(),event_name:"tags_changed",media_time_ms:p({state:e}),tag_metadata:j};o({event:g,state:e});f.lastLoggedTagMetadata=babelHelpers["extends"]({},h,i)}return b}return{consumeLoggerEvents:function(){return e.length>0?e.splice(0):[]},handleStateMachine:function(a,b,c){q(c);var d=b.controlledState.playbackState,e=[H,v,w,y,E,F,z,r,A,B,C,D,G];e.forEach(function(d){d(a,b,c)});(d==="paused"||d==="ended")&&(f.canLogPlayingEvent=!0);c.type==="controller_pause_requested"&&(f.shouldIgnoreDomPause=!0);c.type==="controller_play_requested"&&(f.shouldIgnoreDomPlay=!0);c.type==="dom_event_pause"&&(f.shouldIgnoreDomPause=!1);c.type==="dom_event_play"&&(f.shouldIgnoreDomPlay=!1)},setSNAPLAdditionalLogData:function(a){Object.assign(m,a)}}}g.HEARTBEAT_INTERVAL=h;g.createMediaPlaybackCompoundEventStateMachineLogger=a}),98);
__d("MediaPlaybackLogFlusher",["MediaPlaybackCompoundEventLogger","emptyFunction","gkx"],(function(a,b,c,d,e,f,g){"use strict";a=c("emptyFunction");b=function(){function a(a){this.$1=a}var b=a.prototype;b.flushLogs=function(){var a=this.$1.consumeLoggerEvents();a.forEach(function(a){a.required_metadata.tracking_type==="paid"?c("MediaPlaybackCompoundEventLogger").logCometImmediately(a):c("MediaPlaybackCompoundEventLogger").logComet(a)})};b.discardLogsWithoutFlushing=function(){var a=this.$1.consumeLoggerEvents()};return a}();g["default"]=b}),98);
__d("Mp4DASHEventMessageBox",[],(function(a,b,c,d,e,f){a=function(){function a(a,b){this.$1=b,this.$2=null,b.getVersion()==0?this.$2={version:0,schemeIdUri:a.readZeroTerminatedString(this.$4(a,b)),value:a.readZeroTerminatedString(this.$4(a,b)),timescale:a.readUint32(),presentationTimeDelta:a.readUint32(),eventDuration:a.readUint32(),id:a.readUint32()}:b.getVersion()==1&&(this.$2={version:1,timescale:a.readUint32(),presentationTime:a.readUint64(),eventDuration:a.readUint32(),id:a.readUint32(),schemeIdUri:a.readZeroTerminatedString(this.$4(a,b)),value:a.readZeroTerminatedString(this.$4(a,b))}),this.$3=new DataView(a.getDataView().buffer,a.getCursor())}var b=a.prototype;b.getFullBox=function(){return this.$1};b.getEmsgFields=function(){return this.$2};b.getMessageData=function(){return this.$3};b.getStartTime=function(){var a=this.$2;if(a==null)return null;switch(a.version){case 0:return null;case 1:return this.$5(a)}};b.getDuration=function(){var a=this.$2;if(a==null)return null;var b=a.eventDuration;a=a.timescale;return a!==0?b/a:b};b.$5=function(a){var b=a.timescale;a=a.presentationTime;return b!==0?a/b:a};b.$4=function(a,b){return b.getBox().getSize()-(a.getCursor()-b.getBox().getStart())};return a}();a.canonicalType="emsg";f["default"]=a}),66);
__d("XVideoUnifiedCVCControllerRouteBuilder",["jsRouteBuilder"],(function(a,b,c,d,e,f,g){a=c("jsRouteBuilder")("/video/unified_cvc/",Object.freeze({}),void 0);b=a;g["default"]=b}),98);
__d("UnifiedVideoCVCSubscription",["CVCv3DisabledPlayerOrigins","CVCv3DisabledPlayerSubOrigins","CVCv3SubscriptionHelper","DateConsts","XVideoUnifiedCVCControllerRouteBuilder","clearTimeout","cometAsyncFetch","promiseDone","setTimeout"],(function(a,b,c,d,e,f,g){"use strict";var h=Object.values(c("CVCv3DisabledPlayerOrigins")),i=Object.values(c("CVCv3DisabledPlayerSubOrigins")),j=10;a=function(){function a(a,b,d,e,f,g){var j=this;this.$1=new(c("CVCv3SubscriptionHelper"))(a,b,d);this.$5=f;this.$6=null;this.$9=null;this.$10=!this.$1.isValidSubscription();this.$3=null;this.$2=null;a=b!=null?h.includes(b):!1;f=d!=null?i.includes(d):!1;!a&&!f&&(this.$3=e,this.$11=g,this.$4=e.subscribe(function(){if(j.$3==null){j.$1.logDebugInfo("empty_video_controller");return}var a=j.$3.getCurrentState();a.playing?j.$12(a):j.$13()}))}var b=a.prototype;b.$12=function(a){if(this.$3==null){this.$1.logDebugInfo("empty_video_controller");return}if(a.playing){if(this.$2==null){a=this.$3.getPlayheadPosition();a>=0&&(this.$2=a)}}else this.$2=null;this.$14(0)};b.stopUnifiedCVC=function(){this.$13()};b.destroy=function(){this.$13(),this.$4!=null&&this.$4.remove(),this.$4=null,this.$3=null};b.$13=function(){c("clearTimeout")(this.$8),c("clearTimeout")(this.$7),this.$8=null,this.$7=null,this.$2=null,this.$1.clearAnyPreviousContext(),this.$9=null};b.$15=function(){c("clearTimeout")(this.$7),this.$7=null};b.$16=function(){this.$9=null,this.$15(),this.$14(0)};b.$14=function(a){var b=this;if(this.$3==null||this.$8!=null||this.$9!=null||this.$10)return;this.$8=c("setTimeout")(function(){b.$8=null;var a=b.$17();if(a==null){b.$1.logDebugInfo("empty_request");return}b.$9=a;var e=Date.now(),f=!1;c("promiseDone")(a,function(c){if(a!==b.$9)return;b.$9=null;if(c!=null){c=b.$1.processUnifiedResponse(c);b.$18(c,e)}else b.$1.logHttpResponseBad("null payload",Date.now()-e)},function(a){f=!0,b.$1.logHttpRequestFailure(a!=null?JSON.stringify(a):null,Date.now()-e)});b.$7=c("setTimeout")(function(){f||b.$1.logHttpRequestTimeout(Date.now()-e),b.$16()},j*d("DateConsts").MS_PER_SEC)},a)};b.$18=function(a,b){this.$15();b=Date.now()-b;a.d!=null?(this.$1.logHttpRequestSuccess(b),this.$11!=null&&this.$11(a.d)):this.$1.logHttpResponseBad("no data field",b);if(a.a!=null){b=a.a.t;switch(b){case"p":b=a.a.pi;b==null&&(b=j);this.$14(b*d("DateConsts").MS_PER_SEC);break;case"s":this.$10=!0;break}}};b.$17=function(){var a=this.$19();if(a==null)return null;a={d:JSON.stringify(a)};return c("cometAsyncFetch")(c("XVideoUnifiedCVCControllerRouteBuilder").buildURL({}),{data:a,method:"POST"})};b.$19=function(){if(this.$3==null)return null;var a={};this.$6!=null&&(a.lc=this.$6);this.$5&&(a.ls=!0);var b=0,c=0;this.$2!=null&&(b=this.$2,c=this.$3.getPlayheadPosition());var d=this.$3.getCurrentState();b=this.$1.makeUnifiedVideoCVCUpdate(b,c,this.$20(d),d.muted,a);return b};b.$20=function(a){if(a.playing||a.seeking)return"playing";else if(a.ended)return"ended";else if(a.paused)return"paused";else return"unknown"};b.testing_setLastStartPosition=function(a){this.$2=a};b.testing_makeUnifiedStateUpdate=function(){return this.$19()};b.testing_handleUnifiedResponse=function(a){return this.$18(a,Date.now())};return a}();g["default"]=a}),98);
__d("VideoLiveTrace",["DataViewReader","LiveTraceWwwVideoPlayerFalcoEvent","Mp4DASHEventMessageBox","Mp4Demuxer","throttle"],(function(a,b,c,d,e,f,g){var h="x-fb-video-livetrace-ids",i="x-fb-video-livetrace-parentsource",j="x-fb-video-livetrace-streamtype",k="x-fb-origin-hit",l="x-fb-edge-hit",m="PLY:WWW:",n=m+"DL:",o=m+"DIS:",p=1e3,q=/[\r\n]+/;a=function(){function a(a,b,d){var e=this;this.$6=[];this.$1=a;this.$2=null;a=d+":"+b.substring(0,5);this.$3=m+a;this.$4=n+a;this.$5=o+a;this.$7=c("throttle")(function(a){return e.$8(a)},p)}var b=a.prototype;b.setStreamType=function(a){this.$2=a};b.$9=function(a,b,d,e,f,g){var h,i=this,j=Date.now(),k=(h=this.$2)!=null?h:0;c("LiveTraceWwwVideoPlayerFalcoEvent").log(function(){return{stream_id:i.$1,stream_type:k,event_name:b,event_severity:f,event_creation_time:j,source:a,trace_id:d,parent_source:e,metadata:g}})};b.onUpdateStatus=function(a){this.$7(a)};b.$8=function(a){a=a.position*1e3;for(var b=this.$6.length-1;b>=0;b--){var c=this.$6[b];if(c.presentationTimestamp>a)continue;if(c.displayTimestamp==null)c.displayTimestamp=Date.now();else continue;this.$9(this.$5,"FRAME",c.traceId,this.$4,"SUCCESS",null)}};b.getAndFlushTracedFrames=function(){var a,b={currentTimeMs:Date.now(),streamId:this.$1},c={dl:[],dis:[]},d=[];this.$6.forEach(function(a){a.hasBeenFlushedAsDownloaded||(c.dl.push({id:a.traceId,timeMs:a.downloadTimestamp}),a.hasBeenFlushedAsDownloaded=!0),a.displayTimestamp!=null?c.dis.push({id:a.traceId,timeMs:a.displayTimestamp}):d.push(a)});this.$6=d;b[(a=this.$2)!=null?a:0]=c;return c.dl.length>0||c.dis.length>0?b:null};b.handleHeadersString=function(a,b){a=a.trim().split(q);this.$10(a.map(function(a){a=a.split(": ");return[a.shift().toLowerCase(),a.shift()]}),b)};b.handleHeaders=function(a,b){this.$10(this.$11(a),b)};b.handleHeadersAndBody=function(a,b,c){this.$12(this.$11(a),b,c)};b.$11=function(a){var b=[];for(var a=a.entries(),c=Array.isArray(a),d=0,a=c?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var e;if(c){if(d>=a.length)break;e=a[d++]}else{d=a.next();if(d.done)break;e=d.value}e=e;b.push(e)}return b};b.$13=function(a){var b=Date.now(),d=new Map(),e=a.reduce(function(a,b){return a+b.byteLength},0),f=new Uint8Array(e),g=0;a.forEach(function(a){f.set(a,g),g+=a.byteLength});e=new(c("Mp4Demuxer"))(new DataView(f.buffer,f.byteOffset,f.byteLength));while(!e.atEnd()){a=e.parseBox();if(a.getType()===c("Mp4DASHEventMessageBox").canonicalType){var h=e.parseCanonicalBox(c("Mp4DASHEventMessageBox"),e.parseFullBox(a));if(h instanceof c("Mp4DASHEventMessageBox")){var i;i=(i=h.getEmsgFields())==null?void 0:i.schemeIdUri;if(i==null?void 0:i.startsWith("livedash:trace:")){i=h.getMessageData();h=new(c("DataViewReader"))(i).readZeroTerminatedString(i.byteLength);try{i=JSON.parse(h);Array.isArray(i)&&i.filter(function(a){return Array.isArray(a)&&a.length===2}).forEach(function(a){var c=a[0];a=a[1];d.set(c,{displayTimestamp:null,downloadTimestamp:b,hasBeenFlushedAsDownloaded:!1,presentationTimestamp:a,traceId:c})})}catch(a){}}}}e.skipBox(a)}return d};b.$14=function(a,b){var c=this,d="null",e=Date.now(),f=new Map(),g="";a.forEach(function(a){var b=a[0].toLowerCase();a=a[1];if(b===h&&a){var m=a.split(",");m.forEach(function(a){a=a.split(":");var b=+a[0];a=+a[1];f.set(b,{displayTimestamp:null,downloadTimestamp:e,hasBeenFlushedAsDownloaded:!1,presentationTimestamp:a,traceId:b})})}b===i&&(g=a);c.$2===null&&b===j&&(c.$2=parseInt(a,10));(b===k||b===l)&&parseInt(a,10)&&(d=b===k?"origin":"edge")});a=b||{};a.hit=d;return g!==""?{tracedFrames:f,eventMetaData:a,parentSource:g,streamType:this.$2}:null};b.$12=function(a,b,c){var d=this.$14(a,c);if(d==null||d.parentSource==="")return;if(b==null?void 0:b.length){a=this.$13(b);a.forEach(function(a,b){d.tracedFrames.set(b,a)})}this.$6=this.$6.concat(Array.from(d.tracedFrames.values()));c=d.tracedFrames.keys();for(b=c,a=Array.isArray(b),c=0,b=a?b:b[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var e;if(a){if(c>=b.length)break;e=b[c++]}else{c=b.next();if(c.done)break;e=c.value}e=e;this.$9(this.$4,"SEGMENT",e,d.parentSource,"SUCCESS",d.eventMetaData)}};b.$10=function(a,b){this.$12(a,null,b)};b.handleXHR=function(a,b){this.handleHeadersString(a.getAllResponseHeaders(),b)};b.getLiveTraceContext=function(){return this.$2!=null?{streamId:this.$1,streamType:this.$2,sourceId:this.$3}:null};return a}();g["default"]=a}),98);
__d("VideoMimeTypes",[],(function(a,b,c,d,e,f){function a(a,b,c){return a+'; codecs="'+b+", "+c+'"'}e="mp4a.40.2";function b(a){return"avc1.42E0"+a.toString(16).toUpperCase()}function c(a){return"avc1.4D40"+a.toString(16).toUpperCase()}function d(a){return"avc1.6400"+a.toString(16).toUpperCase()}var g="video/mp4";b=a(g,b(30),e);var h=a(g,c(30),e);c=a(g,c(31),e);var i=a(g,d(50),e);a=a(g,d(51),e);g={h264baseline:b,h264main30avc:h,h264main31avc:c,h264high50avc:i,h264high51avc:a};f["default"]=g}),66);
__d("VideoPlayerWwwFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("1914651");b=d("FalcoLoggerInternal").create("video_player_www",a);e=b;g["default"]=e}),98);
__d("VideoPlayerWwwLogger",["VideoPlayerWwwFalcoEvent"],(function(a,b,c,d,e,f,g){"use strict";function h(a){var b,c=a.logData.live_trace_stream_id!==null&&a.logData.live_trace_stream_type!==null;return{access_token:a.logData.access_token,ad_client_token:a.logData.ad_client_token,attribution_id:a.logData.attribution_id,attribution_id_v2:a.logData.attribution_id_v2,attribution_id_v2_root:a.logData.attribution_id_v2_root,audio_only:a.logData.audio_only,audio_representation_id:a.logData.audio_representation_id,autoplay_eligible:a.logData.autoplay_eligible,autoplay_failure_reasons:a.logData.autoplay_failure_reasons,autoplay_setting:a.logData.autoplay_setting,available_qualities:a.logData.available_qualities,broadcaster_origin:a.logData.broadcaster_origin,browser_tab_id:a.logData.browser_tab_id,caption_state:a.logData.caption_state,cast_client_app_id:a.logData.cast_client_app_id,client_latency_setting:a.logData.client_latency_setting,current_playback_speed:a.logData.current_playback_speed,current_viewability_percentage:Number(a.logData.current_viewability_percentage),current_volume:a.logData.current_volume,dash_perf_logging_enabled:a.logData.dash_perf_logging_enabled,data_connection_quality:a.logData.data_connection_quality,debug_reason:a.logData.debug_reason,device_id:a.logData.device_id,device_type:a.logData.device_type,downstream_share_origin_uri:a.logData.downstream_share_origin_uri,downstream_share_start_time:a.logData.downstream_share_start_time,downstream_share_visit_uuid:a.logData.downstream_share_visit_uuid,dropped_frame_count:Number(a.logData.dropped_frame_count),error:a.logData.error,error_code:a.logData.error_code,error_description:a.logData.error_description,error_domain:a.logData.error_domain,error_type:a.logData.error_type,error_user_info:a.logData.error_user_info,event_name:a.eventType,event_seq_num:a.logData.event_seq_num,external_log_id:a.logData.external_log_id,external_log_type:a.logData.external_log_id,fb_manifest_identifier:a.logData.fb_manifest_identifier,feed_aggregation_type:a.logData.feed_aggregation_type,feed_position:a.logData.feed_position,frame_events:a.logData.frame_events,ft:a.logData.ft,imf_emsg_id:a.logData.imf_emsg_id,imf_event_type:a.logData.imf_event_type,imf_topic:a.logData.imf_topic,interrupt_count:a.logData.interrupt_count!==null?Number(a.logData.interrupt_count):null,interrupt_time:Number(a.logData.interrupt_time),is_abr_enabled:a.logData.is_abr_enabled,is_fbms:a.logData.is_fbms,is_live_preview:(b=a.logData.is_live_preview)!=null?b:!1,is_live_video_rewound:a.logData.is_live_video_rewound,is_mixed_codec_manifest:a.logData.is_mixed_codec_manifest,is_p2p_playback:a.logData.is_p2p_playback,is_pip:a.logData.is_pip,is_predictive_playback:a.logData.is_predictive_playback,is_sound_on:a.logData.is_sound_on,is_stalling:a.logData.is_stalling,is_templated_manifest:a.logData.is_templated_manifest,last_viewability_percentage:Number(a.logData.last_viewability_percentage),live_trace_source_id:a.logData.live_trace_source_id,live_trace_stream_id:c?a.logData.live_trace_stream_id:null,live_trace_stream_type:c?a.logData.live_trace_stream_type:null,mpd_validation_errors:a.logData.mpd_validation_errors,network_connected:a.logData.network_connected,next_quality_label:a.logData.next_quality_label,next_representation_id:a.logData.next_representation_id,next_video_codecs:a.logData.next_video_codecs,notification_id:a.logData.notification_id,notification_medium:a.logData.notification_medium,offset_ms:a.logData.offset_ms!=null?String(a.logData.offset_ms):null,permalink_share_id:a.logData.permalink_share_id,playback_caption_format:a.logData.playback_caption_format,playback_caption_locale:a.logData.playback_caption_locale,playback_duration:a.logData.playback_duration,playback_is_broadcast:a.logData.playback_is_broadcast,playback_is_drm:a.logData.playback_is_drm,playback_is_live_streaming:a.logData.playback_is_live_streaming,player_format:a.logData.player_format,player_instance_key:a.logData.player_instance_key,player_mode:a.logData.player_mode,player_origin:a.logData.player_origin,player_state:a.logData.player_state,player_suborigin:a.logData.player_suborigin,player_version:a.logData.player_version,quality_label:a.logData.quality_label,reaction_video_channel_type:a.logData.reaction_video_channel_type,representation_id:a.logData.representation_id,resource_url:a.logData.resource_url,routeTracePolicy:a.routeTracePolicy,seq_num:a.logData.seq_num,source:a.source_VPL_LOGGING_HACK,source_VPL_LOGGING_HACK:a.logData.source_VPL_LOGGING_HACK,srt_job_id:a.logData.srt_job_id,srt_job_tracking_id:a.logData.srt_job_tracking_id,stall_count:Number(a.logData.stall_count),stall_count_200_ms:Number(a.logData.stall_count_200_ms),stall_time:Number(a.logData.stall_time),state:a.logData.state,streaming_format:a.logData.streaming_format,time_ms:a.logData.time_ms,total_frame_count:Number(a.logData.total_frame_count),tracking_data_encrypted:a.logData.tracking_data_encrypted,tracking_nodes:a.logData.tracking_nodes,tv_session_id:a.logData.tv_session_id,v2_heart_beat:a.logData.v2_heart_beat,video_bandwidth:a.logData.video_bandwidth,video_buffer_end_position:a.logData.video_buffer_end_position,video_chaining_depth_level:a.logData.video_chaining_depth_level,video_chaining_parent_video_id:a.logData.video_chaining_parent_video_id,video_chaining_session_id:a.logData.video_chaining_session_id,video_channel_id:a.logData.video_channel_id,video_codecs:a.logData.video_codecs,video_id:a.logData.video_id,video_last_start_time_position:a.logData.video_last_start_time_position,video_play_reason:a.logData.video_play_reason,video_player_height:Number(a.logData.video_player_height),video_player_width:Number(a.logData.video_player_width),video_time_position:a.logData.video_time_position,vpts:a.logData.vpts,web_client_revision:a.logData.web_client_revision}}a={logComet:function(a){c("VideoPlayerWwwFalcoEvent").log(function(){return h(a)})},logCometImmediately:function(a){c("VideoPlayerWwwFalcoEvent").logImmediately(function(){return h(a)})}};b=a;g["default"]=b}),98);
__d("VideoPlayerBanzaiLogFlusher",["VideoPlayerWwwLogger","emptyFunction","gkx"],(function(a,b,c,d,e,f,g){"use strict";a=c("emptyFunction");b=function(){function a(a){this.$1=a}var b=a.prototype;b.flushLogs=function(){var a=this.$1.consumeLoggerEvents();a.forEach(function(a){var b={event:a.eventType,logData:a.logData,routeTracePolicy:a.routeTracePolicy,source:a.source_VPL_LOGGING_HACK};if(a.source_VPL_LOGGING_HACK==="animated_image_share")return;b=(b=a.logData)==null?void 0:b.ad_client_token;b!=null?c("VideoPlayerWwwLogger").logCometImmediately(a):c("VideoPlayerWwwLogger").logComet(a)})};b.discardLogsWithoutFlushing=function(){var a=this.$1.consumeLoggerEvents()};return a}();g["default"]=b}),98);
__d("VideoPlayerCaptionsDisplayConfigContext",["react"],(function(a,b,c,d,e,f,g){"use strict";var h;a=h||d("react");b=a.createContext({liveCaptionsTextAlignment:null,textSizeMapping:null});g["default"]=b}),98);
__d("VideoPlayerCaptionsDisplay.react",["VideoPlayerCaptionsDisplayConfigContext","VideoPlayerControlsBottomRowAddOnContext","VideoPlayerHooks","react","recoverableViolation","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=i||(i=d("react"));b=i;var l=b.useContext,m=b.c,n={captionsCenterAlign:{justifyContent:"xl56j7k",textAlign:"x2b8uid",$$css:!0},captionsContainer:{bottom:"xfqi8uc",boxSizing:"x9f619",display:"x78zum5",justifyContent:"xl56j7k",position:"x10l6tqk",textAlign:"x2b8uid",transitionDuration:"xu6gjpd",transitionProperty:"x11xpdln",transitionTimingFunction:"x1r7x56h",width:"xh8yej3",$$css:!0},captionsLeftAlign:{justifyContent:"x1nhvcw1",textAlign:"x1yc453h",$$css:!0},captionsRightAlign:{justifyContent:"x13a6bvl",textAlign:"xp4054r",$$css:!0}},o={BIG:"25px",BIGGER:"30px",BIGGEST:"34px",DEFAULT:"17px",MEDIUM:"21px",SMALL:"13px",SMALLEST:"8px"},p={DARK:.75,DEFAULT:.45,LIGHT:.25,OPAQUE:1,TRANSPARENT:0},q={BLACK:"20, 22, 26",BLUE:"0, 0, 255",CYAN:"0, 255, 255",GREEN:"0, 255, 0",MAGENTA:"255, 0, 255",RED:"255, 0, 0",WHITE:"255, 255, 255",YELLOW:"255, 255, 0"};function r(a){switch(a){case"center":return n.captionsCenterAlign;case"left":return n.captionsLeftAlign;case"right":return n.captionsRightAlign;default:c("recoverableViolation")("Unsupported captions text alignment: "+a,"comet_video_player")}}function s(a,b,c){var d={},e=a.captionsBackgroundColor,f=a.captionsBackgroundOpacity,g=a.captionsTextColor;a=a.captionsTextSize;if(e!==null){f=f!==null?p[f]:1;d.backgroundColor="rgba("+q[e]+","+f+")"}g!==null&&(d.color="rgba("+q[g]+")");a!==null&&(d.fontSize=b!=null?babelHelpers["extends"]({},o,b)[a]:o[a]);c&&(d.marginBottom=35);return d}function a(a){var b=m(12),e=a.activeCaptions,f=a.adjustments;a=a.captionDisplayStyle;var g=e==null?void 0:e.rows,i=l(c("VideoPlayerCaptionsDisplayConfigContext")),o=i.liveCaptionsTextAlignment;i=i.textSizeMapping;var p=l(d("VideoPlayerControlsBottomRowAddOnContext").VideoPlayerControlsBottomRowAddOnContext);p=(p==null?void 0:p.getBottomRowAddOn())!=null;var q;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(q={},b[0]=q):q=b[0];q=q;if(a){var w;b[1]!==a||b[2]!==i||b[3]!==p?(w=s(a,i,p),b[1]=a,b[2]=i,b[3]=p,b[4]=w):w=b[4];q=w}a=(j||(j=d("VideoPlayerHooks"))).useIsLive();w=(p=e==null?void 0:(i=e.styles)==null?void 0:i.textAlignment)!=null?p:"center";if(g!=null&&g.length>0){if(b[5]!==g||b[6]!==a||b[7]!==o||b[8]!==w||b[9]!==f||b[10]!==q){e=g.map(v).filter(u);p=e.length>0?k.jsx("div",{className:(h||(h=c("stylex")))(n.captionsContainer,r(a?(i=o)!=null?i:w:w)),style:{paddingLeft:f.left,paddingRight:f.right,transform:"translateY("+-f.bottom+"px)"},children:k.jsx("div",{className:"x18l40ae x14ctfv x1lkfr7t xk50ysn x37zpob xdj266r xv81d3b xat24cr x5jn1jc xulzisn x1msn8f2 x1uwfbks x1qobr7z",style:q,children:e.map(t)})}):null;b[5]=g;b[6]=a;b[7]=o;b[8]=w;b[9]=f;b[10]=q;b[11]=p}else p=b[11];return p}return null}function t(a,b){return k.jsxs("span",{children:[a,k.jsx("br",{})]},b)}t.displayName=t.name+" [from "+f.id+"]";function u(a){return!!a}function v(a){return a.trim()}e=k.memo(a);b=e;g["default"]=b}),98);
__d("useVideoPlayerCaptionsDisplayAdjustments",["VideoPlayerHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i;b=h||d("react");b.useMemo;var j=b.c;function a(){var a=j(2),b=(i||(i=d("VideoPlayerHooks"))).useVideoPlayerCaptionsReservations(),c;a[0]!==b?(c={bottom:0,left:0,right:0,top:0},b.length>0&&b.forEach(function(a){c[a.location]=c[a.location]+a.size}),a[0]=b,a[1]=c):c=a[1];b=c;return b}g["default"]=a}),98);
__d("VideoPlayerCaptions.react",["VideoPlayerCaptionsDisplay.react","VideoPlayerHooks","react","useVideoPlayerCaptionsDisplayAdjustments"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(h||(h=d("react"))).c,k=h;function a(){var a=j(4),b=(i||(i=d("VideoPlayerHooks"))).useActiveCaptions(),e=c("useVideoPlayerCaptionsDisplayAdjustments")(),f=i.useCaptionDisplayStyle(),g;a[0]!==b||a[1]!==e||a[2]!==f?(g=k.jsx(c("VideoPlayerCaptionsDisplay.react"),{activeCaptions:b,adjustments:e,captionDisplayStyle:f}),a[0]=b,a[1]=e,a[2]=f,a[3]=g):g=a[3];return g}g["default"]=a}),98);
__d("VideoPlayerCaptionsArea.react",["VideoPlayerCaptions.react","VideoPlayerContexts","VideoPlayerHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=h||(h=d("react"));b=h;var l=b.useReducer,m=b.useState,n=b.c;function o(a,b){switch(b.type){case"reserve":return a.concat(b.reservation);case"release":return a.filter(function(a){return a!==b.reservation});default:return a}}function a(a){var b=n(11);a=a.children;var e;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(e=[],b[0]=e):e=b[0];e=l(o,e);var f=e[0],g=e[1];b[1]===Symbol["for"]("react.memo_cache_sentinel")?(e={release:function(a){g({reservation:a,type:"release"})},reserve:function(a){g({reservation:a,type:"reserve"});return a}},b[1]=e):e=b[1];e=m(e);e=e[0];var h=(i||(i=d("VideoPlayerHooks"))).useCaptionsVisible(),p;b[2]!==h?(p=h?k.jsx(c("VideoPlayerCaptions.react"),{}):null,b[2]=h,b[3]=p):p=b[3];b[4]!==f||b[5]!==p||b[6]!==a?(h=k.jsxs((j||(j=d("VideoPlayerContexts"))).VideoPlayerCaptionsReservationsContext.Provider,{value:f,children:[p,a]}),b[4]=f,b[5]=p,b[6]=a,b[7]=h):h=b[7];b[8]!==e||b[9]!==h?(f=k.jsx((j||(j=d("VideoPlayerContexts"))).VideoPlayerCaptionsReservationActionsContext.Provider,{value:e,children:h}),b[8]=e,b[9]=h,b[10]=f):f=b[10];return f}g["default"]=a}),98);
__d("VideoPlayerCaptionsAreaDeferred.react",["deferredLoadComponent","react","requireDeferredForDisplay"],(function(a,b,c,d,e,f,g){"use strict";var h;h||d("react");a=c("deferredLoadComponent")(c("requireDeferredForDisplay")("VideoPlayerCaptionsArea.react").__setRef("VideoPlayerCaptionsAreaDeferred.react"));g["default"]=a}),98);
__d("VideoPlayerCaptionsController",["JSResourceForInteraction","recoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h=c("JSResourceForInteraction")("VideoPlayerHTML5ApiCea608State").__setRef("VideoPlayerCaptionsController"),i=c("JSResourceForInteraction")("VideoPlayerHTML5ApiWebVttState").__setRef("VideoPlayerCaptionsController");function a(a){var b=a.captionsUrl,d=a.inbandCaptionsExpected,e=a.onCaptionsLoaded,f=null,g=null,j=null,k=null;function l(a){var b=i.load().then(function(c){if(b!==j)return;f=new c({captionsDisplay:null,onCaptionsLoaded:e,onReady:function(b){b.loadFromUrl(a)}})})["catch"](function(a){if(b!==j)return;c("recoverableViolation")("Failed to load the VideoPlayerHTML5ApiWebVttState module: "+a.message,"comet_video_player")});return b}function m(){var a=h.load().then(function(b){if(a!==k)return;g=new b({captionsDisplay:null,onCaptionsLoaded:e,onReady:function(a){a.processQueue()}})})["catch"](function(b){if(a!==k)return;c("recoverableViolation")("Failed to load the VideoPlayerHTML5ApiCea608State module: "+b.message,"comet_video_player")});return a}b!=null?j=l(b):d===!0&&(k=m());return{destroy:function(){f&&(f.destroy(),f=null),g&&(g.destroy(),g=null),j&&(j=null),k&&(k=null)},getCaptionFormat:function(){return f?"webvtt":g?"cea608":null},handleCea608BytesReceived:function(a){g&&g.enqueueBytes(a)},handleTimeUpdate:function(a){if(f){var b;f.source&&f.source.handleTimeUpdate(a);return(b=(b=f)==null?void 0:b.getCurrentScreenRepresentation())!=null?b:null}else if(g){g.source&&g.source.handleTimeUpdate(a);return(a=(b=g)==null?void 0:b.getCurrentScreenRepresentation())!=null?a:null}return null},updateCaptionsUrl:function(a){f&&(f.destroy(),f=null),a!=null&&(j=l(a))},updateInbandCaptionsExpected:function(a){g&&(g.destroy(),g=null),a&&(k=m())}}}g.createCaptionsController=a}),98);
__d("VideoPlayerConnectionQuality",["isSSR"],(function(a,b,c,d,e,f,g){"use strict";var h={POOR:"POOR",MODERATE:"MODERATE",GOOD:"GOOD",EXCELLENT:"EXCELLENT"},i=[{bandwidth:5e5,connectionQuality:h.POOR},{bandwidth:2e6,connectionQuality:h.MODERATE},{bandwidth:1e7,connectionQuality:h.GOOD}],j=100,k=null,l=null;a=function(a){if(c("isSSR"))return"MODERATE";if(k!==null&&l!==null&&k>=Date.now()-j)return l;a=a();var b=null;if(a!=null)for(var d=0;d<i.length;d++)if(a<i[d].bandwidth){b=i[d].connectionQuality;break}b===null&&(b=h.EXCELLENT);k=Date.now();l=b;return b};g.evaluate=a}),98);
__d("VideoPlayerEmsgForStateMachine",["deepEquals"],(function(a,b,c,d,e,f,g){"use strict";function h(a,b){var c;return[a.type,a.emsgScheme,(c=a.emsgId)!=null?c:""].concat(b?[(c=a.emsgStartTimeInSec)!=null?c:"",(b=a.emsgDurationInSec)!=null?b:""]:[]).join(":")}function i(a,b){a.set(h(b,!0),b);return a}function a(a,b){return b.reduce(i,new Map(a))}function b(a,b,d){a=b==null?[]:Array.from(a.values()).filter(function(a){var c=a.emsgStartTimeInSec;a=a.emsgDurationInSec||0;return c!=null&&b>=c&&b<c+a}).sort(function(a,b){return(a.emsgStartTimeInSec||0)-(b.emsgStartTimeInSec||0)});a=Array.from(a.reduce(function(a,b){a.set(h(b,!1),b);return a},new Map()).values());return c("deepEquals")(d,a)?d:a}g.makeEmsgBoxDedupKey=h;g.makeUpdatedAllEmsgBoxes=a;g.makeUpdatedActiveEmsgBoxes=b}),98);
__d("VideoPlayerErrorBoundary.react",["FBLogger","getErrorSafe","oz-player/utils/OzErrorUtils","react"],(function(a,b,c,d,e,f,g){"use strict";var h;a=h||d("react");b=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f<d;f++)e[f]=arguments[f];return(b=c=a.call.apply(a,[this].concat(e))||this,c.state={error:null},c.suppressReactDefaultErrorLoggingIUnderstandThisWillMakeBugsHarderToFindAndFix=!0,b)||babelHelpers.assertThisInitialized(c)}b.getDerivedStateFromError=function(a){return{error:c("getErrorSafe")(a)}};var e=b.prototype;e.componentDidCatch=function(a,b){b=b.componentStack;var e=c("getErrorSafe")(a);e.componentStack=b;b=this.props;var f=b.description,g=b.onError;b=b.project;a=d("oz-player/utils/OzErrorUtils").isOzError(a)?a.getType():a!=null&&typeof a.name==="string"?a.name:e.name;e.name=a;a="VideoPlayerErrorBoundary caught an "+a;f!=null&&(a=a+" ("+f+")");f=["OZ_NETWORK","BUFFERING_TIMEOUT","MEDIA_ERR_DECODE","OZ_NETWORK_REQUEST_STREAM_RETRY_HANDLER_ERROR"];var h=["Network failure:","Network failure.","HTTP error.","Bad URL timestamp","URL signature expired","No license for com.widevine.alpha","OZ_DRM_MANAGER: Endpoint returned error: DEVICE_CERTIFICATE_REVOKED"];f=f.every(function(a){return e.name!==a})&&h.every(function(a){return!e.message.startsWith(a)});h=c("FBLogger")(b==null?"comet_video_player":b).catching(e);["OZ_DRM_MANAGER","OZ_JAVASCRIPT_NATIVE","OZ_INITIALIZATION"].includes(e.name)&&(h=h.addToCategoryKey(e.message));f?h.fatal(a):h.warn(a);g!=null&&g(e)};e.render=function(){var a=this.props,b=a.children;a=a.fallback;var c=this.state.error;return c?typeof a==="function"?a(c):a:b};return b}(a.PureComponent);g["default"]=b}),98);
__d("VideoPlayerFallbackLearnMoreLink.react",["fbt","CometLink.react","TetraText.react","gkx","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=(i||(i=d("react"))).c,k=i;function a(){var a=j(1),b=c("gkx")("20836")?"/help/work/1876956335887765/i-cant-view-or-play-videos-on-workplace":"https://www.facebook.com/help/396404120401278/list";a[0]===Symbol["for"]("react.memo_cache_sentinel")?(b=k.jsx(c("TetraText.react"),{color:"primaryOnMedia",type:"headlineEmphasized3",children:k.jsx(c("CometLink.react"),{href:b,target:"_blank",children:h._("__JHASH__GWeGP0j1NWF__JHASH__")})}),a[0]=b):b=a[0];return b}g["default"]=a}),226);
__d("VideoPlayerFallbackCoverImplWithoutRetry.react",["TetraText.react","VideoPlayerFallbackLearnMoreLink.react","cr:1672302","cr:4149","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(i||(i=d("react"))).c,k=i,l={banner:{alignItems:"x6s0dn4",display:"x78zum5",flexDirection:"xdt5ytf",width:"x3es6ox",$$css:!0},showOverBackground:{zIndex:"x1vjfegm",$$css:!0}};function a(a){var d=j(21),e=a.background,f=a.debugError,g=a.message,i=a.showDebugWithoutError;a=a.showLearnMoreLink;i=i===void 0?!0:i;a=a===void 0?!0:a;var m;d[0]===Symbol["for"]("react.memo_cache_sentinel")?(m="x6s0dn4 xatbrnm x9f619 x78zum5 x5yr21d xl56j7k x6ikm8r x10wlt62 x889kno x1iji9kk x1a8lsjc x1sln4lm x1n2onr6 xh8yej3",d[0]=m):m=d[0];var n=e!=null&&l.showOverBackground,o;d[1]!==n?(o=(h||(h=c("stylex")))([l.banner,n]),d[1]=n,d[2]=o):o=d[2];d[3]===Symbol["for"]("react.memo_cache_sentinel")?(n="x6s0dn4 x78zum5 xdt5ytf x193iq5w",d[3]=n):n=d[3];d[4]!==g?(n=k.jsx("div",{className:n,children:k.jsx(c("TetraText.react"),{align:"center",color:"primaryOnMedia",type:"bodyLink3",children:g})}),d[4]=g,d[5]=n):n=d[5];d[6]!==a?(g=a&&k.jsx("div",{className:"x6s0dn4 x78zum5 xdt5ytf xw7yly9 x193iq5w",children:k.jsx(c("VideoPlayerFallbackLearnMoreLink.react"),{})}),d[6]=a,d[7]=g):g=d[7];d[8]!==f||d[9]!==i?(a=(f!=null||i)&&k.jsxs(k.Fragment,{children:[b("cr:4149")?k.jsx(b("cr:4149"),{error:f}):null,b("cr:1672302")?k.jsx(b("cr:1672302"),{error:f}):null]}),d[8]=f,d[9]=i,d[10]=a):a=d[10];d[11]!==o||d[12]!==n||d[13]!==g||d[14]!==a?(f=k.jsxs("div",{className:o,children:[n,g,a]}),d[11]=o,d[12]=n,d[13]=g,d[14]=a,d[15]=f):f=d[15];d[16]!==e?(i=e!=null&&k.jsx("div",{className:"x1ey2m1c xds687c x10l6tqk x17qophe x13vifvy",children:e}),d[16]=e,d[17]=i):i=d[17];d[18]!==f||d[19]!==i?(o=k.jsxs("div",{className:m,children:[f,i]}),d[18]=f,d[19]=i,d[20]=o):o=d[20];return o}g["default"]=a}),98);
__d("VideoPlayerFallbackCover.react",["fbt","VideoPlayerFallbackCoverImplWithoutRetry.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=(i||(i=d("react"))).c,k=i;function a(a){var b=j(8),d=a.background,e=a.debugError,f=a.message,g=a.showDebugWithoutError;a=a.showLearnMoreLink;if(b[0]!==f){var i;i=(i=f)!=null?i:h._("__JHASH__dzG08k88Xfs__JHASH__");b[0]=f;b[1]=i}else i=b[1];f=i;b[2]!==d||b[3]!==e||b[4]!==f||b[5]!==g||b[6]!==a?(i=k.jsx(c("VideoPlayerFallbackCoverImplWithoutRetry.react"),{background:d,debugError:e,message:f,showDebugWithoutError:g,showLearnMoreLink:a}),b[2]=d,b[3]=e,b[4]=f,b[5]=g,b[6]=a,b[7]=i):i=b[7];return i}g["default"]=a}),226);
__d("VideoPlayerFullscreenControl.react",["fbt","ix","VideoPlayerControlIcon.react","VideoPlayerHooks","fbicon","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=(j||(j=d("react"))).c,m=j;function a(a){var b=l(15),e=a.onPress,f=a.onUserInteraction,g=a.shouldUnmute,j=(k||(k=d("VideoPlayerHooks"))).useController(),n=k.useIsFullscreen(),o=k.useLastMuteReason();b[0]!==n?(a=n?h._("__JHASH__hwf7JoNGQNh__JHASH__"):h._("__JHASH__5hSxdUd3nQi__JHASH__"),b[0]=n,b[1]=a):a=b[1];a=a;var p;b[2]!==e||b[3]!==j||b[4]!==n||b[5]!==g||b[6]!==o||b[7]!==f?(p=function(){e&&e(),j.requestSetIsFullscreen(!n),g===!0&&o!=="user_initiated"&&j.setMuted(!1,"product_initiated"),f&&f({name:"video_fullscreen_button",type:"happened"})},b[2]=e,b[3]=j,b[4]=n,b[5]=g,b[6]=o,b[7]=f,b[8]=p):p=b[8];p=p;var q;b[9]!==n?(q=n?d("fbicon")._(i("517758"),20):d("fbicon")._(i("517763"),20),b[9]=n,b[10]=q):q=b[10];var r;b[11]!==q||b[12]!==a||b[13]!==p?(r=m.jsx(c("VideoPlayerControlIcon.react"),{icon:q,label:a,onPress:p,tooltip:a}),b[11]=q,b[12]=a,b[13]=p,b[14]=r):r=b[14];return r}g["default"]=a}),226);
__d("VideoPlayerIMFMetadataContext",["react","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||(h=d("react"));var i=h.useContext,j={imfExpectedFromEmsg:!1,specInlineJson:null},k=b.createContext(j);k.displayName="VideoPlayerIMFMetadataContext";e=k.Provider;function a(){var a=i(k);if(a===j)throw c("unrecoverableViolation")("useVideoPlayerIMFMetadata is not called from a component nested under VideoPlayerRelay/VideoPlayerX.","comet_video_player");return a}g.VideoPlayerIMFMetadataContextProvider=e;g.useVideoPlayerIMFMetadataFromContext=a}),98);
__d("VideoPlayerImplementationReactVideoElement.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||(h=d("react"))).c,j=h;function a(a){var b=i(12),c=a.alt,d=a.poster,e=a.seoWebCrawlerVideoTracks,f=a.src,g=a.videoElementCallbacks,h=a.videoElementPreloadDisabled,k=a.videoElementRefCallback;a=a.videoPixelsFit;c=(c=c)!=null?c:void 0;var l;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(l="x1lliihq x5yr21d xh8yej3",b[0]=l):l=b[0];h=h===!0?"none":void 0;var m;b[1]!==a?(m=a?{objectFit:a.objectFit}:void 0,b[1]=a,b[2]=m):m=b[2];b[3]!==c||b[4]!==h||b[5]!==g||b[6]!==d||b[7]!==k||b[8]!==f||b[9]!==m||b[10]!==e?(a=j.jsx("video",babelHelpers["extends"]({"aria-label":c,className:l,controls:!1,muted:!0,playsInline:!0,preload:h},g,{poster:d,ref:k,src:f,style:m,children:e})),b[3]=c,b[4]=h,b[5]=g,b[6]=d,b[7]=k,b[8]=f,b[9]=m,b[10]=e,b[11]=a):a=b[11];return a}g["default"]=a}),98);
__d("getErrorMessageFromMediaErrorCode",[],(function(a,b,c,d,e,f){"use strict";function a(a){switch(a){case 1:return"The fetching process for the media resource was aborted by the user agent at the users request.";case 2:return"A network error of some description caused the user agent to stop fetching the media resource, after the resource was established to be usable.";case 3:return"An error of some description occurred while decoding the media resource, after the resource was established to be usable.";case 4:return"The media resource indicated by the src attribute was not suitable."}return null}f["default"]=a}),66);
__d("VideoPlayerImplementationErrors",["VideoPlayerImplementationErrorNormalization","getErrorMessageFromMediaErrorCode","getErrorNameFromMediaErrorCode","getErrorSafe","oz-player/utils/OzErrorUtils"],(function(a,b,c,d,e,f,g){"use strict";function h(a){var b;a=/^([A-Z_]+:)|([A-Z_]+\s+\(0x[0-9A-Fa-f]+\))/.exec(a);a=((b=(b=a==null?void 0:a[1])!=null?b:a==null?void 0:a[2])!=null?b:"").replace(/\s+/,"_").replace(/[^A-Za-z0-9_]/g,"");return a!==""?a:null}function a(a){var b=a.errorLocation,d=a.hostCallError,e=a.videoElementError,f=a.videoElementNetworkState;a=a.videoElementReadyState;var g=e==null?void 0:e.code,h=d!=null&&typeof d.message==="string"?d.message:null;h==null&&(h=e==null?void 0:e.message);h==null&&g!=null&&(h=c("getErrorMessageFromMediaErrorCode")(g));e=c("getErrorNameFromMediaErrorCode")(g);return{createdTimestamp:Date.now(),errorLocation:b,errorMessageFormat:((b=h)!=null?b:"Empty error")+("; code: "+((h=g)!=null?h:"undefined"))+("; readyState: "+a)+("; networkState: "+f),errorMessageParams:[],errorName:e,originalError:d}}function b(a,b){var d=c("getErrorSafe")(a);return{createdTimestamp:Date.now(),errorCode:typeof a==="object"&&a!=null?typeof a.code==="string"?a.code:typeof a.code==="number"?String(a.code):void 0:void 0,errorLocation:b,errorMessageFormat:(a=d.messageFormat)!=null?a:d.message,errorMessageParams:d.messageFormat!=null?(b=d.messageParams)!=null?b:[]:[],errorName:"VideoElementPlayPromiseRejectionReason_"+(d.name||"UnknownError")}}function i(a,b,d,e){e===void 0&&(e=null);b=c("getErrorSafe")(b);return{createdTimestamp:Date.now(),errorCode:null,errorLocation:d,errorMessageFormat:(b.name||"UnknownError")+" "+((d=b.messageFormat)!=null?d:b.message),errorMessageParams:b.messageFormat!=null?(d=b.messageParams)!=null?d:[]:[],errorName:a,stack:b.stack,url:(d=e)!=null?d:null}}function e(a,b){if(d("oz-player/utils/OzErrorUtils").isOzError(a)){var c=a,e=c.getExtra();return{createdTimestamp:Date.now(),errorCode:e.code,errorLocation:b,errorMessageFormat:c.getDescription(),errorMessageParams:[],errorName:c.getType(),errorType:d("VideoPlayerImplementationErrorNormalization").getVideoPlayerNormalizedErrorTypeFromOzError(c),stack:c.stack,url:e.url}}else return i("OZ_JAVASCRIPT_NATIVE",a,b)}function f(a,b){var c=h(a.message);c=c!=null?a.name+"_"+c:a.name;a=a.message;var d=[];return{createdTimestamp:Date.now(),errorLocation:b,errorMessageFormat:a,errorMessageParams:d,errorName:c,errorType:"GenericDecodeError"}}g.getMoreGranularErrorNameFromHTMLVideoElementErrorMessage=h;g.createVideoPlayerErrorFromHTMLVideoElementError=a;g.createVideoPlayerErrorFromVideoElementPlayPromiseRejectionReason=b;g.createVideoPlayerErrorFromGenericError=i;g.createVideoPlayerErrorFromOzImplementationError=e;g.createVideoPlayerErrorFromOzImplementationVideoNodeError=f}),98);
__d("VideoPlayerODS",["ODS","Random"],(function(a,b,c,d,e,f,g){"use strict";var h;a=function(a,b,c){d("Random").coinflip(c)&&(h||(h=d("ODS"))).bumpEntityKey(2079,a,b,c)};g.bumpEntityKey=a}),98);
__d("VideoPlayerImplementationStateMachine",["VideoPlayerEmsgForStateMachine","VideoPlayerImplementationErrors","VideoPlayerODS","gkx","recoverableViolation","shallowEqual","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";function h(a){var b=a.bufferingDetected,c=a.seeking;a=a.waitingForDomPlaying;return!b&&!c&&!a}function i(a){var b=a.bufferingDetected,d=a.prevPlaybackState,e=a.seeking;a=a.waitingForDomPlaying;b=h({bufferingDetected:b,seeking:e,waitingForDomPlaying:a});e=d;switch(d){case"stalling":e=b?"playing":"stalling";break;case"ended":case"paused":case"playing":break;default:d;c("recoverableViolation")("unexpected playbackState: "+d,"comet_video_player");break}return e}function j(a){return a.loopCount>0&&a.loopCurrent<a.loopCount||a.loopCount===-1}function k(a,b,e){switch(e.type){case"host_call_pause":case"host_call_play":case"host_call_set_current_time":case"host_call_set_volume":case"host_call_set_muted":case"host_call_set_playback_rate":case"host_call_set_video_quality":case"host_call_set_latency_level":return babelHelpers["extends"]({},a,{hostCallQueue:a.hostCallQueue.concat([e])});case"controller_set_latency_level_requested":case"implementation_set_latency_level_requested":return babelHelpers["extends"]({},a,{latencyLevel:e.payload.latencyLevel,ullIneligibilityReason:e.payload.ullIneligibilityReason});case"dom_event_ended":return babelHelpers["extends"]({},a,{playbackState:"ended",waitingForDomPlaying:!1});case"dom_event_pause":if(a.playbackState==="ended")return a;if(b.videoElementEnded===!0)return babelHelpers["extends"]({},a,{playbackState:"ended",waitingForDomPlaying:!1});return a.playbackState==="paused"?a:babelHelpers["extends"]({},a,{playbackState:"paused",waitingForDomPlaying:!1});case"dom_event_play":var f=a.playbackState,g=f;switch(f){case"playing":case"stalling":case"ended":case"paused":g="stalling";break;default:f;c("recoverableViolation")("unexpected playbackState: "+f,"comet_video_player");break}f=!0;return babelHelpers["extends"]({},a,{playbackState:g,waitingForDomPlaying:f});case"dom_event_playing":g=a.bufferingDetected;f=a.seeking;var h=!1,k=a.playbackState;return babelHelpers["extends"]({},a,{playbackState:i({bufferingDetected:g,prevPlaybackState:k,seeking:f,waitingForDomPlaying:h}),waitingForDomPlaying:h});case"dom_event_timeupdate":g=d("VideoPlayerEmsgForStateMachine").makeUpdatedActiveEmsgBoxes(a.allEmsgBoxes,b.videoElementPlayheadPosition,a.activeEmsgBoxes);if(a.waitingForDomTimeUpdateAfterSeeked){k=a.bufferingDetected;f=a.seeking;h=!1;var l=a.playbackState;return babelHelpers["extends"]({},a,{activeEmsgBoxes:g,playbackState:i({bufferingDetected:k,prevPlaybackState:l,seeking:f,waitingForDomPlaying:h}),waitingForDomPlaying:h,waitingForDomTimeUpdateAfterSeeked:!1})}return babelHelpers["extends"]({},a,{activeEmsgBoxes:g});case"dom_event_seeking":k=a.playbackState;l=k;switch(k){case"paused":case"ended":break;case"stalling":case"playing":l="stalling";break;default:k,c("recoverableViolation")("unexpected playbackState: "+k,"comet_video_player")}return babelHelpers["extends"]({},a,{playbackState:l,seeking:!0,waitingForDomPlaying:!0});case"dom_event_seeked":f=a.bufferingDetected;h=a.waitingForDomPlaying;g=!1;k=a.playbackState;return babelHelpers["extends"]({},a,{implementationSeekSourcePosition:null,playbackState:i({bufferingDetected:f,prevPlaybackState:k,seeking:g,waitingForDomPlaying:h}),seeking:g,waitingForDomTimeUpdateAfterSeeked:!0});case"dom_event_error":e.payload.videoElementError==null&&d("VideoPlayerODS").bumpEntityKey("comet_video_player","dom_event_error.error_is_nullish",14);return babelHelpers["extends"]({},a,{playbackState:"paused",waitingForDomPlaying:!1});case"dom_event_play_promise_created":return babelHelpers["extends"]({},a,{hostCallPlayIDLast:e.payload.hostCallPlayID});case"dom_event_play_promise_resolved":return a.hostCallPlayIDLast!==e.payload.hostCallPlayID?a:babelHelpers["extends"]({},a,{hostCallPlayIDLast:null});case"dom_event_play_promise_rejected":if(a.hostCallPlayIDLast!==e.payload.hostCallPlayID)return a;if(c("gkx")("30214")){l=e.payload.playPromiseRejectionReason;return babelHelpers["extends"]({},a,{hostCallPlayIDLast:null},!(l!=null&&l.name==="AbortError")&&a.playbackState==="stalling"?{playbackState:"paused",waitingForDomPlaying:!1}:{})}return babelHelpers["extends"]({},a,{hostCallPlayIDLast:null,playbackState:a.playbackState==="stalling"?"paused":a.playbackState,waitingForDomPlaying:!1});case"dom_event_durationchange":if(c("gkx")("30214")){f=b.videoElementEnded===!0?"ended":b.videoElementPaused===!0?"paused":a.playbackState;if((a.playbackState==="stalling"||a.playbackState==="playing")&&f!==a.playbackState)return babelHelpers["extends"]({},a,{playbackState:f,waitingForDomPlaying:!1})}return a;case"implementation_host_call_queue_flushed":return babelHelpers["extends"]({},a,{hostCallQueue:[]});case"implementation_host_call_failed":k=d("VideoPlayerImplementationErrors").createVideoPlayerErrorFromHTMLVideoElementError({errorLocation:e.payload.errorLocation,hostCallError:e.payload.hostCallError,videoElementError:e.payload.videoElementError,videoElementNetworkState:e.payload.videoElementNetworkState,videoElementReadyState:e.payload.videoElementReadyState});return babelHelpers["extends"]({},a,{error:k,playbackState:"paused",waitingForDomPlaying:!1});case"implementation_mounted":return babelHelpers["extends"]({},a,{mountState:"mounted_onscreen"});case"implementation_unmounted":return babelHelpers["extends"]({},a,{mountState:"unmounted"});case"implementation_onscreen":return babelHelpers["extends"]({},a,{mountState:"mounted_onscreen"});case"implementation_offscreen":return babelHelpers["extends"]({},a,{mountState:"mounted_offscreen"});case"implementation_video_node_unmounted":return babelHelpers["extends"]({},a,{hostCallPlayIDLast:null});case"implementation_engine_initialized":g=(h=e.payload.streamingFormat)!=null?h:a.streamingFormat;return babelHelpers["extends"]({},a,{selectedVideoQuality:e.payload.selectedVideoQuality,streamingFormat:g});case"implementation_engine_qualities_changed":f=(l=e.payload.streamingFormat)!=null?l:a.streamingFormat;return babelHelpers["extends"]({},a,{selectedVideoQuality:e.payload.selectedVideoQuality,streamingFormat:f});case"implementation_engine_destroyed":return babelHelpers["extends"]({},a,{hostCallPlayIDLast:null});case"implementation_fatal_error":return babelHelpers["extends"]({},a,{error:e.payload.fatalError,hostCallPlayIDLast:null,playbackState:"paused",waitingForDomPlaying:!1});case"implementation_seek_requested":return babelHelpers["extends"]({},a,{implementationSeekSourcePosition:e.payload.seekSourcePosition});case"representation_changed":return babelHelpers["extends"]({},a);case"controller_pause_requested":return a.playbackState==="ended"?a:babelHelpers["extends"]({},a,{lastPausedTimeMs:Date.now(),lastPauseReason:e.payload.reason,lastPlayedTimeMs:0,playbackState:"paused",waitingForDomPlaying:!1,watchTimeMs:a.lastPlayedTimeMs>0?a.watchTimeMs+(Date.now()-a.lastPlayedTimeMs):a.watchTimeMs});case"controller_play_requested":return a.playbackState!=="paused"&&a.playbackState!=="ended"?a:babelHelpers["extends"]({},a,{hasPlayEverBeenRequested:!0,lastPlayedTimeMs:a.lastPlayedTimeMs===0?Date.now():a.lastPlayedTimeMs,lastPlayReason:e.payload.reason,loopCurrent:j(a)?e.payload.reason==="loop_initiated"?a.loopCurrent+1:a.loopCurrent:0,playbackState:"stalling",waitingForDomPlaying:!0});case"controller_seek_requested":return babelHelpers["extends"]({},a,{implementationSeekSourcePosition:(k=b.videoElementPlayheadPosition)!=null?k:a.implementationSeekSourcePosition,seeking:!0,seekTargetPosition:e.payload.seekTargetPosition});case"controller_quality_requested":return babelHelpers["extends"]({},a,{selectedVideoQuality:e.payload.selectedVideoQuality});case"controller_video_variant_requested":return babelHelpers["extends"]({},a,{selectedVideoVariant:e.payload.selectedVideoVariant});case"controller_set_caption_display_style_requested":return babelHelpers["extends"]({},a,{captionDisplayStyle:e.payload.captionDisplayStyle});case"controller_set_picture_in_picture_state_requested":return babelHelpers["extends"]({},a,{isDesktopPictureInPicture:e.payload.isInPictureInPictureMode});case"controller_set_caption_format_requested":return babelHelpers["extends"]({},a,{captionFormat:e.payload.captionFormat});case"controller_set_playback_rate":return babelHelpers["extends"]({},a,{targetPlaybackRate:e.payload.playbackRate});case"controller_muted_requested":return babelHelpers["extends"]({},a,{lastMuteReason:e.payload.reason,muted:e.payload.muted});case"controller_volume_requested":return babelHelpers["extends"]({},a,{volume:e.payload.volume});case"controller_scrub_begin_requested":return a.scrubbing?a:babelHelpers["extends"]({},a,{scrubbing:!0,seekTargetPosition:null});case"controller_scrub_end_requested":return!a.scrubbing?a:babelHelpers["extends"]({},a,{implementationSeekSourcePosition:(h=b.videoElementPlayheadPosition)!=null?h:a.implementationSeekSourcePosition,scrubbing:!1,seeking:e.payload.seekTargetPosition!=null,seekTargetPosition:e.payload.seekTargetPosition});case"buffering_begin_requested":g=a.playbackState;l=g;switch(g){case"paused":case"ended":break;case"playing":case"stalling":l="stalling";break;default:g;c("recoverableViolation")("unexpected playbackState: "+g,"comet_video_player");break}f=e.payload.bufferingType;return babelHelpers["extends"]({},a,{bufferingDetected:!0,lastBufferingType:f,playbackState:l});case"buffering_end_requested":k=a.seeking;h=a.waitingForDomPlaying;g=!1;f=a.playbackState;return babelHelpers["extends"]({},a,{bufferingDetected:g,playbackState:i({bufferingDetected:g,prevPlaybackState:f,seeking:k,waitingForDomPlaying:h})});case"controller_set_captions_visible_requested":l=e.payload.captionsVisible;return a.captionsVisible===l?a:babelHelpers["extends"]({},a,{activeCaptions:l?a.activeCaptions:null,captionsLocale:l?a.captionsLocale:null,captionsVisible:l});case"controller_set_active_captions_requested":g=e.payload.activeCaptions;k=(f=g==null?void 0:g.rows)!=null?f:[];h=e.payload.captionsLocale;l=a.activeCaptions;var m=(f=l==null?void 0:l.rows)!=null?f:[];return m.length===k.length&&k.every(function(a,b){return m[b]===a})?a:babelHelpers["extends"]({},a,{activeCaptions:g,captionsLocale:h});case"captions_loaded":return babelHelpers["extends"]({},a,{activeCaptions:a.activeCaptions,captionsLoaded:!0});case"captions_unloaded":return babelHelpers["extends"]({},a,{activeCaptions:null,captionsLoaded:!1,captionsLocale:null});case"inband_captions_autogenerated_changed":l=e.payload.inbandCaptionsAutogenerated;return a.inbandCaptionsAutogenerated===l?a:babelHelpers["extends"]({},a,{inbandCaptionsAutogenerated:l});case"stream_ended":return babelHelpers["extends"]({},a,{streamEnded:!0});case"stream_gone_before_start":return babelHelpers["extends"]({},a,{playbackState:"ended",streamEnded:!0,waitingForDomPlaying:!1});case"stream_interrupted":return babelHelpers["extends"]({},a,{streamInterrupted:!0});case"stream_resumed":return babelHelpers["extends"]({},a,{streamInterrupted:!1});case"seekable_ranges_changed":f=e.payload.seekableRanges;return babelHelpers["extends"]({},a,{seekableRanges:f});case"controller_set_is_live_rewind_active_requested":k=e.payload.isLiveRewindActive;return babelHelpers["extends"]({},a,{isLiveRewindActive:k});case"loop_count_change_requested":g=e.payload.loopCount;return g===a.loopCount?a:babelHelpers["extends"]({},a,{loopCount:g,loopCurrent:0});case"player_dimensions_changed":h=e.payload.dimensions;l=h.height;f=h.width;return f===a.dimensions.width&&l===a.dimensions.height?a:babelHelpers["extends"]({},a,{dimensions:{height:l,width:f}});case"emsg_boxes_parsed":k=d("VideoPlayerEmsgForStateMachine").makeUpdatedAllEmsgBoxes(a.allEmsgBoxes,e.payload.emsgBoxes);g=d("VideoPlayerEmsgForStateMachine").makeUpdatedActiveEmsgBoxes(k,b.videoElementPlayheadPosition,a.activeEmsgBoxes);return babelHelpers["extends"]({},a,{activeEmsgBoxes:g,allEmsgBoxes:k});case"register_emsg_observer":h=new Set(a.emsgObserverTokens);h.add(e.payload.token);return babelHelpers["extends"]({},a,{emsgObserverTokens:h});case"unregister_emsg_observer":l=new Set(a.emsgObserverTokens);l["delete"](e.payload.token);return babelHelpers["extends"]({},a,{emsgObserverTokens:l});default:return a}}function l(a,b,d){var e=b.type!=="dom_seeking";e=e?d:a.uncontrolledState;d=!c("shallowEqual")(e,a.uncontrolledState);b=k(a.controlledState,e,b);var f=!c("shallowEqual")(b,a.controlledState);return d||f?babelHelpers["extends"]({},a,{controlledState:f?b:a.controlledState,uncontrolledState:d?e:a.uncontrolledState}):a}var m,n;function o(a){var b=a.collectUncontrolledState,d=a.debugLogId;d=a.initialState;var e=a.onDispatched,f=a.onFatalError,g=d,h=g,i=0,j=!1,k=!1,m=!0,n=!0;return{dispatch:function(a){if(!n)return;var d=null,g=null;try{++i;if(i>=10)if(!j){j=!0;throw c("unrecoverableViolation")("Video player state machine loop detected","comet_video_player")}else return;var o=h.uncontrolledState;if(m)try{o=b()}catch(a){m=!1,g=a}var p=h;o=l(p,a,o);h=o;e(p,o,a)}catch(a){n=!1,d=a}finally{if(!k&&(d!=null||g!=null)){k=!0;try{f((p=d)!=null?p:g)}catch(a){}}--i}},getCurrentState:function(){return h},getInitialState:function(){return g}}}var p,q;function a(a){var b=a.collectUncontrolledState,c=a.debugLogId,d=a.initialState,e=a.onFatalError,f=a.stateTransitionHandlers;function g(a,b,c){try{var d=!0,e=0;while(d&&e<f.length){var g=f[e];d=g(a,b,c);++e}}finally{}}return o({collectUncontrolledState:b,debugLogId:c,initialState:d,onDispatched:g,onFatalError:e})}function b(a,b){function c(){}function d(a){return a}function e(c){return function(e){var f=d(e.currentTarget);b(f,["reactEvent("+e.type+")"]);a.dispatch(c)}}function f(c){return function(e){var f=d(e.currentTarget);b(f,["reactEvent("+e.type+")"]);a.dispatch(c(e,f))}}return{onAbort:c,onCanPlay:c,onCanPlayThrough:c,onDurationChange:e({type:"dom_event_durationchange"}),onEmptied:c,onEncrypted:c,onEnded:e({type:"dom_event_ended"}),onError:f(function(a,b){return{payload:{videoElementError:b.error,videoElementNetworkState:b.networkState,videoElementReadyState:b.readyState},type:"dom_event_error"}}),onLoadedData:c,onLoadedMetadata:c,onLoadStart:c,onPause:e({type:"dom_event_pause"}),onPlay:e({type:"dom_event_play"}),onPlaying:f(function(a){return{payload:{domEventPerfTimestamp:a.timeStamp},type:"dom_event_playing"}}),onProgress:e({type:"dom_event_progress"}),onRateChange:e({type:"dom_event_ratechange"}),onSeeked:e({type:"dom_event_seeked"}),onSeeking:e({type:"dom_event_seeking"}),onStalled:c,onSuspend:c,onTimeUpdate:e({type:"dom_event_timeupdate"}),onVolumeChange:e({type:"dom_event_volumechange"}),onWaiting:e({type:"dom_event_waiting"})}}g.createVideoPlayerImplementationStateMachine=o;g.createVideoPlayerImplementationStateMachineWithStateTransitionHandlers=a;g.createReactVideoElementCallbacksForStateMachine=b}),98);
__d("VideoPlayerImplementationStateMachineHostCallQueue",["cometUniqueID","emptyFunction","gkx","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";b=c("emptyFunction");function h(){return"id-vpdom-"+c("cometUniqueID")()}function i(a){var b=a.engineExtrasAPI,d=a.hostCall,e=a.machine;a=a.videoElementAPI;switch(d.type){case"host_call_play":var f=a.play();f&&(e.dispatch({payload:{hostCallPlayID:d.payload.hostCallID},type:"dom_event_play_promise_created"}),c("promiseDone")(f.then(function(){e.dispatch({payload:{hostCallPlayID:d.payload.hostCallID},type:"dom_event_play_promise_resolved"})},function(a){e.dispatch({payload:{hostCallPlayID:d.payload.hostCallID,playPromiseRejectionReason:a},type:"dom_event_play_promise_rejected"})})));break;case"host_call_pause":a.pause();break;case"host_call_set_playback_rate":a.setPlaybackRate(d.payload.playbackRate);break;case"host_call_set_muted":a.setMuted(d.payload.muted);break;case"host_call_set_volume":a.setVolume(d.payload.volume);break;case"host_call_set_current_time":a.setPlayheadPosition(d.payload.currentTime);break;case"host_call_set_video_quality":b.setUserSelectedVideoQuality(d.payload.selectedVideoQuality);break;case"host_call_set_video_variant":b.setUserSelectedVideoVariant(d.payload.selectedVideoVariant);break;case"host_call_set_latency_level":b.setLatencyLevel(d.payload.latencyLevel);break;case"host_call_picture_in_picture":a.requestPictureInPicture();break;case"host_call_exit_picture_in_picture":a.exitPictureInPicture();break;default:d.type;return!1}return!0}function j(a){var b=a.engineExtrasAPI,c=a.hostCall,d=a.machine;a=a.videoElementAPI;if(!a||!b)d.dispatch(c);else{var e=!1;try{e=i({engineExtrasAPI:b,hostCall:c,machine:d,videoElementAPI:a})}catch(b){d.dispatch({payload:{errorLocation:"apply_host_call_catch",hostCall:c,hostCallError:b,videoElementError:a.getError(),videoElementNetworkState:a.getNetworkState(),videoElementReadyState:a.getReadyState()},type:"implementation_host_call_failed"})}e&&d.dispatch({payload:{hostCall:c},type:"implementation_host_call_applied"})}}function k(a){var b=[];function c(){b=b.filter(function(a){return a.type!=="host_call_play"&&a.type!=="host_call_pause"})}function d(a){b=b.filter(function(b){return b.type!==a})}a.forEach(function(a){switch(a.type){case"host_call_play":c();break;case"host_call_pause":c();break;case"host_call_set_playback_rate":d(a.type);break;case"host_call_set_muted":d(a.type);break;case"host_call_set_volume":d(a.type);break;case"host_call_set_current_time":d(a.type);break;case"host_call_set_video_quality":d(a.type);break;case"host_call_set_video_variant":d(a.type);break;case"host_call_set_latency_level":d(a.type);break;case"host_call_picture_in_picture":d(a.type);break;case"host_call_exit_picture_in_picture":d(a.type);break;default:a.type}b=b.concat([a])});return b}function a(a){var b=a.engineExtrasAPI,c=a.machine,d=a.reason,e=a.state,f=a.videoElementAPI;a=[{payload:{hostCallID:h(),reason:d,volume:e.controlledState.volume},type:"host_call_set_volume"},{payload:{hostCallID:h(),muted:e.controlledState.muted,reason:d},type:"host_call_set_muted"},{payload:{hostCallID:h(),reason:d,selectedVideoQuality:e.controlledState.selectedVideoQuality},type:"host_call_set_video_quality"},{payload:{hostCallID:h(),reason:d,selectedVideoVariant:e.controlledState.selectedVideoVariant},type:"host_call_set_video_variant"}];d=k(e.controlledState.hostCallQueue.concat(a));d.forEach(function(a){j({engineExtrasAPI:b,hostCall:a,machine:c,videoElementAPI:f})});c.dispatch({payload:{hostCallsFlushed:d},type:"implementation_host_call_queue_flushed"})}g.makeHostCallID=h;g.applyOrQueueHostCall=j;g.flushHostCallQueue=a}),98);
__d("VideoPlayerLoggerPlayerStates",[],(function(a,b,c,d,e,f){a="started";b="unpaused";c={STARTED:a,UNPAUSED:b};f["default"]=c}),66);
__d("VideoPlayerMutedStateChange",[],(function(a,b,c,d,e,f){"use strict";function a(a){var b=a.currMuted,c=a.currVolume,d=a.prevMuted;a=a.prevVolume;b=b||c===0;c=d||a===0;if(c===b)return null;return b?"muted":"unmuted"}f.getVideoPlayerMutedStateChange=a}),66);
__d("getPlayerFormatForLogData",[],(function(a,b,c,d,e,f){"use strict";function a(a,b){a=a.isFullscreen;return a===!0?"full_screen":b!=null?b:"inline"}f["default"]=a}),66);
__d("VideoPlayerImplementationStateMachineLogger",["CometProductAttribution","NetworkStatus","PlaybackSpeedExperiments","SiteData","VideoMimeTypes","VideoPlayerConnectionQuality","VideoPlayerImplementationErrorNormalization","VideoPlayerLoggerPlayerStates","VideoPlayerMutedStateChange","VideoPlayerStateBasedLoggingEvents","emptyFunction","getPlayerFormatForLogData","getVideoBrowserTabId","gkx","justknobx","mapObject","performanceAbsoluteNow","qex","recoverableViolation","removeFromArray"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=6e4,k=(b=c("qex")._("1675"))!=null?b:0,l=1e3,m=null,n=function(a){var b;m=(b=m)!=null?b:document.createElement("video");return!("canPlayType"in m)?"":m.canPlayType(a)};e=c("emptyFunction");f=c("emptyFunction");b=c("emptyFunction");e=c("emptyFunction");var o=(f=d("PlaybackSpeedExperiments").enablePlaybackSpeedLogging())!=null?f:!1;function p(){return{canLogPausedOrFinishedPlaying:!1,canLogPlayingEvent:!0,debugSubscribers:[],dontLogPauseOnUnpausedSeeking:!1,errorRecoveryAttemptState:{currentRecoverableError:null,eventsLogged:0,repeatCount:0},hasLoggedStallData:!1,hasLoggedStartedPlaying:!1,hasPausedOnce:!1,hasPendingRequestedPlaying:!1,initialSuborigin:void 0,inPlayStallCount200ms:0,interruptCount:0,interruptDuration:0,interruptEndTimestamp:0,interruptStartTimestamp:0,isLoggingScrubbingSequence:!1,lastLoggedError:null,lastLoggedFullscreenState:!1,lastLoggedPlaybackSpeed:null,lastLoggedViewabilityPercentage:void 0,lastStartTimePosition:null,lastTrackedAudioRepresentation:null,lastTrackedVideoRepresentation:null,nextHeartbeatTime:null,nextPlayedThreeSecondsPlayheadPosition:null,sequenceNumber:0,shouldIgnoreDomPause:!1,shouldIgnoreDomPlay:!1,shouldLogRequestedPlayingForScrub:!1,stallCount:0,stallCount200ms:0,stallCountTotal:0,stallDuration:0,stallDurationTotal:0,stallStartTimestamp:0,startStallCountTotal:0,startStallDurationTotal:0,vplEventSequenceNumber:0,warningState:{eventsLoggedPerKey:new Map(),eventsLoggedTotal:0,eventsMaxLoggedPerKey:function(){try{return Math.max(0,c("justknobx")._("1831")||0)}catch(a){return 0}}(),eventsMaxLoggedTotal:function(){try{return Math.max(0,c("justknobx")._("1832")||0)}catch(a){return 0}}()}}}function q(a,b){return b==="muted"||b==="unmuted"||b==="started_playing"||b==="caption_change"||b==="unpaused"?a.controlledState.captionsVisible?"on":"off":void 0}function a(a){var b=new Map(),e=a.initialLoggingMetaData,f=e,g=[],m=p(),r=new Set(c("VideoPlayerStateBasedLoggingEvents").StateBasedLoggingEventNames),s=!c("gkx")("646");function t(a){m.debugSubscribers.push(a);return function(){c("removeFromArray")(m.debugSubscribers,a)}}function u(a){m.debugSubscribers.forEach(function(b){return b(a)})}function v(a){var b=m.stallStartTimestamp;if(b>0){m.stallCount+=1;m.stallCountTotal+=1;m.hasPendingRequestedPlaying&&(m.startStallCountTotal+=1);a=a-b;b=a>200;m.stallDurationTotal+=a;m.stallDuration+=a;m.stallCount200ms+=b?1:0;m.inPlayStallCount200ms+=b&&!m.hasPendingRequestedPlaying?1:0;m.hasPendingRequestedPlaying&&(m.startStallDurationTotal+=a)}}function w(a,b){a=a.uncontrolledState.videoElementPlayheadPosition==null?null:a.uncontrolledState.videoElementPlayheadPosition;var c=null;switch(b){case"paused":case"cancelled_requested_playing":case"finished_playing":case"heart_beat":case"playback_speed_changed":case"representation_ended":c=m.lastStartTimePosition;break;case"scrubbed":c=a;break;default:break}switch(b){case"paused":case"cancelled_requested_playing":case"finished_playing":case"scrubbed":m.lastStartTimePosition=null;break;case"started_playing":case"unpaused":case"heart_beat":case"playback_speed_changed":case"representation_ended":m.lastStartTimePosition=a;break;default:break}return{video_last_start_time_position:c}}function x(a,b){var c=b.uncontrolledState.clockTimestamp;a=a.controlledState.streamInterrupted;b=b.controlledState.streamInterrupted;!a&&b?m.interruptStartTimestamp=c:a&&!b&&m.interruptStartTimestamp>0&&(m.interruptEndTimestamp=c,m.interruptCount+=1,m.interruptDuration+=m.interruptEndTimestamp-m.interruptStartTimestamp)}function y(a,b,c){var d=b.uncontrolledState.clockTimestamp;a=a.controlledState.playbackState;var e=b.controlledState.playbackState;a!=="stalling"&&e==="stalling"&&(u("stall_start"),m.stallStartTimestamp=d);if(a==="stalling"&&e!=="stalling"){d=0;(c.type==="dom_event_playing"||c.type==="buffering_end_requested")&&c.payload.domEventPerfTimestamp!=null&&(d=Math.max(b.uncontrolledState.perfTimestamp-c.payload.domEventPerfTimestamp,0));v(b.uncontrolledState.clockTimestamp-d);m.stallStartTimestamp=0;u("stall_end")}}function z(a,b,c){a=b.uncontrolledState;b=a.videoElementPlayheadPosition;switch(c){case"unpaused":case"started_playing":m.nextPlayedThreeSecondsPlayheadPosition=((a=b)!=null?a:0)+3;break;case"paused":case"finished_playing":m.nextPlayedThreeSecondsPlayheadPosition=null;break;default:break}}function A(a,b,c){if(m.interruptCount>0&&m.interruptDuration>0){a={interrupt_count:m.interruptCount,interrupt_time:m.interruptDuration};m.interruptCount=0;m.interruptDuration=0;m.interruptStartTimestamp=0;m.interruptEndTimestamp=0;return a}return{interrupt_count:null,interrupt_time:null}}function B(a,b,c){var d={stall_count:null,stall_count_200_ms:null,stall_time:null},e=b.uncontrolledState.clockTimestamp,f=function(){var a={stall_count:m.stallCount,stall_count_200_ms:m.stallCount200ms,stall_time:m.stallDuration};m.stallCount=0;m.stallCount200ms=0;m.stallDuration=0;m.stallStartTimestamp=0;return a};a=a.controlledState.playbackState;var g=b.controlledState.playbackState;a!=="stalling"&&g==="stalling"&&(m.stallStartTimestamp=e);switch(c){case"started_playing":case"unpaused":case"finished_playing":case"paused":case"cancelled_requested_playing":case"playback_speed_changed":case"representation_ended":v(b.uncontrolledState.clockTimestamp);d=f();break;case"heart_beat":b.controlledState.playbackState!=="stalling"&&(v(b.uncontrolledState.clockTimestamp),d=f());break;default:break}return d}function C(a,b,c){a=b.controlledState.playbackState==="paused"&&a.controlledState.playbackState==="stalling";return c>0&&(b.controlledState.playbackState==="stalling"||a)}function D(a,b){a=a.current;var c=null;switch(b){case"finished_playing":case"paused":case"heart_beat":a&&(c=a.getAndFlushTracedFrames());return c!=null?JSON.stringify(c):null;default:return null}}function E(a){a=a.controlledState.playbackState;switch(a){case"playing":case"stalling":return"playing";case"paused":return"paused";case"ended":return"finished";default:a;return"unknown"}}function F(a){switch(a){case"normal":return"normal";case"low":return"low";case"ultra-low":return"ultra_low";default:return null}}function G(){return{state:m.hasLoggedStartedPlaying?c("VideoPlayerLoggerPlayerStates").UNPAUSED:c("VideoPlayerLoggerPlayerStates").STARTED}}function H(a){if((a==null?void 0:a.v2)&&(a==null?void 0:a.v2.length)>0){var b=a==null?void 0:a.v2;b=b[b.length-1];return[b["class"],b.module].map(d("CometProductAttribution").filterEntryValue).join(":")}return(a=a==null?void 0:(b=a.v2)==null?void 0:b.map(function(a){return[a["class"],a.module].map(d("CometProductAttribution").filterEntryValue).join(":")}).join(";"))!=null?a:""}function I(f){var i,j=f.eventType,k=f.logDataOverrides,l=f.prevState,n=f.state;f=w(n,j);f=f.video_last_start_time_position;var p=B(l,n,j),t=p.stall_count,u=p.stall_count_200_ms;p=p.stall_time;var v=A(l,n,j),x=v.interrupt_count;v=v.interrupt_time;var y=D(a.videoLiveTraceRef,j),G=[],I=a.initialLoggingMetaData.coreVideoPlayerMetaData.autoplayGatingResult;I&&G.push(I);I=j==="entered_fs"?!0:j==="exited_fs"?!1:m.lastLoggedFullscreenState;i=c("getPlayerFormatForLogData")({isDesktopPictureInPicture:(i=n.controlledState.isDesktopPictureInPicture)!=null?i:!1,isFullscreen:I},e.coreVideoPlayerMetaData.playerFormat);var J=n.uncontrolledState.viewabilityPercentage,K=Boolean(n.uncontrolledState.isFBIsLiveTemplated),L=Boolean(n.uncontrolledState.isFBWasLive),M=n.uncontrolledState.videoElementPlaybackRate;M=M==null||M===0?m.lastLoggedPlaybackSpeed:M;var N=a.initialLoggingMetaData.productAttribution;if(i==="watch_scroll"&&N&&N.v2){var O,P={0:babelHelpers["extends"]({},N["0"]),v2:[babelHelpers["extends"]({},N.v2[0])]};O=(O=e.productAttribution)==null?void 0:(O=O.v2)==null?void 0:O[0];if(O){var Q=P.v2[0];Q["class"]=O["class"];Q.scope_id=O.scope_id;Q.ts=O.ts}N=P}Q=null;O=null;Q=N!=null?d("CometProductAttribution").minifyProductAttributionV2(N):null;O=N!=null?H(N):null;P=C(l,n,(P=p)!=null?P:0);Q={access_token:a.initialLoggingMetaData.accessToken,ad_client_token:e.coreVideoPlayerMetaData.adClientToken,attribution_id:N!=null&&Object.prototype.hasOwnProperty.call(N,"0")?JSON.stringify({0:N["0"]}):null,attribution_id_v2:Q,attribution_id_v2_root:O,audio_only:e.coreVideoPlayerMetaData.audioOnly,audio_representation_id:n.uncontrolledState.audioRepresentationID,autoplay_eligible:a.initialLoggingMetaData.coreVideoPlayerMetaData.canAutoplay==="allow",autoplay_failure_reasons:JSON.stringify(G),autoplay_setting:a.initialLoggingMetaData.coreVideoPlayerMetaData.autoplaySetting,available_qualities:n.uncontrolledState.availableQualities.length,broadcaster_origin:a.initialLoggingMetaData.coreVideoPlayerMetaData.broadcasterOrigin,browser_tab_id:c("getVideoBrowserTabId")(),caption_state:q(n,j),client_latency_setting:F(n.controlledState.latencyLevel),current_playback_speed:o?M:null,current_viewability_percentage:J,dash_perf_logging_enabled:e.coreVideoPlayerMetaData.VideoPlayerShakaPerformanceLoggerClass!=null&&e.coreVideoPlayerMetaData.VideoPlayerShakaPerformanceLoggerClass.isEnabled(),data_connection_quality:d("VideoPlayerConnectionQuality").evaluate(function(){return n.uncontrolledState.estimatedBandwidth}),downstream_share_origin_uri:(N=e.downstreamShareSignalTracking)==null?void 0:N.downstream_share_session_origin_uri,downstream_share_start_time:(Q=e.downstreamShareSignalTracking)==null?void 0:Q.downstream_share_session_start_time,downstream_share_visit_uuid:(O=e.downstreamShareSignalTracking)==null?void 0:O.downstream_share_session_id,dropped_frame_count:n.uncontrolledState.videoElementDroppedFrameCount,external_log_id:e.coreVideoPlayerMetaData.externalLogID,external_log_type:e.coreVideoPlayerMetaData.externalLogType,fb_manifest_identifier:n.uncontrolledState.manifestIdentifier,frame_events:y,interrupt_count:x,interrupt_time:v,is_abr_enabled:n.isAbrEnabled,is_fbms:n.uncontrolledState.isFBMS,is_live_video_rewound:n.controlledState.isLiveRewindActive,is_mixed_codec_manifest:n.uncontrolledState.isMixedCodecManifest,is_pip:n.controlledState.isDesktopPictureInPicture,is_predictive_playback:n.uncontrolledState.isPredictiveDash,is_sound_on:!n.controlledState.muted,is_stalling:P,is_templated_manifest:K||L,last_viewability_percentage:m.lastLoggedViewabilityPercentage,mpd_validation_errors:n.uncontrolledState.mpdValidationErrors,network_connected:n.uncontrolledState.networkConnected,playback_caption_format:n.controlledState.captionFormat,playback_caption_locale:n.controlledState.captionsLocale,playback_duration:n.uncontrolledState.videoElementDuration,playback_is_broadcast:a.initialLoggingMetaData.coreVideoPlayerMetaData.isVideoBroadcast,playback_is_drm:Boolean(a.initialLoggingMetaData.coreVideoPlayerMetaData.graphQLVideoDRMInfo),playback_is_live_streaming:a.initialLoggingMetaData.coreVideoPlayerMetaData.isLiveStreaming,player_format:i,player_instance_key:e.instanceKey,player_origin:e.coreVideoPlayerMetaData.playerOriginOverride,player_state:E(n),player_suborigin:e.coreVideoPlayerMetaData.subOrigin,player_version:n.playerVersion,representation_id:n.uncontrolledState.videoRepresentationID,source_VPL_LOGGING_HACK:e.coreVideoPlayerMetaData.source_VPL_LOGGING_HACK,stall_count:t,stall_count_200_ms:u,stall_time:p,streaming_format:n.controlledState.streamingFormat,total_frame_count:n.uncontrolledState.videoElementTotalFrameCount,tracking_data_encrypted:a.initialLoggingMetaData.trackingDataEncrypted,tracking_nodes:a.initialLoggingMetaData.trackingNodes,v2_heart_beat:c("gkx")("24377")&&j==="heart_beat"?!0:null,video_bandwidth:n.uncontrolledState.estimatedBandwidth,video_buffer_end_position:n.uncontrolledState.videoElementLastBufferEndPosition,video_id:e.coreVideoPlayerMetaData.videoFBID,video_last_start_time_position:f,video_play_reason:n.controlledState.lastPlayReason,video_player_height:(G=e.dimensions)==null?void 0:G.height,video_player_width:(N=e.dimensions)==null?void 0:N.width,video_time_position:n.uncontrolledState.videoElementPlayheadPosition,web_client_revision:c("SiteData").client_revision};O=r.has(j)?++m.sequenceNumber:null;y={event_seq_num:++m.vplEventSequenceNumber,seq_num:O,time_ms:Date.now(),vpts:(h||(h=c("performanceAbsoluteNow")))()};var R={};b.forEach(function(a,b){R[b]=a});x=e.coreVideoPlayerMetaData.additionalLogData;v=babelHelpers["extends"]({},x,R);P=babelHelpers["extends"]({},v,Q,k,y);L=(K=m.initialSuborigin)!=null?K:e.coreVideoPlayerMetaData.subOrigin;t=(i=P.source_VPL_LOGGING_HACK)!=null?i:L;p=(u=e.coreVideoPlayerMetaData.initialTracePolicy)!=null?u:e.coreVideoPlayerMetaData.routeTracePolicy;f={eventType:j,logData:P,routeTracePolicy:p,source_VPL_LOGGING_HACK:t};g.push(f);s&&z(l,n,j);m.initialSuborigin==null&&L!=null&&(m.initialSuborigin=L);m.lastLoggedFullscreenState=I;m.lastLoggedPlaybackSpeed=M;j==="viewability_changed"&&(m.lastLoggedViewabilityPercentage=J)}var J={};function K(a,b,c){I({eventType:"requested_playing",logDataOverrides:babelHelpers["extends"]({},c,G()),prevState:a,state:b});m.hasPendingRequestedPlaying=!0;m.canLogPausedOrFinishedPlaying=!0;return J}function L(a,b,c){if(!m.canLogPausedOrFinishedPlaying)return J;else if(m.hasPendingRequestedPlaying){M(a,b,c);m.canLogPausedOrFinishedPlaying=!1;m.hasPendingRequestedPlaying=!1;return J}else{I({eventType:"paused",logDataOverrides:babelHelpers["extends"]({},c,{error_user_info:JSON.stringify({is_document_hidden:b.uncontrolledState.isDocumentHidden})}),prevState:a,state:b});m.canLogPausedOrFinishedPlaying=!1;m.hasPendingRequestedPlaying=!1;return J}}function M(a,b,c){var d=b.uncontrolledState.liveTraceContext;c=babelHelpers["extends"]({},c,G(),{live_trace_source_id:d?d.sourceId:void 0,live_trace_stream_id:d?d.streamId:void 0,live_trace_stream_type:d?d.streamType:void 0});I({eventType:"cancelled_requested_playing",logDataOverrides:c,prevState:a,state:b});return J}function N(a,b,d){if(d.type==="dom_event_play_promise_rejected"&&d.payload.hostCallPlayID===a.controlledState.hostCallPlayIDLast&&b.controlledState.hostCallPlayIDLast==null&&m.hasPendingRequestedPlaying){d=d.payload.playPromiseRejectionReason;if(d!=null&&d.name==="NotAllowedError"){M(a,b,{debug_reason:"not_allowed"});return J}else if(!c("gkx")("30214")&&d!=null&&d.name==="AbortError"){M(a,b,{debug_reason:"aborted"});return J}else return J}else return J}function O(a,b,c){if((c.type==="controller_play_requested"||c.type==="dom_event_play"&&!m.shouldIgnoreDomPlay)&&a.controlledState.playbackState!==b.controlledState.playbackState){c=b.uncontrolledState.liveTraceContext;c=c?{live_trace_source_id:c.sourceId,live_trace_stream_id:c.streamId,live_trace_stream_type:c.streamType}:null;K(a,b,c);return J}else return J}function P(a,b,c){if(a.controlledState.playbackState==="stalling"&&b.controlledState.playbackState==="playing"&&m.canLogPlayingEvent){c=b.uncontrolledState.liveTraceContext;c=c?{live_trace_source_id:c.sourceId,live_trace_stream_id:c.streamId,live_trace_stream_type:c.streamType}:null;I({eventType:m.hasLoggedStartedPlaying?"unpaused":"started_playing",logDataOverrides:c,prevState:a,state:b});m.hasLoggedStartedPlaying=!0;m.canLogPlayingEvent=!1;m.hasPendingRequestedPlaying=!1;return J}else return J}function Q(a,b,c){var d=b.controlledState.playbackState,e=a.controlledState.playbackState;if(c.type==="controller_scrub_begin_requested"&&!a.controlledState.scrubbing&&d!=="paused"&&d!=="ended"){L(a,b);m.isLoggingScrubbingSequence=!0;return J}else if(!a.controlledState.seeking&&b.controlledState.seeking&&!m.isLoggingScrubbingSequence&&d!=="paused"&&d!=="ended"&&!m.hasPendingRequestedPlaying){L(a,b);m.shouldLogRequestedPlayingForScrub=!0;return J}else if(c.type==="controller_scrub_end_requested"&&a.controlledState.scrubbing&&d!=="paused"&&d!=="ended"){K(a,b,{video_time_position:c.payload.seekTargetPosition});return J}else if(a.controlledState.seeking&&!b.controlledState.seeking){m.shouldLogRequestedPlayingForScrub&&d!=="paused"&&d!=="ended"&&K(a,b);I({eventType:"scrubbed",prevState:a,state:b});m.isLoggingScrubbingSequence=!1;m.shouldLogRequestedPlayingForScrub=!1;e!=="paused"&&e!=="ended"&&(m.canLogPlayingEvent=!0);return J}else return J}function R(a,b,c){if(a.controlledState.playbackState!==b.controlledState.playbackState&&b.controlledState.playbackState==="ended"&&m.canLogPausedOrFinishedPlaying){I({eventType:"finished_playing",prevState:a,state:b});m.canLogPausedOrFinishedPlaying=!1;return J}else return J}function S(a,b,c){if((c.type==="controller_pause_requested"||c.type==="dom_event_pause"&&!m.shouldIgnoreDomPause)&&a.controlledState.playbackState!==b.controlledState.playbackState){L(a,b,{debug_reason:"paused"});return J}else return J}function T(a,b,d){var e=b.controlledState.playbackState;if(e!=="paused"&&e!=="ended"){c("gkx")("24379")&&d.type==="implementation_video_node_unmounted"?L(a,a,{debug_reason:"unloaded"}):(d.type==="implementation_unmounted"||d.type==="implementation_engine_destroy_requested")&&L(a,b,{debug_reason:"unloaded"});return J}else return J}function U(a,b,c){if(c.type==="implementation_engine_representation_blocked"){c=c.payload.blockedRepresentationID;I({eventType:"video_playback_fallback",logDataOverrides:{representation_id:c},prevState:a,state:b})}return J}function V(a,b,e){e=b.controlledState.muted;var f=b.controlledState.volume,g=a.controlledState.muted,h=a.controlledState.volume;e=d("VideoPlayerMutedStateChange").getVideoPlayerMutedStateChange({currMuted:e,currVolume:f,prevMuted:g,prevVolume:h});g={current_volume:Math.round(f*100)};switch(e){case"muted":I({eventType:"muted",logDataOverrides:g,prevState:a,state:b});return J;case"unmuted":I({eventType:"unmuted",logDataOverrides:g,prevState:a,state:b});return J;case null:if(h<f){I({eventType:"volume_increase",logDataOverrides:g,prevState:a,state:b});return J}else if(h>f){I({eventType:"volume_decrease",logDataOverrides:g,prevState:a,state:b});return J}else return J;default:e;c("recoverableViolation")('Unexpected mutedStateChange "'+e+'"',"comet_video_player");return J}}function W(a,b,c){c=b.uncontrolledState.videoRepresentationID;var d=m.lastTrackedVideoRepresentation,e=b.uncontrolledState.audioRepresentationID,f=m.lastTrackedAudioRepresentation,g=b.controlledState.playbackState,h=b.controlledState.seeking;if(!h&&g!=="paused"&&g!=="ended"&&d!=null&&d!==c){var i=b.uncontrolledState.availableVideoTracks.find(function(a){return a.id===b.uncontrolledState.videoRepresentationID}),j=b.uncontrolledState.availableVideoTracks.find(function(a){return a.id===m.lastTrackedVideoRepresentation});I({eventType:"representation_ended",logDataOverrides:{next_quality_label:i==null?void 0:i.qualityLabel,next_representation_id:i==null?void 0:i.id,next_video_codecs:i==null?void 0:i.codec,quality_label:j==null?void 0:j.qualityLabel,representation_id:j==null?void 0:j.id,video_codecs:j==null?void 0:j.codec},prevState:a,state:b});m.lastTrackedVideoRepresentation=c;u("quality_change")}else d==null&&d!==c&&(m.lastTrackedVideoRepresentation=c);!h&&g!=="paused"&&g!=="ended"&&f!=null&&f!==e?(I({eventType:"representation_ended",logDataOverrides:{audio_representation_id:f,next_representation_id:e},prevState:a,state:b}),m.lastTrackedAudioRepresentation=e,u("audio_change")):f==null&&f!==e&&(m.lastTrackedAudioRepresentation=e);return J}function X(a,b,d){var f=a.controlledState.error===d?babelHelpers["extends"]({},a,{controlledState:babelHelpers["extends"]({},a.controlledState,{error:{$ref:"$.player.lastError"}})}):a;a.uncontrolledState.videoElementError!=null&&(f=babelHelpers["extends"]({},f,{uncontrolledState:babelHelpers["extends"]({},f.uncontrolledState,{videoElementError:{code:a.uncontrolledState.videoElementError.code,message:a.uncontrolledState.videoElementError.message}})}));var g=b,h=typeof b.payload==="object"&&b.payload!=null?b.payload:null;if(h!=null){var j={};Object.keys(h).forEach(function(a){var b=h[a];b===d?j[a]={$ref:"$.player.lastError"}:j[a]=b});g=babelHelpers["extends"]({},b,{payload:j})}return{currentVideo:{audioStreamId:a.uncontrolledState.audioRepresentationID,dashAudioFormat:void 0,hasHD:void 0,hasRateLimit:void 0,hasSubtitles:a.controlledState.captionsLoaded,isDrm:Boolean(e.coreVideoPlayerMetaData.graphQLVideoDRMInfo),isHD:void 0,isLiveStream:e.coreVideoPlayerMetaData.isLiveStreaming,isRateLimited:void 0,liveManifestUrl:void 0,projection:void 0,resourceUrl:void 0,streamId:a.uncontrolledState.videoRepresentationID,streamType:a.controlledState.streamingFormat,tagHD:void 0,tagSD:void 0,videoID:e.coreVideoPlayerMetaData.videoFBID},player:{canPlayType:(i||(i=c("mapObject")))(c("VideoMimeTypes"),n),dimensions:e.dimensions?{height:e.dimensions.height,width:e.dimensions.width}:null,droppedFrames:a.uncontrolledState.videoElementDroppedFrameCount,initializationTime:void 0,initializationTimestamp:void 0,inPlayStallCount:void 0,inPlayStallTime:void 0,interruptCount:void 0,interruptTime:void 0,lastError:d,loggedError:m.lastLoggedError===d?{$ref:"$.player.lastError"}:m.lastLoggedError,stallCount:m.stallCount,stallTime:m.stallDuration,state:E(a),totalFrames:a.uncontrolledState.videoElementTotalFrameCount,version:a.playerVersion,videoSource:void 0,viewabilityPercentage:a.uncontrolledState.viewabilityPercentage},playerStateMachine:{action:g,state:f}}}function aa(a){var b=a.errorMessageFormat,c=a.errorName;a=a.errorCode==null||a.errorCode===""?c:a.errorCode;c=c+"#"+a+": "+ba(b);return c}function Y(a,b,c,e){a=X(a,b,c);b=c.errorMessageFormat;var f=c.errorName,g=c.errorType,h=c.url;c=c.errorCode==null||c.errorCode===""?f:c.errorCode;return{error:f,error_code:c,error_description:b,error_domain:f,error_type:(c=g)!=null?c:d("VideoPlayerImplementationErrorNormalization").getErrorTypeFromErrorName(f,b),error_user_info:JSON.stringify(babelHelpers["extends"]({},a,e)),resource_url:h}}var ba=function(a){return a.replace(/([0-9]{2,})/g,function(a){var b="";while(b.length<a.length)b+="#";return b})};function ca(a,b,d){if(!c("gkx")("24360"))return J;if(d.type==="implementation_warning"){var e,f=d.payload.warningError,g=aa(f),h=m.warningState.eventsLoggedTotal;e=(e=m.warningState.eventsLoggedPerKey.get(g))!=null?e:0;if(h<m.warningState.eventsMaxLoggedTotal&&e<m.warningState.eventsMaxLoggedPerKey){m.warningState.eventsLoggedTotal++;m.warningState.eventsLoggedPerKey.set(g,e+1);g=Y(b,d,f,{warning:{loggedPerKey:e+1,loggedTotal:h+1}});I({eventType:"player_warning",logDataOverrides:babelHelpers["extends"]({},G(),g),prevState:a,state:b})}}return J}function da(a,b,c){var d=b.controlledState.error;if(d!=null&&d!==m.lastLoggedError&&d.errorCode!=="410"){c=Y(b,c,d);I({eventType:"error",logDataOverrides:babelHelpers["extends"]({},G(),c),prevState:a,state:b});m.lastLoggedError=d}return J}function Z(a,b,c){var d=m.errorRecoveryAttemptState.currentRecoverableError;if(d!=null){c=Y(b,c,d);m.errorRecoveryAttemptState.eventsLogged++;m.errorRecoveryAttemptState.repeatCount=0;I({eventType:"error_recovery_attempt",logDataOverrides:babelHelpers["extends"]({},c),prevState:a,state:b})}return J}function ea(a,b,d){if(d.type==="error_recovery_attempt"&&m.errorRecoveryAttemptState.eventsLogged<l){var e=m.errorRecoveryAttemptState.currentRecoverableError,f=d.payload.recoverableError;if(f!=null&&f.errorName==="OZ_NETWORK"&&!c("NetworkStatus").isOnline())return J;m.errorRecoveryAttemptState.currentRecoverableError=f;e==null||e.errorName!==f.errorName||e.errorCode!==f.errorCode?Z(a,b,d):(m.errorRecoveryAttemptState.repeatCount++,m.errorRecoveryAttemptState.repeatCount>k&&Z(a,b,d))}return J}function fa(a,b,c){if(!o)return J;var d=b.uncontrolledState.videoElementPlaybackRate;c.type==="dom_event_ratechange"&&m.lastLoggedPlaybackSpeed!=null&&d!==0&&d!==m.lastLoggedPlaybackSpeed&&I({eventType:"playback_speed_changed",prevState:a,state:b});return J}function ga(a,b,c){c=b.controlledState.playbackState;c==="paused"||c==="ended"?m.nextHeartbeatTime=null:c!=="stalling"&&m.nextHeartbeatTime==null&&(m.nextHeartbeatTime=Date.now()+j);var d=m.nextHeartbeatTime;if(d!=null){var e=Date.now();e>=d&&(c!=="stalling"&&I({eventType:"heart_beat",prevState:a,state:b}),m.nextHeartbeatTime=e+j)}return J}function ha(a,b,c){if(c.type==="implementation_mounted"){I({eventType:"player_loaded",prevState:a,state:b});return J}else return J}function $(a,b,c){I({eventType:c?"entered_fs":"exited_fs",prevState:a,state:b})}function ia(a,b,c){e.coreVideoPlayerMetaData.playerFormat!==f.coreVideoPlayerMetaData.playerFormat&&I({eventType:"player_format_changed",prevState:a,state:b});return J}function ja(a,b,c){if(c.type==="dom_event_timeupdate"){c=m.nextPlayedThreeSecondsPlayheadPosition;if(c!=null){var d=b.uncontrolledState;d=d.videoElementPlayheadPosition;d!=null&&c<=d&&(I({eventType:"played_for_three_seconds",prevState:a,state:b}),m.nextPlayedThreeSecondsPlayheadPosition=null)}}return J}function ka(a,b,c){if(c.type!=="notify_fullscreen_changed")return J;c=m.lastLoggedFullscreenState;var d=b.uncontrolledState.isFullscreen;if(c!==!0&&d===!0){$(a,b,d);return J}else if(c===!0&&d===!1){$(a,b,d);return J}else return J}function la(a,b,d){d=e.coreVideoPlayerMetaData.adClientToken;if((d==null||d==="")&&c("gkx")("24380"))return J;d=b.controlledState.playbackState;var f=m.lastLoggedViewabilityPercentage,g=b.uncontrolledState.viewabilityPercentage;if(d!=="paused"&&d!=="ended"&&f!=null&&f!==g){I({eventType:"viewability_changed",prevState:a,state:b});return J}else return J}function ma(a,b,c){if(c.type==="controller_set_captions_visible_requested"){I({eventType:"caption_change",prevState:a,state:b});return J}else return J}function na(a){f=e;if(a.type==="notify_logging_metadata_change"){a=a.payload.loggingMetaData;e=a}}return{addDebugSubscriber:function(a){return t(a)},consumeLoggerEvents:function(){var a=g.splice(0);return a},getLoggerState:function(){return m},handleStateMachine:function(a,b,c){na(c);var d=b.controlledState.playbackState;y(a,b,c);x(a,b);var e=[ia,ka,la,N,O,Q,P,R,S,U,V,T,ha,ma,W,ca,da,ea,ga,fa].concat(s?[ja]:[]);e.forEach(function(d){d(a,b,c)});(d==="paused"||d==="ended")&&(m.canLogPlayingEvent=!0);c.type==="controller_pause_requested"&&(m.hasPausedOnce=!0,m.shouldIgnoreDomPause=!0);c.type==="controller_play_requested"&&(m.hasPausedOnce=!0,m.shouldIgnoreDomPlay=!0);c.type==="dom_event_pause"&&(m.shouldIgnoreDomPause=!1);c.type==="dom_event_play"&&(m.shouldIgnoreDomPlay=!1,m.lastLoggedViewabilityPercentage=b.uncontrolledState.viewabilityPercentage)},logVPLEvent:function(a){var b=a.eventType,c=a.logDataOverrides;a=a.state;I({eventType:b,logDataOverrides:c,prevState:a,state:a})},setAdditionalLogData:function(a,c){b.set(a,c)}}}g.HEARTBEAT_INTERVAL=j;g.createVideoPlayerImplementationStateMachineLogger=a}),98);
__d("convertToViewabilityPercentage",[],(function(a,b,c,d,e,f){"use strict";function a(a){if(a>=.99)return 100;else if(a>=.75)return 75;else if(a>=.5)return 50;else if(a>=.25)return 25;else if(a>=0)return 0;else return-2}f["default"]=a}),66);
__d("VideoPlayerImplementationStateMachineStateUncontrolledState",["NetworkStatus","convertToViewabilityPercentage","gkx","performance"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a){var b,d=a.engineExtrasAPI,e=a.fullscreenControllerRef,f=a.videoElementAPI,g=a.videoLiveTraceRef;a=a.videoPlayerPassiveViewabilityInfoRef;g=g.current;var i=Date.now(),j=typeof (h||(h=c("performance"))).now==="function"?(h||(h=c("performance"))).now():0;if(f==null){var k;return{audioRepresentationID:void 0,availableAudioTracks:[],availableQualities:[],availableVideoTracks:[],clockTimestamp:i,currentPlayingAudioTrackID:void 0,currentPlayingVideoQuality:void 0,estimatedBandwidth:void 0,isDocumentHidden:document.hidden,isDRM:void 0,isFBIsLiveTemplated:void 0,isFBMS:void 0,isFBWasLive:void 0,isFullscreen:e.current?e.current.getIsFullscreen():void 0,isMixedCodecManifest:null,isPredictiveDash:void 0,liveTraceContext:g?(k=g.getLiveTraceContext())!=null?k:void 0:void 0,manifestIdentifier:void 0,mpdValidationErrors:void 0,networkConnected:void 0,perfTimestamp:j,targetAudioTrack:null,targetVideoQuality:"",videoElementDebugCurrentSrc:void 0,videoElementDebugSrc:void 0,videoElementDroppedFrameCount:void 0,videoElementDuration:void 0,videoElementEnded:void 0,videoElementError:void 0,videoElementLastBufferEndPosition:void 0,videoElementMuted:void 0,videoElementNetworkState:void 0,videoElementPaused:void 0,videoElementPlaybackRate:void 0,videoElementPlayheadPosition:void 0,videoElementReadyState:void 0,videoElementTotalFrameCount:void 0,videoElementVolume:void 0,videoProjection:void 0,videoRepresentationID:void 0,viewabilityPercentage:void 0}}k=f.getPlayheadPosition();a=a&&a.current;a=a&&a.getCurrent();return{audioRepresentationID:d?d.getCurrentPlayingAudioRepresentationID():void 0,availableAudioTracks:(b=d==null?void 0:d.getAvailableAudioTracks())!=null?b:[],availableQualities:(b=d==null?void 0:d.getAvailableVideoQualities())!=null?b:[],availableVideoTracks:(b=d==null?void 0:d.getAvailableVideoTracks())!=null?b:[],clockTimestamp:i,currentPlayingAudioTrackID:d?d.getCurrentPlayingAudioRepresentationID():void 0,currentPlayingVideoQuality:d?d.getCurrentPlayingVideoQuality():void 0,estimatedBandwidth:d?d.getEstimatedBandwidth():void 0,isDocumentHidden:document.hidden,isDRM:d?d.isDrm():void 0,isFBIsLiveTemplated:d?d.isFBIsLiveTemplated():void 0,isFBMS:d?d.isFBMS():void 0,isFBWasLive:d?d.isFBWasLive():void 0,isFullscreen:e.current?e.current.getIsFullscreen():void 0,isMixedCodecManifest:d?d.isMixedCodecManifest():null,isPredictiveDash:d?d.isPredictiveDash():void 0,liveTraceContext:g?(b=g.getLiveTraceContext())!=null?b:void 0:void 0,manifestIdentifier:d?d.getManifestIdentifier():void 0,mpdValidationErrors:d?d.getMpdValidationErrors():void 0,networkConnected:c("NetworkStatus").isOnline(),perfTimestamp:j,targetAudioTrack:(i=d==null?void 0:d.getTargetAudioTrack())!=null?i:null,targetVideoQuality:(e=d==null?void 0:d.getCurrentTargetVideoQuality())!=null?e:"",videoElementDebugCurrentSrc:c("gkx")("24351")?(g=f.getUnderlyingVideoElement())==null?void 0:g.currentSrc:void 0,videoElementDebugSrc:c("gkx")("24351")?(b=f.getUnderlyingVideoElement())==null?void 0:b.src:void 0,videoElementDroppedFrameCount:f.getDroppedFrameCount(),videoElementDuration:f.getDuration(),videoElementEnded:f.getEnded(),videoElementError:f.getError(),videoElementLastBufferEndPosition:f.getLastBufferEndPosition(),videoElementMuted:f.getMuted(),videoElementNetworkState:f.getNetworkState(),videoElementPaused:f.getPaused(),videoElementPlaybackRate:f.getPlaybackRate(),videoElementPlayheadPosition:k,videoElementReadyState:f.getReadyState(),videoElementTotalFrameCount:f.getTotalFrameCount(),videoElementVolume:f.getVolume(),videoProjection:d==null?void 0:d.getVideoProjectionType(),videoRepresentationID:d?d.getCurrentPlayingVideoRepresentationID():void 0,viewabilityPercentage:a?c("convertToViewabilityPercentage")(a.visiblePercentage):void 0}}g.createVideoPlayerImplementationStateMachineStateUncontrolledState=a}),98);
__d("VideoPlayerImplementationStateMachineState",["VideoPlayerImplementationStateMachineStateUncontrolledState"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=a.alwaysShowCaptions,c=a.areCaptionsAutogenerated,e=a.captionDisplayStyle,f=a.dimensions,g=a.isAbrEnabled,h=a.playerVersion;a=a.streamingFormat;var i=!0,j=1,k=d("VideoPlayerImplementationStateMachineStateUncontrolledState").createVideoPlayerImplementationStateMachineStateUncontrolledState({engineExtrasAPI:null,fullscreenControllerRef:{current:null},videoElementAPI:null,videoLiveTraceRef:{current:null},videoPlayerPassiveViewabilityInfoRef:{current:null}});return{controlledState:{activeCaptions:null,activeEmsgBoxes:[],allEmsgBoxes:new Map(),bufferingDetected:!1,captionDisplayStyle:e,captionFormat:null,captionsLoaded:!1,captionsLocale:null,captionsVisible:b,dimensions:f,emsgObserverTokens:new Set(),error:null,hasPlayEverBeenRequested:!1,hostCallPlayIDLast:null,hostCallQueue:[],implementationSeekSourcePosition:null,inbandCaptionsAutogenerated:c,isDesktopPictureInPicture:!1,isLiveRewindActive:!1,lastBufferingType:null,lastMuteReason:null,lastPausedTimeMs:0,lastPauseReason:null,lastPlayedTimeMs:0,lastPlayReason:null,latencyLevel:"normal",loopCount:0,loopCurrent:0,mountState:"before_mounted",muted:i,playbackState:"paused",scrubbing:!1,seekableRanges:null,seeking:!1,seekTargetPosition:null,selectedVideoQuality:"notselected",selectedVideoVariant:null,streamEnded:!1,streamingFormat:a,streamInterrupted:!1,targetPlaybackRate:1,ullIneligibilityReason:null,volume:j,waitingForDomPlaying:!1,waitingForDomTimeUpdateAfterSeeked:!1,watchTimeMs:0},isAbrEnabled:g,playerVersion:h,uncontrolledState:k}}g.createVideoPlayerImplementationStateMachineInitialState=a}),98);
__d("useSEOLoggedOutWebCrawler",["gkx"],(function(a,b,c,d,e,f,g){"use strict";function a(){return c("gkx")("23157")}g["default"]=a}),98);
__d("VideoPlayerImplementationEngineAPI",["CometEventListener","CometVideoPictureInPictureManagerContext","CometVisualCompletion","CurrentUser","ErrorMetadata","FBLogger","MediaPlaybackCompoundEventStateMachineLogger","MediaPlaybackLogFlusher","PlaybackSpeedExperiments","RunComet","SubscriptionsHandler","VideoLiveTrace","VideoPlayerBanzaiLogFlusher","VideoPlayerCaptionsController","VideoPlayerImplementationReactVideoElement.react","VideoPlayerImplementationStateMachine","VideoPlayerImplementationStateMachineHostCallQueue","VideoPlayerImplementationStateMachineLogger","VideoPlayerImplementationStateMachineState","VideoPlayerImplementationStateMachineStateUncontrolledState","VideoPlayerVideoPixelsFitContext","clearTimeout","cr:2336","cr:355","cr:4596","cr:506","deepEquals","err","gkx","qex","react","recoverableViolation","removeFromArray","setTimeout","unrecoverableViolation","useConcurrentAutoplayManagementAPI","useSEOLoggedOutWebCrawler","useStable"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));f=h;var j=f.useEffect,k=f.useRef,l=f.useState,m=function(){function a(a){var b=a.pauseRequestCallbacks,c=a.playRequestCallbacks,d=a.scrubBeginRequestCallbacks;a=a.scrubEndRequestCallbacks;this.$1=c;this.$2=b;this.$3=d;this.$4=a}var b=a.prototype;b.playRequest=function(a){var b=this;this.$1.push(a);return function(){c("removeFromArray")(b.$1,a)}};b.pauseRequest=function(a){var b=this;this.$2.push(a);return function(){c("removeFromArray")(b.$2,a)}};b.scrubBeginRequest=function(a){var b=this;this.$3.push(a);return function(){c("removeFromArray")(b.$3,a)}};b.scrubEndRequest=function(a){var b=this;this.$4.push(a);return function(){c("removeFromArray")(b.$4,a)}};return a}();function n(a){var b=a.concurrentAutoplayManagementAPI,d=a.debugAPI,e=a.exitPictureInPictureImpl,f=a.fullscreenControllerRef,g=a.getCurrentExposedState,h=a.getCurrentIsDesktopPictureInPicture,i=a.getCurrentIsFullscreen,j=a.getCurrentLiveRewindPlayheadPosition,k=a.getCurrentPlayheadPosition,l=a.internal_getCurrentStateMachineState,n=a.loggerAPI,o=a.pauseImpl,p=a.playImpl,q=a.registerEmsgObserverImpl,r=a.requestPictureInPictureImpl,s=a.scrubBeginImpl,t=a.scrubEndImpl,u=a.seekImpl,v=a.selectVideoQualityImpl,w=a.selectVideoVariantImpl,x=a.setCaptionsDisplayStyleImpl,y=a.setCaptionsUrlImpl,z=a.setCaptionsVisibleImpl,A=a.setIsLiveRewindActiveImpl,B=a.setLatencyLevelImpl,C=a.setMutedImpl,D=a.setPictureInPictureStateImpl,E=a.setPlaybackRateImpl,F=a.setVolumeImpl,G=a.subscribers,H=a.unregisterEmsgObserverImpl,I=a.videoElementAPIRef,J=new Set(),K=!1,L=null,M=[],N=[],O=[],P=[],Q=new m({pauseRequestCallbacks:N,playRequestCallbacks:M,scrubBeginRequestCallbacks:O,scrubEndRequestCallbacks:P}),R={freeze:function(){if(!g().paused)throw c("unrecoverableViolation")("Video player must be paused before the controller freeze","comet_video_player");var a={};try{var b=!1;J.size===0&&(b=!0,L={exposedState:g(),isFullscreen:i(),liveRewindPlayheadPosition:j(),playheadPosition:k(),stateMachineState:l()});J.add(a);b&&(K=!0,G.forEach(function(a){a()}))}finally{K=!1}return a},isFrozen:function(){return L!=null},unfreeze:function(a){if(!J.has(a))throw c("unrecoverableViolation")("Video player controller unfreeze token not found","comet_video_player");J["delete"](a);J.size===0&&(L=null,G.forEach(function(a){a()}))}},S=babelHelpers["extends"]({},b,R,n,{debugAPI:d,exitPictureInPicture:function(){if(R.isFrozen())return;e()},getCurrentState:function(){return L!=null?L.exposedState:g()},getIsDesktopPictureInPicture:function(){return L!=null?L.isFullscreen:h()},getIsFullscreen:function(){return L!=null?L.isFullscreen:i()},getLiveRewindPlayheadPosition:function(){return L!=null?L.liveRewindPlayheadPosition:j()},getPlayheadPosition:function(){return L!=null?L.playheadPosition:k()},internal_getStateMachineState:function(){return L!=null?L.stateMachineState:l()},internal_getVideoElement:function(){var a=I.current;if(a!=null){a=a.getUnderlyingVideoElement();return a}return null},internal_getVideoPixelsDimensions:function(){var a=I.current;return(a=a==null?void 0:a.getVideoPixelsDimensions())!=null?a:null},observeOn:function(){return Q},pause:function(a){if(R.isFrozen())return;N.forEach(function(b){return b(a)});o(a)},play:function(a){if(R.isFrozen())return;M.forEach(function(b){return b(a)});p(a)},registerEmsgObserver:function(){var a={};q(a);return a},requestPictureInPicture:function(){if(R.isFrozen())return;r()},requestSetIsFullscreen:function(a){if(R.isFrozen())return;var b=f.current;if(b){var c=S.internal_getVideoElement();b.requestSetIsFullscreen(a,c)}},scrollIntoView:function(a){var b=S.internal_getVideoElement();b&&b.scrollIntoView(a)},scrubBegin:function(){if(R.isFrozen())return;O.forEach(function(a){return a()});s()},scrubEnd:function(a){if(R.isFrozen())return;P.forEach(function(b){return b(a)});t(a)},seek:function(a){if(R.isFrozen())return;u(a)},selectVideoQuality:function(a){if(R.isFrozen())return;v(a)},selectVideoVariant:function(a){if(R.isFrozen())return;w(a)},setCaptionsDisplayStyle:function(a){if(R.isFrozen())return;x(a)},setCaptionsUrl:function(a){if(R.isFrozen())return;y(a)},setCaptionsVisible:function(a){if(R.isFrozen())return;z(a)},setIsLiveRewindActive:function(a){if(R.isFrozen())return;A(a)},setLatencyLevel:function(a){if(R.isFrozen())return;B(a)},setMuted:function(a,b){if(R.isFrozen())return;C(a,b)},setPictureInPictureState:function(a){if(R.isFrozen())return;D(a)},setPlaybackRate:function(a){if(R.isFrozen())return;E(a)},setVolume:function(a){if(R.isFrozen())return;F(a)},subscribe:function(a){var b=function(){if(R.isFrozen()&&!K)return;a()},d=f.current,e=d?d.subscribe(b):null;G.push(b);return{remove:function(){e&&e.remove(),c("removeFromArray")(G,b)}}},unregisterEmsgObserver:function(a){H(a)},videoElementAPIRef:I});return S}function o(a){var b=a.concurrentAutoplayManagementAPI,c=a.createExposedState,d=a.debugAPI,e=a.fullscreenControllerRef,f=a.logger,g=a.machine,h=a.mediaLogger,i=a.subscribers,j=a.videoElementAPIRef;a={logVPLEvent_DO_NOT_USE:function(a,b){f.logVPLEvent({eventType:a,logDataOverrides:b,state:g.getCurrentState()})},setAdditionalLogData:function(a,b){f.setAdditionalLogData(a,b)},setSNAPLAdditionalLogData:function(a){h==null?void 0:h.setSNAPLAdditionalLogData(a)}};return n({concurrentAutoplayManagementAPI:b,debugAPI:d,exitPictureInPictureImpl:function(){g.dispatch({type:"controller_picture_in_picture_exit_requested"})},fullscreenControllerRef:e,getCurrentExposedState:function(){return c(g.getCurrentState())},getCurrentIsDesktopPictureInPicture:function(){var a;return(a=g.getCurrentState().controlledState.isDesktopPictureInPicture)!=null?a:!1},getCurrentIsFullscreen:function(){var a=e.current;return a?a.getIsFullscreen():!1},getCurrentLiveRewindPlayheadPosition:function(){var a=g.getCurrentState();a=a.controlledState;var b=a.isLiveRewindActive,c=a.seekableRanges;a=a.seekTargetPosition;if(!b||a==null)return null;c=(b=c==null?void 0:c.end(0))!=null?b:0;return a-c},getCurrentPlayheadPosition:function(){var a,b=0;return(a=(a=(a=j.current)==null?void 0:a.getPlayheadPosition())!=null?a:g.getCurrentState().uncontrolledState.videoElementPlayheadPosition)!=null?a:b},internal_getCurrentStateMachineState:function(){return g.getCurrentState()},loggerAPI:a,pauseImpl:function(a){g.dispatch({payload:{reason:a},type:"controller_pause_requested"})},playImpl:function(a){g.dispatch({payload:{reason:a},type:"controller_play_requested"})},registerEmsgObserverImpl:function(a){g.dispatch({payload:{token:a},type:"register_emsg_observer"})},requestPictureInPictureImpl:function(){g.dispatch({type:"controller_picture_in_picture_requested"})},scrubBeginImpl:function(){g.dispatch({type:"controller_scrub_begin_requested"})},scrubEndImpl:function(a){g.dispatch({payload:{seekTargetPosition:a},type:"controller_scrub_end_requested"})},seekImpl:function(a){g.dispatch({payload:{seekTargetPosition:a},type:"controller_seek_requested"})},selectVideoQualityImpl:function(a){g.dispatch({payload:{selectedVideoQuality:a},type:"controller_quality_requested"})},selectVideoVariantImpl:function(a){g.dispatch({payload:{selectedVideoVariant:a},type:"controller_video_variant_requested"})},setCaptionsDisplayStyleImpl:function(a){g.dispatch({payload:{captionDisplayStyle:a},type:"controller_set_caption_display_style_requested"})},setCaptionsUrlImpl:function(a){g.dispatch({payload:{captionsUrl:a},type:"controller_set_captions_url_requested"})},setCaptionsVisibleImpl:function(a){g.dispatch({payload:{captionsVisible:a},type:"controller_set_captions_visible_requested"})},setIsLiveRewindActiveImpl:function(a){g.dispatch({payload:{isLiveRewindActive:a},type:"controller_set_is_live_rewind_active_requested"})},setLatencyLevelImpl:function(a){g.dispatch({payload:{latencyLevel:a},type:"controller_set_latency_level_requested"})},setMutedImpl:function(a,b){g.dispatch({payload:{muted:a,reason:b},type:"controller_muted_requested"})},setPictureInPictureStateImpl:function(a){g.dispatch({payload:{isInPictureInPictureMode:a},type:"controller_set_picture_in_picture_state_requested"})},setPlaybackRateImpl:function(a){g.dispatch({payload:{playbackRate:a},type:"controller_set_playback_rate"})},setVolumeImpl:function(a){g.dispatch({payload:{volume:a},type:"controller_volume_requested"})},subscribers:i,unregisterEmsgObserverImpl:function(a){g.dispatch({payload:{token:a},type:"unregister_emsg_observer"})},videoElementAPIRef:j})}function p(a){a=a.current;if(a==null)throw c("unrecoverableViolation")("Attempted to access VideoElementAPI while it is not available.","comet_video_player");return a}function q(a){var b=a.alwaysShowCaptions,e=a.areCaptionsAutogenerated,f=a.captionDisplayStyle,g=a.captionsControllerRef,h=a.debugLogId,i=a.dimensions,j=a.engineExtrasAPI,k=a.engineMetadata,l=a.fullscreenControllerRef,m=a.handleFatalError,n=a.handleStateMachine,o=a.videoElementAPIRef,q=a.videoLiveTraceRef,s=a.videoPlayerPassiveViewabilityInfoRef;function t(a){d("VideoPlayerImplementationStateMachineHostCallQueue").applyOrQueueHostCall({engineExtrasAPI:j,hostCall:a,machine:v,videoElementAPI:o.current})}var u=null;a=[function(a,b,d){d.type==="implementation_host_call_applied"&&d.payload.hostCall.type==="host_call_play"&&b.controlledState.lastPlayReason==="autoplay_initiated"?c("CometVisualCompletion").addFirstMarkerPoint("firstVideoAutoplayStalling"):b.controlledState.playbackState!==a.controlledState.playbackState&&b.controlledState.playbackState==="playing"&&b.controlledState.lastPlayReason==="autoplay_initiated"&&c("CometVisualCompletion").addFirstMarkerPoint("firstVideoAutoplayPlaying");return!0},function(a,b,c){n(a,b,c);return!0},function(a,b,c){return!0},function(a,b,c){if(a.controlledState.bufferingDetected===!1&&b.controlledState.bufferingDetected===!0||a.controlledState.bufferingDetected===!0&&b.controlledState.bufferingDetected===!1)if(b.controlledState.bufferingDetected){a=(c=b.controlledState.lastBufferingType)!=null?c:"in_play";c=j.getPerfLoggerProvider();u=c?c.getOperationLogger("buffering").setState("buffering").setType(a).start():null}else!b.controlledState.bufferingDetected&&u!=null&&(u.log(),u=null);return!0},function(a,b,c){return c.type!=="implementation_engine_destroy_requested"?!0:!1},function(a,b,c){if(c.type!=="implementation_engine_initialized")return!0;a=p(o);c=c.type;d("VideoPlayerImplementationStateMachineHostCallQueue").flushHostCallQueue({engineExtrasAPI:j,machine:v,reason:c,state:b,videoElementAPI:a});return!1},function(a,b,c){if(c.type!=="dom_event_ended")return!0;a=b.controlledState;(a.loopCount>0&&a.loopCurrent<a.loopCount||a.loopCount===-1)&&v.dispatch({payload:{reason:"loop_initiated"},type:"controller_play_requested"});return!1},function(a,b,c){if(c.type!=="controller_pause_requested")return!0;a=b.controlledState.playbackState;if(a!=="paused")return!1;t({payload:{hostCallID:d("VideoPlayerImplementationStateMachineHostCallQueue").makeHostCallID(),reason:c.type},type:"host_call_pause"});return!1},function(a,b,c){if(c.type!=="controller_play_requested")return!0;a=b.controlledState.playbackState;if(a!=="stalling")return!1;t({payload:{hostCallID:d("VideoPlayerImplementationStateMachineHostCallQueue").makeHostCallID(),reason:c.type},type:"host_call_play"});return!1},function(a,b,c){if(c.type!=="controller_seek_requested")return!0;a=b.controlledState;b=a.seeking;a=a.seekTargetPosition;b&&a!=null&&t({payload:{currentTime:a,hostCallID:d("VideoPlayerImplementationStateMachineHostCallQueue").makeHostCallID(),reason:c.type},type:"host_call_set_current_time"});return!1},function(a,b,c){if(c.type!=="controller_muted_requested")return!0;a=b.controlledState.muted;if(a!==c.payload.muted)return!1;t({payload:{hostCallID:d("VideoPlayerImplementationStateMachineHostCallQueue").makeHostCallID(),muted:a,reason:c.type},type:"host_call_set_muted"});return!1},function(a,b,c){if(c.type!=="controller_scrub_begin_requested")return!0;t({payload:{hostCallID:d("VideoPlayerImplementationStateMachineHostCallQueue").makeHostCallID(),playbackRate:0,reason:c.type},type:"host_call_set_playback_rate"});return!1},function(a,b,c){if(c.type!=="controller_scrub_end_requested")return!0;a=b.controlledState;b=a.seeking;var e=a.seekTargetPosition;a=a.targetPlaybackRate;b&&e!=null?(t({payload:{hostCallID:d("VideoPlayerImplementationStateMachineHostCallQueue").makeHostCallID(),playbackRate:a,reason:c.type+":seek"},type:"host_call_set_playback_rate"}),t({payload:{currentTime:e,hostCallID:d("VideoPlayerImplementationStateMachineHostCallQueue").makeHostCallID(),reason:c.type+":seek"},type:"host_call_set_current_time"})):t({payload:{hostCallID:d("VideoPlayerImplementationStateMachineHostCallQueue").makeHostCallID(),playbackRate:a,reason:c.type+":cancel"},type:"host_call_set_playback_rate"});return!1},function(a,b,c){if(c.type!=="buffering_begin_requested")return!0;t({payload:{hostCallID:d("VideoPlayerImplementationStateMachineHostCallQueue").makeHostCallID(),playbackRate:0,reason:c.type},type:"host_call_set_playback_rate"});return!1},function(a,b,c){if(c.type!=="controller_set_playback_rate")return!0;t({payload:{hostCallID:d("VideoPlayerImplementationStateMachineHostCallQueue").makeHostCallID(),playbackRate:c.payload.playbackRate,reason:c.type},type:"host_call_set_playback_rate"});return!1},function(a,b,c){if(c.type!=="buffering_end_requested")return!0;t({payload:{hostCallID:d("VideoPlayerImplementationStateMachineHostCallQueue").makeHostCallID(),playbackRate:b.controlledState.targetPlaybackRate,reason:c.type},type:"host_call_set_playback_rate"});return!1},function(a,b,c){if(c.type!=="controller_volume_requested")return!0;t({payload:{hostCallID:d("VideoPlayerImplementationStateMachineHostCallQueue").makeHostCallID(),reason:c.type,volume:b.controlledState.volume},type:"host_call_set_volume"});return!1},function(a,b,c){if(c.type!=="controller_video_variant_requested")return!0;t({payload:{hostCallID:d("VideoPlayerImplementationStateMachineHostCallQueue").makeHostCallID(),reason:c.type,selectedVideoVariant:b.controlledState.selectedVideoVariant},type:"host_call_set_video_variant"});return!1},function(a,b,c){if(c.type!=="controller_quality_requested")return!0;t({payload:{hostCallID:d("VideoPlayerImplementationStateMachineHostCallQueue").makeHostCallID(),reason:c.type,selectedVideoQuality:b.controlledState.selectedVideoQuality},type:"host_call_set_video_quality"});return!1},function(a,b,c){if(!(c.type==="controller_set_latency_level_requested"||c.type==="implementation_set_latency_level_requested"))return!0;t({payload:{hostCallID:d("VideoPlayerImplementationStateMachineHostCallQueue").makeHostCallID(),latencyLevel:c.payload.latencyLevel,reason:c.type},type:"host_call_set_latency_level"});return!1},function(a,b,c){if(!(c.type==="dom_event_timeupdate"||c.type==="captions_loaded"))return!0;c=g.current;var e=b.controlledState.captionsVisible,f=o.current;f=f?f.getPlayheadPosition():0;if(d("PlaybackSpeedExperiments").enableCometPlaybackSpeedControl()&&b.controlledState.isLiveRewindActive){var h=b.controlledState.seekableRanges;h=h!=null?(h=h.end(h.length()-1))!=null?h:0:0;f>=h&&v.dispatch({payload:{isLiveRewindActive:!1},type:"controller_set_is_live_rewind_active_requested"})}if(!j.getRepresentationCaptionsExpectedFromManifest()&&c&&e&&b.controlledState.captionsLoaded){h=c.handleTimeUpdate(f);e=c.getCaptionFormat();b=a.controlledState.activeCaptions;c=a.controlledState.captionFormat;e!==c&&v.dispatch({payload:{captionFormat:e},type:"controller_set_caption_format_requested"});r(b,h)&&v.dispatch({payload:{activeCaptions:h,captionsLocale:null},type:"controller_set_active_captions_requested"})}a=q.current;a!=null&&a.onUpdateStatus({position:f});return!1},function(a,b,c){if(c.type!=="cea608_bytes_received")return!0;a=g.current;if(a){b=c.payload;c=b.timescale;b=b.videoBytes;a.handleCea608BytesReceived({timescale:c,videoBytes:b})}return!1},function(a,b,c){if(c.type!=="controller_set_captions_url_requested")return!0;a=g.current;if(a){b=c.payload.captionsUrl;a.updateCaptionsUrl(b)}return!1},function(a,b,c){if(c.type!=="controller_set_is_live_rewind_active_requested")return!0;j.setEnableLiveheadCatchup(!c.payload.isLiveRewindActive);!!d("PlaybackSpeedExperiments").enableCometPlaybackSpeedControl()&&!c.payload.isLiveRewindActive&&v.dispatch({payload:{playbackRate:1},type:"controller_set_playback_rate"});return!1},function(a,b,c){if(c.type!=="controller_picture_in_picture_requested")return!0;t({payload:{hostCallID:d("VideoPlayerImplementationStateMachineHostCallQueue").makeHostCallID(),reason:c.type},type:"host_call_picture_in_picture"});return!1},function(a,b,c){if(c.type!=="controller_picture_in_picture_exit_requested")return!0;t({payload:{hostCallID:d("VideoPlayerImplementationStateMachineHostCallQueue").makeHostCallID(),reason:c.type},type:"host_call_exit_picture_in_picture"});return!1}];var v=d("VideoPlayerImplementationStateMachine").createVideoPlayerImplementationStateMachineWithStateTransitionHandlers({collectUncontrolledState:function(){var a=o.current;return d("VideoPlayerImplementationStateMachineStateUncontrolledState").createVideoPlayerImplementationStateMachineStateUncontrolledState({engineExtrasAPI:j,fullscreenControllerRef:l,videoElementAPI:a,videoLiveTraceRef:q,videoPlayerPassiveViewabilityInfoRef:s})},debugLogId:h,initialState:d("VideoPlayerImplementationStateMachineState").createVideoPlayerImplementationStateMachineInitialState({alwaysShowCaptions:b,areCaptionsAutogenerated:e,captionDisplayStyle:f,dimensions:i,isAbrEnabled:k.isAbrEnabled,playerVersion:k.playerVersion,streamingFormat:k.streamingFormat}),onFatalError:m,stateTransitionHandlers:a});return v}function r(a,b){if(a===null&&b===null)return!1;if(a===null||b===null)return!0;var c=(b=b.rows)!=null?b:[];a=(b=a.rows)!=null?b:[];return a.length!==c.length||a.some(function(a,b){return a!==c[b]})}function s(a,b,c,d){a!==b.current&&(c.current&&(c.current.remove(),c.current=null),b.current=a),b.current&&!c.current&&(c.current=b.current.subscribe(function(){d.dispatch({type:"notify_fullscreen_changed"})}))}function t(a,b,c,d){a!==b.current&&(c.current&&(c.current.remove(),c.current=null),b.current=a),b.current&&!c.current&&(c.current=b.current.subscribe(function(){d.dispatch({type:"notify_viewability_changed"})}))}function u(a){var b=a.engineMetadata;a=a.state;var c=a.controlledState,d=c.activeCaptions,e=c.activeEmsgBoxes,f=c.captionDisplayStyle,g=c.captionsLoaded,h=c.captionsVisible,i=c.error,j=c.hasPlayEverBeenRequested,k=c.implementationSeekSourcePosition,l=c.inbandCaptionsAutogenerated,m=c.isDesktopPictureInPicture,n=c.isLiveRewindActive,o=c.lastMuteReason,p=c.lastPauseReason,q=c.lastPlayedTimeMs,r=c.lastPlayReason,s=c.latencyLevel,t=c.loopCount,u=c.loopCurrent,v=c.muted,w=c.playbackState,x=c.seekableRanges,y=c.seeking,z=c.seekTargetPosition,A=c.selectedVideoQuality,B=c.streamingFormat,C=c.streamInterrupted,D=c.targetPlaybackRate,E=c.ullIneligibilityReason,F=c.volume;c=c.watchTimeMs;var G=a.uncontrolledState,H=G.availableAudioTracks,I=G.availableQualities,J=G.availableVideoTracks,K=G.currentPlayingAudioTrackID,L=G.currentPlayingVideoQuality,M=G.isDRM,N=G.isFullscreen,O=G.targetAudioTrack,P=G.targetVideoQuality,Q=G.videoElementDuration,R=G.videoElementLastBufferEndPosition,S=G.videoProjection;G=G.videoRepresentationID;var T=w==="ended",U=w==="paused"||T,V=w==="playing",W=w==="inPlayStalling";w=w==="stalling"||W;f={activeCaptions:d,activeEmsgBoxes:e,availableAudioTracks:H,availableVideoQualities:I,availableVideoTracks:J,bufferEnd:(d=R)!=null?d:0,captionDisplayStyle:f,captionsLoaded:g,captionsVisible:h,currentAudioTrackID:(e=K)!=null?e:null,currentVideoQuality:(H=L)!=null?H:"",duration:(I=Q)!=null?I:0,ended:T,error:i,hasPlayEverBeenRequested:j,inbandCaptionsAutogenerated:l,inPlayStalling:W,isAbrEnabled:b.isAbrEnabled,isDesktopPictureInPicture:(J=m)!=null?J:!1,isDRM:(R=M)!=null?R:null,isFullscreen:(d=N)!=null?d:!1,isLiveRewindActive:n,lastMuteReason:o,lastPauseReason:p,lastPlayedTimeMs:q,lastPlayReason:r,latencyLevel:s,loopCount:t,loopCurrent:u,muted:v,paused:U,playerVersion:a.playerVersion,playing:V,seekableRanges:x,seeking:y,seekSourcePosition:k,seekTargetPosition:z,selectedVideoQuality:A,stalling:w,streamingFormat:B,streamInterrupted:C,targetAudioTrack:O,targetPlaybackRate:D,targetVideoQuality:P,ullIneligibilityReason:E,videoProjection:S,videoRepresentationID:G,volume:F,watchTimeMs:c};return f}function a(a){var e=a.checkInDOM,f=a.createDebugAPI,g=a.createVideoPlayerError,h=a.debugLog,i=a.debugLogId,j=a.destroyEngineParts,k=a.engineExtrasAPI,l=a.engineMetadata,m=a.handleFatalError,n=a.handleVideoElementChanged,p=a.handleVideoInfoChange,r=a.initialProps,v=a.setExposedStateInReact,w=r.loggingMetaData.instanceKey;h=r.loggingMetaData.coreVideoPlayerMetaData;a=h.broadcastId;var x=h.isLiveStreaming;h=h.isLiveTraceEnabled;var y={current:Boolean(x)&&Boolean(h)&&a!=null?new(c("VideoLiveTrace"))(a,w,c("CurrentUser").getAccountID()):null},z=d("VideoPlayerImplementationStateMachineLogger").createVideoPlayerImplementationStateMachineLogger({debugLogId:i,initialLoggingMetaData:r.loggingMetaData,videoLiveTraceRef:y}),A=new(c("VideoPlayerBanzaiLogFlusher"))(z),B=r.enableSNAPL?d("MediaPlaybackCompoundEventStateMachineLogger").createMediaPlaybackCompoundEventStateMachineLogger({debugLogId:i,initialLoggingMetaData:r.loggingMetaData,metadataProvider:r.createSNAPLMetadataProvider==null?void 0:r.createSNAPLMetadataProvider()}):null,C=B!=null?new(c("MediaPlaybackLogFlusher"))(B):null,D={current:(x=r.videoPlayerPassiveViewabilityInfo)!=null?x:null},E={current:(h=r.fullscreenController)!=null?h:null},F={current:null};a=d("useConcurrentAutoplayManagementAPI").createConcurrentAutoplayManagementAPI();var G=[],H=function(){G.forEach(function(a){a()}),r.disableLogging||r.disableVPLLogging?A.discardLogsWithoutFlushing():A.flushLogs(),!r.enableSNAPL||r.disableLogging?C==null?void 0:C.discardLogsWithoutFlushing():C==null?void 0:C.flushLogs()},I={current:r.onExposedStateChanged},J={current:null},K=null,L={current:{inbandCaptionsAutogeneratedFromManifest:!1,inbandCaptionsExpectedFromManifest:!1,inbandCaptionsExpectedFromProps:r.inbandCaptionsExpected,representationCaptionsExpectedFromManifest:!1,sideLoadCaptionsExpectedFromProps:r.sideLoadCaptionsExpected,sideLoadCaptionsUrlFromProps:(x=r.sideLoadCaptionsUrl)!=null?x:null}},M={current:null},N={current:null},O=new(c("SubscriptionsHandler"))(),P=new(c("SubscriptionsHandler"))(),Q="before_mounted";function R(a){if(c("gkx")("24349"))return a.controlledState.mountState==="mounted_onscreen"||a.controlledState.mountState==="mounted_offscreen";else return Q==="mounted"}var S={current:null},T=function(a){a=u({engineMetadata:l,state:a});return a},U={current:null},V={current:null},W=function(a){if(R(a)){if(a===U.current)return;var b=T(a);if(V.current!=null&&c("deepEquals")(V.current,b))return;U.current=a;V.current=b;v(b);a=I.current;a&&a({implementationController:ma,implementationExposedState:b})}};h=function(a,b,c){z.handleStateMachine(a,b,c),B==null?void 0:B.handleStateMachine(a,b,c),W(b),H()};var X=function(a,b){};x=function(a){X(a,"state_machine_fatal_error")};var Y=q({alwaysShowCaptions:Boolean(r.alwaysShowCaptions),areCaptionsAutogenerated:Boolean(r.areCaptionsAutogenerated),captionDisplayStyle:r.captionDisplayStyle,captionsControllerRef:F,debugLogId:i,dimensions:r.dimensions,engineExtrasAPI:k,engineMetadata:l,fullscreenControllerRef:E,handleFatalError:x,handleStateMachine:h,videoElementAPIRef:S,videoLiveTraceRef:y,videoPlayerPassiveViewabilityInfoRef:D}),aa=!1,Z=function(a){var b=J.current!=null,d=S.current!=null;O.release();Y.dispatch({payload:{reason:a,videoElementAPIExisted:d,videoElementExisted:b},type:"implementation_engine_destroy_requested"});try{aa||(aa=!0,j(["destroyEngine("+a+")"]))}catch(g){try{var e=c("FBLogger")("comet_video_player").catching(g),f=r.videoFBID;f!=null&&(e=e.addMetadata("COMET_VIDEO","VIDEO_ID",f));e=e.addMetadata("COMET_VIDEO","VIDEO_IMPLEMENTATION_DEBUG_DATA",JSON.stringify({destroy_reason:a,player_instance_key:w,player_version:l.playerVersion,video_element_api_existed:d,video_element_existed:b}));e.warn("Error thrown by destroyEngineParts: %s",g.message)}catch(a){}}f=F.current;f!=null&&(Y.getCurrentState().controlledState.captionsLoaded&&Y.dispatch({type:"captions_unloaded"}),F.current=null,f.destroy());s(null,E,M,Y);t(null,D,N,Y);Y.dispatch({payload:{reason:a,videoElementAPIExisted:d,videoElementExisted:b},type:"implementation_engine_destroyed"})};X=function(a,b){a=g(a,b);Y.dispatch({payload:{fatalError:a},type:"implementation_fatal_error"});Z("implementation_fatal_error");m(a)};function ba(a){return a.sideLoadCaptionsExpectedFromProps||a.sideLoadCaptionsUrlFromProps!=null}function ca(a){return a.inbandCaptionsExpectedFromProps&&((a=a.inbandCaptionsExpectedFromManifest)!=null?a:!1)}function da(a){return(a=a.inbandCaptionsAutogeneratedFromManifest)!=null?a:!1}var ea=function(a){var b=ba(a),c=ca(a),e=da(a),f=F.current;e!==da(L.current)&&Y.dispatch({payload:{inbandCaptionsAutogenerated:e},type:"inband_captions_autogenerated_changed"});f!=null?c!==ca(L.current)&&(f.updateInbandCaptionsExpected(c),!c&&Y.getCurrentState().controlledState.captionsLoaded&&Y.dispatch({type:"captions_unloaded"})):(b||c)&&f==null&&(F.current=d("VideoPlayerCaptionsController").createCaptionsController({captionsUrl:b?a.sideLoadCaptionsUrlFromProps:null,inbandCaptionsExpected:c,onCaptionsLoaded:function(){Y.dispatch({type:"captions_loaded"})}}));L.current=a},fa=function(a){k!=null&&a&&a.width>0&&a.height>0&&(k.setDimensions(a),Y.dispatch({payload:{dimensions:{height:a.height,width:a.width}},type:"player_dimensions_changed"}))},ga=function(a){a!==Y.getCurrentState().controlledState.loopCount&&Y.dispatch({payload:{loopCount:a},type:"loop_count_change_requested"})},ha=function(a){"srcObject"in a&&(a.srcObject=null),a.removeAttribute("src"),P.release(),P.engage()},ia=function(a,e){if(J.current===a)return;a!=null&&J.current!=null&&J.current!==a&&c("recoverableViolation")("The video element was recreated","comet_video_player");K!=null&&K();var f=J.current;f&&ha(f);J.current=a;b("cr:506")!=null&&a!=null&&(K=b("cr:506")(a,i));a!=null?(P.addSubscriptions(c("CometEventListener").listen(a,"enterpictureinpicture",function(){var a=d("CometVideoPictureInPictureManagerContext").isInPictureInPictureExp();a&&Y.dispatch({payload:{isInPictureInPictureMode:!0},type:"controller_set_picture_in_picture_state_requested"})}),c("CometEventListener").listen(a,"leavepictureinpicture",function(){var a=d("CometVideoPictureInPictureManagerContext").isInPictureInPictureExp();a&&Y.dispatch({payload:{isInPictureInPictureMode:!1},type:"controller_set_picture_in_picture_state_requested"})})),Y.dispatch({type:"implementation_video_node_mounted"}),n(a,[].concat(e,["handleVideoElement(non-null)"]))):(Y.dispatch({type:"implementation_video_node_unmounted"}),n(null,[].concat(e,["handleVideoElement(null)"])))};x=r.loggingMetaData.instanceKey;h=function(a){var b;I.current=a.onExposedStateChanged;if(!R(Y.getCurrentState()))return;s((b=a.fullscreenController)!=null?b:null,E,M,Y);t((b=a.videoPlayerPassiveViewabilityInfo)!=null?b:null,D,N,Y);if(!p(a)){b={inbandCaptionsAutogeneratedFromManifest:L.current.inbandCaptionsAutogeneratedFromManifest,inbandCaptionsExpectedFromManifest:L.current.inbandCaptionsExpectedFromManifest,inbandCaptionsExpectedFromProps:a.inbandCaptionsExpected,representationCaptionsExpectedFromManifest:L.current.representationCaptionsExpectedFromManifest,sideLoadCaptionsExpectedFromProps:a.sideLoadCaptionsExpected,sideLoadCaptionsUrlFromProps:(b=a.sideLoadCaptionsUrl)!=null?b:null};ea(b);fa(a.dimensions);ga((b=a.loopCount)!=null?b:0)}Y.dispatch({payload:{loggingMetaData:a.loggingMetaData},type:"notify_logging_metadata_change"})};var $=null;x=function(){var a=Y.getCurrentState().controlledState.mountState;switch(a){case"before_mounted":O.addSubscriptions(d("RunComet").onUnload(function(){Z("page_unload")}));Y.dispatch({type:"implementation_mounted"});n(J.current,["handleReactEffectInit(before_mounted)"]);break;case"mounted_onscreen":break;case"mounted_offscreen":c("clearTimeout")($);$=null;Y.dispatch({type:"implementation_onscreen"});break;case"unmounted":break;default:a}};var ja=function(){var a=function a(){c("clearTimeout")($);$=null;if(Y.getCurrentState().controlledState.mountState==="unmounted")return;var b=e();!b?(Y.dispatch({payload:{reason:"react_effect_cleanup"},type:"implementation_unmounted"}),Z("implementation_unmounted:react_effect_cleanup")):$=c("setTimeout")(a,1e3)},b=Y.getCurrentState().controlledState.mountState;switch(b){case"before_mounted":break;case"mounted_onscreen":Y.dispatch({type:"implementation_offscreen"});a();break;case"mounted_offscreen":a();break;case"unmounted":break}},ka=function(){R(Y.getCurrentState())||(Q="mounted",O.addSubscriptions(d("RunComet").onUnload(function(){Z("page_unload")})),Y.dispatch({type:"implementation_mounted"}),n(J.current,["handleReactMount"]))},la=function(){R(Y.getCurrentState())&&(Q="unmounted",Y.dispatch({payload:{reason:"react_effect_cleanup"},type:"implementation_unmounted"}),Z("implementation_unmounted:react_effect_cleanup"))},ma=o({concurrentAutoplayManagementAPI:a,createExposedState:T,debugAPI:f({getVideoElementAPI:function(){return S.current},logger:z}),fullscreenControllerRef:E,logger:z,machine:Y,mediaLogger:B,subscribers:G,videoElementAPIRef:S});a=d("VideoPlayerImplementationStateMachine").createReactVideoElementCallbacksForStateMachine(Y,ia);f=T(Y.getInitialState());ja={handleReactEffectCleanup:c("gkx")("24349")?ja:la,handleReactEffectInit:c("gkx")("24349")?x:ka,handleReactPropsChanged:h,implementationController:ma,initialExposedState:f,logFlusher:A,machine:Y,notifySubscribers:H,videoElementCallbacks:a,videoElementRefCallback:function(a){ia(a,["videoElementRefCallback"])}};return{engine:ja,getCaptionsInfo:function(){return L.current},getVideoElement:function(){return J.current},getVideoLiveTrace:function(){return y.current},handleCaptionsInfoChange:ea,handleFatalImplementationError:X,logger:z,machine:Y,videoElementAPIRef:S}}function v(a,b){var d,e=c("err").apply(void 0,[a.errorName+": "+a.errorMessageFormat].concat(a.errorMessageParams));e.name=a.errorName;e.errorName=a.errorName;e.type="error";a.stack!=null&&a.stack!==""&&(e.stack=a.stack);var f=new(c("ErrorMetadata"))();f.addEntries(["COMET_VIDEO","ERROR_LOCATION",a.errorLocation],["COMET_VIDEO","ERROR_CODE",(d=a.errorCode)!=null?d:""],["COMET_VIDEO","ERROR_URL",(d=a.url)!=null?d:""]);b!=null&&f.addEntry("COMET_VIDEO","VIDEO_ID",b);d=a.originalError;d!=null&&(typeof d==="string"?f.addEntry("COMET_VIDEO","ORIGINAL_ERROR",d):d instanceof Error&&d.message!=null&&f.addEntry("COMET_VIDEO","ORIGINAL_ERROR",d.message));e.metadata=f;return e}function e(a,d){var e=l(null),f=e[0],g=e[1];e=l(null);var h=e[0],m=e[1];e=a.wrapVideoPixels_EXPERIMENTAL;var n=k(a),o=k(d),p=k(null),q=c("useStable")(function(){return o.current({checkInDOM:function(){var a=document.body,b=p.current;return a!=null&&b!=null&&a.contains(b)},debugLogId:String(n.current.loggingMetaData.instanceKey),handleFatalError:function(a){m(a)},initialProps:n.current,setExposedStateInReact:g})});f=(d=f)!=null?d:q.initialExposedState;d=(d=f.error)!=null?d:h;if(d!=null){h=a.VideoPlayerShakaPerformanceLoggerClass;h&&(c("gkx")("24350")||c("qex")._("1655"))&&h.flushQueuedLogs();throw v(d,n.current.videoFBID)}j(function(){q.handleReactEffectInit();return function(){q.handleReactEffectCleanup()}},[q]);var r=k(null);j(function(){a!==r.current&&q.handleReactPropsChanged(a),r.current=a});h=c("useSEOLoggedOutWebCrawler")();d=a.renderVideoPixelsFit?a.renderVideoPixelsFit(f):null;h=i.jsx(c("VideoPlayerImplementationReactVideoElement.react"),{alt:a.alt,poster:a.poster,seoWebCrawlerVideoTracks:h&&a.seoWebCrawlerVideoTracks!=null?a.seoWebCrawlerVideoTracks:null,src:h?a.seoWebCrawlerLookasideUrl:null,videoElementCallbacks:h?null:q.videoElementCallbacks,videoElementPreloadDisabled:a.preloadForProgressiveDisabled,videoElementRefCallback:h?null:q.videoElementRefCallback,videoPixelsFit:d});var s=a.renderWithExposedState({implementationController:q.implementationController,implementationExposedState:f});e=i.jsxs(i.Fragment,{children:[c("gkx")("24349")?i.jsx("div",{ref:p,style:{display:"none"}}):null,f.isDRM===!0?b("cr:2336")?i.jsx(b("cr:2336"),{controller:q.implementationController}):b("cr:4596")?i.jsx(b("cr:4596"),{controller:q.implementationController}):null:null,e?e(h):h,b("cr:355")!=null&&f.playerVersion==="comet_nextgendash"?i.jsx(b("cr:355"),{}):null,i.jsx(c("VideoPlayerVideoPixelsFitContext").Provider,{value:d,children:s})]});return{engine:q,exposedState:f,reactVideoComponents:s,reactVideoFrame:h,reactVideoFrameAndComponents:e}}g.internal_createVideoPlayerImplementationControllerImpl=n;g.internal_createVideoPlayerImplementationEngineStateMachineWithEffects=q;g.internal_createVideoPlayerImplementationExposedStateFromStateMachineState=u;g.createVideoPlayerImplementationEngine=a;g.internal_makeExpandedErrorFromVideoPlayerError=v;g.useVideoPlayerImplementationEngine=e}),98);
__d("VideoPlayerImplementationEngineVideoElementAPI",["Promise","VideoPlaybackQuality","VideoPlayerOzWWWGlobalConfig"],(function(a,b,c,d,e,f,g){"use strict";var h;function i(a){return isNaN(a)?0:a}function j(a){return i(a.duration)}function k(a){var b=[];try{a=a.buffered;for(var c=0;c<a.length;++c)b.push({endTime:a.end(c),startTime:a.start(c)})}catch(a){}return b}function l(a){try{a=a.buffered;if(a.length>0)return a.end(a.length-1)}catch(a){}return 0}function m(a){return i(a.currentTime)}function n(a){try{a=a.buffered;if(a.length>0)return a.start(0)}catch(a){}return 0}function a(a){return{exitPictureInPicture:function(){window.document.exitPictureInPicture()},getBufferedRanges:function(){return k(a)},getCanPlayPromise:function(){return new(h||(h=b("Promise")))(function(b,c){a.readyState===4?b():a.addEventListener("canplay",function(){return b()})})},getDOMLoadedMetadataPromise:function(){return new(h||(h=b("Promise")))(function(b,c){a.addEventListener("loadedmetadata",function(){return b()})})},getDroppedFrameCount:function(){return d("VideoPlaybackQuality").getDroppedFrames(a)},getDuration:function(){return j(a)},getEnded:function(){return a.ended},getError:function(){return a.error},getLastBufferEndPosition:function(){return l(a)},getMuted:function(){return a.muted},getNetworkState:function(){return a.networkState},getPaused:function(){return a.paused},getPlaybackRate:function(){return a.playbackRate},getPlayheadPosition:function(){return m(a)},getReadyState:function(){return a.readyState},getTotalFrameCount:function(){return d("VideoPlaybackQuality").getTotalFrames(a)},getUnderlyingVideoElement:function(){return a},getVideoPixelsDimensions:function(){if(a.readyState<a.HAVE_CURRENT_DATA)return null;var b=a.videoWidth,c=a.videoHeight;if(b<=0||c<=0)return null;var d=a.offsetWidth,e=a.offsetHeight;if(d<=0||e<=0)return null;b=b/c;c=d/e;c>b?d=e*b:e=d/b;return{height:e,width:d}},getVolume:function(){return a.volume},pause:function(){a.pause()},play:function(){var c=a.play();c=c&&typeof c.then==="function"?(h||(h=b("Promise"))).resolve(c):null;return c},requestPictureInPicture:function(){typeof a.requestPictureInPicture==="function"&&a.requestPictureInPicture()},setDuration:function(b){a.duration=b},setMuted:function(b){a.muted=b},setPlaybackRate:function(b){a.playbackRate=b},setPlayheadPosition:function(b){var d=b;if(b===0){b=c("VideoPlayerOzWWWGlobalConfig").getNumber("clamp_seek_to_first_buffer_range_epsilon",0);if(b>0){var e=n(a);e>0&&e<=b&&(d=e)}}a.currentTime=d},setVolume:function(b){a.volume=b}}}g.getDurationFromVideoElement=j;g.getBufferedRangesFromVideoElement=k;g.getLastBufferEndPositionFromVideoElement=l;g.getPlayheadPositionFromVideoElement=m;g.createVideoPlayerImplementationEngineVideoElementAPI=a}),98);
__d("VideoPlayerProgressiveImplementationData",["err"],(function(a,b,c,d,e,f,g){"use strict";function h(a){return/\.mpd(\?|$)/.test(a)}function a(a){var b=a.hdSrc,d=a.hdSrcPreferred;a=a.sdSrc;if(b==null&&a==null){var e=c("err")("both HD and SD browser-native URLs are not available");e.name="VideoImplementationsNoBrowserNativeURLs";return e}if(a==null){e=c("err")("browser-native SD URL is not available");e.name="VideoImplementationsNoBrowserNativeSDURL";return e}e=h(a);var f=b!=null&&h(b);if(e||f){e=c("err")("HD or SD browser-native URL points to a DASH manifest");e.name="VideoImplementationsBrowserNativeURLsPointToDASH";return e}return{hdSrc:b,hdSrcPreferred:d,sdSrc:a}}g.makeProgressiveImplementationData=a}),98);
__d("VideoPlayerProgressiveImplementationEngineExtrasAPI",["gkx"],(function(a,b,c,d,e,f,g){"use strict";function h(a){return a!==null&&a.indexOf(".m3u8")!==-1}function a(a){var b=a.getPlayingVideoInfo;a=a.setUserSelectedVideoQuality;function d(){var a=b(),c="progressive_SD",d="progressive_HD";return a==null?null:h(a.hdSrc)||h(a.sdSrc)?null:a.hdSrc!=null&&a.playingSrc===a.hdSrc?d:a.sdSrc!=null&&a.playingSrc===a.sdSrc?c:null}return{getApproximateFBLSToPlayerDisplayLatency:function(){return null},getAvailableAudioTracks:function(){var a;return(a=(a=b())==null?void 0:a.availableAudioTracks)!=null?a:[]},getAvailableVideoQualities:function(){var a;return(a=(a=b())==null?void 0:a.availableQualities)!=null?a:[]},getAvailableVideoTracks:function(){var a;return(a=(a=b())==null?void 0:a.availableVideoTracks)!=null?a:[]},getCurrentAudioRepresentation:function(){return null},getCurrentPlayingAudioRepresentationID:function(){if(c("gkx")("440"))return d();else return null},getCurrentPlayingAudioTrackID:function(){var a;return(a=(a=b())==null?void 0:a.playingAudioTrackID)!=null?a:null},getCurrentPlayingVideoQuality:function(){var a;return(a=(a=b())==null?void 0:a.targetQuality)!=null?a:""},getCurrentPlayingVideoRepresentationID:function(){if(c("gkx")("440"))return d();else return"oep_hd"},getCurrentTargetVideoQuality:function(){var a;return(a=(a=b())==null?void 0:a.targetQuality)!=null?a:""},getCurrentVideoRepresentation:function(){return null},getEstimatedBandwidth:function(){return null},getInbandCaptionsAutogeneratedFromManifest:function(){return!1},getInbandCaptionsExpectedFromManifest:function(){return!1},getManifestIdentifier:function(){return null},getMpdValidationErrors:function(){return null},getPerfLoggerProvider:function(){return null},getRepresentationCaptionsExpectedFromManifest:function(){return!1},getStreamType:function(){var a=b();return a==null?"progressive":h(a.hdSrc)||h(a.sdSrc)?"hls":"progressive"},getTargetAudioTrack:function(){return null},getUserSelectedVideoQuality:function(){var a;return(a=(a=b())==null?void 0:a.selectedQuality)!=null?a:"notselected"},getUserSelectedVideoVariant:function(){return null},getVideoProjectionType:function(){return"cubemap"},getVideoRepresentations:function(){return null},isDrm:function(){var a;return((a=b())==null?void 0:a.graphQLVideoDRMInfo)!=null},isFBIsLiveTemplated:function(){return!1},isFBMS:function(){return!1},isFBWasLive:function(){return!1},isMixedCodecManifest:function(){return!1},isPredictiveDash:function(){return!1},setDimensions:function(a){},setEnableLiveheadCatchup:function(){},setLatencyLevel:function(){},setUserSelectedVideoQuality:a,setUserSelectedVideoVariant:function(a){}}}g.createVideoPlayerProgressiveImplementationEngineExtrasAPI=a}),98);
__d("VideoPlayerProgressiveImplementationEngineUtils",[],(function(a,b,c,d,e,f){"use strict";var g="hd",h="sd";function a(a){var b=[];a.sdSrc!=null&&b.push(h);a.hdSrc!=null&&b.push(g);var c=[],d=[],e=a.hdSrcPreferred&&a.hdSrc!=null?g:h;return babelHelpers["extends"]({},a,{availableAudioTracks:c,availableQualities:b,availableVideoTracks:d,playingAudioTrackID:null,playingQuality:null,playingSrc:null,selectedQuality:e,targetQuality:e,targetSrc:null})}function b(a,b){var c=a.hdSrc,d=a.sdSrc,e,f;b==="notselected"||b==="auto"?(e=d!=null?h:c!=null?g:h,f=d!=null?d:c!=null?c:null):b===g&&c!=null?(e=g,f=c):b===h&&d!=null?(e=h,f=d):(e=h,f=null);f===""&&(f=null);return babelHelpers["extends"]({},a,{selectedQuality:b,targetQuality:e,targetSrc:f})}function c(a,b,c){return babelHelpers["extends"]({},a,{playingQuality:b,playingSrc:c})}f.createResolvedVideoInfoProgressive=a;f.updatePlayingVideoInfoProgressiveWithUserSelectedQuality=b;f.updatePlayingVideoInfoProgressiveWithCurrentPlayingQuality=c}),66);
__d("videoUrlUtils",[],(function(a,b,c,d,e,f){"use strict";b=1<<31;var g=~b,h=b+1;function i(a){a=a|0;return Math.max(h,Math.min(a,g))}function j(a){a=Number.parseInt(a,16);return Number.isFinite(a)?new Date(i(a)*1e3):null}function k(){return i(Date.now()/1e3)}var l={OE:"oe"};function m(a){a=a instanceof URL?a.searchParams:new URL(a).searchParams;a=a.get(l.OE);a=a==null?void 0:j(a);return{expirationDate:a}}function a(a){a=m(a);a=a.expirationDate;return a!=null&&a<=new Date(k()*1e3)}f.DEFAULT_UNIXTIME=b;f.MAX_INT=g;f.parseCdnUrlParams=m;f.isCdnUrlExpired=a}),66);
__d("VideoPlayerProgressiveImplementationEngine",["FBLogger","Promise","UserAgent","VideoPlayerImplementationEngineAPI","VideoPlayerImplementationEngineVideoElementAPI","VideoPlayerImplementationErrors","VideoPlayerODS","VideoPlayerProgressiveImplementationEngineExtrasAPI","VideoPlayerProgressiveImplementationEngineUtils","cr:1473550","cr:1680308","emptyFunction","err","getErrorNameFromMediaErrorCode","getErrorSafe","gkx","promiseDone","unrecoverableViolation","videoUrlUtils"],(function(a,b,c,d,e,f,g){"use strict";var h,i=c("emptyFunction");function j(a,b,c){var e=typeof a==="object"&&a!=null&&typeof a.name==="string"?a.name:null;return d("VideoPlayerImplementationErrors").createVideoPlayerErrorFromGenericError(["PROGRESSIVE_JAVASCRIPT_NATIVE",e].filter(Boolean).join("/"),a,b,c)}function a(a){var e=a.checkInDOM,f=a.debugLogId,g=a.handleFatalError,m=a.initialProps;a=a.setExposedStateInReact;var n={current:null},o={current:null},p={current:null},q={current:null},r=function(){var a=x(),e=o.current;if(a==null||e==null)return;a.addEventListener("error",function(){var e=a.error,f=e==null?void 0:e.code,g=c("getErrorNameFromMediaErrorCode")(f);f=e==null?void 0:e.message;var i=f==null||f===""?"Unknown media error":f,j=[],k=f!=null?d("VideoPlayerImplementationErrors").getMoreGranularErrorNameFromHTMLVideoElementErrorMessage(f):null,l=a.src;if(l!==""){var m=null;(h||(h=b("Promise"))).resolve().then(function(){return window.fetch(l)}).then(function(a){var b,c=a.status;b=(b=a.headers.get("Content-Type"))!=null?b:"unknown";i=i+". Fetched video content with Status:"+c+" Content-Type:"+b;m="URL_RESPONSE_HTTP_"+c;if(c<200||c>=300)return a.text().then(function(a){j.push(a.length.toString()),i+=" Body:%s:"+a.substr(0,200)+(a.length>200?"...":"")},function(){})})["catch"](function(a){if(typeof a==="object"&&a!=null&&typeof a.name==="string"&&typeof a.message==="string"){var b;m=(b=m)!=null?b:"URL_RESPONSE_FETCH_FAILED/"+a.name;i=i+". Failed fetching video content with error: "+a.name+" "+a.message}else{m=(b=m)!=null?b:"URL_RESPONSE_FETCH_FAILED";i=i+". Failed fetching video content with unknown error"}})["finally"](function(){var a=c("err").apply(void 0,[i].concat(j));a.name=[g,k,m].filter(Boolean).join("/");z(a,"progressive_implementation_error_with_more_info")})}else{e=c("err").apply(void 0,[i].concat(j));e.name=[g,k,"VIDEO_ELEMENT_SRC_EMPTY"].filter(Boolean).join("/");z(e,"progressive_implementation_error_with_empty_src")}});try{var f=e.audioOnly,g=e.graphQLVideoDRMInfo,i=e.videoFBID;f===!0&&(a.style.display="none");f=g?(f=g.fairplayCert)!=null?f:null:null;if(b("cr:1680308")&&g&&f!=null&&i!=null){q.current=b("cr:1680308").newIfSupported(f,a,i,g.videoLicenseUriMap);if(q.current==null){f=c("err")("Fairplay not supported");z(f,"progressive_player_fairplay_handler_missing")}else q.current.addListener("error",function(a){a=c("err")(a.error);z(a,"progressive_player_fairplay_handler_error")})}var j=d("VideoPlayerImplementationEngineVideoElementAPI").createVideoPlayerImplementationEngineVideoElementAPI(a);B.current=j;p.current=e;i=w();y({inbandCaptionsAutogeneratedFromManifest:u.getInbandCaptionsAutogeneratedFromManifest(),inbandCaptionsExpectedFromManifest:u.getInbandCaptionsExpectedFromManifest(),inbandCaptionsExpectedFromProps:i==null?void 0:i.inbandCaptionsExpectedFromProps,representationCaptionsExpectedFromManifest:u.getRepresentationCaptionsExpectedFromManifest(),sideLoadCaptionsExpectedFromProps:i==null?void 0:i.sideLoadCaptionsExpectedFromProps,sideLoadCaptionsUrlFromProps:i==null?void 0:i.sideLoadCaptionsUrlFromProps});A.dispatch({payload:{selectedVideoQuality:u.getUserSelectedVideoQuality(),streamingFormat:u.getStreamType()},type:"implementation_engine_initialized"});g=function(){j.setPlayheadPosition(m.startTimestamp)};c("UserAgent").isBrowser("IE11")?c("promiseDone")(j.getDOMLoadedMetadataPromise().then(g)):g()}catch(a){z(a,"progressive_player_create_exception")}},s=function(a,b){if(b==null)return!0;else if(a.videoFBID!==b.videoFBID){var c=14;d("VideoPlayerODS").bumpEntityKey("comet_video_player","ProgressiveImplementation.video_fbid_changed",c);return!1}else if(a.hdSrc!==b.hdSrc||a.sdSrc!==b.sdSrc){c=14;d("VideoPlayerODS").bumpEntityKey("comet_video_player","ProgressiveImplementation.src_changed",c);return!1}else return!1},t=function(a){var b;b={audioOnly:a.audioOnly,graphQLVideoDRMInfo:(b=a.graphQLVideoDRMInfo)!=null?b:null,hdSrc:a.hdSrc===""?null:(b=a.hdSrc)!=null?b:null,hdSrcPreferred:a.hdSrcPreferred,sdSrc:a.sdSrc===""?null:(b=a.sdSrc)!=null?b:null,videoFBID:a.videoFBID};if(!s(b,n.current))return!1;if(b.hdSrc==null&&b.sdSrc==null)throw c("unrecoverableViolation")("Empty hdSrc and sdSrc","comet_video_player");n.current=b;o.current=d("VideoPlayerProgressiveImplementationEngineUtils").createResolvedVideoInfoProgressive(b);r();return!0},u=d("VideoPlayerProgressiveImplementationEngineExtrasAPI").createVideoPlayerProgressiveImplementationEngineExtrasAPI({getPlayingVideoInfo:function(){if(c("gkx")("440")){var a,b=p.current;if(!b)return null;a=(a=B.current)==null?void 0:a.getUnderlyingVideoElement().currentSrc;return babelHelpers["extends"]({},b,{playingSrc:a!=null&&a!==""?a:null})}else return p.current},setUserSelectedVideoQuality:function(a){var b=p.current;if(!b)throw c("unrecoverableViolation")("Attempt to switch quality when playingVideoInfo does not exist","comet_video_player");var e=B.current;if(!e)throw c("unrecoverableViolation")("Attempt to switch quality when videoElementAPI does not exist","comet_video_player");p.current=d("VideoPlayerProgressiveImplementationEngineUtils").updatePlayingVideoInfoProgressiveWithUserSelectedQuality(b,a);var f=p.current.targetSrc;if(f===null){c("FBLogger")("comet_video_player").addMetadata("COMET_VIDEO","VIDEO_ID",m.videoFBID==null?"":String(m.videoFBID)).warn("Received null targetSrc from setUserSelectedVideoQuality, selectedQuality: %s",String(a));return}k(f,m.expiredVideoUrlRefreshHandler).then(function(a){var b;if(((b=p.current)==null?void 0:b.targetSrc)!==f)return;l(e.getUnderlyingVideoElement(),{enableCrossOriginAnonymous:m.enableCrossOriginAnonymous},a);a=(b=A.getCurrentState().uncontrolledState.videoElementPlayheadPosition)!=null?b:0;a>0&&e.setPlayheadPosition(a);A.getCurrentState().controlledState.playbackState==="playing"&&e.play();A.dispatch({payload:{},type:"representation_changed"})})["catch"](function(a){var b;if(((b=p.current)==null?void 0:b.targetSrc)!==f)return;b=c("getErrorSafe")(a);c("FBLogger")("comet_video_player").addMetadata("COMET_VIDEO","VIDEO_ID",m.videoFBID==null?"":String(m.videoFBID)).catching(b).warn("Failed refreshing video URL with original error: %s",String(b))})}}),v=function(){q.current&&(q.current.destroy(),q.current=null)};e=d("VideoPlayerImplementationEngineAPI").createVideoPlayerImplementationEngine({checkInDOM:e,createDebugAPI:function(a){var c=a.getVideoElementAPI;a=a.logger;return b("cr:1473550")?b("cr:1473550").createVideoPlayerImplementationDebugAPI({engineExtrasAPI:u,getVideoElementAPI:c,logger:a}):null},createVideoPlayerError:function(a,b){return j(a,b,(a=p.current)==null?void 0:a.targetSrc)},debugLog:i,debugLogId:f,destroyEngineParts:function(){v()},engineExtrasAPI:u,engineMetadata:{isAbrEnabled:!1,playerVersion:"comet_progressive",streamingFormat:"progressive"},handleFatalError:g,handleVideoElementChanged:function(a){a!=null&&r()},handleVideoInfoChange:t,initialProps:m,setExposedStateInReact:a});f=e.engine;var w=e.getCaptionsInfo,x=e.getVideoElement,y=e.handleCaptionsInfoChange,z=e.handleFatalImplementationError,A=e.machine,B=e.videoElementAPIRef;return f}function k(a,e){if(c("gkx")("4621")&&e&&d("videoUrlUtils").isCdnUrlExpired(a))return e(a).then(function(a){var d;return(d=a.refreshedUrl)!=null?d:(h||(h=b("Promise"))).reject(c("err")("Failed refreshing URL"+(a.reason!==null?" with reason: "+a.reason:"")))});else return(h||(h=b("Promise"))).resolve(a)}function l(a,b,c){b=b.enableCrossOriginAnonymous;if(c==null||c==="")a.removeAttribute("src");else{var d=a.playbackRate;a.setAttribute("src",c);var e=null;if(b===!0){try{e=new URL(c).origin}catch(a){}e!=null&&location.origin!==e&&a.setAttribute("crossOrigin","anonymous")}a.playbackRate=d}}g.createVideoPlayerProgressiveImplementationEngine=a;g.internal_setHTMLVideoElementSrc=l}),98);
__d("VideoPlayerProgressiveImplementationV2.react",["VideoPlayerImplementationEngineAPI","VideoPlayerProgressiveImplementationEngine"],(function(a,b,c,d,e,f,g){"use strict";function a(a){a=d("VideoPlayerImplementationEngineAPI").useVideoPlayerImplementationEngine(a,d("VideoPlayerProgressiveImplementationEngine").createVideoPlayerProgressiveImplementationEngine);a=a.reactVideoFrameAndComponents;return a}g["default"]=a}),98);
__d("VideoPlayerSpinner.react",["CometLoadingAnimation.react","gkx","react","stylex","useDebouncedValue"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(i||(i=d("react"))).c,k=i,l=36,m={spinner:{height:"xc9qbxq",opacity:"x1hc1fzr",position:"x10l6tqk",start:"xtzzx4i",top:"xwa60dl",transform:"x11lhmoz",transitionDelay:"x5w5eug",transitionDuration:"x13dflua",transitionProperty:"x19991ni",transitionTimingFunction:"xl405pv",width:"x14qfxbe",$$css:!0},spinnerHidden:{opacity:"xg01cxk",transitionDelay:"x2p8vrm",transitionDuration:"x13dflua",transitionProperty:"x1jl3cmp",transitionTimingFunction:"xl405pv",visibility:"xlshs6z",$$css:!0},spinnerSnappier:{transitionDelay:"x2p8vrm",$$css:!0},spinnerSnappierHidden:{transitionDelay:"x1ahifba",$$css:!0}};function a(a){var b=j(7);a=a.isVisible;var d=c("useDebouncedValue")(a,a?200:500),e;b[0]!==a?(e=(h||(h=c("stylex")))(m.spinner,c("gkx")("24333")?[m.spinnerSnappier,!a&&m.spinnerHidden,!a&&m.spinnerSnappierHidden]:[!a&&m.spinnerHidden]),b[0]=a,b[1]=e):e=b[1];a=!d;b[2]!==a?(d=k.jsx(c("CometLoadingAnimation.react"),{animationPaused:a,size:l}),b[2]=a,b[3]=d):d=b[3];b[4]!==e||b[5]!==d?(a=k.jsx("div",{className:e,children:d}),b[4]=e,b[5]=d,b[6]=a):a=b[6];return a}g["default"]=a}),98);
__d("WebSessionExtender",["WebSession","clearInterval","cr:913","setInterval"],(function(a,b,c,d,e,f,g){"use strict";var h=2e4,i=new Set(),j=null;function a(a,e){e===void 0&&(e="extender"),i.add(a),j==null&&(d("WebSession").extend(Date.now()+h+2e3),j=c("setInterval")(function(){d("WebSession").extend(Date.now()+h+2e3),b("cr:913")&&new(b("cr:913"))().setClientTime(Date.now()).setWebsessionID(d("WebSession").getId()).setReason(e).log()},h))}function e(a){i["delete"](a);a=i.size;a===0&&j!=null&&(c("clearInterval")(j),j=null)}g.subscribe=a;g.unsubscribe=e}),98);
__d("VideoPlayerWebSessionExtender.react",["VideoPlayerHooks","WebSessionExtender","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i;b=h||d("react");var j=b.useEffect,k=b.useId,l=b.c;function a(){var a=l(4),b=(i||(i=d("VideoPlayerHooks"))).usePlaying(),c=k(),e,f;a[0]!==b||a[1]!==c?(e=function(){if(b){d("WebSessionExtender").subscribe(c,"video");return function(){d("WebSessionExtender").unsubscribe(c)}}},f=[b,c],a[0]=b,a[1]=c,a[2]=e,a[3]=f):(e=a[2],f=a[3]);j(e,f);return null}g["default"]=a}),98);
__d("useVideoPlayerDefaultLoadingIndicatorsLogic",["VideoPlayerHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(h||d("react")).c;function a(){var a=j(4),b=(i||(i=d("VideoPlayerHooks"))).useStalling(),c=i.useStreamInterrupted(),e=i.useIsLiveRewindActive();c=c&&!e;e=b;b=c?"live_video_interrupted_overlay":e?"spinner":"none";var f;a[0]!==c||a[1]!==b||a[2]!==e?(f={liveVideoInterruptedOverlayVisible:c,loadingIndicatorType:b,spinnerVisible:e},a[0]=c,a[1]=b,a[2]=e,a[3]=f):f=a[3];return f}g["default"]=a}),98);
__d("useVideoPlayerDefaultLoadingIndicators",["CometPlaceholder.react","deferredLoadComponent","once","react","requireDeferred","requireDeferredForDisplay","useVideoPlayerDefaultLoadingIndicatorsLogic"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||(h=d("react"))).c,j=h,k=c("deferredLoadComponent")(c("requireDeferredForDisplay")("VideoPlayerSpinner.react").__setRef("useVideoPlayerDefaultLoadingIndicators")),l=c("deferredLoadComponent")(c("requireDeferred")("VideoPlayerWithLiveVideoInterruptedOverlay.react").__setRef("useVideoPlayerDefaultLoadingIndicators")),m=c("once")(function(){return j.jsx(c("CometPlaceholder.react"),{fallback:null,children:j.jsx(l,{})})});function a(){var a=i(6),b=c("useVideoPlayerDefaultLoadingIndicatorsLogic")(),d=b.loadingIndicatorType;b=b.spinnerVisible;var e;a[0]!==b?(e=j.jsx(k,{isVisible:b}),a[0]=b,a[1]=e):e=a[1];b=e;var f;bb0:switch(d){case"spinner":f=b;break bb0;case"live_video_interrupted_overlay":a[2]===Symbol["for"]("react.memo_cache_sentinel")?(e=m(),a[2]=e):e=a[2];f=e;break bb0;case"none":default:f=b}a[3]!==f||a[4]!==d?(e={loadingIndicatorElement:f,loadingIndicatorType:d},a[3]=f,a[4]=d,a[5]=e):e=a[5];return e}g["default"]=a}),98);
__d("useVideoPlayerUnifiedCVCProvider",["CvcV3HttpEventFalcoEvent","UnifiedVideoCVCSubscription","VideoPlayerHooks","createVideoStateHook","getPlayerFormatForLogData","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i;b=h||d("react");var j=b.useEffect,k=b.c;e=d("createVideoStateHook").createVideoStateHook(null);var l=e.setterHook;f=d("createVideoStateHook").createVideoStateHook(null);var m=f.setterHook;b=f.valueHook;function a(a){var b=k(12),e=a.disableSubscription,f=a.playerFormat,g=a.subOrigin,h=a.videoFBID,n=(i||(i=d("VideoPlayerHooks"))).useIsLive(),o=i.useIsFullscreen(),p=i.useIsDesktopPictureInPicture(),q=i.useController(),r=l(),s=m(),t;b[0]!==e||b[1]!==h||b[2]!==p||b[3]!==o||b[4]!==f||b[5]!==g||b[6]!==q||b[7]!==n||b[8]!==s||b[9]!==r?(a=function(){if(e===!0){c("CvcV3HttpEventFalcoEvent").log(function(){return{countable_id:h,name:"disable_subscription"}});return}var a=new(c("UnifiedVideoCVCSubscription"))(h,c("getPlayerFormatForLogData")({isDesktopPictureInPicture:p,isFullscreen:o},f),g,q,n,function(a){s(a)});r(a);return function(){a.destroy()}},t=[p,o,n,e,f,s,r,g,q,h],b[0]=e,b[1]=h,b[2]=p,b[3]=o,b[4]=f,b[5]=g,b[6]=q,b[7]=n,b[8]=s,b[9]=r,b[10]=a,b[11]=t):(a=b[10],t=b[11]);j(a,t)}e=b;g.useVideoPlayerUnifiedCVCProvider=a;g.useVideoPlayerUnifiedCVCData=e}),98);
__d("VideoPlayerXImplSurface.react",["CoreVideoPlayerAudioClient.react","CoreVideoPlayerAutoplayClient.react","VideoPlayerCaptionsAreaDeferred.react","VideoPlayerIMFMetadataContext","VideoPlayerInteractionOverlay.react","VideoPlayerWebSessionExtender.react","cr:1954434","cr:99","gkx","react","useVideoPlayerDefaultLoadingIndicators","useVideoPlayerUnifiedCVCProvider"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||(h=d("react"))).c,j=h;function a(a){var e=i(21),f=a.children,g=a.disableCVCSubscription,h=a.disableLoadingIndicator,k=a.disableLogging,l=a.instreamVideoAdBreaksPlayer,m=a.playerFormat,n=a.subOrigin,o=a.videoFBID,p=a.videoPlayerIMFFromVideoMetadata;a=a.videoPlayerSpherical;h=h===void 0?!1:h;k=k===!0||g;e[0]!==k||e[1]!==m||e[2]!==n||e[3]!==o?(g={disableSubscription:k,playerFormat:m,subOrigin:n,videoFBID:o},e[0]=k,e[1]=m,e[2]=n,e[3]=o,e[4]=g):g=e[4];d("useVideoPlayerUnifiedCVCProvider").useVideoPlayerUnifiedCVCProvider(g);k=c("useVideoPlayerDefaultLoadingIndicators")();m=k.loadingIndicatorElement;g=(o=p)!=null?o:null;k=h?null:m;e[5]===Symbol["for"]("react.memo_cache_sentinel")?(p=c("gkx")("24328")?j.jsx(d("VideoPlayerInteractionOverlay.react").VideoPlayerInteractionOverlay,{}):null,e[5]=p):p=e[5];e[6]!==f||e[7]!==l?(o=j.jsxs(c("VideoPlayerCaptionsAreaDeferred.react"),{children:[f,l]}),e[6]=f,e[7]=l,e[8]=o):o=e[8];e[9]===Symbol["for"]("react.memo_cache_sentinel")?(h=j.jsx(c("CoreVideoPlayerAutoplayClient.react"),{}),m=j.jsx(c("CoreVideoPlayerAudioClient.react"),{}),f=b("cr:1954434")?j.jsx(b("cr:1954434"),{}):null,e[9]=h,e[10]=m,e[11]=f):(h=e[9],m=e[10],f=e[11]);e[12]!==n?(l=b("cr:99")?j.jsx(b("cr:99"),{subOrigin:n}):null,e[12]=n,e[13]=l):l=e[13];e[14]===Symbol["for"]("react.memo_cache_sentinel")?(n=j.jsx(c("VideoPlayerWebSessionExtender.react"),{}),e[14]=n):n=e[14];e[15]!==g||e[16]!==a||e[17]!==k||e[18]!==o||e[19]!==l?(p=j.jsxs(d("VideoPlayerIMFMetadataContext").VideoPlayerIMFMetadataContextProvider,{value:g,children:[a,k,p,o,h,m,f,l,n]}),e[15]=g,e[16]=a,e[17]=k,e[18]=o,e[19]=l,e[20]=p):p=e[20];return p}g["default"]=a}),98);
__d("normalizeVideoPlayerLoopCount",["unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,d){b===void 0&&(b=null);d===void 0&&(d=null);if(a==null){var e;d=((e=b)!=null?e:!1)?(e=d)!=null?e:0:0;d===-1?e=-1:d<0||!Number.isFinite(d)||Math.floor(d)!==d?e=0:d===0&&b===!0?e=-1:e=d}else if(a===-1||a===Number.POSITIVE_INFINITY)e=-1;else if(a<0||!Number.isFinite(a)||Math.floor(a)!==a)throw c("unrecoverableViolation")("Invalid loopingCount: "+a,"comet_video_player");else e=a;return e}g["default"]=a}),98);
__d("VideoPlayerXImpl.react",["CoreVideoPlayerWithComponents.react","VideoPlayerXImplSurface.react","normalizeVideoPlayerLoopCount","react","usePlayerOriginRouteTracePolicy","useRouteProductAttribution"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||(h=d("react"))).c,j=h;function a(a){var b=i(43),d,e,f,g,h,k,l,m,n,o,p,q,r,s,t;b[0]!==a?(f=a.children,d=a.disableCVCSubscription,g=a.disableLoadingIndicator,p=a.implementations,k=a.instreamVideoAdBreaksPlayer,q=a.portalingEnabled,r=a.portalingFromVideoID,s=a.portalingPlaceMetaData,t=a.portalingRenderPlaceholder,l=a.videoPlayerIMFFromVideoMetadata,m=a.videoPlayerSpherical,h=a.disableLogging,n=a.disableVPLLogging,o=a.enableSNAPL,e=babelHelpers.objectWithoutPropertiesLoose(a,["children","disableCVCSubscription","disableLoadingIndicator","implementations","instreamVideoAdBreaksPlayer","portalingEnabled","portalingFromVideoID","portalingPlaceMetaData","portalingRenderPlaceholder","videoPlayerIMFFromVideoMetadata","videoPlayerSpherical","disableLogging","disableVPLLogging","enableSNAPL"]),b[0]=a,b[1]=d,b[2]=e,b[3]=f,b[4]=g,b[5]=h,b[6]=k,b[7]=l,b[8]=m,b[9]=n,b[10]=o,b[11]=p,b[12]=q,b[13]=r,b[14]=s,b[15]=t):(d=b[1],e=b[2],f=b[3],g=b[4],h=b[5],k=b[6],l=b[7],m=b[8],n=b[9],o=b[10],p=b[11],q=b[12],r=b[13],s=b[14],t=b[15]);a=d===void 0?!1:d;d=c("usePlayerOriginRouteTracePolicy")();var u=c("useRouteProductAttribution")();u||(u=e.productAttribution);var v=e,w=v.loopCount,x=v.playerFormat,y=v.subOrigin;v=v.videoFBID;var z;b[16]!==w?(z=c("normalizeVideoPlayerLoopCount")(w),b[16]=w,b[17]=z):z=b[17];w=z;b[18]!==f||b[19]!==a||b[20]!==g||b[21]!==h||b[22]!==k||b[23]!==x||b[24]!==y||b[25]!==v||b[26]!==l||b[27]!==m?(z=j.jsx(c("VideoPlayerXImplSurface.react"),{children:f,disableCVCSubscription:a,disableLoadingIndicator:g,disableLogging:h,instreamVideoAdBreaksPlayer:k,playerFormat:x,subOrigin:y,videoFBID:v,videoPlayerIMFFromVideoMetadata:l,videoPlayerSpherical:m}),b[18]=f,b[19]=a,b[20]=g,b[21]=h,b[22]=k,b[23]=x,b[24]=y,b[25]=v,b[26]=l,b[27]=m,b[28]=z):z=b[28];b[29]!==e||b[30]!==h||b[31]!==n||b[32]!==o||b[33]!==p||b[34]!==w||b[35]!==q||b[36]!==r||b[37]!==s||b[38]!==t||b[39]!==u||b[40]!==d||b[41]!==z?(f=j.jsx(c("CoreVideoPlayerWithComponents.react"),babelHelpers["extends"]({},e,{disableLogging:h,disableVPLLogging:n,enableSNAPL:o,implementations:p,loopCount:w,portalingEnabled:q,portalingFromVideoID:r,portalingPlaceMetaData:s,portalingRenderPlaceholder:t,productAttribution:u,routeTracePolicy:d,children:z})),b[29]=e,b[30]=h,b[31]=n,b[32]=o,b[33]=p,b[34]=w,b[35]=q,b[36]=r,b[37]=s,b[38]=t,b[39]=u,b[40]=d,b[41]=z,b[42]=f):f=b[42];return f}g["default"]=a}),98);
__d("computeAspectRatio",[],(function(a,b,c,d,e,f){"use strict";function a(a,b){return a!=null&&b!=null&&a!==0&&b!==0?a/b:null}f["default"]=a}),66);
__d("getVideoPlayerUserFacingErrorMessageFromError",["fbt","gkx"],(function(a,b,c,d,e,f,g,h){"use strict";function i(a){return c("gkx")("24345")&&a.message.toLowerCase().indexOf("audio_renderer_error")>=0}function j(a){return a.message.indexOf("DEVICE_CERTIFICATE_REVOKED")>=0}function k(a){return a.name.indexOf("VideoImplementationsDashManifestUnsupportedCodecs")>=0||a.name.indexOf("VideoImplementationsMediaSourceUnsupported")>=0}function a(a){var b=null;i(a)?b=h._("__JHASH__32piJ10frlX__JHASH__"):j(a)?b=h._("__JHASH__6MAWOMXczk1__JHASH__"):k(a)&&(b=h._("__JHASH__EuR8fzpxUQU__JHASH__"));return b}g["default"]=a}),226);
__d("defaultErrorBoundaryFallback",["VideoPlayerFallbackCover.react","getVideoPlayerUserFacingErrorMessageFromError","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=c("getVideoPlayerUserFacingErrorMessageFromError")(a);return i.jsx(c("VideoPlayerFallbackCover.react"),{debugError:a,message:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("getVideoPlayerAutoplayProps",[],(function(a,b,c,d,e,f){"use strict";function a(a,b,c){b=b!=null?b:"respect_user_settings";var d=b==="dangerously_always_autoplay";c=c!=null?c:"unknown";var e=a.autoplaySetting||"default_autoplay",f=e==="off";d=d||b==="respect_user_settings"&&!f&&a.canAutoplay;f=b==="do_not_autoplay"?c:a.autoplayGatingResult;c=d?"allow":b==="dangerously_disable_autoplay_management"?"dangerously_disable_autoplay_management":"deny";return{autoplayGatingResult:f,autoplaySetting:e,canAutoplay:c}}f["default"]=a}),66);
__d("useVideoPlayerClickToPauseInteraction",["fbt","VideoPlayerHooks","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j;b=i||d("react");b.useCallback;var k=b.c;function a(){var a=k(5),b=(j||(j=d("VideoPlayerHooks"))).usePlaying(),c=j.useController(),e=j.useIsLive(),f;a[0]!==c?(f=function(){c.pause("user_initiated")},a[0]=c,a[1]=f):f=a[1];f=f;b=b&&!e;a[2]!==b||a[3]!==f?(e=b?{ariaLabel:h._("__JHASH__VtoypU98LZ___JHASH__"),handler:f,overlayLabel:""}:null,a[2]=b,a[3]=f,a[4]=e):e=a[4];return e}g["default"]=a}),226);
__d("useVideoPlayerClickToPlayInteraction",["fbt","VideoPlayerHooks","react","useFeedClickEventHandler"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j;b=i||d("react");b.useCallback;var k=b.c;function a(a){var b=k(9),e;b[0]!==a?(e=a===void 0?{}:a,b[0]=a,b[1]=e):e=b[1];a=e;var f=a.shouldUnmute;e=(j||(j=d("VideoPlayerHooks"))).usePaused();var g=j.useController(),i=j.useLastMuteReason();b[2]!==g||b[3]!==f||b[4]!==i?(a=function(){g.play("user_initiated"),f===!0&&i!=="user_initiated"&&g.setMuted(!1,"product_initiated")},b[2]=g,b[3]=f,b[4]=i,b[5]=a):a=b[5];a=a;a=c("useFeedClickEventHandler")(a);e=e;var l;b[6]!==e||b[7]!==a?(l=e?{ariaLabel:h._("__JHASH__hpqc6JvA6ND__JHASH__"),handler:a,overlayLabel:""}:null,b[6]=e,b[7]=a,b[8]=l):l=b[8];return l}g["default"]=a}),226);
__d("useVideoPlayerDefaultControlsVisibility",["VideoPlayerHooks","VideoPlayerInstreamAdsStateHooks","VideoPlayerUserInteractionCounter","clearTimeout","react","setTimeout"],(function(a,b,c,d,e,f,g){"use strict";var h,i;b=h||d("react");var j=b.useEffect,k=b.useState,l=b.c,m=5e3;function a(a){var b=l(9),e;b[0]!==a?(e=a===void 0?{}:a,b[0]=a,b[1]=e):e=b[1];a=e;e=a.forceVisible;a=a.forceVisibleOnMount;var f=d("VideoPlayerUserInteractionCounter").useVideoPlayerUserInteractionCounter(),g=f.ongoingInteractionsCount;f=f.onUserInteraction;var h=(i||(i=d("VideoPlayerHooks"))).useEnded(),n=i.useIsHovering(),o=i.usePaused(),p=i.useIsMouseIdle(),q=i.useVideoPlaybackEnded(),r=d("VideoPlayerInstreamAdsStateHooks").useInstreamAdsIsStart();d("VideoPlayerUserInteractionCounter").useVideoPlayerUserInteraction("video_pointer_active",n&&!p,f);n=k(a===!0);var s=n[0],t=n[1];b[2]!==o||b[3]!==s?(p=function(){if(!o&&s){var a=c("setTimeout")(function(){t(!1)},m);return function(){c("clearTimeout")(a)}}},a=[s,o],b[2]=o,b[3]=s,b[4]=p,b[5]=a):(p=b[4],a=b[5]);j(p,a);e===!0||e===!1?n=e:r?n=!1:g>0||s?n=!0:o?n=h?q:!0:n=!1;b[6]!==n||b[7]!==f?(p={isControlsVisible:n,onUserInteraction:f},b[6]=n,b[7]=f,b[8]=p):p=b[8];return p}g["default"]=a}),98);