if (self.CavalryLogger) { CavalryLogger.start_js(["FH9k0\/0"]); } __d("CometObjectFitContainer.react",["cr:964538","react","stylex","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i={inner:{height:"datstx6m",position:"l9j0dhe7",width:"k4urcfbm"},innerWithAspectRatio:{bottom:"i09qtzwb",boxSizing:"rq0escxv",end:"n7fi1qx3",position:"pmk7jnqg",start:"j9ispegn",top:"kr520xx4"},outer:{height:"datstx6m",position:"l9j0dhe7",width:"k4urcfbm"},outerWithAspectRatio:{height:"idiwt2bm"}};function j(a){var b=a.children,d=a.debugRole;d=a.innerInlineStyle;var e=a.innerXStyle,f=a.outerInlineStyle,g=a.outerRef,j=a.outerXStyle;a=a.testid;var k=a!=null&&a!==""?a+"-outer":void 0;k=a!=null&&a!==""?a+"-inner":void 0;return h.jsx("div",babelHelpers["extends"]({},{},{className:c("stylex")(i.outer,j),"data-testid":void 0,ref:g,style:f,children:h.jsx("div",babelHelpers["extends"]({},{},{className:c("stylex")(i.inner,e),"data-testid":void 0,style:d,children:b}))}))}j.displayName=j.name+" [from "+f.id+"]";function a(a,b){var d=a.children,e=a.contentAspectRatio,f=a.debugRole,g=a.objectFitMode;g=g===void 0?"CONTAINER_SIZE":g;a=a.testid;a=16/9;e=e!=null&&isFinite(e)&&e>0?e:a;if(g==="CONTAINER_WIDTH_BASED_ASPECT_RATIO"){a=isFinite(e)&&e>0?100/e:100;e={paddingBottom:a.toFixed(5)+"%"};return h.jsx(j,{children:d,debugRole:f,innerXStyle:i.innerWithAspectRatio,outerInlineStyle:e,outerRef:b,outerXStyle:i.outerWithAspectRatio,testid:void 0})}else if(g==="CONTAINER_SIZE")return h.jsx(j,{children:d,debugRole:f,outerRef:b,testid:void 0});else throw c("unrecoverableViolation")("Unsupported objectFitMode "+g,"comet_ui")}a.displayName=a.name+" [from "+f.id+"]";b=h.forwardRef(a);g["default"]=b}),98); __d("DataViewReader",[],(function(a,b,c,d,e,f){"use strict";a=function(){function a(a){this.$1=0,this.$2=a}var b=a.prototype;b.seek=function(a){this.$1=a};b.skip=function(a){var b=this.$1;this.$1+=a;return b};b.readUint8=function(){return this.$2.getUint8(this.skip(8/8))};b.readUint16=function(a){a===void 0&&(a=!1);return this.$2.getUint16(this.skip(16/8),a)};b.readUint32=function(a){a===void 0&&(a=!1);return this.$2.getUint32(this.skip(32/8),a)};b.readUint64=function(a){a===void 0&&(a=!1);var b;a?(a=this.$2.getUint32(this.skip(32/8),!0),b=this.$2.getUint32(this.skip(32/8),!0)):(b=this.$2.getUint32(this.skip(32/8)),a=this.$2.getUint32(this.skip(32/8)));if(b>2097151)throw new RangeError("Overflow reading 64-bit value.");return Math.pow(2,32)*b+a};b.readInt64=function(a){a===void 0&&(a=!1);var b;a?(a=this.$2.getInt32(this.skip(32/8),!0),b=this.$2.getInt32(this.skip(32/8),!0)):(b=this.$2.getInt32(this.skip(32/8)),a=this.$2.getInt32(this.skip(32/8)));if(b>2097151)throw new RangeError("Overflow reading 64-bit value.");return Math.pow(2,32)*(b|0)+a};b.readInt16=function(a){a===void 0&&(a=!1);return this.$2.getInt16(this.skip(16/8),a)};b.readInt32=function(a){a===void 0&&(a=!1);return this.$2.getInt32(this.skip(32/8),a)};b.readZeroTerminatedString=function(a){var b="",c=0,d;while(c++0)b+=String.fromCharCode(this.$2.getUint8(this.skip(8/8)));return b};b.readBytes=function(a){var b=[];while(a-->0)b.push(this.$2.getUint8(this.skip(8/8)));return b};b.getDataView=function(){return this.$2};b.getCursor=function(){return this.$1};b.hasMoreData=function(){return this.$2.byteLength-this.getCursor()>0};return a}();f["default"]=a}),66); __d("LiveTraceWwwVideoPlayerFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("1743810");c=b("FalcoLoggerInternal").create("live_trace_www_video_player",a);e.exports=c}),null); __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){a=b.getBox().getSize()-(a.getCursor()-b.getBox().getStart());return a};return a}();a.canonicalType="emsg";f["default"]=a}),66); __d("Mp4Box",[],(function(a,b,c,d,e,f){"use strict";a=function(){function a(a){this.$4=a.getCursor(),this.$1=a.readUint32(),this.$2=a.readChars(4),this.$1===1?this.$1=a.readUint64():this.$1===0&&(this.$1=a.getDataView().byteLength-this.$4),this.$2==="uuid"&&(this.$3=a.readChars(16)),this.$5=a.getCursor()}var b=a.prototype;b.getBodyStart=function(){return this.$5};b.getBodySize=function(){var a=this.$5-this.$4;return this.getSize()-a};b.getSize=function(){return this.$1};b.getType=function(){return this.$2};b.getUuid=function(){return this.$3};b.getStart=function(){return this.$4};b.inspect=function(){return"{ size: "+this.$1+", type: "+this.$2+" }"};return a}();f["default"]=a}),66); __d("Mp4FullBox",[],(function(a,b,c,d,e,f){"use strict";a=function(){function a(a,b){this.$2=a.readUint8(),this.$1=a.readUint8(),this.$1=a.readUint8()+(this.$1<<8),this.$1=a.readUint8()+(this.$1<<8),this.$3=b}var b=a.prototype;b.getVersion=function(){return this.$2};b.getFlags=function(){return this.$1};b.getBox=function(){return this.$3};return a}();f["default"]=a}),66); __d("Mp4Demuxer",["DataViewReader","Mp4Box","Mp4FullBox"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a){this.$1=new(c("DataViewReader"))(a)}var b=a.prototype;b.parseBox=function(){return new(c("Mp4Box"))(this.$1)};b.parseFullBox=function(a){return new(c("Mp4FullBox"))(this.$1,a)};b.parseCanonicalBox=function(a,b){return new a(this.$1,b)};b.skipBox=function(a){this.$1.seek(a.getStart()+a.getSize())};b.withinBox=function(a){var b=this.$1.getCursor();return b>=a.getStart()&&b=this.$1.getDataView().byteLength};b.reset=function(){this.$1.seek(0)};b.readBoxBodyText=function(a){this.$1.seek(a.getBodyStart());var b=new TextDecoder();a=new Uint8Array(this.$1.readBytes(a.getBodySize()));return b.decode(a)};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")){h=h.getMessageData();h=new(c("DataViewReader"))(h).readZeroTerminatedString(h.byteLength);try{h=JSON.parse(h);Array.isArray(h)&&h.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 f.size&&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===void 0||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(var 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{streamId:this.$1,streamType:this.$2||0,sourceId:this.$3}};return a}();g["default"]=a}),98); __d("VideoPlayerOnViewability.react",["DOMRectIsEqual","DOMRectReadOnly","VideoPlayerViewabilityConstants","emptyFunction","react","useIntersectionObserver"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useCallback,j=b.useMemo,k=b.useRef,l=10,m=[.25,.75,.99,1].concat(new Array(10).fill().map(function(a,b){return b/10}));function a(a){var b=a.viewportMargins,d=k(-1),e=k(-1),f=k(c("DOMRectReadOnly").fromRect({height:0,width:0,x:0,y:0})),g=k(null),n=k(null);b=-b.top+"px "+-b.right+"px "+-b.bottom+"px "+-b.left+"px";var o=a.onVideoPlayerViewabilityInfoChange||c("emptyFunction"),p=l,q=i(function(a){if(a.time>e.current&&!c("DOMRectIsEqual")(a.boundingClientRect,f.current)){var b=a.boundingClientRect,d=b.height,h=b.width,i=b.x;b=b.y;var j=g.current;d=c("DOMRectReadOnly").fromRect({height:d,width:h,x:i,y:b});f.current=d;e.current=a.time;if(j===null||j<=0)return;if(j<=c("VideoPlayerViewabilityConstants").DEFAULT_VIEWABILITY_PERCENTAGE_FOR_PAUSE)return;o({positionToViewport:d,visiblePercentage:j})}},[f,g,o]),r=i(function(a){if(a.time>d.current&&(a.intersectionRatio!==g.current||!c("DOMRectIsEqual")(a.boundingClientRect,f.current))){var b=a.boundingClientRect,h=b.height,i=b.width,j=b.x;b=b.y;var k=a.intersectionRatio;h=c("DOMRectReadOnly").fromRect({height:h,width:i,x:j,y:b});i=n.current;j=i;b=!1;var l=Math.abs((i||0)*100-(k||0)*100);(k!==null&&l>=1||l>0&&k<(i||0))&&(j=k,n.current=k,b=!0);g.current=k;d.current=a.time;l=f.current;f.current=h;e.current=a.time;if(!b&&c("DOMRectIsEqual")(l,h))return;j!==null&&o({positionToViewport:h,visiblePercentage:j})}},[e,f,g,o,d]),s=j(function(){var b=[];for(var a=1;a<=p;a++)b.push("-"+(100-a/p*100)+"% 0% 0% 0%");return b},[p]),t=k([]);t.current=[];for(var u=0;u0?a:0}function o(a){if(a==="video_home_inline"||a==="inline")return{height:m,width:m};else return{height:1080,width:1920}}var p=function(a){var b=c("useCometSize_DO_NOT_USE")(),d=b[0];b=b[1];b=(b=b)!=null?b:o(a);return[b,function(a){return h.jsx(c("CometObjectFitContainer.react"),{debugRole:null,objectFitMode:"CONTAINER_SIZE",ref:d,children:a})}]};function a(a){var b=a.accessToken,e=a.expiredVideoUrlRefreshHandler,f=a.fullscreenController,g=a.implementations,m=a.isFullscreen,o=a.onCoreVideoStatesChanged,q=a.productAttribution,r=a.renderWithCoreVideoStates,s=a.trackingDataEncrypted,t=a.trackingNodes,u=a.viewportMarginsForViewability,v=babelHelpers.objectWithoutPropertiesLoose(a,["accessToken","expiredVideoUrlRefreshHandler","fullscreenController","implementations","isFullscreen","onCoreVideoStatesChanged","productAttribution","renderWithCoreVideoStates","trackingDataEncrypted","trackingNodes","viewportMarginsForViewability"]);a=l(function(){return c("videoPlayerUniqueID")()});var w=a[0];d("createVideoStateHook").useCleanupVideoStateHooks_INTERNAL(w);a=k(0);var x=k(null),y=c("useCreateVideoPlayerPassiveViewabilityInfo")(),z=y.setVideoPlayerPassiveViewabilityInfo,A=y.videoPlayerPassiveViewabilityInfo,B=v.broadcastId,C=v.isLiveStreaming,D=v.isLiveTraceEnabled;j(function(){x.current=Boolean(C)&&Boolean(D)&&B!=null?new(c("VideoLiveTrace"))(B,w,c("CurrentUser").getAccountID()):null;return function(){x.current!=null&&(x.current=null)}},[B,w,C,D]);y=p(v.subOrigin);var E=y[0];y=y[1];var F=i(function(a){z(a)},[z]),G=i(function(a){var b,c=a.implementationController;a=a.videoState;b={adClientToken:v.adClientToken,audioAvailabilityInfo:(b=v.audioAvailabilityInfo)!=null?b:d("VideoPlayerAudioAvailabilityInfo").VideoPlayerAudioAvailabilityInfoDefault,autoplayGatingResult:v.autoplayGatingResult!=null?v.autoplayGatingResult:"unknown",autoplaySetting:v.autoplaySetting,broadcastStatus:v.broadcastStatus,canAutoplay:v.canAutoplay!=null?v.canAutoplay:"allow",controller:c,dimensions:E,duration:a.duration,initialTracePolicy:v.initialTracePolicy,instanceKey:w,isFullscreen:m,isNCSR:Boolean(v.isNCSR),isPremiumMusicVideo:Boolean(v.isPremiumMusicVideo),lastMuteReason:a.lastMuteReason,lastPauseReason:a.lastPauseReason,lastPlayReason:a.lastPlayReason,loopCount:a.loopCount,loopCurrent:a.loopCurrent,originalHeight:v.originalHeight,originalWidth:v.originalWidth,videoFBID:v.videoFBID,videoPlayerPassiveViewabilityInfo:A,videoState:a,volumeSetting:v.volumeSetting};o&&o(b);return r(b)},[v.adClientToken,v.audioAvailabilityInfo,v.autoplayGatingResult,v.autoplaySetting,v.broadcastStatus,v.canAutoplay,v.initialTracePolicy,v.isNCSR,v.isPremiumMusicVideo,v.originalHeight,v.originalWidth,v.videoFBID,v.volumeSetting,E,w,m,A,o,r]);b={accessToken:b,coreVideoPlayerMetaData:v,dimensions:E,instanceKey:w,playerImplementationInstanceCountRef:a,productAttribution:q,trackingDataEncrypted:s,trackingNodes:t,videoLiveTraceRef:x};if(g.length===0){if(!c("gkx")("1611172"))return null;a=c("err")("No implementations given to CoreVideoPlayer");a.metadata=new(c("ErrorMetadata"))();a.metadata.addEntry("COMET_VIDEO","VIDEO_ID",String(v.videoFBID));throw c("unrecoverableViolation")("No implementations given to CoreVideoPlayer","comet_video_player",{error:a})}q=Boolean(v.captionsUrl);s=Boolean(v.isLiveStreaming);e={VideoPlayerShakaPerformanceLoggerClass:v.VideoPlayerShakaPerformanceLoggerClass,alt:v.alt,alwaysShowCaptions:v.alwaysShowCaptions,areCaptionsAutogenerated:v.areCaptionsAutogenerated,audioOnly:v.audioOnly,bufferEndLimit:v.bufferEndLimit,captionDisplayStyle:v.captionDisplayStyle,captionsUrl:v.captionsUrl,dimensions:E,disableLogging:v.disableLogging===!0,expiredVideoUrlRefreshHandler:e,fullscreenController:f,graphQLVideoDRMInfo:(t=v.graphQLVideoDRMInfo)!=null?t:null,graphQLVideoP2PSettings:(a=v.graphQLVideoP2PSettings)!=null?a:null,inbandCaptionsExpected:s,initialDesiredLatencyMs:v.desiredLatencyMs,initialLatencyToleranceMs:v.latencyToleranceMs,initialRepresentationIds:v.initialRepresentationIds,loadSequence:v.loadSequence,loggingMetaData:b,loopCount:v.loopCount,renderWithVideoImplementationStates:G,sideLoadCaptionsExpected:q,startTimestamp:n(v.startTimestamp),videoFBID:v.videoFBID,videoLiveTraceRef:x,videoPlayerPassiveViewabilityInfo:A,videoPlayerShakaPerformanceLoggerBuilder:v.videoPlayerShakaPerformanceLoggerBuilder,wrapVideoPixels_EXPERIMENTAL:v.wrapVideoPixels_EXPERIMENTAL};f=g[0];t=c("renderVideoPlayerImplementation")(f,e);t!=null&&(t=h.jsx(c("VideoPlayerOnViewability.react"),{onVideoPlayerViewabilityInfoChange:F,viewportMargins:u,children:t}));return y(t)}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("DOMContainer.react",["invariant","isNode","react"],(function(a,b,c,d,e,f,g,h){var i=d("react");a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f