mirror of
https://github.com/Monibuca/plugin-preview.git
synced 2025-09-26 19:11:14 +08:00
2 lines
2.1 MiB
2 lines
2.1 MiB
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("crypto")):"function"==typeof define&&define.amd?define(["crypto"],e):(t="undefined"!=typeof globalThis?globalThis:t||self)["jessibuca-demo"]=e(t.crypto$1)}(this,(function(t){"use strict";function s(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=s(t);const n=Wt;!function(t,e){const s=Wt,i=t();for(;;)try{if(996551===parseInt(s(214))/1*(parseInt(s(471))/2)+-parseInt(s(248))/3+-parseInt(s(392))/4*(-parseInt(s(427))/5)+parseInt(s(606))/6*(parseInt(s(200))/7)+parseInt(s(436))/8+-parseInt(s(246))/9+-parseInt(s(524))/10*(parseInt(s(295))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(S);const o={websocket:1,fetch:2,hls:3,webrtc:4,webTransport:5,aliyunRtc:6,ts:7},a=["",n(632),n(329),n(372),n(474),n(273),n(260),"ts"],h={fetch:n(329),hls:"hls",websocket:n(632),webrtc:n(474),webTransport:"webTransport",worker:n(543),aliyunRtc:n(260),mp4:n(365)},c={player:"player",playerAudio:n(665),playbackTF:n(655),talk:"talk",playVod:n(322)},l={mp4:n(365),webm:n(480),flv:n(224),mov:n(656)},d={flv:n(224),m7s:n(299),hls:"hls",webrtc:"webrtc",webTransport:n(273),nakedFlow:n(284),fmp4:n(327),mpeg4:n(314),aliyunRtc:n(260),ts:"ts",g711:n(374),pcm:n(504)},u={flv:"FLV",m7s:n(213),hls:n(231),fmp4:n(439),mpeg4:"MPEG4",webrtc:n(563),webTransport:n(349),nakedFlow:"裸流",aliyunRtc:n(239),ts:"TS"},p={mse:"mse",wcs:"wcs",offscreen:n(221),wasm:n(321),simd:n(556),mt:"mt",webrtc:n(474),hls:n(372),aliyunRtc:"aliyunRtc"},f={canvas:n(396),video:n(592)},m={debug:"debug",warn:"warn"},g={click:"click",mouseDownAndUp:"mouseDownAndUp"},A={normal:n(590),simple:n(205)},y={normal:"normal",small:n(398)},b=n(212),v=n(386);function S(){const t=["notConnect","H264(AVC)","memory access out of bounds","tcp","talkGetUserMediaTimeout","性能面板","playVodWaiting","playVodStats","ALAW","videoCodec","videoNalu","webrtc-completed","currentPts","webcodecsUnsupportedConfigurationError","audioNalu","error","flvMetaData","mp3","no-audio-track","isTs","data-channel","The user aborted a request","fetchClose","online","aiOcclusionDetectResult","加载超时重播失败","recording","1-1","multiMousemove","34aBSQVH","mute","webrtc-disconnected","webrtc","audioPayload","audioInfo","resetDecode","metadata-parsed","closeEnd","webm","playbackSeek","clickInitPlayer","metadata","open","load-retry","playVodVideoSeekingByMse","decoderWorkerInitError","mseWorkerAddSourceBufferError","leftDown","removeLoadingBgImage","dynamicWatermarkConfig","流异常","delayTimeoutRetryEnd","playVodSeekEnd","playing","保存日志","decode","outbound-rtp","playbackStreamVideoFps","操作盘","talkGetUserMediaFail","apertureFar","webrtc-closed","pcm","videoDecode","streamError","focusNear","人脸识别激活","crashLog","networkState","multiMousedown","A key frame is required after configure() or flush()","hlsError","playbackPause","inView","right-down","videoInfo","viewResizeChange","streamEnd","talkStreamInactive","self","wcsWidthOrHeightChange","emptied","510PRhEcs","ptz","volume","isM7sCrypto","buffereos","streamQualityChange","playVodRateChange","jessibuca-pro-mp4-recorder-decoder.js","mseSourceStartStreaming","created","aiObjectDetectorInfo","sourceended","webcodecsAudioNoDataTimeout","playType","closed","codec","isWebrtc","playFailedAndPaused","mediaSourceH265NotSupport","worker","left","webgl","mseWidthOrHeightChange","occlusionDetectActive","resetAudioDecode","drawingRect","videoSEI","streamVbps","init","focusFar","left-down","fetchError","simd","stop","volumechange","videoRenderSupportScale","multiDrop","seeked","音频通道错误","Webrtc","script","mediaSourceAudioInitTimeout","playbackForwardMaxRateDecodeIFrame","tenMin","性能面板激活","candidate-pair","ceil","udp","ALAW(g711a)","websocketOpenTimeout","initVideo","/crypto/","mediaSourceAudioNoDataTimeout","初始化音频解码器失败","workerEnd","audioChannelError","replayUseLastFrameShow","playToRenderTimes","stream","playIsNotPauseOrUrlIsNull","zooming","webcodecsH265NotSupport","multiFullscreen","download","load-response-headers","ws1006","normal","AbortError","video","objectDetectActive","durationchange","3-4","warn","sourceopen","mseDecodeError","switch-url-failed","networkDelay","videoPayload","websocketStringMsg",'video/mp4;codecs="hev1.3.E.L120.90"',"mseSourceended","streamDts","6XLZUUR","streamMessage","mediaSourceUseCanvasRenderPlayFailed","Decoding error","stream-parsed","decoder-pro-audio.js","timeUpdate","videoInfoError","playbackRateChange","drawingRectInfo","不支持硬解码H265","loadingTimeoutRetryEnd","multiDblSelected","网络超时重播失败","iframeIntervalTs","streamEndInner","fetchErrorWorker","kBps","webFullscreen","mediaSourceDecoderConfigurationError","visibilityHiddenTimeout","right-up","playbackJustTime","videoCode","multiMouseover","start","websocket","解码失败","talkStreamMsg","mseSourceBufferBusy","MediaSource解码使用canvas渲染失败","decoder-pro-hard-not-wasm.js","mediaSourceTsIsMaxDiff","mseWaitVideoCanplayTimeout","mseAddSourceBufferError","multiDragleave","red","wasmUseVideoRenderError","togglePerformancePanel","faceDetectActive","right","playVodSeek","关闭电子放大","heartTimeout","playVodTime","webcodecsDecodeConfigureError","AAC","webgl2","playbackTimeScroll","playbackTF","mov","websocketClose","fogClose","buffer","demuxed-track","wasm解码失败","delayTimeout","isWebrtcForOthers","speed","playerAudio","loadedmetadata","playback","notSupportNewWasm","webcodecsAudioInitTimeout","fullscreen","isDropping","操作盘激活","isMpeg4","player","load-complete","beforeDestroy","multiSelected","videoWaiting","decoderWorkerInit","streamSuccess","playVodPause","load","endstreaming","playVodTimeCache","webrtcStreamH265","performance","mp4Error","H265(HEVC)","streamAbps","stats","Simd","isWebrtcForZLM","five-min","recordBlob",'video/mp4;codecs="hev1.1.6.L120.90"',"6965308PbycAy","webrtcOnConnectionStateChange","progress","decoder-pro-audio-player.js","playbackIsPause","simple","mseSourceBufferFull","play","initAudio","ratechange","videoSEISyncPts","NotAllowedError","JessibucaPro","M7S","103183bKQlyV","wasmWidthOrHeightChange","blob","flvDemuxBufferSizeTooLarge","canplaythrough","解析视频分辨率失败","flv-script-data","offscreen","widthOrHeightChange","empty","flv","clearBuffer","webrtcChecking","talkStreamError","等待音频数据超时","supportHls265","white","HLS","canplay","video自动渲染失败","remote-candidate","multiIndex","webrtcConnected","mse","人脸识别","AliyunRtc","fiveMin","videoTimeUpdate","sendMessage","waiting","ended","watermarkConfig","7595820NNgQyh","close","5893287VsdHeA","default","destroy","webrtcDisconnect","webrtcClosed","decoder-pro-old.js","HEVC decoding is not supported","one-hour","simdH264DecodeVideoWidthIsTooLarge","recordCancel","av1","playbackPreRateChange","aliyunRtc","ghostWatermarkConfig","playAudio","Wasm","recordingTimestamp","image/webp","defaultStreamQuality","mseSourceBufferError","videoSequenceHeader","decoderWorkerWasmError","mseFirstRenderTime","netBuf","buffering","webTransport","loadingTimeout","初始化解码器失败","硬解码不支持G711a/u音频格式","widthOrHeightChangeReplayDelayTime","jbprovm","videoSmooth","csrc","playVodPauseOrResume","startstreaming","recordEnd","nakedFlow","webgl 上下文丢失","fiStop","image/jpeg",'video/mp4;codecs="hev1.2.4.L120.90"',"downloadMemoryLog","sei","focus","Jb%20pro%20%E4%BD%93%E9%AA%8C%E7%BB%93%E6%9D%9F%2C%E8%AF%B7%E5%88%B7%E6%96%B0%E9%A1%B5%E9%9D%A2%E5%86%8D%E6%AC%A1%E4%BD%93%E9%AA%8C(wasm%E5%86%85%E9%83%A8%E4%BC%9A%E6%9A%82%E5%81%9C%E8%A7%A3%E7%A0%81)%EF%BC%8C%E5%A6%82%E9%9C%80%E8%A6%81%E8%B4%AD%E4%B9%B0%E5%95%86%E4%B8%9A%E6%8E%88%E6%9D%83%EF%BC%8C%E5%8F%AF%E4%BB%A5%E8%81%94%E7%B3%BB%E5%BE%AE%E4%BF%A1%EF%BC%9Abosswancheng","multiMouseout","audioCode","178970eiJbns","destroyEnd","Jb%20pro%20%E4%BD%93%E9%AA%8C%E7%BB%93%E6%9D%9F%2C%E8%AF%B7%E5%88%B7%E6%96%B0%E9%A1%B5%E9%9D%A2%E5%86%8D%E6%AC%A1%E4%BD%93%E9%AA%8C%EF%BC%8C%E5%A6%82%E9%9C%80%E8%A6%81%E8%B4%AD%E4%B9%B0%E5%95%86%E4%B8%9A%E6%8E%88%E6%9D%83%EF%BC%8C%E5%8F%AF%E4%BB%A5%E8%81%94%E7%B3%BB%E5%BE%AE%E4%BF%A1%EF%BC%9Abosswancheng","wasmError","m7s","streamRate","streamStats","isFlv","talkStreamClose","MP3","apertureNear","aiImageDetectResult","webgpu","playbackShowPrecisionChange","loadeddata","initDecoderWorkerTimeout","object","aliyunRtcError","aacSequenceHeader","mpeg4","sourcebuffer-created","oneHour","paused","record","mseSourceEndStreaming","play() failed because the user didn't interact with the document first","wasm","playVod","videoElementPlayingFailed","playbackStats","30min","inbound-rtp","fmp4","isMulti","fetch","jbprov","cruiseStop","readystatechange","audioResumeState","left-up","active","playbackPrecision","local-candidate","transport","playbackEnd","video decoder initialization failed","webrtcOnIceConnectionStateChange",'video/mp4; codecs="hev1.1.6.L123.b0"',"请求失败","window","MULAW(g711u)","networkDelayTimeout","worklet","audioDecode","WebTransport","fetchSuccess","websocketError","hls-manifest-loaded","webrtc-connected","websocketOpen","webrtc-checking","jtt","Decoder failure","container","playbackPauseOrResume","timeupdate","pressureObserverCpu","isFmp4","mseHandle","opus","mp4","suspend","talkStreamStart","ulaw","loading","MEDIA_ERR_SRC_NOT_SUPPORTED","flvScriptData","hls","退出全屏","g711","recordCreateError","不支持该分辨率的视频","isAliyunRtc","rtp","Webgl 渲染失败","decoder-pro-hard.js","Decoder error","failedToAsynchronouslyPrepareWasm","sendWsMessage","pause","subtitle-segments","20251201","updateConfig","请求结束","fullscreenError","aiFaceDetectorInfo","MEDIA_ERR_NETWORK","104THwJil","global","遮挡物检查激活","audio packet","canvas","缓冲区已满","small","playbackTime","down","webglAlignmentError","0000000000","mediaSourceAudioG711NotSupport","base64","subtitle-playlist","stalled","timeout","webcodecs","qualitychange","remote-inbound-rtp","videoElementPlayingFailedForWebrtc","FLV待解封装buffer过大","playVodMp4Error","image/png","#FFCC00","complete","idle","zoomNarrow","visibilityChange",'video/mp4; codecs="avc1.64002A"',"videoFrame","播放地址不能为空","delta","webrtcIceCandidateError","g711u","ten-min","201220URlNzg","Cannot call 'decode' on a closed codec","ttfb","receiver","MULAW","memoryLog","#343434","flvBufferData","物品识别","6713848uXWCLB","遮挡物检查","rightDown","FMP4","simdDecodeError","videoSyncAudio"];return(S=function(){return t})()}const w=36e5,E=n(575),I=n(330);n(278);const T=1e4,k={playIsNotPauseOrUrlIsNull:n(422),webglAlignmentError:n(379),webglContextLostError:n(285),mediaSourceH265NotSupport:n(616),mseSourceBufferFull:n(397),mediaSourceAppendBufferError:n(275),mseSourceBufferError:n(633),mseAddSourceBufferError:n(275),mseWorkerAddSourceBufferError:n(275),mediaSourceDecoderConfigurationError:"初始化解码器失败",mediaSourceTsIsMaxDiff:n(492),mseWidthOrHeightChange:n(492),mediaSourceAudioG711NotSupport:n(276),mediaSourceAudioInitTimeout:n(577),mediaSourceAudioNoDataTimeout:n(228),mediaSourceUseCanvasRenderPlayFailed:n(636),mediaSourceBufferedIsZeroError:n(492),webcodecsH265NotSupport:"不支持硬解码H265",webcodecsUnsupportedConfigurationError:n(275),webcodecsDecodeConfigureError:"初始化解码器失败",webcodecsDecodeError:n(633),webcodecsAudioInitTimeout:n(577),webcodecsAudioNoDataTimeout:n(228),wcsWidthOrHeightChange:n(633),wasmDecodeError:n(633),simdDecodeError:n(633),wasmWidthOrHeightChange:"流异常",wasmUseVideoRenderError:n(233),videoElementPlayingFailed:n(233),simdH264DecodeVideoWidthIsTooLarge:n(376),networkDelayTimeout:n(619),fetchError:n(343),streamEnd:n(388),websocket1006Error:"流异常结束",websocketError:n(343),webrtcError:n(343),hlsError:"请求失败",decoderWorkerInitError:"初始化worker失败",decoderWorkerWasmError:n(661),videoElementPlayingFailedForWebrtc:n(233),videoInfoError:n(219),webrtcStreamH265:"webrtc不支持H265",delayTimeout:"播放超时重播失败",loadingTimeout:n(467),loadingTimeoutRetryEnd:n(467),delayTimeoutRetryEnd:"播放超时重播失败",flvDemuxBufferSizeTooLarge:n(412),audioChannelError:n(562),aliyunRtcError:n(343),mseWaitVideoCanplayTimeout:n(492),initDecoderWorkerTimeout:"初始化解码worker超时"},_={playType:c[n(674)],videoBuffer:1e3,videoBufferDelay:1e3,networkDelay:1e4,isResize:!0,isFullResize:!1,isFlv:!1,isHls:!1,isFmp4:!1,isWebrtc:!1,isWebrtcForZLM:!1,isWebrtcForSRS:!1,webrtcForSRSBySDK:!1,isWebrtcForOthers:!1,isNakedFlow:!1,isMpeg4:!1,isAliyunRtc:!1,isTs:!1,debug:!1,debugLevel:m.warn,debugUuid:"",isMulti:!0,multiIndex:-1,hotKey:!1,loadingTimeout:10,heartTimeout:10,timeout:10,pageVisibilityHiddenTimeout:300,loadingTimeoutReplay:!0,heartTimeoutReplay:!0,loadingTimeoutReplayTimes:3,heartTimeoutReplayTimes:3,heartTimeoutReplayUseLastFrameShow:!0,replayUseLastFrameShow:!0,replayShowLoadingIcon:!1,supportDblclickFullscreen:!1,showBandwidth:!1,showPerformance:!1,mseCorrectTimeDuration:20,mseCorrectAudioTimeDuration:20,keepScreenOn:!0,isNotMute:!1,muted:!0,hasAudio:!0,hasVideo:!0,operateBtns:{fullscreen:!1,screenshot:!1,play:!1,audio:!1,record:!1,ptz:!1,quality:!1,zoom:!1,close:!1,scale:!1,performance:!1,logSave:!1,aiFace:!1,aiObject:!1,aiOcclusion:!1,fullscreenFn:null,fullscreenExitFn:null,screenshotFn:null,playFn:null,pauseFn:null,recordFn:null,recordStopFn:null},extendOperateBtns:[],contextmenuBtns:[],watermarkConfig:{},controlAutoHide:!1,controlAutoHideDelayTime:5,hasControl:!1,controlSize:y[n(590)],loadingIcon:!0,loadingIconStyle:{},loadingText:"",background:"",poster:"",backgroundLoadingShow:!0,loadingBackground:"",loadingBackgroundWidth:0,loadingBackgroundHeight:0,decoder:"decoder-pro.js",decoderOld:n(253),decoderAudio:n(611),decoderHard:n(380),decoderHardNotWasm:n(637),wasmMp4RecorderDecoder:n(531),decoderWASM:"",isDecoderUseCDN:!1,url:"",rotate:0,mirrorRotate:"none",aspectRatio:n(249),playbackConfig:{playList:[],fps:"",autoCalcFps:!0,showControl:!0,controlType:A[n(590)],duration:0,startTime:"",showRateBtn:!1,rateConfig:[],showPrecision:"",showPrecisionBtn:!0,isCacheBeforeDecodeForFpsRender:!1,uiUsePlaybackPause:!1,isPlaybackPauseClearCache:!0,isUseFpsRender:!1,isUseLocalCalculateTime:!1,localOneFrameTimestamp:40,supportWheel:!1,useWCS:!1,useMSE:!1,useSIMD:!0},qualityConfig:[],defaultStreamQuality:"",scaleConfig:["拉伸","缩放","正常"],forceNoOffscreen:!0,hiddenAutoPause:!1,protocol:o[n(329)],demuxType:d[n(224)],useWasm:!1,useOldWasm:!1,useMSE:!1,useWCS:!1,useSIMD:!0,isFFmpegSIMD:!1,useMThreading:!1,preferredHardDecode:!1,wcsUseVideoRender:!0,wcsUseWebgl2Render:!1,wasmUseVideoRender:!0,mseUseCanvasRender:!1,hlsUseCanvasRender:!1,webrtcUseCanvasRender:!1,useOffscreen:!1,useWebGPU:!1,useWebCanvas:!1,mseDecodeErrorReplay:!0,wcsDecodeErrorReplay:!0,wasmDecodeErrorReplay:!0,simdDecodeErrorReplay:!0,simdDecodeErrorReplayType:p[n(321)],autoWasm:!0,decoderErrorAutoWasm:!1,hardDecodingNotSupportAutoWasm:!0,webglAlignmentErrorReplay:!0,webglContextLostErrorReplay:!0,openWebglAlignment:!1,syncAudioAndVideo:!0,syncAudioAndVideoDiff:400,playbackDelayTime:1e3,playbackFps:25,playVodFps:25,playbackForwardMaxRateDecodeIFrame:4,playbackCurrentTimeMove:!0,useVideoRender:!0,useCanvasRender:!1,videoRenderType:"",networkDelayTimeoutReplay:!1,recordType:l[n(365)],checkFirstIFrame:!0,nakedFlowFps:25,audioEngine:null,isShowRecordingUI:!0,isShowZoomingUI:!0,useFaceDetector:!1,useObjectDetector:!1,useImageDetector:!1,useOcclusionDetector:!1,ptzPositionConfig:{},ptzShowType:"vertical",ptzClickType:g.click,ptzStopEmitDelay:.3,ptzZoomShow:!1,ptzApertureShow:!1,ptzFocusShow:!1,ptzMoreArrowShow:!1,ptzCruiseShow:!1,ptzFogShow:!1,ptzWiperShow:!1,ptzSupportDraggable:!1,weiXinInAndroidAudioBufferSize:4800,isCryptoAudio:!1,isM7sCrypto:!1,isSm4Crypto:!1,isSm4CryptoH265V2:!1,isXorCrypto:!1,sm4CryptoKey:"",m7sCryptoKey:"",xorCryptoKey:"",cryptoKey:"",cryptoIV:"",cryptoKeyUrl:"",listenWindowResizeAuoResize:!0,orientationChangeResize:!1,useWebFullScreen:!1,ptsMaxDiff:3600,aiFaceDetectLevel:2,aiFaceDetectWidth:240,aiFaceDetectEmitBase64:!1,aiFaceDetectShowRect:!0,aiFaceDetectInterval:1e3,aiFaceDetectRectConfig:{},aiObjectDetectLevel:2,aiObjectDetectWidth:240,aiObjectDetectShowRect:!0,aiObjectDetectInterval:1e3,aiObjectDetectRectConfig:{},aiObjectDetectTarget:"",aiOcclusionDetectInterval:1e3,aiImageDetectDrop:!1,aiImageDetectActive:!1,videoRenderSupportScale:!0,mediaSourceTsIsMaxDiffReplay:!0,controlHtml:"",isH265:!1,isWebrtcH265:!1,supportLockScreenPlayAudio:!0,supportHls265:!0,hls265ForceFixLargeGap:!0,isEmitSEI:!1,pauseAndNextPlayUseLastFrameShow:!1,demuxUseWorker:!0,playFailedAndReplay:!0,showMessageConfig:k,videoElementPlayingFailedReplay:!0,mp4RecordUseWasm:!0,mseAutoCleanupSourceBuffer:!0,mseAutoCleanupMaxBackwardDuration:30,mseAutoCleanupMinBackwardDuration:10,widthOrHeightChangeReplay:!0,simdH264DecodeVideoWidthIsTooLargeReplay:!0,mediaSourceAudioG711NotSupportReplay:!0,mediaSourceAudioInitTimeoutReplay:!0,mediaSourceAudioNoDataTimeoutReplay:!0,mediaSourceUseCanvasRenderPlayFailedReplay:!0,mediaSourceUseCanvasRenderPlayFailedReplayType:f[n(592)],webcodecsAudioInitTimeoutReplay:!0,webcodecsAudioNoDataTimeoutReplay:!0,widthOrHeightChangeReplayDelayTime:0,ghostWatermarkConfig:{on:5,off:5,content:"",fontSize:12,color:n(230),opacity:.15,speed:.2},dynamicWatermarkConfig:{content:"",speed:.2,fontSize:12,color:n(230),opacity:.15},isDropSameTimestampGop:!1,mseDecodeAudio:!0,wcsDecodeAudio:!0,nakedFlowH265DemuxUseNew:!0,nakedFlowDemuxUseNew:!0,extendDomConfig:{html:"",showBeforePlay:!1,showAfterLoading:!0},disableContextmenu:!1,mseDecoderUseWorker:!0,openMemoryLog:!1,mainThreadFetchUseWorker:!0,playFailedAndPausedShowPlayBtn:!0,mseCorrectionTimestamp:!0,flvDemuxBufferSizeTooLargeReplay:!1,flvDemuxBufferSizeTooLargeEmitFailed:!1,flvDemuxBufferSizeMaxLarge:1048576,isCheckInView:!1,hiddenControl:!1,androidMobileFullscreenRotate:!0,disableModule:{ptz:!1,record:!1,zoom:!1,watermark:!1,playback:!1},recordWebMSupportSeek:!1,wasmPlayAudioUseVideoRender:!1,mseWaitVideoCanplayTimeout:6,mseWaitVideoCanplayAutoWasm:!0,zoomMaxScale:5,zoomSupportGestureInMobile:!1,zoomSupportGestureInMobileSpeed:.2,drawingRectColor:n(642),drawingRectLineWidth:1,drawingRectEndRemoveDom:!0,videoSEISyncPtsDiff:.2,initShowPlayBtn:!1,playbackCheckStreamEnd:!0,autoUseSystemFullScreen:!0,playVodConfig:{showRateBtn:!1,rateConfig:[],useWCS:!1,useMSE:!0,useSIMD:!0,startTime:null},playVodForwardMaxRateDecodeIFrame:8,playVodEndedAndAutoReplay:!1,playVodEndedAndShowPlayBtn:!0,hotKeyVolumeStep:.05,hotKeySeekStep:5,websocketOpenTimeout:8,i18n:{},screenshotUseHighQuality:!1,requestAnimationFrameMaxDiff:800,isUseFileProtocol:!1},C={playType:_[n(537)],playbackForwardMaxRateDecodeIFrame:_[n(566)],isMulti:_[n(328)],isM7sCrypto:_[n(527)],supportHls265:_[n(229)],pauseAndNextPlayUseLastFrameShow:_.pauseAndNextPlayUseLastFrameShow,replayUseLastFrameShow:_[n(580)],widthOrHeightChangeReplayDelayTime:_[n(277)],controlSize:_.controlSize,multiIndex:_[n(235)],isFlv:_[n(302)],isFmp4:_[n(362)],isMpeg4:_[n(673)],isNakedFlow:_.isNakedFlow,isHls:_.isHls,isWebrtc:_[n(540)],isWebrtcForZLM:_[n(196)],isWebrtcForSRS:_.isWebrtcForSRS,isWebrtcForOthers:_[n(663)],isAliyunRtc:_[n(377)],isTs:_[n(461)],ghostWatermarkConfig:_[n(261)],dynamicWatermarkConfig:_[n(491)],watermarkConfig:_[n(245)],defaultStreamQuality:_[n(266)],videoRenderSupportScale:_[n(559)],timeout:_.timeout,loadingTimeout:_[n(274)],heartTimeout:_[n(649)],url:"",container:"",playbackConfig:{},playVodConfig:{},fullscreenWatermarkConfig:{},playbackForwardMaxRatePlayAudio:!1,playOptions:{},isLive:!0,playFailedUseLastFrameShow:!0,playFailedAndPausedShowMessage:!0,isUseNewFullscreenWatermark:!0,websocket1006ErrorReplay:!0,websocket1006ErrorReplayDelayTime:1,streamErrorReplay:!1,streamErrorReplayDelayTime:1,streamEndReplay:!1,streamEndReplayDelayTime:1,networkDisconnectReplay:!0,loadingTimeoutRetryEndShowPlayBtn:!0,initDecoderWorkerTimeout:10,checkIsMeaningfulRetryTimes:5,isPlayFailedAndPausedSaveLastIframeInfo:!0},R={init:n(552),initVideo:n(574),render:"render",playAudio:n(262),initAudio:n(208),kBps:"kBps",decode:n(497),audioCode:n(294),audioNalu:n(456),audioAACSequenceHeader:"audioAACSequenceHeader",videoCode:n(629),videoCodec:n(451),videoNalu:n(452),videoPayload:n(601),audioPayload:n(475),wasmError:n(298),workerFetch:"workerFetch",iframeIntervalTs:n(620),isDropping:n(671),workerEnd:n(578),networkDelay:n(600),playbackStreamVideoFps:n(499),wasmWidthOrHeightChange:n(215),simdDecodeError:n(440),simdH264DecodeVideoWidthIsTooLarge:"simdH264DecodeVideoWidthIsTooLarge",websocketOpen:n(354),websocketStringMsg:"websocketStringMsg",closeEnd:n(479),tempStream:"tempStream",videoSEI:n(550),flvScriptData:n(371),aacSequenceHeader:n(313),videoSequenceHeader:n(268),flvBufferData:n(434),checkFirstIFrame:"checkFirstIFrame",mseHandle:n(363),mseFirstRenderTime:n(270),mseError:"mseError",notSupportNewWasm:n(668),failedToAsynchronouslyPrepareWasm:n(382)},D={audio:1,video:2},L={audio:8,video:9,scriptData:18},x={init:n(552),decode:"decode",audioDecode:n(348),videoDecode:n(505),initAudioCodec:"initAudioCodec",initVideoCodec:"initVideoCodec",close:n(247),updateConfig:n(387),resetDecode:n(477),clearBuffer:n(225),resetAudioDecode:n(548),resetVideoDecode:"resetVideoDecode",fetchStream:"fetchStream",sendWsMessage:n(383),mseUpdateVideoTimestamp:"mseUpdateVideoTimestamp",playbackIsPause:n(204)},P={fetch:"fetch",destroy:n(250),destroyEnd:n(296),buffer:"buffer",fetchError:n(555),fetchErrorWorker:n(622),fetchClose:n(464),fetchSuccess:n(350),init:n(552)},B={fetch:n(329),sendMessage:n(242),destroy:n(250),destroyEnd:n(296),buffer:"buffer",websocketError:"websocketError",websocketClose:n(657),websocketOpen:n(354),websocketStringMsg:n(602),init:"init"},M={fullscreen:"fullscreen$2",fullScreenByStart:"fullScreenByStart",webFullscreen:n(624),decoderWorkerInit:n(183),play:n(207),playing:n(495),pause:n(384),mute:n(472),load:n(186),loading:n(369),zooming:"zooming",drawingRect:n(549),drawingRectInfo:"drawingRectInfo",videoInfo:n(517),timeUpdate:"timeUpdate",audioInfo:n(476),log:"log",error:"error",kBps:n(623),timeout:n(407),delayTimeout:n(662),delayTimeoutRetryEnd:n(493),loadingTimeout:"loadingTimeout",loadingTimeoutRetryEnd:n(617),stats:n(194),performance:"performance",videoSmooth:n(279),faceDetectActive:n(645),objectDetectActive:n(593),occlusionDetectActive:n(547),imageDetectActive:"imageDetectActive",record:n(318),recording:n(468),recordingTimestamp:n(264),recordStart:"recordStart",recordEnd:n(283),recordCreateError:n(375),recordBlob:n(198),recordCancel:"recordCancel",buffer:n(659),videoFrame:n(421),videoSEI:n(550),videoSEISyncPts:n(210),start:n(631),metadata:n(483),resize:"resize",volumechange:n(558),volume:n(526),destroy:"destroy",beforeDestroy:n(180),streamEnd:n(519),streamRate:n(300),streamAbps:n(193),streamVbps:n(551),streamDts:n(605),streamSuccess:n(184),streamMessage:n(607),streamError:n(506),streamStats:n(301),streamEndInner:n(621),mseSourceOpen:"mseSourceOpen",mseSourceClose:"mseSourceClose",mseSourceended:n(604),mseSourceStartStreaming:n(532),mseSourceEndStreaming:n(319),mseSourceBufferError:n(267),mseAddSourceBufferError:"mseAddSourceBufferError",mseWorkerAddSourceBufferError:n(488),mseSourceBufferBusy:n(635),mseSourceBufferFull:"mseSourceBufferFull",videoWaiting:n(182),videoTimeUpdate:n(241),videoSyncAudio:n(441),playToRenderTimes:"playToRenderTimes",playbackTime:n(399),playbackTimestamp:"playbackTimestamp",playbackTimeScroll:n(654),playbackPrecision:n(336),playbackShowPrecisionChange:n(308),playbackJustTime:n(628),playbackStats:n(324),playbackSeek:n(481),playbackPause:n(514),playbackPauseOrResume:"playbackPauseOrResume",playbackRateChange:n(614),playbackPreRateChange:n(259),playbackEndInner:"playbackEndInner",playbackEnd:n(339),playVodStats:n(449),playVodPause:n(185),playVodPauseOrResume:n(281),playVodRateChange:n(530),playVodTime:"playVodTime",playVodTimeCache:n(188),playVodSeek:n(647),playVodSeekEnd:n(494),playVodVideoSeekingByMse:n(486),playVodVideoSeekedByMse:"playVodVideoSeekedByMse",playVodCanplay:"playVodCanplay",playVodWaiting:n(448),playVodEndedAndReplay:"playVodEndedAndReplay",playVodEnded:"playVodEnded",ptz:n(525),streamQualityChange:n(529),visibilityChange:n(419),netBuf:n(271),close:n(247),networkDelayTimeout:n(346),togglePerformancePanel:n(644),viewResizeChange:n(518),flvDemuxBufferSizeTooLarge:n(217),talkGetUserMediaSuccess:"talkGetUserMediaSuccess",talkGetUserMediaFail:n(501),talkGetUserMediaTimeout:n(446),talkStreamStart:n(367),talkStreamOpen:"talkStreamOpen",talkStreamClose:n(303),talkStreamError:n(227),talkStreamInactive:n(520),talkStreamMsg:n(634),webrtcDisconnect:n(251),webrtcFailed:"webrtcFailed",webrtcClosed:n(252),webrtcChecking:n(226),webrtcConnected:n(236),webrtcCompleted:"webrtcCompleted",webrtcOnConnectionStateChange:n(201),webrtcOnIceConnectionStateChange:n(341),crashLog:n(509),focus:n(291),blur:"blur",inView:n(515),visibilityHiddenTimeout:n(626),websocketOpen:n(354),websocketClose:"websocketClose",websocketError:n(351),websocketStringMsg:n(602),aiObjectDetectorInfo:n(534),aiFaceDetectorInfo:n(390),aiOcclusionDetectResult:"aiOcclusionDetectResult",aiImageDetectResult:n(306),playFailedAndPaused:n(541),audioResumeState:n(333),webrtcStreamH265:n(189),flvMetaData:n(458),talkFailedAndStop:"talkFailedAndStop",removeLoadingBgImage:n(490),memoryLog:n(432),downloadMemoryLog:n(289),pressureObserverCpu:n(361),currentPts:n(454),online:n(465),offline:"offline",networkState:n(510),clickInitPlayer:n(482)},F={load:M.load,timeUpdate:M.timeUpdate,videoInfo:M[n(517)],audioInfo:M[n(476)],error:M[n(457)],kBps:M[n(623)],start:M[n(631)],timeout:M[n(407)],loadingTimeout:M[n(274)],loadingTimeoutRetryEnd:M.loadingTimeoutRetryEnd,delayTimeout:M[n(662)],delayTimeoutRetryEnd:M.delayTimeoutRetryEnd,fullscreen:n(670),webFullscreen:M[n(624)],play:M.play,pause:M[n(384)],mute:M[n(472)],stats:M[n(194)],performance:M[n(190)],recordingTimestamp:M[n(264)],recordStart:M.recordStart,recordCreateError:M.recordCreateError,recordEnd:M[n(283)],recordBlob:M[n(198)],recordCancel:M[n(257)],playToRenderTimes:M[n(581)],playbackSeek:M.playbackSeek,playbackStats:M[n(324)],playbackTimestamp:M.playbackTimestamp,playbackPauseOrResume:M[n(359)],playbackPreRateChange:M.playbackPreRateChange,playbackRateChange:M[n(614)],playbackShowPrecisionChange:M[n(308)],playbackEnd:M[n(339)],playVodEnded:M.playVodEnded,playVodPauseOrResume:M[n(281)],playVodRateChange:M[n(530)],playVodTime:M[n(650)],playVodSeek:M[n(647)],playVodSeekEnd:M.playVodSeekEnd,ptz:M[n(525)],streamQualityChange:M.streamQualityChange,zooming:M[n(584)],crashLog:M[n(509)],focus:M[n(291)],blur:M.blur,visibilityHiddenTimeout:M.visibilityHiddenTimeout,visibilityChange:M[n(419)],websocketOpen:M[n(354)],websocketClose:M[n(657)],websocketStringMsg:M[n(602)],networkDelayTimeout:M[n(346)],aiObjectDetectorInfo:M.aiObjectDetectorInfo,aiFaceDetectorInfo:M.aiFaceDetectorInfo,aiOcclusionDetectResult:M[n(466)],aiImageDetectResult:M[n(306)],playFailedAndPaused:M[n(541)],streamEnd:M[n(519)],audioResumeState:M[n(333)],videoSEI:M[n(550)],videoSEISyncPts:M[n(210)],flvMetaData:M[n(458)],webrtcOnConnectionStateChange:M[n(201)],webrtcOnIceConnectionStateChange:M[n(341)],currentPts:M[n(454)],videoSmooth:M[n(279)],networkState:M[n(510)],volume:M.volume,drawingRectInfo:M[n(615)],clickInitPlayer:M.clickInitPlayer};n(303),n(520),n(634),n(186),n(612),n(476),n(457),n(623),n(407),n(274),n(617),n(493),n(384),n(472),n(194),n(581),n(354),n(657),n(541),n(333);const O={talkStreamError:M.talkStreamError,talkStreamClose:M.talkStreamClose},U={playError:n(583),fetchError:n(555),fetchErrorWorker:n(622),websocketError:"websocketError",websocketOpenTimeout:n(573),webcodecsH265NotSupport:n(585),webcodecsDecodeError:"webcodecsDecodeError",webcodecsUnsupportedConfigurationError:n(455),webcodecsDecodeConfigureError:n(651),webcodecsAudioInitTimeout:n(669),webcodecsAudioNoDataTimeout:n(536),mediaSourceH265NotSupport:n(542),mediaSourceAudioG711NotSupport:n(403),mediaSourceAudioInitTimeout:n(565),mediaSourceAudioNoDataTimeout:n(576),mediaSourceDecoderConfigurationError:n(625),mediaSourceFull:M[n(206)],mseSourceBufferError:M[n(267)],mseAddSourceBufferError:M[n(640)],mseWorkerAddSourceBufferError:M[n(488)],mediaSourceAppendBufferError:"mediaSourceAppendBufferError",mediaSourceTsIsMaxDiff:n(638),mediaSourceUseCanvasRenderPlayFailed:n(608),mediaSourceBufferedIsZeroError:"mediaSourceBufferedIsZeroError",wasmDecodeError:"wasmDecodeError",wasmUseVideoRenderError:n(643),simdH264DecodeVideoWidthIsTooLarge:n(256),simdDecodeError:n(440),hlsError:n(513),webrtcError:"webrtcError",webrtcClosed:M[n(252)],webrtcIceCandidateError:n(424),webglAlignmentError:n(401),wasmWidthOrHeightChange:"wasmWidthOrHeightChange",mseWidthOrHeightChange:n(546),wcsWidthOrHeightChange:n(522),widthOrHeightChange:n(222),tallWebsocketClosedByError:"tallWebsocketClosedByError",flvDemuxBufferSizeTooLarge:M.flvDemuxBufferSizeTooLarge,audioChannelError:n(579),webglContextLostError:"webglContextLostError",videoElementPlayingFailed:n(323),videoElementPlayingFailedForWebrtc:n(411),decoderWorkerInitError:n(487),decoderWorkerWasmError:n(269),videoInfoError:n(613),streamEnd:M[n(519)],websocket1006Error:"websocket1006Error",delayTimeout:M[n(662)],loadingTimeout:M[n(274)],networkDelayTimeout:M[n(346)],fullscreenError:n(389),aliyunRtcError:n(312),mseWaitVideoCanplayTimeout:n(639),initDecoderWorkerTimeout:n(310),notSupportNewWasm:n(668),failedToAsynchronouslyPrepareWasm:n(382),playVodMp4Error:n(413),mp4Error:n(191),...O},N={notConnect:n(442),open:n(484),close:"close",error:n(457)};n(223),n(272);const j={download:"download",base64:n(404),blob:"blob"},V={download:n(587),blob:n(216)},z={7:n(443),12:n(192),99:"MPEG4"},G={h264:7,h265:12,mpeg4:99},W={h264:"H264(AVC)",h265:n(192)},H={AAC:10,ALAW:7,MULAW:8,MP3:2,OPUS:13,G711A:7,G711U:8},K={AAC:"AAC",ALAW:n(572),MULAW:n(345),MP3:"MP3"},Q={10:n(652),7:n(450),8:n(431),2:n(304)},Y={sps:7,pps:8,iFrame:5,kUnspecified:0,kSliceNonIDR:1,kSliceDPA:2,kSliceDPB:3,kSliceDPC:4,kSliceIDR:5,kSliceSEI:6,kSliceSPS:7,kSlicePPS:8,kSliceAUD:9,kEndOfSequence:10,kEndOfStream:11,kFiller:12,kSPSExt:13,kReserved0:14},q={pFrame:1,kSliceBLA_W_LP:16,kSliceBLA_W_RADL:17,kSliceBLA_N_LP:18,iFrame:19,kSliceIDR_W_RADL:19,nLp:20,kSliceIDR_N_LP:20,craNut:21,kSliceCRA_NUT:21,kSliceRSV_IRAP_VCL22:22,kSliceRSV_IRAP_VCL23:23,vps:32,kSliceVPS:32,sps:33,kSliceSPS:33,pps:34,kSlicePPS:34,kSliceAUD:35,sei:39,prefixSei:39,suffixSei:40},J={full:0,auto:1,fullAuto:2},X={webcodecs:n(408),webgl:n(545),webgl2:n(653),webgpu:n(307),offscreen:n(221),mse:n(237),hls:n(372),webrtc:n(474),canvas:n(396)},Z={key:"key",delta:n(423)},$={avc:n(420),hev:n(342),hev2:n(199),hev3:n(288),hev4:n(603),hev5:'video/mp4;codecs="hev1.4.10.L120.90"'},tt={ended:n(244),open:n(484),closed:n(538)};Math[n(570)](40);const et={esc:27,arrowUp:38,arrowDown:40,arrowLeft:37,arrowRight:39},st={oneHour:n(316),halfHour:"halfHour",tenMin:n(567),fiveMin:n(240)},it={oneHour:n(255),halfHour:"half-hour",tenMin:n(426),fiveMin:n(197)};n(325);const rt=[n(316),"halfHour",n(567),"fiveMin"],nt=["up",n(646),n(400),n(544),n(334),n(627),n(554),n(516)],ot={up:"up",right:n(646),down:n(400),left:n(544),leftUp:"leftUp",leftDown:n(489),rightUp:"rightUp",rightDown:n(438),stop:n(557),fiStop:n(286),zoomExpand:"zoomExpand",zoomNarrow:n(418),apertureFar:n(502),apertureNear:n(305),focusFar:n(553),focusNear:n(507),cruiseStart:"cruiseStart",cruiseStop:n(331),fogOpen:"fogOpen",fogClose:n(658),wiperOpen:"wiperOpen",wiperClose:"wiperClose"},at=(n(425),n(364),{png:n(414),jpeg:n(287),webp:n(265)}),ht={sourceClose:"sourceclose",sourceOpen:n(597),sourceended:n(535),startstreaming:n(282),endstreaming:n(187),qualitychange:n(409)},ct={canplay:n(232),waiting:n(243),timeUpdate:n(360),ratechange:n(209),stalled:n(406),progress:n(202),loadedmetadata:n(666)},lt={h264:"avc",h265:"hevc",av1:n(258)},dt={keyframeIsRequiredError:n(512),canNotDecodeClosedCodec:n(428),unsupportedConfiguration:"Unsupported configuration",decoderFailure:n(357),decodingError:n(609),decoderError:n(381),hevcDecodingIsNotSupported:n(254)},ut={abortError:n(463),abortError2:n(591),abort:n(591)},pt={loading:n(369),playing:n(495),paused:n(317),destroy:n(250)},ft=0,mt={keyFrame:1,interFrame:2};n(223),n(378),n(356),n(445),n(571);n(582),n(667),n(484),n(247),n(457);n(347),n(564);n(378),n(445),n(402),n(596);const gt={worklet:"worklet",script:"script",active:n(335)},At={name:"",index:0,icon:"",iconHover:"",iconTitle:"",activeIcon:"",activeIconHover:"",activeIconTitle:"",click:null,activeClick:null},yt={content:"",click:null,index:0};n(433),n(415),n(586),n(618),n(181),n(630),n(293),n(511),n(470),n(641),n(560),n(469),n(595),n(358),n(592);const bt={keyFrame:1,interFrame:2};n(665),n(596),n(329),n(224),n(203);const vt={SUBTITLE_SEGMENTS:n(385),HLS_MANIFEST_LOADED:n(352),HLS_LEVEL_LOADED:"hls-level-loaded",DEMUXED_TRACK:n(660),FLV_SCRIPT_DATA:n(220),METADATA_PARSED:n(478),TTFB:n(429),LOAD_RETRY:n(485),LOAD_START:"load-start",SPEED:n(664),LOAD_COMPLETE:n(179),LOAD_RESPONSE_HEADERS:n(588),SEI:n(290),SEI_IN_TIME:"sei-in-time",NO_AUDIO_TRACK:n(460),REMOVE_BUFFER:"remove-buffer",BUFFEREOS:n(528),SOURCEBUFFER_CREATED:n(315),SWITCH_URL_FAILED:n(599),SWITCH_URL_SUCCESS:"switch-url-success",SUBTITLE_PLAYLIST:n(405),STREAM_PARSED:n(610),ERROR:n(457)},St=[0,160,240,320,480,640],wt=[0,160,240,320,480,640],Et=["轻松","正常","较高","高"],It={idle:n(417),connecting:"connecting",buffering:n(272),error:n(457),complete:n(416)},Tt={1:"MEDIA_ERR_ABORTED",2:n(391),3:"MEDIA_ERR_DECODE",4:n(370)},kt={videoDecoderInitializationFailed:n(340),audioDecoderError:n(395),notSupportAudioFormat:"Unsupported audio format",playFailedBecauseNotNotInteractWithTheDocumentFirst:n(320)};n(211);const _t={memoryAccessOutOfBounds:n(444)},Ct={video:1,audio:2},Rt={PACKET_TYPE_SEQ_START:0,PACKET_TYPE_FRAMES:1,PACKET_TYPE_SEQ_END:2,PACKET_TYPE_FRAMESX:3,PACKET_TYPE_METADATA:4},Dt={FT_KEY:16,FT_INTER:32},Lt={CandidatePair:n(569),Certificate:"certificate",Codec:n(539),Csrc:n(280),DataCahnnel:n(462),InboundRtp:n(326),LocalCandidate:n(337),OutboundRtp:n(498),PeerConnection:"peer-connection",Receiver:n(430),RemoteCandidate:n(234),RemoteInboundRtp:n(410),RemoteOutboundRtp:"remote-outbound-rtp",Sender:"sender",Stream:"stream",Track:"track",Transport:n(338),MediaSource:"media-source"},xt=9e4,Pt=45e4,Bt=9e4,Mt={ws1006:n(589),mseDecodeError:n(598),wcsDecodeError:"wcsDecodeError",streamError:n(506)},Ft={ulaw:n(368),alaw:"alaw",mp3:n(459),opus:n(364)},Ot=48e3;n(355),n(353),n(453),n(473),n(503);const Ut={created:n(533),loading:n(369),playing:n(495)},Nt=typeof window===n(311)&&window[n(344)]===window?window:typeof self===n(311)&&self[n(521)]===self?self:typeof global===n(311)&&global[n(393)]===global?global:void 0,jt={canplay:n(232),canplaythrough:n(218),complete:n(416),durationchange:n(594),emptied:n(523),ended:"ended",error:n(457),loadeddata:n(309),loadedmetadata:n(666),loadstart:"loadstart",pause:n(384),play:"play",playing:n(495),progress:n(202),ratechange:n(209),seeked:n(561),seeking:"seeking",stalled:n(406),suspend:n(366),timeupdate:n(360),volumechange:n(558),waiting:"waiting",readystatechange:n(332)},Vt={error:n(457)},zt={play:"播放",pause:"暂停",audio:"",mute:"",screenshot:"截图",loading:"",fullscreen:"全屏",fullscreenExit:n(373),record:"录制",recordStop:"停止录制",narrow:"缩小",expand:"放大",ptz:n(500),ptzActive:n(672),zoom:"电子放大",zoomStop:n(648),close:"关闭",performance:n(447),performanceActive:n(568),face:n(238),faceActive:n(508),object:n(435),objectActive:"物品识别激活",occlusion:n(437),occlusionActive:n(394),logSave:n(496)},Gt={wasm:n(263),simd:n(195),fSimd:"FSimd"};function Wt(t,e){const s=S();return(Wt=function(t,e){return s[t-=179]})(t,e)}const Ht=n(297),Kt=n(292);!function(t,e){const s=Yt,i=t();for(;;)try{if(307308===parseInt(s(406))/1+parseInt(s(397))/2*(-parseInt(s(417))/3)+-parseInt(s(408))/4*(-parseInt(s(411))/5)+parseInt(s(401))/6+-parseInt(s(407))/7*(parseInt(s(413))/8)+-parseInt(s(412))/9*(parseInt(s(416))/10)+parseInt(s(404))/11)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(qt);class Qt{constructor(t){const e=Yt;this[e(398)]=function(s){const i=e;if(t[i(409)].debugLevel==m[i(414)]){const e=t._opt[i(405)]?"["+t[i(409)][i(405)]+"]":"";for(var r=arguments[i(399)],n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];console[i(398)](i(410)+e+"[✅✅✅]["+s+"]",...n)}},this[e(402)]=function(s){const i=e;if(t[i(409)][i(415)]==m[i(414)]||t[i(409)].debugLevel==m[i(402)]){const e=t[i(409)][i(405)]?"["+t[i(409)].debugUuid+"]":"";for(var r=arguments[i(399)],n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];console.log(i(410)+e+i(403)+s+"]",...n)}},this[e(400)]=function(s){const i=e,r=t[i(409)][i(405)]?"["+t[i(409)].debugUuid+"]":"";for(var n=arguments[i(399)],o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];console.error(i(410)+r+"[❌❌❌]["+s+"]",...o)}}}function Yt(t,e){const s=qt();return(Yt=function(t,e){return s[t-=397]})(t,e)}function qt(){const t=["4AHLVtX","_opt","JbPro","751345YVzUJU","2049426phLaYH","16DgDZmt","debug","debugLevel","20bIfKHd","201IoxiSZ","10186vkjskl","log","length","error","3668040CYOtXW","warn","[❗❗❗][","696443wcWdlc","debugUuid","605471eluzeQ","1142491mujDWY"];return(qt=function(){return t})()}var Jt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Xt(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function Zt(t,e){return t(e={exports:{}},e.exports),e.exports}var $t=Object.freeze({__proto__:null,commonjsGlobal:Jt,commonjsRequire:Xt,unwrapExports:function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t},createCommonjsModule:Zt,getCjsExportFromNamespace:function(t){return t&&t.default||t}}),te=se;!function(t,e){for(var s=se,i=t();;)try{if(418805===parseInt(s(340))/1*(-parseInt(s(367))/2)+-parseInt(s(370))/3+parseInt(s(364))/4+parseInt(s(344))/5+parseInt(s(346))/6+-parseInt(s(366))/7+parseInt(s(361))/8)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(ie);var ee=Zt((function(t){var e,s,i,r,n,o;e=se,s=typeof window!==e(336)&&typeof window[e(359)]!==e(336)?window[e(359)]:{},i=e(354)!==e(336)&&t.exports,r=function(){for(var t,i=e,r=[["requestFullscreen","exitFullscreen","fullscreenElement",i(373),i(339),i(371)],[i(362),i(337),"webkitFullscreenElement",i(343),"webkitfullscreenchange",i(355)],["webkitRequestFullScreen",i(358),i(369),"webkitCancelFullScreen",i(352),"webkitfullscreenerror"],["mozRequestFullScreen",i(347),i(365),i(372),i(375),i(349)],[i(357),"msExitFullscreen","msFullscreenElement","msFullscreenEnabled",i(377),"MSFullscreenError"]],n=0,o=r[i(379)],a={};n<o;n++)if((t=r[n])&&t[1]in s){for(n=0;n<t[i(379)];n++)a[r[0][n]]=t[n];return a}return!1}(),n={change:r[e(339)],error:r[e(371)]},o={request:function(t,i){return new Promise(function(e,n){var o=se,a=function(){this[se(356)]("change",a),e()}[o(378)](this);this.on(o(363),a);var h=(t=t||s[o(360)])[r.requestFullscreen](i);h instanceof Promise&&h.then(a)[o(376)](n)}[e(378)](this))},exit:function(){return new Promise(function(t,e){var i=se;if(this[i(368)]){var n=function(){var e=i;this[e(356)](e(363),n),t()}[i(378)](this);this.on("change",n);var o=s[r[i(341)]]();o instanceof Promise&&o.then(n)[i(376)](e)}else t()}.bind(this))},toggle:function(t,s){var i=e;return this[i(368)]?this.exit():this[i(351)](t,s)},onchange:function(t){var s=e;this.on(s(363),t)},onerror:function(t){this.on("error",t)},on:function(t,i){var r=n[t];r&&s[e(374)](r,i,!1)},off:function(t,i){var r=n[t];r&&s[e(345)](r,i,!1)},raw:r},r?(Object[e(342)](o,{isFullscreen:{get:function(){return Boolean(s[r[e(348)]])}},element:{enumerable:!0,get:function(){return s[r[e(348)]]}},isEnabled:{enumerable:!0,get:function(){return Boolean(s[r.fullscreenEnabled])}}}),i?t[e(353)]=o:window[e(350)]=o):i?t[e(353)]={isEnabled:!1}:window[e(350)]={isEnabled:!1}}));function se(t,e){var s=ie();return(se=function(t,e){return s[t-=336]})(t,e)}function ie(){var t=["length","undefined","webkitExitFullscreen","isEnabled","fullscreenchange","1nushmg","exitFullscreen","defineProperties","webkitFullscreenEnabled","3494395QXDEgK","removeEventListener","1506366sNZSsx","mozCancelFullScreen","fullscreenElement","mozfullscreenerror","screenfull","request","webkitfullscreenchange","exports","object","webkitfullscreenerror","off","msRequestFullscreen","webkitCancelFullScreen","document","documentElement","956264FHVLBc","webkitRequestFullscreen","change","1948676AXzKAu","mozFullScreenElement","1881978BGKZzB","661702jBQmqt","isFullscreen","webkitCurrentFullScreenElement","1614396YPBrEI","fullscreenerror","mozFullScreenEnabled","fullscreenEnabled","addEventListener","mozfullscreenchange","catch","MSFullscreenChange","bind"];return(ie=function(){return t})()}ee[te(338)];const re=ne;function ne(t,e){const s=ae();return(ne=function(t,e){return s[t-=432]})(t,e)}!function(t,e){const s=ne,i=t();for(;;)try{if(532600===parseInt(s(458))/1+-parseInt(s(455))/2+-parseInt(s(434))/3+parseInt(s(442))/4*(-parseInt(s(451))/5)+-parseInt(s(456))/6*(-parseInt(s(461))/7)+parseInt(s(453))/8+parseInt(s(445))/9*(parseInt(s(460))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(ae);class oe{constructor(t){const e=ne;this._buffer=t,this[e(433)]=0,this[e(440)]=t[e(441)],this[e(438)]=8*t[e(441)],this[e(462)]=0,this._current_word_bits_left=0}destroy(){this[ne(436)]=null}[re(444)](){const t=re;let e=this._total_bytes-this[t(433)];if(e<=0)return void console[t(448)](t(457),this[t(440)],this[t(433)]);let s=Math.min(4,e),i=new Uint8Array(4);i[t(435)](this[t(436)][t(449)](this._buffer_index,this._buffer_index+s)),this[t(462)]=new DataView(i[t(432)]).getUint32(0,!1),this[t(433)]+=s,this[t(454)]=8*s}[re(437)](t){const e=re;if(t>32&&console[e(448)](e(450)),t<=this._current_word_bits_left){let s=this[e(462)]>>>32-t;return this[e(462)]<<=t,this[e(454)]-=t,s}let s=this._current_word_bits_left?this[e(462)]:0;s>>>=32-this[e(454)];let i=t-this[e(454)];this._fillCurrentWord();let r=Math[e(459)](i,this[e(454)]),n=this._current_word>>>32-r;return this[e(462)]<<=r,this[e(454)]-=r,s=s<<r|n,s}[re(443)](){return 1===this[re(437)](1)}[re(446)](){return this[re(437)](8)}[re(439)](){const t=re;let e;for(e=0;e<this[t(454)];e++)if(0!=(this._current_word&2147483648>>>e))return this[t(462)]<<=e,this._current_word_bits_left-=e,e;return this._fillCurrentWord(),e+this[t(439)]()}readUEG(){const t=re;let e=this[t(439)]();return this[t(437)](e+1)-1}[re(452)](){let t=this[re(447)]();return 1&t?t+1>>>1:-1*(t>>>1)}}function ae(){const t=["_current_word","buffer","_buffer_index","189963LNcmoF","set","_buffer","readBits","_total_bits","_skipLeadingZero","_total_bytes","byteLength","14544PQlSgk","readBool","_fillCurrentWord","99PzBTJO","readByte","readUEG","error","subarray","ExpGolomb: readBits() bits exceeded max 32bits!","1240pbvxsS","readSEG","4611344tSTKQw","_current_word_bits_left","1605898exSxmM","6KAswta","ExpGolomb: _fillCurrentWord() but no bytes available","140612rtjgLa","min","1302580xbXhlh","1055110VrwYZf"];return(ae=function(){return t})()}const he=ke;!function(t,e){const s=ke,i=t();for(;;)try{if(350956===-parseInt(s(531))/1+-parseInt(s(533))/2+-parseInt(s(501))/3+-parseInt(s(497))/4+-parseInt(s(479))/5*(parseInt(s(500))/6)+parseInt(s(508))/7*(parseInt(s(532))/8)+-parseInt(s(520))/9*(-parseInt(s(542))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(ge);const ce=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350,-1,-1,-1],le=ce,de=ce;function ue(t){let{profile:e,sampleRate:s,channel:i}=t;return new Uint8Array([175,0,e<<3|(14&s)>>1,(1&s)<<7|i<<3])}function pe(t){return fe(t)&&t[1]===ft}function fe(t){const e=ke;return t[0]>>4===H[e(529)]}function me(t,e){if("mp4a.40.2"===t){if(1===e)return new Uint8Array([0,200,0,128,35,128]);if(2===e)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(1===e)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===e)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===e)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}}function ge(){const t=["Flv: AAC invalid sampling frequency index!","log","27TnMYGY","hasIncompleteData","readNextAACFrame","warn","data_","look","channel_config","data","aac","AAC","sampling_frequency","397813mssKLd","72exKFmH","542028urNeTl","readBool","sbr","object_type","aacEncoderConfigurationRecord","current_syncword_offset_","readBits","more than 2 numSubFrames Not Supported","channels","4158500XBZPqt","getLATMValue","sampling_index","read_golomb","iserro","indexOf","read","5315qvtsDC","more than 2 numProgram Not Supported","set","other_data_present","StreamMuxConfig Missing","Could not found ADTS syncword until payload end","readByte","destroy","audio_object_type","has_last_incomplete_data","allStreamsSameTimeFraming zero is Not Supported","mp4a.40.","error","findNextSyncwordOffset","eof_flag_","slice","buffer","length","1647028naoHga","getIncompleteData","firefox","1818YyyTUK","288630cqSmkq","ext_object_type","bufoff","sample_rate","audioMuxVersionA is Not Supported","chan_config","buflen","468447KNCLjk",". Only frameLengthType = 0 Supported","unshift","sampleRate: ","Flv: AAC invalid channel configuration","more than 2 numLayer Not Supported","byteLength","subarray","bufpos","sampling_freq_index"];return(ge=function(){return t})()}function Ae(t){const e=ke;let s=arguments[e(496)]>1&&void 0!==arguments[1]?arguments[1]:9e4;return 1024*s/t}const ye=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];function be(t){const e=ke;let s=new Uint8Array(t),i=null,r=0,n=0,o=0,a=null;if(r=n=s[0]>>>3,o=(7&s[0])<<1|s[1]>>>7,o<0||o>=ye.length)return void console[e(491)](e(518));let h=ye[o],c=(120&s[1])>>>3;if(c<0||c>=8)return void console.log(e(512));5===r&&(a=(7&s[1])<<1|s[2]>>>7,s[2]);let l=Nt.navigator.userAgent.toLowerCase();return-1!==l[e(477)](e(499))?o>=6?(r=5,i=new Array(4),a=o-3):(r=2,i=new Array(2),a=o):-1!==l[e(477)]("android")?(r=2,i=new Array(2),a=o):(r=5,a=o,i=new Array(4),o>=6?a=o-3:1===c&&(r=2,i=new Array(2),a=o)),i[0]=r<<3,i[0]|=(15&o)>>>1,i[1]=(15&o)<<7,i[1]|=(15&c)<<3,5===r&&(i[1]|=(15&a)>>>1,i[2]=(1&a)<<7,i[2]|=8,i[3]=0),{audioType:e(528),config:i,sampleRate:h,channelCount:c,objectType:r,codec:e(490)+r,originalCodec:e(490)+n}}class ve{constructor(t){const e=ke;this[e(495)]=t,this[e(507)]=t[e(496)],this.bufpos=0,this[e(503)]=0,this.iserro=!1}read(t){const e=ke;let s=0,i=0;for(;t;){if(t<0||this[e(516)]>=this[e(507)])return this[e(476)]=!0,0;this[e(476)]=!1,i=this[e(503)]+t>8?8-this[e(503)]:t,s<<=i,s+=this[e(495)][this[e(516)]]>>8-this[e(503)]-i&255>>8-i,this[e(503)]+=i,t-=i,8==this[e(503)]&&(this[e(516)]++,this[e(503)]=0)}return s}[he(525)](t){const e=he;let s=this[e(516)],i=this.bufoff,r=this.read(t);return this.bufpos=s,this[e(503)]=i,r}[he(545)](){const t=he;let e;for(e=0;0==this[t(478)](1)&&!this[t(476)];e++);return(1<<e)+this[t(478)](e)-1}}function Se(t){const e=he;let s=t[e(478)](5);return 31===s&&(s=t[e(478)](6)+32),s}function we(t,e){const s=he;return e.sampling_index=t[s(478)](4),15==e.sampling_index?t.read(24):Ee[e[s(544)]]}const Ee=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350,0,0,0],Ie=[0,1,2,3,4,5,6,8];class Te{constructor(t){const e=he;this[e(524)]=t,this.eof_flag_=!1,this[e(538)]=this.findNextSyncwordOffset(0),this[e(493)]&&console[e(491)](e(484))}[he(492)](t){const e=he;let s=t,i=this[e(524)];for(;;){if(s+7>=i.byteLength)return this[e(493)]=!0,i[e(514)];if(4095===(i[s+0]<<8|i[s+1])>>>4)return s;s++}}[he(522)](){const t=he;let e=this[t(524)],s=null;for(;null==s&&!this.eof_flag_;){let i=this[t(538)],r=(8&e[i+1])>>>3,n=(6&e[i+1])>>>1,o=1&e[i+1],a=(192&e[i+2])>>>6,h=(60&e[i+2])>>>2,c=(1&e[i+2])<<2|(192&e[i+3])>>>6,l=(3&e[i+3])<<11|e[i+4]<<3|(224&e[i+5])>>>5;if(e[i+6],i+l>this[t(524)].byteLength){this.eof_flag_=!0,this[t(488)]=!0;break}let d=1===o?7:9,u=l-d;i+=d;let p=this[t(492)](i+u);if(this[t(538)]=p,0!==r&&1!==r||0!==n)continue;let f=e[t(515)](i,i+u);s={},s[t(487)]=a+1,s[t(517)]=h,s[t(530)]=le[h],s.channel_config=c,s[t(527)]=f}return s}[he(521)](){return this.has_last_incomplete_data}[he(498)](){const t=he;return this[t(488)]?this.data_[t(515)](this[t(538)]):null}}function ke(t,e){const s=ge();return(ke=function(t,e){return s[t-=476]})(t,e)}class _e{constructor(t){const e=he;this[e(524)]=t,this.eof_flag_=!1,this[e(538)]=this[e(492)](0),this[e(493)]&&console[e(491)](e(484))}[he(492)](t){const e=he;let s=t,i=this[e(524)];for(;;){if(s+1>=i.byteLength)return this[e(493)]=!0,i[e(514)];if(695===(i[s+0]<<3|i[s+1]>>>5))return s;s++}}getLATMValue(t){let e=t.readBits(2),s=0;for(let i=0;i<=e;i++)s<<=8,s|=t.readByte();return s}[he(522)](t){const e=he;let s=this[e(524)],i=null;for(;null==i&&!this[e(493)];){let r=this[e(538)],n=(31&s[r+1])<<8|s[r+2];if(r+3+n>=this[e(524)][e(514)]){this[e(493)]=!0,this[e(488)]=!0;break}let o=new oe(s[e(515)](r+3,r+3+n)),a=null;if(o.readBool()){if(null==t){console[e(523)](e(483)),this[e(538)]=this[e(492)](r+3+n),o[e(486)]();continue}a=t}else{let t=o[e(534)]();if(t&&o[e(534)]()){console[e(491)](e(505)),o.destroy();break}if(t&&this.getLATMValue(o),!o[e(534)]()){console[e(491)](e(489)),o[e(486)]();break}if(0!==o[e(539)](6)){console[e(491)](e(540)),o[e(486)]();break}if(0!==o[e(539)](4)){console[e(491)](e(480)),o[e(486)]();break}if(0!==o[e(539)](3)){console[e(491)](e(513)),o.destroy();break}let s=t?this[e(543)](o):0,i=o[e(539)](5);s-=5;let r=o[e(539)](4);s-=4;let n=o[e(539)](4);s-=4,o[e(539)](3),s-=3,s>0&&o.readBits(s);let h=o[e(539)](3);if(0!==h){console.error("frameLengthType = "+h+e(509)),o.destroy();break}o.readByte();let c=o[e(534)]();if(c)if(t)this.getLATMValue(o);else{let t=0;for(;;){t<<=8;let s=o[e(534)]();if(t+=o[e(485)](),!s)break}console[e(519)](t)}o[e(534)]()&&o[e(485)](),a={},a[e(487)]=i,a[e(517)]=r,a[e(530)]=le[a[e(517)]],a[e(526)]=n,a[e(482)]=c}let h=0;for(;;){let t=o.readByte();if(h+=t,255!==t)break}let c=new Uint8Array(h);for(let t=0;t<h;t++)c[t]=o.readByte();i={},i[e(487)]=a[e(487)],i[e(517)]=a[e(517)],i[e(530)]=le[a[e(517)]],i[e(526)]=a[e(526)],i.other_data_present=a[e(482)],i[e(527)]=c,this[e(538)]=this[e(492)](r+3+n)}return i}hasIncompleteData(){return this.has_last_incomplete_data}[he(498)](){const t=he;return this[t(488)]?this[t(524)][t(515)](this[t(538)]):null}}function Ce(t,e){const s=Be();return(Ce=function(t,e){return s[t-=200]})(t,e)}function Re(t){const e=Ce;let s=arguments[e(202)]>1&&void 0!==arguments[1]?arguments[1]:0;return(t[s]<<24>>>0)+(t[s+1]<<16)+(t[s+2]<<8)+(t[s+3]||0)}function De(t){const e=Ce,s=t[e(202)];let i=2,r=0;for(;null!==t[i]&&void 0!==t[i]&&1!==t[i];)i++;if(i++,r=i+2,r>=s)return[];const n=[];for(;r<s;)switch(t[r]){case 0:if(0!==t[r-1]){r+=2;break}if(0!==t[r-2]){r++;break}i!==r-2&&n[e(210)](t[e(207)](i,r-2));do{r++}while(1!==t[r]&&r<s);i=r+1,r=i+2;break;case 1:if(0!==t[r-1]||0!==t[r-2]){r+=3;break}i!==r-2&&n[e(210)](t[e(207)](i,r-2)),i=r+1,r=i+2;break;default:r+=3}return i<s&&n[e(210)](t[e(207)](i)),n}function Le(t){const e=Ce;let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;if(t[e(202)]<4)return[];const i=t[e(202)],r=[];let n,o=0;for(;o+s<i;)if(n=Re(t,o),3===s&&(n>>>=8),o+=s,n){if(o+n>i)break;r[e(210)](t.subarray(o,o+n)),o+=n}return r}function xe(t){const e=Ce;let s=arguments[e(202)]>1&&void 0!==arguments[1]&&arguments[1];const i=t[e(202)];let r=s?2:1,n=0,o=0,a="";for(;255===t[r];)n+=255,r++;for(n+=t[r++];255===t[r];)o+=255,r++;if(o+=t[r++],5===n&&i>r+16)for(let e=0;e<16;e++)a+=t[r].toString(16),r++;return{payload:t[e(207)](r),type:n,size:o,uuid:a}}function Pe(t){const e=Ce,s=t[e(214)],i=new Uint8Array(4);i[0]=s>>>24&255,i[1]=s>>>16&255,i[2]=s>>>8&255,i[3]=255&s;const r=new Uint8Array(s+4);return r.set(i,0),r[e(217)](t,4),r}function Be(){const t=["3664dqGFeS","32236InJkBK","2379040SPepzK","byteLength","1gUFaUa","108kSNCHK","set","6NFpSPm","2955096dSzAtm","length","5786SXbTUh","576301hgHeCv","buffer","3080290lYCVXd","subarray","84rNpZCI","7532XuTlUL","push"];return(Be=function(){return t})()}!function(t,e){const s=Ce,i=t();for(;;)try{if(327511===parseInt(s(215))/1*(parseInt(s(203))/2)+-parseInt(s(216))/3*(-parseInt(s(212))/4)+-parseInt(s(213))/5*(parseInt(s(200))/6)+-parseInt(s(209))/7*(parseInt(s(211))/8)+parseInt(s(201))/9+parseInt(s(206))/10+-parseInt(s(204))/11*(-parseInt(s(208))/12))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Be);const Me=oi;function Fe(){}function Oe(t){const e=oi;let s=null;const i=[e(596),"experimental-webgl",e(495),e(465)];let r=0;for(;!s&&r<i[e(641)];){const n=i[r];try{let i={preserveDrawingBuffer:!0};s=t[e(499)](n,i)}catch(t){console[e(631)](t),s=null}(!s||typeof s.getParameter!==e(579))&&(s=null),++r}return s}function Ue(t){const e=oi;let s=null;return s=t[e(499)](e(392)),s}function Ne(){const t=oi;let e=arguments[t(641)]>0&&void 0!==arguments[0]?arguments[0]:"";const s=e.split(","),i=atob(s[1]),r=s[0][t(416)](t(514),"")[t(416)](t(442),"");let n=i[t(641)],o=new Uint8Array(n);for(;n--;)o[n]=i[t(315)](n);return new File([o],t(483),{type:r})}function je(){const t=oi;return(new Date)[t(570)]()}function Ve(t,e,s){const i=oi;return Math[i(588)](Math[i(589)](t,Math.max(e,s)),Math[i(589)](e,s))}function ze(t,e,s){const i=oi;if(t)return typeof e===i(552)&&Object.keys(e)[i(611)]((s=>{ze(t,s,e[s])})),t[i(438)][e]=s,t}function Ge(t,e){let s=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t)return 0;const i=getComputedStyle(t,null).getPropertyValue(e);return s?parseFloat(i):i}function We(){const t=oi;return performance&&typeof performance[t(554)]===t(579)?performance.now():Date[t(554)]()}function He(t){let e=0,s=We();return i=>{if(!us(i))return;e+=i;const r=We(),n=r-s;n>=1e3&&(t(e/n*1e3),s=r,e=0)}}!function(t,e){const s=oi,i=t();for(;;)try{if(358520===-parseInt(s(508))/1*(parseInt(s(529))/2)+parseInt(s(601))/3*(parseInt(s(340))/4)+-parseInt(s(572))/5+parseInt(s(478))/6*(parseInt(s(618))/7)+parseInt(s(380))/8+-parseInt(s(402))/9*(-parseInt(s(458))/10)+parseInt(s(623))/11*(-parseInt(s(418))/12))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(yi),(()=>{const t=oi;try{if(typeof WebAssembly===t(552)&&typeof WebAssembly[t(474)]===t(579)){const e=new(WebAssembly[t(450)])(Uint8Array.of(0,97,115,109,1,0,0,0));if(e instanceof WebAssembly.Module)return new WebAssembly.Instance(e)instanceof WebAssembly[t(463)]}}catch(t){}})();const Ke=Me(501),Qe=Me(445);Me(592),Me(334);const Ye=Me(568),qe=Me(444);function Je(){const t=Me;return/iphone|ipod|android.*mobile|windows.*phone|blackberry.*mobile/i.test(window.navigator[t(339)].toLowerCase())}function Xe(){return!(Je()||function(){const t=Me;return/ipad|android(?!.*mobile)|tablet|kindle|silk/i[t(396)](window.navigator[t(339)].toLowerCase())}())}function Ze(){const t=Me,e=window[t(436)][t(339)][t(357)]();return/android/i.test(e)}function $e(){const t=Me,e=window[t(436)][t(339)][t(357)]();return/firefox/i[t(396)](e)}function ts(){const t=Me,e=window[t(436)][t(339)][t(357)]()||"",s={type:"",version:""},i={IE:window[t(355)]||t(355)in window,Chrome:e[t(419)](t(378))>-1&&e.indexOf(t(583))>-1,Firefox:e.indexOf(t(324))>-1,Opera:e[t(419)]("opera")>-1,Safari:e[t(419)](t(583))>-1&&-1==e[t(419)]("chrome"),Edge:e[t(419)]("edge")>-1,QQBrowser:/qqbrowser/[t(396)](e),WeixinBrowser:/MicroMessenger/i[t(396)](e)};for(let r in i)if(i[r]){let i="";if("IE"===r){const s=e.match(/(msie\s|trident.*rv:)([\w.]+)/);s&&s.length>2&&(i=e[t(461)](/(msie\s|trident.*rv:)([\w.]+)/)[2])}else if(r===t(321)){for(let e in navigator.mimeTypes)navigator.mimeTypes[e].type===t(548)&&(r="360");const s=e.match(/chrome\/([\d.]+)/);s&&s[t(641)]>1&&(i=s[1])}else if("Firefox"===r){const s=e[t(461)](/firefox\/([\d.]+)/);s&&s[t(641)]>1&&(i=s[1])}else if(r===t(360)){const s=e.match(/opera\/([\d.]+)/);s&&s[t(641)]>1&&(i=s[1])}else if(r===t(628)){const s=e[t(461)](/version\/([\d.]+)/);s&&s[t(641)]>1&&(i=s[1])}else if(r===t(426)){const s=e[t(461)](/edge\/([\d.]+)/);s&&s.length>1&&(i=s[1])}else if(r===t(333)){const s=e[t(461)](/qqbrowser\/([\d.]+)/);s&&s[t(641)]>1&&(i=s[1])}s[t(383)]=r,s[t(408)]=parseInt(i)}return s}function es(){const t=Me,e=window.navigator[t(339)][t(357)]();return e&&/iphone|ipad|ipod|ios/[t(396)](e)}function ss(){const t=Me,e=window.navigator[t(339)];return!e[t(461)](/Chrome/gi)&&!!e[t(461)](/Safari/gi)}function is(t,e){const s=Me;if(0===arguments[s(641)])return null;var i,r=e||s(462);"object"==typeof t?i=t:(10===(""+t)[s(641)]&&(t=1e3*parseInt(t)),t=+t,i=new Date(t));var n={y:i[s(566)](),m:i[s(356)]()+1,d:i[s(312)](),h:i[s(467)](),i:i[s(425)](),s:i.getSeconds(),a:i[s(381)]()},o=r[s(416)](/{(y|m|d|h|i|s|a)+}/g,((t,e)=>{const i=s;var r=n[e];return"a"===e?["一","二","三","四","五","六","日"][r-1]:(t[i(641)]>0&&r<10&&(r="0"+r),r||0)}));return o}function rs(){return ns()}function ns(){const t=Me;let e=!1;return t(489)in Nt&&typeof Nt.VideoFrame===t(579)&&(e=!0),e}function os(t){if(typeof t!==Me(632))return t;var e=Number(t);return isNaN(e)?t:e}function as(){const t=Me;return t(540)[t(416)](/[xy]/g,(function(e){const s=t;var i=16*Math[s(502)]()|0;return("x"==e?i:3&i|8)[s(323)](16)}))}function hs(t,e){let s,i,r=!1;return function n(){const o=oi;for(var a=arguments[o(641)],h=new Array(a),c=0;c<a;c++)h[c]=arguments[c];if(r)return s=h,void(i=this);r=!0,t[o(526)](this,h),setTimeout((()=>{r=!1,s&&(n[o(526)](i,s),s=null,i=null)}),e)}}function cs(){return ee[Me(567)]}function ls(t){return cs()&&ee[Me(415)]===t}function ds(t){const e=Me;if(null==t||""==t)return"0 Bytes";const s=new Array(e(524),"KB","MB","GB","TB","PB","EB","ZB","YB");let i=0;const r=parseFloat(t);i=Math[e(384)](Math[e(587)](r)/Math.log(1024));var n=r/Math[e(423)](1024,i);return(n=n[e(513)](2))+s[i]}function us(t){const e=Me;return Object.prototype[e(323)].call(t)===e(528)}function ps(){const t=Me;let e=!1;return t(379)in Nt&&Nt.MediaSource&&(Nt[t(379)][t(609)]($[t(309)])||Nt[t(379)][t(609)]($[t(612)])||Nt[t(379)][t(609)]($[t(353)])||Nt[t(379)][t(609)]($.hev4)||Nt.MediaSource.isTypeSupported($[t(395)]))&&(e=!0),e}function fs(){const t=Me,e=ts();return e[t(383)][t(357)]()===t(378)&&e[t(408)]>=107}function ms(){let t=!1;return Me(326)in window&&(t=!0),t}function gs(){let t=!1;return Me(621)in window&&(t=!0),t}function As(t,e){const s=Me;let i=window[s(354)][s(427)](e),r=window[s(412)].createElement("a");r[s(481)]=t,r[s(433)]=i;let n=window[s(412)].createEvent(s(473));n[s(620)](s(633),!0,!0),r[s(374)](n),setTimeout((()=>{const t=s;window[t(354)][t(452)](i)}),es()?1e3:0)}function ys(t){return null==t}function bs(t){return!0===t||!1===t}function vs(t){return!ys(t)}function Ss(t){const e=Me;let s={left:"",right:"",top:"",bottom:"",opacity:1,backgroundColor:"",image:{src:"",width:"100",height:"60"},text:{content:"",fontSize:"14",color:e(497),width:"",height:""},rect:{color:e(537),lineWidth:2,width:"",height:"",fill:"",fillOpacity:.2},line:{x1:"",y1:"",x2:"",y2:"",color:e(537),lineWidth:2},polygon:{color:e(537),lineWidth:2,list:[],fill:"",fillOpacity:.2},html:""};const i=Object[e(407)](s[e(533)],t[e(533)]||{}),r=Object[e(407)](s.text,t[e(435)]||{}),n=Object[e(407)](s[e(451)],t.rect||{}),o=Object[e(407)](s[e(373)],t.line||{});return s=Object[e(407)](s,t,{image:i,text:r,rect:n,line:o}),s}function ws(t,e){const s=Me;let i={container:t||"",text:"",opacity:"",angle:"",color:"",fontSize:"",fontFamily:""};return i=Object[s(407)](i,e),{watermark_parent_node:i[s(413)],watermark_alpha:i[s(644)],watermark_angle:i.angle,watermark_fontsize:i[s(364)],watermark_color:i[s(645)],watermark_font:i[s(361)],watermark_txt:i[s(435)]}}function Es(t,e,s){return new Promise(((i,r)=>{const n=oi;let o=Ss(e);if(!o[n(533)].src&&!o[n(435)].content)return i(t);let a=document[n(553)](n(428));a[n(401)]=e[n(401)],a[n(417)]=e.height;let h=a[n(499)]("2d");s&&(h[n(317)]=!0,h.imageSmoothingEnabled&&(h.imageSmoothingQuality=n(541)));let c=0,l=0;us(o[n(535)])?c=o.left:us(o[n(503)])&&(c=a[n(401)]-o[n(503)]),us(o[n(362)])?l=o[n(362)]:us(o[n(630)])&&(l=a[n(417)]-o[n(630)]);const d=new Image;d[n(504)]=t,d.onload=()=>{const t=n;if(h[t(531)](d,0,0),o[t(533)]&&o[t(533)][t(504)]){const s=new Image;s[t(504)]=o.image.src,s.setAttribute(t(649),t(591)),s.onload=()=>{const r=t;c-=o.image.width,h[r(531)](s,c,l,o.image[r(401)],o[r(533)][r(417)]),i(a[r(468)](e[r(493)],e[r(308)]))},s[t(598)]=t=>{r()}}else o[t(435)]&&o[t(435)][t(564)]&&(h[t(600)]=o[t(435)][t(364)]+t(399),h[t(492)]=o[t(435)][t(645)],h.textAlign="right",h.fillText(o[t(435)].content,c,l),i(a[t(468)](e[t(493)],e[t(308)])))},d[n(598)]=t=>{r(t)}}))}function Is(t){const e=Me;var s,i=0;if(0===t[e(641)])return i;for(s=0;s<t.length;s++)i=(i<<5)-i+t[e(315)](s),i|=0;return i}function Ts(t,e,s){return new Promise(((i,r)=>{const n=oi;if(!e[n(576)])return i(t);let o=document.createElement("canvas");o[n(401)]=e[n(401)],o[n(417)]=e[n(417)];let a=o.getContext("2d");s&&(a.imageSmoothingEnabled=!0,a[n(317)]&&(a.imageSmoothingQuality=n(541)));const h=new Image;h.src=t,h[n(547)]=()=>{const t=n;a.drawImage(h,0,0);const s=Is(e[t(576)]),r=a[t(500)](0,0,o[t(401)],o[t(417)]);(function(t,e){for(var s=t[Me(519)],i=0,r=0;r<32;r++){var n=e>>r&1,o=254&s[i]|n;s[i]=o,i+=4}})(r,s),a[t(316)](r,0,0),i(o[t(468)](e[t(493)],e[t(308)]))},h[n(598)]=t=>{r(t)}}))}function ks(t){const e=Me;var s;if(t>-1){var i=Math.floor(t/3600),r=Math[e(384)](t/60)%60,n=t%60;s=i<10?"0"+i+":":i+":",r<10&&(s+="0"),s+=r+":",(n=Math.round(n))<10&&(s+="0"),s+=n.toFixed(0)}return s}function _s(t,e){return new VideoFrame(t,e)}function Cs(t,e){let s="";if(t>-1){const i=Math[Me(384)](t/60)%60;let r=t%60;r=Math.round(r),s=i<10?"0"+i+":":i+":",r<10&&(s+="0"),s+=r,!ys(e)&&(e<10&&(e="0"+e),s+=":"+e)}return s}function Rs(t){let e="";if(t>-1){const s=Math[Me(384)](t/60/60)%60;let i=Math.floor(t/60)%60,r=t%60;i=Math.round(i),e=s<10?"0"+s+":":s+":",i<10&&(e+="0"),e+=i+":",r<10&&(e+="0"),e+=r}return e}function Ds(t,e){const s=Me,i=Math.floor(e/60)%60,r=Math.floor(e%60);return new Date(t)[s(454)](i,r,0,0)}function Ls(t,e){const s=Me,i=Math[s(384)](e/60/60)%60,r=Math[s(384)](e/60)%60,n=e%60;return new Date(t)[s(454)](i,r,n,0)}function xs(t){return(""+t)[Me(641)]}function Ps(t){const e=Me;return t&&0===Object[e(574)](t)[e(641)]}function Bs(t){return!Ps(t)}function Ms(t){return typeof t===Me(632)}const Fs=()=>{const t=Me,e=window[t(436)][t(339)];return/MicroMessenger/i.test(e)},Os=()=>{const t=Me,e=window[t(436)][t(339)];return/Chrome/i.test(e)},Us=()=>Fs()&&Ze();function Ns(t){const e=Me,s=t||window[e(516)];return s[e(389)]||s[e(403)]}function js(){return $e()&&function(){const t=Me,e=navigator[t(339)][t(357)]();return/macintosh|mac os x/i[t(396)](e)}()}function Vs(t){return t&&typeof t===Me(579)}function zs(t){return t/2%4==0}function Gs(t){const e=Me;if(Je()){let s=0,i=0;if(1===t[e(518)][e(641)]){let r=t.touches[0];s=r[e(311)],i=r[e(327)]}return{posX:s,posY:i}}let s=0,i=0;const r=t||window[e(516)];return r[e(639)]||r[e(449)]?(s=r[e(639)],i=r.pageY):(r[e(311)]||r[e(327)])&&(s=t[e(311)]+document[e(319)][e(520)]+document[e(366)][e(520)],i=t[e(327)]+document[e(319)][e(367)]+document[e(366)][e(367)]),{posX:s,posY:i}}function Ws(){const t=Me;let e=document.createElement(t(590)),s=e.canPlayType("application/vnd.apple.mpegurl");return e=null,s}function Hs(t){const e=Me;let s=ci(t[e(313)])&&(t.useMSE||t.useWCS&&!t[e(517)])&&ci(t[e(558)]);return!!(ci(s)&&t[e(441)]&&t[e(556)]&&ci(t[e(558)]))||(!!(ci(s)&&t[e(448)]&&t[e(335)])||s)}function Ks(t){const e=Me;let s=null,i=31&t[0];return(i===Y[e(559)]||i===Y[e(490)])&&(s=W[e(643)]),!s&&(i=(126&t[0])>>1,(i===q.vps||i===q[e(559)]||i===q.pps)&&(s=W.h265)),s}function Qs(t){const e=Me;const s=function(t){const e=oi;return t[e(472)]()[e(461)](/^function\s*\w*\s*\([\w\s,]*\)\s*{([\w\W]*?)}$/)[1]}(t[e(323)]()),i=new Blob([s],{type:e(629)});return URL[e(427)](i)}function Ys(t){return Qs(t)}function qs(t){t.close()}function Js(t){t.close()}function Xs(){const t=Me;return window.location[t(607)]===t(414)||window[t(496)][t(349)]===t(420)}function Zs(t){const e=Me,s=Object[e(385)][e(323)];return function(t){const i=e;switch(s[i(470)](t)){case i(625):case"[object Exception]":case i(439):return!0;default:try{return t instanceof Error}catch(t){return!1}}}(t)?t[e(534)]:null==t?"":typeof t===e(552)?JSON[e(342)](t,null,2):String(t)}function $s(t,e){const s=Me;e&&(t=t[s(372)]((t=>t[s(383)]&&t[s(383)]===e)));let i=t[0],r=null,n=1;if(t[s(641)]>0){let e=t[1];e&&e.ts-i.ts>1e5&&(i=e,n=2)}if(i)for(let o=n;o<t.length;o++){let n=t[o];if(e&&n[s(383)]&&n.type!==e&&(n=null),n){if(n.ts-i.ts>=1e3){t[o-1].ts-i.ts<1e3&&(r=o+1)}}}return r}function ti(t){const e=Me;for(var s=(t+"=".repeat((4-t[e(641)]%4)%4))[e(416)](/\-/g,"+")[e(416)](/_/g,"/"),i=window[e(457)](s),r=new Uint8Array(i.length),n=0;n<i[e(641)];++n)r[n]=i[e(315)](n);return r}function ei(t){const e=Me,s=/(msie|trident)/i[e(396)](navigator[e(339)]),i=document[e(553)]("a");let r=t;return s&&(i[e(476)](e(433),r),r=i[e(433)]),i[e(476)](e(433),r),{origin:i[e(563)],href:i.href,protocol:i[e(607)]?i.protocol[e(416)](/:$/,""):"",host:i[e(545)],search:i.search?i[e(486)][e(416)](/^\?/,""):"",hash:i[e(318)]?i.hash[e(416)](/^#/,""):"",hostname:i[e(349)],port:i[e(341)],pathname:"/"===i[e(484)][e(616)](0)?i[e(484)]:"/"+i[e(484)]}}function si(){const t=Me;return"xxxx"[t(416)](/[xy]/g,(function(e){const s=t;var i=16*Math[s(502)]()|0;return("x"==e?i:3&i|8)[s(323)](16)}))}function ii(t){const e=Me;let s="";if(typeof t===e(552))try{s=JSON[e(342)](t),s=JSON[e(605)](s)}catch(e){s=t}else s=t;return s}function ri(){return ii(C)}function ni(){return ii(_)}function oi(t,e){const s=yi();return(oi=function(t,e){return s[t-=307]})(t,e)}function ai(t){const e=Me;return t[0]>>4===mt[e(595)]&&t[1]===ft}function hi(t){return!0===t||t===Me(391)}function ci(t){return!0!==t&&t!==Me(391)}function li(t){const e=Me;return t[e(416)](/-([a-z])/g,(function(t,s){return s[e(409)]()}))}function di(){return/iphone/i.test(navigator.userAgent)}function ui(){const t=Me;return window[t(560)]&&window[t(560)].memory?window[t(560)][t(635)]:null}function pi(){const t=Me;try{var e=document[t(553)](t(428));return!(!window[t(542)]||!e[t(499)](t(392)))}catch(t){return!1}}function fi(){const t=Me;let e=!1;return t(608)in HTMLVideoElement[t(385)]&&(e=!0),e}function mi(){const t=Me;let e=!1;return t(440)in Nt&&"function"==typeof Nt[t(440)]&&(e=!0),e}function gi(t,e){const s=Me,i=Le(t[s(434)](5));let r=!1;return i[s(611)]((t=>{const i=s,n=e?t[0]>>>1&63:31&t[0];(e&&(n===q[i(432)]||n===q[i(398)]||n===q.kSliceBLA_N_LP||n===q[i(539)]||n===q[i(577)]||i(642),i(314),n===q.kSliceRSV_IRAP_VCL23)||ci(e)&&n===Y[i(539)])&&(r=!0)})),r}function Ai(){const t=Me;let e={down:"mousedown",move:"mousemove",up:t(460),click:t(633)};return Je()&&(e={down:t(515),move:"touchmove",up:"touchend",click:t(633)}),e}function yi(){const t=["resume","keys","borderColor","copyright","nLp","isEnabled","function","readyState","application/asx","msGetUserMedia","safari","innerHTML","9999999","fromCharCode","log","max","min","video","Anonymous",'"development"',"appendChild","fullscreenElement","keyFrame","webgl","setUint16","onerror","destination","font","1101Unjzfq","createTextNode","setInt32","absolute","parse","application/vnd.chromium.remoting-viewer","protocol","requestVideoFrameCallback","isTypeSupported","createImageBitmap","forEach","hev2","numberOfFrames","clearRect","user-select","charAt","hour","7pEMcrU","VideoDecoder","initEvent","MediaStream","WAVE","3608TQqsWY","not compiled with thread support, using thread emulation","[object Error]","getAttribute","green yuv","Safari","application/javascript","bottom","error","string","click",'video/mp4; codecs="',"memory","removeChild","substr","PB/s","pageX","px Arial","length","craNut","h264","opacity","color","none","avc1.","setUint8","crossOrigin","EB/s","quality","hev","backgroundColor","clientX","getDate","hasAudio","kSliceRSV_IRAP_VCL22","charCodeAt","putImageData","imageSmoothingEnabled","hash","documentElement","mimeTypes","Chrome","createBuffer","toString","firefox","NaN","MediaStreamTrackGenerator","clientY","setInt16","join","status","rgba(0,0,0,0)","RIFF","QQBrowser",'"production"',"wcsDecodeAudio","illegal icc","canConstructInDedicatedWorker","validate","userAgent","688JmjJRy","port","stringify","playbackRate","win32","0 KB/s","100%","data-","noteOn","hostname","AudioDecoder","div","f32-planar","hev3","URL","ActiveXObject","getMonth","toLowerCase","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=","isConfigSupported","Opera","fontFamily","top","sampleRate","fontSize","VideoEncoder.isConfigSupported() result is not supported","body","scrollTop","buffer","YB/s","ZB/s","transferControlToOffscreen","filter","line","dispatchEvent","pointer-events: none !important; display: block !important","WebGLRenderingContext","createBufferSource","chrome","MediaSource","3852304dolBsG","getDay","setUint32","type","floor","prototype","insertBefore","audioWorklet","hidden","target","-moz-user-select","true","webgl2","borderStyle","application/hwepass2001.installepass2001","hev5","test","VideoEncoder.isConfigSupported is not a function","kSliceBLA_W_RADL","px 宋体","split","width","9MvUfiQ","srcElement","restore","removeAttribute","start","assign","version","toUpperCase","save","push","document","container","https:","element","replace","height","24144HHSNRn","indexOf","localhost","endsWith","lineWidth","pow","ALAW","getMinutes","Edge","createObjectURL","canvas","strokeRect","contain","ended","kSliceBLA_W_LP","href","slice","text","navigator","webkitGetUserMedia","style","[object DOMException]","PressureObserver","useMSE",";base64","-webkit-touch-callout","1738339200000",'"1-2-2025"',"QihooBrowser","attachShadow","useWCS","pageY","Module","rect","revokeObjectURL","QHBrowser","setHours","-o-user-select","-webkit-text-size-adjust","atob","6343630gosndB","getUserMedia","mouseup","match","{y}-{m}-{d} {h}:{i}:{s}","Instance","hev4","webkit-3d","subarray","getHours","toDataURL","GB/s","call","showModalDialog","trim","MouseEvents","instantiate","not compiled with thread support","setAttribute","msFullscreenElement","867618rQylXb","gpu","img","download","win64","file","pathname","Worker","search","360SE","result","VideoFrame","pps","undefined","fillStyle","format","failed to asynchronously prepare wasm","moz-webgl","location","#000","fillText","getContext","getImageData",'"2.1.3"',"random","right","src","repeat","-webkit-user-select","KB/s","5046CMkVfa","substring","webm","connect","solid","toFixed","data:","touchstart","event","useOffscreen","touches","data","scrollLeft","dataset","paused","VideoEncoder is not supported","Bytes","mediaDevices","apply","AAC","[object Number]","40CgmioJ","experimental-webgl","drawImage","ManagedMediaSource","image","message","left","-webkit-tap-highlight-color","green","getElementById","iFrame","xxxxxxxxxxxx4xxx","high","WebGL2RenderingContext","position","second","host","then","onload","application/360softmgrplugin","Reserved SBR extensions is not implemented","shadowRoot","numberOfChannels","object","createElement","now","visibility","mseDecodeAudio","byteLength","demuxUseWorker","sps","performance","If you want to help, upload a sample of this file to","borderWidth","origin","content","set","getFullYear","isFullscreen",'"2025-2-1"',"AudioData","getTime","setInt8","1021260IHMSyE"];return(yi=function(){return t})()}function bi(t){const e=Me;return t&&!t[e(522)]&&!t[e(431)]&&0!==t[e(343)]&&0!==t[e(580)]}function vi(){return hi(false)}function Si(){return ci(false)}function wi(){return je()>=Number(qe)}const Ei=Ii;function Ii(t,e){const s=Ti();return(Ii=function(t,e){return s[t-=376]})(t,e)}function Ti(){const t=["422340kvqdHX","destroys","destroy","1043CLjLNB","push","1213080hAQhwM","isArray","master","map","length","proxy","110npSZNK","1899818gOFzTv","forEach","addEventListener","debugLog","20fRsoXl","890508bGrLPw","24342EsrhMb","1764860oRjiaJ","2170593BEIcUQ","removeEventListener","Events"];return(Ti=function(){return t})()}!function(t,e){const s=Ii,i=t();for(;;)try{if(511786===-parseInt(s(394))/1+-parseInt(s(389))/2+parseInt(s(377))/3*(-parseInt(s(393))/4)+-parseInt(s(396))/5+-parseInt(s(395))/6*(-parseInt(s(380))/7)+parseInt(s(382))/8+parseInt(s(397))/9*(parseInt(s(388))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Ti);class ki{constructor(t){const e=Ii;this[e(378)]=[],this[e(387)]=this[e(387)].bind(this),this[e(384)]=t}proxy(t,e,s){const i=Ii;let r=arguments[i(386)]>3&&void 0!==arguments[3]?arguments[3]:{};if(!t)return;if(Array[i(383)](e))return e[i(385)]((e=>this[i(387)](t,e,s,r)));t[i(391)](e,s,r);const n=()=>{Vs(t[i(398)])&&t.removeEventListener(e,s,r)};return this.destroys[i(381)](n),n}[Ei(379)](){const t=Ei;this[t(384)][t(392)](t(376),t(379)),this[t(378)][t(390)]((t=>t())),this[t(378)]=[]}}function _i(t,e){const s=Ci();return(_i=function(t,e){return s[t-=197]})(t,e)}function Ci(){const t=["getBoundingClientRect","2696370VMPDrG","left","right","$container","9609304HgLBEK","bottom","6QxPDlQ","height","max","rect","defineProperty","clientWidth","width","3002741oYbvxe","1432344somIHX","1861852bvaZVv","top","forEach","886289brAmNP","306924vTqkAI"];return(Ci=function(){return t})()}!function(t,e){const s=_i,i=t();for(;;)try{if(476729===-parseInt(s(199))/1+parseInt(s(216))/2+parseInt(s(208))/3*(parseInt(s(217))/4)+parseInt(s(202))/5+-parseInt(s(200))/6+parseInt(s(215))/7+-parseInt(s(206))/8)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Ci);function Ri(){const t=["resize","videoInfo","3504681FrumZf","emitError","request","useMSE","currentPts","fullscreen request success","fullscreen request error","16Veuugy","_opt","8487966ugDDzw","destroys","change","81274JEKtGu","fullscreen exit success","4018779DxIdwW","audioInfo","player events","5eFRUQu","videoSEISyncPts","decoderWorkerInit","2011750ytpmFA","catch","debugError","classList","debug","debugLog","length","flvMetaData","events","playbackStats","toString","player","43521621AStxKG","timeUpdate","stringify","off","webFullscreen","includes","forEach","23Ndxrap","add","performance","remove","useWebFullScreen","play","loading","fullscreen","debugWarn","fullscreen exit error","stats","$container","647944SDcWns","playToRenderTimes","jb-pro-fullscreen-web","then","fullscreenError","keys","emit","7dbBAad"];return(Ri=function(){return t})()}function Di(t,e){const s=Ri();return(Di=function(t,e){return s[t-=191]})(t,e)}!function(t,e){const s=Di,i=t();for(;;)try{if(994929===parseInt(s(196))/1*(parseInt(s(230))/2)+-parseInt(s(232))/3+parseInt(s(208))/4*(-parseInt(s(235))/5)+parseInt(s(227))/6*(-parseInt(s(215))/7)+parseInt(s(225))/8*(-parseInt(s(218))/9)+-parseInt(s(238))/10+parseInt(s(250))/11)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Ri);function Li(t,e){const s=xi();return(Li=function(t,e){return s[t-=260]})(t,e)}function xi(){const t=["forEach","2420480EHYJUE","push","length","7743324GLvosx","15412oyRUjm","30qJBfyl","835751eyOnGG","1176918NwMGym","off","emit","459BvuWDt","2685552mGAysK","slice","keys","16Dlajqc","ctx","9346887XHgKQN","apply"];return(xi=function(){return t})()}const Pi=Li;!function(t,e){const s=Li,i=t();for(;;)try{if(827992===parseInt(s(276))/1+parseInt(s(261))/2+-parseInt(s(260))/3*(parseInt(s(273))/4)+parseInt(s(269))/5+parseInt(s(272))/6+-parseInt(s(275))/7*(-parseInt(s(264))/8)+-parseInt(s(266))/9*(parseInt(s(274))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(xi);class Bi{on(t,e,s){const i=Li,r=this.e||(this.e={});return(r[t]||(r[t]=[]))[i(270)]({fn:e,ctx:s}),this}once(t,e,s){const i=this;function r(){const n=Li;i[n(277)](t,r);for(var o=arguments[n(271)],a=new Array(o),h=0;h<o;h++)a[h]=arguments[h];e[n(267)](s,a)}return r._=e,this.on(t,r,s)}[Pi(278)](t){const e=Pi,s=((this.e||(this.e={}))[t]||[])[e(262)]();for(var i=arguments[e(271)],r=new Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];for(let t=0;t<s[e(271)];t+=1)s[t].fn[e(267)](s[t][e(265)],r);return this}off(t,e){const s=Pi,i=this.e||(this.e={});if(!t)return Object[s(263)](i)[s(268)]((t=>{delete i[t]})),void delete this.e;const r=i[t],n=[];if(r&&e)for(let t=0,i=r[s(271)];t<i;t+=1)r[t].fn!==e&&r[t].fn._!==e&&n[s(270)](r[t]);return n[s(271)]?i[t]=n:delete i[t],this}}var Mi=Fi;function Fi(t,e){var s=Ui();return(Fi=function(t,e){return s[t-=484]})(t,e)}!function(t,e){for(var s=Fi,i=t();;)try{if(938854===parseInt(s(500))/1*(-parseInt(s(488))/2)+-parseInt(s(485))/3+-parseInt(s(496))/4*(parseInt(s(489))/5)+-parseInt(s(493))/6*(-parseInt(s(484))/7)+-parseInt(s(494))/8*(-parseInt(s(486))/9)+-parseInt(s(499))/10*(parseInt(s(487))/11)+parseInt(s(495))/12)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Ui);var Oi=1e-6;function Ui(){var t=["147130oyvRUn","5QlcTMm","abs","length","undefined","948078USbYkD","1192rApOMJ","18556476NsruMY","3032476VAuOoq","max","sqrt","140HvRPwv","16PuhpGm","hypot","7WhyuaA","874782ybyijZ","98307FNenjE","130669hXaKEi"];return(Ui=function(){return t})()}var Ni=typeof Float32Array!==Mi(492)?Float32Array:Array,ji=Math.random;var Vi=Math.PI/180;Math[Mi(501)]||(Math[Mi(501)]=function(){for(var t=Mi,e=0,s=arguments[t(491)];s--;)e+=arguments[s]*arguments[s];return Math[t(498)](e)});var zi=Object.freeze({__proto__:null,EPSILON:Oi,get ARRAY_TYPE(){return Ni},RANDOM:ji,setMatrixArrayType:function(t){Ni=t},toRadian:function(t){return t*Vi},equals:function(t,e){var s=Mi;return Math[s(490)](t-e)<=Oi*Math[s(497)](1,Math[s(490)](t),Math[s(490)](e))}});function Gi(){var t=Zi,e=new(zi[t(432)])(16);return zi[t(432)]!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}function Wi(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function Hi(t,e,s){var i=e[0],r=e[1],n=e[2],o=e[3],a=e[4],h=e[5],c=e[6],l=e[7],d=e[8],u=e[9],p=e[10],f=e[11],m=e[12],g=e[13],A=e[14],y=e[15],b=s[0],v=s[1],S=s[2],w=s[3];return t[0]=b*i+v*a+S*d+w*m,t[1]=b*r+v*h+S*u+w*g,t[2]=b*n+v*c+S*p+w*A,t[3]=b*o+v*l+S*f+w*y,b=s[4],v=s[5],S=s[6],w=s[7],t[4]=b*i+v*a+S*d+w*m,t[5]=b*r+v*h+S*u+w*g,t[6]=b*n+v*c+S*p+w*A,t[7]=b*o+v*l+S*f+w*y,b=s[8],v=s[9],S=s[10],w=s[11],t[8]=b*i+v*a+S*d+w*m,t[9]=b*r+v*h+S*u+w*g,t[10]=b*n+v*c+S*p+w*A,t[11]=b*o+v*l+S*f+w*y,b=s[12],v=s[13],S=s[14],w=s[15],t[12]=b*i+v*a+S*d+w*m,t[13]=b*r+v*h+S*u+w*g,t[14]=b*n+v*c+S*p+w*A,t[15]=b*o+v*l+S*f+w*y,t}function Ki(t,e,s){var i=e[0],r=e[1],n=e[2],o=e[3],a=i+i,h=r+r,c=n+n,l=i*a,d=i*h,u=i*c,p=r*h,f=r*c,m=n*c,g=o*a,A=o*h,y=o*c;return t[0]=1-(p+m),t[1]=d+y,t[2]=u-A,t[3]=0,t[4]=d-y,t[5]=1-(l+m),t[6]=f+g,t[7]=0,t[8]=u+A,t[9]=f-g,t[10]=1-(l+p),t[11]=0,t[12]=s[0],t[13]=s[1],t[14]=s[2],t[15]=1,t}function Qi(t,e){var s=Zi,i=e[0],r=e[1],n=e[2],o=e[4],a=e[5],h=e[6],c=e[8],l=e[9],d=e[10];return t[0]=Math[s(442)](i,r,n),t[1]=Math[s(442)](o,a,h),t[2]=Math.hypot(c,l,d),t}function Yi(t,e,s,i,r){var n,o=1/Math[Zi(435)](e/2);return t[0]=o/s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=r&&r!==1/0?(n=1/(i-r),t[10]=(r+i)*n,t[14]=2*r*i*n):(t[10]=-1,t[14]=-2*i),t}!function(t,e){for(var s=Zi,i=t();;)try{if(265139===parseInt(s(449))/1+-parseInt(s(436))/2*(-parseInt(s(430))/3)+parseInt(s(437))/4*(-parseInt(s(429))/5)+-parseInt(s(444))/6+parseInt(s(439))/7+parseInt(s(445))/8+-parseInt(s(440))/9)break;i.push(i.shift())}catch(t){i.push(i.shift())}}($i);var qi=Yi;function Ji(t,e,s,i,r,n,o){var a=1/(e-s),h=1/(i-r),c=1/(n-o);return t[0]=-2*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*h,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+s)*a,t[13]=(r+i)*h,t[14]=(o+n)*c,t[15]=1,t}var Xi=Ji;function Zi(t,e){var s=$i();return(Zi=function(t,e){return s[t-=429]})(t,e)}function $i(){var t=["mat4(","rightDegrees","EPSILON","428826DMLqbF","abs","5fCjwaP","3TuvHnj","max","ARRAY_TYPE","sin","sqrt","tan","288928GYVMrc","46580LcOExC","upDegrees","2182061usdYBh","3496365YwMttc","cos","hypot","downDegrees","2453850tSlKXo","1513848xPiChA"];return($i=function(){return t})()}function tr(t,e,s){return t[0]=e[0]-s[0],t[1]=e[1]-s[1],t[2]=e[2]-s[2],t[3]=e[3]-s[3],t[4]=e[4]-s[4],t[5]=e[5]-s[5],t[6]=e[6]-s[6],t[7]=e[7]-s[7],t[8]=e[8]-s[8],t[9]=e[9]-s[9],t[10]=e[10]-s[10],t[11]=e[11]-s[11],t[12]=e[12]-s[12],t[13]=e[13]-s[13],t[14]=e[14]-s[14],t[15]=e[15]-s[15],t}var er=Hi,sr=tr,ir=Object.freeze({__proto__:null,create:Gi,clone:function(t){var e=new Ni(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},fromValues:function(t,e,s,i,r,n,o,a,h,c,l,d,u,p,f,m){var g=new(zi[Zi(432)])(16);return g[0]=t,g[1]=e,g[2]=s,g[3]=i,g[4]=r,g[5]=n,g[6]=o,g[7]=a,g[8]=h,g[9]=c,g[10]=l,g[11]=d,g[12]=u,g[13]=p,g[14]=f,g[15]=m,g},set:function(t,e,s,i,r,n,o,a,h,c,l,d,u,p,f,m,g){return t[0]=e,t[1]=s,t[2]=i,t[3]=r,t[4]=n,t[5]=o,t[6]=a,t[7]=h,t[8]=c,t[9]=l,t[10]=d,t[11]=u,t[12]=p,t[13]=f,t[14]=m,t[15]=g,t},identity:Wi,transpose:function(t,e){if(t===e){var s=e[1],i=e[2],r=e[3],n=e[6],o=e[7],a=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=s,t[6]=e[9],t[7]=e[13],t[8]=i,t[9]=n,t[11]=e[14],t[12]=r,t[13]=o,t[14]=a}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t},invert:function(t,e){var s=e[0],i=e[1],r=e[2],n=e[3],o=e[4],a=e[5],h=e[6],c=e[7],l=e[8],d=e[9],u=e[10],p=e[11],f=e[12],m=e[13],g=e[14],A=e[15],y=s*a-i*o,b=s*h-r*o,v=s*c-n*o,S=i*h-r*a,w=i*c-n*a,E=r*c-n*h,I=l*m-d*f,T=l*g-u*f,k=l*A-p*f,_=d*g-u*m,C=d*A-p*m,R=u*A-p*g,D=y*R-b*C+v*_+S*k-w*T+E*I;return D?(D=1/D,t[0]=(a*R-h*C+c*_)*D,t[1]=(r*C-i*R-n*_)*D,t[2]=(m*E-g*w+A*S)*D,t[3]=(u*w-d*E-p*S)*D,t[4]=(h*k-o*R-c*T)*D,t[5]=(s*R-r*k+n*T)*D,t[6]=(g*v-f*E-A*b)*D,t[7]=(l*E-u*v+p*b)*D,t[8]=(o*C-a*k+c*I)*D,t[9]=(i*k-s*C-n*I)*D,t[10]=(f*w-m*v+A*y)*D,t[11]=(d*v-l*w-p*y)*D,t[12]=(a*T-o*_-h*I)*D,t[13]=(s*_-i*T+r*I)*D,t[14]=(m*b-f*S-g*y)*D,t[15]=(l*S-d*b+u*y)*D,t):null},adjoint:function(t,e){var s=e[0],i=e[1],r=e[2],n=e[3],o=e[4],a=e[5],h=e[6],c=e[7],l=e[8],d=e[9],u=e[10],p=e[11],f=e[12],m=e[13],g=e[14],A=e[15];return t[0]=a*(u*A-p*g)-d*(h*A-c*g)+m*(h*p-c*u),t[1]=-(i*(u*A-p*g)-d*(r*A-n*g)+m*(r*p-n*u)),t[2]=i*(h*A-c*g)-a*(r*A-n*g)+m*(r*c-n*h),t[3]=-(i*(h*p-c*u)-a*(r*p-n*u)+d*(r*c-n*h)),t[4]=-(o*(u*A-p*g)-l*(h*A-c*g)+f*(h*p-c*u)),t[5]=s*(u*A-p*g)-l*(r*A-n*g)+f*(r*p-n*u),t[6]=-(s*(h*A-c*g)-o*(r*A-n*g)+f*(r*c-n*h)),t[7]=s*(h*p-c*u)-o*(r*p-n*u)+l*(r*c-n*h),t[8]=o*(d*A-p*m)-l*(a*A-c*m)+f*(a*p-c*d),t[9]=-(s*(d*A-p*m)-l*(i*A-n*m)+f*(i*p-n*d)),t[10]=s*(a*A-c*m)-o*(i*A-n*m)+f*(i*c-n*a),t[11]=-(s*(a*p-c*d)-o*(i*p-n*d)+l*(i*c-n*a)),t[12]=-(o*(d*g-u*m)-l*(a*g-h*m)+f*(a*u-h*d)),t[13]=s*(d*g-u*m)-l*(i*g-r*m)+f*(i*u-r*d),t[14]=-(s*(a*g-h*m)-o*(i*g-r*m)+f*(i*h-r*a)),t[15]=s*(a*u-h*d)-o*(i*u-r*d)+l*(i*h-r*a),t},determinant:function(t){var e=t[0],s=t[1],i=t[2],r=t[3],n=t[4],o=t[5],a=t[6],h=t[7],c=t[8],l=t[9],d=t[10],u=t[11],p=t[12],f=t[13],m=t[14],g=t[15];return(e*o-s*n)*(d*g-u*m)-(e*a-i*n)*(l*g-u*f)+(e*h-r*n)*(l*m-d*f)+(s*a-i*o)*(c*g-u*p)-(s*h-r*o)*(c*m-d*p)+(i*h-r*a)*(c*f-l*p)},multiply:Hi,translate:function(t,e,s){var i,r,n,o,a,h,c,l,d,u,p,f,m=s[0],g=s[1],A=s[2];return e===t?(t[12]=e[0]*m+e[4]*g+e[8]*A+e[12],t[13]=e[1]*m+e[5]*g+e[9]*A+e[13],t[14]=e[2]*m+e[6]*g+e[10]*A+e[14],t[15]=e[3]*m+e[7]*g+e[11]*A+e[15]):(i=e[0],r=e[1],n=e[2],o=e[3],a=e[4],h=e[5],c=e[6],l=e[7],d=e[8],u=e[9],p=e[10],f=e[11],t[0]=i,t[1]=r,t[2]=n,t[3]=o,t[4]=a,t[5]=h,t[6]=c,t[7]=l,t[8]=d,t[9]=u,t[10]=p,t[11]=f,t[12]=i*m+a*g+d*A+e[12],t[13]=r*m+h*g+u*A+e[13],t[14]=n*m+c*g+p*A+e[14],t[15]=o*m+l*g+f*A+e[15]),t},scale:function(t,e,s){var i=s[0],r=s[1],n=s[2];return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t[3]=e[3]*i,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},rotate:function(t,e,s,i){var r,n,o,a,h,c,l,d,u,p,f,m,g,A,y,b,v,S,w,E,I,T,k,_,C=Zi,R=i[0],D=i[1],L=i[2],x=Math.hypot(R,D,L);return x<zi[C(448)]?null:(R*=x=1/x,D*=x,L*=x,r=Math[C(433)](s),o=1-(n=Math[C(441)](s)),a=e[0],h=e[1],c=e[2],l=e[3],d=e[4],u=e[5],p=e[6],f=e[7],m=e[8],g=e[9],A=e[10],y=e[11],b=R*R*o+n,v=D*R*o+L*r,S=L*R*o-D*r,w=R*D*o-L*r,E=D*D*o+n,I=L*D*o+R*r,T=R*L*o+D*r,k=D*L*o-R*r,_=L*L*o+n,t[0]=a*b+d*v+m*S,t[1]=h*b+u*v+g*S,t[2]=c*b+p*v+A*S,t[3]=l*b+f*v+y*S,t[4]=a*w+d*E+m*I,t[5]=h*w+u*E+g*I,t[6]=c*w+p*E+A*I,t[7]=l*w+f*E+y*I,t[8]=a*T+d*k+m*_,t[9]=h*T+u*k+g*_,t[10]=c*T+p*k+A*_,t[11]=l*T+f*k+y*_,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)},rotateX:function(t,e,s){var i=Zi,r=Math[i(433)](s),n=Math[i(441)](s),o=e[4],a=e[5],h=e[6],c=e[7],l=e[8],d=e[9],u=e[10],p=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=o*n+l*r,t[5]=a*n+d*r,t[6]=h*n+u*r,t[7]=c*n+p*r,t[8]=l*n-o*r,t[9]=d*n-a*r,t[10]=u*n-h*r,t[11]=p*n-c*r,t},rotateY:function(t,e,s){var i=Math[Zi(433)](s),r=Math.cos(s),n=e[0],o=e[1],a=e[2],h=e[3],c=e[8],l=e[9],d=e[10],u=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=n*r-c*i,t[1]=o*r-l*i,t[2]=a*r-d*i,t[3]=h*r-u*i,t[8]=n*i+c*r,t[9]=o*i+l*r,t[10]=a*i+d*r,t[11]=h*i+u*r,t},rotateZ:function(t,e,s){var i=Zi,r=Math[i(433)](s),n=Math[i(441)](s),o=e[0],a=e[1],h=e[2],c=e[3],l=e[4],d=e[5],u=e[6],p=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*n+l*r,t[1]=a*n+d*r,t[2]=h*n+u*r,t[3]=c*n+p*r,t[4]=l*n-o*r,t[5]=d*n-a*r,t[6]=u*n-h*r,t[7]=p*n-c*r,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromRotation:function(t,e,s){var i,r,n,o=Zi,a=s[0],h=s[1],c=s[2],l=Math[o(442)](a,h,c);return l<zi[o(448)]?null:(a*=l=1/l,h*=l,c*=l,i=Math[o(433)](e),n=1-(r=Math.cos(e)),t[0]=a*a*n+r,t[1]=h*a*n+c*i,t[2]=c*a*n-h*i,t[3]=0,t[4]=a*h*n-c*i,t[5]=h*h*n+r,t[6]=c*h*n+a*i,t[7]=0,t[8]=a*c*n+h*i,t[9]=h*c*n-a*i,t[10]=c*c*n+r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)},fromXRotation:function(t,e){var s=Zi,i=Math.sin(e),r=Math[s(441)](e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=i,t[7]=0,t[8]=0,t[9]=-i,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromYRotation:function(t,e){var s=Math[Zi(433)](e),i=Math.cos(e);return t[0]=i,t[1]=0,t[2]=-s,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=s,t[9]=0,t[10]=i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:function(t,e){var s=Zi,i=Math[s(433)](e),r=Math[s(441)](e);return t[0]=r,t[1]=i,t[2]=0,t[3]=0,t[4]=-i,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromRotationTranslation:Ki,fromQuat2:function(t,e){var s=new(zi[Zi(432)])(3),i=-e[0],r=-e[1],n=-e[2],o=e[3],a=e[4],h=e[5],c=e[6],l=e[7],d=i*i+r*r+n*n+o*o;return d>0?(s[0]=2*(a*o+l*i+h*n-c*r)/d,s[1]=2*(h*o+l*r+c*i-a*n)/d,s[2]=2*(c*o+l*n+a*r-h*i)/d):(s[0]=2*(a*o+l*i+h*n-c*r),s[1]=2*(h*o+l*r+c*i-a*n),s[2]=2*(c*o+l*n+a*r-h*i)),Ki(t,e,s),t},getTranslation:function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t},getScaling:Qi,getRotation:function(t,e){var s=Zi,i=new Ni(3);Qi(i,e);var r=1/i[0],n=1/i[1],o=1/i[2],a=e[0]*r,h=e[1]*n,c=e[2]*o,l=e[4]*r,d=e[5]*n,u=e[6]*o,p=e[8]*r,f=e[9]*n,m=e[10]*o,g=a+d+m,A=0;return g>0?(A=2*Math[s(434)](g+1),t[3]=.25*A,t[0]=(u-f)/A,t[1]=(p-c)/A,t[2]=(h-l)/A):a>d&&a>m?(A=2*Math.sqrt(1+a-d-m),t[3]=(u-f)/A,t[0]=.25*A,t[1]=(h+l)/A,t[2]=(p+c)/A):d>m?(A=2*Math[s(434)](1+d-a-m),t[3]=(p-c)/A,t[0]=(h+l)/A,t[1]=.25*A,t[2]=(u+f)/A):(A=2*Math[s(434)](1+m-a-d),t[3]=(h-l)/A,t[0]=(p+c)/A,t[1]=(u+f)/A,t[2]=.25*A),t},fromRotationTranslationScale:function(t,e,s,i){var r=e[0],n=e[1],o=e[2],a=e[3],h=r+r,c=n+n,l=o+o,d=r*h,u=r*c,p=r*l,f=n*c,m=n*l,g=o*l,A=a*h,y=a*c,b=a*l,v=i[0],S=i[1],w=i[2];return t[0]=(1-(f+g))*v,t[1]=(u+b)*v,t[2]=(p-y)*v,t[3]=0,t[4]=(u-b)*S,t[5]=(1-(d+g))*S,t[6]=(m+A)*S,t[7]=0,t[8]=(p+y)*w,t[9]=(m-A)*w,t[10]=(1-(d+f))*w,t[11]=0,t[12]=s[0],t[13]=s[1],t[14]=s[2],t[15]=1,t},fromRotationTranslationScaleOrigin:function(t,e,s,i,r){var n=e[0],o=e[1],a=e[2],h=e[3],c=n+n,l=o+o,d=a+a,u=n*c,p=n*l,f=n*d,m=o*l,g=o*d,A=a*d,y=h*c,b=h*l,v=h*d,S=i[0],w=i[1],E=i[2],I=r[0],T=r[1],k=r[2],_=(1-(m+A))*S,C=(p+v)*S,R=(f-b)*S,D=(p-v)*w,L=(1-(u+A))*w,x=(g+y)*w,P=(f+b)*E,B=(g-y)*E,M=(1-(u+m))*E;return t[0]=_,t[1]=C,t[2]=R,t[3]=0,t[4]=D,t[5]=L,t[6]=x,t[7]=0,t[8]=P,t[9]=B,t[10]=M,t[11]=0,t[12]=s[0]+I-(_*I+D*T+P*k),t[13]=s[1]+T-(C*I+L*T+B*k),t[14]=s[2]+k-(R*I+x*T+M*k),t[15]=1,t},fromQuat:function(t,e){var s=e[0],i=e[1],r=e[2],n=e[3],o=s+s,a=i+i,h=r+r,c=s*o,l=i*o,d=i*a,u=r*o,p=r*a,f=r*h,m=n*o,g=n*a,A=n*h;return t[0]=1-d-f,t[1]=l+A,t[2]=u-g,t[3]=0,t[4]=l-A,t[5]=1-c-f,t[6]=p+m,t[7]=0,t[8]=u+g,t[9]=p-m,t[10]=1-c-d,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},frustum:function(t,e,s,i,r,n,o){var a=1/(s-e),h=1/(r-i),c=1/(n-o);return t[0]=2*n*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*n*h,t[6]=0,t[7]=0,t[8]=(s+e)*a,t[9]=(r+i)*h,t[10]=(o+n)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*n*2*c,t[15]=0,t},perspectiveNO:Yi,perspective:qi,perspectiveZO:function(t,e,s,i,r){var n,o=1/Math.tan(e/2);return t[0]=o/s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=r&&r!==1/0?(n=1/(i-r),t[10]=r*n,t[14]=r*i*n):(t[10]=-1,t[14]=-i),t},perspectiveFromFieldOfView:function(t,e,s,i){var r=Zi,n=Math[r(435)](e[r(438)]*Math.PI/180),o=Math[r(435)](e[r(443)]*Math.PI/180),a=Math.tan(e.leftDegrees*Math.PI/180),h=Math[r(435)](e[r(447)]*Math.PI/180),c=2/(a+h),l=2/(n+o);return t[0]=c,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l,t[6]=0,t[7]=0,t[8]=-(a-h)*c*.5,t[9]=(n-o)*l*.5,t[10]=i/(s-i),t[11]=-1,t[12]=0,t[13]=0,t[14]=i*s/(s-i),t[15]=0,t},orthoNO:Ji,ortho:Xi,orthoZO:function(t,e,s,i,r,n,o){var a=1/(e-s),h=1/(i-r),c=1/(n-o);return t[0]=-2*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*h,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=c,t[11]=0,t[12]=(e+s)*a,t[13]=(r+i)*h,t[14]=n*c,t[15]=1,t},lookAt:function(t,e,s,i){var r,n,o,a,h,c,l,d,u,p,f=Zi,m=e[0],g=e[1],A=e[2],y=i[0],b=i[1],v=i[2],S=s[0],w=s[1],E=s[2];return Math[f(450)](m-S)<zi[f(448)]&&Math[f(450)](g-w)<Oi&&Math[f(450)](A-E)<Oi?Wi(t):(l=m-S,d=g-w,u=A-E,r=b*(u*=p=1/Math.hypot(l,d,u))-v*(d*=p),n=v*(l*=p)-y*u,o=y*d-b*l,(p=Math[f(442)](r,n,o))?(r*=p=1/p,n*=p,o*=p):(r=0,n=0,o=0),a=d*o-u*n,h=u*r-l*o,c=l*n-d*r,(p=Math.hypot(a,h,c))?(a*=p=1/p,h*=p,c*=p):(a=0,h=0,c=0),t[0]=r,t[1]=a,t[2]=l,t[3]=0,t[4]=n,t[5]=h,t[6]=d,t[7]=0,t[8]=o,t[9]=c,t[10]=u,t[11]=0,t[12]=-(r*m+n*g+o*A),t[13]=-(a*m+h*g+c*A),t[14]=-(l*m+d*g+u*A),t[15]=1,t)},targetTo:function(t,e,s,i){var r=Zi,n=e[0],o=e[1],a=e[2],h=i[0],c=i[1],l=i[2],d=n-s[0],u=o-s[1],p=a-s[2],f=d*d+u*u+p*p;f>0&&(d*=f=1/Math[r(434)](f),u*=f,p*=f);var m=c*p-l*u,g=l*d-h*p,A=h*u-c*d;return(f=m*m+g*g+A*A)>0&&(m*=f=1/Math[r(434)](f),g*=f,A*=f),t[0]=m,t[1]=g,t[2]=A,t[3]=0,t[4]=u*A-p*g,t[5]=p*m-d*A,t[6]=d*g-u*m,t[7]=0,t[8]=d,t[9]=u,t[10]=p,t[11]=0,t[12]=n,t[13]=o,t[14]=a,t[15]=1,t},str:function(t){return Zi(446)+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},frob:function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])},add:function(t,e,s){return t[0]=e[0]+s[0],t[1]=e[1]+s[1],t[2]=e[2]+s[2],t[3]=e[3]+s[3],t[4]=e[4]+s[4],t[5]=e[5]+s[5],t[6]=e[6]+s[6],t[7]=e[7]+s[7],t[8]=e[8]+s[8],t[9]=e[9]+s[9],t[10]=e[10]+s[10],t[11]=e[11]+s[11],t[12]=e[12]+s[12],t[13]=e[13]+s[13],t[14]=e[14]+s[14],t[15]=e[15]+s[15],t},subtract:tr,multiplyScalar:function(t,e,s){return t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s,t[3]=e[3]*s,t[4]=e[4]*s,t[5]=e[5]*s,t[6]=e[6]*s,t[7]=e[7]*s,t[8]=e[8]*s,t[9]=e[9]*s,t[10]=e[10]*s,t[11]=e[11]*s,t[12]=e[12]*s,t[13]=e[13]*s,t[14]=e[14]*s,t[15]=e[15]*s,t},multiplyScalarAndAdd:function(t,e,s,i){return t[0]=e[0]+s[0]*i,t[1]=e[1]+s[1]*i,t[2]=e[2]+s[2]*i,t[3]=e[3]+s[3]*i,t[4]=e[4]+s[4]*i,t[5]=e[5]+s[5]*i,t[6]=e[6]+s[6]*i,t[7]=e[7]+s[7]*i,t[8]=e[8]+s[8]*i,t[9]=e[9]+s[9]*i,t[10]=e[10]+s[10]*i,t[11]=e[11]+s[11]*i,t[12]=e[12]+s[12]*i,t[13]=e[13]+s[13]*i,t[14]=e[14]+s[14]*i,t[15]=e[15]+s[15]*i,t},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]},equals:function(t,e){var s=Zi,i=t[0],r=t[1],n=t[2],o=t[3],a=t[4],h=t[5],c=t[6],l=t[7],d=t[8],u=t[9],p=t[10],f=t[11],m=t[12],g=t[13],A=t[14],y=t[15],b=e[0],v=e[1],S=e[2],w=e[3],E=e[4],I=e[5],T=e[6],k=e[7],_=e[8],C=e[9],R=e[10],D=e[11],L=e[12],x=e[13],P=e[14],B=e[15];return Math.abs(i-b)<=zi[s(448)]*Math.max(1,Math[s(450)](i),Math.abs(b))&&Math[s(450)](r-v)<=zi[s(448)]*Math[s(431)](1,Math[s(450)](r),Math[s(450)](v))&&Math[s(450)](n-S)<=zi[s(448)]*Math[s(431)](1,Math[s(450)](n),Math[s(450)](S))&&Math[s(450)](o-w)<=zi[s(448)]*Math[s(431)](1,Math[s(450)](o),Math[s(450)](w))&&Math.abs(a-E)<=zi[s(448)]*Math[s(431)](1,Math.abs(a),Math[s(450)](E))&&Math[s(450)](h-I)<=zi[s(448)]*Math[s(431)](1,Math[s(450)](h),Math.abs(I))&&Math[s(450)](c-T)<=zi[s(448)]*Math.max(1,Math[s(450)](c),Math[s(450)](T))&&Math[s(450)](l-k)<=zi[s(448)]*Math.max(1,Math[s(450)](l),Math[s(450)](k))&&Math[s(450)](d-_)<=zi[s(448)]*Math[s(431)](1,Math[s(450)](d),Math.abs(_))&&Math[s(450)](u-C)<=Oi*Math[s(431)](1,Math[s(450)](u),Math[s(450)](C))&&Math[s(450)](p-R)<=zi[s(448)]*Math.max(1,Math[s(450)](p),Math[s(450)](R))&&Math[s(450)](f-D)<=zi[s(448)]*Math[s(431)](1,Math[s(450)](f),Math[s(450)](D))&&Math.abs(m-L)<=zi[s(448)]*Math.max(1,Math[s(450)](m),Math[s(450)](L))&&Math[s(450)](g-x)<=zi[s(448)]*Math.max(1,Math[s(450)](g),Math[s(450)](x))&&Math[s(450)](A-P)<=zi[s(448)]*Math[s(431)](1,Math[s(450)](A),Math.abs(P))&&Math[s(450)](y-B)<=zi[s(448)]*Math.max(1,Math.abs(y),Math[s(450)](B))},mul:er,sub:sr});function rr(){var t=new(zi[dr(339)])(3);return Ni!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function nr(t){var e=t[0],s=t[1],i=t[2];return Math.hypot(e,s,i)}function or(t,e,s){var i=new(zi[dr(339)])(3);return i[0]=t,i[1]=e,i[2]=s,i}function ar(t,e,s){return t[0]=e[0]-s[0],t[1]=e[1]-s[1],t[2]=e[2]-s[2],t}function hr(t,e,s){return t[0]=e[0]*s[0],t[1]=e[1]*s[1],t[2]=e[2]*s[2],t}function cr(t,e,s){return t[0]=e[0]/s[0],t[1]=e[1]/s[1],t[2]=e[2]/s[2],t}function lr(){var t=["sqrt","floor","sin","RANDOM","11715040gHHOAq","cos","8832348AFULCk","round","EPSILON","217962pEVAQC","vec3(","52gzdTZj","hypot","4203344SOErIq","2226320JgDsWQ","445504VsCITT","min","acos","length","56dljmmE","abs","ceil","2tsTfqn","max","168495mTSaDk","ARRAY_TYPE"];return(lr=function(){return t})()}function dr(t,e){var s=lr();return(dr=function(t,e){return s[t-=318]})(t,e)}function ur(t,e){var s=dr,i=e[0]-t[0],r=e[1]-t[1],n=e[2]-t[2];return Math[s(326)](i,r,n)}function pr(t,e){var s=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return s*s+i*i+r*r}function fr(t){var e=t[0],s=t[1],i=t[2];return e*e+s*s+i*i}function mr(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}!function(t,e){for(var s=dr,i=t();;)try{if(766765===parseInt(s(336))/1*(-parseInt(s(329))/2)+-parseInt(s(338))/3*(parseInt(s(325))/4)+-parseInt(s(328))/5+-parseInt(s(323))/6*(parseInt(s(333))/7)+parseInt(s(327))/8+parseInt(s(320))/9+parseInt(s(318))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(lr);var gr,Ar,yr,br=ar,vr=hr,Sr=cr,wr=ur,Er=pr,Ir=nr,Tr=fr,kr=(gr=rr(),function(t,e,s,i,r,n){var o,a,h=dr;for(!e&&(e=3),!s&&(s=0),a=i?Math[h(330)](i*e+s,t[h(332)]):t[h(332)],o=s;o<a;o+=e)gr[0]=t[o],gr[1]=t[o+1],gr[2]=t[o+2],r(gr,gr,n),t[o]=gr[0],t[o+1]=gr[1],t[o+2]=gr[2];return t}),_r=Object.freeze({__proto__:null,create:rr,clone:function(t){var e=new(zi[dr(339)])(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},length:nr,fromValues:or,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},set:function(t,e,s,i){return t[0]=e,t[1]=s,t[2]=i,t},add:function(t,e,s){return t[0]=e[0]+s[0],t[1]=e[1]+s[1],t[2]=e[2]+s[2],t},subtract:ar,multiply:hr,divide:cr,ceil:function(t,e){var s=dr;return t[0]=Math.ceil(e[0]),t[1]=Math[s(335)](e[1]),t[2]=Math.ceil(e[2]),t},floor:function(t,e){var s=dr;return t[0]=Math[s(341)](e[0]),t[1]=Math.floor(e[1]),t[2]=Math[s(341)](e[2]),t},min:function(t,e,s){var i=dr;return t[0]=Math[i(330)](e[0],s[0]),t[1]=Math[i(330)](e[1],s[1]),t[2]=Math[i(330)](e[2],s[2]),t},max:function(t,e,s){var i=dr;return t[0]=Math.max(e[0],s[0]),t[1]=Math[i(337)](e[1],s[1]),t[2]=Math[i(337)](e[2],s[2]),t},round:function(t,e){var s=dr;return t[0]=Math[s(321)](e[0]),t[1]=Math[s(321)](e[1]),t[2]=Math[s(321)](e[2]),t},scale:function(t,e,s){return t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s,t},scaleAndAdd:function(t,e,s,i){return t[0]=e[0]+s[0]*i,t[1]=e[1]+s[1]*i,t[2]=e[2]+s[2]*i,t},distance:ur,squaredDistance:pr,squaredLength:fr,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t},normalize:function(t,e){var s=dr,i=e[0],r=e[1],n=e[2],o=i*i+r*r+n*n;return o>0&&(o=1/Math[s(340)](o)),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o,t},dot:mr,cross:function(t,e,s){var i=e[0],r=e[1],n=e[2],o=s[0],a=s[1],h=s[2];return t[0]=r*h-n*a,t[1]=n*o-i*h,t[2]=i*a-r*o,t},lerp:function(t,e,s,i){var r=e[0],n=e[1],o=e[2];return t[0]=r+i*(s[0]-r),t[1]=n+i*(s[1]-n),t[2]=o+i*(s[2]-o),t},hermite:function(t,e,s,i,r,n){var o=n*n,a=o*(2*n-3)+1,h=o*(n-2)+n,c=o*(n-1),l=o*(3-2*n);return t[0]=e[0]*a+s[0]*h+i[0]*c+r[0]*l,t[1]=e[1]*a+s[1]*h+i[1]*c+r[1]*l,t[2]=e[2]*a+s[2]*h+i[2]*c+r[2]*l,t},bezier:function(t,e,s,i,r,n){var o=1-n,a=o*o,h=n*n,c=a*o,l=3*n*a,d=3*h*o,u=h*n;return t[0]=e[0]*c+s[0]*l+i[0]*d+r[0]*u,t[1]=e[1]*c+s[1]*l+i[1]*d+r[1]*u,t[2]=e[2]*c+s[2]*l+i[2]*d+r[2]*u,t},random:function(t,e){var s=dr;e=e||1;var i=2*ji()*Math.PI,r=2*zi[s(343)]()-1,n=Math[s(340)](1-r*r)*e;return t[0]=Math[s(319)](i)*n,t[1]=Math[s(342)](i)*n,t[2]=r*e,t},transformMat4:function(t,e,s){var i=e[0],r=e[1],n=e[2],o=s[3]*i+s[7]*r+s[11]*n+s[15];return o=o||1,t[0]=(s[0]*i+s[4]*r+s[8]*n+s[12])/o,t[1]=(s[1]*i+s[5]*r+s[9]*n+s[13])/o,t[2]=(s[2]*i+s[6]*r+s[10]*n+s[14])/o,t},transformMat3:function(t,e,s){var i=e[0],r=e[1],n=e[2];return t[0]=i*s[0]+r*s[3]+n*s[6],t[1]=i*s[1]+r*s[4]+n*s[7],t[2]=i*s[2]+r*s[5]+n*s[8],t},transformQuat:function(t,e,s){var i=s[0],r=s[1],n=s[2],o=s[3],a=e[0],h=e[1],c=e[2],l=r*c-n*h,d=n*a-i*c,u=i*h-r*a,p=r*u-n*d,f=n*l-i*u,m=i*d-r*l,g=2*o;return l*=g,d*=g,u*=g,p*=2,f*=2,m*=2,t[0]=a+l+p,t[1]=h+d+f,t[2]=c+u+m,t},rotateX:function(t,e,s,i){var r=dr,n=[],o=[];return n[0]=e[0]-s[0],n[1]=e[1]-s[1],n[2]=e[2]-s[2],o[0]=n[0],o[1]=n[1]*Math.cos(i)-n[2]*Math[r(342)](i),o[2]=n[1]*Math[r(342)](i)+n[2]*Math.cos(i),t[0]=o[0]+s[0],t[1]=o[1]+s[1],t[2]=o[2]+s[2],t},rotateY:function(t,e,s,i){var r=dr,n=[],o=[];return n[0]=e[0]-s[0],n[1]=e[1]-s[1],n[2]=e[2]-s[2],o[0]=n[2]*Math[r(342)](i)+n[0]*Math[r(319)](i),o[1]=n[1],o[2]=n[2]*Math.cos(i)-n[0]*Math[r(342)](i),t[0]=o[0]+s[0],t[1]=o[1]+s[1],t[2]=o[2]+s[2],t},rotateZ:function(t,e,s,i){var r=dr,n=[],o=[];return n[0]=e[0]-s[0],n[1]=e[1]-s[1],n[2]=e[2]-s[2],o[0]=n[0]*Math[r(319)](i)-n[1]*Math.sin(i),o[1]=n[0]*Math[r(342)](i)+n[1]*Math.cos(i),o[2]=n[2],t[0]=o[0]+s[0],t[1]=o[1]+s[1],t[2]=o[2]+s[2],t},angle:function(t,e){var s=dr,i=t[0],r=t[1],n=t[2],o=e[0],a=e[1],h=e[2],c=Math[s(340)](i*i+r*r+n*n)*Math[s(340)](o*o+a*a+h*h),l=c&&mr(t,e)/c;return Math[s(331)](Math[s(330)](Math[s(337)](l,-1),1))},zero:function(t){return t[0]=0,t[1]=0,t[2]=0,t},str:function(t){return dr(324)+t[0]+", "+t[1]+", "+t[2]+")"},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]},equals:function(t,e){var s=dr,i=t[0],r=t[1],n=t[2],o=e[0],a=e[1],h=e[2];return Math[s(334)](i-o)<=zi[s(322)]*Math.max(1,Math[s(334)](i),Math.abs(o))&&Math.abs(r-a)<=Oi*Math[s(337)](1,Math[s(334)](r),Math[s(334)](a))&&Math[s(334)](n-h)<=Oi*Math[s(337)](1,Math[s(334)](n),Math[s(334)](h))},sub:br,mul:vr,div:Sr,dist:wr,sqrDist:Er,len:Ir,sqrLen:Tr,forEach:kr});function Cr(t,e){var s=Rr();return(Cr=function(t,e){return s[t-=321]})(t,e)}function Rr(){var t=["round","1041174VDgzDo","16cQTDzy","114NwDiDW","16529612yzdlPI","21348pxAUZp","60dAlndv","1874126xddOMM","5976935BLgxSk","hypot","vec4(","max","RANDOM","ceil","min","floor","181517Rforsk","10xOgpFW","717894QzFxSk","sqrt","abs","length","ARRAY_TYPE","EPSILON"];return(Rr=function(){return t})()}function Dr(){var t=["624305PdfXDU","17790120yNYLzT","178GEiMsZ","36xxmsIx","6875225IXopyb","4574580AJdvjT","35248TrkGec","56565pfCEIQ","2274280vcfRbi","9FCbays"];return(Dr=function(){return t})()}function Lr(t,e){var s=Dr();return(Lr=function(t,e){return s[t-=179]})(t,e)}function xr(t,e){const s=Pr();return(xr=function(t,e){return s[t-=161]})(t,e)}function Pr(){const t=["UNSIGNED_SHORT","ARRAY_BUFFER","DEPTH_BUFFER_BIT","338052AIQBiu","bindBuffer","vertexPosition","texPosition","deleteBuffer","COLOR_BUFFER_BIT","TEXTURE1","TRIANGLES","deleteTexture","linkProgram","pixelStorei","LUMINANCE","uProjectionMatrix","UNSIGNED_BYTE","activeTexture","texSubImage2D","attachShader","width","_createTexture","rgbatexture","bufferData","4mhdfWj","_vtexture","createShader","getUniformLocation","getProgramInfoLog","createProgram","_programInfo","RGBA","_loadShader","CLAMP_TO_EDGE","SRC_ALPHA","BLEND","VERTEX_SHADER","13210840FzTSeG","TEXTURE2","getAttribLocation","_initShaderProgram","_initBuffers","ELEMENT_ARRAY_BUFFER","TEXTURE_2D","TEXTURE0","shaderSource","_drawScene","drawDom","1984551sTESXq","slice","992054YQWvTW","aTexturePosition","COMPILE_STATUS","attribLocations","uniformLocations","clearColor","createTexture","render","indices","texImage2D","positions","compileShader","_rgbatexture","utexture","height","226246lRToxm","ONE_MINUS_SRC_ALPHA","uViewMatrix","3741111vwuILi","8kQeQzf","log","UNPACK_ALIGNMENT","yTexture","texParameteri","FLOAT","TEXTURE_WRAP_S","_clear","concat","viewport","blendFunc","312826vaFAYS","deleteShader","isyuv","isDomInited","getShaderInfoLog","bindTexture","_buffers","Unable to initialize the shader program: ","10LoIbHE","LINEAR","TEXTURE_MAG_FILTER","uModelMatrix","isInited","deleteProgram","vertexAttribPointer","TEXTURE_WRAP_T","FRAGMENT_SHADER","program","uniform1i","_utexture","texturePosition","vTexture","TEXTURE_MIN_FILTER","_ytexture","renderYUV","rgbaTexture","position","An error occurred compiling the shaders: ","destroy","createBuffer"];return(Pr=function(){return t})()}!function(t,e){for(var s=Cr,i=t();;)try{if(637833===parseInt(s(330))/1+-parseInt(s(336))/2+-parseInt(s(334))/3*(parseInt(s(335))/4)+-parseInt(s(337))/5+parseInt(s(332))/6*(parseInt(s(321))/7)+parseInt(s(331))/8*(-parseInt(s(323))/9)+-parseInt(s(322))/10*(-parseInt(s(333))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Rr),yr=new(zi[(Ar=Cr)(327)])(4),zi[Ar(327)]!=Float32Array&&(yr[0]=0,yr[1]=0,yr[2]=0,yr[3]=0),function(t,e){for(var s=Lr,i=t();;)try{if(908286===parseInt(s(187))/1+parseInt(s(183))/2*(parseInt(s(188))/3)+parseInt(s(184))/4*(-parseInt(s(181))/5)+-parseInt(s(186))/6+-parseInt(s(185))/7+parseInt(s(179))/8+-parseInt(s(180))/9*(-parseInt(s(182))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Dr);const Br=xr;!function(t,e){const s=xr,i=t();for(;;)try{if(393177===parseInt(s(215))/1+parseInt(s(230))/2+-parseInt(s(198))/3*(-parseInt(s(174))/4)+parseInt(s(238))/5*(parseInt(s(263))/6)+parseInt(s(200))/7*(parseInt(s(219))/8)+parseInt(s(218))/9+-parseInt(s(187))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Pr);class Mr{constructor(t,e){const s=xr;this.gl=t,this[s(242)]=!1,this.isDomInited=!1,e&&this.gl[s(163)](this.gl[s(221)],1);const i=this._initShaderProgram();this[s(180)]={program:i,attribLocations:{vertexPosition:t.getAttribLocation(i,"aVertexPosition"),texturePosition:t[s(189)](i,s(201))},uniformLocations:{projectionMatrix:t[s(177)](i,s(165)),modelMatrix:t[s(177)](i,s(241)),viewMatrix:t[s(177)](i,s(217)),rgbatexture:t.getUniformLocation(i,s(255)),ytexture:t[s(177)](i,s(222)),utexture:t[s(177)](i,"uTexture"),vtexture:t[s(177)](i,s(251)),isyuv:t[s(177)](i,s(232))}},this[s(236)]=this[s(191)](),this[s(212)]=this._createTexture(),this[s(253)]=this[s(171)](),this[s(249)]=this[s(171)](),this[s(175)]=this[s(171)]()}[Br(258)](){const t=Br;this.gl[t(243)](this[t(180)].program),this.gl.deleteBuffer(this[t(236)][t(256)]),this.gl[t(267)](this[t(236)][t(266)]),this.gl[t(267)](this._buffers[t(208)]),this.gl.deleteTexture(this[t(212)]),this.gl[t(161)](this._ytexture),this.gl[t(161)](this._utexture),this.gl.deleteTexture(this[t(175)]),this[t(180)]=null,this._buffers=null,this._rgbatexture=null,this[t(253)]=null,this[t(249)]=null,this[t(175)]=null,this.gl=null,this[t(242)]=!1,this[t(233)]=!1}[Br(190)](){const t=Br,e=this[t(182)](this.gl[t(186)],"\n attribute vec4 aVertexPosition;\n attribute vec2 aTexturePosition;\n varying lowp vec2 vTexturePosition;\n void main(void) {\n gl_Position = aVertexPosition;\n vTexturePosition = aTexturePosition;\n }\n "),s=this._loadShader(this.gl[t(246)],"\n precision highp float;\n varying highp vec2 vTexturePosition;\n uniform int isyuv;\n uniform sampler2D rgbaTexture;\n uniform sampler2D yTexture;\n uniform sampler2D uTexture;\n uniform sampler2D vTexture;\n\n const mat4 YUV2RGB = mat4( 1.1643828125, 0, 1.59602734375, -.87078515625,\n 1.1643828125, -.39176171875, -.81296875, .52959375,\n 1.1643828125, 2.017234375, 0, -1.081390625,\n 0, 0, 0, 1);\n\n\n void main(void) {\n\n if (isyuv>0) {\n\n highp float y = texture2D(yTexture, vTexturePosition).r;\n highp float u = texture2D(uTexture, vTexturePosition).r;\n highp float v = texture2D(vTexture, vTexturePosition).r;\n gl_FragColor = vec4(y, u, v, 1) * YUV2RGB;\n\n } else {\n gl_FragColor = texture2D(rgbaTexture, vTexturePosition);\n }\n }\n "),i=this.gl[t(179)]();return this.gl[t(169)](i,e),this.gl[t(169)](i,s),this.gl[t(162)](i),this.gl.getProgramParameter(i,this.gl.LINK_STATUS)?i:(console[t(220)](t(237)+this.gl[t(178)](i)),null)}[Br(182)](t,e){const s=Br,i=this.gl,r=i[s(176)](t);return i[s(195)](r,e),i[s(211)](r),i.getShaderParameter(r,i[s(202)])?r:(console[s(220)](s(257)+i[s(234)](r)),i[s(231)](r),null)}[Br(191)](){const t=Br,e=this.gl,s=e[t(259)]();e.bindBuffer(e[t(261)],s);const i=[-1,-1,1,-1,1,1,-1,1];e.bufferData(e[t(261)],new Float32Array(i),e.STATIC_DRAW);var r=[];r=r[t(227)]([0,1],[1,1],[1,0],[0,0]);const n=e[t(259)]();e[t(264)](e[t(261)],n),e.bufferData(e.ARRAY_BUFFER,new Float32Array(r),e.STATIC_DRAW);const o=e.createBuffer();e[t(264)](e[t(192)],o);return e[t(173)](e.ELEMENT_ARRAY_BUFFER,new Uint16Array([0,1,2,0,2,3]),e.STATIC_DRAW),{positions:i,position:s,texPosition:n,indices:o}}[Br(171)](){const t=Br;let e=this.gl[t(206)]();return this.gl[t(235)](this.gl[t(193)],e),this.gl[t(223)](this.gl[t(193)],this.gl[t(240)],this.gl[t(239)]),this.gl[t(223)](this.gl.TEXTURE_2D,this.gl[t(252)],this.gl.LINEAR),this.gl[t(223)](this.gl[t(193)],this.gl[t(225)],this.gl[t(183)]),this.gl[t(223)](this.gl[t(193)],this.gl[t(245)],this.gl[t(183)]),e}[Br(196)](t,e,s){const i=Br;this.gl[i(228)](0,0,t,e),this.gl.enable(this.gl[i(185)]),this.gl[i(229)](this.gl[i(184)],this.gl[i(216)]),this.gl[i(264)](this.gl.ARRAY_BUFFER,this[i(236)][i(256)]),this.gl[i(173)](this.gl.ARRAY_BUFFER,new Float32Array(this[i(236)].positions),this.gl.STATIC_DRAW),this.gl.vertexAttribPointer(this[i(180)][i(203)].vertexPosition,2,this.gl[i(224)],!1,0,0),this.gl.enableVertexAttribArray(this[i(180)][i(203)][i(265)]),this.gl[i(264)](this.gl[i(261)],this[i(236)][i(266)]),this.gl[i(244)](this._programInfo[i(203)][i(250)],2,this.gl[i(224)],!1,0,0),this.gl.enableVertexAttribArray(this._programInfo[i(203)][i(250)]),this.gl.bindBuffer(this.gl[i(192)],this[i(236)][i(208)]);s?(this.gl.activeTexture(this.gl[i(194)]+3),this.gl[i(235)](this.gl.TEXTURE_2D,this._ytexture),this.gl.activeTexture(this.gl.TEXTURE0+4),this.gl[i(235)](this.gl[i(193)],this[i(249)]),this.gl[i(167)](this.gl[i(194)]+5),this.gl[i(235)](this.gl[i(193)],this[i(175)])):(this.gl.activeTexture(this.gl[i(194)]+2),this.gl[i(235)](this.gl[i(193)],this[i(212)])),this.gl.useProgram(this[i(180)][i(247)]),this.gl[i(248)](this._programInfo.uniformLocations[i(172)],2),this.gl[i(248)](this[i(180)][i(204)].ytexture,3),this.gl[i(248)](this._programInfo.uniformLocations[i(213)],4),this.gl[i(248)](this[i(180)][i(204)].vtexture,5),this.gl[i(248)](this[i(180)][i(204)][i(232)],s?1:0),this.gl.drawElements(this.gl[i(270)],6,this.gl[i(260)],0)}_calRect(t,e,s,i,r,n){let o=2*t/r-1,a=2*(n-e-i)/n-1,h=2*(t+s)/r-1,c=2*(n-e)/n-1;return[o,a,h,a,h,c,o,c]}[Br(226)](){const t=Br;this.gl[t(205)](0,0,0,1),this.gl.clearDepth(1),this.gl.clear(this.gl[t(268)]|this.gl[t(262)])}[Br(207)](t,e,s,i,r){const n=Br,o=this.gl;this[n(226)](),this[n(242)]?(o[n(167)](o[n(194)]),o[n(235)](o[n(193)],this[n(253)]),o[n(168)](o[n(193)],0,0,0,t,e,o[n(164)],o[n(166)],s),o[n(167)](o.TEXTURE1),o[n(235)](o.TEXTURE_2D,this[n(249)]),o.texSubImage2D(o[n(193)],0,0,0,t/2,e/2,o[n(164)],o.UNSIGNED_BYTE,i),o[n(167)](o.TEXTURE2),o[n(235)](o[n(193)],this._vtexture),o.texSubImage2D(o[n(193)],0,0,0,t/2,e/2,o[n(164)],o[n(166)],r),this[n(236)][n(210)]=[-1,-1,1,-1,1,1,-1,1],this[n(196)](t,e,!0)):(this[n(242)]=!0,o[n(167)](o[n(194)]),o[n(235)](o.TEXTURE_2D,this[n(253)]),o[n(209)](o[n(193)],0,o[n(164)],t,e,0,o.LUMINANCE,o[n(166)],s),o[n(167)](o[n(269)]),o[n(235)](o[n(193)],this[n(249)]),o[n(209)](o[n(193)],0,o[n(164)],t/2,e/2,0,o[n(164)],o[n(166)],i),o[n(167)](o[n(188)]),o[n(235)](o[n(193)],this._vtexture),o[n(209)](o[n(193)],0,o[n(164)],t/2,e/2,0,o[n(164)],o.UNSIGNED_BYTE,r),this[n(236)].positions=[-1,-1,1,-1,1,1,-1,1],this[n(196)](t,e,!0))}[Br(254)](t,e,s){const i=Br;let r=s[i(199)](0,t*e),n=s.slice(t*e,t*e*5/4),o=s[i(199)](t*e*5/4,t*e*3/2);this.render(t,e,r,n,o)}[Br(197)](t,e,s,i,r){const n=Br,o=this.gl;o.activeTexture(o[n(194)]),o[n(235)](o[n(193)],this._rgbatexture),this.isDomInited?o[n(168)](o[n(193)],0,0,0,o[n(181)],o[n(166)],r):(o[n(209)](o.TEXTURE_2D,0,o[n(181)],o[n(181)],o[n(166)],r),this.isDomInited=!0),this[n(236)][n(210)]=this._calRect(s,i,r[n(170)],r[n(214)],t,e),this[n(196)](t,e,!1)}}const Fr=Ur;function Or(){const t=["slice","30ynXSnN","group0","INDEX","createShaderModule","rgbaTexture","displayHeight","hasInited","GPUTextureUsage","getCurrentTexture","GPUBufferUsage","positionBuffer","\n\n @binding(0) @group(0) var<uniform> uModelMatrix : mat4x4<f32>;\n @binding(1) @group(0) var<uniform> uViewMatrix : mat4x4<f32>;\n @binding(2) @group(0) var<uniform> uProjectionMatrix : mat4x4<f32>;\n\n struct VertexOutput {\n @builtin(position) Position : vec4<f32>,\n @location(0) vTexturePosition : vec2<f32>,\n }\n\n @vertex\n fn main(\n @location(0) aVertexPosition : vec4<f32>,\n @location(1) aTexturePosition : vec2<f32>\n ) -> VertexOutput {\n var output : VertexOutput;\n var tmppos : vec4<f32> = uProjectionMatrix * uViewMatrix * uModelMatrix * aVertexPosition;\n output.Position = vec4<f32>(tmppos.x, tmppos.y, (tmppos.z+1.)/2., tmppos.w); // webgl z [-1, 1], webgpu z [0, 1], 这里z做下调整 z-webgpu = (z-webgl+1)/2\n output.vTexturePosition = aTexturePosition;\n return output;\n }\n\n ","532158IIhyeS","8450706EretvF","createBindGroup","copyExternalImageToTexture","linear","store","COPY_DST","create","RENDER_ATTACHMENT","matrixGroupInfo","less","DOM","UNIFORM","buffers","r8unorm","writeTexture","createRenderPipelineAsync","pixelTypeBuffer","470441dvseoG","uTexture","textureGroupInfo","createBuffer","122744mcBxEj","YUV_NV12","106211igGpGj","12vnDdGW","_initTextureGroupInfo","main","displayWidth","identity","2586412OplAeQ","_drawScene","createCommandEncoder","clear","45bbevJc","ortho","beginRenderPass","renderYUV_NV12","isDestroyed","indexBuffer","VERTEX","fromValues","setPipeline","setVertexBuffer","_initPipeline","depth24plus","device","_initMatrixGroupInfo","yTexture","auto","finish","group1","float32x3","createSampler","232fmSUKd","depthTexture","destroy","writeBuffer","triangle-list","getBindGroupLayout","lookAt","setIndexBuffer","1962117FywpLE","drawIndexed","pipeline","queue","createTexture","\n @group(1) @binding(0) var mySampler: sampler;\n @group(1) @binding(1) var<uniform> pixelType: i32;\n @group(1) @binding(2) var yTexture: texture_2d<f32>;\n @group(1) @binding(3) var uTexture: texture_2d<f32>;\n @group(1) @binding(4) var vTexture: texture_2d<f32>;\n @group(1) @binding(5) var uvTexture: texture_2d<f32>;\n @group(1) @binding(6) var rgbaTexture: texture_2d<f32>;\n\n const YUV2RGB : mat4x4<f32> = mat4x4<f32>( 1.1643828125, 0, 1.59602734375, -.87078515625,\n 1.1643828125, -.39176171875, -.81296875, .52959375,\n 1.1643828125, 2.017234375, 0, -1.081390625,\n 0, 0, 0, 1);\n\n @fragment\n fn main(\n @location(0) vTexturePosition: vec2<f32>\n ) -> @location(0) vec4<f32> {\n if(pixelType == 1){\n var y : f32= textureSample(yTexture, mySampler, vTexturePosition).r;\n var u : f32 = textureSample(uTexture, mySampler, vTexturePosition).r;\n var v : f32 = textureSample(vTexture, mySampler, vTexturePosition).r;\n\n return vec4<f32>(y, u, v, 1.0)*YUV2RGB;\n } else if (pixelType == 2) {\n\n var y : f32= textureSample(yTexture, mySampler, vTexturePosition).r;\n var u : f32 = textureSample(uvTexture, mySampler, vTexturePosition).r;\n var v : f32 = textureSample(uvTexture, mySampler, vTexturePosition).g;\n\n return vec4<f32>(y, u, v, 1.0)*YUV2RGB;\n } else {\n\n return textureSample(rgbaTexture, mySampler, vTexturePosition);\n }\n\n }\n\n ","texpositionBuffer","setBindGroup","gpu","byteLength","uint16","TEXTURE_BINDING","vTexture","rg8unorm","createView","format","then"];return(Or=function(){return t})()}function Ur(t,e){const s=Or();return(Ur=function(t,e){return s[t-=153]})(t,e)}!function(t,e){const s=Ur,i=t();for(;;)try{if(761478===-parseInt(s(187))/1+parseInt(s(199))/2+-parseInt(s(194))/3*(-parseInt(s(191))/4)+parseInt(s(203))/5*(parseInt(s(169))/6)+-parseInt(s(193))/7*(-parseInt(s(223))/8)+-parseInt(s(231))/9*(parseInt(s(157))/10)+-parseInt(s(170))/11)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Or);const Nr={YUV_I420:1,YUV_NV12:2,RGBA:3,DOM:4};class jr{constructor(t){const e=Ur;this[e(239)]=t,this.pipeline=null,this[e(178)]=null,this.depthTexture=null,this[e(189)]=null,this[e(163)]=!1,this[e(182)]=this._initBuffer(),this[e(207)]=!1,this[e(213)]()[e(155)]((t=>{const s=e;this[s(207)]||(this[s(233)]=t,this[s(178)]=this._initMatrixGroupInfo(),this[s(178)]&&(this[s(163)]=!0))}))}[Fr(225)](){const t=Fr;this[t(207)]=!1,this.gpu&&(this.gpu[t(215)].destroy(),this[t(239)]=null),this[t(163)]=!1,this[t(233)]=null,this.matrixGroupInfo=null,this[t(224)]=null,this.textureGroupInfo=null}_initBuffer(){const t=Fr,e=this[t(239)][t(215)],s=new Float32Array([-1,-1,-1,1,-1,-1,1,1,-1,-1,1,-1]),i=e[t(190)]({size:s[t(240)],usage:window[t(166)][t(209)]|window[t(166)][t(175)]});e[t(234)][t(226)](i,0,s);const r=new Float32Array([0,1,1,1,1,0,0,0]),n=e[t(190)]({size:r[t(240)],usage:window[t(166)][t(209)]|window.GPUBufferUsage.COPY_DST});e[t(234)][t(226)](n,0,r);const o=new Uint16Array([0,1,2,0,2,3]),a=e[t(190)]({size:o[t(240)],usage:window[t(166)][t(159)]|window.GPUBufferUsage[t(175)]});return e[t(234)][t(226)](a,0,o),{positionBuffer:i,texpositionBuffer:n,indexBuffer:a}}[Fr(213)](){return new Promise(((t,e)=>{const s=Ur,i=this[s(239)].device,r=this.gpu[s(154)],n=s(168),o=s(236),a={layout:s(218),vertex:{module:i.createShaderModule({code:n}),entryPoint:s(196),buffers:[{arrayStride:12,attributes:[{shaderLocation:0,offset:0,format:s(221)}]},{arrayStride:8,attributes:[{shaderLocation:1,offset:0,format:"float32x2"}]}]},primitive:{topology:s(227)},fragment:{module:i[s(160)]({code:o}),entryPoint:s(196),targets:[{format:r}]},depthStencil:{depthWriteEnabled:!0,depthCompare:s(179),format:"depth24plus"}};i[s(185)](a)[s(155)]((e=>{t(e)})).catch((t=>{e(t)}))}))}[Fr(216)](){const t=Fr;if(!this[t(239)])return null;const e=this[t(239)][t(215)],s=this[t(233)],i=ir[t(176)]();ir[t(204)](i,-1,1,-1,1,.1,100);const r=Gi();ir[t(198)](r);const n=ir[t(176)]();ir[t(229)](n,or(0,0,0),_r[t(210)](0,0,-1),or(0,1,0));const o=e.createBuffer({size:64,usage:window[t(166)].UNIFORM|window.GPUBufferUsage[t(175)]});e[t(234)][t(226)](o,0,r);const a=e[t(190)]({size:64,usage:window.GPUBufferUsage.UNIFORM|window[t(166)][t(175)]});e[t(234)][t(226)](a,0,n);const h=e[t(190)]({size:64,usage:window[t(166)][t(181)]|window[t(166)].COPY_DST});e.queue[t(226)](h,0,i);return{modelMatrixBuffer:o,viewMatrixBuffer:a,projectMatrixBuffer:h,group:e.createBindGroup({label:t(158),layout:s[t(228)](0),entries:[{binding:0,resource:{buffer:o}},{binding:1,resource:{buffer:a}},{binding:2,resource:{buffer:h}}]})}}[Fr(195)](t,e){const s=Fr,i=this[s(239)][s(215)],r=this.pipeline,n=i[s(235)]({size:[t,e],format:s(183),usage:window[s(164)][s(242)]|window[s(164)][s(175)]|window[s(164)][s(177)]}),o=i[s(235)]({size:[t/2,e/2],format:s(183),usage:window[s(164)].TEXTURE_BINDING|window.GPUTextureUsage[s(175)]|window[s(164)][s(177)]}),a=i.createTexture({size:[t/2,e/2],format:"r8unorm",usage:window[s(164)][s(242)]|window[s(164)][s(175)]|window[s(164)][s(177)]}),h=i[s(235)]({size:[t/2,e/2],format:s(244),usage:window[s(164)][s(242)]|window.GPUTextureUsage[s(175)]|window[s(164)][s(177)]}),c=i[s(235)]({size:[t,e],format:"rgba8unorm",usage:window.GPUTextureUsage[s(242)]|window[s(164)].COPY_DST|window[s(164)].RENDER_ATTACHMENT}),l=i[s(190)]({size:4,usage:window[s(166)][s(181)]|window[s(166)].COPY_DST}),d=i[s(222)]({magFilter:s(173),minFilter:"linear"}),u=i[s(171)]({label:s(220),layout:r[s(228)](1),entries:[{binding:0,resource:d},{binding:1,resource:{buffer:l}},{binding:2,resource:n[s(153)]()},{binding:3,resource:o[s(153)]()},{binding:4,resource:a[s(153)]()},{binding:5,resource:h[s(153)]()},{binding:6,resource:c.createView()}]});return{yTexture:n,uTexture:o,vTexture:a,uvTexture:h,rgbaTexture:c,pixelTypeBuffer:l,group:u}}[Fr(200)](){const t=Fr,e=this[t(239)].device,s=this.gpu.context,i=e[t(201)](),r={colorAttachments:[{view:s[t(165)]().createView(),clearValue:{r:0,g:0,b:0,a:0},loadOp:t(202),storeOp:"store"}],depthStencilAttachment:{view:this[t(224)][t(153)](),depthClearValue:1,depthLoadOp:"clear",depthStoreOp:t(174)}},n=i[t(205)](r);n[t(211)](this.pipeline),n[t(238)](0,this[t(178)].group),n[t(238)](1,this[t(189)].group),n.setVertexBuffer(0,this[t(182)][t(167)]),n[t(212)](1,this.buffers[t(237)]),n[t(230)](this.buffers[t(208)],t(241)),n[t(232)](6),n.end(),e.queue.submit([i[t(219)]()])}renderYUV(t,e,s){const i=Fr;if(!this[i(163)])return;let r=s[i(156)](0,t*e),n=s.slice(t*e,t*e*5/4),o=s.slice(t*e*5/4,t*e*3/2);const a=this.gpu[i(215)];!this[i(224)]&&(this[i(224)]=this[i(239)][i(215)][i(235)]({size:[t,e],format:i(214),usage:window.GPUTextureUsage[i(177)]})),!this.textureGroupInfo&&(this[i(189)]=this[i(195)](t,e)),a[i(234)][i(226)](this[i(189)][i(186)],0,new Uint32Array([Nr.YUV_I420])),a[i(234)][i(184)]({texture:this[i(189)].yTexture},r,{bytesPerRow:t,rowsPerImage:e},[t,e]),a[i(234)].writeTexture({texture:this[i(189)][i(188)]},n,{bytesPerRow:t/2,rowsPerImage:e/2},[t/2,e/2]),a[i(234)].writeTexture({texture:this[i(189)][i(243)]},o,{bytesPerRow:t/2,rowsPerImage:e/2},[t/2,e/2]),this[i(200)]()}[Fr(206)](t,e,s){const i=Fr;if(!this[i(163)])return;const r=this[i(239)][i(215)];!this.depthTexture&&(this.depthTexture=this[i(239)].device[i(235)]({size:[t,e],format:"depth24plus",usage:window[i(164)].RENDER_ATTACHMENT})),!this[i(189)]&&(this.textureGroupInfo=this[i(195)](t,e));let n=s[i(156)](0,t*e),o=s[i(156)](t*e,t*e*3/2);r[i(234)][i(226)](this[i(189)].pixelTypeBuffer,0,new Uint32Array([Nr[i(192)]])),r[i(234)].writeTexture({texture:this[i(189)][i(217)]},n,{bytesPerRow:t,rowsPerImage:e},[t,e]),r.queue[i(184)]({texture:this[i(189)].uvTexture},o,{bytesPerRow:t,rowsPerImage:e/2},[t/2,e/2]),this[i(200)]()}render(t){const e=Fr;if(!this[e(163)])return;const s=this[e(239)].device,i=t[e(197)],r=t[e(162)];!this[e(224)]&&(this[e(224)]=this[e(239)][e(215)][e(235)]({size:[i,r],format:e(214),usage:window[e(164)][e(177)]})),!this[e(189)]&&(this.textureGroupInfo=this[e(195)](i,r)),s[e(234)].writeBuffer(this[e(189)][e(186)],0,new Uint32Array([Nr[e(180)]])),s[e(234)][e(172)]({source:t},{texture:this[e(189)][e(161)]},[i,r]),this[e(200)]()}[Fr(202)](){}}const Vr=Gr;function zr(){const t=["fontSize","setAttribute","lineWidth","removeChild","sqrt","px)","103288ZRJVzO","width","attachShadow","configList","rotate(","image","text","shadowRootDynamicDom","resize","right","scale(","objectFit","absolute","351704LXVUCy","shadowRoot","appendChild","getRenderType","145835xDqPfU","-webkit-touch-callout","top","-o-user-select","-moz-user-select","_resizeDomRatio","isResize","function","_resizeDomForCanvas","shadowRootRealDom","borderWidth","destroy","aspectRatio","84KQjVNt","opacity","atan2","fill","createElement","left","block","backgroundColor","position: absolute; top: 0; left: 0; width: 0; height: 0;display: none;","forEach","hidden","split"," rotateY(180deg)","open","scale","getVideoInfo","position","fillOpacity","none","update","rgba(0,0,0,0)","calc(100% - ","zIndex","padding","isFullResize","mirrorRotate","_opt","height","33ZZJGTe","children","overflow","line","bottom","push","vertical","TAG_NAME","floor","transform","rect","player","deg)","_updateDom","shadowRootInnerDom","img"," rotate(","length","2517848NUQYXd","-ms-user-select","display","getShowVideoRect","isDynamic","style","div","video","polygon","color","content","map","src","getControlHeight","borderColor","html","px 0","debugLog","4109157WijAzZ","createTextNode","visibility","resize()","-webkit-tap-highlight-color","index","isArray","innerHTML","join","clipPath","0 0","100%","canvas"," rotateX(180deg)","rotate","1953399loiBrQ","insertBefore","level","-webkit-text-size-adjust","list","calc(","607962CNrCVs"];return(zr=function(){return t})()}function Gr(t,e){const s=zr();return(Gr=function(t,e){return s[t-=168]})(t,e)}!function(t,e){const s=Gr,i=t();for(;;)try{if(270380===-parseInt(s(234))/1+-parseInt(s(214))/2+parseInt(s(279))/3*(parseInt(s(221))/4)+parseInt(s(238))/5*(-parseInt(s(251))/6)+parseInt(s(208))/7+parseInt(s(175))/8+parseInt(s(193))/9)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(zr);class Wr{constructor(t){const e=Gr;this[e(168)]=t,this[e(286)]="SingleWatermark",this[e(224)]=[],this[e(235)]=null,this[e(247)]=null,this[e(171)]=null,this[e(265)]=1,this[e(179)]=!1,this._initDom(),this[e(168)][e(192)](this[e(286)],"int")}[Vr(249)](){const t=Vr;this[t(224)]=[],this[t(171)]=null,this[t(179)]=!1,this.scale=1,this[t(235)]&&(this[t(168)].$container[t(218)](this[t(247)]),this.shadowRoot=null,this.shadowRootRealDom=null),this[t(168)].debugLog(this[t(286)],"destroy")}[Vr(229)](){const t=Vr;this.player[t(192)](this.TAG_NAME,t(196)),"default"===this[t(168)]._opt[t(250)]||Je()?this.player[t(237)]()===f[t(205)]?this[t(246)]():this[t(168)][t(237)]()===f[t(182)]&&this._resizeDomForVideo():this[t(243)]()}_initDom(){const t=Vr,e=this[t(168)].$container;let s=null;const i=document.createElement(t(181));i[t(216)](t(180),"pointer-events: none !important;display: block !important;"),s=typeof i[t(223)]===t(245)?i.attachShadow({mode:t(264)}):i[t(235)]?i[t(235)]:i;const r=document[t(255)](t(181));r.setAttribute(t(180),t(259)),s[t(236)](r);const n=e[t(280)],o=Math[t(287)](Math.random()*(n[t(174)]-1))+1;n[o]?e[t(209)](i,n[o]):e.appendChild(i),this[t(171)]=r,this[t(247)]=i,this[t(235)]=s}[Vr(270)](t){const e=Vr;this._removeDom();let s=[];Array[e(199)](t)?s=t:Bs(t)&&s[e(284)](t);let i=s[e(186)]((t=>Ss(t)));this.configList=i,this._updateDom()}_resizeDomForVideo(){const t=Vr,e=this[t(168)][t(266)]();if(!(e&&e[t(278)]>0&&e.width>0))return;let s=e[t(222)],i=e.height;const r=this[t(168)]._opt,n=this[t(168)][t(178)]();let o=n[t(278)],a=n[t(222)];const h=r.rotate;let c=(a-s)/2,l=(o-i)/2;(270===h||90===h)&&(s=e[t(278)],i=e.width);const d=a/s,u=o/i;let p=d>u?u:d;!r[t(244)]&&d!==u&&(p=d+","+u),r.isFullResize&&(p=d>u?d:u);let f="scale("+p+")";r[t(276)]===t(269)&&h&&(f+=t(173)+h+t(169)),r[t(276)]===t(210)?f+=t(263):r[t(276)]===t(285)&&(f+=t(206)),this[t(265)]=-1!==(""+p).indexOf(",")?d:p,this[t(171)][t(180)][t(288)]=f,this[t(171)][t(180)][t(256)]=c+"px",this[t(171)][t(180)][t(240)]=l+"px",this[t(171)][t(180)][t(222)]=e[t(222)]+"px",this[t(171)].style[t(278)]=e[t(278)]+"px",this.shadowRootInnerDom[t(180)].display="block"}[Vr(246)](){const t=Vr,e=this[t(168)][t(266)]();if(!(e&&e[t(278)]>0&&e[t(222)]>0))return;const s=this.player[t(277)],i=this[t(168)][t(178)]();let r=i[t(222)],n=i.height,o=e[t(222)],a=e[t(278)];const h=s[t(207)];let c=(r-o)/2,l=(n-a)/2;(270===h||90===h)&&(o=e[t(278)],a=e[t(222)]);const d=r/o,u=n/a;let p=d>u?u:d;!s[t(244)]&&d!==u&&(p=d+","+u),s[t(275)]&&(p=d>u?d:u);let f=t(231)+p+")";s[t(276)]===t(269)&&h&&(f+=t(173)+h+"deg)"),s[t(276)]===t(210)?f+=" rotateY(180deg)":s.mirrorRotate===t(285)&&(f+=t(206)),this[t(171)][t(180)].height=e[t(278)]+"px",this.shadowRootInnerDom[t(180)][t(222)]=e[t(222)]+"px",this[t(171)][t(180)][t(274)]="0",this[t(171)][t(180)][t(288)]=f,this[t(171)][t(180)][t(256)]=c+"px",this[t(171)][t(180)].top=l+"px",this[t(171)][t(180)][t(177)]=t(257)}[Vr(243)](){const t=Vr,e=this[t(168)][t(266)]();if(!(e&&e[t(278)]>0&&e[t(222)]>0))return;const s=this[t(168)][t(277)][t(250)][t(262)](":").map(Number),i=this[t(168)][t(178)]();let r=i[t(222)],n=i[t(278)],o=this.player[t(188)]();const a=e.width/e[t(278)],h=s[0]/s[1];if(a>h){const s=h*e.height/e.width;this.shadowRootInnerDom.style[t(222)]=100*s+"%",this[t(171)][t(180)][t(278)]=t(272)+o+t(220),this.shadowRootInnerDom[t(180)][t(274)]="0 "+(r-r*s)/2+"px"}else{const s=e[t(222)]/h/e[t(278)];this[t(171)][t(180)][t(222)]="100%",this[t(171)].style[t(278)]=t(213)+100*s+"% - "+o+"px)",this[t(171)][t(180)][t(274)]=(n-n*s)/2+t(191)}this[t(171)].style[t(177)]=t(257)}[Vr(170)](){const t=Vr;this[t(235)]&&this[t(224)][t(260)]((e=>{const s=t,i=document.createElement(s(181));let r=null;if(e[s(226)]&&e[s(226)][s(187)]?(r=document[s(255)](s(172)),r[s(180)][s(278)]="100%",r.style[s(222)]=s(204),r[s(180)][s(232)]="contain",r[s(187)]=e.image[s(187)]):e[s(227)]&&e[s(227)][s(185)]?r=document[s(194)](e[s(227)][s(185)]):e[s(289)]&&e[s(289)][s(184)]&&e.rect[s(222)]||e[s(190)]?r=document[s(255)](s(181)):e.line&&e[s(282)].x1&&e.line.y1&&e.line.x2&&e[s(282)].y2?r=document.createElement(s(181)):e[s(183)]&&e.polygon.list&&e[s(183)][s(212)][s(174)]>=3&&(r=document[s(255)]("div")),r){if(i[s(236)](r),i[s(180)][s(195)]="",i[s(180)][s(267)]=s(233),i[s(180)][s(177)]="block",i[s(180)][s(176)]="none",i.style[s(242)]="none",i[s(180)]["-webkit-user-select"]=s(269),i[s(180)][s(241)]="none",i[s(180)]["user-select"]=s(269),i[s(180)][s(239)]=s(269),i[s(180)][s(197)]=s(271),i[s(180)][s(211)]=s(269),i[s(180)][s(239)]=s(269),i.style.opacity=e[s(252)],vs(e[s(256)])&&(us(e[s(256)])?i[s(180)][s(256)]=e[s(256)]+"px":i.style[s(256)]=e[s(256)]),vs(e[s(230)])&&(us(e[s(230)])?i[s(180)][s(230)]=e.right+"px":i.style.right=e.right),vs(e[s(240)])&&(us(e[s(240)])?i[s(180)].top=e[s(240)]+"px":i[s(180)][s(240)]=e.top),vs(e.bottom)&&(us(e[s(283)])?i[s(180)].bottom=e[s(283)]+"px":i[s(180)][s(283)]=e[s(283)]),e[s(258)]&&(i[s(180)][s(258)]=e[s(258)]),i[s(180)][s(281)]=s(261),i[s(180)][s(273)]="9999999",e.image&&e[s(226)][s(187)])i[s(180)][s(222)]=e.image[s(222)]+"px",i[s(180)][s(278)]=e.image[s(278)]+"px";else if(e[s(227)]&&e[s(227)][s(185)])i[s(180)].fontSize=e.text[s(215)]+"px",i.style[s(184)]=e[s(227)][s(184)],e.text[s(222)]&&(i.style[s(222)]=e.text.width+"px"),e[s(227)][s(278)]&&(i[s(180)][s(278)]=e[s(227)][s(278)]+"px");else if(e[s(289)]&&e.rect[s(184)]&&e.rect[s(222)]){if(i[s(180)][s(222)]=e[s(289)][s(222)]+"px",i[s(180)][s(278)]=e[s(289)].height+"px",i[s(180)][s(248)]=e[s(289)][s(217)]+"px",i.style.borderStyle="solid",i.style[s(189)]=e[s(289)].color,e[s(289)][s(254)]){const t=document[s(255)](s(181));t[s(180)][s(267)]=s(233),t[s(180)].width=s(204),t.style.height=s(204),t[s(180)][s(258)]=e[s(289)][s(254)],e[s(289)][s(268)]&&(t[s(180)].opacity=e.rect.fillOpacity),i[s(236)](t)}}else if(e[s(190)])i[s(180)][s(222)]="100%",i[s(180)].height=s(204),i[s(200)]=e[s(190)];else if(e.line&&e[s(282)].x1&&e[s(282)].y1&&e[s(282)].x2&&e[s(282)].y2)this.settingLine(i,e[s(282)]);else if(e[s(183)]&&e[s(183)][s(212)]&&e[s(183)][s(212)][s(174)]>=3){i[s(180)].width="100%",i[s(180)][s(278)]=s(204);let t=e[s(183)][s(212)];const r=e[s(183)][s(184)],n=e.polygon[s(217)];if(t=t.sort(((t,e)=>(t[s(198)]||0)-(e.index||0))),e.polygon[s(254)]){const r=document[s(255)](s(181));r[s(180)].position=s(233),r.style.width=s(204),r[s(180)][s(278)]=s(204);const n="polygon("+t.map((t=>t.x+"px "+t.y+"px"))[s(201)](", ")+")";r[s(180)][s(202)]=n,r.style[s(258)]=e[s(183)][s(254)],e[s(183)][s(268)]&&(r[s(180)][s(252)]=e.polygon.fillOpacity),i[s(236)](r)}t[s(260)](((e,o)=>{const a=s,h=document[a(255)](a(181));if(o===t[a(174)]-1){const s=t[0],o={x1:e.x,y1:e.y,x2:s.x,y2:s.y,color:r,lineWidth:n};return this.settingLine(h,o),void i.appendChild(h)}const c=t[o+1],l={x1:e.x,y1:e.y,x2:c.x,y2:c.y,color:r,lineWidth:n};this.settingLine(h,l),i[a(236)](h)}))}this[s(179)]&&(this[s(228)]=i),this[s(171)][s(236)](i)}}))}settingLine(t,e){const s=Vr,i=e.x1,r=e.y1,n=e.x2,o=e.y2;var a=Math[s(219)]((i-n)**2+(r-o)**2),h=180*Math[s(253)](o-r,n-i)/Math.PI;t[s(180)][s(258)]=e[s(184)],t[s(180)][s(222)]=a+"px",t[s(180)][s(278)]=e[s(217)]+"px",t[s(180)][s(267)]=s(233),t[s(180)].top=r+"px",t[s(180)][s(256)]=i+"px",t[s(180)].transform=s(225)+h+s(169),t.style.transformOrigin=s(203)}remove(){this._removeDom()}_removeDom(){const t=Vr;this.shadowRootInnerDom&&(this[t(171)][t(200)]="")}}const Hr=Kr;function Kr(t,e){const s=Yr();return(Kr=function(t,e){return s[t-=239]})(t,e)}!function(t,e){const s=Kr,i=t();for(;;)try{if(768090===parseInt(s(330))/1+parseInt(s(292))/2*(parseInt(s(300))/3)+-parseInt(s(278))/4+-parseInt(s(255))/5+parseInt(s(283))/6+-parseInt(s(279))/7+parseInt(s(259))/8)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Yr);class Qr extends Bi{constructor(){const t=Kr;super(),this[t(250)]="",this.videoInfo={width:null,height:null,encType:null,encTypeCode:null},this[t(241)]=!1,this[t(324)]=null,this[t(312)]=null,this[t(281)]=null,this.contentWatermark=null,this.aiContentWatermark=null,this[t(266)]=[],this.tempAiContentList=[],this[t(240)]=[],this.streamFps=0}[Hr(328)](){const t=Hr;this[t(305)](),this[t(264)]={width:null,height:null,encType:null,encTypeCode:null},this.contentWatermark&&(this[t(252)][t(328)](),this[t(252)]=null),this[t(266)]=[],this[t(306)]&&(this.aiContentWatermark[t(328)](),this.aiContentWatermark=null),this[t(282)]=[],this.prevAiFaceDetectTime=null,this.prevAiObjectDetectTime=null,this[t(281)]=null,this.streamFps=0,this[t(317)]()}[Hr(305)](){this[Hr(241)]=!1}[Hr(274)](){return this.init}[Hr(320)](t){const e=Hr;vs(t.encTypeCode)&&(this[e(264)][e(251)]=z[t[e(291)]],this.videoInfo[e(291)]=t[e(291)]),vs(t[e(251)])&&(this[e(264)][e(251)]=t.encType),vs(t.width)&&(this[e(264)][e(327)]=t[e(327)]),vs(t[e(286)])&&(this[e(264)].height=t[e(286)]),vs(this.videoInfo.encType)&&vs(this[e(264)][e(286)])&&vs(this.videoInfo[e(327)])&&!this[e(241)]&&(this.player[e(323)](M[e(264)],this[e(264)]),this[e(241)]=!0)}[Hr(284)](){return this[Hr(264)]}[Hr(256)](){const t=Hr;this[t(266)]=[],this[t(282)]=[]}[Hr(276)](){const t=Hr;if(this[t(271)][t(261)](t(315),"resize()"),this[t(271)][t(258)][t(297)]===t(267)||Je()?this[t(316)]():this[t(321)](),this[t(252)]&&this[t(252)].resize(),this.aiContentWatermark&&this[t(306)][t(276)](),this.player[t(290)]&&this.player[t(290)].resize(),this[t(271)].ghostWatermark&&this[t(271)][t(260)][t(276)](),this[t(271)].dynamicWatermark&&this[t(271)].dynamicWatermark[t(276)](),this[t(271)].zoom&&this[t(271)][t(272)]){const e=this[t(322)]();this[t(271)].zoom[t(307)](e),this[t(271)][t(318)].updateVideoElementScale()}this.player[t(288)]&&this[t(271)][t(288)][t(246)]()}[Hr(321)](){const t=Hr;this[t(271)].debugLog(t(315),"_resizeRatio()");const e=this[t(271)][t(258)].aspectRatio[t(254)](":")[t(304)](Number),s=this[t(271)][t(247)]();let i=s.width,r=s[t(286)],n=this.player[t(244)]();const o=this[t(264)],a=o.width/o[t(286)],h=e[0]/e[1];if(this[t(263)]()===f.canvas&&(this[t(311)][t(331)].left="0",this.$videoElement.style[t(268)]="0",this[t(311)][t(331)][t(289)]=t(243)),this.getType()===f.video&&this.player[t(258)][t(257)]&&(this[t(311)][t(331)].objectFit=t(301)),a>h){const e=h*o.height/o[t(327)];this[t(311)][t(331)].width=100*e+"%",this.$videoElement[t(331)].height=t(287)+n+t(269),this.$videoElement[t(331)].padding="0 "+(i-i*e)/2+"px"}else{const e=o[t(327)]/h/o[t(286)];this.$videoElement[t(331)][t(327)]=t(249),this.$videoElement.style[t(286)]=t(280)+100*e+t(275)+n+t(269),this[t(311)][t(331)].padding=(r-r*e)/2+t(295)}}[Hr(262)](){}[Hr(245)](){}setRate(t){}[Hr(263)](){return""}[Hr(242)](){return""}[Hr(332)](){return 0}getStreamFps(){return this[Hr(314)]}[Hr(298)](){return!0}[Hr(309)](){return this[Hr(298)]()}[Hr(277)](){return null}[Hr(299)](t){const e=Hr;this[e(271)][e(261)](e(315),e(299),t),this[e(314)]=t}[Hr(334)](){const t=Hr;let e=arguments[t(270)]>0&&void 0!==arguments[0]?arguments[0]:[];this[t(266)]=e,this[t(265)]()}addAiContentToCanvas(){const t=Hr;let e=arguments[t(270)]>0&&void 0!==arguments[0]?arguments[0]:[];this[t(282)]=e,this.doAddAiContentToWatermark()}[Hr(265)](){const t=Hr;if(this[t(266)][t(270)]>0){!this[t(252)]&&(this.contentWatermark=new Wr(this[t(271)]),this.contentWatermark[t(276)]());const e=[];this[t(266)].forEach((s=>{const i=t;let r={left:s.x||0,top:s.y||0};s[i(333)]===i(308)?r.text={content:s[i(308)],fontSize:s.fontSize||"14",color:s[i(293)]||"#000"}:s[i(333)]===i(325)?r[i(325)]={width:s.width,height:s[i(286)],color:s[i(293)]||i(248),lineWidth:s.lineWidth||2,fill:s[i(301)]||"",fillOpacity:s.fillOpacity||.2}:s.type===i(239)?r[i(239)]={list:s.list,color:s[i(293)]||i(248),lineWidth:s[i(273)]||2,fill:s[i(301)],fillOpacity:s.fillOpacity||.2}:s.type===i(303)&&(r[i(303)]={color:s[i(293)]||i(248),lineWidth:s[i(273)]||2,x1:s.x1,y1:s.y1,x2:s.x2,y2:s.y2}),e[i(296)](r)})),this[t(252)].update(e)}else this[t(252)]&&this[t(252)].remove()}doAddAiContentToWatermark(){const t=Hr;if(this[t(282)][t(270)]>0){!this[t(306)]&&(this.aiContentWatermark=new Wr(this[t(271)]),this[t(306)][t(276)]());const e=this.tempAiContentList[t(304)]((e=>{const s=t;let i={left:e.x,top:e.y};return e[s(333)]===s(308)?i[s(308)]={content:e[s(308)],fontSize:e.fontSize,color:e.color}:"rect"===e.type&&(i[s(325)]={width:e.width,height:e[s(286)],color:e.color,lineWidth:e[s(273)]}),i}));this[t(306)][t(294)](e)}else this[t(306)]&&this[t(306)][t(329)]()}[Hr(322)](){const t=Hr;let e=this[t(311)][t(331)][t(289)][t(302)](/scale\([0-9., ]*\)/g),s="";if(e&&e[0]){s=e[0][t(285)]("scale(","")[t(285)](")","")[t(254)](",")}return s}getReadyStateInited(){return!0}[Hr(326)](){}[Hr(310)](){}[Hr(335)](){}[Hr(253)](){return this[Hr(250)]}[Hr(319)](){const t=Hr;let e=0;return this[t(240)]&&(e=this[t(240)][t(270)]),e}screenshotByRect(t){return null}[Hr(313)](){}}function Yr(){const t=["line","map","resetInit","aiContentWatermark","updatePrevVideoElementStyleScale","text","isVideoPlaying","initCanvasViewSize","$videoElement","prevAiObjectDetectTime","initFps","streamFps","CommonVideo","_resize","off","zoom","getBufferListLength","updateVideoInfo","_resizeRatio","_getStyleScale","emit","prevAiFaceDetectTime","rect","screenshotByCurrentWatermark","width","destroy","remove","362670dMNeHv","style","getCurrentTime","type","addContentToCanvas","bindMediaStream","polygon","bufferList","init","getCanvasType","none","getControlHeight","pause","resizeLoadingBackground","getShowVideoRect","green","100%","TAG_NAME","encType","contentWatermark","getName","split","2978695GFjXhc","clearView","videoRenderSupportScale","_opt","9165968Pnsmwh","ghostWatermark","debugLog","play","getType","videoInfo","doAddContentToWatermark","tempContentList","default","top","px)","length","player","zooming","lineWidth","getHasInit","% - ","resize","getPlaybackQuality","4755676owyKsp","9061682zUHecM","calc(","prevAiOcclusionDetectTime","tempAiContentList","5025414KUeTmD","getVideoInfo","replace","height","calc(100% - ","control","transform","singleWatermark","encTypeCode","11162Octmtg","color","update","px 0","push","aspectRatio","isPlaying","setStreamFps","807eUHmTN","fill","match"];return(Yr=function(){return t})()}var qr=en;!function(t,e){for(var s=en,i=t();;)try{if(733521===parseInt(s(257))/1+-parseInt(s(228))/2*(-parseInt(s(260))/3)+-parseInt(s(224))/4*(parseInt(s(270))/5)+parseInt(s(251))/6+parseInt(s(266))/7+parseInt(s(263))/8*(parseInt(s(220))/9)+-parseInt(s(253))/10*(parseInt(s(267))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(tn);var Jr=typeof window===qr(227)&&window.window===window?window:typeof self===qr(227)&&self.self===self?self:typeof global===qr(227)&&global[qr(252)]===global?global:void 0;function Xr(t,e,s){var i=qr,r=new XMLHttpRequest;r[i(250)](i(239),t),r[i(229)]=i(262),r[i(232)]=function(){rn(r[i(240)],e,s)},r[i(261)]=function(){var t=i;console[t(236)](t(276))},r[i(278)]()}function Zr(t){var e=qr,s=new XMLHttpRequest;s.open(e(223),t,!1);try{s[e(278)]()}catch(t){}return s[e(271)]>=200&&s[e(271)]<=299}function $r(t){var e=qr;try{t[e(226)](new MouseEvent(e(254)))}catch(i){var s=document.createEvent(e(221));s[e(265)](e(254),!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t[e(226)](s)}}function tn(){var t=["warn","http://www.w3.org/1999/xhtml","createObjectURL","target","open","4781286eNCPZD","global","150AVPjyT","click","origin","rel","893136WuyxCi","downloading...","test","1143EdXZRk","onerror","blob","488MPhlUw","type","initMouseEvent","8662815UzFSyd","2396339OesSll","createElementNS","userAgent","1594030YtaXCY","status","URL","string","result","HTMLElement","could not download file","href","send","readAsDataURL","noopener","28773crxupx","MouseEvents","webkitURL","HEAD","4fmeWnJ","replace","dispatchEvent","object","6286ErUDuC","responseType","prototype","download","onload","Deprecated: Expected third argument to be a object","name","fromCharCode","error","revokeObjectURL","msSaveOrOpenBlob","GET","response","safari","_blank","navigator","onloadend","createElement"];return(tn=function(){return t})()}function en(t,e){var s=tn();return(en=function(t,e){return s[t-=218]})(t,e)}var sn=Jr[qr(243)]&&/Macintosh/[qr(259)](navigator[qr(269)])&&/AppleWebKit/[qr(259)](navigator[qr(269)])&&!/Safari/[qr(259)](navigator[qr(269)]),rn=typeof window!==qr(227)||window!==Jr?function(){}:qr(231)in HTMLAnchorElement[qr(230)]&&!sn?function(t,e,s){var i=qr,r=Jr[i(272)]||Jr[i(222)],n=document[i(268)](i(247),"a");e=e||t.name||"download",n[i(231)]=e,n[i(256)]=i(219),typeof t===i(273)?(n[i(277)]=t,n[i(255)]!==location[i(255)]?Zr(n[i(277)])?Xr(t,e,s):$r(n,n[i(249)]=i(242)):$r(n)):(n[i(277)]=r[i(248)](t),setTimeout((function(){var t=i;r[t(237)](n[t(277)])}),4e4),setTimeout((function(){$r(n)}),0))}:qr(238)in navigator?function(t,e,s){var i,r,n,o=qr;if(e=e||t[o(234)]||o(231),"string"==typeof t)if(Zr(t))Xr(t,e,s);else{var a=document[o(245)]("a");a.href=t,a[o(249)]=o(242),setTimeout((function(){$r(a)}))}else navigator.msSaveOrOpenBlob((i=t,n=qr,void 0===(r=s)?r={autoBom:!1}:typeof r!==n(227)&&(console[n(246)](n(233)),r={autoBom:!r}),r.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(i[n(264)])?new Blob([String[n(235)](65279),i],{type:i.type}):i),e)}:function(t,e,s,i){var r=qr;if((i=i||open("",r(242)))&&(i.document.title=i.document.body.innerText=r(258)),"string"==typeof t)return Xr(t,e,s);var n="application/octet-stream"===t[r(264)],o=/constructor/i[r(259)](Jr[r(275)])||Jr[r(241)],a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||n&&o||sn)&&"undefined"!=typeof FileReader){var h=new FileReader;h[r(244)]=function(){var t=r,e=h[t(274)];e=a?e:e[t(225)](/^data:[^;]*;/,"data:attachment/file;"),i?i.location[t(277)]=e:location=e,i=null},h[r(218)](t)}else{var c=Jr.URL||Jr[r(222)],l=c.createObjectURL(t);i?i.location=l:location.href=l,i=null,setTimeout((function(){c.revokeObjectURL(l)}),4e4)}};const nn=on;function on(t,e){const s=an();return(on=function(t,e){return s[t-=376]})(t,e)}!function(t,e){const s=on,i=t();for(;;)try{if(766664===-parseInt(s(457))/1+parseInt(s(451))/2*(parseInt(s(433))/3)+-parseInt(s(379))/4+-parseInt(s(432))/5*(parseInt(s(382))/6)+parseInt(s(389))/7+parseInt(s(422))/8*(parseInt(s(412))/9)+parseInt(s(384))/10*(parseInt(s(424))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(an);nn(408),nn(404),nn(437),nn(445),nn(395),nn(391),nn(409);function an(){const t=["useProgram","uResolution","SRC_ALPHA","destroy","drawBox","ONE_MINUS_SRC_ALPHA","bindBuffer","3879rWhKJN","aVertexPosition","LINK_STATUS","uLineColor","\n precision highp float;\n uniform float uLineWidth;\n uniform vec4 uRect;\n uniform vec3 uLineColor;\n uniform vec2 uResolution;\n\n\n float inBox(vec2 st, vec4 rect){\n\n vec2 bl = step(rect.xy,st);\n float pct = bl.x * bl.y;\n\n vec2 tr = step(st, rect.zw);\n pct *= tr.x * tr.y;\n\n return pct;\n }\n\n void main(void) {\n\n vec2 cur = gl_FragCoord.xy/uResolution;\n\n float xlinewidth = uLineWidth/uResolution.x;\n float ylinewidth = uLineWidth/uResolution.y;\n\n // vec4 outRect = uRect + vec4(-1.*xlinewidth/2., -1.*ylinewidth/2., xlinewidth/2., ylinewidth/2.);\n // vec4 inRect = uRect + vec4(xlinewidth/2., ylinewidth/2., -1.*xlinewidth/2., -1.*ylinewidth/2.);\n\n vec4 outRect = uRect + vec4(-1.*xlinewidth/2., -1.*ylinewidth/2., xlinewidth/2., ylinewidth/2.);\n vec4 inRect = uRect;\n\n float a = inBox(cur, outRect);\n float b = inBox(cur, inRect);\n\n gl_FragColor = mix(vec4(0., 0., 0., 0.), vec4(uLineColor.rgb, 1.0), a-b);\n\n }\n ","CLAMP_TO_EDGE","TEXTURE_WRAP_T","FRAGMENT_SHADER","BLEND","getShaderInfoLog","704NCdunX","ARRAY_BUFFER","11jCqwSl","bindTexture","uniformLocations","log","uLineWidth","linecolor","createShader","position","166075wdkeOo","662691XPdKUQ","fromValues","LINEAR","blendFunc","_loadShader","\n attribute vec4 aVertexPosition;\n void main(void) {\n gl_Position = aVertexPosition;\n }\n ","TEXTURE_WRAP_S","STATIC_DRAW","program","attachShader","TEXTURE_MIN_FILTER","deleteBuffer","_createTexture","COMPILE_STATUS","VERTEX_SHADER","vertexPosition","programInfo","ELEMENT_ARRAY_BUFFER","2OgIcod","attribLocations","getAttribLocation","uniform4f","createBuffer","pixelStorei","306212gqTUFK","deleteShader","TEXTURE_MAG_FILTER","Unable to initialize the shader program: ","createProgram","linewidth","texParameteri","uRect","5533696bRbLgI","getUniformLocation","enableVertexAttribArray","228mcWBcP","getProgramInfoLog","31126190qYTrrP","TRIANGLES","FLOAT","bufferData","buffers","2429182XtUYVt","getProgramParameter","_drawScene","resolution","uniform3f","compileShader","_initBuffers","shaderProgram","UNSIGNED_SHORT","indices","rect","uniform1f","An error occurred compiling the shaders: ","shaderSource","TEXTURE_2D","_initShaderProgram"];return(an=function(){return t})()}function hn(t,e){const s=ln();return(hn=function(t,e){return s[t-=377]})(t,e)}function cn(t){return new Promise(((e,s)=>{const i=hn;navigator[i(392)]?navigator[i(392)][i(381)]()[i(386)]((r=>{const n=i;r?r[n(389)]()[n(386)]((i=>{const o=n;if(i){const n=t[o(388)](o(395));if(n){const t=navigator[o(392)].getPreferredCanvasFormat();n[o(378)]({device:i,format:t,alphaMode:o(387)}),e({adapter:r,device:i,context:n,format:t})}else s(o(380))}else s(o(394))}))[n(396)]((t=>{s(n(399))})):s(n(383))})).catch((t=>{s(i(377))})):s(i(382))}))}function ln(){const t=["314573VndaPL",'WebGPU "adapter.requestDevice()" fail',"853515vHxgXb","199984xIvBEM",'WebGPU "navigator.gpu.requestAdapter()" fail',"configure","28522DWoalm",'WebGPU "context" create fail',"requestAdapter","WebGPU not support!!",'WebGPU "adapter" request fail is empty',"10Tufslw","335460UqypRf","then","opaque","getContext","requestDevice","1362978bMdApN","60wdKeIz","gpu","2585000aUhCPo",'WebGPU "device" request fail',"webgpu","catch","96DSlwQc"];return(ln=function(){return t})()}function dn(){const t=["RGBA","2378628TMgrjk","126XjvSRy","TEXTURE_MIN_FILTER","5369637WqAMhy","vertexShader","getProgramParameter","texture","width","bindBuffer","isInited","displayWidth","getShaderParameter","createTexture","UNSIGNED_BYTE","4wtZolN","buffer","COMPILE_STATUS","TEXTURE_WRAP_T","FLOAT","bindTexture","attachShader","1159yMOgvu","deleteBuffer","texImage2D","TEXTURE_MAG_FILTER","drawArrays","linkProgram","createShader","ARRAY_BUFFER","2497720ShECRS","enableVertexAttribArray","height","texParameteri","LINK_STATUS","getShaderInfoLog","350848aduzHX","vertexAttribPointer","550HWaLLj","displayHeight","drawingBufferHeight","deleteShader","COLOR_BUFFER_BIT","getProgramInfoLog","createBuffer","deleteProgram","NEAREST","texSubImage2D","1781601jzkWzd","program","destroy","VERTEX_SHADER","TEXTURE_2D","2436090LTPvgO","canvas","clear","33enJhkV","\n varying highp vec2 uv;\n uniform sampler2D texture;\n void main(void) {\n gl_FragColor = texture2D(texture, uv);\n }\n ","shaderSource","clearColor","\n attribute vec2 xy;\n varying highp vec2 uv;\n void main(void) {\n gl_Position = vec4(xy, 0.0, 1.0);\n // Map vertex coordinates (-1 to +1) to UV coordinates (0 to 1).\n // UV coordinates are Y-flipped relative to vertex coordinates.\n uv = vec2((1.0 + xy.x) / 2.0, (1.0 - xy.y) / 2.0);\n }\n ","render","STATIC_DRAW","deleteTexture","createProgram"];return(dn=function(){return t})()}!function(t,e){const s=hn,i=t();for(;;)try{if(279507===-parseInt(s(401))/1+parseInt(s(379))/2*(parseInt(s(397))/3)+-parseInt(s(385))/4+-parseInt(s(400))/5+parseInt(s(391))/6*(parseInt(s(398))/7)+-parseInt(s(393))/8+parseInt(s(390))/9*(parseInt(s(384))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(ln);const un=pn;function pn(t,e){const s=dn();return(pn=function(t,e){return s[t-=484]})(t,e)}!function(t,e){const s=pn,i=t();for(;;)try{if(405684===parseInt(s(521))/1*(parseInt(s(537))/2)+-parseInt(s(547))/3*(parseInt(s(514))/4)+parseInt(s(529))/5+-parseInt(s(500))/6+-parseInt(s(503))/7+parseInt(s(535))/8*(parseInt(s(501))/9)+-parseInt(s(487))/10*(-parseInt(s(490))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(dn);class fn{constructor(t,e){const s=pn;this.canvas=t,this.gl=e,this[s(509)]=!1;const i=s(494),r=s(491),n=e.createShader(e[s(485)]);if(e[s(492)](n,i),e.compileShader(n),!e[s(511)](n,e[s(516)]))throw e[s(534)](n);const o=e[s(527)](e.FRAGMENT_SHADER);if(e[s(492)](o,r),e.compileShader(o),!e[s(511)](o,e[s(516)]))throw e.getShaderInfoLog(o);const a=e[s(498)]();if(e[s(520)](a,n),e[s(520)](a,o),e[s(526)](a),!e[s(505)](a,e[s(533)]))throw e[s(542)](a);e.useProgram(a);const h=e[s(543)]();e[s(508)](e[s(528)],h),e.bufferData(e[s(528)],new Float32Array([-1,-1,-1,1,1,1,1,-1]),e[s(496)]);const c=e.getAttribLocation(a,"xy");e[s(536)](c,2,e[s(518)],!1,0,0),e[s(530)](c);const l=e[s(512)]();e[s(519)](e[s(486)],l),e[s(532)](e.TEXTURE_2D,e[s(524)],e[s(545)]),e[s(532)](e[s(486)],e[s(502)],e[s(545)]),e[s(532)](e[s(486)],e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e[s(517)],e.CLAMP_TO_EDGE),this[s(548)]=a,this.buffer=h,this[s(504)]=n,this.fragmentShader=o,this[s(506)]=l}[un(484)](){const t=un;this.gl[t(544)](this[t(548)]),this.gl[t(522)](this[t(515)]),this.gl[t(497)](this[t(506)]),this.gl[t(540)](this[t(504)]),this.gl.deleteShader(this.fragmentShader),this.program=null,this[t(515)]=null,this.vertexShader=null,this.fragmentShader=null,this[t(506)]=null,this.gl=null,this[t(509)]=!1}[un(495)](t){const e=un;this.canvas[e(507)]=t[e(510)],this[e(488)][e(531)]=t[e(538)];const s=this.gl;this.isInited?s[e(546)](s[e(486)],0,0,0,s.RGBA,s[e(513)],t):(s[e(523)](s[e(486)],0,s[e(499)],s.RGBA,s[e(513)],t),this[e(509)]=!0),s.viewport(0,0,s.drawingBufferWidth,s[e(539)]),s[e(493)](1,0,0,1),s[e(489)](s[e(541)]),s[e(525)](s.TRIANGLE_FAN,0,4)}}const mn=An;function gn(){const t=["off"," and next use webgl render","447152tFzSOI","webglcontextrestored ","render","getContext","webgl","webglContextLostError","then","renderType","string","style","1100197ZLptkU","mirrorRotate","_bindContextGlEvents","destroy","5337DuIHhX","drawImage","height","top","debugWarn","webGPURender","_initContextGl2() createContextGL2 error","appendChild","debugError","17042890cvpPqQ","$videoElement","initFps","contextGl","getType","getCanvasType","filename","block","webgl2","webGPURender init success","isResize","getStreamFps","rotate","vertical","clearView","isDestroyedOrClosed","266136adwYdG"," rotateY(180deg)","webgpu","_createScreenShotCanvas","blob","webglcontextlost error and destroy webglRectRender","webglcontextlost error, getContextAttributes().stencil is false","emitError","openWebglAlignment","base64","png","width","isWebglContextLost","transform"," rotate(","getShowVideoRect","isFullResize","length","canvas","format","padding","toDataURL","webglRender","webglcontextlost error","screenshotCopyrightWatermark","webglRectRender"," rotateX(180deg)","forEach","stencil","preventDefault","deg)","canvasVideo","CommonCanvasLoader and _initContextGl createContextGL error","absolute","high","$screenshotCanvasElement","webglcontextrestored","imageSmoothingEnabled","createContextGL() version ","play","type","player","quality","704TRxhrK","initCanvasViewSize","webglcontextlost error reset and getContextAttributes().stencil is true","setStreamFps","$container","screenshotByRect","_initContextGl","_resize()","debugLog","1517156uRqpuK","_initContextGl() createContextGL error","none","bitmaprenderer","11TmBLZT","screenshotUseHighQuality","catch","_initContextGl2","_opt","split","createWebGPUContext error is ","videoInfo","proxyDestroyList","screenshotCanvasContext","display","init","left","events","6BEzCmA","push","screenshotByCurrentWatermark","5512150bOUlAh","207fryELI","createElement","context2D","isWcsWebgpu","resize","isWcsWebgl2","download","getContextAttributes","clearRect","pause","createContextGL success","CommonCanvasLoader","_initCanvasRender"];return(gn=function(){return t})()}function An(t,e){const s=gn();return(An=function(t,e){return s[t-=346]})(t,e)}!function(t,e){const s=An,i=t();for(;;)try{if(630641===-parseInt(s(431))/1+parseInt(s(394))/2+parseInt(s(445))/3*(parseInt(s(385))/4)+parseInt(s(415))/5+parseInt(s(412))/6*(-parseInt(s(441))/7)+parseInt(s(470))/8*(parseInt(s(416))/9)+-parseInt(s(454))/10*(parseInt(s(398))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(gn);class yn extends Qr{constructor(t){const e=An;super(),this[e(383)]=t;const s=document[e(417)](e(360));s[e(440)].position=e(375),s[e(440)][e(448)]=0,s[e(440)].left=0,s[e(440)][e(408)]=e(396),this[e(455)]=s,this[e(377)]=null,this[e(407)]=null,t.$container[e(452)](this[e(455)]),this.context2D=null,this[e(457)]=null,this[e(364)]=null,this[e(367)]=null,this[e(450)]=null,this.isWebglContextLost=!1,this[e(421)]=!1,this[e(419)]=!1,this[e(397)]=null,this[e(438)]=null,this[e(406)]=[],this[e(428)]()}[mn(444)](){const t=mn;super[t(444)](),this[t(377)]&&(this[t(377)].height=0,this[t(377)].width=0,this[t(377)]=null),this.screenshotCanvasContext=null,this[t(406)][t(359)]>0&&(this[t(406)][t(369)]((t=>{t&&t()})),this[t(406)]=[]),this.webglRender&&(this.webglRender[t(444)](),this[t(364)]=null),this.webglRectRender&&(this[t(367)].destroy(),this.webglRectRender=null),this[t(450)]&&(this.webGPURender[t(444)](),this[t(450)]=null),this[t(397)]&&(this[t(397)]=null),this.contextGl&&(this[t(457)]=null),this[t(418)]&&(this.context2D[t(424)](0,0,this[t(455)][t(353)],this[t(455)][t(447)]),this[t(418)]=null),this[t(438)]=null,this[t(354)]=!1,this[t(419)]=!1,this[t(421)]=!1,this[t(405)]={width:"",height:"",encType:""},this[t(455)].width=0,this[t(455)][t(447)]=0,this.player[t(389)].removeChild(this[t(455)]),this.$videoElement=null,this[t(409)]=!1,this[t(429)]()}[mn(473)](){const t=mn,e=document[t(417)](t(360));this[t(377)]=e,this.screenshotCanvasContext=e[t(434)]("2d"),this.player[t(402)][t(399)]&&(this[t(407)][t(379)]=!0,this.screenshotCanvasContext[t(379)]&&(this.screenshotCanvasContext.imageSmoothingQuality=t(376)))}_initContext2D(){const t=mn;let e=arguments[t(359)]>0&&void 0!==arguments[0]?arguments[0]:{};this[t(418)]=this[t(455)].getContext("2d",e)}_initContextGl(){const t=mn;if(this[t(383)][t(411)],this[t(457)]=Oe(this[t(455)]),!this[t(457)])throw this[t(383)][t(453)](t(427),t(395)),new Error(t(374));this[t(443)](),this.webglRender=new Mr(this[t(457)],this[t(383)][t(402)][t(350)])}[mn(401)](){const t=mn;if(this.contextGl=Ue(this[t(455)]),this.contextGl){this[t(443)](2);try{this.webglRender=new fn(this[t(455)],this.contextGl)}catch(e){this[t(383)][t(453)](t(427),"create webgl2Render error is "+e+" and next use context2d.draw render"),this[t(457)]=null,this[t(364)]=null,this._initContext2D()}}else this.player.debugError(t(427),t(451))}[mn(443)](){const t=mn;let e=arguments[t(359)]>0&&void 0!==arguments[0]?arguments[0]:1;const{proxy:s}=this[t(383)].events,i=s(this.$videoElement,"webglcontextlost",(s=>{const i=t;s[i(371)](),this[i(383)].debugError(i(373),i(365),s),this[i(354)]=!0,this[i(364)]&&(this[i(383)][i(393)]("CommonCanvasLoader","webglcontextlost error and destroy webglRender"),this[i(364)][i(444)](),this[i(364)]=null),this[i(367)]&&(this[i(383)][i(393)](i(427),i(347)),this[i(367)][i(444)](),this[i(367)]=null),this[i(457)]=null,setTimeout((()=>{const t=i;if(this.player[t(393)](t(427),t(380)+e),1===e?this[t(457)]=Oe(this.$videoElement):2===e&&(this.contextGl=Ue(this.$videoElement)),this[t(383)].debugLog(t(427),t(426)),this[t(457)]&&this[t(457)][t(423)]){const s=this[t(457)][t(423)]();s&&s[t(370)]?(1===e?this.webglRender=new Mr(this[t(457)],this[t(383)][t(402)].openWebglAlignment):2===e&&(this[t(364)]=new fn(this[t(455)],this[t(457)])),this[t(354)]=!1,this[t(383)][t(393)](t(427),t(387))):(this[t(383)][t(453)](t(427),"webglcontextlost error, getContextAttributes().stencil is false"),this[t(383)][t(349)](U[t(436)]))}else this[t(383)].debugError(t(427),t(348)),this.player.emitError(U.webglContextLostError)}),500)})),r=s(this[t(455)],t(378),(e=>{const s=t;e[s(371)](),this.player[s(393)](s(427),s(432),e)}));this[t(406)][t(413)](i,r)}_initContextGPU(){const t=mn;cn(this[t(455)])[t(437)]((e=>{const s=t;this.player[s(469)]()||(e?(this[s(450)]=new jr(e),this[s(383)][s(393)](s(427),s(463))):(this[s(383)][s(449)]("CommonCanvasLoader","webGPURender init failed because context is null and next use webgl render"),this[s(438)]=X.webgl,this[s(391)]()))}))[t(400)]((e=>{const s=t;this[s(383)].isDestroyedOrClosed()||(this[s(383)][s(449)](s(427),s(404)+e+s(430)),this[s(438)]=X[s(435)],this[s(391)]())}))}[mn(386)](){const t=mn;this[t(455)][t(440)].display=t(461),this[t(455)][t(353)]=this[t(405)][t(353)],this.$videoElement[t(447)]=this[t(405)][t(447)],this[t(420)]()}screenshot(t,e,s,i){const r=mn;t=t||je(),i=i||j.download;let n=.92;!at[e]&&j[e]&&(i=e,e=r(352),s=void 0),typeof s===r(439)&&(i=s,s=void 0),void 0!==s&&(n=Number(s));const o=at[e]||at[r(352)],a=this.$videoElement[r(363)](o,n);if(i===j[r(351)])return a;{const e=Ne(a);if(i===j[r(346)])return e;if(i===j.download){const s=o[r(403)]("/")[1];rn(e,t+"."+s)}}}screenshotWatermark(t){return new Promise(((e,s)=>{const i=An;Ms(t)&&(t={filename:t}),(t=t||{}).width=this[i(405)][i(353)],t[i(447)]=this.videoInfo[i(447)],t.filename=t[i(460)]||je(),t.format=t[i(361)]?at[t.format]:at[i(352)],t[i(384)]=Number(t[i(384)])||.92,t.type=t[i(382)]||j.download;const r=this[i(455)].toDataURL(t[i(361)],t[i(384)]),n=this[i(383)][i(402)].screenshotUseHighQuality;Es(r,t,n)[i(437)]((s=>{const n=i;if(t[n(382)]===j[n(351)])e(r);else{const i=Ne(s);if(t[n(382)]===j.blob)e(i);else if(t.type===j.download){e();const s=t[n(361)][n(403)]("/")[1];rn(i,t.filename+"."+s)}}}))[i(400)]((t=>{s(t)}))}))}[mn(366)](t){return new Promise(((e,s)=>{const i=An;if(Ms(t)){(t=(t={filename:t})||{}).width=this[i(405)][i(353)],t.height=this.videoInfo[i(447)],t[i(460)]=t.filename||je(),t[i(361)]=t[i(361)]?at[t.format]:at[i(352)],t[i(384)]=Number(t[i(384)])||.92,t[i(382)]=t[i(382)]||j[i(422)];const r=this.$videoElement[i(363)](t[i(361)],t[i(384)]),n=this[i(383)][i(402)][i(399)];Ts(r,t,n)[i(437)]((s=>{const n=i;if(t[n(382)]===j[n(351)])e(r);else{const i=Ne(s);if(t[n(382)]===j[n(346)])e(i);else if(t[n(382)]===j[n(422)]){e();const s=t[n(361)][n(403)]("/")[1];rn(i,t.filename+"."+s)}}}))[i(400)]((t=>{s(t)}))}}))}[mn(414)](t){}[mn(390)](t){const e=mn;!this[e(377)]&&this[e(473)]();const s=this[e(455)];let i=this[e(377)];i[e(353)]=parseInt(t[e(353)],10),i[e(447)]=parseInt(t[e(447)],10),this[e(407)][e(446)](s,t.x,t.y,i[e(353)],i[e(447)],0,0,i[e(353)],i.height);const r=at.png,n=i.toDataURL(r,.92);return this[e(407)][e(424)](0,0,i[e(353)],i[e(447)]),i[e(353)]=0,i.height=0,n}[mn(433)](){}[mn(468)](){super[mn(468)]()}[mn(381)](){}[mn(425)](){}_resize(){const t=mn;this[t(383)][t(393)](t(373),t(392));const e=this[t(383)]._opt,s=this[t(383)][t(357)]();let i=s[t(353)],r=s[t(447)],n=this[t(455)][t(353)],o=this[t(455)].height;const a=e[t(466)];let h=(i-n)/2,c=(r-o)/2;(270===a||90===a)&&(n=this[t(455)][t(447)],o=this[t(455)][t(353)]);const l=i/n,d=r/o;let u=l>d?d:l;ci(e[t(464)])&&l!==d&&(u=l+","+d),e[t(358)]&&(u=l>d?l:d);let p="scale("+u+")";e.mirrorRotate===t(396)&&a&&(p+=t(356)+a+t(372)),"level"===e.mirrorRotate?p+=t(471):e[t(442)]===t(467)&&(p+=t(368)),this[t(455)].style.height=this.videoInfo[t(447)]+"px",this[t(455)][t(440)][t(353)]=this[t(405)].width+"px",this.$videoElement.style[t(362)]="0",this[t(455)][t(440)][t(355)]=p,this[t(455)][t(440)][t(410)]=h+"px",this[t(455)].style[t(448)]=c+"px"}[mn(456)](){}[mn(388)](t){}[mn(465)](){return 25}[mn(458)](){return f[mn(360)]}[mn(459)](){const t=mn;let e=X.webgl;return this[t(438)]===X.webgpu?e=X[t(472)]:this[t(438)]===X.canvas&&(e=X[t(360)]),this[t(421)]?e=X[t(462)]:this[t(419)]&&(e=X[t(472)]),e}}const bn=Sn;function vn(){const t=["42NGKrwv","_initWebglRenderForWCS","aiObjectDetectInterval","doAddAiContentToWatermark","init","doRender webgpu render and error: ","destroy","drawDom","then","prevAiOcclusionDetectTime","$video","TAG_NAME","imageDetectActive","debugError","webGPURender","renderType","_initContextGl","render","isWebglContextLost","check","CanvasVideo","px Arial","yuvList","webgpu","webcodecs","mseUseCanvasRender","text"," and next use webgl render","doRender() and webgl context is lost","1178UXoFMK","fillText","clearView","333628eGjXOn","2050110RRvOYL","forEach","lineWidth","useMSE","_initContext2D","isDestroyedOrClosed","buffer","occlusionDetectActive","context2D","fontSize","useWebGPU","isOldHls","COLOR_BUFFER_BIT","renderYUV","I420","player","occlusionDetector","videoFrame","isContextLost"," and error: ","catch","useWebCanvas","35095730emKclo","toString","offscreen","_supportOffscreen","webglRectRender","currentTime","debugLog","_initContextGPU","webgl","canvas","faceDetectActive","$videoElement","rect","11664944njpHAB","tempContentList","faceDetector","6JgCZvG","output","createWebGPUContext error is ","prevAiFaceDetectTime","updateCurrentPts","clearRect","height","4829877VAMzZE","aiImageDetectResult","1366HIFVVi","webGPURender init success","_initTempTextCanvas","aiOcclusionDetectInterval","textBaseline","useCanvasRender","drawImage","doAddContentToWebGlCanvas","60263rPqZvF","doRender() and ai image detect result type is ","debugWarn","bitmaprenderer","doRender webgpu render is not init","getContext","imageDetector","videoInfo","width","prevAiObjectDetectTime","tempTextCanvasCtx","isWcsWebgpu","length","_opt","clear","#008000"," and drop","emit","top","useOffscreen","startRender","color","hls","CanvasVideoLoader","webrtc","transferFromImageBitmap","useWCS","tempTextCanvas","doRender","wcsUseWebgl2Render","type","_initCanvasRender","webGPURender init failed because context is null and next use webgl render","webglRender","contextGl","mse","doRender() and webcodecs context is lost"];return(vn=function(){return t})()}function Sn(t,e){const s=vn();return(Sn=function(t,e){return s[t-=486]})(t,e)}!function(t,e){const s=Sn,i=t();for(;;)try{if(733047===-parseInt(s(598))/1*(-parseInt(s(524))/2)+-parseInt(s(569))/3*(parseInt(s(601))/4)+-parseInt(s(602))/5+-parseInt(s(515))/6*(parseInt(s(532))/7)+-parseInt(s(512))/8+-parseInt(s(522))/9+parseInt(s(499))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(vn);class wn extends yn{constructor(t){const e=Sn;super(t),this.TAG_NAME="CanvasVideo",this[e(591)]=[],this[e(559)]=null,this[e(542)]=null,this[e(492)][e(505)](e(589),e(573))}async[bn(575)](){const t=bn;super[t(575)](),this[t(591)]=[],this.tempTextCanvas&&(this[t(542)][t(520)](0,0,this.tempTextCanvas[t(540)],this[t(559)][t(521)]),this[t(559)][t(540)]=0,this.tempTextCanvas.height=0,this[t(559)]=null),this[t(492)].debugLog(t(555),"destroy")}[bn(563)](){const t=bn;this[t(492)][t(545)][t(558)]&&!this[t(502)]()?(this[t(584)]=X[t(593)],this[t(492)][t(545)][t(487)]?cn(this[t(510)])[t(577)]((e=>{const s=t;this[s(492)][s(607)]()||(e?(this.webGPURender=new jr(e),this[s(543)]=!0,this[s(492)][s(505)](this[s(580)],s(525))):(this[s(492)][s(534)](this[s(580)],s(564)),this._initWebglRenderForWCS()))}))[t(497)]((()=>{const s=t;this.player[s(607)]()||(this[s(492)].debugWarn(this[s(580)],s(517)+e+s(596)),this[s(570)]())})):this._initWebglRenderForWCS()):this[t(492)]._opt[t(605)]&&this.player[t(545)][t(594)]?(this[t(584)]=X[t(567)],this._initContext2D()):this[t(492)][t(488)]()&&this[t(492)][t(545)][t(529)]?(this[t(584)]=X[t(554)],this._initContext2D()):this[t(492)].isWebrtcH264()&&this[t(492)][t(545)].webrtcUseCanvasRender?(this[t(584)]=X.webrtc,this[t(606)]()):this[t(502)]()?(this[t(584)]=X.offscreen,this._bindOffscreen()):this[t(492)][t(545)][t(487)]?(this[t(584)]=X[t(592)],this[t(506)]()):this[t(492)][t(545)][t(498)]?(this.renderType=X.canvas,this._initContext2D()):(this[t(584)]=X[t(507)],this[t(585)]())}[bn(570)](){const t=bn;this[t(492)][t(545)][t(561)]&&pi()?(this._initContextGl2(),this[t(565)]&&(this.isWcsWebgl2=!0)):this[t(606)]()}[bn(502)](){const t=bn;return function(t){const e=oi;return typeof t[e(371)]===e(579)}(this[t(510)])&&this.player._opt[t(551)]}_bindOffscreen(){this[bn(535)]=this.$videoElement.getContext("bitmaprenderer")}[bn(586)](t){const e=bn;this.yuvList.push(t),this[e(552)]()}[bn(552)](){const t=bn;for(;!(this.yuvList.length<=0);){const e=this[t(591)].shift();this[t(560)](e)}}[bn(560)](t){const e=bn;if(this.renderType!==X.mse){const s={ts:t.ts||0,fps:!0};this[e(492)].updateStats(s)}switch(this.renderType){case X[e(501)]:this[e(535)][e(557)](t[e(608)]);break;case X.webgl:case X[e(592)]:case X[e(508)]:if(this[e(587)])return void this[e(492)][e(534)](e(555),e(597));let s=t[e(516)];if(this[e(492)][e(509)]&&this[e(492)].ai&&this[e(492)].ai[e(514)]){null===this[e(518)]&&(this[e(518)]=je());const i=je();i-this[e(518)]>=this[e(492)][e(545)].aiFaceDetectInterval&&(s=this.player.ai[e(514)].detect({width:this[e(510)][e(540)],height:this[e(510)].height,data:t[e(516)],ts:t.ts||0}),this[e(518)]=i)}if(this[e(492)].objectDetectActive&&this.player.ai&&this[e(492)].ai.objectDetector){null===this[e(541)]&&(this.prevAiObjectDetectTime=je());const i=je();i-this[e(541)]>=this.player._opt[e(571)]&&(s=this[e(492)].ai.objectDetector.detect({width:this[e(510)][e(540)],height:this.$videoElement[e(521)],data:t[e(516)],ts:t.ts||0}),this.prevAiObjectDetectTime=i)}if(this.player[e(609)]&&this.player.ai&&this[e(492)].ai[e(493)]){null===this[e(578)]&&(this[e(578)]=je());const s=je();if(s-this[e(578)]>=this[e(492)][e(545)][e(527)]){const i=this.player.ai[e(493)][e(588)]({width:this[e(510)][e(540)],height:this.$videoElement[e(521)],data:t[e(516)]});this[e(578)]=s,i&&this[e(492)][e(549)](M.aiOcclusionDetectResult,{ts:t.ts||0})}}if(this[e(492)][e(581)]&&this[e(492)].ai&&this[e(492)].ai[e(538)]){const s=this[e(492)].ai.imageDetector[e(588)]({width:this[e(510)][e(540)],height:this.$videoElement.height,data:t[e(516)]});if(s&&s.data&&(this[e(492)].emit(M[e(523)],{type:s.type,ts:t.ts||0}),this[e(492)][e(545)].aiImageDetectDrop))return void this[e(492)][e(505)](e(555),e(533)+s[e(562)]+e(548))}if(this[e(584)]===X.webgpu)try{if(!this[e(583)])return void this[e(492)][e(534)](e(555),e(536));this[e(583)][e(490)](this[e(510)].width,this[e(510)][e(521)],s)}catch(t){this[e(492)][e(582)](e(555),e(574)+t[e(500)]())}else if(this[e(584)]===X[e(507)])try{this[e(565)][e(490)](this[e(510)][e(540)],this.$videoElement.height,s)}catch(t){this[e(492)].debugError(e(555),"doRender webgl render context is lost "+(this[e(566)]&&this[e(566)][e(495)]())+e(496)+t[e(500)]())}else if(this.renderType===X[e(508)]){const i=_s(s,{format:e(491),codedWidth:this[e(539)][e(540)],codedHeight:this[e(539)][e(521)],timestamp:1e3*t.ts});this[e(610)][e(530)](i,0,0,this[e(510)].width,this[e(510)][e(521)]),qs(i)}break;case X[e(593)]:this.webGPURender?(this[e(583)][e(586)](t[e(494)]),qs(t.videoFrame)):this[e(565)]?(this.webglRender.render(t[e(494)]),qs(t[e(494)])):this.context2D?(this.context2D.drawImage(t[e(494)],0,0,this[e(510)][e(540)],this[e(510)].height),qs(t.videoFrame)):this[e(492)][e(534)](e(555),e(568));break;case X[e(567)]:this[e(610)][e(530)](t.$video,0,0,this[e(510)].width,this[e(510)][e(521)]);break;case X[e(554)]:this[e(610)][e(530)](t.$video,0,0,this.$videoElement[e(540)],this[e(510)][e(521)]);break;case X[e(556)]:this[e(610)][e(530)](t.$video,0,0,this[e(510)][e(540)],this.$videoElement[e(521)])}let s=t.ts||0;this[e(584)]===X[e(567)]&&(s=parseInt(1e3*t[e(579)][e(504)],10)+(this[e(492)].mseDecoder.firstRenderTime||0)),this[e(492)][e(519)](s),this.doAddContentToWatermark(),this[e(572)]()}[bn(600)](){const t=bn;switch(super[t(600)](),this[t(584)]){case X.offscreen:(function(t,e){const s=Me,i=document[s(553)]("canvas");i[s(401)]=t,i[s(417)]=e;const r=window[s(610)](i,0,0,t,e);return i[s(401)]=0,i.height=0,r})(this.$videoElement[t(540)],this[t(510)][t(521)])[t(577)]((e=>{this[t(535)].transferFromImageBitmap(e)}));break;case X.webgl:this[t(566)].clear(this[t(566)][t(489)]);break;case X[t(592)]:this[t(583)][t(546)]();break;case X[t(508)]:this[t(610)].clearRect(0,0,this[t(510)][t(540)],this[t(510)].height);break;case X[t(593)]:this[t(583)]?this[t(583)][t(546)]():this[t(566)]?this[t(566)][t(546)](this[t(566)].COLOR_BUFFER_BIT):this.context2D&&this[t(610)].clearRect(0,0,this[t(510)].width,this[t(510)].height);break;case X[t(567)]:this[t(610)][t(520)](0,0,this[t(510)][t(540)],this[t(510)][t(521)]);break;case X[t(554)]:this.context2D[t(520)](0,0,this.$videoElement[t(540)],this.$videoElement[t(521)]);break;case X.webrtc:this.context2D[t(520)](0,0,this[t(510)][t(540)],this[t(510)][t(521)])}}[bn(526)](){const t=bn;this.tempTextCanvas=document.createElement("canvas"),this[t(542)]=this[t(559)][t(537)]("2d"),this[t(559)][t(540)]=600,this[t(559)][t(521)]=20}doAddContentToCanvas(){const t=bn;this[t(513)][t(544)]>0&&this[t(610)]&&function(t){const e=Me;let{ctx:s,list:i}=t;s[e(410)](),(i||[])[e(611)]((t=>{const i=e;"text"===t[i(383)]?(s[i(600)]=(t[i(364)]||12)+i(640),s[i(492)]=t[i(645)]||"green",s[i(498)](t[i(435)],t.x,t.y)):t[i(383)]===i(451)&&(s.strokeStyle=t[i(645)]||i(537),s.lineWidth=t[i(422)]||2,s[i(429)](t.x,t.y,t[i(401)],t[i(417)]))})),s.restore()}({ctx:this[t(610)],list:this[t(513)]})}[bn(531)](){const t=bn;this[t(513)][t(544)]>0&&this.contextGl&&this[t(503)]&&this[t(513)][t(603)]((e=>{const s=t,i=e.x,r=e.y;if(e[s(562)]===s(511)){const t=e.width,n=e[s(521)],o=function(t){const e=Me;return[parseInt(t[e(509)](1,3),16)/255,parseInt(t[e(509)](3,5),16)/255,parseInt(t[e(509)](5,7),16)/255,1]}(e[s(553)]||s(547)),a=e[s(604)]||4;if(!t||!n)return;this.webglRectRender.drawBox({x:i,y:r,width:t,height:n,lineColor:o,lineWidth:a,canvasWidth:this[s(510)][s(540)],canvasHeight:this[s(510)][s(521)]})}else if(e[s(562)]===s(595)){const t=e[s(595)]||"";if(!t)return;const n=e[s(486)]||20,o=e[s(553)]||s(547);!this.tempTextCanvas&&this[s(526)](),this[s(542)][s(520)](0,0,this[s(559)].width,this[s(559)][s(521)]),this[s(542)].font=n+s(590),this[s(542)].fillStyle=o,this[s(542)][s(528)]=s(550),this.tempTextCanvasCtx[s(599)](t,0,0),this[s(565)][s(576)](this[s(510)][s(540)],this.$videoElement.height,i,r,this[s(559)])}}))}}function En(t,e){const s=Cn();return(En=function(t,e){return s[t-=126]})(t,e)}function In(t,e){const s=En;return t[s(152)][s(142)](e)}function Tn(t,e){const s=En;return t[s(152)][s(159)](e)}function kn(t,e){const s=En;return t.classList[s(143)](e)}function _n(t,e){const s=En;return e instanceof Element?t[s(149)](e):t[s(151)](s(174),String(e)),t[s(157)]||t[s(170)]}function Cn(){const t=["getBoundingClientRect","afterbegin","querySelector","top","from","add","contains","querySelectorAll","clientHeight","documentElement","8798436kxYNmH","data-balloon-pos","appendChild","setAttribute","insertAdjacentHTML","classList","6PbMVab","height","1025450shsiyy","1238748iwxyhN","lastElementChild","2yjkNKe","remove","removeChild","filter","max","parentNode","left","style","12FQOkGT","length","52900yPiFnz","26832256qVSKBI","lastChild","innerHeight","innerWidth","clientWidth","beforeend","5032800vwdHdi","width","parentElement","8fWIgvY","forEach","composedPath","children","indexOf","firstChild","getComputedStyle","keys","4361007ihxLiO"];return(Cn=function(){return t})()}function Rn(t,e,s){return t&&t[En(165)]&&vs(e)&&(t.style[e]=s),t}function Dn(t,e){const s=En;return t.composedPath&&t[s(130)]()[s(132)](e)>-1}function Ln(t){const e=En;let s=!1;return t&&t.parentNode&&(t[e(163)].removeChild(t),s=!0),s}!function(t,e){const s=En,i=t();for(;;)try{if(668141===-parseInt(s(156))/1*(parseInt(s(158))/2)+parseInt(s(153))/3*(parseInt(s(168))/4)+parseInt(s(155))/5*(-parseInt(s(166))/6)+-parseInt(s(136))/7*(parseInt(s(128))/8)+parseInt(s(147))/9+-parseInt(s(175))/10+parseInt(s(169))/11)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Cn);const xn=Bn;function Pn(){const t=["getMseMineType","supportVideoFrameCallbackHandle","fixMobileAutoFullscreen","_getBufferStore","updateCurrentPts","prevAiOcclusionDetectTime","_replay(webrtc H264) then but not playing and retry play times is ","write","display"," and drop","floor","webkitDecodedFrameCount","doAddAiContentToWatermark","eventListenList","video","src"," and delay is "," and message is ","left","1000YmWBOg","level","toString","deg)","getVideoPlaybackQuality","videoRenderSupportScale","toDataURL","drawImage","data","isMSECurrentMoreThanBufferedPause","none"," set playbackRate is ","videoElementPlayingFailed","getVideoBufferTimeRange","base64","progress","stop","handleRender","video.buffered is empty","isPlayer","_mseWorkerData","_replay","top","screenshotWatermark","blur(0px)","loadedmetadata","position","videoBufferDelay","transform","geLoadedTime","2769291nCJXhU","_opt","removeLoadingBgImage","451TObqyZ","string","currentTime","videoBuffer","type","checkSourceBufferStore","8004888gJUoOs","objectDetector","TAG_NAME","render() error, video is paused and readyState is ","encTypeCode","waiting","playVodVideoSeekingByMse","render() video is paused and replay success","videoStart","download"," ,currentTime is ","getVideoBufferRangeList","firstRenderTime"," < 0 and check video is paused : ","name","waiting and currentTime is ","_detectAndFixStuckPlayback","backdropFilter"," and currentTime is ","undefined","isRenderRetryPlayingTimes","filename","webkit-playsinline","videoDecoderInitializationFailed","prevAiFaceDetectTime","videoWidth","playsinline","isMseDecoderUseWorker","totalVideoFrames","_isNeedAddBackDropFilter","destroy","I420","removeChild","screenshotCopyrightWatermark","ratechange","imageDetectActive","aiImageDetectResult","faceDetectActive","Video","_play then but not playing and retry play and isRetryPlayingTimes is ","updateStats","useVideoPlayAudio","close","objectDetectActive","then","split","updateVideoTimestamp","decoderWorker","isFullResize","_delayEmitVodVideoWaitingInterval","indexOf","max","doAddContentToWatermark","_play","$videoElement","clearVisibilityChangePlayTimeout"," ,seek to ","trackGenerator","setRate","_getPlaybackRate","videoFrameCallback() and isDestroyedOrClosed and return"," ,canplayReceived is ","_getVideoReadyState","detect","canplay and video is paused and try to play","getVideoBufferLastTime",", emit error and use canvas render","canplay","_clearDelayEmitVodVideoWaiting","video playback Rate change"," and current time is "," rotate(","corruptedVideoFrames","stringify","mediaTime","play","render() and ai occlusion detect result is true","screenshot failed, video is not ready","canplay and video is paused and isMSECurrentMoreThanBufferedPause is "," and emit error to use canvas render","isWebrtcH264","vwriter","videoFrameCallback","mseDecoderUseWorker","_checkVodVideoWaiting and player is destroyed or closed and return","removeAttribute","height"," - current is ","screenshotUseHighQuality","29038640giPnSD","bind","mseDecoder","debugWarn","16DtrDHq","getType","objectFit","_checkVodVideoWaiting","paused","_replay then but not playing and retry play times is ","wasmUseVideoRenderError","canplay and isPlayVodUseMSE an isPaused , next call $videoElement.play() success","_detectAndFixStuckPlayback() set detectAndFixStuckPlaybackStartTime is ","videoHeight"," and retry play","isOldHls","fixMobileAutoFullscreen and isIOS ","format","30712NsupEM","render","$container","replayTimeout","visibilityChangePlayTimeout","playVodWaiting","clearReplayTimeout"," to ","_detectAndFixStuckPlayback() and isStalled is ","off"," ,videoReadyState is ","render() and ai image detect result type is ","aiOcclusionDetectInterval","_play error and player is isDestroyedOrClosed and return","vertical","stalled","2338dwpfcJ","Mse Mine Type: ","screenshotByCurrentWatermark"," and emit error","getHasInit","on error","not support requestVideoFrameCallback and use timeupdate event to update stats","length","h264","canplay and video is paused and isMSEPlaybackRateChangePause is ","isPaused","_handleUpdatePlaybackRate","isUseHls265UseMse","isRetryPlaying","videoElementPlayingFailedForWebrtc"," is ","requestVideoFrameCallback","_removeProgressProxyDestroy()","appendChild","debugLog","initCanvasViewSize","isDestroyedOrClosed","resize","forEach",", retry times is ","emit","getWriter","mseUseCanvasRender","writable","check","audio","getDuration","imageDetector"," and timeout","canplayReceived","translateZ(0)","rate","_getVideoCurrentTime","checkSourceBufferDelay","isRetryPlayingTimes","end","catch","isMSEPlaybackRateChangePause","canplay and isPlayVodUseMSE an isPaused , next call $videoElement.play()","getLastBufferDelayEndTime"," so next try to play"," = ","style","ended","_cancelVideoFrameCallback","videoFrame","getLoadedPercent","clearCheckVideoCanplayTimeout","push","occlusionDetector","isRenderRetryPlaying","faceDetector","_canScreenshot","mediaStream","_resize","_resize()","screenshotCanvasContext","audioTrackGenerator","_checkVodVideoWaitingInterval","code","canplay and isPlayVodUseMSE and isEnded","Video Info: ","visibilityChange is true and lastTime is ","cancelVideoFrameCallback","imageSmoothingQuality","setAttribute","getPlaybackQuality","droppedVideoFrames","$screenshotCanvasElement","aiObjectDetectInterval","_checkVodVideoWaiting and currentTime is ","imageSmoothingEnabled","play and readyState: ","bindMediaStream","srcObject","timeupdate","checkVideoCanplayTimeout and video is not playing and buffer store is ",",\n e.message is ","png","progressProxyDestroy","buffered","Error Code ","true","handleUpdatePlaybackRate and buffered is ","mirrorRotate","clearRect","error","Details: ","pauseDelayTimeout","blob","clear","visibilityChange","detectAndFixStuckPlaybackStartTime","width","emit playVodWaiting","videoInfo","readyState","player"," and isAndroid ","_delayEmitVodVideoWaitingInterval and player is destroyed or closed and return","_times","isPlayVodUseMSE","_play error render() error, video is paused and replay error and\n e.name is "," rotateY(180deg)","getContext","isEnded","useMSE","x5-video-player-type","_createScreenShotCanvas","muted"," , try to seek ","isMSENotSupportAudioFormat","quality","playbackRate","isAliyunRtc","598266xNOQSI"," and current is ","playVod","seeked","output","fixChromeVideoFlashBug","noposter","_clearCheckVodVideoWaiting","_play error","playVodCanplay","_cancelVideoFrameCallback() cancelVideoFrameCallback","_play error and\n e.name is ","checkVideoCanplayTimeout","null","isUseMSE","clearPauseDelayTimeout","isPlaying","waiting and isDestroyedOrClosed,so return","code is ","mseWaitVideoCanplayTimeout","getBufferMaxDelayTime","render and this.vwriter is null","clearView","prevAiObjectDetectTime","_detectAndFixStuckPlayback() and video is stuck and currentTime is ","screenshotByRect failed, video is not ready and stats is ","poster","getVideoBufferDelayTime"," and startTime is ","pause","support requestVideoFrameCallback and use videoFrameCallback","getShowVideoRect","getDecodePlaybackRate","querySelector","message",",\n e.message is ","block","aiFaceDetectInterval","isPause","debugError","contain","h5-page","getCurrentTime","absolute","disablePictureInPicture","canplay and isDestroyedOrClosed,so return","emitError","events","webkitDroppedFrameCount","playVodTimeCache","_startVideoFrameCallback","5157565cWiCmo","_removeProgressProxyDestroy","mediaSourceBufferedIsZeroError","_delayPlay"," and isDestroyedOrClosed is ","start","aiImageDetectDrop","_play success","isCurrentTimeInBufferEnd","awriter","load","_delayEmitVodVideoWaiting"];return(Pn=function(){return t})()}function Bn(t,e){const s=Pn();return(Bn=function(t,e){return s[t-=305]})(t,e)}!function(t,e){const s=Bn,i=t();for(;;)try{if(809880===parseInt(s(379))/1*(-parseInt(s(508))/2)+-parseInt(s(628))/3+-parseInt(s(492))/4*(parseInt(s(346))/5)+parseInt(s(385))/6+-parseInt(s(315))/7*(parseInt(s(478))/8)+parseInt(s(376))/9+parseInt(s(474))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Pn);class Mn extends Qr{constructor(t){const e=Bn;super(),this[e(610)]=t,this[e(387)]=e(423);const s=document.createElement("video");s[e(622)]=!0,s[e(308)]=!0,Ze()&&(s[e(654)]=e(634)),s[e(555)][e(372)]=e(307),s[e(555)][e(368)]=0,s[e(555)][e(345)]=0,s[e(555)][e(335)]=e(356),this[e(318)]=!1,t[e(494)][e(526)](s),this[e(439)]=s,this[e(581)]=null,this[e(569)]=null,this[e(566)]=null,this[e(466)]=null,this[e(324)]=null,this.trackGenerator=null,this.audioTrackGenerator=null,this[e(633)](),this[e(329)](),this[e(340)]=[],this[e(563)]=!1,this[e(405)]=0,this[e(521)]=!1,this[e(547)]=0,this[e(542)]=!1,this[e(592)]=null,this[e(640)]=null,this.visibilityChangePlayTimeout=null,this[e(601)]=null,this[e(495)]=null,this[e(605)]=null;const i=fi();this[e(328)]=null,this[e(571)]=null,this[e(434)]=null;const{proxy:r}=this.player[e(311)],n=r(this[e(439)],"canplay",(()=>{const t=e;if(this[t(610)].isDestroyedOrClosed())this[t(610)][t(527)](this[t(387)],t(309));else if(this[t(610)][t(527)](this[t(387)],t(452)),this.canplayReceived=!0,this[t(610)][t(614)]()){if(this[t(610)][t(630)][t(618)]())return void this[t(610)][t(527)](this[t(387)],t(573));this[t(453)](),this._clearCheckVodVideoWaiting(),this[t(610)][t(533)](M[t(637)]),this[t(518)]()&&(this[t(610)][t(527)](this[t(387)],t(551)),this[t(439)]&&this.$videoElement.play().then((()=>{const e=t;this[e(610)][e(527)](this.TAG_NAME,e(485)),this[e(314)]()})))}else this[t(318)]?(this[t(560)](),this._play()):this[t(439)].paused&&(this[t(610)][t(550)]?(this[t(610)][t(527)](this[t(387)],t(517)+this[t(610)][t(550)]+t(553)),this.player.isMSEPlaybackRateChangePause=!1,this[t(438)]()):this[t(610)][t(355)]?(this[t(610)][t(527)](this[t(387)],t(463)+this[t(610)].isMSECurrentMoreThanBufferedPause+t(553)),this[t(610)][t(355)]=!1,this[t(438)]()):(this[t(610)][t(477)](this[t(387)],t(449)),this[t(438)]()))})),o=r(this[e(439)],e(390),(()=>{const t=e;this[t(610)].isDestroyedOrClosed()?this.player[t(527)](this.TAG_NAME,t(645)):(this.player[t(527)](this[t(387)],t(400)+this[t(306)]()),this.player[t(614)]()&&ci(this[t(610)][t(476)][t(323)]())&&(this[t(326)](),this[t(481)]()))})),a=r(this[e(439)],e(371),(()=>{const t=e;this[t(610)].debugLog(this[t(387)],t(371))})),h=r(this[e(439)],e(588),(s=>{const r=e;if(!this[r(610)].isDestroyedOrClosed()){if(ci(i)){const e=parseInt(1e3*this.getCurrentTime(),10);if(t.isWebrtcH264()||this.player.isOldHls()||this[r(610)].isAliyunRtc())this.player[r(533)](M.timeUpdate,e),t[r(363)](),t[r(425)]({fps:!0,ts:e,dts:e}),this.player.updateCurrentPts(e);else if(hi(this[r(610)][r(377)].useMSE)&&ci(this.player[r(377)][r(535)]))if(this[r(610)][r(476)]){let t=parseInt(1e3*this.getCurrentTime(),10)+(this.player[r(476)].firstRenderTime||0);this[r(610)][r(331)](t)}else if(this[r(610)][r(377)][r(468)]){let t=parseInt(1e3*this[r(306)](),10)+(this[r(610)]._mseWorkerData.firstRenderTime||0);this[r(610)][r(331)](t)}this[r(437)]()}this[r(610)][r(412)]()&&(this.player[r(432)][r(431)](this[r(306)]()),this._handleUpdatePlaybackRate())}})),c=r(this.$videoElement,e(599),(t=>{const s=e;if(!this[s(439)][s(599)])return void this[s(610)][s(477)](this.TAG_NAME,s(513),t);let i={};if(this[s(610)][s(642)]()&&(i=this[s(610)][s(327)]()),this[s(610)][s(667)](this.TAG_NAME,s(594)+this[s(439)].error.code+" "+Tt[this[s(439)].error[s(572)]]+"; "+s(600)+this[s(439)][s(599)].message+"; "+s(574)+JSON[s(458)](this[s(608)])+"; "+s(509)+i[s(341)]+"; "),this[s(610)][s(642)]()){this[s(439)][s(599)][s(572)];const t=this.$videoElement.error.message;-1!==t[s(435)](kt[s(408)])?this[s(610)].isMSEVideoDecoderInitializationFailedNotSupportHevc=!0:-1!==t[s(435)](kt.audioDecoderError)?this[s(610)].isMSEAudioDecoderError=!0:-1!==t[s(435)](kt.notSupportAudioFormat)&&(this.player[s(624)]=!0)}this[s(610)].isHlsCanVideoPlay()})),l=r(this[e(439)],e(507),(()=>{this[e(401)](!0)}));if(this[e(592)]=r(this[e(439)],"progress",(()=>{this[e(401)]()})),this[e(340)][e(561)](n,o,h,c,a,l),this.player[e(642)]()){const t=r(this[e(439)],ct[e(419)],(()=>{const t=e;this[t(610)][t(527)](this[t(387)],t(454),this[t(439)]&&this.$videoElement[t(626)]),this[t(439)]&&this[t(439)][t(482)]&&(this.player[t(477)](this[t(387)],"ratechange and video is paused and sent isMSEPlaybackRateChangePause true"),this.player[t(550)]=!0)}));this.eventListenList.push(t),hi(this.player[e(365)]())&&this.player.on(M[e(604)],(t=>{t&&(this.visibilityChangePlayTimeout=setTimeout((()=>{const t=Bn;if(this[t(440)](),this[t(610)][t(644)]()&&this[t(439)]){const e=this.getVideoBufferLastTime();if(e-this.$videoElement[t(381)]>this[t(648)]()){const s=this[t(552)](1);this[t(610)][t(527)](this[t(387)],t(575)+e+t(403)+this[t(439)][t(381)]+" so set currentTime to "+s),this[t(439)][t(381)]=s}}}),300))}))}if(this[e(610)][e(614)]()){const t=r(this.$videoElement,jt.progress,(()=>{const t=e;this[t(610)][t(527)](this[t(387)],t(361)),this[t(610)][t(533)](M[t(313)],this[t(559)]())})),s=r(this[e(439)],"seeking",(()=>{const t=e;this[t(610)][t(527)](this[t(387)],"seeking",this[t(439)][t(381)]),this[t(610)][t(533)](M[t(391)],this.$videoElement.currentTime)})),i=r(this.$videoElement,e(631),(()=>{const t=e;this.player[t(527)](this[t(387)],"seeked",this[t(439)][t(381)]),this[t(610)][t(630)].isSeeking()&&this[t(610)][t(630)].removeSeekingTimestamp(),this.player[t(533)](M.playVodVideoSeekedByMse,this[t(439)].currentTime)}));this.eventListenList.push(t,s,i)}this[e(314)](),this[e(610)][e(527)](this[e(387)],"init")}async[xn(415)](){const t=xn;if(super.destroy(),this[t(560)](),this[t(498)](),this[t(440)](),this[t(643)](),this[t(557)](),this[t(316)](),this[t(340)][t(515)]&&(this[t(340)][t(531)]((t=>{t()})),this[t(340)]=[]),this.isRenderRetryPlaying=!1,this[t(405)]=0,this.isRetryPlaying=!1,this[t(547)]=0,this[t(542)]=!1,this.player[t(377)].videoRenderSupportScale&&this[t(414)]()){const e=this[t(610)][t(494)];e[t(555)][t(402)]=t(356),e[t(555)].transform="none"}if(this[t(581)]&&(this[t(581)][t(471)]=0,this[t(581)][t(606)]=0,this[t(581)]=null),this[t(569)]=null,this[t(439)]){this[t(439)].pause&&(this[t(439)][t(657)](),this[t(439)][t(622)]=!0),this[t(439)].currentTime=0,this[t(439)][t(587)]&&(this.$videoElement[t(587)]=null,this[t(439)][t(470)](t(587))),this.$videoElement.src&&(this[t(439)].src="",this.$videoElement[t(470)]("src"));try{this.$videoElement[t(325)]()}catch(t){}if(!Ln(this[t(439)])){this.player[t(494)][t(661)]("video")&&this[t(610)][t(494)]&&this.player.$container[t(417)](this[t(439)])}this[t(439)]=null}if(this[t(442)]&&(this[t(442)][t(362)](),this[t(442)]=null),this[t(570)]&&(this[t(570)][t(362)](),this[t(570)]=null),this[t(466)]){try{await this.vwriter[t(427)]()}catch(t){}this[t(466)]=null}if(this[t(324)]){try{await this[t(324)][t(427)]()}catch(t){}this[t(324)]=null}this[t(318)]=!1,this.mediaStream&&(this[t(566)].getTracks()[t(531)]((e=>e[t(362)]())),this[t(566)]=null),this[t(501)](),this[t(610)][t(527)](this[t(387)],t(415))}[xn(621)](){const t=xn,e=document.createElement("canvas");this[t(581)]=e,this.screenshotCanvasContext=e[t(617)]("2d"),this[t(610)]._opt[t(473)]&&(this[t(569)].imageSmoothingEnabled=!0,this.screenshotCanvasContext[t(584)]&&(this[t(569)][t(577)]="high"))}[xn(586)](){const t=xn;if(this[t(610)].canVideoTrackWritter()&&ms()&&gs()&&!this[t(566)]){this[t(610)][t(527)](this.TAG_NAME,"bindMediaStream"),this[t(442)]=new MediaStreamTrackGenerator({kind:t(341)}),this[t(610)][t(426)]()&&(this[t(570)]=new MediaStreamTrackGenerator({kind:t(538)}),this[t(324)]=this[t(570)][t(536)][t(534)]());const e=[this[t(442)]];this[t(570)]&&e[t(561)](this[t(570)]),this.mediaStream=new MediaStream(e),this[t(439)][t(587)]=this[t(566)],this[t(466)]=this[t(442)][t(536)].getWriter()}}[xn(467)](t){const e=xn;let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.player.isDestroyedOrClosed())return void this[e(610)][e(527)](this[e(387)],e(445));this[e(610)][e(363)]();const i=parseInt(1e3*Math[e(436)](s.mediaTime,this[e(306)]()),10)||0;if(this[e(610)][e(520)]())this[e(610)].updateStats({fps:!0,ts:i});else if(this.player[e(412)]()){!this.player[e(613)][e(393)]&&(this[e(610)][e(613)][e(393)]=je(),this[e(610)].handlePlayToRenderTimes());const t=i+(this[e(610)][e(366)][e(397)]||0);if(this[e(610)].updateStats({fps:!0,dfps:!0,ts:t,mseTs:i}),this[e(610)][e(533)](M.timeUpdate,t),ci(this.getHasInit())&&s.width&&s[e(471)]){const t={width:s[e(606)],height:s[e(471)]};this.updateVideoInfo(t),this[e(528)]()}}if(this[e(610)][e(465)]()||this[e(610)][e(489)]()||this.player[e(627)]()){if(this[e(610)][e(533)](M.timeUpdate,i),ci(this[e(512)]())&&s[e(606)]&&s[e(471)]){const t={width:s.width,height:s[e(471)]};!this[e(608)][e(389)]&&!this[e(610)].isOldHls()&&(t[e(389)]=G[e(516)]),this.updateVideoInfo(t),this.initCanvasViewSize()}this[e(610)][e(425)]({fps:!0,ts:i,dts:i}),this.player[e(331)](i),this[e(437)]()}else if(hi(this[e(610)]._opt[e(619)])&&ci(this.player._opt.mseUseCanvasRender)){if(this[e(610)][e(476)]){let t=parseInt(1e3*Math[e(436)](s[e(459)],this[e(306)]()),10)+(this[e(610)][e(476)][e(397)]||0);this[e(610)][e(331)](t)}else if(this[e(610)][e(377)][e(468)]){let t=parseInt(1e3*Math[e(436)](s[e(459)],this[e(306)]()),10)+(this[e(610)][e(366)][e(397)]||0);this[e(610)][e(331)](t)}this[e(437)]()}this.supportVideoFrameCallbackHandle=this[e(439)][e(524)](this[e(467)].bind(this))}fixChromeVideoFlashBug(){const t=xn;if(this[t(610)][t(377)][t(351)]&&this._isNeedAddBackDropFilter()){const e=this[t(610)][t(494)];e[t(555)][t(402)]=t(370),e[t(555)][t(374)]=t(543)}}[xn(329)](){const t=xn,e=es(),s=Ze();(e||s)&&(this[t(610)][t(527)](this.TAG_NAME,t(490)+e+t(611)+s),this[t(439)][t(578)](t(407),t(595)),this.$videoElement.setAttribute(t(411),t(595)),this[t(439)][t(578)](t(620),t(305)))}[xn(401)](t){const e=xn,s=this.$videoElement,i=s[e(593)],r=s[e(609)];if(this.player.debugLog(this[e(387)],e(500)+t+e(446)+this[e(542)]+e(502)+r+" and bufferedLength is "+i[e(515)]+e(656)+(i.length>0?i[e(320)](0):e(641))+" and currentTime is "+s[e(381)]),t||ci(this[e(542)])||r<2){if(i[e(515)]>0&&s.currentTime<i[e(320)](0))this[e(610)][e(477)](this[e(387)],e(652)+s[e(381)]+e(441)+i[e(320)](0)),s[e(381)]=i[e(320)](0),this[e(316)]();else if(this.player.isPlayUseMSE()){null===this.detectAndFixStuckPlaybackStartTime&&(this[e(605)]=je(),this.player[e(527)](this[e(387)],e(486)+this.detectAndFixStuckPlaybackStartTime));const t=je()-this.detectAndFixStuckPlaybackStartTime;t>=1e3*this[e(610)]._opt.mseWaitVideoCanplayTimeout&&(this[e(610)][e(477)](this[e(387)],e(652)+s[e(381)]+" , diff is "+t+e(541)),this.player[e(533)](U[e(647)],t))}}else this[e(316)]()}[xn(316)](){const t=xn;this[t(592)]&&(this[t(610)][t(527)](this[t(387)],t(525)),this[t(592)](),this[t(592)]=null),this.detectAndFixStuckPlaybackStartTime=null}[xn(414)](){const t=ts().type.toLowerCase();return"chrome"===t||"edge"===t}[xn(518)](){let t=!0;return this[xn(439)]&&(t=this.$videoElement.paused),t}[xn(666)](){return this[xn(518)]()}[xn(447)](){const t=xn;let e=0;return this[t(439)]&&(e=this.$videoElement[t(609)]),e}[xn(545)](){const t=xn;let e=0;return this[t(439)]&&(e=this[t(439)][t(381)]),e}[xn(460)](){const t=xn;if(this[t(439)]){const e=this[t(447)]();if(this[t(610)][t(527)](this.TAG_NAME,t(585)+e),0===e)return this[t(610)][t(527)](this.TAG_NAME,"readyState is 0 and set _delayPlay to true and listen canplay event to play"),this[t(318)]=!0,void(null===this[t(640)]&&(this[t(640)]=setTimeout((()=>{const e=t;if(this[e(560)](),!this.player[e(529)]()&&ci(this[e(644)]())){const t=this._getBufferStore();this[e(610)][e(477)](this[e(387)],e(589)+t+e(488)),this[e(439)].currentTime=t,this._replay()}}),1e3)));this[t(438)]()}}_play(){const t=xn;this[t(439)]&&this.$videoElement[t(460)]()[t(429)]((()=>{const e=t;this[e(318)]=!1,this.player[e(527)](this[e(387)],e(322)),this.isPlaying()?(this.player[e(533)](M[e(378)]),this[e(314)](),this[e(547)]=0,this.isRetryPlaying=!1):this.replayTimeout=setTimeout((()=>{this[e(498)](),this._replay()}),100)}))[t(549)]((e=>{const s=t;this[s(610)][s(529)]()?this[s(610)].debugLog(this[s(387)],s(505)):(this[s(610)][s(527)](this.TAG_NAME,s(639)+e[s(399)]+s(663)+e[s(662)]+",\n e.toString() is "+e[s(348)]()),this[s(610)][s(667)](this[s(387)],s(636),e),this[s(521)]=!1,this[s(495)]=setTimeout((()=>{this[s(498)](),this._replay()}),100))}))}[xn(367)](){const t=xn;if(!this[t(644)]()&&ci(this[t(610)][t(529)]())&&ci(this[t(521)])){if(this[t(521)]=!0,this[t(547)]>=3){let e="";return void(this[t(610)][t(465)]()?(e=t(333)+this[t(547)]+t(511),this[t(610)][t(667)](this.TAG_NAME,e),this[t(610)][t(310)](U[t(522)],e)):(e=t(483)+this.isRetryPlayingTimes+t(464),this[t(610)][t(667)](this[t(387)],e),this[t(610)].emitError(U[t(358)],e)))}this[t(610)].debugWarn(this[t(387)],t(424)+this.isRetryPlayingTimes),this[t(438)](),this.isRetryPlayingTimes++}else this[t(610)][t(527)](this.TAG_NAME,"_replay() and isPlaying is "+this.isPlaying()+" and isRetryPlaying is "+this[t(521)]+t(319)+this[t(610)][t(529)]()+" and return;")}[xn(657)](t){const e=xn;this[e(610)].debugLog(this[e(387)],"pause and isNow is "+t),this[e(644)]()&&(t?(this.$videoElement&&this[e(439)][e(657)](),this[e(557)]()):this[e(601)]=setTimeout((()=>{const t=e;this.clearPauseDelayTimeout(),this[t(439)]&&this[t(439)][t(657)](),this[t(557)]()}),100))}[xn(650)](){const t=xn;super[t(650)](),this.$videoElement&&(this[t(439)][t(657)](),this[t(439)][t(381)]=0,this[t(439)].src&&(this[t(439)][t(342)]="",this.$videoElement.removeAttribute("src")),this.$videoElement[t(587)]&&(this[t(439)][t(587)]=null,this.$videoElement[t(470)](t(587))))}screenshot(t,e,s,i){const r=xn;if(!this[r(565)]())return this[r(610)][r(477)](this[r(387)],"screenshot failed, video is not ready and stats is "+this[r(447)]()),null;t=t||je(),i=i||j.download;let n=.92;!at[e]&&j[e]&&(i=e,e=r(591),s=void 0),typeof s===r(380)&&(i=s,s=void 0),typeof s!==r(404)&&(n=Number(s));const o=this[r(439)];!this[r(581)]&&this._createScreenShotCanvas();let a=this[r(581)];a[r(606)]=o.videoWidth,a[r(471)]=o[r(487)],this[r(569)][r(353)](o,0,0,a[r(606)],a[r(471)]);const h=at[e]||at[r(591)],c=a[r(352)](h,n);if(this[r(569)][r(598)](0,0,a[r(606)],a[r(471)]),a[r(606)]=0,a[r(471)]=0,i===j[r(360)])return c;{const e=Ne(c);if(i===j[r(602)])return e;if(i===j[r(394)]){const s=h[r(430)]("/")[1];rn(e,t+"."+s)}}}[xn(369)](t){return new Promise(((e,s)=>{const i=Bn;if(Ms(t)&&(t={filename:t}),!this[i(565)]())return this[i(610)][i(477)](this[i(387)],i(462)),s("screenshot failed, video is not ready");const r=this[i(439)];(t=t||{}).width=r.videoWidth,t[i(471)]=r[i(487)],t[i(406)]=t[i(406)]||je(),t.format=t.format?at[t[i(491)]]:at[i(591)],t[i(625)]=Number(t[i(625)])||.92,t.type=t[i(383)]||j[i(394)],!this[i(581)]&&this._createScreenShotCanvas();let n=this.$screenshotCanvasElement;n[i(606)]=r[i(410)],n[i(471)]=r[i(487)],this[i(569)].drawImage(r,0,0,n[i(606)],n.height);const o=n[i(352)](t[i(491)],t[i(625)]);this.screenshotCanvasContext.clearRect(0,0,n[i(606)],n.height),n[i(606)]=0,n[i(471)]=0;const a=this[i(610)][i(377)][i(473)];Es(o,t,a)[i(429)]((s=>{const r=i;if(t[r(383)]===j[r(360)])e(o);else{const i=Ne(s);if(t[r(383)]===j[r(602)])e(i);else if(t[r(383)]===j[r(394)]){e();const s=t.format[r(430)]("/")[1];rn(i,t[r(406)]+"."+s)}}})).catch((t=>{s(t)}))}))}[xn(418)](t){return new Promise(((e,s)=>{const i=Bn;if(Ms(t)&&(t={filename:t}),!this[i(565)]())return this[i(610)].debugWarn(this[i(387)],i(462)),s(i(462));const r=this[i(439)];(t=t||{}).width=r[i(410)],t.height=r[i(487)],t.filename=t[i(406)]||je(),t[i(491)]=t.format?at[t[i(491)]]:at[i(591)],t.quality=Number(t.quality)||.92,t[i(383)]=t[i(383)]||j.download,!this[i(581)]&&this[i(621)]();let n=this[i(581)];n.width=r[i(410)],n[i(471)]=r[i(487)],this[i(569)][i(353)](r,0,0,n.width,n[i(471)]);const o=n[i(352)](t.format,t[i(625)]);this[i(569)][i(598)](0,0,n.width,n[i(471)]),n[i(606)]=0,n.height=0;const a=this[i(610)][i(377)][i(473)];Ts(o,t,a)[i(429)]((s=>{const r=i;if(t[r(383)]===j[r(360)])e(o);else{const i=Ne(s);if(t[r(383)]===j[r(602)])e(i);else if(t[r(383)]===j.download){e();const s=t.format[r(430)]("/")[1];rn(i,t[r(406)]+"."+s)}}})).catch((t=>{s(t)}))}))}[xn(510)](t){}screenshotByRect(t){const e=xn;if(!this[e(565)]())return this[e(610)][e(477)](this[e(387)],e(653)+this[e(447)]()),null;const s=this[e(439)];!this.$screenshotCanvasElement&&this[e(621)]();let i=this[e(581)];i[e(606)]=parseInt(t[e(606)],10),i[e(471)]=parseInt(t[e(471)],10),this[e(569)][e(353)](s,t.x,t.y,i[e(606)],i[e(471)],0,0,i.width,i[e(471)]);const r=at[e(591)],n=i.toDataURL(r,.92);return this.screenshotCanvasContext[e(598)](0,0,i[e(606)],i[e(471)]),i[e(606)]=0,i[e(471)]=0,n}initCanvasViewSize(){const t=xn;this[t(439)].style.display=t(664),this[t(530)]()}[xn(603)](){const t=xn,e=this[t(439)],s=e[t(593)],i=s[t(515)]?s[t(548)](s[t(515)]-1):0;e[t(381)]=i}[xn(493)](t){const e=xn;if(this[e(466)]){if(!this[e(439)][e(587)]&&(this[e(439)][e(587)]=this[e(566)]),this.isPaused()){const s=this[e(447)]();if(this[e(610)][e(477)](this[e(387)],e(388)+s),4===s&&ci(this[e(563)])){if(this[e(563)]=!0,this.isRenderRetryPlayingTimes>3){const i="render() error, video is paused and readyState is "+s+e(532)+this.isRenderRetryPlayingTimes+e(451);return this[e(610)][e(667)](this[e(387)],i),this[e(610)][e(310)](U[e(358)],i),void(t[e(558)]&&qs(t[e(558)]))}this.$videoElement.play()[e(429)]((()=>{const t=e;this[t(405)]=0,this.isRenderRetryPlaying=!1,this[t(314)](),this.player[t(527)](this[t(387)],t(392))}))[e(549)]((t=>{const s=e;this[s(563)]=!1,this[s(405)]++,this.player[s(527)](this[s(387)],s(615)+t[s(399)]+s(590)+t[s(662)]+",\n e.toString() is "+t[s(348)]()),this[s(610)][s(667)](this[s(387)],"render() error, video is paused and replay error ",t)}))}}if(this[e(610)][e(425)]({fps:!0,ts:t.ts||0}),t[e(558)])this[e(466)][e(334)](t[e(558)])[e(429)]((()=>{qs(t[e(558)])}));else if(t.output){let s=t[e(632)];if(this[e(610)][e(422)]&&this[e(610)].ai&&this.player.ai[e(564)]){null===this.prevAiFaceDetectTime&&(this.prevAiFaceDetectTime=je());const i=je();i-this.prevAiFaceDetectTime>this[e(610)]._opt[e(665)]&&(s=this.player.ai[e(564)][e(448)]({width:this[e(608)][e(606)],height:this[e(608)].height,data:t.output,ts:t.ts||0}),this[e(409)]=i)}if(this[e(610)][e(428)]&&this.player.ai&&this[e(610)].ai[e(386)]){null===this.prevAiObjectDetectTime&&(this[e(651)]=je());const i=je();i-this[e(651)]>this[e(610)][e(377)][e(582)]&&(s=this[e(610)].ai[e(386)][e(448)]({width:this[e(608)].width,height:this[e(608)][e(471)],data:t[e(632)],ts:t.ts||0}),this[e(651)]=i)}if(this.player.occlusionDetectActive&&this[e(610)].ai&&this[e(610)].ai[e(562)]){null===this.prevAiOcclusionDetectTime&&(this[e(332)]=je());const s=je();if(s-this[e(332)]>=this[e(610)][e(377)][e(504)]){const i=this[e(610)].ai[e(562)][e(537)]({width:this[e(608)].width,height:this[e(608)][e(471)],data:t[e(632)],ts:t.ts||0});this[e(332)]=s,i&&(this[e(610)][e(527)](this[e(387)],e(461)),this[e(610)].emit(M.aiOcclusionDetectResult,{ts:t.ts||0}))}}if(this[e(610)][e(420)]&&this[e(610)].ai&&this.player.ai[e(540)]){const s=this[e(610)].ai[e(540)][e(537)]({width:this.videoInfo[e(606)],height:this[e(608)][e(471)],data:t[e(632)],ts:t.ts||0});if(s&&s[e(354)]&&(this[e(610)][e(533)](M[e(421)],{type:s[e(383)],ts:t.ts||0}),this[e(610)]._opt[e(321)]))return void this[e(610)][e(527)](this.TAG_NAME,e(503)+s.type+e(336))}try{const i=_s(s,{format:e(416),codedWidth:this.videoInfo[e(606)],codedHeight:this[e(608)][e(471)],timestamp:1e3*t.ts});this.vwriter[e(334)](i)[e(429)]((()=>{qs(i)}))}catch(t){this[e(610)].debugError(this.TAG_NAME,"render error",t),this[e(610)][e(310)](U[e(484)],e(646)+t[e(572)]+e(344)+t[e(662)])}}this[e(610)][e(331)](t.ts||0),this[e(437)](),this[e(339)]()}else this[e(610)][e(477)](this[e(387)],e(649))}[xn(567)](){const t=xn;this[t(610)].debugLog(this.TAG_NAME,t(568));const e=this[t(610)]._opt,s=e.rotate,i=this[t(610)][t(659)]();let r=i[t(606)],n=i.height;this[t(439)][t(606)]=r,this[t(439)][t(471)]=n,this.$videoElement[t(555)][t(606)]=r+"px",this[t(439)].style[t(471)]=n+"px",(270===s||90===s)&&(this[t(439)][t(606)]=n,this[t(439)][t(471)]=r,this.$videoElement[t(555)][t(606)]=n+"px",this.$videoElement[t(555)][t(471)]=r+"px");let o=this.$videoElement.width,a=this[t(439)][t(471)],h=Math.floor((r-o)/2),c=Math[t(337)]((n-a)/2),l=t(668);ci(e.isResize)&&(l="fill"),e[t(433)]&&(l="cover");let d="";"none"===e.mirrorRotate&&s&&(d+=t(456)+s+t(349)),e[t(597)]===t(347)?d+=t(616):e[t(597)]===t(506)&&(d+=" rotateX(180deg)"),this[t(610)][t(377)][t(351)]&&(this.$videoElement[t(555)][t(480)]=l),this[t(439)][t(555)][t(374)]=d,this[t(439)][t(555)].padding="0",this[t(439)][t(555)][t(345)]=h+"px",this[t(439)][t(555)][t(368)]=c+"px"}[xn(479)](){return f[xn(341)]}getCurrentTime(){const t=xn;return this[t(439)][t(381)]}[xn(644)](){const t=xn;return this[t(439)]&&ci(this[t(439)][t(482)])&&ci(this[t(439)][t(556)])&&0!==this.$videoElement[t(626)]&&0!==this[t(439)].readyState}isVideoPlaying(){return this[xn(644)]()}[xn(565)](){const t=xn;return this[t(439)]&&this[t(439)][t(609)]>=1}[xn(579)](){const t=xn;let e=null;if(this[t(439)]){if(Vs(this.$videoElement.getVideoPlaybackQuality)){const s=this[t(439)][t(350)]();e={droppedVideoFrames:s[t(580)]||s[t(457)],totalVideoFrames:s[t(413)],creationTime:s.creationTime}}else e={droppedVideoFrames:this.$videoElement[t(312)],totalVideoFrames:this[t(439)][t(338)],creationTime:je()};e&&(e.renderedVideoFrames=e[t(413)]-e[t(580)])}return e}[xn(443)](t){const e=xn;this[e(439)]&&(this[e(439)][e(626)]=t)}get[xn(544)](){let t=1;return this[xn(439)]&&(t=this.$videoElement.playbackRate),t}[xn(560)](){const t=xn;this.checkVideoCanplayTimeout&&(clearTimeout(this[t(640)]),this[t(640)]=null)}[xn(498)](){const t=xn;this[t(495)]&&(clearTimeout(this[t(495)]),this.replayTimeout=null)}[xn(440)](){const t=xn;this[t(496)]&&(clearTimeout(this[t(496)]),this[t(496)]=null)}[xn(643)](){const t=xn;this.pauseDelayTimeout&&(clearTimeout(this[t(601)]),this[t(601)]=null)}[xn(557)](){const t=xn;this.supportVideoFrameCallbackHandle&&this.$videoElement&&(this[t(610)][t(527)](this[t(387)],t(638)),this[t(439)][t(576)](this.supportVideoFrameCallbackHandle),this.supportVideoFrameCallbackHandle=null)}_startVideoFrameCallback(){const t=xn;fi()?!this[t(328)]&&(this[t(610)][t(527)](this[t(387)],t(658)),this[t(328)]=this[t(439)].requestVideoFrameCallback(this.videoFrameCallback[t(475)](this))):this[t(610)][t(477)](this[t(387)],t(514))}[xn(330)](){const t=xn,e=this.$videoElement;let s=0;return e[t(593)][t(515)]>0&&(s=e[t(593)][t(320)](0)),s}[xn(519)](){const t=xn,e=this.$videoElement,s=e.buffered;s.length&&s[t(320)](0);const i=s[t(515)]?s[t(548)](s[t(515)]-1):0;let r=e[t(381)];const n=i-r,o=this[t(648)]();if(this[t(610)][t(425)]({mseVideoBufferDelayTime:n}),n>o){const s=this[t(552)](1);this[t(610)][t(527)](this[t(387)],"handleUpdatePlaybackRate and buffered is "+i+t(629)+r+" , delay buffer is more than "+o+t(523)+n+" and new time is "+s),e[t(381)]=s,r=e.currentTime}else if(n<0&&0===i)return this.player.debugWarn(this.TAG_NAME,"handleUpdatePlaybackRate and delay buffer is "+i+t(472)+r+t(554)+n+t(398)+e[t(482)]+" "),void this.player.emit(U[t(317)],t(364));if(r>1){const s=this._getPlaybackRate(i-r);e[t(626)]!==s&&(this[t(610)].debugLog(this[t(387)],t(596)+i+t(455)+r+t(343)+(i-r)+t(357)+s+" "),e[t(626)]=s)}}[xn(444)](t){const e=xn,s=this[e(439)];let i=this.player._opt[e(373)]+this.player[e(377)][e(382)];const r=Math[e(436)](i,1e3),n=r/2;return t*=1e3,1===s[e(626)]?t>r?1.2:1:t<=n?1:s.playbackRate}getVideoCurrentTime(){const t=xn;let e=0;return this[t(439)]&&(e=this[t(439)][t(381)]),e}getVideoBufferLastTime(){const t=xn,e=this[t(439)];let s=0;if(e){const i=e[t(593)];i[t(515)]&&i[t(320)](0);s=i[t(515)]?i.end(i[t(515)]-1):0}return s}[xn(655)](){const t=xn,e=this[t(439)];const s=this[t(450)]()-e[t(381)];return s>0?s:0}[xn(546)](){const t=xn,e=this[t(439)];let s=0,i=0;return e[t(593)][t(515)]>0&&(i=e[t(593)].end(e[t(593)][t(515)]-1),s=i-e[t(381)]),s<0&&(this[t(610)][t(477)](this[t(387)],"checkVideoSourceBufferDelay "+s+" < 0, and buffered is "+i+t(395)+e[t(381)]+t(623)+e.currentTime+t(499)+i),e[t(381)]=i,e[t(482)]&&(this[t(610)][t(477)](this.TAG_NAME,"checkSourceBufferDelay and video is paused and sent isMSECurrentMoreThanBufferedPause true"),this[t(610)][t(355)]=!0),s=0),s}[xn(384)](){const t=xn,e=this.$videoElement;let s=0;return e.buffered.length>0&&(s=e[t(381)]-e.buffered[t(320)](0)),s}[xn(359)](){const t=xn,e=this[t(439)];let s=null;if(e){const i=e[t(593)],r=i[t(515)]?i.start(0):0,n=i.length?i[t(548)](i[t(515)]-1):0;s={start:r,end:n,diff:n-r}}return s}[xn(396)](){const t=xn,e=this[t(439)];let s=[];if(e){const i=e[t(593)];for(let e=0;e<i[t(515)];e++){let r=i.start(e),n=i[t(548)](e);s[t(561)]({start:r,end:n})}}return s}[xn(660)](){let t=0;const e=this[xn(439)];return e&&(t=e.playbackRate),t}getBufferMaxDelayTime(){const t=xn;let e=(this[t(610)]._opt[t(382)]+this.player[t(377)][t(373)])/1e3;return Math[t(436)](5,e+3)}getReadyStateInited(){return this[xn(447)]()>=1}_clearDelayEmitVodVideoWaiting(){const t=xn;this[t(434)]&&(clearTimeout(this[t(434)]),this[t(434)]=null)}[xn(635)](){this[xn(571)]&&(clearTimeout(this._checkVodVideoWaitingInterval),this._checkVodVideoWaitingInterval=null)}[xn(326)](){const t=xn;this[t(453)](),this[t(434)]=setTimeout((()=>{const e=t;this[e(610)][e(529)]()?this[e(610)][e(527)](this[e(387)],e(612)):(this[e(610)][e(527)](this.TAG_NAME,e(607)),this[e(610)][e(533)](M[e(497)]))}),100)}[xn(481)](){const t=xn;this[t(635)](),this[t(571)]=setTimeout((()=>{const e=t;this.player.isDestroyedOrClosed()?this[e(610)][e(527)](this[e(387)],e(469)):this[e(439)]&&(this[e(610)][e(527)](this[e(387)],e(583)+this[e(439)].currentTime+" and update currentTime to "+(this[e(439)][e(381)]+.1)),this[e(439)][e(381)]=this[e(439)][e(381)]+.1)}),4e3)}setCurrentTime(t){const e=xn;this.$videoElement&&(this[e(439)][e(381)]=t)}[xn(618)](){const t=xn;let e=!1;return this[t(439)]&&(e=this[t(439)][t(556)]),e}[xn(375)](){const t=xn;let e=0;return this.$videoElement&&this.$videoElement.buffered[t(515)]>0&&(e=this[t(439)].buffered[t(548)](this[t(439)].buffered[t(515)]-1)),e}[xn(539)](){let t=0;return this[xn(439)]&&(t=this.$videoElement.duration),t}[xn(559)](){const t=xn;let e=0;if(this.$videoElement){const s=this.getDuration();s&&(e=this[t(375)]()/s)}return e}[xn(552)](){const t=xn;let e=arguments[t(515)]>0&&void 0!==arguments[0]?arguments[0]:1,s=this[t(439)][t(381)];const i=this[t(396)]();if(0===i[t(515)])return s;const r=i[i[t(515)]-1];return s=r.end-r.start<1?r[t(320)]:r[t(548)]-(e||1),s}}const Fn=On;function On(t,e){const s=Un();return(On=function(t,e){return s[t-=481]})(t,e)}function Un(){const t=["sync frame duration is ","bufferSize","_doRender","183780LaNdKV","CanvasVideoPlayback","canvas","contextGl","isPlaybackPauseClearCache","cancelRequestAnimationFrameRequest","doRender webgl render context is lost ","_initContext2D","init","_renderFps","webglRender","96HkBJhu","isUseFpsRender","playInterval","render","initVideo","playbackDelayTime","136nUTZIP","_sync","fps","2265688bEyjiQ"," and bufferList length is ","setFps min","then","startRender$2","debugWarn","debugLog","webgpu","ceil","height","shift","_requestAnimationFrameRequest","_startfpsTime","doRender webgpu render and error: ","toString","destroy","bufferList","drawImage","updateStats","43554kBEgHN","4816431biBPcp","useWCS","buffer size is ","webgl","handleRender","CanvasVideoPlayVod","startRender","playbackRate","_startFpsTimestamp","length","render animation frame duration is ","ms and fps is ","clearView","doRender webgpu render is not init","context2D","fps is","videoInfo","_initCanvasRender","isPlayback","player","preSyncTimestamp","_opt"," and use startRender() instead","width","setStreamFps","getStreamFps","requestAnimationFrameMaxDiff","ms more than ","calc fps is ","resume","_updateSync","buffer","setFps","bind","TAG_NAME","initFps, has calc fps","_initContextGPU","createImageBitmap","setFps "," and updatePreFps"," and playbackRate is ","wcsUseWebgl2Render","setRate","renderType","listenPlaybackPause","_hasCalcFps"," and error: ","playVod","playback","getCanvasType","streamFps","playbackConfig","render$2","webGPURender","tfTs","isPlaybackOnlyDecodeIFrame","221928NNpKfr","debugError"," pre fps is ","COLOR_BUFFER_BIT","preFps","listenPlayVodPause","pause","delayTimeout","playbackPause","clear","bufferListLength is","useWebGPU","playVodPause","_firstTimestamp","_stopSync","initFps","useWebCanvas","renderYUV","210028YcHANI","_doPlay","videoFrame","1034598HeLEVw","isPlayVod","$videoElement","isWcsWebgl2","_requestAnimationFramePrevTs"];return(Un=function(){return t})()}!function(t,e){const s=On,i=t();for(;;)try{if(296306===-parseInt(s(486))/1+parseInt(s(489))/2+parseInt(s(536))/3+parseInt(s(517))/4+parseInt(s(497))/5*(-parseInt(s(508))/6)+parseInt(s(593))/7*(-parseInt(s(514))/8)+parseInt(s(537))/9)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Un);class Nn extends yn{constructor(t){const e=On;super(t),this.TAG_NAME=t.isPlayVod()?e(542):e(498),this[e(533)]=[],this.playInterval=null,this[e(516)]=1,this[e(597)]=1,t[e(490)]()&&(this[e(516)]=25,this[e(597)]=25),this[e(587)]=0,this[e(544)]=1,this[e(481)]=null,this[e(506)]=0,this[e(529)]=null,this[e(545)]=null,this[e(582)]=!1,this._requestAnimationFrameRequest=null,this[e(493)]=null,this.preSyncTimestamp=null,this[e(556)].isPlayback()?this[e(556)].on(M[e(601)],this[e(581)][e(570)](this)):this.player[e(490)]()&&this[e(556)].on(M[e(605)],this[e(598)][e(570)](this)),this[e(556)][e(523)](this.TAG_NAME,e(505))}async[Fn(532)](){const t=Fn;this.clear(),this._stopSync(),this[t(502)](),this[t(481)]=null,this[t(544)]=1,this[t(516)]=1,this[t(597)]=1,this._renderFps=0,this[t(529)]=null,this._startFpsTimestamp=null,this[t(582)]=!1,super[t(532)](),this[t(556)].debugLog(this[t(571)],t(532))}listenPlaybackPause(t){const e=Fn;t?(this[e(599)](),this[e(556)][e(585)][e(501)]&&this[e(602)]()):this.resume()}[Fn(598)](t){t?this.pause():this.resume()}[Fn(554)](){const t=Fn;this.player[t(558)].useWCS?(this[t(580)]=X.webcodecs,pi()&&this[t(556)]._opt[t(578)]?(this._initContextGl2(),this[t(507)]&&(this[t(492)]=!0)):this[t(504)]()):this[t(556)][t(558)][t(604)]?(this[t(580)]=X[t(524)],this[t(573)]()):this[t(556)][t(558)][t(484)]?(this[t(580)]=X.canvas,this[t(504)]()):(this[t(580)]=X[t(540)],this._initContextGl())}[Fn(515)](){const t=Fn;this[t(482)]();for(let e=0;e<this[t(544)];e++)this[t(487)]();const e=Math[t(525)](1e3/this[t(516)]);this.player[t(523)](this.TAG_NAME,t(494)+e+t(548)+this.fps+t(577)+this.playbackRate),this[t(510)]=setInterval((()=>{const s=t;let i=(new Date).getTime();!this[s(557)]&&(this.preSyncTimestamp=i);for(let t=0;t<this[s(544)];t++)this[s(487)]();let r=i-this[s(557)],n=parseInt(r/e,10);n>1&&this[s(533)][s(546)]>0&&this.player.debugWarn(this[s(571)],"sync frame duration is "+r+"ms and fragDuration is "+e+"ms and diffFps is "+n+s(518)+this[s(533)][s(546)]),this[s(557)]=i}),e)}[Fn(487)](){const t=Fn;if(this[t(533)].length>0){const e=this[t(533)][t(527)]();e&&e[t(568)]&&(this[t(496)](e[t(568)]),this[t(556)].handleRender(),this[t(556)][t(555)]()&&this.player[t(585)][t(535)]({ts:e.ts,tfTs:e[t(591)]}))}}_stopSync(){const t=Fn;this[t(510)]&&(clearInterval(this.playInterval),this.playInterval=null),this[t(557)]=null}[Fn(496)](t){const e=Fn;if(this[e(556)][e(558)][e(538)])if(this[e(507)])this[e(507)][e(511)](t),qs(t);else if(Vs(t[e(574)]))try{t[e(574)]()[e(520)]((s=>{const i=e;this[i(551)][i(534)](s,0,0,this[i(491)][i(560)],this[i(491)][i(526)]),qs(t)}))}catch(t){}else this[e(551)][e(534)](t,0,0,this.$videoElement[e(560)],this[e(491)][e(526)]),qs(t);else if(this[e(586)]()===X[e(540)])try{this.webglRender.renderYUV(this[e(491)][e(560)],this.$videoElement[e(526)],t)}catch(s){this[e(556)].debugError(this[e(571)],e(503)+(this[e(500)]&&this.contextGl.isContextLost())+" and buffer length is "+t[e(546)]+e(583)+s[e(531)]())}else if(this[e(586)]()===X[e(524)])try{if(!this.webGPURender)return void this.player[e(522)](this[e(571)],e(550));this[e(590)][e(485)](this[e(491)][e(560)],this[e(491)][e(526)],t)}catch(t){this[e(556)][e(594)](this[e(571)],e(530)+t.toString())}else if(this[e(586)]()===X[e(499)]){const s=_s(t,{format:"I420",codedWidth:this[e(553)][e(560)],codedHeight:this[e(553)].height,timestamp:0});this[e(551)][e(534)](s,0,0,this[e(491)][e(560)],this[e(491)][e(526)]),qs(s)}}get rate(){return this[Fn(544)]}get[Fn(495)](){const t=Fn;return this[t(533)][t(546)]}[Fn(562)](){return this[Fn(587)]}[Fn(483)](){const t=Fn;this._hasCalcFps?this.player.debugLog(this[t(571)],t(572)):this[t(556)].isPlayback()?(this[t(597)]=Ve(this[t(556)][t(585)][t(516)],1,100),this[t(516)]=this.preFps):this.player.isPlayVod()&&(this[t(597)]=Ve(this[t(556)].playVod[t(516)],1,100),this.fps=this[t(597)])}setFps(t){const e=Fn;t!==this[e(516)]&&(t>100&&this[e(556)][e(522)](this[e(571)],"setFps max",t),t<0&&this[e(556)][e(522)](this[e(571)],e(519),t),this[e(516)]=Ve(t,1,100),this[e(556)].debugLog(this[e(571)],e(575)+this[e(597)]+" -> "+this.fps),this[e(556)][e(555)]()&&this[e(556)][e(585)][e(509)]&&this._sync(),this[e(597)]=this[e(516)])}setStreamFps(t){const e=Fn;this[e(556)].debugLog(this[e(571)],"setStreamFps",t),this[e(582)]=!0,this[e(587)]=t,this[e(569)](t)}[Fn(579)](t){const e=Fn;t!==this[e(544)]&&(this.player[e(523)](this[e(571)],e(579),t),this.playbackRate=t)}[Fn(589)](t){const e=Fn;null===this[e(481)]&&(this[e(481)]=t.ts);const s={tfTs:t.ts-this[e(481)],ts:t.ts};t.videoFrame?s.buffer=t.videoFrame:s[e(568)]=t.output,this[e(533)].push(s),this.startRender()}[Fn(543)](){const t=Fn;if(0===this[t(533)][t(546)])return;let e=null;for(;0!==this[t(533)].length;){const s=this.bufferList[t(527)]();this[t(496)](s[t(568)]),e=s}this.player[t(541)](),this[t(556)][t(555)]()?this[t(556)][t(585)][t(535)]({ts:e.ts,tfTs:e[t(591)]}):this[t(556)][t(490)]()&&this[t(556)][t(584)][t(535)]({ts:e.ts,tfTs:e[t(591)]})}[Fn(521)](){const t=Fn;if(this[t(533)][t(546)]<=0)return void this[t(502)]();null===this[t(493)]&&(this._requestAnimationFramePrevTs=je());const e=je()-this[t(493)];if(e>=this.player._opt[t(563)])return this[t(556)].debugWarn(this[t(571)],t(547)+e+t(564)+this[t(556)][t(558)][t(563)]+t(559)),this.startRender(),void this[t(502)]();const s=this.bufferList.shift();this[t(496)](s.buffer),this.player[t(541)](),this[t(556)][t(555)]()?this.player.playback[t(535)]({ts:s.ts,tfTs:s[t(591)]}):this[t(556)].isPlayVod()&&this[t(556)].playVod.updateStats({ts:s.ts,tfTs:s[t(591)]}),this[t(493)]=je(),this._requestAnimationFrameRequest=requestAnimationFrame(this.startRender$2[t(570)](this))}[Fn(502)](){const t=Fn;this[t(528)]&&(cancelAnimationFrame(this[t(528)]),this[t(528)]=null),this[t(493)]=null}pushData(t){const e=Fn;null===this[e(481)]&&(this[e(481)]=t.ts);const s={tfTs:t.ts-this[e(481)],ts:t.ts};if(t[e(488)]?s[e(568)]=t[e(488)]:s.buffer=t.output,this[e(556)][e(592)]())return this[e(556)][e(523)](this[e(571)],"pushData, isPlaybackOnlyDecodeIFrame only decode iframe and ts is ",s.ts),this[e(496)](s.buffer),this[e(556)].handleRender(),void(this[e(556)][e(555)]()&&this[e(556)][e(585)][e(535)]({ts:s.ts,tfTs:s.tfTs}));if(this[e(556)].isPlayback()){const t=this.player[e(558)][e(588)].isCacheBeforeDecodeForFpsRender;if(!t&&this.bufferSize>this[e(516)]*this.playbackRate*2&&(this[e(556)][e(522)](this[e(571)],e(539)+this[e(495)]),this[e(487)]()),this[e(533)].push(s),!this[e(582)]){const t=$s(this[e(533)]);null!==t&&t!==this[e(597)]&&(this.player.debugLog(this[e(571)],e(565)+t+e(595)+this[e(597)]+e(576)),this[e(561)](t))}if(!t){const t=this[e(533)].length,s=t/(this[e(516)]*this[e(544)]);s<=1?this.setFps(this.preFps):(this[e(569)](this[e(516)]+Math.floor(s*this.playbackRate)),this.player[e(522)](this[e(571)],"rate is",s,e(552),this[e(516)],e(603),t))}}}[Fn(512)](){this[Fn(567)]()}initVideoDelay(){const t=Fn,e=this[t(556)][t(558)][t(513)];e>0?this[t(600)]=setTimeout((()=>{this[t(512)]()}),e):this[t(512)]()}[Fn(549)](){const t=Fn;super.clearView(),this[t(500)].clear(this[t(500)][t(596)])}clear(){const t=Fn;this[t(556)][t(558)][t(538)]&&this[t(533)].forEach((e=>{const s=t;e[s(568)]&&qs(e[s(568)])})),this[t(533)]=[]}_updateSync(){const t=Fn;this[t(556)].isPlayback()&&this[t(556)][t(585)].isUseFpsRender&&this[t(515)]()}[Fn(566)](){this[Fn(567)]()}[Fn(599)](){this[Fn(556)].isPlayback()&&this.player.playback.isUseFpsRender&&this._stopSync()}}var jn=Vn;function Vn(t,e){var s=zn();return(Vn=function(t,e){return s[t-=184]})(t,e)}function zn(){var t=["9ldvVQR","6058598KKdEPg","739385qnerci","VideoPlayback","pushData","destroy","50196530JibmdR","render","render$2","39245sqRBLx","2836320Tnhhod","1274481OABnfg","4aUXtYV","isPlayback","942WPMUrm","VideoPlayVod","10551752ZBtBjz"];return(zn=function(){return t})()}!function(t,e){for(var s=Vn,i=t();;)try{if(783528===parseInt(s(197))/1+parseInt(s(190))/2*(-parseInt(s(189))/3)+-parseInt(s(188))/4+parseInt(s(187))/5*(-parseInt(s(192))/6)+-parseInt(s(196))/7+parseInt(s(194))/8*(-parseInt(s(195))/9)+parseInt(s(184))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(zn);class Gn extends Mn{constructor(t){var e=Vn;super(t),this.TAG_NAME=t[e(191)]()?e(198):e(193)}async[jn(200)](){super[jn(200)]()}[jn(199)](t){this[jn(185)](t)}[jn(186)](t){this.render(t)}}function Wn(){const t=["useWCS","getLoaderFactory","mseUseCanvasRender","_opt","10VYpqJJ","wcsUseVideoRender","273383BTNCsD","supportHls265","useOffscreen","isWebrtc","useMSE","12092054UYfNgX","5949HIwalE","isAliyunRtc","388084NsRTzP","1257717zIHHdl","8YZrGJA","isHls","24eDezXe","5EErnab","792068WpokCp","playVod","146952VRzvLU","playType","2296NcCebJ","useCanvasRender","isWebrtcH265","playbackTF","63dnwlEI"];return(Wn=function(){return t})()}const Hn=Kn;function Kn(t,e){const s=Wn();return(Kn=function(t,e){return s[t-=275]})(t,e)}!function(t,e){const s=Kn,i=t();for(;;)try{if(872539===parseInt(s(288))/1+parseInt(s(284))/2*(-parseInt(s(283))/3)+parseInt(s(282))/4*(-parseInt(s(287))/5)+-parseInt(s(290))/6*(parseInt(s(296))/7)+parseInt(s(292))/8*(parseInt(s(280))/9)+-parseInt(s(301))/10*(-parseInt(s(303))/11)+-parseInt(s(286))/12*(-parseInt(s(279))/13))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Wn);class Qn{constructor(t){const e=Kn;return new(Qn[e(298)](t[e(300)]))(t)}static[Hn(298)](t){const e=Hn;return t[e(278)]?t[e(299)]?wn:Mn:t[e(285)]&&ci(t[e(275)])||t[e(277)]&&ci(t[e(294)])?t[e(293)]?wn:Mn:t[e(281)]?Mn:t[e(297)]?t[e(291)]===c[e(295)]?Nn:t.playType===c[e(289)]?!t[e(276)]&&t[e(302)]?Gn:Nn:!t.useOffscreen&&t[e(302)]?Mn:wn:t[e(291)]===c[e(295)]||t.playType===c.playVod?Nn:t.wasmUseVideoRender?Mn:wn}}const Yn=qn;function qn(t,e){const s=Jn();return(qn=function(t,e){return s[t-=402]})(t,e)}function Jn(){const t=["audioResumeStateTimeout","closeAudio","TAG_NAME","channels","356lpluaD","send close and wait 10ms destroy directly","4492647uHKQNf","gainNode","isStateSuspended","destroy","getEngineType","destination","hasAudio","hasInitScriptNode","mediaStreamAudioDestinationNode","181122OXzolq","close","playing","player","finally","emit","audioEnabled","sampleRate","length","2471194jpYnRS","encType","_destroyWorklet","createMediaStreamDestination","bufferList","off","depth","audioBufferSourceNode","setVolume","gain","270CCOMEg","getAudioBufferSize","state","audioContextState","setRate","_prevVolume","noteOn","encTypeCode","port","30mWgtKx","onmessage","84SfoYHC","play","disconnect","bufferSize","updateAudioInfo","stop","4433560TIEGoE","createGain","value","507610aXkDuP","isMute","init","volumechange","2526gdgQnq","clearAudioResumeStateTimeout","toFixed","clear","then","audioContextContextResumeLock","925eHlJOy","audioContext","scriptNode","mute","resume","audioResumeState","initScriptNode","AudioContext","resetInit","volume","workletWorkerCloseTimeout","pause","audioInfo","suspended","workletProcessorNode","lastVolume","postMessage","isStateRunning","$audio","connect","start"];return(Jn=function(){return t})()}!function(t,e){const s=qn,i=t();for(;;)try{if(393233===parseInt(s(481))/1+parseInt(s(461))/2*(-parseInt(s(485))/3)+parseInt(s(431))/4*(parseInt(s(406))/5)+parseInt(s(442))/6*(parseInt(s(472))/7)+-parseInt(s(478))/8+-parseInt(s(433))/9+parseInt(s(470))/10*(parseInt(s(451))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Jn);class Xn extends Bi{constructor(t){const e=qn;super(),this[e(455)]=[],this.player=t,this[e(424)]=null,this[e(408)]=null,this[e(420)]=null,this[e(416)]=null,this[e(440)]=!1,this[e(407)]=new(window[e(413)]||window.webkitAudioContext)({sampleRate:Ot}),this[e(434)]=this[e(407)][e(479)]();const s=this[e(407)].createBufferSource();s.buffer=this.audioContext.createBuffer(1,1,22050),s[e(425)](this[e(407)][e(438)]),s[e(467)]?s.noteOn(0):s[e(426)](0),this[e(458)]=s,this[e(441)]=this[e(407)][e(454)](),this.gainNode[e(460)][e(480)]=0,this._prevVolume=null,this[e(444)]=!1,this[e(418)]={encTypeCode:"",encType:"",channels:"",sampleRate:"",depth:""},this.init=!1,this.hasAudio=!1,this.audioResumeStateTimeout=null,this.audioContextContextResumeLock=!1}async[Yn(436)](){const t=Yn;return this[t(428)](),this[t(414)](),this.clearAudioResumeStateTimeout(),this[t(407)]&&(await this.audioContext[t(443)](),this[t(407)]=null),this[t(434)]&&(this[t(434)][t(474)](),this.gainNode=null),this[t(439)]=!1,this[t(444)]=!1,this.scriptNode&&(this[t(408)][t(474)](),this.scriptNode.onaudioprocess=Fe,this[t(408)]=null),await this[t(453)](),this[t(420)]&&(this[t(420)].disconnect(),this.workletProcessorNode[t(469)][t(471)]=Fe,this[t(420)]=null),this[t(458)]&&(this[t(458)][t(477)](),this[t(458)]=null),this[t(441)]&&(this[t(441)][t(474)](),this.mediaStreamAudioDestinationNode=null),this[t(440)]=!1,this[t(466)]=null,this[t(405)]=!1,this[t(456)](),!0}[Yn(453)](){return new Promise(((t,e)=>{const s=qn;this[s(420)]?(this.workletProcessorNode[s(469)][s(422)]({type:"destroy"}),this[s(416)]=setTimeout((()=>{const e=s;this[e(445)].debugLog(this[e(429)],e(432)),this[e(416)]&&(clearTimeout(this[e(416)]),this[e(416)]=null),t()}),10)):t()}))}[Yn(414)](){const t=Yn;this[t(418)]={encTypeCode:"",encType:"",channels:"",sampleRate:"",depth:""},this[t(483)]=!1}getAudioInfo(){return this[Yn(418)]}[Yn(476)](t){const e=Yn;t.encTypeCode&&(this[e(418)].encTypeCode=t.encTypeCode,this[e(418)][e(452)]=Q[t[e(468)]]),t[e(430)]&&(this[e(418)][e(430)]=t[e(430)]),t.sampleRate&&(this[e(418)][e(449)]=t[e(449)]),t.depth&&(this.audioInfo[e(457)]=t[e(457)]),this[e(418)][e(449)]&&this[e(418)][e(430)]&&this.audioInfo[e(452)]&&!this[e(483)]&&(this[e(445)][e(447)](M[e(418)],this.audioInfo),this[e(483)]=!0)}get isPlaying(){return this[Yn(444)]}get[Yn(482)](){const t=Yn;return 0===this[t(434)][t(460)].value||this[t(435)]()}get volume(){const t=Yn;return this[t(434)].gain[t(480)]}get[Yn(475)](){const t=Yn;return this[t(455)][t(450)]}get audioContextState(){const t=Yn;let e=null;return this[t(407)]&&(e=this[t(407)][t(463)]),e}[Yn(412)](){}initMobileScriptNode(){}initWorkletScriptNode(){}[Yn(437)](){return""}mute(t){const e=Yn;t?(this[e(459)](0),this.clear()):this.setVolume(this[e(445)][e(421)]||.5)}[Yn(459)](t){const e=Yn;t=parseFloat(t)[e(402)](2),isNaN(t)||(this[e(448)](!0),t=Ve(t,0,1),null!==this[e(466)]&&this[e(466)]===t||(null===this[e(466)]?this[e(445)][e(447)](M.mute,0===t):0===this[e(466)]&&t>0?this[e(445)][e(447)](M[e(409)],!1):this[e(466)]>0&&0===t&&this[e(445)][e(447)](M[e(409)],!0),this[e(434)][e(460)][e(480)]=t,this[e(445)][e(447)](M[e(484)],this.player[e(415)]),this[e(445)].emit(M.volume,this[e(445)][e(415)]),this[e(466)]=t))}[Yn(428)](){const t=Yn;this.hasInitScriptNode&&(this[t(408)]&&this[t(408)][t(474)](this[t(434)]),this[t(420)]&&this[t(420)].disconnect(this.gainNode),this[t(434)]&&(this[t(424)]?this[t(434)][t(474)](this[t(441)]):this[t(434)].disconnect(this.audioContext[t(438)]))),this[t(403)]()}[Yn(448)](t){const e=Yn;if(t&&this.isStateSuspended()){if(this[e(405)])return;this[e(405)]=!0,this[e(407)][e(410)]()[e(404)]((()=>{const t=e;this[t(445)].emit(M[t(411)],{state:this[t(464)],isRunning:this.isStateRunning()})}))[e(446)]((()=>{this[e(405)]=!1})),this.audioResumeStateTimeout=setTimeout((()=>{const t=e;this[t(486)](),this[t(405)]=!1,this[t(435)]()&&this[t(445)].emit(M[t(411)],{state:this.audioContextState,isRunning:this[t(423)]()})}),1e3)}}[Yn(423)](){return"running"===this[Yn(464)]}[Yn(435)](){const t=Yn;return this[t(464)]===t(419)}clearAudioResumeStateTimeout(){this[Yn(427)]&&(clearTimeout(this.audioResumeStateTimeout),this.audioResumeStateTimeout=null)}[Yn(403)](){this[Yn(455)]=[]}[Yn(473)](t,e){}[Yn(417)](){this.playing=!1}[Yn(410)](){this[Yn(444)]=!0}[Yn(465)](t){}[Yn(462)](){return 0}}function Zn(t,e){const s=eo();return(Zn=function(t,e){return s[t-=167]})(t,e)}const $n=Zn;!function(t,e){const s=Zn,i=t();for(;;)try{if(366814===-parseInt(s(185))/1*(parseInt(s(182))/2)+-parseInt(s(177))/3*(parseInt(s(189))/4)+-parseInt(s(190))/5+-parseInt(s(172))/6+-parseInt(s(193))/7*(parseInt(s(171))/8)+-parseInt(s(187))/9+parseInt(s(184))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(eo);class to{constructor(t,e,s,i){const r=Zn;this[r(168)]=t,this[r(186)]=e,this.channel=s,this[r(170)]=i}destroy(){const t=Zn;this[t(175)]=null,this[t(179)]=null}[$n(181)](t,e){const s=$n;let i=this[s(188)](e);for(let e=0;e<i[s(183)];e++)t[2*e]=i[s(169)][e],t[2*e+1]=i.right[e];return this[s(186)][s(178)]=i.ts,i[s(183)]}[$n(188)](t){const e=$n;let s=new Float32Array(t),i=new Float32Array(t),r=0,n=0,o=0,a=t/this[e(170)];const h=this[e(186)][e(176)];if(a&&h[e(173)]>=a){try{for(let t=0;t<a;t++){const t=h[e(192)]();2===this.channel?(s.set(t[e(175)][0],o),i[e(174)](t[e(175)][1],o)):(s[e(174)](t[e(175)][0],o),i[e(174)](t[e(175)][0],o)),o+=this[e(170)],n=t.ts}}catch(t){this[e(168)][e(167)](e(180),e(191),t),s=new Float32Array(0),i=new Float32Array(0)}r=s.length}return{size:r,ts:n,left:s,right:i}}}function eo(){const t=["player","left","bufferSize","18808IOESkZ","910362nkpvzS","length","set","buffer","bufferList","1661763UUbpcH","tempAudioTimestamp","channel","Processor","extract","517614WEXPYH","size","17154970LKJBJZ","1ayzUJR","audio","348390KiKbxI","provide","4HWibfJ","1034045kmNCUA","provide()","shift","413cvZYyB","debugWarn"];return(eo=function(){return t})()}const so=ro;!function(t,e){const s=ro,i=t();for(;;)try{if(888398===-parseInt(s(486))/1*(parseInt(s(413))/2)+parseInt(s(512))/3*(-parseInt(s(535))/4)+-parseInt(s(462))/5*(parseInt(s(528))/6)+parseInt(s(422))/7*(-parseInt(s(478))/8)+-parseInt(s(435))/9*(-parseInt(s(508))/10)+-parseInt(s(464))/11+-parseInt(s(424))/12*(-parseInt(s(488))/13))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(ao);class io{constructor(){const t=ro;this[t(481)]=new Float32Array,this[t(515)]=0,this._frameCount=0}[so(527)](){const t=so;this[t(491)](),this[t(481)]=null}get[so(497)](){return this._vector}get[so(517)](){return this[so(515)]}get[so(475)](){return 2*this._position}get frameCount(){return this[so(507)]}get[so(546)](){const t=so;return 2*(this[t(515)]+this[t(507)])}[so(491)](){const t=so;this[t(545)](this[t(507)]),this[t(524)]()}[so(498)](t){this[so(507)]+=t}[so(454)](t,e){const s=so;let i=arguments[s(470)]>2&&void 0!==arguments[2]?arguments[2]:0;const r=2*(e=e||0);!(i>=0)&&(i=(t[s(470)]-r)/2);const n=2*i;this[s(453)](i+this._frameCount);const o=this[s(546)];this[s(497)][s(472)](t[s(415)](r,r+n),o),this[s(507)]+=i}[so(484)](t,e){const s=so;let i=arguments[s(470)]>2&&void 0!==arguments[2]?arguments[2]:0;e=e||0,!(i>=0)&&(i=t[s(532)]-e),this[s(454)](t[s(497)],t[s(517)]+e,i)}[so(545)](t){const e=so;(!(t>=0)||t>this[e(507)])&&(t=this.frameCount),this._frameCount-=t,this[e(515)]+=t}[so(448)](t){const e=so;let s=arguments[e(470)]>1&&void 0!==arguments[1]?arguments[1]:0;const i=2*s,r=this.startIndex;t[e(472)](this[e(481)][e(415)](r,r+i)),this.receive(s)}[so(426)](t){const e=so;let s=arguments[e(470)]>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=this.startIndex+2*s,n=2*i;t[e(472)](this[e(481)].subarray(r,r+n))}ensureCapacity(){const t=so;let e=arguments[t(470)]>0&&void 0!==arguments[0]?arguments[0]:0;const s=parseInt(2*e);if(this._vector[t(470)]<s){const e=new Float32Array(s);e[t(472)](this[t(481)][t(415)](this[t(475)],this[t(546)])),this[t(481)]=e,this[t(515)]=0}else this.rewind()}[so(474)](){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.ensureCapacity(this._frameCount+t)}rewind(){const t=so;this[t(515)]>0&&(this._vector[t(472)](this[t(481)][t(415)](this[t(475)],this.endIndex)),this[t(515)]=0)}}function ro(t,e){const s=ao();return(ro=function(t,e){return s[t-=413]})(t,e)}class no{constructor(t){const e=so;t?(this[e(458)]=new io,this[e(502)]=new io):this._inputBuffer=this[e(502)]=null}[so(527)](){const t=so;this.clear(),this._outputBuffer&&(this[t(502)][t(527)](),this._outputBuffer=null),this._inputBuffer&&(this[t(458)][t(527)](),this[t(458)]=null)}get[so(414)](){return this._inputBuffer}set[so(414)](t){this[so(458)]=t}get[so(428)](){return this._outputBuffer}set[so(428)](t){this._outputBuffer=t}clear(){const t=so;this._inputBuffer.clear(),this[t(502)][t(491)]()}}class oo extends no{constructor(t){const e=so;super(t),this.reset(),this[e(530)]=1}[so(527)](){super[so(527)]()}set[so(429)](t){this._rate=t}[so(420)](){const t=so;this[t(442)]=0,this[t(447)]=0,this[t(451)]=0}[so(473)](){const t=so,e=new oo;return e[t(429)]=this[t(530)],e}process(){const t=so,e=this[t(458)][t(532)];this._outputBuffer.ensureAdditionalCapacity(e/this._rate+1);const s=this[t(542)](e);this[t(458)][t(545)](),this[t(502)][t(498)](s)}[so(542)](){const t=so;let e=arguments[t(470)]>0&&void 0!==arguments[0]?arguments[0]:0;if(0===e)return 0;const s=this[t(458)][t(497)],i=this[t(458)][t(475)],r=this[t(502)][t(497)],n=this[t(502)][t(546)];let o=0,a=0;for(;this[t(442)]<1;)r[n+2*a]=(1-this.slopeCount)*this[t(447)]+this[t(442)]*s[i],r[n+2*a+1]=(1-this[t(442)])*this[t(451)]+this[t(442)]*s[i+1],a+=1,this[t(442)]+=this[t(530)];if(this.slopeCount-=1,1!==e)t:for(;;){for(;this[t(442)]>1;)if(this[t(442)]-=1,o+=1,o>=e-1)break t;const h=i+2*o;r[n+2*a]=(1-this.slopeCount)*s[h]+this.slopeCount*s[h+2],r[n+2*a+1]=(1-this[t(442)])*s[h+1]+this[t(442)]*s[h+3],a+=1,this[t(442)]+=this[t(530)]}return this.prevSampleL=s[i+2*e-2],this[t(451)]=s[i+2*e-1],a}}function ao(){const t=["11119603bnZMol","fillInputBuffer","outputBufferPosition","sourceSound","max","detail","length","dualChannel","set","clone","ensureAdditionalCapacity","startIndex","seekWindowMs","stretch","13853176JnoXvv","formattedTimePlayed","name","_vector","off","preCalculateCorrelationReferenceStereo","putBuffer","seekBestOverlapPosition","1895ZVflLC","callback","546QWJynB","removeEventListener","calculateOverlapLength","clear","node","join","historyBufferSize","handleSampleData","_soundtouch","vector","put","timePlayed","sequenceMs","quickSeek","_outputBuffer","fillOutputBuffer","exp","seekWindowLength","onaudioprocess","_frameCount","6208750EwUMVb","floor","sampleReq","_sourcePosition","421782ZhNTDl","nominalSkip","overlapMs","_position","skipFract","position","overlap","overlapLength","sampleRate","New position may not be greater than current position","pipe","pitchSemitones","rewind","_quickSeek","_intermediateBuffer","destroy","18cZgBRK","calculateSequenceParameters","_rate","calculateEffectiveRateAndTempo","frameCount","listeners","process","24vvoUeb","_filter","_tempo","calculateCrossCorrelationStereo","_pipe","virtualPitch","min","transpose","fillInputBuffer() not overridden","push","receive","endIndex","seekLength","refMidBuffer","virtualRate","566HaMHGD","inputBuffer","subarray","pitchOctaves","MIN_VALUE","seekBestOverlapPositionStereoQuick","rateChange","reset","transposer","7klkiPz","duration","1137264uWdhUI","sourcePosition","extract","percentagePlayed","outputBuffer","rate","virtualTempo","onEnd","setParameters","numberOfChannels","filter","18YivGZv","call","autoSeqSetting","midBufferDirty","inputChunkSize","autoSeekSetting","connect","slopeCount","tempo","_node","dispatchEvent","seekBestOverlapPositionStereo","prevSampleL","receiveSamples","checkLimits","buffer","prevSampleR","outputChunkSize","ensureCapacity","putSamples","getChannelData","pitch","midBuffer","_inputBuffer","overlapStereo","disconnect","New position falls outside of history buffer","352345RoGabg","clearMidBuffer"];return(ao=function(){return t})()}class ho{constructor(t){this[so(539)]=t}[so(527)](){}get[so(522)](){return this[so(539)]}get[so(414)](){const t=so;return this._pipe[t(414)]}get outputBuffer(){const t=so;return this._pipe[t(428)]}[so(465)](){throw new Error(so(543))}[so(503)](){const t=so;let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;for(;this[t(428)][t(532)]<e;){const e=16384-this[t(414)].frameCount;if(this[t(465)](e),this[t(414)][t(532)]<16384)break;this[t(539)][t(534)]()}}clear(){const t=so;this[t(539)][t(491)]()}}const co=function(){};class lo extends ho{constructor(t,e){const s=so;let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:co;super(e),this[s(487)]=i,this[s(467)]=t,this.historyBufferSize=22050,this[s(511)]=0,this[s(466)]=0,this[s(515)]=0}[so(527)](){const t=so;this.clear(),this.sourceSound.destroy(),this[t(467)]=null,this[t(511)]=0,this[t(466)]=0,this[t(515)]=0}get[so(517)](){return this[so(515)]}set[so(517)](t){const e=so;if(t>this[e(515)])throw new RangeError(e(521));const s=this.outputBufferPosition-(this[e(515)]-t);if(s<0)throw new RangeError(e(461));this[e(466)]=s,this[e(515)]=t}get[so(425)](){return this[so(511)]}set[so(425)](t){const e=so;this[e(491)](),this[e(511)]=t}[so(431)](){this.callback()}[so(465)](){const t=so;let e=arguments[t(470)]>0&&void 0!==arguments[0]?arguments[0]:0;const s=new Float32Array(2*e),i=this.sourceSound[t(426)](s,e,this[t(511)]);this._sourcePosition+=i,this[t(414)][t(454)](s,0,i)}[so(426)](t){const e=so;let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this[e(503)](this[e(466)]+s);const i=Math.min(s,this[e(428)][e(532)]-this.outputBufferPosition);this[e(428)][e(426)](t,this[e(466)],i);const r=this[e(466)]+i;return this[e(466)]=Math.min(this[e(494)],r),this[e(428)][e(545)](Math[e(468)](r-this.historyBufferSize,0)),this[e(515)]+=i,i}[so(495)](t){this.extract(t.data,4096)}clear(){const t=so;super[t(491)](),this[t(466)]=0}}const uo=[[124,186,248,310,372,434,496,558,620,682,744,806,868,930,992,1054,1116,1178,1240,1302,1364,1426,1488,0],[-100,-75,-50,-25,25,50,75,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[-20,-15,-10,-5,5,10,15,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[-4,-3,-2,-1,1,2,3,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]],po=-10/1.5;class fo extends no{constructor(t){const e=so;super(t),this[e(525)]=!0,this[e(438)]=!1,this.midBuffer=null,this[e(548)]=null,this.overlapLength=0,this[e(437)]=!0,this.autoSeekSetting=!0,this[e(537)]=1,this[e(432)](44100,0,0,8)}[so(527)](){const t=so;this[t(491)](),super[t(527)]()}clear(){const t=so;super[t(491)](),this[t(463)](),this[t(548)]=null}[so(463)](){const t=so;this.midBufferDirty&&(this[t(438)]=!1),this.midBuffer=null}setParameters(t,e,s,i){const r=so;t>0&&(this[r(520)]=t),i>0&&(this[r(514)]=i),e>0?(this[r(500)]=e,this[r(437)]=!1):this.autoSeqSetting=!0,s>0?(this.seekWindowMs=s,this[r(440)]=!1):this[r(440)]=!0,this[r(529)](),this.calculateOverlapLength(this[r(514)]),this[r(443)]=this[r(537)]}set[so(443)](t){const e=so;let s;this._tempo=t,this[e(529)](),this.nominalSkip=this[e(537)]*(this[e(505)]-this[e(519)]),this[e(516)]=0,s=Math[e(509)](this.nominalSkip+.5),this[e(510)]=Math[e(468)](s+this[e(519)],this[e(505)])+this[e(547)]}get[so(443)](){return this[so(537)]}get[so(439)](){return this[so(510)]}get[so(452)](){const t=so;return this.overlapLength+Math[t(468)](0,this[t(505)]-2*this[t(519)])}[so(490)](){const t=so;let e,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;e=this[t(520)]*s/1e3,e=e<16?16:e,e-=e%8,this.overlapLength=e,this[t(548)]=new Float32Array(2*this.overlapLength),this[t(457)]=new Float32Array(2*this[t(519)])}checkLimits(t,e,s){return t<e?e:t>s?s:t}[so(529)](){const t=so;let e,s;this.autoSeqSetting&&(e=150+-50*this[t(537)],e=this.checkLimits(e,50,125),this[t(500)]=Math[t(509)](e+.5)),this.autoSeekSetting&&(s=28.333333333333332+po*this._tempo,s=this[t(449)](s,15,25),this[t(476)]=Math.floor(s+.5)),this.seekWindowLength=Math[t(509)](this.sampleRate*this[t(500)]/1e3),this[t(547)]=Math[t(509)](this[t(520)]*this[t(476)]/1e3)}set[so(501)](t){this[so(525)]=t}[so(473)](){const t=so,e=new fo;return e[t(443)]=this._tempo,e[t(432)](this[t(520)],this[t(500)],this.seekWindowMs,this[t(514)]),e}[so(485)](){const t=so;return this[t(525)]?this[t(418)]():this[t(446)]()}[so(446)](){const t=so;let e,s,i,r=0;for(this[t(483)](),e=0,s=Number[t(417)];r<this[t(547)];r+=1)i=this[t(538)](2*r,this[t(548)]),i>s&&(s=i,e=r);return e}seekBestOverlapPositionStereoQuick(){const t=so;let e,s,i,r,n,o=0;for(this.preCalculateCorrelationReferenceStereo(),s=Number[t(417)],e=0,r=0,n=0;o<4;o+=1){let a=0;for(;uo[o][a]&&(n=r+uo[o][a],!(n>=this[t(547)]));)i=this[t(538)](2*n,this[t(548)]),i>s&&(s=i,e=n),a+=1;r=e}return e}[so(483)](){const t=so;let e,s,i=0;for(;i<this[t(519)];i+=1)s=i*(this[t(519)]-i),e=2*i,this[t(548)][e]=this.midBuffer[e]*s,this[t(548)][e+1]=this[t(457)][e+1]*s}[so(538)](t,e){const s=so,i=this[s(458)].vector;t+=this[s(458)][s(475)];let r=0,n=2;const o=2*this[s(519)];let a;for(;n<o;n+=2)a=n+t,r+=i[a]*e[n]+i[a+1]*e[n+1];return r}overlap(t){this[so(459)](2*t)}[so(459)](t){const e=so,s=this[e(458)].vector;t+=this._inputBuffer[e(475)];const i=this[e(502)][e(497)],r=this[e(502)][e(546)];let n,o,a=0;const h=1/this[e(519)];let c,l,d;for(;a<this[e(519)];a+=1)o=(this.overlapLength-a)*h,c=a*h,n=2*a,l=n+t,d=n+r,i[d+0]=s[l+0]*c+this[e(457)][n+0]*o,i[d+1]=s[l+1]*c+this[e(457)][n+1]*o}[so(534)](){const t=so;let e,s,i;if(null===this[t(457)]){if(this._inputBuffer[t(532)]<this[t(519)])return;this[t(457)]=new Float32Array(2*this[t(519)]),this[t(458)][t(448)](this[t(457)],this[t(519)])}for(;this[t(458)][t(532)]>=this[t(510)];){e=this[t(485)](),this[t(502)].ensureAdditionalCapacity(this[t(519)]),this[t(518)](Math[t(509)](e)),this[t(502)].put(this[t(519)]),s=this[t(505)]-2*this.overlapLength,s>0&&this[t(502)].putBuffer(this[t(458)],e+this[t(519)],s);const r=this[t(458)][t(475)]+2*(e+this[t(505)]-this[t(519)]);this.midBuffer[t(472)](this._inputBuffer[t(497)][t(415)](r,r+2*this[t(519)])),this[t(516)]+=this[t(513)],i=Math[t(509)](this[t(516)]),this[t(516)]-=i,this._inputBuffer.receive(i)}}}const mo=function(t,e){return(t>e?t-e:e-t)>1e-10};class go{constructor(){const t=so;this[t(421)]=new oo(!1),this[t(477)]=new fo(!1),this[t(458)]=new io,this[t(526)]=new io,this._outputBuffer=new io,this[t(530)]=0,this[t(537)]=0,this[t(540)]=1,this[t(549)]=1,this[t(430)]=1,this[t(531)]()}[so(527)](){const t=so;this[t(491)](),this[t(458)][t(527)](),this[t(526)][t(527)](),this._outputBuffer[t(527)](),this[t(458)]=null,this[t(526)]=null,this[t(502)]=null}[so(491)](){const t=so;this[t(421)][t(491)](),this[t(477)][t(491)]()}clone(){const t=so,e=new go;return e.rate=this[t(429)],e[t(443)]=this[t(443)],e}get[so(429)](){return this[so(530)]}set rate(t){const e=so;this.virtualRate=t,this[e(531)]()}set[so(419)](t){this[so(530)]=1+.01*t}get[so(443)](){return this._tempo}set[so(443)](t){const e=so;this[e(430)]=t,this[e(531)]()}set tempoChange(t){this.tempo=1+.01*t}set[so(456)](t){const e=so;this[e(540)]=t,this[e(531)]()}set[so(416)](t){const e=so;this.pitch=Math[e(504)](.69314718056*t),this[e(531)]()}set pitchSemitones(t){this[so(416)]=t/12}get inputBuffer(){return this[so(458)]}get[so(428)](){return this._outputBuffer}[so(531)](){const t=so,e=this[t(537)],s=this[t(530)];this[t(537)]=this[t(430)]/this[t(540)],this[t(530)]=this.virtualRate*this[t(540)],mo(this[t(537)],e)&&(this[t(477)].tempo=this[t(537)]),mo(this._rate,s)&&(this[t(421)][t(429)]=this[t(530)]),this[t(530)]>1?this[t(502)]!=this[t(421)][t(428)]&&(this[t(477)][t(414)]=this[t(458)],this[t(477)].outputBuffer=this[t(526)],this[t(421)].inputBuffer=this[t(526)],this[t(421)][t(428)]=this._outputBuffer):this[t(502)]!=this[t(477)][t(428)]&&(this[t(421)].inputBuffer=this[t(458)],this.transposer.outputBuffer=this[t(526)],this[t(477)][t(414)]=this._intermediateBuffer,this.stretch[t(428)]=this._outputBuffer)}[so(534)](){const t=so;this[t(530)]>1?(this[t(477)].process(),this[t(421)][t(534)]()):(this.transposer[t(534)](),this[t(477)][t(534)]())}}so(527),so(471),so(517),so(517),so(426);const Ao=function(t){const e=Math[so(509)](t/60);return e+":"+function(t,e,s){const i=so;return s=s||"0",(t+="").length>=e?t:new Array(e-t[i(470)]+1)[i(493)](s)+t}(parseInt(t-60*e),2)};so(527),so(479),so(427),so(492),so(456),so(523),so(429),so(441),so(460),so(482);const yo=vo;function bo(){const t=["extract","995uOtKUm","2595579sjfzag","1048162nosVRh","tempo","419102NfGMzp","player","audio","provide","destroy","3763188UAHanN","82788jyWJAJ","filter","7914jkBSQt","4467328rofcie","3IbMvra","rate","soundTouch"];return(bo=function(){return t})()}function vo(t,e){const s=bo();return(vo=function(t,e){return s[t-=231]})(t,e)}!function(t,e){const s=vo,i=t();for(;;)try{if(367318===parseInt(s(246))/1+parseInt(s(244))/2*(-parseInt(s(238))/3)+-parseInt(s(234))/4+-parseInt(s(242))/5*(-parseInt(s(236))/6)+parseInt(s(243))/7+-parseInt(s(237))/8+parseInt(s(233))/9)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(bo);class So{constructor(t,e,s){const i=vo;this[i(247)]=t,this[i(248)]=e,this[i(240)]=new go,this[i(240)][i(245)]=1,this[i(240)][i(239)]=1,this.filter=new lo(s,this[i(240)])}[yo(232)](){const t=yo;this[t(235)]&&(this[t(235)].destroy(),this[t(235)]=null),this[t(240)]&&(this[t(240)].destroy(),this[t(240)]=null)}setRate(t){const e=yo;t!==this.soundTouch[e(239)]&&(this[e(240)][e(245)]=t)}[yo(231)](t){const e=yo;let s=new Float32Array(2*t),i=this[e(235)][e(241)](s,t),r=new Float32Array(i),n=new Float32Array(i);for(let t=0;t<i;t++)r[t]=s[2*t],n[t]=s[2*t+1];return{size:i,left:r,right:n,ts:this.audio.tempAudioTimestamp||0}}}function wo(){class t extends AudioWorkletProcessor{constructor(){super(),this.audioBufferSize=1024,this.start=!1,this.channels=1,this.samplesArray=[],this.offset=0,this.state=0,this.port.onmessage=t=>{"init"===t.data.message?(this.audioBufferSize=t.data.audioBufferSize,this.start=t.data.start,this.channels=t.data.channels,this.state=0,this.offset=0,this.samplesArray=[]):"stop"===t.data.message?(this.state=0,this.start=!1,this.offset=0,this.samplesArray=[]):"data"===t.data.message?this.samplesArray.push(t.data.buffer):"zero"===t.data.message&&this.samplesArray.push({left:new Float32Array(this.audioBufferSize).fill(0),right:new Float32Array(this.audioBufferSize).fill(0)})}}process(t,e,s){const i=e[0][0],r=e[0][1];if(0===this.offset&&this.port.postMessage({message:"beep"}),0===this.state)this.state=1;else if(1===this.state&&this.samplesArray.length>=4)this.state=2;else if(2===this.state){const t=this.samplesArray[0];for(let e=0;e<i.length;e++)1===this.channels?i[e]=t.left[e+this.offset]:2===this.channels&&(i[e]=t.left[e+this.offset],r&&(r[e]=t.right[e+this.offset]))}else 1===this.channels?i.fill(0):2===this.channels&&(i.fill(0),r&&r.fill(0));return this.offset+=128,this.offset===this.audioBufferSize&&(this.offset=0,2===this.state&&this.samplesArray.shift(),0===this.samplesArray.length&&(this.state=0)),this.start}}registerProcessor("worklet-processor",t)}function Eo(t,e){const s=To();return(Eo=function(t,e){return s[t-=432]})(t,e)}const Io=Eo;function To(){const t=["audioEngine"," more than ","getAudioBufferSize","TAG_NAME","map","connect","isMute","initWorkletScriptNode() player is destroyed","audio","scriptNodeInterval","size","_audioElementPlay error","srcObject","isPlaybackOnlyDecodeIFrame","parentNode","addEventListener","ended","play failed and add document click event listener","clear","2104020hQkPQS","postMessage","30591mEPHJQ","audioInfo","zero","pause","engineType: ","$container","isActiveEngineType","workletProcessorNode",", fill zero","calcPlaybackRateBySync","bufferList","worklet","audioWorklet","oneBufferDuration","supportAudioWorklet","getBufferListTimestamp","engineType",", and drop","isMoreThanMinBufferDuration","isPlayVodSeeking"," and fill zero","_audioElementPlay","currentTime",",\n and ts list is ","isAudioPlayer","worklet-processor","isPlaybackRateSpeed","catch","function","set","getAudioSyncVideoDiff","engine active , audioSyncVideoOption\n item.ts is ","getBufferListDuration"," , waiting and bufferList is ","debugWarn","destroy","_opt","_getAudioElementReadyState","floor","audioBufferSize","sampleRate","data","initWorkletScriptNode","hasVideo","destination","script","bufferList size is 0 and outputBufferLength is "," and currentVideoTimestamp is ","forEach","play vod and firstBufferItem.ts is ","play","hasInitScriptNode","audioContext","syncAudioAndVideoDiff","rateProcessor","readyState is 0 and set _delayPlay to true","workletUrl","_provide","active","then","351071RKyiIi","openSyncAudioAndVideo","gainNode","events","isDestroyedOrClosed","click","bind","isAudioPlaying","updatePlaybackRate","paused"," and speed to 1","30rVspgt","audioTimestamp"," outputBufferLength is ",", audioBufferSize: ","22546lffdzz","videoBufferDelay","play and readyState: ","getRenderCurrentPts","27OoJGkZ","visibility","createBuffer","_bindAudioProxy","$audio","tierDownToProcessScript","initScriptNode","create audio element","createElement",",and bufferItem.size is 0 , and current playbackRate is "," > 1000 and update audioTimestamp from ","defaultPlaybackRate","fill","readyState","calcPlaybackRateByBuffer","init","getEngineType"," less than diff :"," and audioTimestamp is ","playing","-100%","workletProcessorNode is null","initIntervalScriptNode","left","getChannelData","createScriptProcessor","engine active , audioSyncVideoOption ","144536FSZDsN","length",", speed up, playbackRate is ","join"," or playing is ","abs","push","stream","videoBufferMax","assign"," ,\n and audio is ","port","removeEventListener","handleScriptNodeCallback","eventListenList",",\n and video is ",",\n and bufferlist is ","buffer","getAutoAudioEngineType","interval script node and bufferList is ","96kjtJSu","absolute","playbackRate",",\n and bufferList is ","audioElementPlay","supportLockScreenPlayAudio","outputBuffer"," > -","debugLog","988105UygWmI","channels","clearWorkletUrlTimeout","addModule",",\n speed up, playbackRate is ","shift","processor","canplay","initProcessor","createBufferSource","play failed and retry play","bufferList length ","fillScriptNodeOutputBuffer","getAudioBufferSizeByType","isPlayVod","video","mediaStreamAudioDestinationNode","volume"," to ","_delayPlay","debugError","audioSyncVideoOption ","weiXinInAndroidAudioBufferSize","start","bufferList size is ","scriptStartTime","player","provide","836384kbFaRJ","revokeObjectURL","initProcessScriptNode","AudioContext"];return(To=function(){return t})()}!function(t,e){const s=Eo,i=t();for(;;)try{if(133972===-parseInt(s(486))/1+-parseInt(s(517))/2+parseInt(s(599))/3*(-parseInt(s(537))/4)+parseInt(s(546))/5+parseInt(s(482))/6*(-parseInt(s(471))/7)+-parseInt(s(574))/8+-parseInt(s(490))/9*(-parseInt(s(597))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(To);class ko extends Xn{constructor(t){const e=Eo;super(t),this[e(581)]=e(577),this.defaultPlaybackRate=1,this[e(539)]=1,this.rateProcessor=null,this.processor=null,this[e(587)]=null,this.engineType=this[e(535)](),this[e(450)]=this[e(559)](),this[e(494)]=null,this[e(565)]=!1,this[e(531)]=[],this[e(467)]=null,this[e(548)]=null,this.player._opt[e(542)]&&es()&&(this[e(494)]=document[e(498)](e(586)),Object[e(526)](this[e(494)].style,{position:e(538),left:e(510),top:e(510)}),t[e(604)]?t.$container.appendChild(this[e(494)]):document.body.appendChild(this[e(494)]),this[e(493)](),this.player[e(545)]("AudioContext",e(497))),this.scriptStartTime=0,this[e(572)][e(545)](e(577),e(505),e(603)+this[e(615)]+e(485)+this.audioBufferSize)}async destroy(){const t=Eo;return await super[t(446)](),this[t(467)]&&(URL[t(575)](this[t(467)]),this[t(467)]=null),this[t(548)]&&(clearTimeout(this.clearWorkletUrlTimeout),this[t(548)]=null),this[t(531)][t(518)]&&(this[t(531)][t(459)]((t=>{t()})),this[t(531)]=[]),this[t(494)]&&(this[t(494)][t(602)](),this[t(494)].srcObject=null,this[t(494)].parentNode&&this[t(494)][t(592)].removeChild(this[t(494)]),this[t(494)]=null),this[t(552)]&&(this[t(552)][t(446)](),this.processor=null),this[t(465)]&&(this[t(465)][t(446)](),this[t(465)]=null),this.scriptNodeInterval&&(clearInterval(this.scriptNodeInterval),this.scriptNodeInterval=null),this[t(501)]=1,this[t(539)]=1,this[t(571)]=0,this[t(450)]=0,this[t(615)]=gt[t(456)],this[t(572)][t(545)]("AudioContext",t(446)),!0}[Io(478)](){const t=Io;return this[t(494)]&&ci(this[t(494)][t(480)])&&ci(this.$audio[t(594)])&&0!==this[t(494)][t(539)]&&0!==this.$audio.readyState}[Io(493)](){const t=Io,{proxy:e}=this[t(572)][t(474)],s=e(this[t(494)],t(553),(()=>{const e=t;this[e(572)].debugLog(e(577),e(553)),this[e(565)]&&this._audioElementPlay()}));this[t(531)][t(523)](s)}[Io(448)](){const t=Io;let e=0;return this[t(494)]&&(e=this.$audio[t(503)]),e}audioElementPlay(){const t=Io;if(this[t(494)]){const e=this[t(448)]();if(this[t(572)].debugLog(t(577),t(488)+e),!(0!==e||Fs()&&es()))return this[t(572)].debugWarn(t(577),t(466)),void(this[t(565)]=!0);this._audioElementPlay()}}_audioElementPlay(){const t=Io;this[t(494)]&&this[t(494)][t(461)]()[t(470)]((()=>{const e=t;this[e(565)]=!1,this[e(572)][e(545)](e(577),"_audioElementPlay success and volume is ",this[e(494)][e(563)]),setTimeout((()=>{const t=e;!this[t(478)]()&&(this[t(572)].debugWarn("AudioContext",t(556)),this._audioElementPlay())}),100),this[e(478)]()&&(this[e(572)][e(545)](e(577),"play success and remove document click event listener"),document[e(529)](e(476),this[e(432)].bind(this)))}))[t(438)]((e=>{const s=t;this[s(572)][s(566)](s(577),s(589),e),this.player.debugLog(s(577),s(595)),document[s(593)]("click",this._audioElementPlay[s(477)](this))}))}[Io(580)](){return this[Io(450)]}get[Io(612)](){const t=Io;return this[t(450)]/this[t(463)][t(451)]*1e3}get[Io(605)](){return this[Io(615)]===gt.active}getBufferListDuration(){const t=Io;return this.bufferList.length*this[t(612)]}[Io(617)](){const t=Io;return this[t(443)]()>=100*this[t(539)]}initProcessor(){const t=Io;this[t(552)]=new to(this[t(572)],this,this[t(600)][t(547)],this[t(450)]),this[t(465)]=new So(this[t(572)],this,this[t(552)])}[Io(535)](){const t=Io;let e=this[t(572)][t(447)][t(578)]||gt.script;const s=()=>{const s=t;e=(Us()||es()&&this.player[s(447)][s(542)]||Xs()&&this[s(613)](),gt[s(456)])};return this.player._opt[t(578)]?this[t(572)]._opt[t(578)]===gt[t(610)]&&Xs()&&this.supportAudioWorklet()?e=gt[t(456)]:this.player[t(447)].audioEngine===gt[t(469)]?e=gt[t(469)]:this.player._opt[t(578)]===gt[t(456)]?e=gt[t(456)]:s():s(),e}[Io(559)](){const t=Io,e=this[t(615)];this[t(572)][t(447)][t(454)];const s=this.player._opt[t(568)];return e===gt[t(610)]?1024:e===gt[t(469)]?s||4800:(t(456),1024)}[Io(613)](){const t=Io;return this[t(463)]&&this[t(463)][t(611)]&&typeof this[t(463)][t(611)][t(549)]===t(439)}[Io(496)](){const t=Io;this[t(509)]=!0,this[t(462)]||(this[t(554)](),this[t(615)]===gt[t(610)]?this[t(453)]():this[t(615)]===gt[t(469)]?this[t(512)]():this[t(615)]===gt[t(456)]&&this[t(576)](),this[t(541)]())}[Io(506)](){return this[Io(615)]}[Io(437)](){const t=Io;return this[t(539)]>this[t(501)]}[Io(576)](){const t=Io,e=this[t(463)][t(515)](this[t(450)],0,this.audioInfo[t(547)]);e.onaudioprocess=e=>{const s=e[t(543)];this.handleScriptNodeCallback(s)},e[t(583)](this.gainNode),this.scriptNode=e,this.$audio?(this.gainNode[t(583)](this[t(562)]),this.$audio[t(590)]=this.mediaStreamAudioDestinationNode[t(524)]):this[t(473)][t(583)](this[t(463)][t(455)]),this.hasInitScriptNode=!0}[Io(512)](){const t=Io;this[t(571)]=0;const e=1e3*this.audioBufferSize/this[t(463)][t(451)];this[t(587)]=setInterval((()=>{const e=t;if(0===this[e(609)][e(518)]||ci(this.playing)||this[e(584)])return void(this[e(509)]&&ci(this[e(584)])&&this.player[e(545)](e(577),e(536)+this[e(609)][e(518)]+e(521)+this[e(509)]));const s=this.audioContext[e(555)](),i=this[e(463)][e(492)](this.audioInfo[e(547)],this[e(450)],this[e(463)][e(451)]);this[e(530)](i,(()=>{const t=e;this[t(571)]<this[t(463)][t(433)]&&(this.player[t(545)]("AudioContext","script start time "+this[t(571)]+" is less than current time "+this[t(463)][t(433)]),this[t(571)]=this[t(463)][t(433)]),s[t(534)]=i,s[t(583)](this[t(473)]),s[t(569)](this[t(571)]),this[t(571)]+=i.duration}))}),e),this[t(494)]?(this[t(473)].connect(this.mediaStreamAudioDestinationNode),this.$audio.srcObject=this[t(562)][t(524)]):this[t(473)].connect(this[t(463)][t(455)]),this[t(462)]=!0}[Io(453)](){const t=Io;let e=Qs(wo);this[t(467)]=e,this[t(463)][t(611)][t(549)](e)[t(470)]((()=>{const e=t;if(this[e(572)][e(475)]())return void this.player[e(545)](e(577),e(585));if(!this.audioContext)return void this[e(572)][e(445)]("AudioContext","initWorkletScriptNode audioContext is null");let s=[1];2===this[e(600)][e(547)]&&(s=[1,1]);try{this[e(606)]=new AudioWorkletNode(this[e(463)],e(436),{numberOfOutputs:this[e(600)].channels,outputChannelCount:s})}catch(t){this[e(572)][e(566)](e(577),"initWorkletScriptNode error",t),this[e(606)]=null,this[e(495)]()}this[e(606)]&&(this[e(606)][e(583)](this[e(473)]),this[e(494)]?(this[e(473)][e(583)](this.mediaStreamAudioDestinationNode),this[e(494)].srcObject=this[e(562)].stream):this[e(473)][e(583)](this.audioContext[e(455)]),this[e(462)]=!0,this[e(606)][e(528)][e(598)]({message:e(505),audioBufferSize:this[e(450)],start:!0,channels:this[e(600)][e(547)]}),this[e(606)][e(528)].onmessage=t=>{const s=e;this[s(606)]?this[s(463)]?this.handleScriptNodeCallback(this[s(606)],null,!0):this.workletProcessorNode.port[s(598)]({message:"zero"}):this.player[s(566)](s(577),s(511))})})),this[t(548)]=setTimeout((()=>{const e=t;URL[e(575)](this.workletUrl),this[e(467)]=null,this[e(548)]=null}),T)}[Io(495)](){const t=Io;this[t(572)][t(545)]("AudioContext","tierDownToProcessScript"),this[t(615)]=gt.script,this[t(450)]=this[t(559)](),this[t(576)](),this[t(541)]()}[Io(530)](t,e){const s=Io;let i=arguments[s(518)]>2&&void 0!==arguments[2]&&arguments[2];e=e||Fe;let r,n=t[s(518)];i&&(r=t,n=this.audioBufferSize);const o=this.audioInfo[s(547)];if(this[s(509)]&&this[s(617)]()){if(this[s(572)][s(447)],this.player.isDestroyedOrClosed())return this[s(572)].debugLog(this[s(581)],"handleScriptNodeCallback() player is destroyed or closed"),i?r[s(528)][s(598)]({message:"zero"}):this[s(558)](t,o),void e();if(this[s(572)][s(472)]()&&hi(this.player[s(491)])){this[s(608)]();const n=this[s(572)][s(441)]();if(n>this[s(572)][s(447)].syncAudioAndVideoDiff){const a=this.player.getCurrentVideoAndAudio(),h=this[s(614)]();return this[s(572)][s(445)](s(577),"audioSyncVideoOption more than diff :"+n+s(532)+a[s(561)]+s(527)+a[s(586)]+s(444)+this[s(609)][s(518)]+s(434)+h[s(520)](",")+s(619)),i?r[s(528)].postMessage({message:s(601)}):this[s(558)](t,o),void e()}}let a=this._provide(n);if(0===a[s(588)])return ci(this[s(572)][s(591)]())&&this[s(572)][s(445)](s(577),s(570)+this[s(609)][s(518)]+s(484)+n+s(499)+this[s(539)]+", fill zero"),i?r[s(528)][s(598)]({message:s(601)}):this[s(558)](t,o),void e();a&&a.ts&&(this[s(572)].audioTimestamp=a.ts),i?r.port[s(598)]({message:s(452),buffer:a}):this[s(558)](t,o,a),e()}else 0===this[s(609)][s(518)]&&this.playing&&ci(this[s(584)])&&ci(this.player[s(591)]())&&ci(this[s(572)][s(618)]())&&this[s(572)][s(445)]("AudioContext",s(457)+n+s(607)),i?r.port[s(598)]({message:s(601)}):this.fillScriptNodeOutputBuffer(t,o),e()}[Io(558)](t,e,s){const i=Io;if(1===e){const e=t[i(514)](0);s?0===s[i(588)]?e[i(502)](0):e[i(440)](s[i(513)]):e[i(502)](0)}else if(2===e){const e=t[i(514)](0),r=t[i(514)](1);s?0===s[i(588)]?(e[i(502)](0),r[i(502)](0)):(e[i(440)](s[i(513)]),r[i(440)](s.right)):(e[i(502)](0),r[i(502)](0))}}[Io(461)](t,e){const s=Io;if(!this[s(584)])if(this.hasInitScriptNode){if(this.hasAudio=!0,this.player.latestAudioTimestamp=e,this[s(609)].push({buffer:t,ts:e}),this.player[s(560)]()){const t=this.bufferList[0],e=this.player.audioTimestamp,i=Math[s(522)](t.ts-e);i>1e3&&(this.player[s(483)]=t.ts,this[s(572)].debugLog(this[s(581)],s(460)+t.ts+s(508)+e+", diff is "+i+s(500)+e+s(564)+t.ts))}ci(this[s(572)][s(472)]())&&hi(this[s(572)].isPlayStream())&&this[s(504)]()}else this[s(572)][s(445)]("AudioContext","play has not init script node")}[Io(608)](){const t=Io;if(this[t(584)])return;if(!this.playing)return;const e=Math.floor(2e3/this.oneBufferDuration);if(this[t(609)].length>e)return this[t(572)].debugWarn(t(577),t(557)+this.bufferList[t(518)]+t(579)+e+t(616)),void this[t(596)]();const s=this[t(572)][t(441)]();if(this[t(506)]()===gt[t(469)]){if(s<-this[t(572)]._opt.syncAudioAndVideoDiff){this[t(572)][t(445)]("AudioContext",t(516)+-this[t(572)][t(447)][t(464)]+" less than diff :"+s+t(533)+this[t(609)][t(518)]);const e=this[t(572)][t(489)]();for(;this[t(609)][t(518)]>0;){const s=this[t(609)][0],i=s.ts-e;if(i>-this[t(572)]._opt[t(464)]/2){this[t(572)][t(483)]=s.ts,this[t(572)].debugLog(t(577),t(442)+s.ts+t(458)+e+", diff is "+i+" > -"+this[t(572)][t(447)][t(464)]/2+" and end");break}this[t(609)][t(551)](),this[t(572)][t(483)]=s.ts}}}else{let e=this[t(539)];s<-this[t(572)][t(447)].syncAudioAndVideoDiff?e===this[t(501)]&&(this[t(572)][t(545)]("AudioContext",t(567)+-this[t(572)][t(447)].syncAudioAndVideoDiff+t(507)+s+t(550)+e+t(540)+this[t(609)][t(518)]),e=this[t(501)]+.2):s<-this[t(572)][t(447)].syncAudioAndVideoDiff/2?e===this[t(501)]&&(this[t(572)].debugLog(t(577),"audioSyncVideoOption "+-this[t(572)][t(447)][t(464)]+t(507)+s+t(550)+e+",\n and bufferList is "+this.bufferList[t(518)]),e=this[t(501)]+.1):s>-this[t(572)][t(447)][t(464)]/2&&e!==this.defaultPlaybackRate&&(this[t(572)].debugLog(t(577),"diff is "+s+t(544)+this.player[t(447)].syncAudioAndVideoDiff/2+t(481)),e=this.defaultPlaybackRate),this[t(479)](e)}}[Io(504)](){const t=Io;if(this[t(584)])return;if(!this.playing)return;let e=this[t(539)],s=1e3,i=5e3;this[t(435)]&&(s=this[t(572)][t(447)][t(487)],i=this[t(572)][t(447)][t(525)]);const r=Math[t(449)](s/this[t(612)]),n=Math[t(449)](i/this[t(612)]);if(this[t(609)][t(518)]>n)return this[t(572)].debugWarn("AudioContext","bufferList length "+this.bufferList.length+t(579)+n+", and drop"),void this[t(596)]();this.getEngineType()!==gt[t(469)]&&(this.bufferList[t(518)]>2*r?(e=this[t(501)]+.2,this[t(572)][t(545)](t(577),t(557)+this[t(609)][t(518)]+" more than "+r+t(519)+e)):this[t(609)][t(518)]>r?(e=this[t(501)]+.1,this[t(572)][t(545)]("AudioContext",t(557)+this[t(609)][t(518)]+t(579)+r+t(519)+e)):this[t(609)][t(518)]<r/2&&(e=this[t(501)]),this[t(479)](e))}[Io(479)](t){const e=Io;this[e(465)]&&this[e(539)]!==t&&(this[e(572)].debugLog(this[e(581)],"updatePlaybackRate "+t),this[e(539)]=t,this.rateProcessor.setRate(this[e(539)]))}[Io(468)](t){const e=Io;return(1===this[e(539)]?this[e(552)]:this.rateProcessor)[e(573)](t)}[Io(614)](){const t=Io;return this.bufferList[t(582)]((t=>t.ts))}}function _o(t,e){const s=Co();return(_o=function(t,e){return s[t-=145]})(t,e)}function Co(){const t=["encTypeCode","sampleRate","webrtc","mute","isMute","initScriptNodeDelay","setVolume","AudioContext","isPlaybackRateSpeed","play and this.awriter is null","hlsUseCanvasRender","808863FsVzWo","getEngineType","encType","2874122KYnCFm","TAG_NAME","video","debugWarn","webkitAudioContext","debugError","audio","Video","aliyunRtcRemoteStream","resume","muted","_prevVolume","850437wLdftg","channels","awriter","play","hlsDecoder","13956JmOnpy","lastVolume","updateAudioInfo","off","1206OIKvoc","120khRrNn","isAliyunRtc","291050dCAMfh","11869128ZQxVic","debugLog","player","initScriptNode","audioInfo","emit","isWasmPlayAudioUseVideoRender","close","setRate","isPlaying","$videoElement","destroy","depth","Audio","write","volume","clear","play audio error","getAudioBufferSize","init","$video","resetInit","audioContext","13747689XIiNII","aliyunRtcDecoder","_opt"];return(Co=function(){return t})()}const Ro=_o;!function(t,e){const s=_o,i=t();for(;;)try{if(788965===-parseInt(s(157))/1+parseInt(s(160))/2+parseInt(s(181))/3*(parseInt(s(177))/4)+-parseInt(s(184))/5*(parseInt(s(182))/6)+-parseInt(s(172))/7+-parseInt(s(185))/8+parseInt(s(208))/9)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Co);class Do extends Bi{constructor(t){const e=_o;super(),this[e(187)]=t,this[e(161)]=e(198),this[e(205)]=t[e(162)][e(195)],this.init=!1,this[e(187)][e(145)][e(156)]&&(this.$video=this[e(187)][e(176)][e(195)]),this.player[e(145)].webrtcUseCanvasRender&&(this[e(205)]=this[e(187)][e(148)][e(195)]),this[e(189)]={encTypeCode:"",encType:"",channels:"",sampleRate:"",depth:""},this[e(171)]=null,this[e(207)]=null,this.player[e(191)]()&&(this[e(207)]=new(window[e(153)]||window[e(164)])({sampleRate:Ot})),this[e(187)].debugLog(e(198),"init")}async[Ro(196)](){const t=Ro;return this[t(206)](),this[t(180)](),this[t(207)]&&(await this[t(207)][t(192)](),this.audioContext=null),this[t(171)]=null,this[t(187)][t(186)](t(198),"destroy"),!0}[Ro(206)](){const t=Ro;this[t(204)]=!1,this[t(189)]={encTypeCode:"",encType:"",channels:"",sampleRate:"",depth:""}}getAudioInfo(){return this[Ro(189)]}[Ro(179)](t){const e=Ro;t[e(146)]&&(this[e(189)].encTypeCode=t[e(146)],this[e(189)].encType=Q[t[e(146)]]),t[e(159)]&&(this[e(189)][e(159)]=t[e(159)]),t.channels&&(this[e(189)][e(173)]=t.channels),t[e(147)]&&(this[e(189)][e(147)]=t[e(147)]),t.depth&&(this[e(189)][e(197)]=t[e(197)]),this[e(189)][e(147)]&&this[e(189)][e(173)]&&this[e(189)].encType&&!this[e(204)]&&(this.player.debugLog("Audio","audioInfo",JSON.stringify(this.audioInfo)),this[e(187)][e(190)](M.audioInfo,this[e(189)]),this[e(204)]=!0)}get[Ro(194)](){return!0}get[Ro(200)](){const t=Ro;return hi(this[t(205)][t(170)])?0:this[t(205)][t(200)]}get[Ro(150)](){const t=Ro;return 0===this[t(205)][t(200)]||hi(this[t(205)][t(170)])}[Ro(149)](t){const e=Ro;this[e(152)](t?0:this[e(187)][e(178)]||.5)}setVolume(t){const e=Ro;t=parseFloat(t),isNaN(t)||(this.$video[e(170)]&&(this.$video.muted=!1),t=Ve(t,0,1),es()&&(this[e(205)][e(170)]=0===t),this.player[e(183)]()&&this.player[e(209)]&&this[e(187)][e(209)][e(168)]&&(this[e(187)][e(209)].aliyunRtcRemoteStream.muted=0===t),null!==this._prevVolume&&this._prevVolume===t||(null===this[e(171)]?this.player[e(190)](M[e(149)],0===t):0===this[e(171)]&&t>0?this.player[e(190)](M[e(149)],!1):this[e(171)]>0&&0===t&&this[e(187)][e(190)](M[e(149)],!0),this[e(205)][e(200)]=t,this.player.emit(M.volumechange,this[e(187)].volume),this.player[e(190)](M[e(200)],this[e(187)][e(200)]),this[e(171)]=t))}[Ro(201)](){}[Ro(175)](t,e){const s=Ro,i=this[s(187)][s(162)][s(174)];if(i)if(t.close)try{i.write(t),Js(t)}catch(t){this[s(187)][s(165)](s(167),s(202),t)}else try{this[s(187)].audioTimestamp=e;const r=function(t,e,s){const i=Me,r={...e,format:i(352)};r[i(613)]=t[0][i(641)];const n=s[i(322)](r[i(551)],r[i(613)],r[i(363)]);for(let e=0;e<t[i(641)];e++){var o=new Float32Array(t[e]);n.copyToChannel(o,e,0)}const a=new Float32Array(r[i(613)]*t[i(641)]);for(let e=0;e<t[i(641)];e++)a[i(565)](t[e],e*r.numberOfFrames);return r.data=a,new AudioData(r)}(t,{sampleRate:Ot,numberOfChannels:this[s(189)][s(173)],timestamp:1e3*e},this[s(207)]);i[s(199)](r),Js(r)}catch(t){this[s(187)][s(165)]("Video","play audio error",t)}else this[s(187)][s(163)](s(198),s(155))}pause(){}[Ro(169)](){}[Ro(158)](){return Ro(166)}[Ro(154)](){return!1}[Ro(193)](t){}[Ro(188)](){}[Ro(151)](){}audioEnabled(){this[Ro(149)](!1)}[Ro(203)](){return 2048}}const Lo=Po;function xo(){const t=["9uEvUXd","pause","isPlaybackPauseClearCache","46knuOwh","1030855ArSnKB","listenSeekEnd","debugLog","listenPlayVodPause","playbackPause","playback","7SmNttQ","59864hBnmUL","play, isSeeking, return","_opt","playVodPause","setRate","audioTimestamp","126FjBUyR","4283360QpREth","resume","playVodSeekEnd","11170362JDAxBG","36zRblHb","listenSeeking and update audioTimestamp to","updatePlaybackRate","isPlayVod","initScriptNodeDelay","destroy","delayTimeout","defaultPlaybackRate","init","playVod","playbackDelayTime","bind","player","isPlayback","rateProcessor","initScriptNode","play","20908uVFCqc","listenPlaybackPause","4090009KZyVCZ","1455456GDRdYT","AudioPlayVodLoader","AudioPlaybackLoader","TAG_NAME","clear","isSeeking"];return(xo=function(){return t})()}function Po(t,e){const s=xo();return(Po=function(t,e){return s[t-=221]})(t,e)}!function(t,e){const s=Po,i=t();for(;;)try{if(943609===parseInt(s(252))/1*(parseInt(s(264))/2)+-parseInt(s(261))/3*(-parseInt(s(255))/4)+-parseInt(s(265))/5+parseInt(s(234))/6*(-parseInt(s(223))/7)+parseInt(s(224))/8*(-parseInt(s(230))/9)+parseInt(s(231))/10+-parseInt(s(254))/11*(-parseInt(s(235))/12))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(xo);class Bo extends ko{constructor(t){const e=Po;super(t),this[e(241)]=null,this[e(258)]=this[e(247)][e(248)]()?e(257):e(256),this[e(247)][e(248)]()?this.player.on(M[e(221)],this[e(253)][e(246)](this)):this[e(247)][e(238)]()&&(this[e(247)].on(M[e(227)],this[e(268)][e(246)](this)),this[e(247)].on(M[e(233)],this[e(266)].bind(this))),this[e(247)][e(267)](this[e(258)],e(243))}async[Lo(240)](){const t=Lo;return this.delayTimeout&&(clearTimeout(this[t(241)]),this[t(241)]=null),await super[t(240)](),this[t(247)][t(267)](this[t(258)],"destroy"),!0}listenPlaybackPause(t){const e=Lo;t?(this.pause(),this.player[e(248)]()&&this[e(247)][e(222)][e(263)]&&this.clear()):this.resume()}[Lo(268)](t){const e=Lo;t?this[e(262)]():this[e(232)]()}[Lo(266)](t){const e=Lo;t*=1e3,this[e(247)][e(267)](this[e(258)],e(236),t),this.player[e(229)]=t,this[e(259)]()}[Lo(239)](){const t=Lo,e=this.player[t(226)][t(245)];e>0?this.delayTimeout=setTimeout((()=>{this.initScriptNode()}),e):this[t(250)]()}setRate(t){const e=Lo;t!==this[e(242)]&&this[e(249)]&&(this[e(247)][e(267)](this[e(258)],e(228),t),this[e(242)]=t,this[e(237)](t))}[Lo(251)](t,e){const s=Lo;this[s(247)].isPlayVod()&&this.player[s(244)][s(260)]()?this[s(247)][s(267)](this[s(258)],s(225)):super[s(251)](t,e)}}var Mo=Oo;function Fo(){var t=["debugLog","4285479lGqKCq","434245rHcgUZ","24904noeROZ","init","isAudioPlayer","1662580iALXmc","21218mUqNqN","47236sKzHPp","36ytvuYj","play","528225NTPrvU","27yLuvjq","AudioPlayerLoader","destroy","TAG_NAME","clear","1603yqXxGi","player","playing","resume","36wiTzwW","111ewNbRs","pause"];return(Fo=function(){return t})()}function Oo(t,e){var s=Fo();return(Oo=function(t,e){return s[t-=335]})(t,e)}!function(t,e){for(var s=Oo,i=t();;)try{if(390571===parseInt(s(338))/1+-parseInt(s(358))/2+parseInt(s(349))/3*(parseInt(s(335))/4)+-parseInt(s(353))/5*(parseInt(s(336))/6)+-parseInt(s(344))/7*(parseInt(s(354))/8)+-parseInt(s(339))/9*(parseInt(s(357))/10)+-parseInt(s(352))/11*(-parseInt(s(348))/12))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Fo);class Uo extends ko{constructor(t){var e=Oo;super(t),this[e(342)]=e(340),this[e(356)]=!0,this[e(345)][e(351)](this[e(342)],e(355))}async[Mo(341)](){var t=Mo;return await super[t(341)](),this[t(345)][t(351)](this[t(342)],"destroy"),!0}play(t,e){var s=Mo;ci(this[s(346)])||super[s(337)](t,e)}pause(){var t=Mo;this.player[t(351)](this.TAG_NAME,t(350)),this.playing=!1,this[t(343)]()}[Mo(347)](){var t=Mo;this.player.debugLog(this.TAG_NAME,t(347)),this[t(346)]=!0}}const No=jo;function jo(t,e){const s=Vo();return(jo=function(t,e){return s[t-=194]})(t,e)}function Vo(){const t=["addEventListener","838QrrMTg","isMute","2114335qxharv","5452531kcwLlQ","mute","resume","forEach","srcObject","muted","1714330iwmzRe","handleRender","2702VMVrYJ","lastVolume","875298paxNwu","117sPyTdC","_initAudioEvents","188728OhtObd","debugLog","bind","TAG_NAME","AudioWebrtcPlayerLoader","_prevVolume","volume","timeupdate","init","1361514OiEflt","timeStamp","play","$video","audio","click","12wKotxZ","events","resetInit","_handleDocumentClickPlay","_handleClickPlay","volumechange","length","setVolume","destroy","getEngineType","audioEnabled","eventsDestroy","isPlaying","emit","bindStream","debugWarn","player","updateStats","off","audio play error","pause"];return(Vo=function(){return t})()}!function(t,e){const s=jo,i=t();for(;;)try{if(745235===parseInt(s(239))/1*(-parseInt(s(197))/2)+parseInt(s(211))/3+-parseInt(s(217))/4*(-parseInt(s(241))/5)+-parseInt(s(199))/6+parseInt(s(242))/7+-parseInt(s(202))/8*(parseInt(s(200))/9)+-parseInt(s(195))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Vo);class zo extends Bi{constructor(t){const e=jo;super(),this[e(205)]=e(206),this[e(214)]=new Audio,this[e(233)]=t,this[e(210)]=!1,this[e(207)]=null,this.eventsDestroy=[],this[e(220)]=this[e(221)][e(204)](this),this._initAudioEvents(),this.player[e(203)](this[e(205)],e(210))}async[No(225)](){const t=No;return this[t(219)](),this[t(235)](),this.eventsDestroy[t(223)]&&(this[t(228)][t(245)]((t=>t())),this[t(228)]=[]),this[t(207)]=null,this.$video&&(this[t(214)][t(237)](),this[t(214)][t(246)]=null,this[t(214)]=null),this[t(233)][t(203)](this[t(205)],t(225)),!0}[No(201)](){const t=No,{proxy:e}=this[t(233)][t(218)],s=e(this[t(214)],t(209),(e=>{const s=t,i=parseInt(e[s(212)],10);this[s(233)][s(196)](),this.player[s(234)]({ts:i})}));this.eventsDestroy.push(s)}resetInit(){this[No(210)]=!1}[No(221)](){const t=No;this[t(214)]&&(this[t(214)][t(213)](),document.removeEventListener(t(216),this[t(220)]))}[No(231)](t){const e=No;this[e(214)][e(246)]=t,this[e(214)][e(208)]=1,this.$video[e(213)]().catch((t=>{const s=e;this[s(233)][s(232)](this[s(205)],s(236),t),document[s(238)](s(216),this[s(220)])}))}[No(226)](){return No(215)}get[No(229)](){return!0}get volume(){const t=No;return hi(this[t(214)][t(194)])?0:this.$video[t(208)]}get[No(240)](){const t=No;return 0===this[t(214)][t(208)]||hi(this.$video.muted)}[No(243)](t){const e=No;this[e(224)](t?0:this[e(233)][e(198)]||.5)}[No(224)](t){const e=No;t=parseFloat(t),isNaN(t)||null===this[e(214)]||(this[e(214)][e(194)]&&(this[e(214)][e(194)]=!1),t=Ve(t,0,1),es()&&(this[e(214)][e(194)]=0===t),null!==this[e(207)]&&this[e(207)]===t||(null===this[e(207)]?this[e(233)][e(230)](M.mute,0===t):0===this[e(207)]&&t>0?this[e(233)][e(230)](M.mute,!1):this[e(207)]>0&&0===t&&this[e(233)][e(230)](M[e(243)],!0),this[e(214)][e(208)]=t,this[e(233)].emit(M[e(222)],this[e(233)][e(208)]),this[e(233)][e(230)](M[e(208)],this.player[e(208)]),this._prevVolume=t))}[No(237)](){}[No(244)](){}[No(227)](){this[No(243)](!1)}}const Go=Ho;function Wo(){const t=["758648oyrWok","useWCS","21aHwoOL","wcsDecodeAudio","736720RThNgL","isHls","useMSE","14IkMuYk","_opt","getLoaderFactory","playbackTF","939300GGSHCj","isWebrtcH265","wasmPlayAudioUseVideoRender","playType","useWasm","19906AUcTcu","10EKZoQv","110yJPrlm","isWebrtc","275958dKNZlW","8776999vuQVVa","49779COHlUJ","isAliyunRtc","playerAudio","mseDecodeAudio"];return(Wo=function(){return t})()}function Ho(t,e){const s=Wo();return(Ho=function(t,e){return s[t-=126]})(t,e)}!function(t,e){const s=Ho,i=t();for(;;)try{if(199486===parseInt(s(126))/1*(parseInt(s(140))/2)+-parseInt(s(135))/3+-parseInt(s(128))/4*(parseInt(s(141))/5)+parseInt(s(144))/6*(-parseInt(s(131))/7)+-parseInt(s(150))/8+parseInt(s(146))/9*(parseInt(s(142))/10)+parseInt(s(145))/11)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Wo);class Ko{constructor(t){const e=Ho;return new(Ko[e(133)](t[e(132)]))(t)}static[Go(133)](t){const e=Go;return t[e(138)]===c[e(134)]?t[e(130)]&&t[e(149)]||t[e(151)]&&t.wcsDecodeAudio?Do:Bo:t.playType===c.playVod?t.useMSE&&t[e(149)]||t.useWCS&&t[e(127)]?Do:Bo:t[e(138)]===c[e(148)]?t[e(143)]?zo:Uo:t[e(129)]&&ci(t.supportHls265)||t[e(143)]&&ci(t[e(136)])||t[e(130)]&&t.mseDecodeAudio||t[e(147)]||t[e(151)]&&t[e(127)]||t[e(139)]&&t[e(137)]?Do:ko}}function Qo(t,e){const s=Jo();return(Qo=function(t,e){return s[t-=271]})(t,e)}const Yo=Qo;!function(t,e){const s=Qo,i=t();for(;;)try{if(732469===parseInt(s(353))/1*(-parseInt(s(334))/2)+parseInt(s(294))/3*(parseInt(s(277))/4)+-parseInt(s(322))/5+-parseInt(s(298))/6+parseInt(s(342))/7+parseInt(s(307))/8*(parseInt(s(349))/9)+-parseInt(s(275))/10*(parseInt(s(355))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Jo);class qo extends Bi{constructor(t){const e=Qo;super(),this.player=t,this[e(288)]="FetchStream",this[e(274)]=!1,this[e(344)]=!1,this._status=It[e(347)],this[e(346)]=null,this[e(343)]=new AbortController,this[e(326)]=He((s=>{const i=e;t[i(335)](M[i(309)],(s/1024)[i(311)](2))})),this.streamRateInterval=null,t[e(318)](this[e(288)],e(273))}async[Yo(310)](){const t=Yo;return this[t(336)](),await this[t(291)](),this[t(323)](),this[t(319)]=It[t(347)],this.streamRate=null,this[t(276)](),this[t(337)][t(318)](this[t(288)],t(310)),!0}[Yo(299)](){const t=Yo;this[t(276)](),this[t(338)]=setInterval((()=>{const e=t;this[e(326)]&&this[e(326)](0)}),1e3)}[Yo(276)](){const t=Yo;this.streamRateInterval&&(clearInterval(this[t(338)]),this[t(338)]=null)}async _closeWritableStream(){const t=Yo;if(this[t(346)])if(Vs(this.writableStream[t(290)])&&ci(this[t(346)].locked))try{await this[t(346)][t(290)](),this[t(346)]=null,this[t(337)][t(318)](this[t(288)],t(340))}catch(e){this[t(337)][t(318)](this.TAG_NAME,t(354),e)}else this.writableStream=null}[Yo(320)](t){const e=Yo;let s=arguments[e(295)]>1&&void 0!==arguments[1]?arguments[1]:{};const{demux:i}=this.player;this[e(337)][e(300)][e(293)]=je();const r=Object[e(306)]({signal:this.abortController[e(289)]},{headers:s[e(305)]||{}});fetch(t,r)[e(272)]((t=>{const s=e;if(this._requestAbort)return this[s(319)]=It[s(347)],void t.body[s(287)]();if(!function(t){const e=Me;return t.ok&&t[e(330)]>=200&&t[e(330)]<=299}(t))return this[s(337)][s(296)](this[s(288)],s(278)+t[s(284)]+s(285)+t.ok+s(279)),this[s(336)](),void this.emit(U[s(314)],s(278)+t[s(284)]+s(285)+t.ok);if(this[s(335)](M[s(352)]),this[s(299)](),"undefined"!=typeof WritableStream)this[s(337)][s(318)](this.TAG_NAME,s(316)),this[s(346)]=new WritableStream({write:t=>{const e=s;return this.abortController&&this[e(343)][e(289)]&&this[e(343)].signal[e(325)]?(this.player[e(318)](this.TAG_NAME,e(271)),void(this[e(319)]=It[e(317)])):hi(this._requestAbort)?(this[e(337)][e(318)](this[e(288)],"writableStream.write() and this._requestAbort is true so return"),this._status=It[e(317)],void this.abort()):"string"!=typeof t?(this[e(319)]=It[e(312)],this[e(326)]&&this[e(326)](t[e(286)]),i[e(315)](t)):void this.player[e(351)](this[e(288)],'writableStream.write() and value is "'+t+e(350))},close:()=>{const t=s;this[t(319)]=It[t(317)],this[t(337)][t(280)]()?(i[t(290)](),this[t(337)][t(335)](M[t(332)],t(283))):this[t(337)].updateStreamEndInner()},abort:t=>{const e=s;if(this[e(343)]&&this[e(343)][e(289)]&&this.abortController[e(289)][e(325)])return this.player[e(318)](this[e(288)],e(308)),void(this._status=It[e(317)]);i.close();const r=t[e(330)]();-1===r[e(282)](ut[e(331)])&&-1===r[e(282)](ut[e(324)])&&t.name!==ut[e(336)]&&(this.abort(),this[e(337)][e(328)](U[e(314)],t))}}),t[s(345)].pipeTo(this.writableStream).catch((t=>{const e=s;t[e(303)]!==e(292)&&this[e(337)][e(318)](this[e(288)],e(313),t[e(303)],t[e(330)]())}));else{this.player.debugLog(this[s(288)],s(304));const e=t.body[s(302)](),r=()=>{const t=s;e[t(297)]()[t(272)]((e=>{const s=t;let{done:n,value:o}=e;return n?(this[s(319)]=It[s(317)],this.abort(),void(this[s(337)][s(280)]()?(i[s(290)](),this.player[s(335)](M.streamEnd,s(283))):this[s(337)][s(327)]())):this.abortController&&this[s(343)][s(289)]&&this[s(343)][s(289)].aborted?(this[s(337)][s(318)](this[s(288)],"reader.read() and this.abortController.signal.aborted so return"),void(this[s(319)]=It[s(317)])):hi(this[s(344)])?(this.player[s(318)](this.TAG_NAME,s(281)),this[s(319)]=It[s(317)],void this[s(336)]()):void(typeof o!==s(339)?(this._status=It.buffering,this[s(326)]&&this.streamRate(o[s(286)]),i[s(315)](o),r()):this.player[s(351)](this[s(288)],'reader.read() and value is "'+o+'" string so return'))}))[t(301)]((e=>{const s=t;if(this[s(343)]&&this[s(343)][s(289)]&&this[s(343)][s(289)][s(325)])return this[s(337)].debugLog(this[s(288)],s(329)),void(this[s(319)]=It[s(317)]);i[s(290)]();const r=e[s(330)]();-1===r[s(282)](ut.abortError)&&-1===r[s(282)](ut[s(324)])&&e.name!==ut[s(336)]&&(this[s(336)](),this[s(337)].emitError(U.fetchError,e))}))};r()}})).catch((t=>{const s=e;this[s(343)]&&this[s(343)][s(289)]&&this[s(343)].signal.aborted||"AbortError"!==t[s(303)]&&(i[s(290)](),this[s(336)](),this[s(335)](U[s(314)],t))}))}[Yo(336)](){const t=Yo;if(this[t(344)]=!0,this.abortController)try{this.abortController[t(336)](),this[t(343)]=null,this[t(337)].debugLog(this[t(288)],t(333))}catch(e){this[t(343)]=null,this[t(337)].debugLog(this[t(288)],t(341),e)}}[Yo(321)](){return h[Yo(348)]}}function Jo(){const t=["debugLog","_status","fetchStream","getStreamType","1743835JAnIsh","off","abortError2","aborted","streamRate","updateStreamEndInner","emitError","reader.read().catch() and this.abortController.signal.aborted so return","toString","abortError","streamEnd","abortController.abort() success","342626rbuMxK","emit","abort","player","streamRateInterval","string","close writableStream success","abortController.abort() error","8752975miHouj","abortController","_requestAbort","body","writableStream","idle","fetch","3949092YghNUs",'" string so return',"debugWarn","streamSuccess","1TbWLHH","destroy and writableStream.close()","25729QkvNBP","writableStream.write() and this.abortController.signal.aborted so return","then","init","playing","900IBtKbV","stopStreamRateInterval","116972xBxbTD","fetch response status is "," and emit error and next abort()","isCheckStreamEnd","reader.read() and this._requestAbort is true so return","indexOf","fetch done","status"," and ok is ","byteLength","cancel","TAG_NAME","signal","close","_closeWritableStream","AbortError","streamStart","51ujLZrH","length","debugError","read","4339710eZIizn","startStreamRateInterval","_times","catch","getReader","name","not support WritableStream and use getReader() to read stream","headers","assign","8ecUIKF","writableStream.abort() and this.abortController.signal.aborted so return","kBps","destroy","toFixed","buffering","res.body.pipeTo() error","fetchError","dispatch","use WritableStream() to read stream","complete"];return(Jo=function(){return t})()}function Xo(){function t(t){return!0===t||"true"===t}const e="The user aborted a request",s="AbortError",i="AbortError",r="fetch",n="destroy",o="destroyEnd",a="buffer",h="fetchError",c="fetchErrorWorker",l="fetchClose",d="fetchSuccess",u="init",p="idle",f="buffering",m="complete";let g=new class{constructor(){this.TAG_NAME="FetchWorker",this._requestAbort=!1,this._status=p,this.writableStream=null,this.isChrome=!1,this.abortController=new AbortController,this.debug=!1,this.debugLevel="warn",this.debugUuid=null}destroy(){var t;this.abort(),this.writableStream&&("function"==typeof this.writableStream.close&&(!1===(t=this.writableStream.locked)||"false"===t)?this.writableStream.close().catch((t=>{})).finally((()=>{this.writableStream=null})):this.writableStream=null),this._status=p}fetchStream(r){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=Object.assign({signal:this.abortController.signal},{headers:n.headers||{}});fetch(r,o).then((r=>{if(this._requestAbort)return this._status=p,void r.body.cancel();if(!function(t){return t.ok&&t.status>=200&&t.status<=299}(r))return this.abort(),void postMessage({cmd:h,message:`fetch response status is ${r.status} and ok is ${r.ok}`});if(postMessage({cmd:d}),"undefined"!=typeof WritableStream)this.debugLog(this.TAG_NAME,"use WritableStream() to read stream"),this.writableStream=new WritableStream({write:e=>this.abortController&&this.abortController.signal&&this.abortController.signal.aborted?(this.debugLog(this.TAG_NAME,"writableStream.write() and this.abortController.signal.aborted so return"),void(this._status=m)):t(this._requestAbort)?(this.debugLog(this.TAG_NAME,"writableStream.write() and this._requestAbort is true so return"),this._status=m,void this.abort()):void("string"!=typeof e?(this._status=f,postMessage({cmd:a,buffer:e},[e.buffer])):this.debugWarn(this.TAG_NAME,`writableStream.write() and value is "${e}" string so return`)),close:()=>{this._status=m,postMessage({cmd:l})},abort:t=>{if(this.abortController&&this.abortController.signal&&this.abortController.signal.aborted)return this.debugLog(this.TAG_NAME,"writableStream.abort() and this.abortController.signal.aborted so return"),void(this._status=m);const r=t.toString();-1===r.indexOf(e)&&-1===r.indexOf(s)&&t.name!==i&&(this.abort(),postMessage({cmd:c,message:t.toString()}))}}),r.body.pipeTo(this.writableStream).catch((t=>{"AbortError"!==t.name&&this.debugLog(this.TAG_NAME,"res.body.pipeTo() error",t.name,t.toString())}));else{const n=r.body.getReader(),o=()=>{n.read().then((e=>{let{done:s,value:i}=e;return s?(this._status=m,void postMessage({cmd:l})):this.abortController&&this.abortController.signal&&this.abortController.signal.aborted?(this.debugLog(this.TAG_NAME,"reader.read() and this.abortController.signal.aborted so return"),void(this._status=m)):t(this._requestAbort)?(this.debugLog(this.TAG_NAME,"reader.read() and this._requestAbort is true so return"),this._status=m,void this.abort()):void("string"!=typeof i?(this._status=f,postMessage({cmd:a,buffer:i},[i.buffer]),o()):this.debugWarn(this.TAG_NAME,`reader.read() and value is "${i}" string so return`))})).catch((t=>{if(this.abortController&&this.abortController.signal&&this.abortController.signal.aborted)return this.debugLog(this.TAG_NAME,"reader.read().catch() and this.abortController.signal.aborted so return"),void(this._status=m);const r=t.toString();-1===r.indexOf(e)&&-1===r.indexOf(s)&&t.name!==i&&(this.abort(),postMessage({cmd:c,message:t.toString()}))}))};o()}})).catch((t=>{this.abortController&&this.abortController.signal&&this.abortController.signal.aborted||"AbortError"!==t.name&&(this.abort(),postMessage({cmd:h,message:t.toString()}))}))}abort(){if(this._requestAbort=!0,this.abortController)try{this.abortController.abort(),this.abortController=null,this.debugLog(this.TAG_NAME,"abortController.abort() success")}catch(t){this.abortController=null,this.player.debugLog(this.TAG_NAME,"abortController.abort() error",t,t.toString())}}debugLog(t){if(this.debug&&"debug"==this.debugLevel){const r=this.debugUuid?`[${this.debugUuid}]`:"";for(var e=arguments.length,s=new Array(e>1?e-1:0),i=1;i<e;i++)s[i-1]=arguments[i];console.log(`JbPro${r}[✅✅✅][${t}]`,...s)}}debugWarn(t){if(this.debug&&("debug"==this.debugLevel||"warn"==this.debugLevel)){const r=this.debugUuid?`[${this.debugUuid}]`:"";for(var e=arguments.length,s=new Array(e>1?e-1:0),i=1;i<e;i++)s[i-1]=arguments[i];console.log(`JbPro${r}[❗❗❗][${t}]`,...s)}}debugError(t){const e=this.debugUuid?`[${this.debugUuid}]`:"";for(var s=arguments.length,i=new Array(s>1?s-1:0),r=1;r<s;r++)i[r-1]=arguments[r];console.error(`JbPro${e}[❌❌❌][${t}]`,...i)}};self.onmessage=e=>{const s=e.data;switch(s.cmd){case u:g.debug=t(s.debug),g.debugLevel=s.debugLevel,g.debugUuid=s.debugUuid;break;case r:g.isChrome=t(s.isChrome),g.fetchStream(s.url,JSON.parse(s.options));break;case n:g.destroy(),g=null,postMessage({cmd:o})}}}function Zo(t,e){const s=$o();return(Zo=function(t,e){return s[t-=207]})(t,e)}function $o(){const t=["100tPuFcJ","postMessage","send close but not response and destroy directly","destroy","FetchStreamWorker","2exUhtA","decoderWorkerCloseTimeout","debugWarn","streamRate","54bPfikD","fetchWorker","_initFetchWorker","emit","toFixed","7892170TlywTR","35651bBUVXt","player","1545051HyvuNN","URL","701778uqaGRM","destroyResolve","45088wtFxEO","workerClearTimeout","playing","92915GRyQdc","486872VPvWJg","debugLog","revokeObjectURL","off","_destroy","workerUrl","1176KuBBBH","TAG_NAME","send destroy"];return($o=function(){return t})()}!function(t,e){const s=Zo,i=t();for(;;)try{if(515721===-parseInt(s(225))/1*(parseInt(s(207))/2)+parseInt(s(237))/3+parseInt(s(220))/4*(-parseInt(s(210))/5)+-parseInt(s(217))/6*(-parseInt(s(235))/7)+parseInt(s(211))/8*(parseInt(s(229))/9)+-parseInt(s(234))/10+-parseInt(s(239))/11)break;i.push(i.shift())}catch(t){i.push(i.shift())}}($o);class ta extends Bi{constructor(t){const e=Zo;super(),this.TAG_NAME=e(224),this[e(236)]=t,this[e(209)]=!1,this[e(230)]=null,this.workerClearTimeout=null,this[e(216)]=null,this[e(240)]=null,this[e(226)]=null,this[e(228)]=He((s=>{const i=e;t[i(232)](M.kBps,(s/1024)[i(233)](2))})),this.streamRateInterval=null,this[e(231)](),t[e(212)](this[e(218)],"init")}destroy(){return new Promise(((t,e)=>{const s=Zo;this[s(230)]?(this.player[s(212)](this.TAG_NAME,s(219)),this[s(230)][s(221)]({cmd:P.destroy}),this.destroyResolve=t,this[s(226)]=setTimeout((()=>{const e=s;this[e(236)][e(227)](this[e(218)],e(222)),this[e(226)]&&(clearTimeout(this.decoderWorkerCloseTimeout),this[e(226)]=null),this._destroy(),setTimeout((()=>{t()}),0)}),2e3)):(this[s(215)](),setTimeout((()=>{t()}),0))}))}_destroy(){const t=Zo;this[t(214)](),this[t(226)]&&(clearTimeout(this.decoderWorkerCloseTimeout),this[t(226)]=null),this[t(216)]&&(window[t(238)][t(213)](this[t(216)]),this.workerUrl=null),this[t(208)]&&(clearTimeout(this.workerClearTimeout),this[t(208)]=null),this._stopStreamRateInterval(),this[t(228)]=null,this[t(230)]&&(this[t(230)].terminate(),this[t(230)].onmessage=null,this[t(230)]=null),this.destroyResolve&&(this[t(240)](),this.destroyResolve=null),this.player.debugLog(this.TAG_NAME,t(223))}_initFetchWorker(){let t=Ys(Xo);const e=new Worker(t);this.workerUrl=t,this.workerClearTimeout=setTimeout((()=>{window.URL.revokeObjectURL(this.workerUrl),this.workerUrl=null,this.workerClearTimeout=null}),T),e.postMessage({cmd:P.init,debug:this.player._opt.debug,debugLevel:this.player._opt.debugLevel,debugUuid:this.player._opt.debugUuid}),e.onmessage=t=>{const{demux:e}=this.player,s=t.data;switch(s.cmd){case P.buffer:this.streamRate&&this.streamRate(s.buffer.byteLength),e.dispatch(s.buffer);break;case P.fetchSuccess:this.emit(M.streamSuccess),this._startStreamRateInterval();break;case P.fetchClose:this.player.isCheckStreamEnd()?(e.close(),this.player.emit(M.streamEnd,"fetch done")):this.player.updateStreamEndInner();break;case P.fetchError:e.close(),this.emit(U.fetchError,s.message);break;case P.fetchErrorWorker:e.close(),this.player.emitError(U.fetchError,s.message);break;case P.destroyEnd:this._destroy()}},this.fetchWorker=e}_startStreamRateInterval(){this._stopStreamRateInterval(),this.streamRateInterval=setInterval((()=>{this.streamRate&&this.streamRate(0)}),1e3)}_stopStreamRateInterval(){this.streamRateInterval&&(clearInterval(this.streamRateInterval),this.streamRateInterval=null)}fetchStream(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.player._times.streamStart=je(),this.fetchWorker.postMessage({cmd:P.fetch,url:t,isChrome:Os(),options:JSON.stringify(e)})}getStreamType(){return h.fetch}}function ea(t,e){const s=ia();return(ea=function(t,e){return s[t-=496]})(t,e)}const sa=ea;function ia(){const t=["_startStreamRateInterval","websocketStringMsg","byteLength","onmessage","protocols","63328UvGQyO","3453951RuKhjz","8423608TSnUSM","streamRate","3890JSpAls","emit","readyState","socket close and requestAbort is true","close","_opt","8662830XZkOVS","debugError","wsUrl","binaryType","debugLog","_stopCheckWsOpenTimeout","3530048zJfaGL","open","_times","websocketError","websocket user aborted","socket","isDestroyedOrClosed","data","fetchStream","arraybuffer","_closeWebSocket() socket is null or socket status is ","WebsocketStream","websocketFirstMsg","sendMessage","TAG_NAME","streamStart","socket open","isTrusted","notConnect","117225jaamyx","player","requestAbort","message","websocketOpen","socketDestroyFnList","websocket handle message demux is null so return","socket error","kBps","_startCheckWsOpenTimeout","destroy","36fJzARm","socketStatus","dispatch","_createWebSocket","checkWsOpenTimeout","isCheckStreamEnd","debugWarn","forEach","websocket error","toFixed","websocketClose","1085sZfTTO","websocket send message is","_stopStreamRateInterval","updateStreamEndInner","error","67734vooPGm","websocket Open Timeout form ","_closeWebSocket","socket error:","websocket send message socket is null","init","string","websocket send message error and socket status is ","code","streamEnd","streamRateInterval","socket close and requestAbort is true, so return","websocketOpenTimeout","streamSuccess","_handleMessage","off","websocket","s and status is "];return(ia=function(){return t})()}!function(t,e){const s=ea,i=t();for(;;)try{if(877296===parseInt(s(558))/1*(parseInt(s(519))/2)+parseInt(s(559))/3+-parseInt(s(574))/4+parseInt(s(568))/5+-parseInt(s(535))/6*(-parseInt(s(530))/7)+parseInt(s(560))/8+parseInt(s(508))/9*(-parseInt(s(562))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(ia);class ra extends Bi{constructor(t){const e=ea;super(),this[e(509)]=t,this.TAG_NAME=e(500),this[e(579)]=null,this[e(520)]=N[e(507)],this[e(570)]=null,this[e(510)]=!1,this[e(513)]=[],this[e(561)]=He((s=>{const i=e;t[i(563)](M[i(516)],(s/1024)[i(528)](2))})),this[e(545)]=null,this.checkWsOpenTimeout=null,t[e(572)](this[e(503)],e(540))}async[sa(518)](){const t=sa;this._closeWebSocket(),this._stopStreamRateInterval(),this[t(573)](),this[t(570)]=null,this[t(550)](),this.player[t(572)](this.TAG_NAME,t(518))}[sa(553)](){this._stopStreamRateInterval(),this.streamRateInterval=setInterval((()=>{const t=ea;this.streamRate&&this[t(561)](0)}),1e3)}[sa(532)](){const t=sa;this[t(545)]&&(clearInterval(this[t(545)]),this[t(545)]=null)}[sa(517)](){const t=sa;this[t(573)](),this[t(523)]=setTimeout((()=>{const e=t;if(this.socketStatus===N[e(507)]){const t=e(536)+this[e(509)][e(567)][e(547)]+e(552)+this[e(520)];this[e(509)][e(569)](this[e(503)],t),this.emit(U.websocketOpenTimeout,t)}}),1e3*this.player[t(567)][t(547)])}_stopCheckWsOpenTimeout(){const t=sa;this.checkWsOpenTimeout&&(clearTimeout(this[t(523)]),this[t(523)]=null)}[sa(522)](){const t=sa;let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const s=this[t(509)],{events:{proxy:i},demux:r}=s,n=e[t(557)]||[];this.socket=new WebSocket(this[t(570)],n),this.socket[t(571)]=t(498);const o=i(this[t(579)],t(575),(()=>{const s=t;this[s(509)][s(572)](this[s(503)],s(505)),this[s(573)](),this[s(520)]=N[s(575)],this.emit(M[s(548)]),this[s(509)][s(563)](M[s(512)]),this[s(553)](),e.websocketFirstMessage&&this[s(502)](e[s(501)])})),a=i(this[t(579)],t(511),(e=>{const s=t;typeof e[s(496)]!==s(541)?(this[s(561)]&&this[s(561)](e[s(496)][s(555)]),this._handleMessage(e.data)):this[s(509)][s(563)](M[s(554)],e[s(496)])})),h=i(this[t(579)],t(566),(e=>{const s=t;if(this[s(509)][s(580)]())return;if(hi(this[s(510)]))return this.requestAbort=!1,void this[s(509)][s(572)](this[s(503)],s(546));if(this.socketStatus===N.error)return void this[s(509)].debugLog(this[s(503)],"socket close and status is error, so return");this.player[s(572)](this[s(503)],"socket close and code is "+e[s(543)]);let i=!1;1006===e[s(543)]&&(this[s(509)][s(569)](this[s(503)],"socket close abnormally and code is "+e.code),i=!0),this[s(520)]=N[s(566)],this[s(509)][s(524)]()||i?(r[s(566)](),this.player.emit(M[s(529)],e.code),this[s(509)].emit(M[s(544)],e[s(543)])):this[s(509)][s(533)]()})),c=i(this[t(579)],"error",(e=>{const s=t;if(this[s(509)][s(580)]())return;if(hi(this[s(510)]))return this[s(510)]=!1,void this.player[s(572)](this.TAG_NAME,s(565));this[s(509)][s(569)](this[s(503)],s(515),e),this[s(520)]=N[s(534)];const i=e[s(506)]?s(578):s(527);this[s(509)].emitError(U[s(577)],i),r[s(566)](),this[s(509)].debugLog(this[s(503)],s(538),i)}));this.socketDestroyFnList.push(o,a,h,c)}[sa(537)](){const t=sa;!this[t(579)]||0!==this.socket[t(564)]&&1!==this[t(579)].readyState?this.socket&&this[t(509)][t(572)](this[t(503)],t(499)+(this[t(579)]&&this[t(579)].readyState)):(this[t(510)]=!0,this.socket.close(1e3,"Client disconnecting")),this.socketDestroyFnList[t(526)]((t=>t())),this[t(579)].onopen=null,this[t(579)][t(556)]=null,this[t(579)].onclose=null,this.socket.onerror=null,this[t(579)]=null,this[t(520)]=N[t(507)],this.streamRate=null}[sa(549)](t){const e=sa,{demux:s}=this[e(509)];s?s[e(521)](t):this[e(509)][e(525)](this[e(503)],e(514))}[sa(497)](t,e){const s=sa;this[s(509)][s(576)][s(504)]=je(),this[s(570)]=t,this[s(522)](e)}[sa(502)](t){const e=sa;this.socket?this[e(520)]===N[e(575)]?(this[e(509)].debugLog(this[e(503)],e(531),t),this[e(579)].send(t)):this.player[e(569)](this.TAG_NAME,e(542)+this[e(520)]):this[e(509)][e(569)](this[e(503)],e(539))}getStreamType(){return h[sa(551)]}}function na(){function t(t){return!0===t||"true"===t}const e={fetch:"fetch",sendMessage:"sendMessage",destroy:"destroy",destroyEnd:"destroyEnd",buffer:"buffer",websocketError:"websocketError",websocketClose:"websocketClose",websocketOpen:"websocketOpen",websocketStringMsg:"websocketStringMsg",init:"init"};let s=new class{constructor(){this.TAG_NAME="WebsocketWorker",this.socket=null,this.wsUrl=null,this.requestAbort=!1,this.options={},this.debug=!1,this.debugLevel="warn",this.debugUuid=null}destroy(){!this.socket||0!==this.socket.readyState&&1!==this.socket.readyState||(this.requestAbort=!0,this.socket.close(1e3,"Client disconnecting")),this.socket.onopen=null,this.socket.onclose=null,this.socket.onerror=null,this.socket.onmessage=null,this.socket=null}fetchStream(t,e){this.wsUrl=t,this.options=e||{},this._createWebSocket(e)}sendMessage(t){this.socket?1===this.socket.readyState?(this.debugLog(this.TAG_NAME,"send message",t),this.socket.send(t)):this.debugError(this.TAG_NAME,`send message error and socket status is ${this.socket.readyState}`):this.debugError(this.TAG_NAME,"send message socket is null")}_createWebSocket(t){const e=t.protocols||[];this.socket=new WebSocket(this.wsUrl,e),this.socket.binaryType="arraybuffer",this.socket.onopen=this._handleWebsocketOpen.bind(this),this.socket.onclose=this._handleWebsocketClose.bind(this),this.socket.onerror=this._handleWebsocketError.bind(this),this.socket.onmessage=this._handleWebsocketMessage.bind(this)}_handleWebsocketOpen(){postMessage({cmd:e.websocketOpen}),this.options&&this.options.websocketFirstMessage&&(this.debugLog(this.TAG_NAME,"send first message",this.options.websocketFirstMessage),this.sendMessage(this.options.websocketFirstMessage))}_handleWebsocketClose(s){if(t(this.requestAbort))return this.requestAbort=!1,void this.debugLog(this.TAG_NAME,"socket close and requestAbort is true, so return");postMessage({cmd:e.websocketClose,code:s.code})}_handleWebsocketError(s){t(this.requestAbort)?this.requestAbort=!1:postMessage({cmd:e.websocketError,isTrusted:s.isTrusted})}_handleWebsocketMessage(t){if("string"==typeof t.data)return void postMessage({cmd:e.websocketStringMsg,value:t.data});const s=new Uint8Array(t.data);postMessage({cmd:e.buffer,buffer:s},[s.buffer])}debugLog(t){if(this.debug&&"debug"==this.debugLevel){const r=this.debugUuid?`[${this.debugUuid}]`:"";for(var e=arguments.length,s=new Array(e>1?e-1:0),i=1;i<e;i++)s[i-1]=arguments[i];console.log(`JbPro${r}[✅✅✅][${t}]`,...s)}}debugWarn(t){if(this.debug&&("debug"==this.debugLevel||"warn"==this.debugLevel)){const r=this.debugUuid?`[${this.debugUuid}]`:"";for(var e=arguments.length,s=new Array(e>1?e-1:0),i=1;i<e;i++)s[i-1]=arguments[i];console.log(`JbPro${r}[❗❗❗][${t}]`,...s)}}debugError(t){const e=this.debugUuid?`[${this.debugUuid}]`:"";for(var s=arguments.length,i=new Array(s>1?s-1:0),r=1;r<s;r++)i[r-1]=arguments[r];console.error(`JbPro${e}[❌❌❌][${t}]`,...i)}};self.onmessage=i=>{const r=i.data;switch(r.cmd){case e.init:s.debug=t(r.debug),s.debugLevel=r.debugLevel,s.debugUuid=r.debugUuid;break;case e.fetch:s.fetchStream(r.url,r.options);break;case e.destroy:s.destroy(),s=null,postMessage({cmd:e.destroyEnd});break;case e.send:s.sendMessage(r.message)}}}const oa=ha;function aa(){const t=["send destroy","561554pmgrrG","websocketWorker","streamRate","wsUrl","1375956qysEgD","debugWarn","_initWebsocketWorker","TAG_NAME","5JVaGqE","4903656NuulUB","player","notConnect","streamRateInterval","workerClearTimeout","init","847385KuGjcU","1614226NjMqsh","workerUrl","1743268MQjGjk","URL","destroyResolve","_closeWebSocket","decoderWorkerCloseTimeout","off","debugLog","socketStatus","toFixed","destroy","1941060IvvLcG","_destroy","terminate","WebsocketStreamWorker","emit","revokeObjectURL","kBps"];return(aa=function(){return t})()}function ha(t,e){const s=aa();return(ha=function(t,e){return s[t-=477]})(t,e)}!function(t,e){const s=ha,i=t();for(;;)try{if(435398===-parseInt(s(498))/1+-parseInt(s(478))/2+parseInt(s(490))/3+parseInt(s(480))/4*(parseInt(s(506))/5)+parseInt(s(502))/6+-parseInt(s(477))/7+parseInt(s(507))/8)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(aa);class ca extends Bi{constructor(t){const e=ha;super(),this.player=t,this[e(505)]=e(493),this[e(501)]=null,this[e(487)]=N[e(509)],this[e(499)]=null,this[e(511)]=null,this[e(479)]=null,this.destroyResolve=null,this[e(484)]=null,this[e(500)]=He((s=>{const i=e;t[i(494)](M[i(496)],(s/1024)[i(488)](2))})),this[e(510)]=null,this.checkWsOpenTimeout=null,this[e(504)](),this.player[e(486)](this[e(505)],e(512))}[oa(489)](){return new Promise(((t,e)=>{const s=ha;this.websocketWorker?(this[s(508)][s(486)](this.TAG_NAME,s(497)),this[s(483)](),this.destroyResolve=t,this[s(484)]=setTimeout((()=>{const e=s;this[e(508)][e(503)](this.TAG_NAME,"send close but not response and destroy directly"),this[e(484)]&&(clearTimeout(this.decoderWorkerCloseTimeout),this[e(484)]=null),this[e(491)](),t()}),2e3)):(this[s(491)](),t())}))}[oa(491)](){const t=oa;this[t(485)](),this._stopCheckWsOpenTimeout(),this[t(484)]&&(clearTimeout(this[t(484)]),this[t(484)]=null),this.workerUrl&&(window[t(481)][t(495)](this.workerUrl),this[t(479)]=null),this[t(511)]&&(clearTimeout(this[t(511)]),this.workerClearTimeout=null),this._stopStreamRateInterval(),this[t(500)]=null,this.websocketWorker&&(this[t(499)][t(492)](),this[t(499)].onmessage=null,this.websocketWorker=null),this.destroyResolve&&(this[t(482)](),this[t(482)]=null),this[t(501)]=null,this[t(508)][t(486)](this[t(505)],"destroy")}[oa(504)](){let t=Ys(na);const e=new Worker(t);this.workerUrl=t,this.workerClearTimeout=setTimeout((()=>{window.URL.revokeObjectURL(this.workerUrl),this.workerUrl=null,this.workerClearTimeout=null}),T),e.postMessage({cmd:B.init,debug:this.player._opt.debug,debugLevel:this.player._opt.debugLevel,debugUuid:this.player._opt.debugUuid}),e.onmessage=t=>{const{demux:e}=this.player,s=t.data;switch(s.cmd){case B.buffer:this.streamRate&&this.streamRate(s.buffer.byteLength),e.dispatch(s.buffer);break;case B.websocketOpen:this.player.debugLog(this.TAG_NAME,"socket open"),this._stopCheckWsOpenTimeout(),this.socketStatus=N.open,this.emit(M.streamSuccess),this.player.emit(M.websocketOpen),this._startStreamRateInterval();break;case B.websocketClose:if(this.player.isDestroyedOrClosed())return;if(this.socketStatus===N.error)return void this.player.debugLog(this.TAG_NAME,"socket close and status is error, so return");this.player.debugLog(this.TAG_NAME,`socket close and code is ${s.code}`);let t=!1;1006===s.code&&(this.player.debugError(this.TAG_NAME,`socket close abnormally and code is ${s.code}`),t=!0),this.socketStatus=N.close,this.player.isCheckStreamEnd()||t?(e.close(),this.player.emit(M.websocketClose,s.code),this.player.emit(M.streamEnd,s.code)):this.player.updateStreamEndInner();break;case B.websocketError:if(this.player.isDestroyedOrClosed())return;this.player.debugError(this.TAG_NAME,"socket error"),this.socketStatus=N.error;const i=s.isTrusted?"websocket user aborted":"websocket error";this.player.emitError(U.websocketError,i),e.close(),this.player.debugLog(this.TAG_NAME,"socket error:",i);break;case B.destroyEnd:this._destroy();break;case B.websocketStringMsg:this.player.emit(M.websocketStringMsg,s.value)}},this.websocketWorker=e}_startStreamRateInterval(){this._stopStreamRateInterval(),this.streamRateInterval=setInterval((()=>{this.streamRate&&this.streamRate(0)}),1e3)}_stopStreamRateInterval(){this.streamRateInterval&&(clearInterval(this.streamRateInterval),this.streamRateInterval=null)}_startCheckWsOpenTimeout(){this._stopCheckWsOpenTimeout(),this.checkWsOpenTimeout=setTimeout((()=>{if(this.socketStatus===N.notConnect){const t=`websocket Open Timeout form ${this.player._opt.websocketOpenTimeout}s and status is ${this.socketStatus}`;this.player.debugError(this.TAG_NAME,t),this.emit(U.websocketOpenTimeout,t)}}),1e3*this.player._opt.websocketOpenTimeout)}_stopCheckWsOpenTimeout(){this.checkWsOpenTimeout&&(clearTimeout(this.checkWsOpenTimeout),this.checkWsOpenTimeout=null)}_closeWebSocket(){this.websocketWorker&&this.websocketWorker.postMessage({cmd:B.destroy})}fetchStream(t,e){this.player._times.streamStart=je(),this.wsUrl=t,this.websocketWorker&&this.websocketWorker.postMessage({cmd:B.fetch,url:t,options:e})}sendMessage(t){this.websocketWorker&&this.websocketWorker.postMessage({cmd:B.sendMessage,message:t})}getStreamType(){return h.websocket}}function la(){const t=["hls","loadSource","542095fTgPPs","16bMLAGo","hlsError","339728RSIvSV","592018QnUZCv","then","debugLog","4806520fywXqY","HlsStream","emit","2261076ZbpUWL","9KzPNxz","streamSuccess","520431PJnVLl","player","6408336YxbiOL","6PknVmt","destroy","init","loadSource success","catch","off"];return(la=function(){return t})()}function da(t,e){const s=la();return(da=function(t,e){return s[t-=426]})(t,e)}const ua=da;!function(t,e){const s=da,i=t();for(;;)try{if(431837===-parseInt(s(427))/1+parseInt(s(441))/2+parseInt(s(448))/3+-parseInt(s(439))/4*(-parseInt(s(438))/5)+parseInt(s(430))/6*(-parseInt(s(442))/7)+-parseInt(s(429))/8+-parseInt(s(449))/9*(-parseInt(s(445))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(la);class pa extends Bi{constructor(t){const e=da;super(),this[e(428)]=t,t[e(444)](e(446),e(432))}async[ua(431)](){const t=ua;return this[t(435)](),this.player.debugLog("HlsStream",t(431)),!0}fetchStream(t){const e=ua,{hlsDecoder:s,debug:i}=this[e(428)];this[e(428)]._times.streamStart=je(),s[e(437)](t)[e(443)]((()=>{const t=e;this[t(428)].debugLog("HlsStream",t(433)),this[t(447)](M[t(426)])}))[e(434)]((t=>{const s=e;this[s(447)](U[s(440)],t)}))}getStreamType(){return h[ua(436)]}}const fa=ma;function ma(t,e){const s=ga();return(ma=function(t,e){return s[t-=340]})(t,e)}function ga(){const t=["webrtc:","destroy","emit","loadSource","1hnVPWO","290025mBVlog","pathname","getStreamType","1527435EciSrz","/webrtc/play","catch","debugLog","webrctUrl","location","streamSuccess","webrtc","_times","debugError","6BsKsDG","WebrtcStream","replace","protocol","64334gzdQRF","init","indexOf","2200630PDeFuQ","8472XYfroa","1081880CWpKGq","loadSource error",", and new url is: ","streamStart","165lduDFL","player","fetchStream","981845GEhecw","then","off","length","webrtcError"];return(ga=function(){return t})()}!function(t,e){const s=ma,i=t();for(;;)try{if(121606===-parseInt(s(353))/1*(-parseInt(s(371))/2)+-parseInt(s(341))/3*(-parseInt(s(375))/4)+-parseInt(s(344))/5*(parseInt(s(367))/6)+-parseInt(s(357))/7+parseInt(s(376))/8+parseInt(s(354))/9+parseInt(s(374))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(ga);class Aa extends Bi{constructor(t){const e=ma;super(),this[e(342)]=t,this[e(361)]=null,t[e(360)](e(368),e(372))}async[fa(350)](){const t=fa;return this[t(361)]=null,this[t(346)](),this[t(342)].debugLog(t(368),t(350)),!0}[fa(343)](t){const e=fa;let s=arguments[e(347)]>1&&void 0!==arguments[1]?arguments[1]:{};const{webrtc:i,debug:r}=this.player;if(this.player[e(365)][e(340)]=je(),this[e(361)]=t[e(369)](e(349),window[e(362)][e(370)]),this[e(342)].isWebrtcForM7S()&&-1===this[e(361)][e(373)](e(358))){const s=new URL(this[e(361)]),i="/webrtc/play"+s[e(355)];this[e(361)]=s.origin+i+s.search,this[e(342)][e(360)](e(368),"original url is "+t+e(378)+this[e(361)])}i[e(352)](this[e(361)],s)[e(345)]((()=>{const t=e;this[t(342)][t(360)]("WebrtcStream","loadSource success"),this[t(351)](M[t(363)])}))[e(359)]((t=>{const s=e;this[s(342)][s(366)](s(368),s(377),t),this[s(351)](U[s(348)],t)}))}[fa(356)](){return h[fa(364)]}}const ya=ba;function ba(t,e){const s=Sa();return(ba=function(t,e){return s[t-=332]})(t,e)}!function(t,e){const s=ba,i=t();for(;;)try{if(480023===parseInt(s(348))/1+parseInt(s(347))/2*(parseInt(s(343))/3)+parseInt(s(352))/4*(-parseInt(s(336))/5)+parseInt(s(354))/6*(-parseInt(s(350))/7)+parseInt(s(334))/8*(-parseInt(s(339))/9)+parseInt(s(356))/10+-parseInt(s(353))/11*(parseInt(s(358))/12))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Sa);class va extends Bi{constructor(t){const e=ba;super(),this[e(364)]=t,this[e(363)]=null,this[e(366)]=null,this.streamRate=He((s=>{const i=e;t.emit(M[i(341)],(s/1024)[i(349)](2))})),this[e(346)]=null,t[e(371)](e(337),"init")}async[ya(369)](){const t=ya;return this[t(357)](),this[t(367)](),this[t(364)].debugLog(t(337),t(369)),!0}startStreamRateInterval(){const t=ya;this[t(335)](),this[t(346)]=setInterval((()=>{const e=t;this[e(333)]&&this[e(333)](0)}),1e3)}[ya(335)](){const t=ya;this.streamRateInterval&&(clearInterval(this[t(346)]),this[t(346)]=null)}_createWebTransport(){const t=ya,e=this.player,{debug:s,events:{proxy:i},demux:r}=e;try{this[t(363)]=new WebTransport(this[t(366)]),this[t(363)][t(332)][t(345)]((()=>{const e=t;this.emit(M[e(373)]),this[e(351)](),this.transport[e(368)]().then((t=>{const s=e;t[s(365)][s(359)](new WritableStream(r.input))}))}))[t(342)]((e=>{const s=t;this[s(364)].debugWarn(s(337),s(361),e)}))}catch(e){this.player[t(355)]("WebTransportLoader","_createWebTransport",e)}}[ya(344)](t){const e=ya;this[e(364)][e(338)][e(360)]=je(),this[e(366)]=t[e(340)](/^wt:/,"https:"),this[e(372)]()}[ya(357)](){const t=ya;if(this[t(363)])try{this.transport[t(370)](),this[t(363)]=null}catch(t){this.transport=null}}getStreamType(){return h[ya(362)]}}function Sa(){const t=["627153wkJmXR","toFixed","25354HsWhgU","startStreamRateInterval","22808vpdfDY","55XkFlpv","78xlhcgW","debugWarn","127720naNJCB","abort","966228QYjLKG","pipeTo","streamStart","_createWebTransport-ready","webTransport","transport","player","readable","wtUrl","off","createBidirectionalStream","destroy","close","debugLog","_createWebTransport","streamSuccess","ready","streamRate","14712JJROXc","stopStreamRateInterval","325zWFQSE","WebTransportLoader","_times","810zzXTen","replace","kBps","catch","2477757bLslhV","fetchStream","then","streamRateInterval","2CMFutP"];return(Sa=function(){return t})()}const wa=Ia;function Ea(){const t=["39hMhrxN","websocket","player","9322548IAwZFg","sendMessage","132972kGvMWm","protocol","workUrl","_opt","worker","9757HBtoSX","1242731yGLgKR","streamStart","9gfWcPr","1456244rxRtfZ","10PlBKjz","18vQCQyc","WorkerStream","workerSendMessage","length","6110TtcuQy","_times","debugLog","getStreamType","fetch","destroy","decoderWorker","4669432omsgFy","init","off","10Mqnbas","180487TTZkbA"];return(Ea=function(){return t})()}function Ia(t,e){const s=Ea();return(Ia=function(t,e){return s[t-=160]})(t,e)}!function(t,e){const s=Ia,i=t();for(;;)try{if(457827===parseInt(s(161))/1+parseInt(s(177))/2*(parseInt(s(167))/3)+parseInt(s(176))/4*(parseInt(s(160))/5)+-parseInt(s(178))/6*(-parseInt(s(173))/7)+-parseInt(s(189))/8*(-parseInt(s(175))/9)+-parseInt(s(182))/10*(-parseInt(s(172))/11)+-parseInt(s(165))/12*(parseInt(s(162))/13))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Ea);class Ta extends Bi{constructor(t){const e=Ia;super(),this[e(164)]=t,this[e(169)]=null,t[e(184)](e(179),e(190))}async destroy(){const t=Ia;return this.workUrl=null,this[t(191)](),this[t(164)][t(184)](t(179),t(187)),!0}[wa(166)](t){const e=wa;this[e(164)][e(188)][e(180)](t)}fetchStream(t){const e=wa;let s=arguments[e(181)]>1&&void 0!==arguments[1]?arguments[1]:{};this[e(169)]=t,this[e(164)][e(183)][e(174)]=je(),this[e(164)].decoderWorker.workerFetchStream(t,s)}[wa(185)](){const t=wa,e=this.player[t(170)][t(168)]===o[t(186)]?h[t(186)]:h[t(163)];return h[t(171)]+" "+e}}function ka(){const t=["debugError","_times","9VtDYIn","streamStart","emit","then","off","4559916QXDezq","42182Mgtxza","4185135etjfGt","AliyunRtcLoader","32448834OMGkDI","loadSource","player","10146184vifbkz","loadSource success","440055avBExg","debugLog","init","destroy","235740StSoBH","catch","streamSuccess","TAG_NAME","fetchStream","2ykhchU","loadSource error","aliyunRtc"];return(ka=function(){return t})()}const _a=Ca;function Ca(t,e){const s=ka();return(Ca=function(t,e){return s[t-=464]})(t,e)}!function(t,e){const s=Ca,i=t();for(;;)try{if(937628===-parseInt(s(483))/1*(parseInt(s(472))/2)+-parseInt(s(477))/3*(-parseInt(s(467))/4)+-parseInt(s(484))/5+-parseInt(s(482))/6+parseInt(s(491))/7+-parseInt(s(489))/8+parseInt(s(486))/9)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(ka);class Ra extends Bi{constructor(t){const e=Ca;super(),this[e(470)]=e(485),this[e(488)]=t,t[e(464)](this[e(470)],e(465))}async destroy(){const t=Ca;return this[t(481)](),this.player.debugLog(this[t(470)],t(466)),!0}[_a(471)](t){const e=_a,{aliyunRtcDecoder:s}=this[e(488)];this[e(488)][e(476)][e(478)]=je(),s[e(487)](t)[e(480)]((()=>{const t=e;this[t(488)][t(464)](this[t(470)],t(490)),this[t(479)](M[t(469)])}))[e(468)]((t=>{const s=e;this[s(488)][s(475)](this[s(470)],s(473),t),this[s(479)](U.aliyunRtcError,t)}))}getStreamType(){return h[_a(474)]}}const Da=La;function La(t,e){const s=Pa();return(La=function(t,e){return s[t-=320]})(t,e)}!function(t,e){const s=La,i=t();for(;;)try{if(150411===-parseInt(s(321))/1+-parseInt(s(343))/2+parseInt(s(346))/3*(parseInt(s(330))/4)+-parseInt(s(326))/5*(-parseInt(s(327))/6)+parseInt(s(344))/7*(parseInt(s(345))/8)+-parseInt(s(320))/9+parseInt(s(331))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Pa);class xa extends Bi{constructor(t){const e=La;super(),this[e(332)]="MP4StreamLoader",this[e(337)]=t,t[e(334)][e(329)](this[e(332)],e(333))}[Da(339)](){const t=Da;this[t(338)](),this[t(337)][t(334)].log(this[t(332)],t(339))}[Da(323)](t){const e=Da,{mp4Decoder:s}=this.player;this[e(337)][e(325)].streamStart=je(),s[e(322)](t)[e(328)]((()=>{const t=e;this[t(337)][t(341)](this[t(332)],"loadSource success"),this[t(324)](M[t(340)])}))[e(336)]((t=>{this[e(324)](U.playVodMp4Error,t)}))}[Da(335)](){return h[Da(342)]}}function Pa(){const t=["mp4","556948kTEeoO","7MraSah","203384bbMiNv","8157DqrtSW","1596132kHLuyy","176150FqdPBl","loadSource","fetchStream","emit","_times","13985NIDvfz","354ubffLg","then","log","236XbfEXH","4315160XGIfWN","TAG_NAME","init","debug","getStreamType","catch","player","off","destroy","streamSuccess","debugLog"];return(Pa=function(){return t})()}function Ba(t,e){var s=Ma();return(Ba=function(t,e){return s[t-=379]})(t,e)}function Ma(){var t=["EmptyLoader","TAG_NAME","6YTLapL","fetchStream","destroy","3420455OMNSEF","4015914XvLznd","debugLog","507YveZlv","376983khBxHW","20236Dupaaw","953172OziXCz","player","63791SFeHOv","1210oefDzq","8287552wBXUlK"];return(Ma=function(){return t})()}var Fa=Ba;!function(t,e){for(var s=Ba,i=t();;)try{if(890146===parseInt(s(391))/1+parseInt(s(388))/2*(-parseInt(s(386))/3)+-parseInt(s(389))/4+-parseInt(s(383))/5+parseInt(s(380))/6*(-parseInt(s(384))/7)+-parseInt(s(393))/8+parseInt(s(387))/9*(parseInt(s(392))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Ma);class Oa{constructor(t){var e=Ba;this[e(390)]=t,this[e(379)]=e(394),this[e(390)][e(385)](this[e(379)],"init")}[Fa(382)](){var t=Fa;this[t(390)][t(385)](this.TAG_NAME,t(382))}[Fa(381)](){}}function Ua(t,e){const s=Na();return(Ua=function(t,e){return s[t-=145]})(t,e)}function Na(){const t=["119449CbBRmE","player","140952yXXbgF","980NlVUNK","2986917HhDfiF","3hwsUGd","2672433AdqBJO","_opt","webrtc","playerAudio","5784126nOucHO","websocket","12GCvpiy","24qpjbKx","getLoaderFactory","hls","691715dZOGci","playVod","webTransport","79578HzsvLX","aliyunRtc","fetch"];return(Na=function(){return t})()}!function(t,e){const s=Ua,i=t();for(;;)try{if(520787===-parseInt(s(162))/1*(parseInt(s(154))/2)+parseInt(s(161))/3+-parseInt(s(147))/4*(-parseInt(s(151))/5)+-parseInt(s(145))/6+parseInt(s(159))/7+-parseInt(s(148))/8*(parseInt(s(163))/9)+parseInt(s(160))/10*(parseInt(s(157))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Na);class ja{constructor(t){const e=Ua;return new(ja[e(149)](t[e(164)]))(t)}static getLoaderFactory(t){const e=Ua,{protocol:s,useWasm:i,playType:r,useWCS:n,useMSE:a,demuxUseWorker:h,mainThreadFetchUseWorker:l,isFmp4:d,isUseFileProtocol:u,useMThreading:p}=t;return wi()?Oa:r===c[e(152)]&&d?xa:s===o[e(150)]?pa:s===o[e(165)]?Aa:s===o[e(153)]?va:s===o[e(155)]?Ra:s===o[e(156)]?r===c[e(166)]?Ta:r===c[e(158)]?i&&!Hs(t)?u?qo:p?ta:Ta:h?Ta:l?ta:qo:n||a?h?Ta:l?ta:qo:u?qo:p?ta:Ta:s===o[e(146)]?r===c[e(166)]?Ta:r===c[e(158)]?i&&!Hs(t)?u?ra:p?ca:Ta:h?Ta:l?ca:ra:n||a?h?Ta:l?ca:ra:u?ra:p?ca:Ta:void 0}}function Va(){var t=["onStateChanged","fullcanvas","Writing recorded blob(s) to disk!","volume","stream","image/webp","WebAudio API has no support on this browser.","createObjectURL","Generating WebM","Edge","started recording ","onEncodingCallback","AudioContextConstructor","get","filter","offsetHeight","OutOfMemory","compile","fmt ","indexOf","leftBuffers","ceil","Fake/5.0 (FakeOS) AppleWebKit/123 (KHTML, like Gecko) Fake/12.3.4567.89 Fake/123.45","appendChild","multi-streams-mixer","The UA has exhaused the available memory. User agents SHOULD provide as much additional information as possible in the message attribute.","keyframe","https://unpkg.com/webm-wasm@latest/dist/webm-wasm.wasm","DiskStorage","leftChannel","21EVFEvU","Empty blob.","*","setQuality","getNativeBlob","security","READY","chrome","1472573nKcpum","Storage","GifRecorder","quality","body","rightBuffers","ended","RIFF","width","charCodeAt","Pass a callback function over getDataURL.","video","elementClass",") is not supported.","Passing following config over MediaRecorder API.","MRecordRTC","prototype","onGifRecordingStarted","timestamps","22472724HqUhei","getMixedStream","gif","slice","0 Bytes","AudioContext","mozGetUserMedia","trackNum","href","mozCaptureStream","11icMNKA","4yknszp","blobs","sqrt","transaction","whammy","Input must be formatted properly as a base64 encoded DataURI of type image/webp","type","onerror","dataStoreName","pauseRecording","MultiStreamRecorder","forEach","IllegalStreamModification","terminate","Fetch","postMessage",'First argument "MediaStream" is required.',"video/webm","onstop","webkitCaptureStream","round","data","all","onVideoProcessStarted","onError","useWhammyRecorder","sample-rate must be under range 22050 and 96000.","initCallback","7048UxiRhx","releaseStreams","audioContext","buffer","save","onRecordingStopped","workerURL","videoRecorder","750948XBYluX","duration","createScriptProcessor","webkitGetUserMedia","RecordRTC","makeMetadataSeekable","createJavaScriptNode","cues","recordingLength","Chrome","start","onplaying","document","captureStream","cloneNode","arrayBuffer","getBlob","onTimeStamp","opacity","getTracks","readAsDataURL","exports","setUint16","left","replace","screen","audioDestination","image","call","audioBlob","for output-type:","onmessage","realtime","commonjsGlobal","Please link: https://www.webrtc-experiment.com/screenshot.js","audio/wav","test","URL","getChannelData","timeslice","className","name",'Use "new RecordRTCPromisesHandler()"',"getWebPImages","requestAnimationFrame","Canvas recording is NOT supported in Firefox.","Blob object is required.","disableLogs","click","audio/ogg","audioRecorder","versions","closed","play","display:none;opacity:0;color:transparent;","Please make sure MediaStream is active.","onstart","Whammy","map","connect","getAllStates","error","keys","Please link: https://www.webrtc-experiment.com/EBML.js","now","position","onresume","bin","Video","VP8","Neither URL nor webkitURL detected.","StereoAudioRecorder","record","set","string","webAssemblyPath","getTime","numberOfAudioChannels","zIndex","reset","script","warn","onGifPreview","Recorder state changed:","recordingDuration must be a number.","view","split","RecordRTC is destroyed.","WAVE","manuallyStopped","frameRate","webkitAudioContext","amd","tools","5.6.2","target","frames","onload","createMediaStreamDestination","push","console","size","inactive","MIME type (","OtherRecordingError","style","getContext","clearRecordedData","canvas","bitsPerSecond","drawImage","message","getDataURL","fromCharCode","mediaType","noWorker","setInt16","decode","recordingDuration","showMousePointer","value","addFrame","text/javascript","substr","OPR/","createGain","https://unpkg.com/webm-wasm@latest/dist/webm-worker.js","invokeSaveAsDialog","toString","timeSlice","appVersion","Legal values for buffer-size are ","WhammyRecorder","gifBlob","getState","frameInterval","onRender","workerPath","srcObject","userAgent","callback","navigator","recordingDuration is required.","MediaRecorder security error","MediaStreamRecorder","sampleRate","substring","MediaStream seems stopped.","startRecording","audioSources","MediaRecorder API seems unable to record mimeType:","recordRTC","Seems recording has been restarted.","toLowerCase","number","error: ","state","startDrawingFrames","setVersion","onAudioProcessStarted","addEventListener","kind","The MediaRecorder is not in a state in which the proposed operation is allowed to be executed.","gainNode","getSeekableBlob","version","playsInline","bitrate","active","window","resetVideoStreams","8019vUHsVB","1440183sIzOzJ","_blank","clearedRecordedData","stringify","HTMLVideoElement","gifRecorder","muted","getUserMedia","UnknownError","createMediaStreamSource","WEBP","pause","pow","V_VP8","onaudioprocess","createElement","firefox","destination","revokeObjectURL","Unable to resume the recording. Recording state: ","Initialized recorderType:","this.onmessage = function (eee) {"," frames remaining","Reader","captureStream API are NOT available.","electron","readAsArrayBuffer","undefined","Got image, but recorder is finished!","invalidstate","Resumed recording.","then","constructor","Stopped recording ","disconnect","toDataURL","destroy","Upgrade to latest Chrome or otherwise enable this flag: chrome://flags/#enable-experimental-web-platform-features","objectStore","requestData","functionToLoop","recording","notsupported","1377685iiYfHn","process","setDelay","Stop an active recorder.","toFixed","stopped","random","The UA cannot provide the codec or recording option that has been requested.","concat","getMixer","GenericError","Following polyfill is strongly recommended: https://unpkg.com/@mattiasbuelens/web-streams-polyfill/dist/polyfill.min.js","LIST","Cleared old recorded data.","height","result","(eee.data);}","28gLSwcx","leftchannel","video/vp8","object","getArrayOfBlobs","read","Recording failed.","und","resumed","-1000em",";this.onmessage = function (eee) {"," stream.","9494440EWVYGP","Blob encoder did not finish its job yet.","close","started","autoWriteToDisk","documentElement","internalInterleavedLength","webkitRTCPeerConnection","stop","isTypeSupported","bufferSize","Bytes","gain","desiredSampRate","recordingCallback","videoBlob","previewStream","writeToDisk","setUint8","Used for an fatal error other than those listed above. User agents SHOULD provide as much additional information as possible in the message attribute.","rightchannel","addStreams","advertisement","Desired sample-rate: ","stopRecording","First parameter is required.","resumeRecording","initRecorder","toPrecision","top","Blob","addTrack","canRecordMimeType","WebAssemblyRecorder","paused","renderer","audio/webm","blob","onupgradeneeded","getFromDisk","nodeName","reverse","ondataavailable","webm","byteLength","inputBuffer","dispatchEvent","lacing","getInternalRecorder","checkForInactiveTracks","timecode","isElectron","readwrite","CanvasRecorder","discardable","match","recorderType","Electron","mimeType","resume","StereoAudioRecorder is set to record number of channels: ","Store","onsuccess","src","location","getImageData","msSaveOrOpenBlob","application/javascript",'It seems that recorder is destroyed or "startRecording" is not invoked for ',"function","autoplay","log","mozSrcObject","Decoder","msSaveBlob","audio","join","onloadedmetadata","MediaRecorder Error","setUint32","length","video width/height","cancelAnimationFrame","Recording finished!"," from disk!","appendStreams","https://www.webrtc-experiment.com/gif-recorder.js","MultiStreamsMixer","opera","right"];return(Va=function(){return t})()}function za(t,e){var s=Va();return(za=function(t,e){return s[t-=167]})(t,e)}!function(t,e){for(var s=za,i=t();;)try{if(996366===parseInt(s(181))/1+-parseInt(s(211))/2*(parseInt(s(419))/3)+-parseInt(s(479))/4*(parseInt(s(462))/5)+parseInt(s(247))/6*(parseInt(s(173))/7)+parseInt(s(239))/8*(-parseInt(s(418))/9)+parseInt(s(491))/10+parseInt(s(210))/11*(parseInt(s(200))/12))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Va);var Ga=Zt((function(t){var e=za;function s(t,e){var n=za;if(!t)throw n(516);e=new i(t,e=e||{type:"video"});var o=this;function a(s){var i=n;s&&(e[i(238)]=function(){var t=i;s(),s=e[t(238)]=null});var o=new r(t,e);(g=new o(t,e))[i(319)](),u(i(460)),!e.disableLogs&&console[i(562)](i(439),g[i(451)][i(288)],i(277),e.type)}function h(t){var s=n;if(t=t||function(){},g){if(o[s(403)]===s(525))return o[s(517)](),void setTimeout((function(){h(t)}),1);o[s(403)]!==s(460)&&!e[s(294)]&&console[s(328)]('Recording state should be: "recording", however current state is: ',o.state),!e[s(294)]&&console.log(s(452)+e[s(217)]+s(490)),"gif"!==e[s(217)]?g[s(499)](i):(g[s(499)](),i()),u(s(467))}else m();function i(i){var r=s;if(g){Object[r(309)](g)[r(222)]((function(t){var e=r;typeof g[t]!==e(560)&&(o[t]=g[t])}));var n=g[r(528)];if(!n){if(!i)throw r(485);g.blob=n=i}if(n&&!e[r(294)]&&console[r(562)](n[r(217)],"->",v(n[r(348)])),t){var a;try{a=p.createObjectURL(n)}catch(t){}"function"==typeof t[r(275)]?t.call(o,a):t(a)}e[r(495)]&&l((function(t){var s={};s[e[r(217)]+"Blob"]=t,x.Store(s)}))}else typeof t[r(275)]===r(560)?t[r(275)](o,""):t("")}}function c(t){var e=n;postMessage((new FileReaderSync)[e(267)](t))}function l(t,s){var i=n;if(!t)throw i(191);var r=s?s[i(528)]:(g||{}).blob;if(!r)return!e[i(294)]&&console[i(328)](i(492)),void setTimeout((function(){l(t,s)}),1e3);if(typeof Worker===i(446)||navigator[i(206)]){var o=new FileReader;o[i(267)](r),o[i(344)]=function(e){var s=i;t(e[s(342)][s(477)])}}else{var a=function(t){var e=i;try{var s=p[e(588)](new Blob([t[e(375)](),e(440)+t[e(288)]+e(478)],{type:e(558)})),r=new Worker(s);return p[e(437)](s),r}catch(t){}}(c);a.onmessage=function(e){t(e[i(232)])},a[i(226)](r)}}function d(t){var e=n;t=t||0,o[e(403)]!==e(525)?o[e(403)]!==e(467)&&(t>=o[e(365)]?h(o[e(244)]):(t+=1e3,setTimeout((function(){d(t)}),1e3))):setTimeout((function(){d(t)}),1e3)}function u(t){var e=n;o&&(o[e(403)]=t,typeof o[e(581)][e(275)]===e(560)?o[e(581)][e(275)](o,t):o[e(581)](t))}var f=n(559)+e[n(217)]+" recorder.";function m(){var t=n;!0!==e.disableLogs&&console[t(328)](f)}var g,A={startRecording:function(s){var r=n;return!e.disableLogs&&console.log("RecordRTC version: ",o[r(412)]),s&&(e=new i(t,s)),!e[r(294)]&&console[r(562)](r(591)+e[r(217)]+" stream."),g?(g.clearRecordedData(),g[r(319)](),u(r(460)),o.recordingDuration&&d(),o):(a((function(){o[r(365)]&&d()})),o)},stopRecording:h,pauseRecording:function(){var t=n;g?"recording"===o.state?(u("paused"),g[t(430)](),!e[t(294)]&&console[t(562)]("Paused recording.")):!e[t(294)]&&console[t(328)]("Unable to pause the recording. Recording state: ",o[t(403)]):m()},resumeRecording:function(){var t=n;g?o[t(403)]===t(525)?(u(t(460)),g.resume(),!e[t(294)]&&console[t(562)](t(449))):!e[t(294)]&&console[t(328)](t(438),o[t(403)]):m()},initRecorder:a,setRecordingDuration:function(t,e){var s=n;if(typeof t===s(446))throw s(389);if(typeof t!==s(401))throw s(331);return o.recordingDuration=t,o[s(244)]=e||function(){},{onRecordingStopped:function(t){o[s(244)]=t}}},clearRecordedData:function(){var t=n;g?(g[t(354)](),!e[t(294)]&&console[t(562)](t(475))):m()},getBlob:function(){if(g)return g[n(528)];m()},getDataURL:l,toURL:function(){var t=n;if(g)return p[t(588)](g[t(528)]);m()},getInternalRecorder:function(){return g},save:function(t){g?S(g[n(528)],t):m()},getFromDisk:function(t){var i=n;g?s[i(530)](e[i(217)],t):m()},setAdvertisementArray:function(t){var s=n;e.advertisement=[];for(var i=t[s(571)],r=0;r<i;r++)e[s(513)][s(346)]({duration:r,image:t[r]})},blob:null,bufferSize:0,sampleRate:0,buffer:null,reset:function(){var t=n;"recording"===o[t(403)]&&!e[t(294)]&&console[t(328)](t(465)),g&&"function"==typeof g[t(354)]&&g[t(354)](),g=null,u(t(349)),o[t(528)]=null},onStateChanged:function(t){var s=n;!e[s(294)]&&console.log(s(330),t)},state:"inactive",getState:function(){return o[n(403)]},destroy:function(){var t=n,s=e[t(294)];e={disableLogs:!0},o[t(326)](),u("destroyed"),A=o=null,T[t(593)]&&(T[t(593)][t(493)](),T[t(593)]=null),e[t(294)]=s,!e[t(294)]&&console[t(562)](t(334))},version:"5.6.2"};if(!this)return o=A,A;for(var y in A)this[y]=A[y];return o=this,A}function i(t,s){var i=e;return s[i(547)]||s.type||(s.audio&&s[i(192)]?s[i(217)]=i(192):s.audio&&!s[i(192)]&&(s[i(217)]=i(566))),s.recorderType&&!s[i(217)]&&(s[i(547)]===D||s.recorderType===R||"function"!==i(446)&&s[i(547)]===F?s[i(217)]=i(192):s[i(547)]===P?s.type=i(202):s.recorderType===C?s[i(217)]=i(566):s[i(547)]===_&&(E(t,i(566))[i(571)]&&E(t,"video")[i(571)]?s.type=i(192):!E(t,"audio").length&&E(t,i(192))[i(571)]?s[i(217)]=i(192):E(t,i(566))[i(571)]&&!E(t,i(192)).length&&(s.type="audio"))),"function"!==i(446)&&typeof MediaRecorder!==i(446)&&"requestData"in MediaRecorder[i(197)]&&(!s.mimeType&&(s[i(549)]=i(228)),!s.type&&(s[i(217)]=s[i(549)].split("/")[0]),s[i(356)]),!s[i(217)]&&(s[i(549)]&&(s[i(217)]=s[i(549)][i(333)]("/")[0]),!s.type&&(s[i(217)]=i(566))),s}function r(t,s){var i,r=e;return(A||f||m)&&(i=C),"undefined"!=typeof MediaRecorder&&r(458)in MediaRecorder[r(197)]&&!A&&(i=_),s.type===r(192)&&(A||m)&&(i=D,"function"!==r(446)&&typeof ReadableStream!==r(446)&&(i=F)),"gif"===s[r(217)]&&(i=P),s.type===r(355)&&(i=R),k()&&i!==R&&i!==P&&typeof MediaRecorder!==r(446)&&r(458)in MediaRecorder[r(197)]&&(E(t,"video")[r(571)]||E(t,r(566))[r(571)])&&(s.type===r(566)?typeof MediaRecorder.isTypeSupported===r(560)&&MediaRecorder[r(500)](r(527))&&(i=_):typeof MediaRecorder[r(500)]===r(560)&&MediaRecorder[r(500)]("video/webm")&&(i=_)),t instanceof Array&&t[r(571)]&&(i=M),s[r(547)]&&(i=s[r(547)]),!s[r(294)]&&!!i&&!!i[r(288)]&&console[r(562)]("Using recorderType:",i.name||i[r(451)][r(288)]),!i&&y&&(i=_),i}function n(t){var i=e;this.addStream=function(e){e&&(t=e)},this[i(361)]={audio:!0,video:!0},this.startRecording=function(){var e,r=i,n=this[r(361)],o=this[r(549)]||{audio:null,video:null,gif:null};if(typeof n.audio!==r(560)&&k()&&!E(t,r(566))[r(571)]&&(n.audio=!1),typeof n.video!==r(560)&&k()&&!E(t,r(192)).length&&(n[r(192)]=!1),typeof n.gif!==r(560)&&k()&&!E(t,r(192))[r(571)]&&(n[r(202)]=!1),!n[r(566)]&&!n.video&&!n[r(202)])throw"MediaStream must have either audio or video tracks.";if(n[r(566)]&&(e=null,typeof n[r(566)]===r(560)&&(e=n.audio),this[r(297)]=new s(t,{type:r(566),bufferSize:this[r(501)],sampleRate:this[r(392)],numberOfAudioChannels:this.numberOfAudioChannels||2,disableLogs:this.disableLogs,recorderType:e,mimeType:o[r(566)],timeSlice:this[r(376)],onTimeStamp:this.onTimeStamp}),!n[r(192)]&&this[r(297)][r(395)]()),n[r(192)]){e=null,typeof n[r(192)]===r(560)&&(e=n.video);var a=t;if(k()&&n[r(566)]&&"function"==typeof n[r(566)]){var h=E(t,r(192))[0];g?((a=new b)[r(522)](h),e&&e===D&&(e=_)):(a=new b).addTrack(h)}this[r(246)]=new s(a,{type:r(192),video:this[r(192)],canvas:this[r(355)],frameInterval:this.frameInterval||10,disableLogs:this[r(294)],recorderType:e,mimeType:o.video,timeSlice:this[r(376)],onTimeStamp:this.onTimeStamp,workerPath:this[r(384)],webAssemblyPath:this[r(322)],frameRate:this[r(337)],bitrate:this[r(414)]}),!n[r(566)]&&this[r(246)][r(395)]()}if(n[r(566)]&&n[r(192)]){var c=this,l=!0===k();(n.audio instanceof C&&n.video||!0!==n[r(566)]&&!0!==n.video&&n.audio!==n[r(192)])&&(l=!1),!0===l?(c[r(297)]=null,c[r(246)].startRecording()):c[r(246)][r(518)]((function(){var t=r;c[t(297)].initRecorder((function(){var e=t;c[e(246)][e(395)](),c[e(297)][e(395)]()}))}))}n[r(202)]&&(e=null,typeof n[r(202)]===r(560)&&(e=n[r(202)]),this[r(424)]=new s(t,{type:r(202),frameRate:this[r(337)]||200,quality:this[r(184)]||10,disableLogs:this.disableLogs,recorderType:e,mimeType:o[r(202)]}),this[r(424)].startRecording())},this[i(515)]=function(t){var e=i;t=t||function(){},this[e(297)]&&this[e(297)][e(515)]((function(s){t(s,e(566))})),this[e(246)]&&this[e(246)][e(515)]((function(s){t(s,e(192))})),this.gifRecorder&&this.gifRecorder.stopRecording((function(s){t(s,e(202))}))},this.pauseRecording=function(){var t=i;this.audioRecorder&&this[t(297)][t(220)](),this[t(246)]&&this.videoRecorder[t(220)](),this[t(424)]&&this[t(424)][t(220)]()},this[i(517)]=function(){var t=i;this[t(297)]&&this.audioRecorder[t(517)](),this[t(246)]&&this[t(246)][t(517)](),this[t(424)]&&this[t(424)][t(517)]()},this.getBlob=function(t){var e=i,s={};return this[e(297)]&&(s[e(566)]=this[e(297)].getBlob()),this[e(246)]&&(s[e(192)]=this[e(246)][e(263)]()),this[e(424)]&&(s[e(202)]=this[e(424)][e(263)]()),t&&t(s),s},this[i(455)]=function(){var t=i;this[t(297)]&&(this[t(297)][t(455)](),this[t(297)]=null),this[t(246)]&&(this[t(246)][t(455)](),this.videoRecorder=null),this[t(424)]&&(this[t(424)].destroy(),this[t(424)]=null)},this[i(359)]=function(t){var e=i;function s(t,s){var i=e;if(typeof Worker!==i(446)){var r=function(t){var s,i=e,r=p.createObjectURL(new Blob([t.toString(),i(440)+t[i(288)]+"(eee.data);}"],{type:"application/javascript"})),n=new Worker(r);if(typeof p!==i(446))s=p;else{if(typeof webkitURL===i(446))throw i(317);s=webkitURL}return s.revokeObjectURL(r),n}((function(t){var e=i;postMessage((new FileReaderSync)[e(267)](t))}));r[i(278)]=function(t){s(t[i(232)])},r[i(226)](t)}else{var n=new FileReader;n[i(267)](t),n[i(344)]=function(t){var e=i;s(t[e(342)][e(477)])}}}this[e(263)]((function(i){var r=e;i[r(566)]&&i.video?s(i[r(566)],(function(e){s(i[r(192)],(function(s){t({audio:e,video:s})}))})):i[r(566)]?s(i.audio,(function(e){t({audio:e})})):i[r(192)]&&s(i[r(192)],(function(e){t({video:e})}))}))},this[i(508)]=function(){var t=i;s[t(508)]({audio:this.audioRecorder,video:this[t(246)],gif:this[t(424)]})},this[i(243)]=function(t){var e=i;!!(t=t||{audio:!0,video:!0,gif:!0}).audio&&this[e(297)]&&this[e(297)].save("string"==typeof t[e(566)]?t[e(566)]:""),!!t[e(192)]&&this[e(246)]&&this[e(246)][e(243)](typeof t[e(192)]===e(321)?t[e(192)]:""),t[e(202)]&&this[e(424)]&&this[e(424)][e(243)](typeof t[e(202)]===e(321)?t[e(202)]:"")}}s.version=e(341),"undefined"!==e(482)&&(t[e(268)]=s),"undefined"===e(560)&&(void 0)[e(339)]&&(void 0)(e(251),[],(function(){return s})),s.getFromDisk=function(t,s){var i=e;if(!s)throw"callback is mandatory.";console[i(562)]("Getting recorded "+(t===i(233)?i(212):t+" blob ")+i(575)),x[i(225)]((function(e,r){var n=i;t!==n(233)&&r===t+n(521)&&s&&s(e),t===n(233)&&s&&s(e,r[n(271)](n(521),""))}))},s[e(508)]=function(t){var s=e;console[s(562)](s(583)),(t=t||{})[s(566)]&&t[s(192)]&&t[s(202)]?t[s(566)][s(359)]((function(e){var i=s;t[i(192)][i(359)]((function(s){var r=i;t[r(202)].getDataURL((function(t){x[r(552)]({audioBlob:e,videoBlob:s,gifBlob:t})}))}))})):t[s(566)]&&t[s(192)]?t[s(566)].getDataURL((function(e){var i=s;t[i(192)][i(359)]((function(t){x[i(552)]({audioBlob:e,videoBlob:t})}))})):t.audio&&t.gif?t[s(566)][s(359)]((function(e){var i=s;t.gif[i(359)]((function(t){x[i(552)]({audioBlob:e,gifBlob:t})}))})):t.video&&t[s(202)]?t[s(192)][s(359)]((function(e){var i=s;t[i(202)].getDataURL((function(t){x[i(552)]({videoBlob:e,gifBlob:t})}))})):t.audio?t[s(566)][s(359)]((function(t){x[s(552)]({audioBlob:t})})):t[s(192)]?t[s(192)].getDataURL((function(t){x.Store({videoBlob:t})})):t.gif&&t[s(202)][s(359)]((function(t){x[s(552)]({gifBlob:t})}))},n[e(530)]=s[e(530)],n[e(508)]=s[e(508)],"function"!==e(446)&&(s[e(196)]=n);var o,a,h=e(603);o=typeof $t[e(280)]!==e(446)?Jt:null,a=e,o&&typeof window===a(446)&&typeof $t[a(280)]!==a(446)&&($t[a(280)][a(388)]={userAgent:h,getUserMedia:function(){}},!$t[a(280)][a(347)]&&($t[a(280)][a(347)]={}),(typeof $t[a(280)][a(347)][a(562)]===a(446)||typeof $t[a(280)][a(347)][a(308)]===a(446))&&($t[a(280)][a(347)].error=$t[a(280)].console[a(562)]=Jt[a(347)][a(562)]||function(){console.log(arguments)}),"undefined"==typeof document&&(o[a(259)]={documentElement:{appendChild:function(){return""}}},document[a(434)]=document.captureStream=document.mozCaptureStream=function(){var t={getContext:function(){return t},play:function(){},pause:function(){},drawImage:function(){},toDataURL:function(){return""},style:{}};return t},o[a(423)]=function(){}),typeof location===a(446)&&(o[a(555)]={protocol:"file:",href:"",hash:""}),typeof screen===a(446)&&(o[a(272)]={width:0,height:0}),typeof p===a(446)&&(o[a(284)]={createObjectURL:function(){return""},revokeObjectURL:function(){return""}}),o[a(416)]=Jt);var c=window[e(291)];if(typeof c===e(446))if(typeof webkitRequestAnimationFrame!==e(446))c=webkitRequestAnimationFrame;else if(typeof mozRequestAnimationFrame!==e(446))c=mozRequestAnimationFrame;else if(typeof msRequestAnimationFrame!==e(446))c=msRequestAnimationFrame;else if(typeof c===e(446)){var l=0;c=function(t,s){var i=e,r=(new Date)[i(323)](),n=Math.max(0,16-(r-l)),o=setTimeout((function(){t(r+n)}),n);return l=r+n,o}}var d=window[e(573)];typeof d===e(446)&&(typeof webkitCancelAnimationFrame!==e(446)?d=webkitCancelAnimationFrame:typeof mozCancelAnimationFrame!==e(446)?d=mozCancelAnimationFrame:typeof msCancelAnimationFrame!==e(446)?d=msCancelAnimationFrame:typeof d===e(446)&&(d=function(t){clearTimeout(t)}));var u=window[e(205)];typeof u===e(446)&&(typeof webkitAudioContext!==e(446)&&(u=webkitAudioContext),typeof mozAudioContext!==e(446)&&(u=mozAudioContext));var p=window.URL;typeof p===e(446)&&typeof webkitURL!==e(446)&&(p=webkitURL),typeof navigator!==e(446)&&void 0===navigator.getUserMedia&&(void 0!==navigator[e(250)]&&(navigator[e(426)]=navigator[e(250)]),typeof navigator.mozGetUserMedia!==e(446)&&(navigator.getUserMedia=navigator[e(206)]));var f=!(-1===navigator[e(386)].indexOf(e(590))||!navigator[e(565)]&&!navigator.msSaveOrOpenBlob),m=!!window[e(579)]||-1!==navigator[e(386)][e(600)](e(371)),g=navigator[e(386)][e(400)]()[e(600)](e(435))>-1&&"netscape"in window&&/ rv:/[e(283)](navigator[e(386)]),A=!m&&!f&&!!navigator[e(250)]||w()||-1!==navigator[e(386)][e(400)]()[e(600)]("chrome/"),y=/^((?!chrome|android).)*safari/i[e(283)](navigator[e(386)]);y&&!A&&-1!==navigator.userAgent[e(600)]("CriOS")&&(y=!1,A=!0);var b=window.MediaStream;function v(t){var s=e,i=[s(502),"KB","MB","GB","TB"];if(0===t)return s(204);var r=parseInt(Math.floor(Math[s(562)](t)/Math.log(1e3)),10);return(t/Math[s(431)](1e3,r))[s(519)](3)+" "+i[r]}function S(t,s){var i=e;if(!t)throw i(293);if(!t.type)try{t[i(217)]="video/webm"}catch(t){}var r=(t[i(217)]||i(228)).split("/")[1];if(-1!==r[i(600)](";")&&(r=r[i(333)](";")[0]),s&&-1!==s[i(600)](".")){var n=s[i(333)](".");s=n[0],r=n[1]}var o=(s||Math[i(231)](9999999999*Math[i(468)]())+888888888)+"."+r;if(void 0!==navigator.msSaveOrOpenBlob)return navigator[i(557)](t,o);if(typeof navigator[i(565)]!==i(446))return navigator[i(565)](t,o);var a=document.createElement("a");a.href=p[i(588)](t),a.download=o,a.style=i(301),(document.body||document[i(496)])[i(604)](a),typeof a[i(295)]===i(560)?a.click():(a[i(342)]=i(420),a[i(537)](new MouseEvent(i(295),{view:window,bubbles:!0,cancelable:!0}))),p.revokeObjectURL(a.href)}function w(){var t=e;return typeof window!==t(446)&&typeof window[t(463)]===t(482)&&window[t(463)][t(217)]===t(526)||(!(typeof process===t(446)||typeof process.versions!==t(482)||!process[t(298)][t(444)])||typeof navigator===t(482)&&typeof navigator[t(386)]===t(321)&&navigator[t(386)].indexOf(t(548))>=0)}function E(t,s){var i=e;return t&&t[i(266)]?t[i(266)]().filter((function(t){var e=i;return t.kind===(s||e(566))})):[]}function I(t,s){var i=e;i(385)in s?s[i(385)]=t:i(563)in s?s[i(563)]=t:s[i(385)]=t}typeof b===e(446)&&typeof webkitMediaStream!==e(446)&&(b=webkitMediaStream),typeof b!==e(446)&&void 0===b[e(197)][e(499)]&&(b[e(197)].stop=function(){var t=e;this[t(266)]()[t(222)]((function(e){e[t(499)]()}))}),"function"!==e(446)&&(s[e(374)]=S,s[e(266)]=E,s[e(411)]=function(t,s){var i=e;if(typeof EBML===i(446))throw new Error(i(310));var r=new(EBML[i(442)]),n=new(EBML[i(564)]),o=EBML[i(340)],a=new FileReader;a.onload=function(t){var e=i;n[e(364)](this[e(477)])[e(222)]((function(t){r[e(484)](t)})),r[e(499)]();var a=o[e(252)](r.metadatas,r[e(248)],r[e(254)]),h=this[e(477)][e(203)](r.metadataSize),c=new Blob([a,h],{type:e(228)});s(c)},a[i(445)](t)},s.bytesToSize=v,s[e(542)]=w);var T={};function k(){var t=e;if(g||y||f)return!0;var s,i,r=navigator[t(386)],n=""+parseFloat(navigator[t(377)]),o=parseInt(navigator[t(377)],10);return(A||m)&&(s=r[t(600)](t(256)),n=r.substring(s+7)),-1!==(i=n[t(600)](";"))&&(n=n[t(393)](0,i)),-1!==(i=n[t(600)](" "))&&(n=n[t(393)](0,i)),o=parseInt(""+n,10),isNaN(o)&&(n=""+parseFloat(navigator[t(377)]),o=parseInt(navigator.appVersion,10)),o>=49}function _(t,s){var i=e,r=this;if(typeof t===i(446))throw i(227);if(typeof MediaRecorder===i(446))throw"Your browser does not support the Media Recorder API. Please try other modules e.g. WhammyRecorder or StereoAudioRecorder.";if((s=s||{mimeType:i(228)})[i(217)]===i(566)){var n;if(E(t,i(192))[i(571)]&&E(t,i(566))[i(571)])navigator[i(206)]?(n=new b)[i(522)](E(t,"audio")[0]):n=new b(E(t,"audio")),t=n;(!s[i(549)]||-1===s.mimeType.toString()[i(400)]()[i(600)](i(566)))&&(s[i(549)]=A?"audio/webm":"audio/ogg"),s[i(549)]&&s[i(549)][i(375)]().toLowerCase()!==i(296)&&navigator[i(206)]&&(s[i(549)]=i(296))}var o,a=[];function h(){var t=i;r.timestamps[t(346)]((new Date)[t(323)]()),"function"==typeof s[t(264)]&&s[t(264)](r[t(199)][r[t(199)][t(571)]-1],r[t(199)])}function c(t){var e=i;return o&&o[e(549)]?o.mimeType:t.mimeType||e(228)}function l(){a=[],o=null,r[i(199)]=[]}this[i(483)]=function(){return a},this[i(319)]=function(){var e=i;r.blob=null,r.clearRecordedData(),r[e(199)]=[],d=[],a=[];var n=s;!s.disableLogs&&console.log(e(195),n),o&&(o=null),A&&!k()&&(n=e(481)),typeof MediaRecorder[e(500)]===e(560)&&n[e(549)]&&!MediaRecorder.isTypeSupported(n[e(549)])&&(!s[e(294)]&&console[e(328)](e(397),n[e(549)]),n[e(549)]=s[e(217)]===e(566)?e(527):e(228));try{o=new MediaRecorder(t,n),s[e(549)]=n[e(549)]}catch(e){o=new MediaRecorder(t)}n[e(549)]&&!MediaRecorder.isTypeSupported&&e(523)in o&&!1===o[e(523)](n.mimeType)&&!s[e(294)]&&console[e(328)]("MediaRecorder API seems unable to record mimeType:",n.mimeType),o.ondataavailable=function(t){var i=e;if(t[i(232)]&&d[i(346)]("ondataavailable: "+v(t[i(232)].size)),typeof s[i(376)]!==i(401))!t[i(232)]||!t.data.size||t[i(232)][i(348)]<100||r[i(528)]?r[i(505)]&&(r[i(505)](new Blob([],{type:c(n)})),r[i(505)]=null):(r.blob=s.getNativeBlob?t[i(232)]:new Blob([t[i(232)]],{type:c(n)}),r[i(505)]&&(r.recordingCallback(r[i(528)]),r.recordingCallback=null));else if(t[i(232)]&&t[i(232)][i(348)]&&(a[i(346)](t[i(232)]),h(),typeof s.ondataavailable===i(560))){var o=s[i(177)]?t[i(232)]:new Blob([t[i(232)]],{type:c(n)});s.ondataavailable(o)}},o[e(303)]=function(){var t=e;d[t(346)](t(494))},o.onpause=function(){var t=e;d.push(t(525))},o[e(313)]=function(){var t=e;d[t(346)](t(487))},o[e(229)]=function(){var t=e;d[t(346)](t(467))},o[e(218)]=function(t){var i=e;t&&(!t.name&&(t[i(288)]=i(427)),d[i(346)](i(402)+t),s[i(294)]||(-1!==t[i(288)][i(375)]()[i(400)]()[i(600)](i(448))?console[i(308)](i(409),t):-1!==t.name[i(375)]()[i(400)]().indexOf(i(461))?console[i(308)](i(350),n.mimeType,i(194),t):-1!==t[i(288)].toString().toLowerCase().indexOf(i(178))?console.error(i(390),t):t.name===i(597)?console[i(308)](i(168),t):t.name===i(223)?console[i(308)]("A modification to the stream has occurred that makes it impossible to continue recording. An example would be the addition of a Track while recording is occurring. User agents SHOULD provide as much additional information as possible in the message attribute.",t):t[i(288)]===i(351)?console[i(308)](i(510),t):t.name===i(472)?console[i(308)](i(469),t):console[i(308)](i(569),t)),function(t){var e=i;if(!r[e(336)]&&o&&"inactive"===o[e(403)])return delete s[e(286)],void o[e(257)](6e5);setTimeout(void 0,1e3)}(),o[i(403)]!==i(349)&&o[i(403)]!==i(467)&&o.stop())},typeof s[e(376)]===e(401)?(h(),o.start(s[e(376)])):o[e(257)](36e5),s[e(238)]&&s[e(238)]()},this[i(199)]=[],this[i(499)]=function(t){var e=i;t=t||function(){},r[e(336)]=!0,o&&(this[e(505)]=t,o.state===e(460)&&o[e(499)](),typeof s[e(376)]===e(401)&&setTimeout((function(){var t=e;r.blob=new Blob(a,{type:c(s)}),r[t(505)](r[t(528)])}),100))},this[i(430)]=function(){var t=i;o&&o[t(403)]===t(460)&&o[t(430)]()},this[i(550)]=function(){var t=i;o&&o[t(403)]===t(525)&&o.resume()},this[i(354)]=function(){var t=i;o&&o.state===t(460)&&r.stop(l),l()},this[i(539)]=function(){return o},this[i(528)]=null,this.getState=function(){var t=i;return o&&o[t(403)]||t(349)};var d=[];this[i(307)]=function(){return d},typeof s[i(540)]===i(446)&&(s.checkForInactiveTracks=!1);r=this;(function e(){var n=i;if(o&&!1!==s[n(540)])return!1===function(){var e=i;if(e(415)in t){if(!t.active)return!1}else if(e(187)in t&&t.ended)return!1;return!0}()?(!s.disableLogs&&console[n(562)](n(394)),void r[n(499)]()):void setTimeout(e,1e3)})(),this[i(288)]=i(391),this[i(375)]=function(){return this[i(288)]}}function C(t,i){var r=e;if(!E(t,r(566))[r(571)])throw"Your stream has no audio tracks.";var n,o=this,a=[],h=[],c=!1,l=0,d=2,u=(i=i||{}).desiredSampRate;function f(){var e=r;if(!1===i.checkForInactiveTracks)return!0;if("active"in t){if(!t.active)return!1}else if("ended"in t&&t[e(187)])return!1;return!0}function m(t,e){var s=r;function i(t,e){var s,i=za,r=t[i(324)],n=t[i(601)].slice(0),o=t[i(186)].slice(0),a=t.sampleRate,h=t[i(497)],c=t[i(504)];function l(t,e,s){var r,n,o=i,a=Math[o(231)](t[o(571)]*(e/s)),h=[],c=Number((t[o(571)]-1)/(a-1));h[0]=t[0];for(var l=1;l<a-1;l++){var d=l*c,u=Number(Math.floor(d))[o(466)](),p=Number(Math[o(602)](d))[o(466)](),f=d-u;h[l]=(r=t[u],n=t[p],r+(n-r)*f)}return h[a-1]=t[t[o(571)]-1],h}function d(t,e){for(var s=i,r=new Float64Array(e),n=0,o=t[s(571)],a=0;a<o;a++){var h=t[a];r[s(320)](h,n),n+=h[s(571)]}return r}function u(t,e,s){for(var r=i,n=s[r(571)],o=0;o<n;o++)t[r(509)](e+o,s[r(190)](o))}2===r&&(n=d(n,h),o=d(o,h),c&&(n=l(n,c,a),o=l(o,c,a))),1===r&&(n=d(n,h),c&&(n=l(n,c,a))),c&&(a=c),2===r&&(s=function(t,e){for(var s=i,r=t.length+e[s(571)],n=new Float64Array(r),o=0,a=0;a<r;)n[a++]=t[o],n[a++]=e[o],o++;return n}(n,o)),1===r&&(s=n);var p=s[i(571)],f=new ArrayBuffer(44+2*p),m=new DataView(f);u(m,0,i(188)),m[i(570)](4,36+2*p,!0),u(m,8,i(335)),u(m,12,i(599)),m[i(570)](16,16,!0),m[i(269)](20,1,!0),m[i(269)](22,r,!0),m[i(570)](24,a,!0),m.setUint32(28,a*r*2,!0),m.setUint16(32,2*r,!0),m[i(269)](34,16,!0),u(m,36,"data"),m[i(570)](40,2*p,!0);for(var g=p,A=44,y=0;y<g;y++)m[i(363)](A,32767*s[y],!0),A+=2;if(e)return e({buffer:f,view:m});postMessage({buffer:f,view:m})}if(t[s(362)])i(t,(function(t){var i=s;e(t[i(242)],t[i(332)])}));else{var n,o,a,h,c=(n=i,a=p[(o=r)(588)](new Blob([n.toString(),o(489)+n[o(288)]+"(eee.data);}"],{type:"application/javascript"})),(h=new Worker(a)).workerURL=a,h);c[s(278)]=function(t){var i=s;e(t[i(232)][i(242)],t[i(232)][i(332)]),p[i(437)](c[i(245)]),c[i(224)]()},c.postMessage(t)}}!0===i[r(172)]&&(d=1),1===i[r(324)]&&(d=1),(!d||d<1)&&(d=2),!i[r(294)]&&console[r(562)](r(551)+d),void 0===i.checkForInactiveTracks&&(i[r(540)]=!0),this.record=function(){var t=r;if(!1===f())throw t(302);w(),T=S=!1,c=!0,typeof i[t(376)]!==t(446)&&_()},this[r(499)]=function(t){var e=r;t=t||function(){},c=!1,m({desiredSampRate:u,sampleRate:v,numberOfAudioChannels:d,internalInterleavedLength:l,leftBuffers:a,rightBuffers:1===d?[]:h,noWorker:i[e(362)]},(function(s,i){var r=e;o[r(528)]=new Blob([i],{type:r(282)}),o[r(242)]=new ArrayBuffer(i[r(242)][r(535)]),o[r(332)]=i,o[r(392)]=u||v,o[r(501)]=b,o[r(571)]=l,T=!1,t&&t(o[r(528)])}))},typeof s[r(182)]===r(446)&&(s[r(182)]={AudioContextConstructor:null,AudioContext:window[r(205)]||window[r(338)]}),(!s.Storage[r(593)]||s[r(182)][r(593)][r(403)]===r(299))&&(s.Storage[r(593)]=new s.Storage.AudioContext);var g=s[r(182)].AudioContextConstructor,A=g.createMediaStreamSource(t),y=[0,256,512,1024,2048,4096,8192,16384],b=typeof i[r(501)]===r(446)?4096:i[r(501)];if(-1===y[r(600)](b)&&!i[r(294)]&&console[r(562)](r(378)+JSON[r(422)](y,null,"\t")),g.createJavaScriptNode)n=g[r(253)](b,d,d);else{if(!g[r(249)])throw r(587);n=g[r(249)](b,d,d)}A[r(306)](n),!i[r(501)]&&(b=n[r(501)]);var v=typeof i[r(392)]!==r(446)?i[r(392)]:g[r(392)]||44100;(v<22050||v>96e3)&&!i[r(294)]&&console[r(562)](r(237)),!i[r(294)]&&i[r(504)]&&console[r(562)](r(514)+i[r(504)]);var S=!1;function w(){var t=r;a=[],h=[],l=0,T=!1,c=!1,S=!1,g=null,o.leftchannel=a,o[t(511)]=h,o.numberOfAudioChannels=d,o[t(504)]=u,o.sampleRate=v,o.recordingLength=l,k={left:[],right:[],recordingLength:0}}function I(){var t=r;n&&(n.onaudioprocess=null,n[t(453)](),n=null),A&&(A[t(453)](),A=null),w()}this.pause=function(){S=!0},this.resume=function(){var t=r;if(!1===f())throw"Please make sure MediaStream is active.";if(!c)return!i.disableLogs&&console.log(t(399)),void this.record();S=!1},this[r(354)]=function(){var t=r;i[t(540)]=!1,c&&this[t(499)](I),I()},this[r(288)]=r(318),this[r(375)]=function(){return this.name};var T=!1;n[r(433)]=function(t){var e=r;if(!S)if(!1===f()&&(!i[e(294)]&&console[e(562)]("MediaStream seems stopped."),n[e(453)](),c=!1),c){!T&&(T=!0,i[e(406)]&&i.onAudioProcessStarted(),i.initCallback&&i[e(238)]());var s=t.inputBuffer.getChannelData(0),u=new Float32Array(s);if(a[e(346)](u),2===d){var p=t[e(536)][e(285)](1),m=new Float32Array(p);h[e(346)](m)}l+=b,o[e(255)]=l,void 0!==i[e(376)]&&(k[e(255)]+=b,k[e(270)][e(346)](u),2===d&&k[e(580)].push(m))}else A&&(A[e(453)](),A=null)},g[r(345)]?n[r(306)](g[r(345)]()):n[r(306)](g[r(436)]),this[r(480)]=a,this[r(511)]=h,this[r(324)]=d,this[r(504)]=u,this[r(392)]=v,o[r(255)]=l;var k={left:[],right:[],recordingLength:0};function _(){var t=r;c&&typeof i[t(533)]===t(560)&&typeof i[t(376)]!==t(446)&&(k.left.length?(m({desiredSampRate:u,sampleRate:v,numberOfAudioChannels:d,internalInterleavedLength:k.recordingLength,leftBuffers:k[t(270)],rightBuffers:1===d?[]:k[t(580)]},(function(e,s){var r=t,n=new Blob([s],{type:r(282)});i[r(533)](n),setTimeout(_,i[r(376)])})),k={left:[],right:[],recordingLength:0}):setTimeout(_,i[t(376)]))}}function R(t,s){var i=e;if(typeof html2canvas===i(446))throw i(281);!(s=s||{})[i(382)]&&(s[i(382)]=10);var r=!1;[i(260),i(209),"webkitCaptureStream"][i(222)]((function(t){var e=i;t in document[e(434)](e(355))&&(r=!0)}));var n,o,a,h=!(!window[i(498)]&&!window[i(250)]||!window[i(180)]),c=50,l=navigator.userAgent[i(546)](/Chrom(e|ium)\/([0-9]+)\./);if(h&&l&&l[2]&&(c=parseInt(l[2],10)),h&&c<52&&(r=!1),s[i(236)]&&(r=!1),r)if(!s[i(294)]&&console[i(562)]("Your browser supports both MediRecorder API and canvas.captureStream!"),t instanceof HTMLCanvasElement)n=t;else{if(!(t instanceof CanvasRenderingContext2D))throw"Please pass either HTMLCanvasElement or CanvasRenderingContext2D.";n=t[i(355)]}else navigator[i(206)]&&!s.disableLogs&&console[i(308)](i(292));this[i(319)]=function(){var t=i;if(a=!0,r&&!s[t(236)]){var e;t(260)in n?e=n.captureStream(25):t(209)in n?e=n.mozCaptureStream(25):t(230)in n&&(e=n[t(230)](25));try{var h=new b;h[t(522)](E(e,t(192))[0]),e=h}catch(t){}if(!e)throw t(443);(o=new _(e,{mimeType:s[t(549)]||t(228)})).record()}else m.frames=[],f=(new Date)[t(323)](),p();s[t(238)]&&s.initCallback()},this.getWebPImages=function(e){var r=i;if(t.nodeName[r(400)]()===r(355)){var n=m[r(343)][r(571)];m[r(343)].forEach((function(t,e){var i=r,o=n-e;!s[i(294)]&&console[i(562)](o+"/"+n+i(441)),s.onEncodingCallback&&s[i(592)](o,n);var a=t[i(274)].toDataURL("image/webp",1);m.frames[e].image=a})),!s[r(294)]&&console[r(562)](r(589)),e()}else e()},this[i(499)]=function(t){var e=i;a=!1;var n=this;r&&o?o[e(499)](t):this[e(290)]((function(){var i=e;m[i(598)]((function(e){var r=i;!s[r(294)]&&console.log(r(574)),n[r(528)]=e,n[r(528)][r(222)]&&(n[r(528)]=new Blob([],{type:r(228)})),t&&t(n.blob),m[r(343)]=[]}))}))};var d=!1;function u(){m[i(343)]=[],a=!1,d=!1}function p(){var e,r,n,o=i;if(d)return f=(new Date)[o(323)](),setTimeout(p,500);if(t[o(531)][o(400)]()===o(355)){var h=(new Date)[o(323)]()-f;return f=(new Date)[o(323)](),m[o(343)].push({image:(e=i,r=document[e(434)](e(355)),n=r[e(353)]("2d"),r[e(189)]=t[e(189)],r[e(476)]=t.height,n[e(357)](t,0,0),r),duration:h}),void(a&&setTimeout(p,s[o(382)]))}html2canvas(t,{grabMouse:void 0===s[o(366)]||s[o(366)],onrendered:function(t){var e=o,i=(new Date)[e(323)]()-f;if(!i)return setTimeout(p,s[e(382)]);f=(new Date).getTime(),m[e(343)][e(346)]({image:t[e(454)](e(586),1),duration:i}),a&&setTimeout(p,s[e(382)])}})}this[i(430)]=function(){d=!0,o instanceof _&&o[i(430)]()},this[i(550)]=function(){var t=i;d=!1,o instanceof _?o.resume():!a&&this[t(319)]()},this[i(354)]=function(){a&&this[i(499)](u),u()},this[i(288)]=i(544),this[i(375)]=function(){return this[i(288)]};var f=(new Date)[i(323)](),m=new(L[i(315)])(100)}function D(t,s){var i=e;function r(t){var e=i;t=typeof t!==e(446)?t:10;var s=(new Date)[e(323)]()-l;return s?a?(l=(new Date).getTime(),setTimeout(r,100)):(l=(new Date)[e(323)](),c.paused&&c[e(300)](),p[e(357)](c,0,0,u[e(189)],u[e(476)]),d[e(343)].push({duration:s,image:u[e(454)](e(586))}),void(!o&&setTimeout(r,t,t))):setTimeout(r,t,t)}function n(t,e,s,r,n){var o=i,a=document[o(434)]("canvas");a[o(189)]=u[o(189)],a[o(476)]=u.height;var h,c,l,d=a.getContext("2d"),p=[],f=-1===e,m=e&&e>0&&e<=t[o(571)]?e:t[o(571)],g=0,A=0,y=0,b=Math[o(213)](Math[o(431)](255,2)+Math[o(431)](255,2)+Math.pow(255,2)),v=s&&s>=0&&s<=1?s:0,S=r&&r>=0&&r<=1?r:0,w=!1;c=-1,l=(h={length:m,functionToLoop:function(e,s){var i,r,n,a=o,h=function(){!w&&n-i<=n*S||(f&&(w=!0),p[za(346)](t[s])),e()};if(w)h();else{var c=new Image;c.onload=function(){var t=za;d[t(357)](c,0,0,u[t(189)],u.height);var e=d[t(556)](0,0,u[t(189)],u[t(476)]);i=0,r=e[t(232)][t(571)],n=e[t(232)][t(571)]/4;for(var s=0;s<r;s+=4){var o={r:e[t(232)][s],g:e[t(232)][s+1],b:e[t(232)][s+2]};Math.sqrt(Math[t(431)](o.r-g,2)+Math[t(431)](o.g-A,2)+Math[t(431)](o.b-y,2))<=b*v&&i++}h()},c[a(554)]=t[s][a(274)]}},callback:function(){var e=o;(p=p[e(470)](t[e(203)](m)))[e(571)]<=0&&p[e(346)](t[t[e(571)]-1]),n(p)}})[i(571)],function t(){++c!==l?setTimeout((function(){h[za(459)](t,c)}),1):h.callback()}()}!(s=s||{})[i(382)]&&(s.frameInterval=10),!s[i(294)]&&console[i(562)]("Using frames-interval:",s[i(382)]),this[i(319)]=function(){var e=i;!s[e(189)]&&(s[e(189)]=320),!s.height&&(s[e(476)]=240),!s.video&&(s[e(192)]={width:s.width,height:s[e(476)]}),!s[e(355)]&&(s[e(355)]={width:s[e(189)],height:s[e(476)]}),u[e(189)]=s[e(355)][e(189)]||320,u[e(476)]=s.canvas[e(476)]||240,p=u[e(353)]("2d"),s[e(192)]&&s[e(192)]instanceof HTMLVideoElement?(c=s[e(192)][e(261)](),s.initCallback&&s[e(238)]()):(c=document[e(434)](e(192)),I(t,c),c.onloadedmetadata=function(){var t=e;s[t(238)]&&s[t(238)]()},c[e(189)]=s[e(192)][e(189)],c[e(476)]=s[e(192)][e(476)]),c[e(425)]=!0,c[e(300)](),l=(new Date)[e(323)](),d=new(L[e(315)]),!s.disableLogs&&(console[e(562)]("canvas resolutions",u.width,"*",u[e(476)]),console[e(562)](e(572),c.width||u[e(189)],"*",c.height||u[e(476)])),r(s[e(382)])};var o=!1;this[i(499)]=function(t){t=t||function(){},o=!0;var e=this;setTimeout((function(){var i=za;n(d[i(343)],-1,null,null,(function(r){var n=i;d[n(343)]=r,s.advertisement&&s.advertisement[n(571)]&&(d[n(343)]=s.advertisement[n(470)](d[n(343)])),d[n(598)]((function(s){var i=n;e[i(528)]=s,e[i(528)][i(222)]&&(e[i(528)]=new Blob([],{type:i(228)})),t&&t(e.blob)}))}))}),10)};var a=!1;function h(){d[i(343)]=[],o=!0,a=!1}this.pause=function(){a=!0},this[i(550)]=function(){a=!1,o&&this.record()},this[i(354)]=function(){!o&&this[i(499)](h),h()},this[i(288)]=i(379),this.toString=function(){return this[i(288)]};var c,l,d,u=document[i(434)](i(355)),p=u[i(353)]("2d")}typeof u!==e(446)?T.AudioContext=u:typeof webkitAudioContext!==e(446)&&(T[e(205)]=webkitAudioContext),"function"!==e(446)&&(s[e(182)]=T),"function"!==e(446)&&(s[e(391)]=_),"function"!==e(446)&&(s[e(318)]=C),"function"!==e(446)&&(s.CanvasRecorder=R),"function"!==e(446)&&(s[e(379)]=D);var L=function(){var t=e;function s(t){var e=za;this[e(343)]=[],this[e(248)]=t||1,this.quality=.8}function i(t){var e=za;function s(t,e,s){var i=za;return[{data:t,id:231}].concat(s[i(305)]((function(t){var s=i,r=function(t){var e=za,s=0;if(t[e(169)]&&(s|=128),t.invisible&&(s|=8),t[e(538)]&&(s|=t[e(538)]<<1),t[e(545)]&&(s|=1),t.trackNum>127)throw"TrackNumber > 127 not supported";return[128|t[e(207)],t[e(541)]>>8,255&t[e(541)],s][e(305)]((function(t){return String.fromCharCode(t)}))[e(567)]("")+t.frame}({discardable:0,frame:t[s(232)][s(203)](4),invisible:0,keyframe:1,lacing:0,trackNum:1,timecode:Math[s(231)](e)});return e+=t.duration,{data:r,id:163}})))}function i(t){for(var e=za,s=[];t>0;)s[e(346)](255&t),t>>=8;return new Uint8Array(s[e(532)]())}function r(t){var e=za,s=[];t=(t.length%8?new Array(9-t[e(571)]%8)[e(567)]("0"):"")+t;for(var i=0;i<t[e(571)];i+=8)s[e(346)](parseInt(t[e(370)](i,8),2));return new Uint8Array(s)}function n(t){for(var e,s=za,o=[],a=0;a<t[s(571)];a++){var h=t[a][s(232)];typeof h===s(482)&&(h=n(h)),typeof h===s(401)&&(h=r(h[s(375)](2))),typeof h===s(321)&&(e=void 0,e=za,h=new Uint8Array(h[e(333)]("")[e(305)]((function(t){return t.charCodeAt(0)}))));var c=h.size||h[s(535)]||h[s(571)],l=Math[s(602)](Math[s(602)](Math[s(562)](c)/Math[s(562)](2))/8),d=c[s(375)](2),u=new Array(7*l+7+1-d[s(571)])[s(567)]("0")+d,p=new Array(l).join("0")+"1"+u;o[s(346)](i(t[a].id)),o[s(346)](r(p)),o.push(h)}return new Blob(o,{type:s(228)})}function o(t){for(var e,s,i=za,r=0,n={};r<t[i(571)];){var a=t[i(370)](r,4),h=(e=r,s=void 0,s=za,parseInt(t.substr(e+4,4).split("").map((function(t){var e=za,s=t[e(190)](0)[e(375)](2);return new Array(8-s.length+1)[e(567)]("0")+s}))[s(567)](""),2)),c=t.substr(r+4+4,h);r+=8+h,n[a]=n[a]||[],"RIFF"===a||a===i(474)?n[a].push(o(c)):n[a][i(346)](c)}return n}var a=new function(t){var e=za,i=function(t){var e=za;if(!t[0])return void postMessage({error:"Something went wrong. Maybe WebP format is not supported in the current browser."});for(var s=t[0].width,i=t[0].height,r=t[0].duration,n=1;n<t[e(571)];n++)r+=t[n].duration;return{duration:r,width:s,height:i}}(t);if(!i)return[];for(var r,o,a=[{id:440786851,data:[{data:1,id:17030},{data:1,id:17143},{data:4,id:17138},{data:8,id:17139},{data:e(534),id:17026},{data:2,id:17031},{data:2,id:17029}]},{id:408125543,data:[{id:357149030,data:[{data:1e6,id:2807729},{data:e(215),id:19840},{data:"whammy",id:22337},{data:(r=i[e(248)],o=za,[][o(203)][o(275)](new Uint8Array(new Float64Array([r])[o(242)]),0).map((function(t){var e=o;return String[e(360)](t)}))[o(532)]().join("")),id:17545}]},{id:374648427,data:[{id:174,data:[{data:1,id:215},{data:1,id:29637},{data:0,id:156},{data:e(486),id:2274716},{data:e(432),id:134},{data:e(316),id:2459272},{data:1,id:131},{id:224,data:[{data:i.width,id:176},{data:i.height,id:186}]}]}]}]}],h=0,c=0;h<t.length;){var l=[],d=0;do{l[e(346)](t[h]),d+=t[h][e(248)],h++}while(h<t[e(571)]&&d<3e4);var u={id:524531317,data:s(c,0,l)};a[1][e(232)][e(346)](u),c+=d}return n(a)}(t[e(305)]((function(t){var s=e,i=function(t){for(var e=za,s=t[e(188)][0][e(429)][0],i=s[e(600)](e(175)),r=0,n=[];r<4;r++)n[r]=s[e(190)](i+3+r);return{width:16383&(n[1]<<8|n[0]),height:16383&(n[3]<<8|n[2]),data:s,riff:t}}(o(atob(t[s(274)][s(203)](23))));return i[s(248)]=t.duration,i})));postMessage(a)}return s.prototype.add=function(t,e){var s=za;if("canvas"in t&&(t=t[s(355)]),"toDataURL"in t&&(t=t.toDataURL(s(586),this[s(184)])),!/^data:image\/webp;base64,/gi[s(283)](t))throw s(216);this[s(343)][s(346)]({image:t,duration:e||this[s(248)]})},s.prototype[t(598)]=function(e){var s,r,n,o,a=t,h=(s=i,n=p[(r=za)(588)](new Blob([s[r(375)](),"this.onmessage = function (eee) {"+s[r(288)]+r(478)],{type:r(558)})),o=new Worker(n),p[r(437)](n),o);h[a(278)]=function(t){var s=a;t[s(232)][s(308)]?console[s(308)](t[s(232)][s(308)]):e(t.data)},h.postMessage(this[a(343)])},{Video:s}}();"function"!==e(446)&&(s[e(304)]=L);var x={init:function(){var t=e,s=this;if("undefined"!=typeof indexedDB&&typeof indexedDB.open!==t(446)){var i,r=this.dbName||location[t(208)][t(271)](/\/|:|#|%|\.|\[|\]/g,""),n=indexedDB.open(r,1);n.onerror=s[t(235)],n[t(553)]=function(){var e=t;((i=n[e(477)])[e(218)]=s[e(235)],i[e(405)])?1!==i[e(412)]?i[e(405)](1)[e(553)]=function(){o(i),a()}:a():a()},n[t(529)]=function(e){var s=t;o(e[s(342)][s(477)])}}else console[t(308)]("IndexedDB API are not available in this browser.");function o(t){t.createObjectStore(s.dataStoreName)}function a(){var e=t,r=i[e(214)]([s[e(219)]],e(543));function n(t){var i=e;r[i(457)](s[i(219)])[i(594)](t).onsuccess=function(e){var r=i;s[r(387)]&&s[r(387)](e[r(342)].result,t)}}s[e(506)]&&r.objectStore(s[e(219)]).put(s[e(506)],e(506)),s[e(380)]&&r[e(457)](s[e(219)]).put(s[e(380)],e(380)),s[e(276)]&&r[e(457)](s.dataStoreName).put(s[e(276)],"audioBlob"),n(e(276)),n(e(506)),n("gifBlob")}},Fetch:function(t){return this.callback=t,this.init(),this},Store:function(t){var s=e;return this.audioBlob=t.audioBlob,this[s(506)]=t[s(506)],this.gifBlob=t.gifBlob,this.init(),this},onError:function(t){var s=e;console.error(JSON[s(422)](t,null,"\t"))},dataStoreName:e(398),dbName:null};function P(t,s){var i=e;if(typeof GIFEncoder===i(446)){var r=document[i(434)](i(327));r.src=i(577),(document[i(185)]||document[i(496)])[i(604)](r)}s=s||{};var n=t instanceof CanvasRenderingContext2D||t instanceof HTMLCanvasElement;this[i(319)]=function(){var t=i;typeof GIFEncoder!==t(446)?l?(!n&&(!s.width&&(s.width=u.offsetWidth||320),!s[t(476)]&&(s[t(476)]=u[t(596)]||240),!s.video&&(s[t(192)]={width:s[t(189)],height:s[t(476)]}),!s.canvas&&(s[t(355)]={width:s[t(189)],height:s[t(476)]}),a[t(189)]=s[t(355)][t(189)]||320,a[t(476)]=s[t(355)][t(476)]||240,u[t(189)]=s[t(192)].width||320,u[t(476)]=s[t(192)][t(476)]||240),(f=new GIFEncoder).setRepeat(0),f[t(464)](s[t(337)]||200),f[t(176)](s[t(184)]||10),f[t(257)](),typeof s[t(198)]===t(560)&&s[t(198)](),Date[t(311)](),m=c((function e(i){var r=t;if(!0!==g[r(421)]){if(o)return setTimeout((function(){e(i)}),100);m=c(e),void 0===typeof p&&(p=i),i-p<90||(!n&&u[r(525)]&&u[r(300)](),!n&&h[r(357)](u,0,0,a.width,a.height),s[r(329)]&&s[r(329)](a[r(454)]("image/png")),f[r(368)](h),p=i)}})),s[t(238)]&&s[t(238)]()):setTimeout(g.record,1e3):setTimeout(g[t(319)],1e3)},this[i(499)]=function(t){var e=i;t=t||function(){},m&&d(m),this[e(528)]=new Blob([new Uint8Array(f[e(585)]()[e(314)])],{type:"image/gif"}),t(this[e(528)]),f[e(585)]().bin=[]};var o=!1;this[i(430)]=function(){o=!0},this[i(550)]=function(){o=!1},this[i(354)]=function(){var t;g[i(421)]=!0,t=i,f&&(f.stream()[t(314)]=[])},this[i(288)]=i(183),this.toString=function(){return this.name};var a=document[i(434)]("canvas"),h=a[i(353)]("2d");n&&(t instanceof CanvasRenderingContext2D?a=(h=t)[i(355)]:t instanceof HTMLCanvasElement&&(h=t[i(353)]("2d"),a=t));var l=!0;if(!n){var u=document.createElement(i(192));u[i(425)]=!0,u[i(561)]=!0,u[i(413)]=!0,l=!1,u[i(568)]=function(){l=!0},I(t,u),u[i(300)]()}var p,f,m=null,g=this}function B(t,s){var i=e;$t[i(280)],i(446),s=s||i(167);var r=[],n=!1,o=document.createElement("canvas"),a=o[i(353)]("2d");o.style[i(265)]=0,o.style[i(312)]="absolute",o[i(352)][i(325)]=-1,o[i(352)][i(520)]=i(488),o[i(352)].left=i(488),o[i(287)]=s,(document[i(185)]||document[i(496)])[i(604)](o),this[i(294)]=!1,this.frameInterval=10,this[i(189)]=360,this[i(476)]=240,this.useGainNode=!0;var h=this,c=window[i(205)];typeof c===i(446)&&(typeof webkitAudioContext!==i(446)&&(c=webkitAudioContext),typeof mozAudioContext!==i(446)&&(c=mozAudioContext));var l=window[i(284)];typeof l===i(446)&&"undefined"!=typeof webkitURL&&(l=webkitURL),typeof navigator!==i(446)&&void 0===navigator.getUserMedia&&(typeof navigator[i(250)]!==i(446)&&(navigator[i(426)]=navigator[i(250)]),typeof navigator[i(206)]!==i(446)&&(navigator.getUserMedia=navigator[i(206)]));var d=window.MediaStream;typeof d===i(446)&&typeof webkitMediaStream!==i(446)&&(d=webkitMediaStream),typeof d!==i(446)&&typeof d[i(197)].stop===i(446)&&(d[i(197)][i(499)]=function(){var t=i;this[t(266)]()[t(222)]((function(e){e[t(499)]()}))});var u={};function p(){var t=i;if(!n){var e=r.length,s=!1,a=[];if(r[t(222)]((function(e){var i=t;!e[i(585)]&&(e.stream={}),e[i(585)][i(582)]?s=e:a.push(e)})),s)o[t(189)]=s[t(585)][t(189)],o[t(476)]=s[t(585)][t(476)];else if(a[t(571)]){o[t(189)]=e>1?2*a[0][t(189)]:a[0].width;var c=1;(3===e||4===e)&&(c=2),(5===e||6===e)&&(c=3),(7===e||8===e)&&(c=4),(9===e||10===e)&&(c=5),o[t(476)]=a[0][t(476)]*c}else o[t(189)]=h[t(189)]||360,o[t(476)]=h[t(476)]||240;s&&s instanceof HTMLVideoElement&&f(s),a[t(222)]((function(t,e){f(t,e)})),setTimeout(p,h[t(382)])}}function f(t,e){var s=i;if(!n){var r=0,o=0,h=t.width,c=t[s(476)];1===e&&(r=t[s(189)]),2===e&&(o=t[s(476)]),3===e&&(r=t.width,o=t[s(476)]),4===e&&(o=2*t[s(476)]),5===e&&(r=t[s(189)],o=2*t[s(476)]),6===e&&(o=3*t.height),7===e&&(r=t[s(189)],o=3*t[s(476)]),typeof t.stream[s(270)]!==s(446)&&(r=t[s(585)][s(270)]),typeof t.stream.top!==s(446)&&(o=t.stream.top),typeof t.stream.width!==s(446)&&(h=t[s(585)][s(189)]),typeof t[s(585)][s(476)]!==s(446)&&(c=t[s(585)].height),a[s(357)](t,r,o,h,c),typeof t.stream[s(383)]===s(560)&&t[s(585)][s(383)](a,r,o,h,c,e)}}function m(t){var e,r,n,o=i,a=document[o(434)]("video");return e=t,r=a,(n=i)(385)in r?r[n(385)]=e:"mozSrcObject"in r?r.mozSrcObject=e:r[n(385)]=e,a.className=s,a.muted=!0,a.volume=0,a[o(189)]=t[o(189)]||h[o(189)]||360,a[o(476)]=t[o(476)]||h[o(476)]||240,a[o(300)](),a}function g(e){var s=i;r=[],(e=e||t)[s(222)]((function(t){var e=s;if(t.getTracks()[e(595)]((function(t){return"video"===t[e(408)]}))[e(571)]){var i=m(t);i[e(585)]=t,r[e(346)](i)}}))}typeof c!==i(446)?u.AudioContext=c:"undefined"!=typeof webkitAudioContext&&(u[i(205)]=webkitAudioContext),this.startDrawingFrames=function(){p()},this[i(576)]=function(e){var s=i;if(!e)throw s(516);!(e instanceof Array)&&(e=[e]),e.forEach((function(e){var i=s,n=new d;if(e[i(266)]().filter((function(t){var e=i;return t.kind===e(192)})).length){var o=m(e);o[i(585)]=e,r[i(346)](o),n[i(522)](e[i(266)]()[i(595)]((function(t){var e=i;return t[e(408)]===e(192)}))[0])}if(e.getTracks()[i(595)]((function(t){var e=i;return t[e(408)]===e(566)}))[i(571)]){var a=h.audioContext[i(428)](e);h.audioDestination=h.audioContext[i(345)](),a[i(306)](h[i(273)]),n[i(522)](h.audioDestination[i(585)][i(266)]()[i(595)]((function(t){return"audio"===t[i(408)]}))[0])}t[i(346)](n)}))},this.releaseStreams=function(){var t=i;r=[],n=!0,h[t(410)]&&(h.gainNode[t(453)](),h[t(410)]=null),h[t(396)][t(571)]&&(h[t(396)].forEach((function(e){e[t(453)]()})),h[t(396)]=[]),h[t(273)]&&(h[t(273)][t(453)](),h.audioDestination=null),h[t(241)]&&h[t(241)].close(),h[t(241)]=null,a.clearRect(0,0,o[t(189)],o[t(476)]),o[t(585)]&&(o.stream[t(499)](),o.stream=null)},this.resetVideoStreams=function(t){t&&!(t instanceof Array)&&(t=[t]),g(t)},this.name=i(578),this[i(375)]=function(){return this.name},this.getMixedStream=function(){var e=i;n=!1;var s=function(){var t,e=i;g(),"captureStream"in o?t=o[e(260)]():e(209)in o?t=o.mozCaptureStream():!h[e(294)]&&console.error(e(456));var s=new d;return t.getTracks().filter((function(t){var s=e;return t[s(408)]===s(192)}))[e(222)]((function(t){s[e(522)](t)})),o[e(585)]=s,s}(),r=function(){var e=i;!u[e(593)]&&(u.AudioContextConstructor=new(u[e(205)])),h[e(241)]=u[e(593)],h[e(396)]=[],!0===h.useGainNode&&(h[e(410)]=h[e(241)][e(372)](),h.gainNode[e(306)](h.audioContext[e(436)]),h.gainNode[e(503)][e(367)]=0);var s=0;if(t[e(222)]((function(t){var i=e;if(t[i(266)]().filter((function(t){return"audio"===t[i(408)]}))[i(571)]){s++;var r=h[i(241)][i(428)](t);!0===h.useGainNode&&r.connect(h[i(410)]),h[i(396)][i(346)](r)}})),!s)return;return h[e(273)]=h[e(241)][e(345)](),h[e(396)][e(222)]((function(t){t.connect(h.audioDestination)})),h[e(273)].stream}();return r&&r[e(266)]()[e(595)]((function(t){var s=e;return t[s(408)]===s(566)}))[e(222)]((function(t){s.addTrack(t)})),t[e(222)]((function(t){t[e(582)]})),s}}function M(t,s){var i=e;t=t||[];var r,n,o=this;!(s=s||{elementClass:i(167),mimeType:"video/webm",video:{width:360,height:240}})[i(382)]&&(s[i(382)]=10),!s.video&&(s[i(192)]={}),!s.video[i(189)]&&(s.video[i(189)]=360),!s.video[i(476)]&&(s[i(192)][i(476)]=240),this[i(319)]=function(){var e,o,a=i;r=new B(t,s[a(193)]||a(167)),(e=i,o=[],t[e(222)]((function(t){var s=e;E(t,"video")[s(222)]((function(t){o[s(346)](t)}))})),o).length&&(r[a(382)]=s.frameInterval||10,r.width=s[a(192)][a(189)]||360,r[a(476)]=s.video.height||240,r[a(404)]()),s.previewStream&&"function"==typeof s[a(507)]&&s.previewStream(r[a(201)]()),(n=new _(r[a(201)](),s))[a(319)]()},this[i(499)]=function(t){var e=i;n&&n[e(499)]((function(s){o[e(528)]=s,t(s),o.clearRecordedData()}))},this[i(430)]=function(){n&&n[i(430)]()},this[i(550)]=function(){n&&n.resume()},this.clearRecordedData=function(){var t=i;n&&(n[t(354)](),n=null),r&&(r[t(240)](),r=null)},this[i(512)]=function(e){var o=i;if(!e)throw"First parameter is required.";!(e instanceof Array)&&(e=[e]),t.concat(e),n&&r&&(r.appendStreams(e),s[o(507)]&&typeof s[o(507)]===o(560)&&s[o(507)](r.getMixedStream()))},this[i(417)]=function(t){r&&(t&&!(t instanceof Array)&&(t=[t]),r[i(417)](t))},this[i(471)]=function(){return r},this[i(288)]=i(221),this[i(375)]=function(){return this[i(288)]}}function F(t,s){var i,r,n,o=e;function a(e,c){var l=o;if(!s[l(384)]&&!c)return i=!1,void fetch(l(373))[l(450)]((function(t){var s=l;t[s(262)]()[s(450)]((function(t){a(e,t)}))}));if(!s.workerPath&&c instanceof ArrayBuffer){var d=new Blob([c],{type:l(369)});s[l(384)]=p[l(588)](d)}!s[l(384)]&&console.error("workerPath parameter is missing."),(r=new Worker(s[l(384)]))[l(226)](s[l(322)]||l(170)),r[l(407)]("message",(function(e){var o=l;e.data===o(179)?(r[o(226)]({width:s[o(189)],height:s[o(476)],bitrate:s[o(414)]||1200,timebaseDen:s[o(337)]||30,realtime:s[o(279)]}),new ReadableStream({start:function(e){var r=za,n=document[r(434)](r(355)),o=document.createElement("video"),a=!0;o[r(385)]=t,o[r(425)]=!0,o[r(476)]=s.height,o.width=s.width,o[r(584)]=0,o[r(258)]=function(){var t=r;n[t(189)]=s.width,n.height=s.height;var h=n[t(353)]("2d"),c=1e3/s[t(337)],l=setInterval((function(){var r=t;if(i&&(clearInterval(l),e.close()),a&&(a=!1,s[r(234)]&&s[r(234)]()),h[r(357)](o,0,0),e._controlledReadableStream[r(403)]!==r(299))try{e.enqueue(h.getImageData(0,0,s[r(189)],s[r(476)]))}catch(t){}}),c)},o[r(300)]()}}).pipeTo(new WritableStream({write:function(t){var e=o;i?console[e(308)](e(447)):r[e(226)](t[e(232)][e(242)],[t[e(232)].buffer])}}))):e.data&&!n&&h.push(e[o(232)])}))}(typeof ReadableStream===o(446)||typeof WritableStream===o(446))&&console[o(308)](o(473)),(s=s||{})[o(189)]=s[o(189)]||640,s.height=s.height||480,s[o(337)]=s.frameRate||30,s.bitrate=s[o(414)]||1200,s[o(279)]=s[o(279)]||!0,this.record=function(){var e=o;h=[],n=!1,this[e(528)]=null,a(t),typeof s[e(238)]===e(560)&&s.initCallback()},this[o(430)]=function(){n=!0},this[o(550)]=function(){n=!1};var h=[];this.stop=function(t){i=!0;var e,s,n=this;e=function(){var e=za;n.blob=new Blob(h,{type:"video/webm"}),t(n[e(528)])},s=o,r?(r[s(407)](s(358),(function(t){null===t[s(232)]&&(r.terminate(),r=null,e&&e())})),r.postMessage(null)):e&&e()},this[o(288)]=o(524),this[o(375)]=function(){return this[o(288)]},this.clearRecordedData=function(){h=[],n=!1,this[o(528)]=null},this.blob=null}s[e(171)]=x,"function"!==e(446)&&(s[e(183)]=P),"function"===e(446)&&("undefined"!==e(482)&&(t.exports=B),"undefined"===e(560)&&(void 0)[e(339)]&&(void 0)("MultiStreamsMixer",[],(function(){return B}))),s[e(221)]=M,"function"!==e(446)&&(s.RecordRTCPromisesHandler=function(t,i){var r=e;if(!this)throw r(289);if(typeof t===r(446))throw r(227);var n=this;n[r(398)]=new s(t,i),this[r(395)]=function(){return new Promise((function(t,e){var s=za;try{n[s(398)][s(395)](),t()}catch(t){e(t)}}))},this[r(515)]=function(){return new Promise((function(t,e){try{n.recordRTC.stopRecording((function(s){var i=za;n[i(528)]=n.recordRTC[i(263)](),n[i(528)]&&n.blob[i(348)]?t(s):e(i(174),n[i(528)])}))}catch(t){e(t)}}))},this[r(220)]=function(){return new Promise((function(t,e){var s=za;try{n.recordRTC[s(220)](),t()}catch(t){e(t)}}))},this[r(517)]=function(){return new Promise((function(t,e){var s=za;try{n[s(398)][s(517)](),t()}catch(t){e(t)}}))},this[r(359)]=function(t){return new Promise((function(t,e){var s=za;try{n[s(398)][s(359)]((function(e){t(e)}))}catch(t){e(t)}}))},this[r(263)]=function(){return new Promise((function(t,e){var s=za;try{t(n[s(398)].getBlob())}catch(t){e(t)}}))},this[r(539)]=function(){return new Promise((function(t,e){var s=za;try{t(n[s(398)][s(539)]())}catch(t){e(t)}}))},this[r(326)]=function(){return new Promise((function(t,e){var s=za;try{t(n[s(398)].reset())}catch(t){e(t)}}))},this[r(455)]=function(){return new Promise((function(t,e){var s=za;try{t(n.recordRTC[s(455)]())}catch(t){e(t)}}))},this.getState=function(){return new Promise((function(t,e){var s=za;try{t(n[s(398)][s(381)]())}catch(t){e(t)}}))},this[r(528)]=null,this[r(412)]=r(341)}),s[e(524)]=F}));const Wa=Ha;function Ha(t,e){const s=Ka();return(Ha=function(t,e){return s[t-=190]})(t,e)}function Ka(){const t=["getLevelString","Extended","194224aNFQhz","byteLength","ceil","4:2:2","2IfZFTL","toString","4:2:0","133482DcXRJu","11245884qYYPaV","_skipScalingList","readBits","High","10MHjanX","77jFdaEk","destroy","851824wBSAtx","buffer","readByte","_ebsp2rbsp","36469tBFcrJ","4665800yofLEz","parseSPS$2","readSEG","readUEG","Main","Unknown","getChromaFormatString","getProfileString","readBool","length","11DdeeOm","Baseline","189wsQhZO","1468833rhZdek"];return(Ka=function(){return t})()}!function(t,e){const s=Ha,i=t();for(;;)try{if(302810===parseInt(s(196))/1*(parseInt(s(217))/2)+parseInt(s(210))/3+parseInt(s(192))/4*(parseInt(s(225))/5)+-parseInt(s(220))/6*(-parseInt(s(190))/7)+parseInt(s(213))/8*(parseInt(s(209))/9)+-parseInt(s(197))/10+-parseInt(s(207))/11*(parseInt(s(221))/12))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Ka);class Qa{static[Wa(195)](t){const e=Wa;let s=t,i=s[e(214)],r=new Uint8Array(i),n=0;for(let t=0;t<i;t++)t>=2&&3===s[t]&&0===s[t-1]&&0===s[t-2]||(r[n]=s[t],n++);return new Uint8Array(r[e(193)],0,n)}static parseSPS(t){const e=Wa;let s=Qa[e(195)](t),i=new oe(s);i[e(194)]();let r=i[e(194)]();i[e(194)]();let n=i[e(194)]();i[e(200)]();let o=Qa[e(204)](r),a=Qa.getLevelString(n),h=1,c=420,l=[0,420,422,444],d=8;if((100===r||110===r||122===r||244===r||44===r||83===r||86===r||118===r||128===r||138===r||144===r)&&(h=i.readUEG(),3===h&&i[e(223)](1),h<=3&&(c=l[h]),d=i[e(200)]()+8,i[e(200)](),i.readBits(1),i[e(205)]())){let t=3!==h?8:12;for(let s=0;s<t;s++)i[e(205)]()&&(s<6?Qa[e(222)](i,16):Qa[e(222)](i,64))}i[e(200)]();let u=i[e(200)]();if(0===u)i[e(200)]();else if(1===u){i[e(223)](1),i.readSEG(),i[e(199)]();let t=i[e(200)]();for(let s=0;s<t;s++)i[e(199)]()}let p=i.readUEG();i.readBits(1);let f=i.readUEG(),m=i[e(200)](),g=i[e(223)](1);0===g&&i.readBits(1),i[e(223)](1);let A=0,y=0,b=0,v=0;i[e(205)]()&&(A=i[e(200)](),y=i[e(200)](),b=i[e(200)](),v=i[e(200)]());let S=1,w=1,E=0,I=!0,T=0,k=0;if(i[e(205)]()){if(i[e(205)]()){let t=i[e(194)](),s=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],r=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];t>0&&t<16?(S=s[t-1],w=r[t-1]):255===t&&(S=i[e(194)]()<<8|i[e(194)](),w=i[e(194)]()<<8|i.readByte())}if(i.readBool()&&i[e(205)](),i[e(205)]()&&(i[e(223)](4),i[e(205)]()&&i[e(223)](24)),i[e(205)]()&&(i[e(200)](),i[e(200)]()),i[e(205)]()){let t=i[e(223)](32),s=i[e(223)](32);I=i[e(205)](),T=s,k=2*t,E=T/k}}let _=1;(1!==S||1!==w)&&(_=S/w);let C=0,R=0;if(0===h)C=1,R=2-g;else{C=3===h?1:2,R=(1===h?2:1)*(2-g)}let D=16*(f+1),L=16*(m+1)*(2-g);D-=(A+y)*C,L-=(b+v)*R;let x=Math[e(215)](D*_);return i[e(191)](),i=null,{profile_string:o,level_string:a,bit_depth:d,ref_frames:p,chroma_format:c,chroma_format_string:Qa[e(203)](c),frame_rate:{fixed:I,fps:E,fps_den:k,fps_num:T},sar_ratio:{width:S,height:w},codec_size:{width:D,height:L},present_size:{width:x,height:L}}}static[Wa(198)](t){const e=Wa;let s=t.subarray(1,4),i="avc1.";for(let t=0;t<3;t++){let r=s[t][e(218)](16);r[e(206)]<2&&(r="0"+r),i+=r}let r=Qa[e(195)](t),n=new oe(r);n[e(194)]();let o=n[e(194)]();n[e(194)]();let a=n[e(194)]();n[e(200)]();let h=Qa.getProfileString(o),c=Qa.getLevelString(a),l=1,d=420,u=[0,420,422,444],p=8,f=8;if((100===o||110===o||122===o||244===o||44===o||83===o||86===o||118===o||128===o||138===o||144===o)&&(l=n[e(200)](),3===l&&n[e(223)](1),l<=3&&(d=u[l]),p=n[e(200)]()+8,f=n.readUEG()+8,n[e(223)](1),n[e(205)]())){let t=3!==l?8:12;for(let s=0;s<t;s++)n[e(205)]()&&(s<6?Qa[e(222)](n,16):Qa[e(222)](n,64))}n[e(200)]();let m=n.readUEG();if(0===m)n.readUEG();else if(1===m){n[e(223)](1),n[e(199)](),n[e(199)]();let t=n.readUEG();for(let s=0;s<t;s++)n[e(199)]()}let g=n[e(200)]();n.readBits(1);let A=n[e(200)](),y=n[e(200)](),b=n[e(223)](1);0===b&&n[e(223)](1),n[e(223)](1);let v=0,S=0,w=0,E=0;n[e(205)]()&&(v=n[e(200)](),S=n.readUEG(),w=n[e(200)](),E=n.readUEG());let I=1,T=1,k=0,_=!0,C=0,R=0;if(n.readBool()){if(n[e(205)]()){let t=n[e(194)](),s=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],i=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];t>0&&t<16?(I=s[t-1],T=i[t-1]):255===t&&(I=n.readByte()<<8|n.readByte(),T=n[e(194)]()<<8|n.readByte())}if(n[e(205)]()&&n[e(205)](),n[e(205)]()&&(n[e(223)](4),n[e(205)]()&&n[e(223)](24)),n[e(205)]()&&(n[e(200)](),n[e(200)]()),n[e(205)]()){let t=n[e(223)](32),s=n[e(223)](32);_=n.readBool(),C=s,R=2*t,k=C/R}}let D=1;(1!==I||1!==T)&&(D=I/T);let L=0,x=0;if(0===l)L=1,x=2-b;else{L=3===l?1:2,x=(1===l?2:1)*(2-b)}let P=16*(A+1),B=16*(y+1)*(2-b);P-=(v+S)*L,B-=(w+E)*x;let M=Math[e(215)](P*D);return n[e(191)](),n=null,{codec_mimetype:i,profile_idc:o,level_idc:a,profile_string:h,level_string:c,chroma_format_idc:l,bit_depth:p,bit_depth_luma:p,bit_depth_chroma:f,ref_frames:g,chroma_format:d,chroma_format_string:Qa[e(203)](d),frame_rate:{fixed:_,fps:k,fps_den:R,fps_num:C},sar_ratio:{width:I,height:T},codec_size:{width:P,height:B},present_size:{width:M,height:B}}}static[Wa(222)](t,e){const s=Wa;let i=8,r=8,n=0;for(let o=0;o<e;o++)0!==r&&(n=t[s(199)](),r=(i+n+256)%256),i=0===r?i:r}static[Wa(204)](t){const e=Wa;switch(t){case 66:return e(208);case 77:return e(201);case 88:return e(212);case 100:return e(224);case 110:return"High10";case 122:return"High422";case 244:return"High444";default:return e(202)}}static[Wa(211)](t){return(t/10).toFixed(1)}static[Wa(203)](t){const e=Wa;switch(t){case 420:return e(219);case 422:return e(216);case 444:return"4:4:4";default:return e(202)}}}const Ya=qa;function qa(t,e){const s=Ja();return(qa=function(t,e){return s[t-=188]})(t,e)}function Ja(){const t=["bufoff","8212194pQJvwa","read","4cOpHuu","6164767phVdch","buffer","6GBxTor","4421968RfXZcY","514984mQoUZH","778716VCyTtl","buflen","15yLzyvP","7481380OpQXES","bufpos","iserro","7930180pUutoy"];return(Ja=function(){return t})()}!function(t,e){const s=qa,i=t();for(;;)try{if(778387===parseInt(s(197))/1+-parseInt(s(196))/2*(-parseInt(s(199))/3)+-parseInt(s(191))/4*(parseInt(s(200))/5)+-parseInt(s(194))/6*(-parseInt(s(192))/7)+-parseInt(s(195))/8+-parseInt(s(189))/9+parseInt(s(203))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Ja);class Xa{constructor(t){const e=qa;this.buffer=t,this[e(198)]=t.length,this[e(201)]=0,this[e(188)]=0,this[e(202)]=!1}[Ya(190)](t){const e=Ya;let s=0,i=0;for(;t;){if(t<0||this[e(201)]>=this[e(198)])return this[e(202)]=!0,0;this[e(202)]=!1,i=this[e(188)]+t>8?8-this.bufoff:t,s<<=i,s+=this[e(193)][this.bufpos]>>8-this[e(188)]-i&255>>8-i,this[e(188)]+=i,t-=i,8==this[e(188)]&&(this[e(201)]++,this.bufoff=0)}return s}look(t){const e=Ya;let s=this[e(201)],i=this.bufoff,r=this[e(190)](t);return this.bufpos=s,this.bufoff=i,r}read_golomb(){const t=Ya;let e;for(e=0;0===this[t(190)](1)&&!this[t(202)];e++);return(1<<e)+this[t(190)](e)-1}}const Za=$a;function $a(t,e){const s=th();return($a=function(t,e){return s[t-=432]})(t,e)}function th(){const t=["_data","subarray","byteLength","readBits","108nfAKAA","_bitsAvailable","7455530YJhooU","getUint32","46MLverJ","skipLZ","10755833SZZkpE","65788RtnSaK","set","skipUEG","skipScalingList","15XTackF","_word","4554893hCyPKT","_loadWord","readBool","readUEG","ExpGolomb data params is required","min","12163AUtInH","floor","425528ntmPGT","_bytesAvailable","6SnMeMF","1742645kbmKnX","skipBits","Cannot read more than 32 bits"];return(th=function(){return t})()}!function(t,e){const s=$a,i=t();for(;;)try{if(510698===parseInt(s(450))/1*(-parseInt(s(435))/2)+-parseInt(s(442))/3*(-parseInt(s(438))/4)+-parseInt(s(455))/5*(parseInt(s(454))/6)+parseInt(s(444))/7+-parseInt(s(452))/8*(-parseInt(s(462))/9)+parseInt(s(433))/10+-parseInt(s(437))/11)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(th);Za(445),Za(456),Za(461),Za(436),Za(440),Za(447),Za(446),Za(441);const eh=rh;function sh(t){const e=rh,s={};let i=function(){const t=rh;let e=new ArrayBuffer(2);return new DataView(e)[t(310)](0,256,!0),256===new Int16Array(e)[0]}();const r=new DataView(t.buffer);let n=r[e(354)](0),o=r.getUint8(1);if(r[e(354)](2),r.getUint8(3),1!==n||0===o)return{};const a=1+(3&r.getUint8(4));if(3!==a&&4!==a)return{};let h=31&r[e(354)](5);if(0===h)return{};let c=6;for(let n=0;n<h;n++){let o=r.getUint16(c,!i);if(c+=2,0===o)continue;let a=new Uint8Array(t[e(324)],c,o);c+=o;let h=Qa[e(382)](a);if(0!==n)continue;s.sps=a,s.timescale=1e3,s[e(332)]=h[e(320)].width,s[e(341)]=h[e(320)][e(331)],s[e(386)]=h[e(314)].width,s.presentHeight=h[e(314)][e(331)],s.profile=h.profile_string,s[e(340)]=h.level_string,s[e(317)]=h.bit_depth,s[e(379)]=h[e(350)],s[e(358)]=h[e(352)],s.frameRate=h.frame_rate,(!1===h[e(362)].fixed||0===h[e(362)][e(327)]||0===h[e(362)][e(390)])&&(s[e(328)]={fixed:!0,fps:25,fps_num:25e3,fps_den:1e3});let l=s.frameRate.fps_den,d=s.frameRate[e(327)];s.refSampleDuration=s[e(371)]*(l/d);let u=a[e(319)](1,4),p=e(316);for(let t=0;t<3;t++){let s=u[t][e(388)](16);s[e(363)]<2&&(s="0"+s),p+=s}s[e(315)]=p}let l=r[e(354)](c);if(0===l)return{};c++;for(let n=0;n<l;n++){let n=r[e(373)](c,!i);if(c+=2,0===n)continue;let o=new Uint8Array(t.buffer,c,n);c+=n,s[e(312)]=o}if(s[e(309)]=lt.h264,s[e(361)]){const t=s[e(361)].byteLength,i=new Uint8Array([t>>>24&255,t>>>16&255,t>>>8&255,255&t]),r=new Uint8Array(t+4);r[e(375)](i,0),r.set(s[e(361)],4),s[e(361)]=r}if(s.pps){const t=s[e(312)][e(351)],i=new Uint8Array([t>>>24&255,t>>>16&255,t>>>8&255,255&t]),r=new Uint8Array(t+4);r.set(i,0),r.set(s[e(312)],4),s[e(312)]=r}return s}function ih(){const t=[" Strange AVCDecoderConfigurationRecord: SPS Count = ","profile","bit_depth_luma","2650326fTTBMC","ceil","parseSPS$2","chroma_format","byteLength","sar_ratio","820088RLyvJl","getUint8","Strange NaluLengthSizeMinusOne: ","width","kSliceNonIDR","sarRatio","kReserved0","readBits","sps","frame_rate","length","readBool","read","readNextNaluPayload","profile_string","Could not find H264 startcode until payload end!","720222SxWJjq","skipScalingList","timescale","level_string","getUint16","skipBits","set","6558fUewxh","readUEG","Invalid AVCDecoderConfigurationRecord: No PPS'","chromaFormat","2685074ebyFiI","1396902kaCOAr","parseSPS","read_golomb","Invalid AVCDecoderConfigurationRecord, lack of data!","iFrame","presentWidth","Invalid AVCDecoderConfigurationRecord: No SPS","toString","avcc","fps_den","nb_sps","videoType","setInt16","data","pps","2585mOkqdQ","present_size","codec","avc1.","bitDepth","fixed","subarray","codec_size","Strange AVCDecoderConfigurationRecord: PPS Count = ","error","type","buffer","currentStartcodeOffset","readUByte","fps_num","frameRate","avc_ref_frames","compat","height","codecWidth","shift","kSliceSEI","push","findNextStartCodeOffset","skipUEG","eofFlag","setUint32","level","codecHeight","3340888uNJoCU","h264"];return(ih=function(){return t})()}function rh(t,e){const s=ih();return(rh=function(t,e){return s[t-=309]})(t,e)}function nh(t){const e=rh;let{sps:s,pps:i}=t,r=8+s[e(351)]+1+2+i[e(351)],n=!1;const o=Qa[e(349)](s);66!==s[3]&&77!==s[3]&&88!==s[3]&&(n=!0,r+=4);let a=new Uint8Array(r);a[0]=1,a[1]=s[1],a[2]=s[2],a[3]=s[3],a[4]=255,a[5]=225;let h=s[e(351)];a[6]=h>>>8,a[7]=255&h;let c=8;a[e(375)](s,8),c+=h,a[c]=1;let l=i[e(351)];a[c+1]=l>>>8,a[c+2]=255&l,a[e(375)](i,c+3),c+=3+l,n&&(a[c]=252|o.chroma_format_idc,a[c+1]=248|o[e(346)]-8,a[c+2]=248|o.bit_depth_chroma-8,a[c+3]=0,c+=4);const d=[23,0,0,0,0],u=new Uint8Array(d.length+a.byteLength);return u[e(375)](d,0),u.set(a,d[e(363)]),u}function oh(t,e){const s=rh;let i=[];i[0]=e?23:39,i[1]=1,i[2]=0,i[3]=0,i[4]=0;const r=new Uint8Array(i[s(363)]+t.byteLength);return r[s(375)](i,0),r[s(375)](t,i.length),r}function ah(t){return 31&t[0]}function hh(t){return t===Y[rh(334)]}function ch(t){return!function(t){const e=rh;return t===Y[e(361)]||t===Y[e(312)]}(t)&&!hh(t)}function lh(t){return t===Y[rh(385)]}!function(t,e){const s=rh,i=t();for(;;)try{if(645719===-parseInt(s(369))/1+parseInt(s(381))/2+parseInt(s(347))/3+parseInt(s(342))/4+-parseInt(s(313))/5*(parseInt(s(376))/6)+-parseInt(s(380))/7+-parseInt(s(353))/8)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(ih);class dh{constructor(t){const e=rh;this[e(311)]=t,this[e(338)]=!1,this.currentStartcodeOffset=this[e(336)](0),this[e(338)]&&console[e(322)](e(368))}[eh(336)](t){const e=eh;let s=t,i=this[e(311)];for(;;){if(s+3>=i[e(351)])return this[e(338)]=!0,i[e(351)];let t=i[s+0]<<24|i[s+1]<<16|i[s+2]<<8|i[s+3],r=i[s+0]<<16|i[s+1]<<8|i[s+2];if(1===t||1===r)return s;s++}}[eh(366)](){const t=eh;let e=this[t(311)],s=null;for(;null==s&&!this[t(338)];){let i=this[t(325)];i+=1===(e[i]<<24|e[i+1]<<16|e[i+2]<<8|e[i+3])?4:3;let r=31&e[i],n=(128&e[i])>>>7,o=this.findNextStartCodeOffset(i);this[t(325)]=o,r>=Y[t(359)]||0===n&&(s={type:r,data:e[t(319)](i,o)})}return s}}class uh{constructor(t){const e=eh;let s=t[e(311)][e(351)];this[e(323)]=t[e(323)],this[e(311)]=new Uint8Array(4+s),new DataView(this.data[e(324)])[e(339)](0,s),this.data.set(t.data,4)}}const ph=fh;function fh(t,e){const s=mh();return(fh=function(t,e){return s[t-=395]})(t,e)}function mh(){const t=["11262LmDKzm","625402DDYDuc","126235cBuDaj","1281TOniBv","GetSE","m_data","GetBit","1477119outUuK","GetBYTE","8224172idLizc","m_bits","length","20RhFSgj","711LedshX","11984MmKqBm","GetUE","4uRJfzi","m_byte","m_zeros","GetWord","m_idx","589535IfZSUf","m_len"];return(mh=function(){return t})()}!function(t,e){const s=fh,i=t();for(;;)try{if(300597===-parseInt(s(399))/1+-parseInt(s(402))/2+-parseInt(s(408))/3+parseInt(s(417))/4*(-parseInt(s(403))/5)+parseInt(s(401))/6*(parseInt(s(404))/7)+parseInt(s(415))/8*(-parseInt(s(414))/9)+-parseInt(s(413))/10*(-parseInt(s(410))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(mh);class gh{constructor(t){const e=fh;this[e(398)]=null,this[e(406)]=t,this.m_len=t[e(412)],this[e(398)]=0,this[e(411)]=0,this[e(395)]=0,this[e(396)]=0}[ph(409)](){const t=ph;if(this[t(398)]>=this.m_len)return 0;let e=this[t(406)][this.m_idx++];return 0==e?(this[t(396)]++,this[t(398)]<this[t(400)]&&2==this.m_zeros&&3==this[t(406)][this.m_idx]&&(this.m_idx++,this[t(396)]=0)):this.m_zeros=0,e}GetBit(){const t=ph;return 0==this[t(411)]&&(this[t(395)]=this.GetBYTE(),this[t(411)]=8),this[t(411)]--,this[t(395)]>>this[t(411)]&1}[ph(397)](t){const e=ph;let s=0;for(;t>0;)s<<=1,s|=this[e(407)](),t--;return s}[ph(416)](){const t=ph;let e=0;for(;this[t(398)]<this[t(400)]&&0==this[t(407)]();)e++;return this[t(397)](e)+((1<<e)-1)}[ph(405)](){let t=this[ph(416)](),e=t+1>>1;return!(1&t)&&(e=-e),e}}const Ah=bh;function yh(){const t=["6846406yGsqNb","buffer","3951120ucpQhf","2141220dkvcQl","9LyGXuo","SPSParser chroma_format_idc > 3","6KiSagY","GetUE","367562uTzwZs","3735984OUYHTP","_ebsp2rbsp","SPSParser sps_seq_parameter_set_id > 15","169169DawOYW","SPSParser bit_depth_luma_minus8 != bit_depth_chroma_minus8","SPSParser sps_max_sub_layers_minus1 > 6","parseSPS","GetWord","warn","2724872NvRwym","byteLength"];return(yh=function(){return t})()}function bh(t,e){const s=yh();return(bh=function(t,e){return s[t-=155]})(t,e)}!function(t,e){const s=bh,i=t();for(;;)try{if(860329===parseInt(s(172))/1+parseInt(s(168))/2+-parseInt(s(162))/3+parseInt(s(169))/4+-parseInt(s(163))/5+parseInt(s(166))/6*(parseInt(s(160))/7)+-parseInt(s(158))/8*(-parseInt(s(164))/9))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(yh);class vh{static[Ah(170)](t){const e=Ah;let s=t,i=s[e(159)],r=new Uint8Array(i),n=0;for(let t=0;t<i;t++)t>=2&&3===s[t]&&0===s[t-1]&&0===s[t-2]||(r[n]=s[t],n++);return new Uint8Array(r[e(161)],0,n)}static[Ah(155)](t){const e=Ah;let s=vh[e(170)](t);const i=new gh(s);let r="",n="",o="",a="";i[e(156)](4);let h=i[e(156)](3);if(h>6)return console[e(157)](e(174)),!1;i[e(156)](1),i[e(156)](2),i[e(156)](1),r=i[e(156)](5),i[e(156)](32),i[e(156)](1),i.GetWord(1),i.GetWord(1),i.GetWord(1),i[e(156)](44),n=i[e(156)](8);let c=[],l=[];for(let t=0;t<h;t++)c[t]=i.GetWord(1),l[t]=i[e(156)](1);if(h>0)for(let t=h;t<8;t++)i[e(156)](2);for(let t=0;t<h;t++)c[t]&&(i.GetWord(2),i[e(156)](1),i[e(156)](5),i[e(156)](32),i.GetWord(1),i[e(156)](1),i.GetWord(1),i[e(156)](1),i[e(156)](44)),l[t]&&i[e(156)](8);let d=i[e(167)]();if(d>15)return console.warn(e(171),d),!1;let u=i[e(167)]();return u>3?(console.warn(e(165),u),!1):(3==u&&i.GetWord(1),o=i[e(167)](),a=i.GetUE(),i[e(156)](1)&&(i[e(167)](),i[e(167)](),i[e(167)](),i.GetUE()),i[e(167)]()!=i[e(167)]()?(console.warn(e(173)),!1):{profile_string:r,level_string:n,bit_depth:"",ref_frames:"",chroma_format:"",chroma_format_string:"",frame_rate:{fixed:"",fps:"",fps_den:"",fps_num:""},sar_ratio:{width:"",height:""},codec_size:{width:o,height:a},present_size:{width:"",height:a}})}}function Sh(t,e){const s=Ih();return(Sh=function(t,e){return s[t-=294]})(t,e)}!function(t,e){const s=Sh,i=t();for(;;)try{if(449912===-parseInt(s(296))/1*(parseInt(s(309))/2)+parseInt(s(303))/3+parseInt(s(305))/4+-parseInt(s(306))/5+-parseInt(s(308))/6+parseInt(s(295))/7*(-parseInt(s(311))/8)+parseInt(s(299))/9)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Ih);const wh=t=>{const e=Sh;let s=t,i=s[e(302)],r=new Uint8Array(i),n=0;for(let t=0;t<i;t++)t>=2&&3===s[t]&&0===s[t-1]&&0===s[t-2]||(r[n]=s[t],n++);return new Uint8Array(r[e(300)],0,n)},Eh=t=>{const e=Sh;switch(t){case 0:return e(315);case 1:return"4:2:0";case 2:return"4:2:2";case 3:return e(314);default:return"Unknown"}};function Ih(){const t=["4:0:0","readByte","readUEG","35DPaBSC","3YbXifg",".1.L","readBool","15505290lkyNjf","buffer",".B0","byteLength","152343GQOKPp","toFixed","1230624ifRQsO","143890pGuJKQ","min","1058004bvUaXP","417862AMnzHs","readSEG","1279088gUZrik","push","readBits","4:4:4"];return(Ih=function(){return t})()}const Th=kh;function kh(t,e){const s=Ch();return(kh=function(t,e){return s[t-=281]})(t,e)}!function(t,e){const s=kh,i=t();for(;;)try{if(676728===-parseInt(s(301))/1+-parseInt(s(285))/2+parseInt(s(283))/3*(parseInt(s(311))/4)+-parseInt(s(281))/5*(-parseInt(s(310))/6)+parseInt(s(307))/7+parseInt(s(297))/8+-parseInt(s(291))/9)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Ch);class _h{static[Th(292)](t){const e=Th;let s=t,i=s[e(305)],r=new Uint8Array(i),n=0;for(let t=0;t<i;t++)t>=2&&3===s[t]&&0===s[t-1]&&0===s[t-2]||(r[n]=s[t],n++);return new Uint8Array(r[e(289)],0,n)}static[Th(299)](t){const e=Th;let s=_h._ebsp2rbsp(t),i=new oe(s);return i[e(298)](),i[e(298)](),i.readBits(4),i[e(308)](2),i[e(308)](6),{num_temporal_layers:i[e(308)](3)+1,temporal_id_nested:i[e(284)]()}}static parseSPS(t){const e=Th;let s=_h[e(292)](t),i=new oe(s);i[e(298)](),i[e(298)]();let r=0,n=0,o=0,a=0;i.readBits(4);let h=i[e(308)](3);i.readBool();let c=i[e(308)](2),l=i.readBool(),d=i.readBits(5),u=i[e(298)](),p=i[e(298)](),f=i.readByte(),m=i[e(298)](),g=i.readByte(),A=i[e(298)](),y=i[e(298)](),b=i[e(298)](),v=i.readByte(),S=i.readByte(),w=i.readByte(),E=[],I=[];for(let t=0;t<h;t++)E.push(i[e(284)]()),I.push(i[e(284)]());if(h>0)for(let t=h;t<8;t++)i.readBits(2);for(let t=0;t<h;t++)E[t]&&(i[e(298)](),i[e(298)](),i[e(298)](),i[e(298)](),i[e(298)](),i[e(298)](),i[e(298)](),i[e(298)](),i[e(298)](),i.readByte(),i.readByte()),I[t]&&i.readByte();i[e(293)]();let T=i[e(293)]();3==T&&i.readBits(1);let k=i[e(293)](),_=i[e(293)]();i[e(284)]()&&(r+=i.readUEG(),n+=i[e(293)](),o+=i[e(293)](),a+=i.readUEG());let C=i[e(293)](),R=i[e(293)](),D=i[e(293)]();for(let t=i[e(284)]()?0:h;t<=h;t++)i[e(293)](),i[e(293)](),i.readUEG();if(i[e(293)](),i[e(293)](),i.readUEG(),i[e(293)](),i[e(293)](),i[e(293)](),i[e(284)]()){if(i[e(284)]())for(let t=0;t<4;t++)for(let s=0;s<(3===t?2:6);s++){if(i[e(284)]()){let s=Math.min(64,1<<4+(t<<1));t>1&&i[e(303)]();for(let t=0;t<s;t++)i[e(303)]()}else i[e(293)]()}}i[e(284)](),i[e(284)](),i.readBool()&&(i[e(298)](),i[e(293)](),i.readUEG(),i[e(284)]());let L=i[e(293)](),x=0;for(let t=0;t<L;t++){let s=!1;if(0!==t&&(s=i.readBool()),s){t===L&&i[e(293)](),i[e(284)](),i.readUEG();let s=0;for(let t=0;t<=x;t++){let t=i.readBool(),r=!1;!t&&(r=i[e(284)]()),(t||r)&&s++}x=s}else{let t=i.readUEG(),s=i[e(293)]();x=t+s;for(let s=0;s<t;s++)i[e(293)](),i[e(284)]();for(let t=0;t<s;t++)i.readUEG(),i.readBool()}}if(i[e(284)]()){let t=i[e(293)]();for(let s=0;s<t;s++){for(let t=0;t<D+4;t++)i[e(308)](1);i[e(308)](1)}}let P=!1,B=0,M=1,F=1,O=!1,U=1,N=1;if(i.readBool(),i[e(284)](),i.readBool()){if(i[e(284)]()){let t=i[e(298)](),s=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],r=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];t>0&&t<=16?(M=s[t-1],F=r[t-1]):255===t&&(M=i[e(308)](16),F=i[e(308)](16))}if(i.readBool()&&i[e(284)](),i[e(284)]()){i.readBits(3),i[e(284)](),i.readBool()&&(i[e(298)](),i[e(298)](),i.readByte())}if(i[e(284)]()&&(i.readUEG(),i.readUEG()),i.readBool(),i[e(284)](),i[e(284)](),P=i[e(284)](),P&&(i[e(293)](),i[e(293)](),i[e(293)](),i[e(293)]()),i[e(284)]()){if(U=i.readBits(32),N=i[e(308)](32),i[e(284)]()&&i[e(293)](),i.readBool()){let t=!1,s=!1,r=!1;t=i.readBool(),s=i.readBool(),(t||s)&&(r=i[e(284)](),r&&(i[e(298)](),i[e(308)](5),i[e(284)](),i[e(308)](5)),i[e(308)](4),i[e(308)](4),r&&i[e(308)](4),i[e(308)](5),i[e(308)](5),i.readBits(5));for(let n=0;n<=h;n++){let n=i[e(284)]();O=n;let o=!0,a=1;!n&&(o=i[e(284)]());let h=!1;if(o?i[e(293)]():h=i.readBool(),!h&&(a=i[e(293)]()+1),t){for(let t=0;t<a;t++)i[e(293)](),i[e(293)](),r&&(i[e(293)](),i.readUEG());i[e(284)]()}if(s){for(let t=0;t<a;t++)i.readUEG(),i[e(293)](),r&&(i[e(293)](),i.readUEG());i[e(284)]()}}}}i.readBool()&&(i.readBool(),i[e(284)](),i[e(284)](),B=i[e(293)](),i[e(293)](),i[e(293)](),i[e(293)](),i[e(293)]())}i[e(284)]();let j=e(290)+d+e(295)+w+e(286),V=k-(r+n)*(1===T||2===T?2:1),z=_-(o+a)*(1===T?2:1),G=1;return 1!==M&&1!==F&&(G=M/F),i[e(288)](),i=null,{codec_mimetype:j,profile_string:_h[e(296)](d),level_string:_h[e(282)](w),profile_idc:d,bit_depth:C+8,ref_frames:1,chroma_format:T,chroma_format_string:_h.getChromaFormatString(T),general_level_idc:w,general_profile_space:c,general_tier_flag:l,general_profile_idc:d,general_profile_compatibility_flags_1:u,general_profile_compatibility_flags_2:p,general_profile_compatibility_flags_3:f,general_profile_compatibility_flags_4:m,general_constraint_indicator_flags_1:g,general_constraint_indicator_flags_2:A,general_constraint_indicator_flags_3:y,general_constraint_indicator_flags_4:b,general_constraint_indicator_flags_5:v,general_constraint_indicator_flags_6:S,min_spatial_segmentation_idc:B,constant_frame_rate:0,chroma_format_idc:T,bit_depth_luma_minus8:C,bit_depth_chroma_minus8:R,frame_rate:{fixed:O,fps:N/U,fps_den:U,fps_num:N},sar_ratio:{width:M,height:F},codec_size:{width:V,height:z},present_size:{width:V*G,height:z}}}static[Th(294)](t){const e=Th;let s=_h[e(292)](t),i=new oe(s);i[e(298)](),i[e(298)](),i[e(293)](),i[e(293)](),i[e(284)](),i[e(284)](),i.readBits(3),i.readBool(),i[e(284)](),i[e(293)](),i.readUEG(),i[e(303)](),i[e(284)](),i[e(284)](),i[e(284)]()&&i[e(293)](),i[e(303)](),i[e(303)](),i[e(284)](),i.readBool(),i.readBool(),i[e(284)]();let r=i.readBool(),n=i[e(284)](),o=1;return n&&r?o=0:n?o=3:r&&(o=2),{parallelismType:o}}static getChromaFormatString(t){const e=Th;switch(t){case 0:return e(304);case 1:return"4:2:0";case 2:return e(287);case 3:return"4:4:4";default:return e(302)}}static[Th(296)](t){const e=Th;switch(t){case 1:return e(306);case 2:return"Main10";case 3:return"MainSP";case 4:return e(300);case 9:return e(312);default:return e(302)}}static[Th(282)](t){return(t/30)[Th(309)](1)}}function Ch(){const t=["752822MtZtmj","readBits","toFixed","30jRcqZp","660zXCvwH","SCC","349775IrfQzT","getLevelString","14619DNMqMk","readBool","1114642twgjTh",".B0","4:2:2","destroy","buffer","hvc1.","5632101nxqHYs","_ebsp2rbsp","readUEG","parsePPS",".1.L","getProfileString","4826984cFRgVR","readByte","parseVPS","Rext","4901WAvYvR","Unknown","readSEG","4:0:0","byteLength","Main"];return(Ch=function(){return t})()}const Rh=Oh;function Dh(t){const e=Oh;let s={codecWidth:0,codecHeight:0,videoType:lt[e(285)]};s[e(228)]=0,s[e(251)]=0,s[e(274)]=0,s.level=0,t=t.slice(5);do{let i={};if(t[e(258)]<23){console[e(270)](e(212),"arrayBuffer.length "+t[e(258)]+" < 23");break}if(i[e(221)]=t[0],1!=i[e(221)])break;i[e(188)]=t[1]>>6&3,i[e(240)]=t[1]>>5&1,i[e(199)]=31&t[1],i[e(297)]=t[2]<<24|t[3]<<16|t[4]<<8|t[5],i.general_constraint_indicator_flags=t[6]<<24|t[7]<<16|t[8]<<8|t[9],i[e(264)]=i.general_constraint_indicator_flags<<16|t[10]<<8|t[11],i.general_level_idc=t[12],i[e(289)]=(15&t[13])<<8|t[14],i[e(300)]=3&t[15],i[e(181)]=3&t[16],i[e(292)]=7&t[17],i[e(227)]=7&t[18],i.avgFrameRate=t[19]<<8|t[20],i[e(192)]=t[21]>>6&3,i[e(290)]=t[21]>>3&7,i[e(301)]=t[21]>>2&1,i[e(277)]=3&t[21];let r=t[22],n=t[e(208)](23);for(let t=0;t<r&&!(n.length<3);t++){let t=63&n[0],r=n[1]<<8|n[2];n=n[e(208)](3);for(let o=0;o<r&&!(n.length<2);o++){let r=n[0]<<8|n[1];if(n[e(258)]<2+r)break;if(n=n[e(208)](2),33==t){let t=new Uint8Array(r);t[e(237)](n.slice(0,r),0),i[e(275)]=xh(t,i),s[e(274)]=i[e(199)],s.level=i[e(314)]/30,s[e(228)]=i[e(275)].pic_width_in_luma_samples-(i[e(275)][e(205)]+i[e(275)][e(246)]),s.height=i.psps[e(294)]-(i[e(275)][e(256)]+i.psps[e(304)])}n=n.slice(r)}}}while(0);return s[e(244)]=s.width||1920,s.codecHeight=s.height||1080,s[e(215)]=s[e(232)],s[e(278)]=s[e(244)],s.timescale=1e3,s.refSampleDuration=1e3/23976*1e3,s}function Lh(t){const e=Oh,s=t;if(s[e(258)]<22)return console[e(190)](e(307)+s[e(258)]+e(273)),{};let i={codecWidth:0,codecHeight:0,videoType:lt[e(285)]},r=function(){const t=e;let s=new ArrayBuffer(2);return new DataView(s)[t(224)](0,256,!0),256===new Int16Array(s)[0]}(),n=new DataView(s.buffer),o=n[e(263)](0),a=31&n[e(263)](1);if(1!==o&&0!==o||0===a)return console[e(190)](e(262)+o+e(219)+a),{};let h=1+(3&n[e(263)](21));if(3!==h&&4!==h)return console[e(190)](e(310)+(h-1)),{};let c=n.getUint8(22);for(let t=0,o=23;t<c;t++){let t=63&n[e(263)](o+0),a=n[e(309)](o+1,!r);o+=3;for(let h=0;h<a;h++){let a=n[e(309)](o+0,!r);if(0===h)if(33===t){o+=2;let t=new Uint8Array(s[e(230)],o,a),r=_h[e(269)](t);i[e(244)]=r[e(183)][e(228)],i[e(232)]=r[e(183)][e(251)],i[e(278)]=r[e(229)].width,i[e(215)]=r.present_size[e(251)],i[e(274)]=r.profile_string,i.level=r[e(210)],i.bitDepth=r[e(220)],i[e(181)]=r.chroma_format,i[e(272)]=r[e(226)],i.frameRate=r.frame_rate,(!1===r.frame_rate.fixed||0===r[e(306)].fps_num||0===r[e(306)].fps_den)&&(i[e(222)]={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3}),i[e(222)].fps_den,i.frameRate.fps_num,i[e(242)]=r[e(239)],o+=a}else o+=2+a;else o+=2+a}}return i[e(209)]=new Uint8Array(s),i}function xh(t,e){const s=Oh;let i={},r=t[s(258)],n=[],o=new Xa(t);o[s(202)](1),o[s(202)](6),o[s(202)](6),o.read(3);for(let t=2;t<r;t++)t+2<r&&3==o.look(24)?(n[s(261)](o[s(202)](8)),n[s(261)](o.read(8)),t+=2,o[s(202)](8)):n[s(261)](o.read(8));let a=new Uint8Array(n),h=new Xa(a);if(i[s(303)]=h[s(202)](4),i.sps_max_sub_layers_minus1=h.read(3),i[s(243)]=h[s(202)](1),i[s(311)]=function(t,e,s){const i=Oh;let r={};r.profile_space=t[i(202)](2),r[i(193)]=t.read(1),r.profile_idc=t[i(202)](5),r.profile_compatibility_flags=t.read(32),r[i(241)]=t[i(202)](1),r[i(259)]=t[i(202)](1),r[i(195)]=t.read(1),r[i(312)]=t[i(202)](1),t.read(32),t[i(202)](12),r.level_idc=t[i(202)](8),r.sub_layer_profile_present_flag=[],r[i(291)]=[];for(let e=0;e<s;e++)r[i(204)][e]=t[i(202)](1),r[i(291)][e]=t[i(202)](1);if(s>0)for(let e=s;e<8;e++)t[i(202)](2);r[i(299)]=[],r[i(313)]=[],r[i(250)]=[],r[i(296)]=[],r.sub_layer_progressive_source_flag=[],r.sub_layer_interlaced_source_flag=[],r[i(279)]=[],r[i(218)]=[],r[i(283)]=[];for(let e=0;e<s;e++)r[i(204)][e]&&(r[i(299)][e]=t.read(2),r.sub_layer_tier_flag[e]=t[i(202)](1),r[i(250)][e]=t.read(5),r[i(296)][e]=t[i(202)](32),r[i(287)][e]=t.read(1),r[i(265)][e]=t[i(202)](1),r.sub_layer_non_packed_constraint_flag[e]=t.read(1),r[i(218)][e]=t.read(1),t.read(32),t[i(202)](12)),r.sub_layer_level_present_flag[e]?r[i(283)][e]=t[i(202)](8):r[i(283)][e]=1;return r}(h,0,i[s(200)]),i.sps_seq_parameter_set_id=h[s(248)](),i[s(286)]=h[s(248)](),3==i.chroma_format_idc?i[s(185)]=h[s(202)](1):i[s(185)]=0,i[s(191)]=h.read_golomb(),i.pic_height_in_luma_samples=h[s(248)](),i.conformance_window_flag=h[s(202)](1),i[s(266)]){let t=1+(i[s(286)]<2),e=1+(i[s(286)]<3);i.conf_win_left_offset=h[s(248)]()*e,i[s(246)]=h[s(248)]()*e,i[s(256)]=h[s(248)]()*t,i[s(304)]=h[s(248)]()*t}else i[s(205)]=0,i.conf_win_right_offset=0,i[s(256)]=0,i[s(304)]=0;return i}function Ph(t){const e=Oh;let{vps:s,pps:i,sps:r}=t,n={configurationVersion:1};const o=(t=>{const e=Sh;let s=wh(t),i=new oe(s);return i[e(316)](),i[e(316)](),i[e(313)](4),i.readBits(2),i[e(313)](6),{num_temporal_layers:i[e(313)](3)+1,temporal_id_nested:i.readBool()}})(s),a=(t=>{const e=Sh;let s=wh(t),i=new oe(s);i[e(316)](),i.readByte();let r=0,n=0,o=0,a=0;i[e(313)](4);let h=i[e(313)](3);i[e(298)]();let c=i.readBits(2),l=i[e(298)](),d=i[e(313)](5),u=i[e(316)](),p=i[e(316)](),f=i.readByte(),m=i.readByte(),g=i[e(316)](),A=i[e(316)](),y=i.readByte(),b=i[e(316)](),v=i[e(316)](),S=i[e(316)](),w=i[e(316)](),E=[],I=[];for(let t=0;t<h;t++)E.push(i.readBool()),I[e(312)](i[e(298)]());if(h>0)for(let t=h;t<8;t++)i[e(313)](2);for(let t=0;t<h;t++)E[t]&&(i[e(316)](),i[e(316)](),i[e(316)](),i[e(316)](),i.readByte(),i[e(316)](),i[e(316)](),i[e(316)](),i[e(316)](),i.readByte(),i[e(316)]()),E[t]&&i[e(316)]();i[e(294)]();let T=i.readUEG();3==T&&i[e(313)](1);let k=i[e(294)](),_=i[e(294)]();i.readBool()&&(r+=i[e(294)](),n+=i[e(294)](),o+=i[e(294)](),a+=i.readUEG());let C=i[e(294)](),R=i[e(294)](),D=i[e(294)]();for(let t=i.readBool()?0:h;t<=h;t++)i[e(294)](),i[e(294)](),i[e(294)]();if(i[e(294)](),i.readUEG(),i.readUEG(),i.readUEG(),i[e(294)](),i[e(294)](),i[e(298)]()&&i[e(298)]())for(let t=0;t<4;t++)for(let s=0;s<(3===t?2:6);s++)if(i[e(298)]()){let s=Math[e(307)](64,1<<4+(t<<1));t>1&&i[e(310)]();for(let t=0;t<s;t++)i.readSEG()}else i[e(294)]();i[e(298)](),i.readBool(),i[e(298)]()&&(i[e(316)](),i[e(294)](),i[e(294)](),i[e(298)]());let L=i.readUEG(),x=0;for(let t=0;t<L;t++){let s=!1;if(0!==t&&(s=i[e(298)]()),s){t===L&&i[e(294)](),i[e(298)](),i[e(294)]();let s=0;for(let t=0;t<=x;t++){let t=i.readBool(),r=!1;!t&&(r=i[e(298)]()),(t||r)&&s++}x=s}else{let t=i[e(294)](),s=i[e(294)]();x=t+s;for(let s=0;s<t;s++)i[e(294)](),i.readBool();for(let t=0;t<s;t++)i[e(294)](),i.readBool()}}if(i[e(298)]()){let t=i.readUEG();for(let s=0;s<t;s++){for(let t=0;t<D+4;t++)i[e(313)](1);i[e(313)](1)}}let P=!1,B=0,M=1,F=1,O=!1,U=1,N=1;if(i[e(298)](),i[e(298)](),i[e(298)]()){if(i[e(298)]()){let t=i[e(316)](),s=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],r=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];t>0&&t<16?(M=s[t-1],F=r[t-1]):255===t&&(M=i[e(313)](16),F=i.readBits(16))}if(i[e(298)]()&&i[e(298)](),i[e(298)]()&&(i[e(313)](3),i[e(298)](),i[e(298)]()&&(i[e(316)](),i[e(316)](),i.readByte())),i[e(298)]()&&(i[e(294)](),i[e(294)]()),i[e(298)](),i.readBool(),i[e(298)](),P=i[e(298)](),P&&(r+=i.readUEG(),n+=i[e(294)](),o+=i[e(294)](),a+=i[e(294)]()),i[e(298)]()&&(U=i[e(313)](32),N=i[e(313)](32),i[e(298)]()&&(i[e(294)](),i[e(298)]()))){let t=!1,s=!1,r=!1;t=i[e(298)](),s=i[e(298)](),(t||s)&&(r=i.readBool(),r&&(i[e(316)](),i[e(313)](5),i[e(298)](),i.readBits(5)),i[e(313)](4),i[e(313)](4),r&&i[e(313)](4),i.readBits(5),i[e(313)](5),i.readBits(5));for(let n=0;n<=h;n++){let n=i[e(298)]();O=n;let o=!1,a=1;!n&&(o=i.readBool());let h=!1;if(o?i[e(310)]():h=i[e(298)](),!h&&(cpbcnt=i[e(294)]()+1),t)for(let t=0;t<a;t++)i[e(294)](),i[e(294)](),r&&(i[e(294)](),i.readUEG());if(s)for(let t=0;t<a;t++)i[e(294)](),i.readUEG(),r&&(i.readUEG(),i[e(294)]())}}i[e(298)]()&&(i.readBool(),i[e(298)](),i[e(298)](),B=i[e(294)](),i[e(294)](),i[e(294)](),i[e(294)](),i[e(294)]())}i[e(298)]();let j="hvc1."+d+e(297)+w+e(301),V=k,z=_,G=1;return 1!==M&&1!==F&&(G=M/F),i.destroy(),i=null,{codec_mimetype:j,level_string:(W=w,(W/30)[Sh(304)](1)),profile_idc:d,bit_depth:C+8,ref_frames:1,chroma_format:T,chroma_format_string:Eh(T),general_level_idc:w,general_profile_space:c,general_tier_flag:l,general_profile_idc:d,general_profile_compatibility_flags_1:u,general_profile_compatibility_flags_2:p,general_profile_compatibility_flags_3:f,general_profile_compatibility_flags_4:m,general_constraint_indicator_flags_1:g,general_constraint_indicator_flags_2:A,general_constraint_indicator_flags_3:y,general_constraint_indicator_flags_4:b,general_constraint_indicator_flags_5:v,general_constraint_indicator_flags_6:S,min_spatial_segmentation_idc:B,constant_frame_rate:0,chroma_format_idc:T,bit_depth_luma_minus8:C,bit_depth_chroma_minus8:R,frame_rate:{fixed:O,fps:N/U,fps_den:U,fps_num:N},sar_ratio:{width:M,height:F},codec_size:{width:V,height:z},present_size:{width:V*G,height:z}};var W})(r),h=(t=>{const e=Sh;let s=wh(t),i=new oe(s);i[e(316)](),i[e(316)](),i[e(294)](),i.readUEG(),i[e(298)](),i[e(298)](),i[e(313)](3),i.readBool(),i[e(298)](),i[e(294)](),i[e(294)](),i[e(310)](),i[e(298)](),i[e(298)](),i.readBool()&&i[e(294)](),i[e(310)](),i[e(310)](),i[e(298)](),i[e(298)](),i[e(298)](),i[e(298)]();let r=i[e(298)](),n=i[e(298)](),o=1;return n&&r?o=0:n?o=3:r&&(o=2),{parallelismType:o}})(i);n=Object.assign(n,o,a,h);let c=23+(5+s.byteLength)+(5+r[e(305)])+(5+i.byteLength),l=new Uint8Array(c);l[0]=1,l[1]=(3&n[e(188)])<<6|(n[e(240)]?1:0)<<5|31&n[e(199)],l[2]=n[e(293)]||0,l[3]=n.general_profile_compatibility_flags_2||0,l[4]=n.general_profile_compatibility_flags_3||0,l[5]=n[e(295)]||0,l[6]=n[e(186)]||0,l[7]=n[e(225)]||0,l[8]=n[e(231)]||0,l[9]=n.general_constraint_indicator_flags_4||0,l[10]=n.general_constraint_indicator_flags_5||0,l[11]=n[e(247)]||0,l[12]=60,l[13]=240|(3840&n[e(289)])>>8,l[14]=255&n.min_spatial_segmentation_idc,l[15]=252|3&n[e(300)],l[16]=252|3&n[e(286)],l[17]=248|7&n.bit_depth_luma_minus8,l[18]=248|7&n.bit_depth_chroma_minus8,l[19]=0,l[20]=0,l[21]=(3&n[e(252)])<<6|(7&n[e(234)])<<3|(n[e(236)]?1:0)<<2|3,l[22]=3,l[23]=128|q[e(238)],l[24]=0,l[25]=1,l[26]=(65280&s[e(305)])>>8,l[27]=(255&s.byteLength)>>0,l[e(237)](s,28),l[23+(5+s[e(305)])+0]=128|q[e(217)],l[23+(5+s[e(305)])+1]=0,l[23+(5+s.byteLength)+2]=1,l[23+(5+s.byteLength)+3]=(65280&r[e(305)])>>8,l[23+(5+s[e(305)])+4]=(255&r[e(305)])>>0,l[e(237)](r,23+(5+s[e(305)])+5),l[23+(5+s[e(305)]+5+r[e(305)])+0]=128|q[e(298)],l[23+(5+s[e(305)]+5+r.byteLength)+1]=0,l[23+(5+s[e(305)]+5+r.byteLength)+2]=1,l[23+(5+s[e(305)]+5+r[e(305)])+3]=(65280&i[e(305)])>>8,l[23+(5+s[e(305)]+5+r.byteLength)+4]=(255&i.byteLength)>>0,l.set(i,23+(5+s.byteLength+5+r[e(305)])+5);const d=[28,0,0,0,0],u=new Uint8Array(d[e(258)]+l[e(305)]);return u[e(237)](d,0),u[e(237)](l,d[e(258)]),u}function Bh(t,e){const s=Oh;let i=[];i[0]=e?28:44,i[1]=1,i[2]=0,i[3]=0,i[4]=0;const r=new Uint8Array(i[s(258)]+t[s(305)]);return r[s(237)](i,0),r[s(237)](t,i[s(258)]),r}function Mh(){const t=["Invalid HEVCDecoderConfigurationRecord, lack of data! ","6565668AnNFfi","getUint16","Invalid HEVCDecoderConfigurationRecord, Strange NaluLengthSizeMinusOne: ","profile_tier_level","general_frame_only_constraint_flag","sub_layer_tier_flag","general_level_idc","chromaFormat","max","codec_size","readUByte","separate_colour_plane_flag","general_constraint_indicator_flags_1","parseHEVCDecoderConfigurationRecord$3","general_profile_space","bitDepth","error","pic_width_in_luma_samples","constantFrameRate","tier_flag","13767792RheglR","general_non_packed_constraint_flag","generalTierFlag","setUint32","generalLevelIdc","general_profile_idc","sps_max_sub_layers_minus1","Could not find H265 startcode until payload end!","read","generalProfileSpace","sub_layer_profile_present_flag","conf_win_left_offset","parseHEVCDecoderVPSAndSPSAndPPS and sps tag is ","readUEG","slice","hvcc","level_string","from","parseHEVCDecoderConfigurationRecord$2","chromaFormatIdc","type","presentHeight","76605rgmkoW","sps","sub_layer_frame_only_constraint_flag",", hevcProfile is ","bit_depth","configurationVersion","frameRate","subarray","setInt16","general_constraint_indicator_flags_2","sar_ratio","bitDepthChromaMinus8","width","present_size","buffer","general_constraint_indicator_flags_3","codecHeight","chroma_format","num_temporal_layers","6888785iCJvPY","temporal_id_nested","set","vps","codec_mimetype","general_tier_flag","general_progressive_source_flag","codec","sps_temporal_id_nesting_flag","codecWidth","hev1.1.6.L93.B0","conf_win_right_offset","general_constraint_indicator_flags_6","read_golomb","level","sub_layer_profile_idc","height","constant_frame_rate","arrayBuffer.length ","122665iNxvFk","parseHEVCDecoderVPSAndSPSAndPPS and vpsTag is ","conf_win_top_offset","currentStartcodeOffset","length","general_interlaced_source_flag","readBits","push","Invalid HEVCDecoderConfigurationRecord,version is ","getUint8","general_constraint_indicator_flags","sub_layer_interlaced_source_flag","conformance_window_flag","generalProfileIdc","5460188nWGcaL","parseSPS","warn","6599236wmCCiG","sarRatio"," < 22","profile","psps","parseHEVCDecoderVPSAndSPSAndPPS and pps tag is ","lengthSizeMinusOne","presentWidth","sub_layer_non_packed_constraint_flag","18DTzcau","findNextStartCodeOffset","generalConstraintIndicatorFlags","sub_layer_level_idc","readNextNaluPayload","h265","chroma_format_idc","sub_layer_progressive_source_flag","data","min_spatial_segmentation_idc","numTemporalLayers","sub_layer_level_present_flag","bitDepthLumaMinus8","general_profile_compatibility_flags_1","pic_height_in_luma_samples","general_profile_compatibility_flags_4","sub_layer_profile_compatibility_flag","general_profile_compatibility_flags","pps","sub_layer_profile_space","parallelismType","temporalIdNested","eofFlag","sps_video_parameter_set_id","conf_win_bottom_offset","byteLength","frame_rate"];return(Mh=function(){return t})()}function Fh(t){return(126&t[0])>>1}function Oh(t,e){const s=Mh();return(Oh=function(t,e){return s[t-=181]})(t,e)}function Uh(t){return!((e=t)>=32&&e<=40);var e}function Nh(t){return t>=16&&t<=21}!function(t,e){const s=Oh,i=t();for(;;)try{if(908046===parseInt(s(254))/1+-parseInt(s(280))/2*(parseInt(s(216))/3)+-parseInt(s(268))/4+-parseInt(s(235))/5+parseInt(s(308))/6+parseInt(s(271))/7+parseInt(s(194))/8)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Mh);class jh{constructor(t){const e=Oh;this[e(288)]=t,this[e(302)]=!1,this[e(257)]=this.findNextStartCodeOffset(0),this[e(302)]&&console[e(190)](e(201))}[Rh(281)](t){const e=Rh;let s=t,i=this.data;for(;;){if(s+3>=i.byteLength)return this.eofFlag=!0,i[e(305)];let t=i[s+0]<<24|i[s+1]<<16|i[s+2]<<8|i[s+3],r=i[s+0]<<16|i[s+1]<<8|i[s+2];if(1===t||1===r)return s;s++}}[Rh(284)](){const t=Rh;let e=this[t(288)],s=null;for(;null==s&&!this[t(302)];){let i=this[t(257)];i+=1===(e[i]<<24|e[i+1]<<16|e[i+2]<<8|e[i+3])?4:3;let r=e[i]>>1&63,n=(128&e[i])>>>7,o=this.findNextStartCodeOffset(i);this[t(257)]=o,0===n&&(s={type:r,data:e.subarray(i,o)})}return s}}class Vh{constructor(t){const e=Rh;let s=t.data[e(305)];this[e(214)]=t[e(214)],this[e(288)]=new Uint8Array(4+s),new DataView(this[e(288)][e(230)])[e(197)](0,s),this.data[e(237)](t[e(288)],4)}}const zh=Wh;function Gh(){const t=["3171234ViWRyc","25lASoIu","recording","presentWidth","sampleRate","depth","recorderCommon","h264","audioCodeId","handleAddNaluTrack","audioMetaInfo","4NVFBtY","h265","setFileName","403338uKKRyy","8Oibxeo","fileName","destroy","startRecord","codecHeight","stopRecordAndSave","timescale","isH264","isH265","1570510tqkrro","AAC","player","438546RIaNWn","initMetaData","sps","initAudioMetaData","382892WEkDBL","refSampleDuration","recordingInterval","metaInfo","initAudioAacExtraData","165431lNgwGG","11eidxEk","stopRecordingInterval","avcc","codecId","assign","9jTLSVQ","_recordingTimestamp","TAG_NAME","extraData","codec","originalCodec","getToTalByteLength","codecWidth","channelCount","handleAddAudioTrack","isWasmMp4","vps","_isRecording","presentHeight","slice","8879676nkgXOA","handleAddTrack","pps","startRecordingInterval","config","_reset","videoType","isRecording"];return(Gh=function(){return t})()}function Wh(t,e){const s=Gh();return(Wh=function(t,e){return s[t-=184]})(t,e)}!function(t,e){const s=Wh,i=t();for(;;)try{if(274879===-parseInt(s(245))/1+parseInt(s(242))/2*(-parseInt(s(193))/3)+parseInt(s(197))/4*(-parseInt(s(232))/5)+parseInt(s(231))/6+parseInt(s(202))/7*(parseInt(s(246))/8)+-parseInt(s(208))/9*(-parseInt(s(190))/10)+-parseInt(s(203))/11*(-parseInt(s(223))/12))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Gh);class Hh extends Bi{constructor(t){const e=Wh;super(),this[e(210)]=e(237),this[e(192)]=t,this.fileName="",this[e(220)]=!1,this._recordingTimestamp=0,this[e(199)]=null,this.sps=null,this.pps=null,this[e(219)]=null,this[e(206)]=null,this.audioCodeId=null,this[e(200)]={codecWidth:0,codecHeight:0,presentWidth:0,presentHeight:0,refSampleDuration:0,timescale:1e3,avcc:null,videoType:""},this[e(241)]={timescale:1e3,sampleRate:0,refSampleDuration:0,channelCount:0,codec:"",originalCodec:"",audioType:"",extraData:new Uint8Array(0)}}[zh(248)](){const t=zh;this[t(228)](),this[t(195)]=null,this[t(225)]=null,this[t(219)]=null,this[t(206)]=null,this[t(239)]=null,this[t(200)]=null,this[t(241)]=null}get[zh(188)](){const t=zh;return this[t(206)]===G[t(238)]}get[zh(189)](){return this[zh(206)]===G.h265}[zh(244)](t){this[zh(247)]=t}get[zh(230)](){return this[zh(220)]}get[zh(233)](){return this._isRecording}get recordTime(){return this[zh(209)]}[zh(184)](){}[zh(240)](t,e,s,i){}[zh(217)](t,e){}[zh(224)](t){}[zh(186)](){}[zh(226)](){}[zh(218)](){return!1}stopRecordingInterval(){const t=zh;this[t(199)]&&clearInterval(this[t(199)]),this[t(199)]=null}[zh(214)](){return 0}_reset(){const t=zh;this[t(247)]="",this[t(220)]=!1,this._recordingTimestamp=0,this[t(204)]()}[zh(194)](t,e){const s=zh;let i;const r=t[s(222)](5);if(this[s(206)]=e,this[s(200)][s(205)]=r,e===G[s(238)])i=sh(r);else if(e===G[s(243)]){i=function(t){const e=Oh;let s=23;const i=t[s];if((63&i)!==q.vps)return console[e(270)](e(255)+i),{};s+=2,s+=1;const r=t[s+1]|t[s]<<8;s+=2;const n=t[e(208)](s,s+r);s+=r;const o=t[s];if((63&o)!==q[e(217)])return console.warn(e(206)+o),{};s+=2,s+=1;const a=t[s+1]|t[s]<<8;s+=2;const h=t[e(208)](s,s+a);s+=a;const c=t[s];if((63&c)!==q[e(298)])return console.warn(e(276)+c),{};s+=2,s+=1;const l=t[s+1]|t[s]<<8;s+=2;const d=t[e(208)](s,s+l),u=new Uint8Array([a>>>24&255,a>>>16&255,a>>>8&255,255&a]),p=new Uint8Array([l>>>24&255,l>>>16&255,l>>>8&255,255&l]),f=new Uint8Array([r>>>24&255,r>>>16&255,r>>>8&255,255&r]),m=new Uint8Array(a+4);m.set(u,0),m[e(237)](h,4);const g=new Uint8Array(l+4);g.set(p,0),g[e(237)](d,4);const A=new Uint8Array(r+4);return A.set(f,0),A[e(237)](n,4),{sps:m,pps:g,vps:A}}(r);const e=Dh(t);i=Object[s(207)](i,e)}i&&(i.vps&&(this.vps=i[s(219)]),i[s(225)]&&(this.pps=i[s(225)]),i.sps&&(this[s(195)]=i[s(195)]),i[s(234)]&&(this[s(200)][s(234)]=i.presentWidth),i[s(221)]&&(this[s(200)][s(221)]=i[s(221)]),i[s(215)]&&(this.metaInfo[s(215)]=i[s(215)]),i[s(185)]&&(this[s(200)][s(185)]=i[s(185)]),i[s(187)]&&(this[s(200)][s(187)]=i.timescale),i[s(198)]&&(this[s(200)][s(198)]=i[s(198)]),i.videoType&&(this[s(200)].videoType=i[s(229)]))}[zh(196)](t,e){const s=zh;this[s(239)]=e;const i=t[0]>>1&1;let r=null;e===H[s(191)]?(r=function(t){const e=he;let s={},i=new ve(t);return i[e(478)](16),s[e(536)]=Se(i),s.sample_rate=we(i,s),s[e(506)]=i[e(478)](4),s[e(506)]<Ie[e(496)]&&(s[e(541)]=Ie[s[e(506)]]),s[e(535)]=-1,s.ps=-1,(5==s[e(536)]||29==s[e(536)])&&(29==s[e(536)]&&(s.ps=1),s[e(502)]=5,s[e(535)]=1,s[e(504)]=we(i,s),s.object_type=Se(i)),{...s,channelCount:s[e(541)],sampleRate:s.sample_rate}}(t),r&&(r[s(216)]&&(this[s(241)][s(216)]=r[s(216)]),r[s(212)]&&(this[s(241)][s(212)]=r.codec),r[s(213)]&&(this[s(241)][s(213)]=r.originalCodec),r[s(227)]&&(this[s(241)].config=r[s(227)]),r[s(235)]&&(this[s(241)][s(235)]=r.sampleRate),this[s(241)][s(235)]&&this[s(241)].timescale&&(this.audioMetaInfo[s(198)]=1024/this[s(241)][s(235)]*this[s(241)][s(187)])),this[s(241)][s(236)]=i?16:8,this[s(241)][s(211)]=t.slice(2)):this[s(241)][s(236)]=0===i?8:16}[zh(201)](t){this[zh(241)].extraData=new Uint8Array(t)}}const Kh=Yh;function Qh(){const t=["isOldHls","supportVideoFrameCallbackHandle","isStateSuspended","can not create stream","getSeekableBlob","hasAudio","$videoElement","blob","8217936QMLnOd","addTrack","16407448YjvUpt","bind","canvasRenderInterval","videoFrameCallback","RecordRTCLoader","3453660iroPlf","enabled","startRecord and render type is canvas and use captureStream","getVideoInfo","destroy","_reset","onload","recorder","stopRecording","init","getRenderType","8441069HillFi","_startCanvasRender","_startRecordingTimestamp","RecorderRTC","_opt","drawImage","canvas","recordingTimestamp","debug","stop recording","width","videoFrameCallback() player is destroyed","getTotalDuration","canvasElement","recordCreateError","isDestroyedOrClosed","requestVideoFrameCallback","emit","mediaStream","record timestamp :","cancel recording","createElement","debugError","getAudioTracks","canvasElement is null","totalByteLength","canvasElementCtx","recordWebMSupportSeek","Reader","useMSE","result","duration","getType","clearRect","audio","captureStream","tools","cancelVideoFrameCallback","metadatas","recordStart","_isRecording","cancelRecord","_stopSupportVideoFrameCallback","stopRecordingInterval","metadataSize","size","startRecord and use local canvas render video and captureStream","emitError","762309GKjAOO","_removeCanvasRender","recordEnd","download","isAliyunRtc","slice","mediaStreamAudioDestinationNode","recordBlob","decode","fileName","recording","startRecordingInterval","startRecord error and can not create stream","useWCS","recordCancel","stream","2560911nFOqqf","_recordingTimestamp","readAsArrayBuffer","use video frame callback","use setInterval","recordingInterval","height","1624872BBNypo","getBlob","ondataavailable","4rkooVb","startCanvasRender error","startRecord error","save","cues","player","debugLog","startRecord","_initCanvasRender","webrtc","webm","setInterval","stop","TAG_NAME","_stopCanvasRender","length","startRecord and video mediaStream","video","Decoder"];return(Qh=function(){return t})()}function Yh(t,e){const s=Qh();return(Yh=function(t,e){return s[t-=281]})(t,e)}!function(t,e){const s=Yh,i=t();for(;;)try{if(720478===-parseInt(s(392))/1+parseInt(s(296))/2+-parseInt(s(289))/3*(parseInt(s(299))/4)+-parseInt(s(333))/5+parseInt(s(326))/6+-parseInt(s(344))/7+parseInt(s(328))/8)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Qh);class qh extends Hh{constructor(t){const e=Yh;super(t),this[e(312)]=e(332),this[e(369)]=0,this[e(346)]=null,this.canvasRenderInterval=null,this.supportVideoFrameCallbackHandle=null,this.canvasElement=null,this.canvasElementCtx=null,t.debugLog("RecorderRTC",e(342))}[Kh(337)](){const t=Kh;super[t(337)](),this[t(338)](),this[t(304)].debugLog(t(347),"destroy")}[Kh(338)](){const t=Kh;super._reset(),this[t(313)](),this._stopSupportVideoFrameCallback(),this[t(393)](),this.totalByteLength=0,this[t(346)]=null,this[t(340)]&&(this[t(340)].destroy(),this[t(340)]=null)}[Kh(322)](t){const e=Kh,s=new(EBML[e(372)]),i=new(EBML[e(317)]),r=EBML[e(380)],n=new FileReader;return new Promise(((o,a)=>{const h=e;n[h(339)]=function(t){const e=h;i[e(281)](this[e(374)]).forEach((function(t){s.read(t)})),s[e(311)]();const n=r.makeMetadataSeekable(s[e(382)],s[e(375)],s[e(303)]),a=this[e(374)][e(397)](s[e(388)]),c=new Blob([n,a],{type:"video/webm"});o(c)},n[h(291)](t)}))}[Kh(306)](){const t=Kh,e={type:t(316),mimeType:"video/webm;codecs=h264",timeSlice:1e3,onTimeStamp:e=>{const s=t;this.player&&this[s(304)][s(305)](s(347),s(363)+e),null===this._startRecordingTimestamp&&(this._startRecordingTimestamp=e),this[s(290)]=(e-this[s(346)])/1e3},ondataavailable:e=>{const s=t;this[s(369)]+=e[s(389)],this[s(304)]&&this[s(304)][s(305)]("RecorderRTC",s(298),e[s(389)])},disableLogs:!this[t(304)][t(348)][t(352)]};try{let s=null;if(this[t(304)][t(343)]()===f[t(350)])s=this.player[t(316)][t(324)][t(379)](25),this[t(304)].debugLog(this[t(312)],t(335));else if(this[t(304)][t(316)][t(362)])s=this[t(304)][t(316)].mediaStream,this[t(304)][t(305)](this[t(312)],t(315));else{if(ci(this[t(345)]()))return void this[t(304)][t(391)](M[t(358)],t(300));this.player[t(318)]()||this[t(304)][t(348)][t(373)]||this[t(304)][t(348)][t(286)]?s=this[t(357)][t(379)](25):this[t(304)].isWebrtcH264()?s=this[t(304)][t(308)].videoStream:this[t(304)][t(396)]()&&(s=this[t(357)][t(379)](25)),this.player[t(305)](this.TAG_NAME,t(390))}if(!s)return this[t(304)][t(366)]("RecorderRTC",t(285)),void this[t(304)].emitError(M[t(358)],t(321));if(this[t(304)][t(378)]&&this[t(304)][t(378)].mediaStreamAudioDestinationNode&&this[t(304)][t(378)].mediaStreamAudioDestinationNode[t(288)]&&!this[t(304)].audio[t(320)]()&&this[t(304)].audio.hasAudio&&this[t(304)][t(348)][t(323)]){const e=this.player[t(378)][t(398)].stream;if(e[t(367)]()[t(314)]>0){const i=e[t(367)]()[0];i&&i[t(334)]&&s[t(327)](i)}}this[t(340)]=Ga(s,e)}catch(e){return this[t(304)].debugError(t(347),t(301),e),void this[t(304)][t(391)](M.recordCreateError,e)}this.recorder&&(this[t(384)]=!0,this[t(304)].emit(M.recording,!0),this[t(340)].startRecording(),this[t(304)][t(305)](t(347),"start recording"),this[t(304)][t(361)](M[t(383)]),this.startRecordingInterval())}[Kh(284)](){const t=Kh;this[t(387)](),this[t(294)]=window[t(310)]((()=>{const e=t;this[e(304)][e(361)](M[e(351)],this._recordingTimestamp)}),1e3)}stopRecordAndSave(){const t=Kh;let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:V[t(395)],s=arguments.length>1?arguments[1]:void 0;return new Promise(((i,r)=>{const n=t;(!this.recorder||!this._isRecording)&&r("recorder is not ready"),s&&this.setFileName(s),this[n(340)][n(341)]((()=>{const t=n;this[t(304)][t(305)](t(347),t(353));const s=(this[t(282)]||je())+"."+l[t(309)];if(this[t(304)]._opt[t(371)]);else{if(e===V[t(325)]){const e=this[t(340)][t(297)]();i(e),this[t(304)][t(361)](M[t(399)],e)}else i(),this[t(340)][t(302)](s);this.player[t(361)](M[t(394)]),this[t(338)](),this[t(304)][t(361)](M[t(283)],!1)}}))}))}[Kh(385)](){return new Promise(((t,e)=>{const s=Yh;if(this[s(304)][s(305)](this[s(312)],s(364)),!this[s(340)]||!this[s(384)])return t();this[s(340)].stopRecording((()=>{const e=s;this[e(338)](),this[e(304)][e(361)](M[e(283)],!1),this[e(304)][e(361)](M[e(287)]),t()}))}))}getToTalByteLength(){return this.totalByteLength}[Kh(356)](){return this.recordTime}[Kh(376)](){return l[Kh(309)]}initMetaData(){}[Kh(345)](){const t=Kh;return this._initCanvasRender(),this[t(357)]?(fi()?(this[t(304)].debugLog(this[t(312)],t(292)),this.supportVideoFrameCallbackHandle=this[t(304)].video[t(324)][t(360)](this[t(331)][t(329)](this))):(this[t(304)][t(305)](this[t(312)],t(293)),this._stopCanvasRender(),this[t(330)]=setInterval((()=>{const e=t;this[e(370)]&&this[e(370)].drawImage(this[e(304)][e(316)][e(324)],0,0,this.canvasElement[e(354)],this[e(357)][e(295)])}),40)),!0):(this[t(304)][t(366)](this[t(312)],t(368)),!1)}[Kh(307)](){const t=Kh,e=this[t(304)][t(336)]();!this.canvasElement&&e&&(this[t(357)]=document[t(365)](t(350)),this.canvasElementCtx=this[t(357)].getContext("2d"),e[t(354)]&&e[t(295)]&&(this.canvasElement.width=e[t(354)],this.canvasElement.height=e[t(295)]))}[Kh(393)](){const t=Kh;this[t(370)]&&(this[t(370)][t(377)](0,0,this[t(357)][t(354)],this[t(357)][t(295)]),this[t(370)]=null),this[t(357)]&&(this[t(357)][t(354)]=0,this.canvasElement[t(295)]=0,this.canvasElement=null)}[Kh(313)](){this[Kh(330)]&&(clearInterval(this.canvasRenderInterval),this.canvasRenderInterval=null)}[Kh(386)](){const t=Kh;this[t(319)]&&this.player[t(316)][t(324)]&&(this.player[t(316)][t(324)][t(381)](this[t(319)]),this[t(319)]=null)}[Kh(331)](){const t=Kh;this[t(304)][t(359)]()?this[t(304)][t(305)](this.TAG_NAME,t(355)):(this.canvasElementCtx&&this[t(370)][t(349)](this[t(304)].video[t(324)],0,0,this.canvasElement.width,this[t(357)][t(295)]),this[t(319)]=this.player.video.$videoElement[t(360)](this[t(331)][t(329)](this)))}}const Jh=Zh;function Xh(){const t=["stsd","isLeading","sdtp","18nyoHsN","mdhd","stts","HDLR_VIDEO","HDLR_AUDIO","dependsOn","avc1","mp3","size","mfhd","tfhd","stss","edts","1456128WwsGac","byteLength","presentHeight","prototype","trex","STSC","data","box","concat","set","stco","audio","codecWidth","slice","21657520YjHXYG","stsz","343608pIxYxh","sampleRate","avcc","mdia","hdlr","isDependedOn","STSD_PREFIX","cts","call","80GgacLg","sequenceNumber","chunkNo","num","moov","indexOf","369691jNqDRg","mp4a","push","channelCount","duration","charCodeAt","trun","chunkOffset","1860920rBpXfI","types","video","mvhd","dinf","esds","avcC","flags","moof","hasRedundancy","elst","STCO","hvc1","276fulPvo","minf","stbl","trak","refSampleDuration","constants","type","46760QOkBpb","tfdt","codecHeight","FTYP","vmhd","mdat","samples","DREF","sampleDelte","2114901ZwfYej","timescale","SMHD","pow","tkhd","traf","ftyp","length","hvcC","config"];return(Xh=function(){return t})()}function Zh(t,e){const s=Xh();return(Zh=function(t,e){return s[t-=210]})(t,e)}!function(t,e){const s=Zh,i=t();for(;;)try{if(826690===-parseInt(s(228))/1+-parseInt(s(236))/2+-parseInt(s(265))/3+parseInt(s(213))/4*(-parseInt(s(222))/5)+parseInt(s(249))/6*(-parseInt(s(256))/7)+parseInt(s(291))/8+-parseInt(s(278))/9*(-parseInt(s(211))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Xh);class $h{static init(){const t=Zh;$h[t(237)]={avc1:[],avcC:[],hvc1:[],hvcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[],free:[],edts:[],elst:[],stss:[]};for(let e in $h[t(237)])$h[t(237)].hasOwnProperty(e)&&($h[t(237)][e]=[e[t(233)](0),e.charCodeAt(1),e[t(233)](2),e.charCodeAt(3)]);let e=$h[t(254)]={};e[t(259)]=new Uint8Array([105,115,111,109,0,0,2,0,105,115,111,109,105,115,111,50,97,118,99,49,109,112,52,49,0,0,0,0]),e[t(219)]=new Uint8Array([0,0,0,0,0,0,0,1]),e.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),e[t(296)]=e[t(247)]=e.STTS,e.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),e[t(281)]=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),e[t(282)]=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),e[t(263)]=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),e[t(267)]=new Uint8Array([0,0,0,0,0,0,0,0]),e.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}static[Jh(298)](t){const e=Jh;let s=8,i=null,r=Array[e(294)][e(210)][e(221)](arguments,1),n=r[e(272)];for(let t=0;t<n;t++)s+=r[t][e(292)];i=new Uint8Array(s),i[0]=s>>>24&255,i[1]=s>>>16&255,i[2]=s>>>8&255,i[3]=255&s,i[e(300)](t,4);let o=8;for(let t=0;t<n;t++)i[e(300)](r[t],o),o+=r[t].byteLength;return i}static generateInitSegment(t,e,s){const i=Jh;let r=$h[i(298)]($h.types[i(271)],$h[i(254)][i(259)]),n=$h.box($h.types.free),o=8,a=new Uint8Array;s+o>=Math[i(268)](2,32)-1?(o=16,a=new Uint8Array(s+o),a.set(new Uint8Array([0,0,0,1]),0),a[i(300)]($h.types.mdat,4),a[i(300)](new Uint8Array([s+8>>>56&255,s+8>>>48&255,s+8>>>40&255,s+8>>>32&255,s+8>>>24&255,s+8>>>16&255,s+8>>>8&255,s+8&255]),8)):(a=new Uint8Array(s+o),a[0]=s+8>>>24&255,a[1]=s+8>>>16&255,a[2]=s+8>>>8&255,a[3]=s+8&255,a[i(300)]($h[i(237)].mdat,4));for(let t=0;t<e[i(272)];t++){let s=e[t];s[i(232)]=s[i(253)]*s[i(223)];for(let t=0;t<s[i(223)];t++){let e=s[i(262)][t];e.chunkOffset=r[i(292)]+n[i(292)]+o;let h=e[i(297)];a.set(h,o),o+=h.byteLength}}let h=$h[i(226)](t,e),c=new Uint8Array(r[i(292)]+h.byteLength+a[i(292)]+n[i(292)]);return c.set(r,0),c.set(n,r[i(292)]),c.set(a,r[i(292)]+n[i(292)]),c[i(300)](h,r.byteLength+a[i(292)]+n.byteLength),c}static[Jh(226)](t,e){const s=Jh;let i=t[s(266)],r=t.duration,n=e.length,o=$h[s(239)](i,r),a=new Uint8Array;for(let t=0;t<n;t++){let i=$h[s(252)](e[t]),r=new Uint8Array(i[s(292)]+a.byteLength);r[s(300)](a,0),r[s(300)](i,a[s(292)]),a=new Uint8Array(r[s(292)]),a[s(300)](r,0)}return $h.box($h[s(237)][s(226)],o,a)}static mvhd(t,e){const s=Jh;return $h.box($h[s(237)][s(239)],new Uint8Array([0,0,0,0,206,186,253,168,206,186,253,168,t>>>24&255,t>>>16&255,t>>>8&255,255&t,e>>>24&255,e>>>16&255,e>>>8&255,255&e,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3]))}static[Jh(252)](t){const e=Jh;return $h[e(298)]($h[e(237)][e(252)],$h[e(269)](t),$h[e(216)](t))}static tkhd(t){const e=Jh;let s=t.id,i=t[e(232)],r=t.presentWidth,n=t[e(293)];return"video"===t[e(255)]?$h[e(298)]($h.types[e(269)],new Uint8Array([0,0,0,15,206,186,253,168,206,186,253,168,s>>>24&255,s>>>16&255,s>>>8&255,255&s,0,0,0,0,i>>>24&255,i>>>16&255,i>>>8&255,255&i,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,r>>>8&255,255&r,0,0,n>>>8&255,255&n,0,0])):t[e(255)]===e(302)?$h.box($h.types[e(269)],new Uint8Array([0,0,0,15,206,186,253,168,206,186,253,168,s>>>24&255,s>>>16&255,s>>>8&255,255&s,0,0,0,0,i>>>24&255,i>>>16&255,i>>>8&255,255&i,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0])):void 0}static[Jh(290)](t,e){const s=Jh;return $h[s(298)]($h[s(237)][s(290)],$h[s(246)](t,e))}static[Jh(246)](t,e){const s=Jh;let i=0;for(let r=0;r<e;r++)t[r][s(255)]===s(238)&&(i+=t[r].duration);let r=t[e][s(232)];return 0===i&&(i=t[e][s(253)]),$h[s(298)]($h[s(237)][s(246)],new Uint8Array([0,0,0,0,0,0,0,2,i>>>24&255,i>>>16&255,i>>>8&255,255&i,255,255,255,255,0,1,0,0,r>>>24&255,r>>>16&255,r>>>8&255,255&r,0,0,0,0,0,1,0,0]))}static[Jh(216)](t){const e=Jh;return $h[e(298)]($h[e(237)][e(216)],$h.mdhd(t),$h[e(217)](t),$h[e(250)](t))}static[Jh(279)](t){const e=Jh;let s=t[e(266)]/t[e(253)],i=s*t.duration/t[e(266)];return $h[e(298)]($h.types.mdhd,new Uint8Array([0,0,0,0,206,186,253,168,206,186,253,168,s>>>24&255,s>>>16&255,s>>>8&255,255&s,i>>>24&255,i>>>16&255,i>>>8&255,255&i,85,196,0,0]))}static[Jh(217)](t){const e=Jh;let s=null;return s=t[e(255)]===e(302)?$h[e(254)][e(282)]:$h[e(254)][e(281)],$h[e(298)]($h[e(237)][e(217)],s)}static[Jh(250)](t){const e=Jh;let s=null;return s=t[e(255)]===e(302)?$h.box($h[e(237)].smhd,$h[e(254)][e(267)]):$h[e(298)]($h[e(237)][e(260)],$h.constants.VMHD),$h[e(298)]($h[e(237)].minf,s,$h[e(240)](),$h[e(251)](t))}static[Jh(240)](){const t=Jh;return $h[t(298)]($h.types[t(240)],$h.box($h[t(237)].dref,$h[t(254)][t(263)]))}static[Jh(251)](t){const e=Jh;let s=t[e(262)],i=[{No:1,num:0,sampleDelte:1,chunkNo:1,duration:s[0][e(232)]}],r=[s[0][e(232)]],n=s[e(272)];for(let t=0;t<n;t++)for(let n=0;n<i.length;n++)s[t][e(232)]===i[n][e(232)]?i[n][e(225)]++:r[e(227)](s[t].duration)<0&&(r[e(230)](s[t][e(232)]),i[e(230)]({No:2,num:0,sampleDelte:1,chunkNo:t+1,duration:s[t][e(232)]}));return $h.box($h[e(237)].stbl,$h.stsd(t),$h[e(280)](i),$h[e(289)](s),$h.stsc(i),$h[e(212)](s),$h[e(301)](i,s))}static stts(t){const e=Jh;let s=t[e(272)],i=new Uint8Array([0,0,0,0,s>>>24&255,s>>>16&255,s>>>8&255,255&s]),r=i[e(292)],n=new Uint8Array(r+8*s);n[e(300)](i,0);for(let i=0;i<s;i++)n.set(new Uint8Array([t[i][e(225)]>>>24&255,t[i][e(225)]>>>16&255,t[i][e(225)]>>>8&255,255&t[i].num,t[i][e(264)]>>>24&255,t[i][e(264)]>>>16&255,t[i][e(264)]>>>8&255,255&t[i][e(264)]]),r),r+=8;return $h.box($h[e(237)][e(280)],n)}static[Jh(289)](t){const e=Jh;let s=[],i=t[e(272)];for(let r=0;r<i;r++)!0===t[r].isKeyframe&&s[e(230)](r+1);let r=s[e(272)],n=new Uint8Array([0,0,0,0,r>>>24&255,r>>>16&255,r>>>8&255,255&r]),o=n[e(292)],a=new Uint8Array(o+4*r);a.set(n,0);for(let t=0;t<r;t++)a[e(300)](new Uint8Array([s[t]>>>24&255,s[t]>>>16&255,s[t]>>>8&255,255&s[t]]),o),o+=4;return $h[e(298)]($h[e(237)][e(289)],a)}static stsc(t){const e=Jh;let s=t[e(272)],i=new Uint8Array([0,0,0,0,s>>>24&255,s>>>16&255,s>>>8&255,255&s]),r=i.byteLength,n=new Uint8Array(r+12*s);n[e(300)](i,0);for(let i=0;i<s;i++){let s=t[i][e(224)],o=t[i][e(225)],a=t[i][e(264)];n[e(300)](new Uint8Array([s>>>24&255,s>>>16&255,s>>>8&255,255&s,o>>>24&255,o>>>16&255,o>>>8&255,255&o,a>>>24&255,a>>>16&255,a>>>8&255,255&a]),r),r+=12}return $h.box($h[e(237)].stsc,n)}static stsz(t){const e=Jh;let s=t[e(272)],i=new Uint8Array([0,0,0,0,0,0,0,0,s>>>24&255,s>>>16&255,s>>>8&255,255&s]),r=i.byteLength,n=new Uint8Array(r+4*s);n.set(i,0);for(let i=0;i<s;i++){let s=t[i].data.byteLength;n[e(300)](new Uint8Array([s>>>24&255,s>>>16&255,s>>>8&255,255&s]),r),r+=4}return $h[e(298)]($h.types.stsz,n)}static[Jh(301)](t,e){const s=Jh;let i=e[0][s(235)];return $h[s(298)]($h[s(237)][s(301)],new Uint8Array([0,0,0,0,0,0,0,1,i>>>24&255,i>>>16&255,i>>>8&255,255&i]))}static stsd(t){const e=Jh;return t.type===e(302)?t.codec===e(285)?$h[e(298)]($h[e(237)][e(275)],$h.constants[e(219)],$h[e(285)](t)):$h[e(298)]($h[e(237)].stsd,$h[e(254)][e(219)],$h[e(229)](t)):"avc"===t.videoType?$h[e(298)]($h[e(237)].stsd,$h[e(254)][e(219)],$h[e(284)](t)):$h[e(298)]($h.types[e(275)],$h[e(254)][e(219)],$h[e(248)](t))}static mp3(t){const e=Jh;let s=t[e(231)],i=t[e(214)],r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,s,0,16,0,0,0,0,i>>>8&255,255&i,0,0]);return $h.box($h[e(237)][".mp3"],r)}static[Jh(229)](t){const e=Jh;let s=t[e(231)],i=t[e(214)],r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,s,0,16,0,0,0,0,i>>>8&255,255&i,0,0]);return $h[e(298)]($h[e(237)][e(229)],r,$h[e(241)](t))}static[Jh(241)](t){const e=Jh;let s=t[e(274)]||[],i=s.length,r=new Uint8Array([0,0,0,0,3,23+i,0,1,0,4,15+i,64,21,0,0,0,0,0,0,0,0,0,0,0,5][e(299)]([i]).concat(s)[e(299)]([6,1,2]));return $h[e(298)]($h[e(237)][e(241)],r)}static avc1(t){const e=Jh;let s=t.avcc,i=t[e(303)],r=t[e(258)],n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,i>>>8&255,255&i,r>>>8&255,255&r,0,72,0,0,0,72,0,0,0,0,0,0,0,1,13,106,101,115,115,105,98,117,99,97,45,112,114,111,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return $h[e(298)]($h[e(237)][e(284)],n,$h.box($h.types[e(242)],s))}static hvc1(t){const e=Jh;let s=t[e(215)];const i=t[e(303)],r=t.codecHeight;let n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,i>>>8&255,255&i,r>>>8&255,255&r,0,72,0,0,0,72,0,0,0,0,0,0,0,1,13,106,101,115,115,105,98,117,99,97,45,112,114,111,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return $h[e(298)]($h[e(237)][e(248)],n,$h[e(298)]($h[e(237)][e(273)],s))}static mvex(t){const e=Jh;return $h.box($h[e(237)].mvex,$h[e(295)](t))}static[Jh(295)](t){const e=Jh;let s=t.id,i=new Uint8Array([0,0,0,0,s>>>24&255,s>>>16&255,s>>>8&255,255&s,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return $h[e(298)]($h[e(237)][e(295)],i)}static[Jh(244)](t,e){const s=Jh;return $h[s(298)]($h[s(237)][s(244)],$h[s(287)](t.sequenceNumber),$h[s(270)](t,e))}static[Jh(287)](t){const e=Jh;let s=new Uint8Array([0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,255&t]);return $h[e(298)]($h[e(237)].mfhd,s)}static[Jh(270)](t,e){const s=Jh;let i=t.id,r=$h[s(298)]($h[s(237)][s(288)],new Uint8Array([0,0,0,0,i>>>24&255,i>>>16&255,i>>>8&255,255&i])),n=$h[s(298)]($h[s(237)][s(257)],new Uint8Array([0,0,0,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])),o=$h.sdtp(t),a=$h[s(234)](t,o[s(292)]+16+16+8+16+8+8);return $h[s(298)]($h[s(237)][s(270)],r,n,a,o)}static[Jh(277)](t){const e=Jh;let s=t.samples||[],i=s[e(272)],r=new Uint8Array(4+i);for(let t=0;t<i;t++){let i=s[t][e(243)];r[t+4]=i[e(276)]<<6|i.dependsOn<<4|i[e(218)]<<2|i[e(245)]}return $h[e(298)]($h[e(237)].sdtp,r)}static[Jh(234)](t,e){const s=Jh;let i=t[s(262)]||[],r=i[s(272)],n=12+16*r,o=new Uint8Array(n);e+=8+n,o.set([0,0,15,1,r>>>24&255,r>>>16&255,r>>>8&255,255&r,e>>>24&255,e>>>16&255,e>>>8&255,255&e],0);for(let t=0;t<r;t++){let e=i[t][s(232)],r=i[t][s(286)],n=i[t].flags,a=i[t][s(220)];o[s(300)]([e>>>24&255,e>>>16&255,e>>>8&255,255&e,r>>>24&255,r>>>16&255,r>>>8&255,255&r,n.isLeading<<2|n[s(283)],n.isDependedOn<<6|n[s(245)]<<4|n.isNonSync,0,0,a>>>24&255,a>>>16&255,a>>>8&255,255&a],12+16*t)}return $h.box($h[s(237)][s(234)],o)}static mdat(t){const e=Jh;return $h.box($h.types[e(261)],t)}}$h.init();const tc=ec;function ec(t,e){const s=ic();return(ec=function(t,e){return s[t-=428]})(t,e)}!function(t,e){const s=ec,i=t();for(;;)try{if(367552===-parseInt(s(497))/1+-parseInt(s(439))/2+-parseInt(s(436))/3*(parseInt(s(457))/4)+parseInt(s(471))/5+-parseInt(s(453))/6+parseInt(s(446))/7*(parseInt(s(428))/8)+parseInt(s(450))/9*(parseInt(s(482))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(ic);class sc extends Hh{constructor(t){const e=ec;super(t),this[e(477)]=e(443),this[e(460)](),t.debugLog(this[e(477)],"init")}[tc(430)](){const t=tc;super[t(430)](),this[t(460)](),this[t(481)][t(484)](this[t(477)],t(430))}[tc(460)](){const t=tc;super[t(460)](),this[t(483)]=0,this[t(474)]=0,this.totalByteLength=0,this[t(504)]=0,this.bufferList=[],this.audioBufferList=[],this[t(493)]={},this.audioCacheTrack={},this[t(489)]=0,this[t(432)]=0}[tc(501)](){const t=tc;this[t(486)]=!0,this[t(481)][t(503)](M[t(433)],!0),this[t(481)].debugLog(this.TAG_NAME,"start recording"),this[t(481)].emit(M[t(462)]),this[t(456)]()}[tc(456)](){const t=tc;this[t(500)](),this.recordingInterval=window[t(461)]((()=>{const e=t;this[e(481)][e(503)](M[e(445)],this[e(505)]())}),1e3)}[tc(437)](t,e,s,i){return{id:1,sequenceNumber:++this[tc(489)],size:t.byteLength,dts:s,cts:i,isKeyframe:e,data:t,duration:0,flags:{isLeading:0,dependsOn:e?2:1,isDependedOn:e?1:0,hasRedundancy:0,isNonSync:e?0:1}}}_formatAudioFmp4Track(t,e){const s=tc;return{id:2,sequenceNumber:++this[s(432)],size:t[s(487)],dts:e,pts:e,cts:0,data:new Uint8Array(t),duration:0,originalDts:e,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}}handleAddNaluTrack(t,e,s,i){const r=tc;this[r(493)].id&&s>=this[r(493)][r(498)]?(this[r(493)][r(507)]=s-this.cacheTrack[r(498)],this[r(492)](this.cacheTrack)):this.cacheTrack={},this[r(493)]=this[r(437)](t,e,s,i)}[tc(470)](t,e){}[tc(492)](t){const e=tc;if(!this[e(464)])return void this[e(481)][e(495)](this[e(477)],e(454));if((null===this.sps||null===this[e(441)])&&this[e(485)])return void this[e(481)][e(495)](this[e(477)],e(494));if((null===this.sps||null===this[e(441)]||null===this[e(435)])&&this[e(468)])return void this[e(481)][e(495)](this[e(477)],e(431));const s=Object[e(491)]({},t);s[e(455)]=s[e(498)]+s[e(475)];const i=s[e(440)];if(s[e(452)])if(this.isH264){const t=new Uint8Array(this[e(458)][e(487)]+this[e(441)][e(487)]);t[e(476)](this[e(458)],0),t[e(476)](this[e(441)],this[e(458)][e(487)]);const r=new Uint8Array(t.byteLength+i[e(487)]);r.set(t,0),r[e(476)](i,t[e(487)]),s.data=r}else if(this[e(468)]){const t=new Uint8Array(this.sps[e(487)]+this[e(441)][e(487)]+this.vps[e(487)]);t[e(476)](this[e(435)],0),t[e(476)](this[e(458)],this[e(435)][e(487)]),t[e(476)](this[e(441)],this[e(435)][e(487)]+this[e(458)].byteLength);const r=new Uint8Array(t.byteLength+i[e(487)]);r[e(476)](t,0),r.set(i,t[e(487)]),s[e(440)]=r}s.size=s[e(440)][e(487)],this[e(483)]+=s.duration,this[e(429)]+=s[e(440)][e(487)],s[e(507)]=0,s.originalDts=s[e(498)],delete s.id,delete s[e(489)],this[e(499)].push(s)}_handleAddFmp4AudioTrack(t){const e=tc,s=Object[e(491)]({},t);s[e(455)]=s[e(498)]+s[e(475)],s.size=s[e(440)].byteLength,this[e(474)]+=s[e(507)],this[e(504)]+=s.data[e(487)],s.duration=0,s[e(496)]=s.dts,delete s.id,delete s[e(489)],this.audioBufferList[e(479)](s)}[tc(505)](){return this[tc(483)]/1e3}[tc(466)](){return l[tc(490)]}[tc(488)](){const t=tc;return this[t(429)]+this[t(504)]}stopRecordAndSave(){const t=tc;let e=arguments[t(447)]>0&&void 0!==arguments[0]?arguments[0]:V[t(449)],s=arguments[t(447)]>1?arguments[1]:void 0;return new Promise(((i,r)=>{const n=t;if(!this[n(464)])return this[n(481)][n(495)](this[n(477)],n(478)),r(n(478));if(0===this[n(499)][n(447)])return this[n(481)][n(495)](this[n(477)],"stop recording fail, this.bufferList.length is 0 "),r(n(465));s&&this[n(480)](s);const o={id:1,type:"video",sps:this[n(458)],pps:this.pps,samples:this[n(499)],sequenceNumber:this[n(499)].length,length:0,addSampleNum:1,duration:0,...this[n(467)]},a={id:2,type:"audio",sequenceNumber:this[n(459)][n(447)],samples:this[n(459)],...this[n(469)]},h=[o];a[n(502)].length>0&&h.push(a),this[n(481)].debugLog(this[n(477)],n(442)+h.length);const c=$h[n(506)]({timescale:1e3,duration:this[n(483)]},h,this[n(429)]+this.totalAudioByteLength);this.player[n(484)](this[n(477)],n(438));const d=new Blob([c],{type:n(444)});if(e===V[n(463)])i(d),this.player[n(503)](M[n(472)],d);else{i();As((this[n(473)]||je())+"."+l[n(490)],d)}this[n(481)][n(503)](M[n(434)]),this[n(460)](),this[n(481)][n(503)](M[n(433)],!1)}))}[tc(451)](){return new Promise(((t,e)=>{const s=ec;if(this[s(481)].debugLog(this.TAG_NAME,s(448)),!this[s(464)])return t();this[s(460)](),this.player[s(503)](M[s(433)],!1),this[s(481)][s(503)](M.recordCancel),t()}))}_getBufferTs(t){}}function ic(){const t=["getToTalByteLength","sequenceNumber","mp4","assign","_handleAddFmp4Track","cacheTrack","_handleAddFmp4Track, is h264 and this.sps or this.pps is null ","debugError","originalDts","699730xorJwv","dts","bufferList","stopRecordingInterval","startRecord","samples","emit","totalAudioByteLength","getTotalDuration","generateInitSegment","duration","32JsfsxW","totalByteLength","destroy","_handleAddFmp4Track, is h265 and this.sps or this.pps or this.vps is null ","audioSequenceNumber","recording","recordEnd","vps","344382GlDQsk","_formatFmp4Track","stop recording","1199066fHsbyZ","data","pps","trackList length is ","recorderMP4","application/octet-stream","recordingTimestamp","864388TNYJNQ","length","cancel recording","download","15928155lifYNQ","cancelRecord","isKeyframe","1411794OOSwrH","_handleAddFmp4Track, isRecording is false ","pts","_startRecordingInterval","20bAlCDm","sps","audioBufferList","_reset","setInterval","recordStart","blob","isRecording","stop recording fail, this.bufferList.length is 0 ","getType","metaInfo","isH265","audioMetaInfo","handleAddAudioTrack","1061765AvcNNL","recordBlob","fileName","totalAudioDuration","cts","set","TAG_NAME","stop recording fail, isRecording is false ","push","setFileName","player","10dtojHQ","totalDuration","debugLog","isH264","_isRecording","byteLength"];return(ic=function(){return t})()}function rc(t,e){const s=nc();return(rc=function(t,e){return s[t-=122]})(t,e)}function nc(){const t=["1383336LFhmLw","length","56756ajRMXU","7448230ybegXV","toString","constructor","hexStringToUint8Array: invalid hexString length, must be even and bexString length is: ","2357612HQMFqb","19236FxyjhR","replace","12owKboa","3008600HuFjKM","2AoOvag","9BXAXBz","1918543mdOQia","5moOrlT","set","substr","byteLength","917IXTLGS","error","reduce"];return(nc=function(){return t})()}function oc(){const t=rc;for(var e=arguments[t(143)],s=new Array(e),i=0;i<e;i++)s[i]=arguments[i];const r=s[0][t(125)];return s[t(141)](((e,s)=>{const i=t,n=new r((0|e[i(138)])+(0|s[i(138)]));return n[i(136)](e,0),n[i(136)](s,0|e[i(138)]),n}),new r)}function ac(t){const e=rc;if((t=t[e(129)](/\s/g,""))[e(143)]%2!=0)return console[e(140)](e(126),t[e(143)]),null;const s=new Uint8Array(t[e(143)]/2);for(let i=0;i<t.length;i+=2){const r=parseInt(t[e(137)](i,2),16);s[i/2]=r}return s}!function(t,e){const s=rc,i=t();for(;;)try{if(542786===-parseInt(s(122))/1*(-parseInt(s(132))/2)+parseInt(s(142))/3+parseInt(s(127))/4*(-parseInt(s(135))/5)+-parseInt(s(128))/6*(-parseInt(s(139))/7)+-parseInt(s(131))/8+parseInt(s(133))/9*(parseInt(s(123))/10)+-parseInt(s(134))/11*(parseInt(s(130))/12))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(nc);const hc=cc;function cc(t,e){const s=lc();return(cc=function(t,e){return s[t-=353]})(t,e)}function lc(){const t=["timestamp","_createFlvPacket","_isRecording","_init","buffer","stop recording","_reset","player","32032wsKWWu","audio","getType","stop recording fail, this.bufferList.length is 0 ","_createBufferItem","startRecordingInterval","videoSequenceHeader","recordStart","cancel recording","startRecord","getTotalDuration","9XYPxvW","destroy","application/octet-stream","scriptData","debugLog","prevTimestamp","FlvRecorderLoader","_getBufferTs","recordBlob","aacSequenceHeader","push","addVideoSequenceHeader","flv","stopRecordingInterval","145017VckLDh","130274JQGNqn","totalByteLength","header","init","211152KBVFSB","_setStartTime","112kyLeSs","200664qxcVNj","stopRecordAndSave","startTime","146276IcNBdq","cancelRecord","setFileName","totalDuration","blob","stop recording fail, isRecording is false ","recordCancel","video","currentTime","_createFlvTag","type","payload","length","hasAudio","313135wYlIhn","debugError","bufferList","250wTBDQb","download","subarray","flvMetaData","emit","addVideo","recording","recordEnd","TAG_NAME","concat","round","isRecording"];return(lc=function(){return t})()}!function(t,e){const s=cc,i=t();for(;;)try{if(120969===parseInt(s(395))/1+parseInt(s(385))/2+parseInt(s(370))/3*(parseInt(s(392))/4)+parseInt(s(409))/5+parseInt(s(389))/6+parseInt(s(391))/7*(parseInt(s(359))/8)+parseInt(s(384))/9*(-parseInt(s(412))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(lc);class dc extends Hh{constructor(t){const e=cc;super(t),this[e(420)]=e(376),this[e(358)]=t,this[e(354)](),this[e(358)][e(374)](this[e(420)],e(388))}[hc(371)](){const t=hc;super[t(371)](),this[t(354)](),this[t(358)].debugLog(this.TAG_NAME,t(371))}[hc(354)](){const t=hc;this[t(408)]=!1,this.hasVideo=!1,this[t(394)]=null,this.currentTime=0,this[t(375)]=0,this[t(386)]=0,this[t(398)]=0,this[t(415)]=null,this[t(379)]=null,this.videoSequenceHeader=null,this[t(411)]=[]}[hc(357)](){super[hc(357)](),this._init()}[hc(368)](){const t=hc;this[t(353)]=!0,this.player[t(416)](M[t(418)],!0),this[t(358)].debugLog(this.TAG_NAME,"start recording"),this[t(358)].emit(M[t(366)]),this[t(364)]()}startRecordingInterval(){const t=hc;this[t(383)](),this.recordingInterval=window.setInterval((()=>{const e=t;this[e(358)].emit(M.recordingTimestamp,this[e(369)]())}),1e3)}addMetaData(t){this[hc(415)]=t}addAACSequenceHeader(t){this[hc(379)]=t}[hc(381)](t){this[hc(365)]=t}[hc(417)](t,e){const s=hc;this[s(390)](e);const i=this[s(377)](e);this.hasVideo=!0,this[s(363)](t,L[s(402)],i)}addAudio(t,e){const s=hc;this[s(390)](e);const i=this[s(377)](e);this[s(408)]=!0,this[s(363)](t,L[s(360)],i)}_setStartTime(t){const e=hc;null===this[e(394)]&&this[e(353)]&&(this.startTime=t,this[e(358)][e(374)](this[e(420)],"_setStartTime is "+t))}[hc(377)](t){const e=hc;t>this[e(403)]&&(this[e(403)]=t);let s=0;return this[e(394)]&&t>=this[e(394)]&&(s=t-this[e(394)]),s>this[e(375)]?this[e(375)]=s:s=this[e(375)],s}[hc(363)](t,e,s){const i=hc,r=this[i(425)](t,e,s),n=this._createFlvTag(r);this[i(386)]+=n.byteLength,this[i(411)][i(380)](n)}_createFlvTag(t){const e=hc;let s=11+t[e(387)][e(407)],i=new Uint8Array(s+4),r=new DataView(i[e(355)]);return i[0]=t[e(387)][e(405)],i[1]=t[e(387)][e(407)]>>16&255,i[2]=t.header[e(407)]>>8&255,i[3]=255&t[e(387)][e(407)],i[4]=t[e(387)][e(424)]>>16&255,i[5]=t[e(387)].timestamp>>8&255,i[6]=255&t[e(387)][e(424)],i[7]=t[e(387)][e(424)]>>24&255,i[8]=0,i[9]=0,i[10]=0,r.setUint32(s,s),i.set(t[e(406)][e(414)](0,t.header[e(407)]),11),i}_createFlvPacket(){const t=hc;let e=arguments[t(407)]>0&&void 0!==arguments[0]?arguments[0]:null,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return{header:{length:e?e[t(407)]:0,timestamp:i,type:s},payload:e}}[hc(393)](){const t=hc;let e=arguments[t(407)]>0&&void 0!==arguments[0]?arguments[0]:V[t(413)],s=arguments[t(407)]>1?arguments[1]:void 0;return new Promise(((i,r)=>{const n=t;if(!this[n(423)])return this[n(358)].debugError(this.TAG_NAME,n(400)),r(n(400));if(0===this[n(411)][n(407)])return this[n(358)][n(410)](this[n(420)],n(362)),r(n(362));s&&this[n(397)](s);const o=new Uint8Array([70,76,86,1,0,0,0,0,9,0,0,0,0]);this.hasVideo&&(o[4]|=1),this.hasAudio&&(o[4]|=4);let a=[o];if(this[n(415)]){const t=this[n(425)](this[n(415)],L[n(373)]),e=this._createFlvTag(t);a[n(380)](e)}if(this.videoSequenceHeader){const t=this[n(425)](this.videoSequenceHeader,L[n(402)]),e=this[n(404)](t);a[n(380)](e)}if(this.aacSequenceHeader){const t=this._createFlvPacket(this.aacSequenceHeader,L[n(360)]),e=this[n(404)](t);a[n(380)](e)}const h=function(t){const e=rc,s=t[0][e(125)];return t[e(141)](((t,i)=>{const r=e,n=new s((0|t.byteLength)+(0|i[r(138)]));return n.set(t,0),n[r(136)](i,0|t[r(138)]),n}),new s)}(a[n(421)](this[n(411)]));this.player.debugLog(this[n(420)],n(356));const c=new Blob([h],{type:n(372)});if(e===V[n(399)])i(c),this[n(358)][n(416)](M[n(378)],c);else{i();As((this.fileName||je())+"."+l[n(382)],c)}this.player.emit(M[n(419)]),this._reset(),this[n(358)].emit(M.recording,!1)}))}[hc(396)](){return new Promise(((t,e)=>{const s=cc;if(this[s(358)].debugLog(this[s(420)],s(367)),!this.isRecording)return t();this[s(357)](),this[s(358)][s(416)](M.recording,!1),this[s(358)].emit(M[s(401)]),t()}))}getTotalDuration(){const t=hc;let e=0;return null!==this.startTime&&null!==this.currentTime&&(e=this[t(403)]-this.startTime),Math[t(422)](e/1e3)}[hc(361)](){return l[hc(382)]}getToTalByteLength(){return this[hc(386)]}}const uc=pc;function pc(t,e){const s=fc();return(pc=function(t,e){return s[t-=194]})(t,e)}function fc(){const t=["2521764pgZKJb","player","isDestroyed","slice","5XZkcap","5885190WblSFn","fisrtStartCodeOffset","length","238778VsohgT","tempBuffer","state","init","1281573hegAql","findFirstStartCode","Init","dispatch","335WzWYak","stats","parsedOffset","50370SgfbnN","destroy","reset","off","5443568vzZMvB","findSecondStartCode","set","7EzLAZL","secondStartCodeOffset","687846teBLni","versionLayer"];return(fc=function(){return t})()}!function(t,e){const s=pc,i=t();for(;;)try{if(350157===parseInt(s(221))/1*(parseInt(s(195))/2)+-parseInt(s(215))/3+-parseInt(s(217))/4+-parseInt(s(203))/5*(-parseInt(s(206))/6)+-parseInt(s(213))/7*(parseInt(s(210))/8)+parseInt(s(199))/9+parseInt(s(222))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(fc);const mc={init:0,findFirstStartCode:1,findSecondStartCode:2};class gc extends Bi{constructor(t){const e=pc;super(),this[e(218)]=t,this[e(219)]=!1,this[e(208)]()}[uc(207)](){const t=uc;this[t(219)]=!1,this[t(209)](),this.reset()}[uc(208)](){const t=uc;this[t(204)]=mc[t(198)],this.tempBuffer=new Uint8Array(0),this[t(205)]=0,this[t(216)]=0}[uc(202)](t,e){const s=uc;let i=new Uint8Array(this.tempBuffer[s(194)]+t[s(194)]);for(i[s(212)](this.tempBuffer,0),i.set(t,this[s(196)][s(194)]),this[s(196)]=i;!this[s(219)];){if(this.state==mc[s(201)]){let t=!1;for(;this[s(196)][s(194)]-this[s(205)]>=2&&!this.isDestroyed;)if(255==this[s(196)][this.parsedOffset]){if(!(!1&this[s(196)][this[s(205)]+1])){this.versionLayer=this.tempBuffer[this[s(205)]+1],this[s(197)]=mc[s(200)],this.fisrtStartCodeOffset=this[s(205)],this.parsedOffset+=2,t=!0;break}this[s(205)]++}else this.parsedOffset++;if(t)continue;break}if(this.state==mc[s(200)]){let t=!1;for(;this[s(196)][s(194)]-this.parsedOffset>=2&&!this.isDestroyed;)if(255==this.tempBuffer[this[s(205)]]){if(this[s(196)][this.parsedOffset+1]==this[s(216)]){this[s(197)]=mc[s(211)],this[s(214)]=this.parsedOffset,this[s(205)]+=2,t=!0;break}this[s(205)]++}else this[s(205)]++;if(t)continue;break}if(this.state==mc[s(211)]){let t=this[s(196)][s(220)](this[s(223)],this[s(214)]);this.emit("data",t,e),this[s(196)]=this.tempBuffer[s(220)](this[s(214)]),this[s(223)]=0,this[s(205)]=2,this[s(197)]=mc[s(200)]}}}}const Ac=yc;function yc(t,e){const s=bc();return(yc=function(t,e){return s[t-=269]})(t,e)}function bc(){const t=["fileName","blob","1284368TURuvQ","audio","mp4","debugError","isRecording","catch","216GdVvmX","player","pendingVideoFrames","dts","startRecord","byteLength","getAudioInfo","336190TcOCCd","debugUuid","then","metaInfo","stopRecord error","wasmMp4RecorderStarted","forEach","recordCancel","channels","video","codecId","duration","totalByteLength","length","4424841RkPKgt","TAG_NAME","getType","audioCodeId","destroy","start recording","avcc","debugLog","6549000LLhBUz","init","stopRecordingInterval","stop recording fail, isRecording is false ","JessibucaProMp4Recorder","854653khwRji","startRecord error","hasAudio","cts","MP3","recordStart","audioMetaInfo","6jWganL","recordEnd","_isRecording","recording","_reset","hasVideo","5861245iybKng","getVideoInfo","recordBlob","stopRecordAndSave","setFileName","isIFrame","sendVideoFrame","wasmMp4RecorderDecoder","_handleAddAudioTrack","sampleRate","pendingAudioFrames","_recordingTimestamp","emit","depth","totalAudioDuration","width","payload","round","2429tIlQjk","19896herDYS","setInterval","mp3Demuxer","audioCacheTrack","totalAudioByteLength","stop recording fail, recording time is 0 ","cacheTrack","encTypeCode","wasmMp4Recorder","_opt","push","cancelRecord","finally","cancel recording","recordingTimestamp","handleAddAudioTrack","stopRecord","_prevHandleAddNaluTrack","_prevHandleAddAudioTrack"];return(bc=function(){return t})()}!function(t,e){const s=yc,i=t();for(;;)try{if(853610===-parseInt(s(342))/1+parseInt(s(302))/2+parseInt(s(329))/3+-parseInt(s(337))/4+-parseInt(s(355))/5*(-parseInt(s(349))/6)+parseInt(s(280))/7*(parseInt(s(281))/8)+-parseInt(s(308))/9*(parseInt(s(315))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(bc);class vc extends Hh{constructor(t){const e=yc;super(t),this[e(330)]="recorderWasmMP4",this[e(353)](),this[e(289)]=null,this[e(283)]=null,this[e(320)]=!1,this[e(272)]=[],this[e(310)]=[],t[e(336)](this[e(330)],e(338))}[Ac(333)](){const t=Ac;super[t(333)](),this[t(283)]&&(this.mp3Demuxer[t(333)](),this[t(283)]=null),this[t(353)](),this[t(309)][t(336)](this[t(330)],t(333))}_reset(){const t=Ac;super[t(353)](),this[t(287)]={},this[t(284)]={},this[t(276)]=0,this.totalByteLength=0,this[t(285)]=0,this.hasAudio=!1,this[t(354)]=!1}[Ac(331)](){return l.mp4}isWasmMp4(){return!0}getTotalDuration(){return this[Ac(273)]/1e3}getToTalByteLength(){const t=Ac;return this[t(327)]+this[t(285)]}[Ac(312)](){const t=Ac,e=this[t(309)],s=this.player[t(314)](),i=this[t(309)][t(356)](),r={};if(this.codecId){const e={type:this[t(325)],width:i[t(277)],height:i.height,extraData:this[t(318)][t(335)]};r[t(324)]=e,this.hasVideo=!0}if(s[t(288)]){const e={type:s[t(288)],sampleRate:s[t(271)],channels:s[t(323)],extraData:this[t(348)].extraData,depth:s[t(275)]};this[t(332)]=s.encTypeCode,r[t(303)]=e,this[t(344)]=!0}this.wasmMp4Recorder=new(window[t(341)])({debug:e[t(290)].debug,debugLevel:e._opt.debugLevel,debugUuid:e[t(290)][t(316)],decoder:e[t(290)][t(269)],name:b,buildTime:v}),this[t(289)].on(t(295),(e=>{const s=t;this[s(273)]=Math[s(279)](e/1e3)})),this._isRecording=!0,this[t(289)][t(312)](r)[t(317)]((()=>{const e=t;this.player[e(274)](M.recording,!0),this[e(320)]=!0,this.player[e(336)](this[e(330)],e(334)),this.player[e(274)](M[e(347)]),this.startRecordingInterval()}))[t(307)]((e=>{const s=t;this[s(351)]=!1,this[s(309)][s(305)](this[s(330)],s(343),e),this[s(309)].emitError(M.recordCreateError,e)}))}startRecordingInterval(){const t=Ac;this[t(339)](),this.recordingInterval=window[t(282)]((()=>{const e=t;this[e(309)][e(274)](M[e(295)],this.recordTime)}),1e3)}[Ac(358)](){const t=Ac;let e=arguments[t(328)]>0&&void 0!==arguments[0]?arguments[0]:V.download,s=arguments[t(328)]>1?arguments[1]:void 0;return new Promise(((i,r)=>{const n=t;return this[n(306)]?0===this[n(273)]?(this[n(309)][n(305)](this[n(330)],n(286)),r(n(286))):(s&&this[n(359)](s),void this[n(289)].stopRecord().then((t=>{const s=n;if(e===V[s(301)])i(t),this[s(309)][s(274)](M[s(357)],t);else{i();As((this[s(300)]||je())+"."+l[s(304)],t)}}))[n(307)]((t=>{const e=n;this[e(309)].debugError(this[e(330)],e(319),t),r(t)}))[n(293)]((()=>{const t=n;this.player.emit(M[t(350)]),this._reset(),this[t(309)][t(274)](M[t(352)],!1)}))):(this.player.debugError(this[n(330)],"stop recording fail, isRecording is false "),r(n(340)))}))}[Ac(292)](){return new Promise(((t,e)=>{const s=yc;if(this[s(309)][s(336)](this[s(330)],s(294)),!this[s(306)]||0===this._recordingTimestamp)return t();this[s(289)][s(297)]()[s(317)]((e=>{t()}))[s(307)]((t=>{const i=s;this.player[i(305)](this[i(330)],i(319),t),e(t)})).finally((()=>{const t=s;this._reset(),this[t(309)].emit(M[t(352)],!1),this[t(309)].emit(M[t(322)])}))}))}[Ac(296)](t,e){const s=Ac;ci(this.hasAudio)||(this.wasmMp4RecorderStarted?(this[s(272)].length>0&&(this[s(272)][s(321)]((t=>{const e=s;this[e(299)](t[e(278)],t[e(311)])})),this.pendingAudioFrames=[]),this[s(299)](t,e)):this[s(272)][s(291)]({payload:t,dts:e}))}[Ac(299)](t,e){const s=Ac;this.audioCodeId===H[s(346)]?(!this[s(283)]&&(this.mp3Demuxer=new gc(this[s(309)]),this.mp3Demuxer.on("data",((t,e)=>{this[s(270)](t,e)}))),this[s(283)].dispatch(t,e)):this[s(270)](t,e)}[Ac(270)](t,e){const s=Ac;this[s(284)].id&&e>=this[s(284)][s(311)]?(this[s(284)][s(326)]=e-this[s(284)][s(311)],this.totalAudioDuration+=this[s(284)].duration,this[s(285)]+=this[s(284)][s(278)].byteLength,this[s(289)].sendAudioFrame(this[s(284)][s(278)],this[s(284)].dts)):this[s(284)]={},this[s(284)]={id:2,payload:t,dts:e}}handleAddNaluTrack(t,e,s,i){const r=Ac;ci(this[r(354)])||(this[r(320)]?(this[r(310)][r(328)]>0&&(this[r(310)].forEach((t=>{const e=r;this[e(298)](t[e(278)],t[e(360)],t[e(311)],t[e(345)])})),this.pendingVideoFrames=[]),this[r(298)](t,e,s,i)):this[r(310)][r(291)]({payload:t,isIFrame:e,dts:s,cts:i}))}[Ac(298)](t,e,s,i){const r=Ac;this.cacheTrack.id&&s>=this[r(287)].dts?(this.cacheTrack[r(326)]=s-this[r(287)][r(311)],this[r(327)]+=this[r(287)][r(278)][r(313)],this[r(289)][r(361)](this[r(287)][r(278)],this[r(287)][r(360)],this[r(287)][r(311)],this[r(287)][r(345)])):this.cacheTrack={},this[r(287)]={id:1,payload:t,isIFrame:e,dts:s,cts:i}}}function Sc(){const t=["_opt","296027RbdlzG","15823512QgyCvD","recordType","getLoaderFactory","useWasm","93822tVysQB","39790OeBYWV","4308766kDXqbE","36TRVQBi","flv","5451136xeTenN","2216600irrgyc","12JwDfBg","mp4","isAliyunRtc","JessibucaProMp4Recorder"];return(Sc=function(){return t})()}function wc(t,e){const s=Sc();return(wc=function(t,e){return s[t-=453]})(t,e)}!function(t,e){const s=wc,i=t();for(;;)try{if(343011===parseInt(s(468))/1+parseInt(s(456))/2*(parseInt(s(463))/3)+-parseInt(s(462))/4+-parseInt(s(457))/5*(parseInt(s(459))/6)+-parseInt(s(458))/7+-parseInt(s(461))/8+parseInt(s(469))/9)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Sc);class Ec{constructor(t){const e=wc;return new(Ec[e(454)](t,t[e(467)]))(t)}static getLoaderFactory(t,e){const s=wc;if(t.isOldHls()||t.isWebrtcH264()||t[s(465)]())return qh;if(e.recordType===l[s(464)]){if(e[s(455)]||e.useMSE||e.useWCS)return window[s(466)]&&e.mp4RecordUseWasm?vc:sc}else if(e[s(453)]===l[s(460)])return dc;return qh}}function Ic(t,e){const s=kc();return(Ic=function(t,e){return s[t-=170]})(t,e)}function Tc(t,e,s){let i=t;if(e+s<i.length){for(;s--;)if(128!=(192&i[++e]))return!1;return!0}return!1}function kc(){const t=["6701575ElZrUB","push","16456644obwNPq","665RLnHQg","78576ZQQIit","4627672yTItEl","fromCharCode","488896fKZxFJ","length","2svGNzG","670301qRYYol","2352834cVfawZ"];return(kc=function(){return t})()}function _c(t){const e=Ic;let s=[],i=t,r=0,n=t[e(179)];for(;r<n;)if(i[r]<128)s.push(String[e(177)](i[r])),++r;else{if(i[r]<192);else if(i[r]<224){if(Tc(i,r,1)){let t=(31&i[r])<<6|63&i[r+1];if(t>=128){s.push(String.fromCharCode(65535&t)),r+=2;continue}}}else if(i[r]<240){if(Tc(i,r,2)){let t=(15&i[r])<<12|(63&i[r+1])<<6|63&i[r+2];if(t>=2048&&55296!=(63488&t)){s[e(172)](String[e(177)](65535&t)),r+=3;continue}}}else if(i[r]<248&&Tc(i,r,3)){let t=(7&i[r])<<18|(63&i[r+1])<<12|(63&i[r+2])<<6|63&i[r+3];if(t>65536&&t<1114112){t-=65536,s.push(String[e(177)](t>>>10|55296)),s[e(172)](String[e(177)](1023&t|56320)),r+=4;continue}}s[e(172)](String[e(177)](65533)),++r}return s.join("")}function Cc(){const t=["82873HKxnAu","591364QeKuHQ","getInt16","parseValue","toString","parseDate","10574729twCxNh","push","size","Unsupported AMF value type ","374780abUstH","parseString","name","parseScriptData","value","objectEnd","6Cqrede","parseVariable","parseObject","330554vaDBvK","getFloat64","data","getUint16","getUint32","setInt16","10gvyMXE","getUint8","3954tZKZSf","2095RnsmEd","error","1673145lZRLzr","AMF","8xKsdSI"];return(Cc=function(){return t})()}!function(t,e){const s=Ic,i=t();for(;;)try{if(714928===parseInt(s(181))/1*(parseInt(s(180))/2)+-parseInt(s(170))/3+-parseInt(s(176))/4+parseInt(s(171))/5+parseInt(s(175))/6*(-parseInt(s(174))/7)+parseInt(s(178))/8+parseInt(s(173))/9)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(kc);const Rc=Dc;function Dc(t,e){const s=Cc();return(Dc=function(t,e){return s[t-=148]})(t,e)}!function(t,e){const s=Dc,i=t();for(;;)try{if(174767===parseInt(s(180))/1+-parseInt(s(166))/2+parseInt(s(163))/3*(-parseInt(s(148))/4)+-parseInt(s(175))/5*(parseInt(s(174))/6)+parseInt(s(157))/7+parseInt(s(179))/8*(-parseInt(s(177))/9)+-parseInt(s(172))/10*(-parseInt(s(153))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Cc);let Lc=function(){const t=Dc;let e=new ArrayBuffer(2);return new DataView(e)[t(171)](0,256,!0),256===new Int16Array(e)[0]}();class xc{static[Rc(160)](t,e,s){const i=Rc;let r={};try{let n=xc[i(150)](t,e,s),o=xc[i(150)](t,e+n[i(155)],s-n[i(155)]);r[n[i(168)]]=o[i(168)]}catch(t){console[i(176)](i(178),t[i(151)]())}return r}static[Rc(165)](t,e,s){const i=Rc;let r=xc.parseString(t,e,s),n=xc[i(150)](t,e+r[i(155)],s-r[i(155)]),o=n[i(162)];return{data:{name:r[i(168)],value:n[i(168)]},size:r[i(155)]+n[i(155)],objectEnd:o}}static[Rc(164)](t,e,s){return xc[Rc(165)](t,e,s)}static[Rc(158)](t,e,s){const i=Rc;let r,n=new DataView(t,e,s)[i(169)](0,!Lc);return r=n>0?_c(new Uint8Array(t,e+2,n)):"",{data:r,size:2+n}}static parseLongString(t,e,s){const i=Rc;let r,n=new DataView(t,e,s)[i(170)](0,!Lc);return r=n>0?_c(new Uint8Array(t,e+4,n)):"",{data:r,size:4+n}}static[Rc(152)](t,e,s){const i=Rc;let r=new DataView(t,e,s),n=r.getFloat64(0,!Lc);return n+=60*r[i(149)](8,!Lc)*1e3,{data:new Date(n),size:10}}static[Rc(150)](t,e,s){const i=Rc;let r,n=new DataView(t,e,s),o=1,a=n[i(173)](0),h=!1;try{switch(a){case 0:r=n[i(167)](1,!Lc),o+=8;break;case 1:r=!!n[i(173)](1),o+=1;break;case 2:{let n=xc.parseString(t,e+1,s-1);r=n[i(168)],o+=n[i(155)];break}case 3:{r={};let a=0;for(9==(16777215&n[i(170)](s-4,!Lc))&&(a=3);o<s-4;){let n=xc[i(165)](t,e+o,s-o-a);if(n.objectEnd)break;r[n[i(168)].name]=n.data[i(161)],o+=n[i(155)]}if(o<=s-3){9===(16777215&n[i(170)](o-1,!Lc))&&(o+=3)}break}case 8:{r={},o+=4;let a=0;for(9==(16777215&n[i(170)](s-4,!Lc))&&(a=3);o<s-8;){let n=xc[i(164)](t,e+o,s-o-a);if(n[i(162)])break;r[n[i(168)][i(159)]]=n[i(168)][i(161)],o+=n[i(155)]}if(o<=s-3){9===(16777215&n.getUint32(o-1,!Lc))&&(o+=3)}break}case 9:r=void 0,o=1,h=!0;break;case 10:{r=[];let a=n.getUint32(1,!Lc);o+=4;for(let n=0;n<a;n++){let n=xc[i(150)](t,e+o,s-o);r[i(154)](n[i(168)]),o+=n[i(155)]}break}case 11:{let n=xc[i(152)](t,e+1,s-1);r=n[i(168)],o+=n.size;break}case 12:{let n=xc[i(158)](t,e+1,s-1);r=n[i(168)],o+=n[i(155)];break}default:o=s,console.warn(i(178),i(156)+a)}}catch(t){console.error("AMF",t[i(151)]())}return{data:r,size:o,objectEnd:h}}}function Pc(t,e){const s=Mc();return(Pc=function(t,e){return s[t-=412]})(t,e)}function Bc(t){const e=Pc;return xc.parseScriptData(t[e(423)],t.byteOffset,t.byteLength)}function Mc(){const t=["G711A","AAC","2407288hwEdsR","6dgcFVv","139504JzGLBU","245324exnitF","buffer","MP3","G711U","82792obzGHJ","OPUS","1752443ONYKIj","2420095DNozxF","2437230TQjNXl"];return(Mc=function(){return t})()}!function(t,e){const s=Pc,i=t();for(;;)try{if(265988===parseInt(s(412))/1+parseInt(s(422))/2*(parseInt(s(420))/3)+-parseInt(s(421))/4+-parseInt(s(415))/5+parseInt(s(416))/6+-parseInt(s(414))/7+parseInt(s(419))/8)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Mc);const Fc=Oc;function Oc(t,e){const s=Nc();return(Oc=function(t,e){return s[t-=107]})(t,e)}!function(t,e){const s=Oc,i=t();for(;;)try{if(371056===-parseInt(s(249))/1*(-parseInt(s(152))/2)+parseInt(s(294))/3*(-parseInt(s(161))/4)+parseInt(s(355))/5+parseInt(s(322))/6*(-parseInt(s(296))/7)+-parseInt(s(343))/8*(-parseInt(s(373))/9)+parseInt(s(299))/10*(parseInt(s(313))/11)+-parseInt(s(336))/12*(parseInt(s(311))/13))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Nc);class Uc{constructor(t){const e=Oc;this[e(374)]=t,this[e(222)]=e(360),this[e(395)]=null,this[e(238)]=null,this[e(243)]=null;let s=t[e(368)][e(107)];if(this[e(169)]=null,this[e(242)]=!1,this[e(344)]=!1,ci(this[e(374)][e(368)].useWasm)?s=this.player[e(368)][e(230)]?this[e(374)][e(368)].mseDecodeAudio||ci(this.player[e(368)].hasAudio)?t[e(368)][e(224)]:t._opt[e(356)]:t[e(368)][e(197)]:this.player[e(368)][e(376)]&&(s=t[e(368)][e(163)]),this.decoderUrl=s,0===s[e(178)]("http")&&this[e(374)][e(368)].isDecoderUseCDN){const t=new Blob(['importScripts("'+s+'")'],{type:e(181)});s=window.URL.createObjectURL(t),this[e(243)]=s,this[e(238)]=setTimeout((()=>{const t=e;window[t(165)].revokeObjectURL(this[t(243)]),this[t(243)]=null,this.workerClearTimeout=null}),T)}this.decoderWorker=new Worker(s),this[e(309)](),this[e(302)](),t.debugLog(e(360),e(307)+this[e(225)]),t.on(M[e(175)],(()=>{const s=e;this.updateWorkConfig({key:s(341),value:t.visibility})}))}destroy(){return new Promise(((t,e)=>{const s=Oc;if(this[s(344)]=!0,this.player[s(292)])if(this[s(374)][s(216)](s(360),"has loaded and post message to destroy"),this[s(360)]){const e={};this[s(374)][s(329)]()&&(e[s(159)]=this[s(374)][s(340)]()),this[s(360)][s(308)]({cmd:x.close,options:e}),this[s(395)]=t,this[s(191)](),this[s(169)]=setTimeout((()=>{const e=s;this[e(374)][e(337)](e(360),e(154)),this[e(187)](),setTimeout((()=>{t()}),0)}),2e3)}else this[s(374)][s(337)](s(360),s(108)),this._destroy(),setTimeout((()=>{t()}),0);else this[s(374)][s(216)](s(360),s(295)),this._destroy(),setTimeout((()=>{t()}),0)}))}[Fc(126)](){return this[Fc(344)]}[Fc(188)](){return this[Fc(242)]}_destroy(){const t=Fc;this[t(191)](),this[t(243)]&&(window[t(165)][t(288)](this.workerUrl),this[t(243)]=null),this.workerClearTimeout&&(clearTimeout(this[t(238)]),this.workerClearTimeout=null),this[t(360)]&&(this[t(360)][t(204)](),this.decoderWorker.onerror=null,this[t(360)].onmessageerror=null,this[t(360)].onmessage=null,this[t(360)]=null),this[t(374)].debugLog(t(360),t(167)),this[t(395)]&&(this[t(395)](),this[t(395)]=null),this[t(242)]=!0,this[t(344)]=!1}_listenPlaybackEvents(){const t=Fc;this.player[t(271)]()&&(this[t(374)][t(216)](this[t(222)],t(281)),this[t(374)].on(M[t(221)],(e=>{this[t(140)](e)})))}[Fc(309)](){const t=Fc;this[t(374)],this[t(360)][t(276)]=e=>{const s=t,i=e[s(331)]||"",r=e[s(142)]||"",n=i&&(-1!==i[s(178)](s(323))||-1!==i[s(178)](s(255))),o=i&&-1!==i[s(178)](s(339));n&&o&&-1!==r[s(178)](_t[s(342)])?this[s(374)][s(216)](s(360),s(264)+i+s(277)+r,e):(this[s(374)][s(145)](s(360),s(109)+this[s(225)]+", and filename: "+i+s(277)+r,e),n?this[s(374)][s(274)](U[s(379)],"filename: "+i+",message: "+r):this[s(374)][s(274)](U[s(127)],"filename: "+i+s(277)+r))},this.decoderWorker[t(220)]=e=>{const s=t;this.player.debugError("decoderWorker",s(220),e)},this[t(360)][t(156)]=e=>{const s=t,i=e[s(305)];switch(i.cmd){case R[s(312)]:this.player.debugLog(s(360),s(318),R[s(312)]),this[s(360)]&&this[s(202)](),!this[s(374)][s(292)]&&this[s(374)][s(166)](M[s(287)]),this[s(374)][s(166)](M[s(205)]);break;case R[s(244)]:this.player[s(216)]("decoderWorker","onmessage:",R.videoCode,i[s(310)]),!this[s(374)][s(348)][s(380)]&&(this[s(374)][s(348)][s(380)]=je()),this[s(374)].video[s(251)]({encTypeCode:i[s(310)]});break;case R.videoCodec:this.player[s(216)](s(360),s(318),R.videoCodec,i[s(253)]),this.player[s(289)]&&this[s(374)].recorder[s(157)](i[s(352)],i[s(253)]),this.player[s(110)][s(251)]({encTypeCode:i[s(253)]});break;case R.audioCode:this[s(374)][s(216)](s(360),s(318),R[s(280)],i[s(310)]),this[s(374)].audio&&this[s(374)][s(177)][s(262)]({encTypeCode:i[s(310)]});break;case R[s(153)]:this[s(374)][s(216)](s(360),s(318),R[s(153)]),this[s(374)][s(289)]&&this[s(374)][s(289)][s(217)](i.buffer);break;case R[s(218)]:if(this[s(374)][s(216)](s(360),"onmessage:",R[s(218)],s(233)+i.w+s(135)+i.h),ys(i.w)||ys(i.h))return void this[s(374)].emitError(U[s(116)],s(268)+i.w+s(325)+i.h+s(387));if(this[s(374)][s(110)][s(117)](),this[s(374)].video[s(251)]({width:i.w,height:i.h}),!(this[s(374)][s(368)].openWebglAlignment||zs(i.w)||this[s(374)][s(358)]()!==X[s(122)]&&this[s(374)].getCanvasRenderType()!==X[s(250)]))return void this[s(374)][s(274)](U[s(316)]);this[s(374)][s(110)][s(194)](),this.player[s(173)]()?(this[s(374)].video[s(211)](),this[s(374)][s(110)][s(138)]()):this[s(374)][s(347)]();break;case R.initAudio:if(this[s(374)][s(216)]("decoderWorker","onmessage:",R[s(335)],s(357)+i[s(314)]+s(172)+i[s(155)]),i.channels>2)return void this.player[s(274)](U[s(148)],s(362)+i[s(314)]+", max is 2");this[s(374)][s(177)]&&(this[s(374)][s(177)][s(262)](i),this[s(374)][s(368)][s(327)]===c.player?this[s(374)].audio[s(248)]():this[s(374)]._opt[s(327)]===c[s(223)]?this.player.audio[s(248)]():this.player[s(347)]()&&this[s(374)][s(177)].initScriptNode());break;case R[s(114)]:if(this.player[s(389)]())return;if(!this[s(374)][s(110)])return void this[s(374)][s(337)]("decoderWorker",s(158));if(this[s(374)][s(252)]()){if(ci(this.player.video[s(247)]()))return void this.player[s(337)](s(360),s(260));this[s(374)].video[s(114)](i),this[s(374)][s(179)](),this.player[s(166)](M[s(203)],i.ts),this[s(374)][s(390)]({dfps:!0,buf:i.delay}),!this[s(374)]._times.videoStart&&(this[s(374)]._times[s(144)]=je(),this[s(374)][s(192)]())}else if(this.player[s(173)]())this[s(374)][s(390)]({dfps:!0}),ci(this.player.playbackPause)?(this.player.playback.isUseLocalCalculateTime&&this[s(374)].playback[s(364)](),this[s(374)][s(333)].isUseFpsRender?this[s(374)][s(110)][s(332)](i):this[s(374)].video.render$2(i)):this[s(374)].playback[s(392)]()&&this[s(374)].playback[s(198)]&&this[s(374)][s(110)][s(332)](i);else if(this[s(374)].isPlayVod())if(this[s(374)][s(121)][s(214)]()){const t=this.player.playVod[s(286)];Math[s(350)](i.ts-t)<500&&(this[s(374)][s(121)][s(128)](),this[s(374)][s(390)]({dfps:!0}),this.player.video.render$2(i))}else this.player.updateStats({dfps:!0}),this[s(374)].video.render$2(i);break;case R[s(266)]:this[s(374)][s(289)]&&this.player[s(289)].isRecording&&this.player[s(368)][s(137)]===l[s(235)]&&this[s(374)][s(289)][s(123)](i[s(352)],i[s(254)],i.ts,i[s(245)]);break;case R[s(228)]:this[s(374)][s(289)]&&this[s(374)].recorder.isRecording&&this.player[s(368)][s(137)]===l[s(235)]&&this[s(374)][s(289)][s(375)]()&&this[s(374)].recorder[s(136)](i[s(352)],i.ts);break;case R[s(232)]:const{webcodecsDecoder:t,mseDecoder:e}=this[s(374)];this.player[s(390)]({buf:i[s(275)]});const r=new Uint8Array(i[s(272)]);this[s(374)][s(368)].useWCS&&!this[s(374)][s(368)][s(239)]?t[s(146)](r,i.ts,i[s(254)],i.cts):this[s(374)][s(368)][s(278)]&&e.decodeVideo(r,i.ts,i.isIFrame,i[s(245)]);break;case R.audioPayload:if(this[s(374)][s(368)][s(278)]){const t=new Uint8Array(i[s(272)]);this[s(374)][s(361)][s(118)](t,i.ts,i[s(245)])}break;case R[s(201)]:if(this.player.isDestroyedOrClosed())return;if(!this[s(374)][s(177)])return void this[s(374)][s(337)](s(360),s(209));if(this[s(374)][s(139)]&&this[s(374)][s(177)]||!this.player[s(110)])if(!this[s(374)][s(368)][s(168)]&&this[s(374)].handleRender(),this[s(374)][s(368)].playType===c.player)this[s(374)][s(177)][s(301)](i[s(352)],i.ts);else if(this.player._opt[s(327)]===c.playbackTF)ci(this.player.playbackPause)?this[s(374)][s(177)][s(301)](i[s(352)],i.ts):this.player[s(333)][s(392)]()&&this.player[s(333)][s(198)]&&this[s(374)][s(177)][s(301)](i.buffer,i.ts);else if(this[s(374)][s(347)]()&&ci(this[s(374)].playVodPause)){if(this[s(374)][s(121)][s(214)]())return;this[s(374)].audio[s(301)](i[s(352)],i.ts)}break;case R[s(393)]:if(i[s(229)]===M[s(298)])this[s(374)][s(227)]?this.player[s(227)][s(166)](M[s(298)]):this.player[s(337)](s(360),s(213));else if(i.type===M[s(370)])this[s(374)][s(166)](M.kBps,(i[s(210)]/1024)[s(212)](2));else if(i[s(229)]===M[s(182)])this[s(374)]?(i.value===h[s(186)]&&this.player[s(166)](M[s(304)],i[s(330)]),this[s(374)][s(166)](M[s(182)],i[s(330)])):this[s(374)][s(337)]("decoderWorker",s(193));else if(i[s(229)]===M[s(324)])this[s(374)][s(185)]();else if(i.type===U[s(215)])this[s(374)][s(274)](U.websocketError,i[s(210)]);else if(i[s(229)]===U[s(183)])this[s(374)]&&this[s(374)][s(227)]?this.player[s(227)][s(166)](U[s(183)],i.msg):this.player[s(337)](s(360),s(129));else if(i.type===U[s(246)])this[s(374)]&&this[s(374)][s(227)]?this[s(374)][s(227)][s(166)](U.fetchError,i[s(210)]):this[s(374)][s(337)](s(360),s(317));else if(i[s(229)]===U.fetchErrorWorker)this[s(374)][s(274)](U[s(246)],i[s(210)]);else if(i[s(229)]===M[s(257)])this.player.updateStats({abps:i[s(210)]});else if(i[s(229)]===M[s(190)])!this.player._times[s(236)]&&(this.player[s(348)][s(236)]=je()),this.player.updateStats({vbps:i[s(210)]});else if(i[s(229)]===M.streamDts)this[s(374)][s(390)]({dts:i.value});else if(i.type===M[s(132)])this[s(374)][s(390)]({netBuf:i.value});else if(i.type===M[s(394)])this[s(374)].emit(M[s(394)],i[s(210)]);else if(i[s(229)]===M.streamStats){const t=JSON[s(297)](i[s(210)]);this[s(374)].updateStats({workerStats:t})}else i.type===M[s(363)]&&this[s(374)][s(166)](M[s(363)]);break;case R[s(125)]:this[s(374)]&&(this[s(374)][s(134)]=i[s(210)]);break;case R[s(372)]:this.player&&this.player[s(390)]({isDropping:!0});break;case R.checkFirstIFrame:this[s(374)][s(124)]();break;case R[s(241)]:this[s(374)]&&this.player.video&&this.player[s(110)][s(207)](i[s(210)]);break;case R[s(353)]:this[s(374)][s(274)](U[s(353)],i.value);break;case R.wasmWidthOrHeightChange:this[s(374)][s(274)](U[s(320)],i[s(210)]);break;case R[s(359)]:this.player[s(274)](U[s(359)]);break;case R[s(300)]:this[s(374)][s(216)](s(360),s(318),R[s(300)]),Si()&&(this.player[s(167)](),console[s(160)](decodeURIComponent(Kt)),alert(decodeURIComponent(Ht)),window.location[s(326)]());break;case R.closeEnd:this[s(374)][s(216)](s(360),s(318),R[s(237)]),this[s(187)]();break;case R[s(133)]:this[s(374)]&&this[s(374)][s(369)](i[s(352)]);break;case R[s(112)]:this[s(374)]&&this[s(374)][s(366)]({ts:i.ts,data:new Uint8Array(i[s(352)])});break;case R.flvScriptData:if(this.player){if(this[s(374)].isRecordTypeFlv()){const t=new Uint8Array(i.buffer);this[s(374)][s(289)][s(120)](t)}const t=Bc(new Uint8Array(i[s(352)]));t&&t[s(270)]&&this[s(374)].updateMetaData(t[s(270)])}break;case R[s(195)]:if(this[s(374)]&&this.player.isRecordTypeFlv()){const t=new Uint8Array(i[s(352)]);this[s(374)][s(289)][s(267)](t,i.ts)}break;case R[s(226)]:if(this[s(374)]&&this[s(374)][s(256)]()){const t=new Uint8Array(i[s(352)]);this.player[s(289)].addVideoSequenceHeader(t,i.ts)}break;case R[s(174)]:if(this[s(374)]&&this.player[s(256)]()&&this[s(374)][s(263)]){const t=new Uint8Array(i[s(352)]);i[s(229)]===D[s(110)]?this[s(374)][s(289)][s(147)](t,i.ts):i.type===D.audio&&this[s(374)][s(289)][s(171)](t,i.ts)}break;case R.mseHandle:this.player&&(this.player[s(216)](s(360),"onmessage:",R[s(279)]),this[s(374)][s(110)][s(384)][s(151)]=i.mseHandle);break;case R.mseFirstRenderTime:this[s(374)]&&(this[s(374)][s(216)]("decoderWorker","onmessage:",R.mseFirstRenderTime,i[s(210)]),this.player[s(111)][s(141)]=Number(i[s(210)]));break;case R[s(115)]:this[s(374)]&&(this[s(374)][s(216)](s(360),s(318),R[s(115)],i[s(210)],i.msg),this.player[s(274)](i.value,i[s(330)]));break;case R[s(208)]:this[s(374)]&&(this.player[s(216)](this.TAG_NAME,s(318),R[s(208)]),this[s(374)][s(274)](U.notSupportNewWasm));break;case R[s(382)]:this[s(374)]&&(this[s(374)][s(216)](this.TAG_NAME,s(318),R.failedToAsynchronouslyPrepareWasm),this[s(374)].emitError(U[s(382)]));break;case R[s(378)]:this.player&&this.player[s(166)](M[s(378)],i[s(210)]);break;default:this[s(374)][i.cmd]&&this.player[i[s(196)]](i)}}}[Fc(202)](){const t=Fc,e={debug:this[t(374)]._opt.debug,debugLevel:this[t(374)][t(368)].debugLevel,debugUuid:this[t(374)][t(368)][t(321)],useOffscreen:this.player._opt.useOffscreen,useWCS:this[t(374)][t(368)].useWCS,useMSE:this[t(374)]._opt[t(278)],videoBuffer:this[t(374)][t(368)][t(162)],videoBufferDelay:this.player[t(368)][t(354)],openWebglAlignment:this[t(374)][t(368)].openWebglAlignment,playType:this.player[t(368)][t(327)],hasAudio:this[t(374)][t(368)][t(371)],hasVideo:this.player[t(368)][t(168)],playbackRate:1,playVodRate:1,playbackFps:this[t(374)][t(368)][t(131)][t(259)],playbackAutoCalcFps:this[t(374)]._opt[t(131)].autoCalcFps,playbackForwardMaxRateDecodeIFrame:this[t(374)][t(368)][t(170)],playbackIsCacheBeforeDecodeForFpsRender:this[t(374)][t(368)][t(131)].isCacheBeforeDecodeForFpsRender,sampleRate:this[t(374)][t(177)]&&this[t(374)].audio[t(176)]&&this[t(374)][t(177)][t(176)][t(155)]||Ot,audioBufferSize:this[t(374)][t(177)]&&this.player[t(177)].getAudioBufferSize()||1024,networkDelay:this[t(374)]._opt[t(283)],visibility:this[t(374)][t(341)],useSIMD:this[t(374)][t(368)].useSIMD,recordType:this[t(374)][t(368)][t(137)],checkFirstIFrame:this[t(374)][t(368)][t(381)],isM7sCrypto:this[t(374)][t(368)][t(291)],isXorCrypto:this[t(374)]._opt[t(265)],isSm4Crypto:this.player[t(368)].isSm4Crypto,isSm4CryptoH265V2:this[t(374)]._opt[t(367)],sm4CryptoKey:this[t(374)][t(368)][t(130)],isCryptoAudio:this[t(374)]._opt[t(349)],isFlv:this[t(374)][t(368)].isFlv,isFmp4:this[t(374)][t(368)][t(273)],isMpeg4:this[t(374)][t(368)].isMpeg4,isTs:this.player[t(368)][t(290)],isNakedFlow:this[t(374)][t(368)][t(150)],isHls265:this[t(374)].isUseHls265(),isEmitSEI:this[t(374)][t(368)][t(282)],isRecordTypeFlv:this[t(374)][t(256)](),isWasmMp4:this[t(374)][t(289)]&&this[t(374)][t(289)][t(375)]()||!1,isChrome:Os(),isFirefox:$e(),supportMSEDecodeHevc:ps(),isDropSameTimestampGop:this[t(374)]._opt.isDropSameTimestampGop,mseDecodeAudio:this[t(374)]._opt[t(113)],wcsDecodeAudio:this[t(374)][t(368)][t(385)],nakedFlowH265DemuxUseNew:this[t(374)]._opt[t(365)],mseDecoderUseWorker:this[t(374)][t(368)][t(180)],mseAutoCleanupMinBackwardDuration:this[t(374)][t(368)][t(334)],mseAutoCleanupMaxBackwardDuration:this[t(374)][t(368)][t(351)],mseCorrectTimeDuration:this[t(374)][t(368)][t(234)],mseCorrectAudioTimeDuration:this[t(374)][t(368)][t(285)],nakedFlowDemuxUseNew:this[t(374)]._opt[t(293)],nakedFlowFps:this[t(374)]._opt[t(240)],checkStreamEnd:this[t(374)][t(269)](),websocketOpenTimeout:this[t(374)][t(368)][t(183)]};this[t(360)][t(308)]({cmd:x.init,opt:JSON[t(303)](e)}),this[t(374)][t(368)][t(200)]&&this.player[t(368)][t(200)][t(258)]>0&&this[t(374)][t(368)].cryptoIV&&this[t(374)][t(368)].cryptoIV[t(258)]>0&&(this[t(164)]({key:t(200),value:this.player._opt[t(200)]}),this[t(164)]({key:"cryptoIV",value:this[t(374)][t(368)][t(184)]}))}[Fc(146)](t,e,s){const i=Fc;this[i(374)][i(252)]()?this[i(391)](t,e,s):this[i(374)][i(173)]()?this[i(374)].isPlaybackOnlyDecodeIFrame()?s&&this[i(391)](t,e,s):this[i(391)](t,e,s):this[i(374)].isPlayVod()&&this[i(391)](t,e,s)}[Fc(149)](t,e,s){const i=Fc,r={type:D[i(110)],ts:Math[i(345)](e,0),isIFrame:s};this[i(360)].postMessage({cmd:x[i(119)],buffer:t,options:r},[t[i(352)]])}[Fc(391)](t,e,s){const i=Fc;this[i(360)][i(308)]({cmd:x[i(346)],buffer:t,ts:Math[i(345)](e,0),isIFrame:s},[t[i(352)]])}[Fc(118)](t,e){const s=Fc;this[s(374)].isPlayer()?this[s(231)](t,e):this[s(374)][s(173)]()?this[s(374)][s(261)]()||this[s(231)](t,e):this.player[s(347)]()&&this._decodeAudioNoDelay(t,e)}[Fc(377)](t,e){const s=Fc,i={type:D.audio,ts:Math[s(345)](e,0)};this[s(360)][s(308)]({cmd:x.decode,buffer:t,options:i},[t.buffer])}[Fc(231)](t,e){const s=Fc;this[s(360)][s(308)]({cmd:x[s(328)],buffer:t,ts:Math[s(345)](e,0)},[t[s(352)]])}[Fc(164)](t){const e=Fc;this.decoderWorker&&this.decoderWorker[e(308)]({cmd:x[e(206)],key:t[e(189)],value:t[e(210)]})}workerFetchStream(t){const e=Fc;let s=arguments[e(306)]>1&&void 0!==arguments[1]?arguments[1]:{};const{_opt:i}=this.player;let r=[];s[e(319)]&&(r=s[e(319)],delete s[e(319)]);const n={protocol:i[e(315)],isFlv:i[e(143)],isFmp4:i[e(273)],isMpeg4:i[e(386)],isNakedFlow:i.isNakedFlow,isTs:i.isTs,options:s};this[e(360)].postMessage({cmd:x.fetchStream,url:t,protocols:r,opt:JSON[e(303)](n)})}[Fc(338)](){const t=Fc;let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this[t(360)][t(308)]({cmd:x[t(383)],needClear:e})}workerSendMessage(t){const e=Fc;this[e(360)][e(308)]({cmd:x[e(388)],message:t})}[Fc(219)](t){const e=Fc;this[e(360)][e(308)]({cmd:x[e(199)],message:t})}[Fc(140)](t){const e=Fc;this[e(360)][e(308)]({cmd:x[e(284)],isPause:t})}[Fc(191)](){const t=Fc;this[t(169)]&&(clearTimeout(this[t(169)]),this[t(169)]=null)}}function Nc(){const t=["isPlaybackOnlyDecodeIFrame","updateAudioInfo","recording","onerror and ignore filename: ","isXorCrypto","videoNalu","addAACSequenceHeader","video width ","isCheckStreamEnd","onMetaData","isPlaybackPauseNotClearCacheAndCacheBeforeDecodeAndUseFpsRender","payload","isFmp4","emitError","delay","onerror",",message: ","useMSE","mseHandle","audioCode","listenPlaybackEvents","isEmitSEI","networkDelay","playbackIsPause","mseCorrectAudioTimeDuration","seekingTimestamp","load","revokeObjectURL","recorder","isTs","isM7sCrypto","loaded","nakedFlowDemuxUseNew","12TxPhaK","has not loaded and destroy directly","7GrineX","parse","streamSuccess","1400RBSWKa","workerEnd","play","_listenPlaybackEvents","stringify","websocketClose","data","length","init and decoder url is ","postMessage","_initDecoderWorker","code","12826554kBUkzh","init","5511KiwsKz","channels","protocol","webglAlignmentError","onmessage and workerFetch response fetch error but stream is null","onmessage:","protocols","wasmWidthOrHeightChange","debugUuid","3009768reDFPc",".wasm","streamEndInner"," or height ","reload","playType","audioDecode","isMseDecoderUseWorker","msg","filename","pushData","playback","mseAutoCleanupMinBackwardDuration","initAudio","12EgzxTG","debugWarn","clearWorkBuffer","decoder-pro-audio.wasm","isMseVideoStateInited","visibility","memoryAccessOutOfBounds","106592NtsKbk","destroyLock","max","videoDecode","isPlayVod","_times","isCryptoAudio","abs","mseAutoCleanupMaxBackwardDuration","buffer","simdH264DecodeVideoWidthIsTooLarge","videoBufferDelay","2244215cpShaa","decoderHard","channels:","getCanvasRenderType","simdDecodeError","decoderWorker","mseDecoder","audio channel is ","websocketOpen","increaseLocalTimestamp","nakedFlowH265DemuxUseNew","emitVideoSei","isSm4CryptoH265V2","_opt","pushTempStream","streamRate","hasAudio","isDropping","477tSAczF","player","isWasmMp4","useOldWasm","_decodeAudio","websocketStringMsg","decoderWorkerWasmError","decodeStart","checkFirstIFrame","failedToAsynchronouslyPrepareWasm","clearBuffer","$videoElement","wcsDecodeAudio","isMpeg4"," is empty","sendWsMessage","isDestroyedOrClosed","updateStats","_decodeVideoNoDelay","isPlaybackPauseNotClearCacheAndCacheBeforeDecode","workerFetch","networkDelayTimeout","destroyResolve","decoder","has loaded but decoderWorker is null and destroy directly","onerror and decoder url is ","video","_mseWorkerData","videoSEI","mseDecodeAudio","render","mseError","videoInfoError","bindMediaStream","decodeAudio","decode","addMetaData","playVod","webgl","handleAddNaluTrack","decoderCheckFirstIFrame","iframeIntervalTs","isDestroying","decoderWorkerInitError","removeSeekingTimestamp","onmessage and workerFetch response websocketOpenTimeout but stream is null","sm4CryptoKey","playbackConfig","netBuf","tempStream","videoIframeIntervalTs",",height:","handleAddAudioTrack","recordType","initVideoDelay","playing","updatePlaybackIsPause","firstRenderTime","message","isFlv","videoStart","debugError","decodeVideo","addVideo","audioChannelError","_decodeVideo","isNakedFlow","srcObject","4586HBYvGn","audioAACSequenceHeader","send close but not response and destroy directly","sampleRate","onmessage","initMetaData","onmessage render but video is null","isVideoInited","error","51420MtDduY","videoBuffer","decoderOld","updateWorkConfig","URL","emit","destroy","hasVideo","decoderWorkerCloseTimeout","playbackForwardMaxRateDecodeIFrame","addAudio",",sampleRate:","isPlayback","flvBufferData","visibilityChange","audioContext","audio","indexOf","handleRender","mseDecoderUseWorker","application/javascript","streamEnd","websocketOpenTimeout","cryptoIV","updateStreamEndInner","websocket","_destroy","isDestroyed","key","streamVbps","_clearCloseTimeout","handlePlayToRenderTimes","onmessage and workerFetch response stream end but player is null","initCanvasViewSize","aacSequenceHeader","cmd","decoderAudio","isUseFpsRender","mseUpdateVideoTimestamp","cryptoKey","playAudio","_initWork","timeUpdate","terminate","decoderWorkerInit","updateConfig","setStreamFps","notSupportNewWasm","onmessage playAudio but audio is null","value","initFps","toFixed","onmessage and workerFetch response stream success but stream is null","isSeeking","websocketError","debugLog","initAudioAacExtraData","initVideo","updateVideoTimestamp","onmessageerror","playbackPause","TAG_NAME","playbackTF","decoderHardNotWasm","decoderUrl","videoSequenceHeader","stream","audioNalu","type","demuxUseWorker","_decodeAudioNoDelay","videoPayload","width:","mseCorrectTimeDuration","mp4","demuxStart","closeEnd","workerClearTimeout","useOffscreen","nakedFlowFps","playbackStreamVideoFps","_isDestroyed","workerUrl","videoCode","cts","fetchError","getHasInit","initScriptNode","299CfFkuX","webgl2","updateVideoInfo","isPlayer","codecId","isIFrame","wasm://","isRecordTypeFlv","streamAbps","byteLength","fps","onmessage render but video has not init"];return(Nc=function(){return t})()}const jc=Vc;function Vc(t,e){const s=zc();return(Vc=function(t,e){return s[t-=344]})(t,e)}function zc(){const t=["_decodeVideoNoDelay","decoder","simdH264DecodeVideoWidthIsTooLarge","code","init and decoder is ","playing","sampleRate",",height:","decoderWorker","updateStats","loaded","3405652ABjiiy","initVideo","location","audioChannelError","video width ","channels:","isDestroyedOrClosed","_handleSimdDecodeError","_handleAudioCode","emit","playbackTF","timeUpdate","_newDecoderWorker","buffer","270DTzazN","_listenPlaybackEvents","pushData","bind","isUseFpsRender","videoCode","initAudio","_initDecoderWorker","updateAudioInfo","wasmWidthOrHeightChange","initVideoDelay","updateVideoTimestamp","_handleSimdH264DecodeVideoWidthIsTooLarge","indexOf"," and mtType is ","_opt"," and decoder is not loaded next load it","recorder","abs","isDestroying","bindMediaStream","19467oVrfSd","windiwDecoderName","error","notSupportNewWasm","MtDecoderWorker","isPlayVod","play","destroy","render","isPlaybackOnlyDecodeIFrame","decoder-pro-f-simd-mt.js","load","_handlePlayAudio"," has loaded,init and decoder is ","workerFetchStream","removeSeekingTimestamp","onmessage render but video is null","reload"," and decoder is loaded","updateWorkConfig","_handleWasmWidthOrHeightChange","initFps","visibility","videoCodec","visibilityChange","46379TliYWN","_handleInitVideo","webgl2","init and window decoder name is ","handleRender","_decodeAudioNoDelay","_handleWorkerEnd"," and decoder is not loaded","playback","playType","debugError","playVodPause","script ","simd","video","TAG_NAME","62896vwIBhU","Decoder","isPlayer","simdDecodeError","_handleAudioAACSequenceHeader","playVod","debugLog","isUseLocalCalculateTime","initMetaData","videoStart","workerEnd","channels","_handleNotSupportNewWasm","getAudioBufferSize","_isDestroyed","checkInterval","176815lMVGxf"," is empty","onmessage:","fSimd","render$2","_handleVideoCodec","emitError","webglAlignmentError","delay","handlePlayToRenderTimes","playbackPause"," and decoderScriptId is ","_startCheckDecoder","isDestroyed","_stopCheckDecoder","_handleInitAudio","audioAACSequenceHeader","toString","increaseLocalTimestamp","hasVideo","JessibucaProMt","audio","codecId","_handleRender","2601KPKlxn","decoderWorkerInit","decoderScriptId","getCanvasRenderType","player","load decoder error ","initScriptNode","decodeVideo",", max is ","1925564CzfoTH","_handleVideoCode","updateVideoInfo","audioCode","debugWarn","initCanvasViewSize","webgl","70218brNyXZ","getElementById","init","onmessage playAudio but audio is null","_times",",sampleRate:","videoInfoError","decoderScript init ,has not load decoder and next start interval check","decodeAudio","isPlaybackPauseNotClearCacheAndCacheBeforeDecode","isSeeking","decodeStart","catch","_handleDecoderInit","isPlayback","audioContext"];return(zc=function(){return t})()}!function(t,e){const s=Vc,i=t();for(;;)try{if(548646===-parseInt(s(380))/1+-parseInt(s(445))/2+-parseInt(s(452))/3+-parseInt(s(479))/4+parseInt(s(412))/5+-parseInt(s(493))/6*(-parseInt(s(355))/7)+-parseInt(s(396))/8*(-parseInt(s(436))/9))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(zc);class Gc{constructor(t){const e=Vc;this[e(440)]=t,this.TAG_NAME=e(359),this[e(476)]=null,this.checkInterval=null,this[e(410)]=!1;let s=t._opt[e(469)],i=Gt.wasm;s[e(347)](e(365))>-1?i=Gt[e(415)]:s[e(347)]("decoder-pro-simd-mt.js")>-1&&(i=Gt[e(393)]);const r=e(432)+i+e(397);if(this.windiwDecoderName=r,this.decoderScriptId=r+"Id",this.player[e(402)](this[e(395)],"init and decoder window name is "+r+e(423)+this[e(438)]),r in window)this[e(491)](),this.player[e(402)](this[e(395)],e(472)+s+e(348)+i+e(373));else{document[e(453)](this[e(438)])?(this[e(440)][e(402)](this[e(395)],e(392)+this[e(438)]+e(368)+s+" and mtType is "+i+e(387)),r in window?this[e(491)]():(this[e(440)][e(402)](this[e(395)],e(459)),this._startCheckDecoder())):(this[e(440)][e(402)](this[e(395)],e(472)+s+e(348)+i+e(350)),(n=s,o=this[e(438)],new Promise(((t,e)=>{const s=oi,i=document[s(553)]("script");if(i[s(383)]="text/javascript",i[s(504)]=n,i[s(547)]=t,i.onerror=e,o){i.id=o;const t=document.getElementById(o);t&&document[s(366)][s(636)](t)}document[s(366)][s(593)](i)}))).then((()=>{const t=e;r in window?this._newDecoderWorker():(this[t(440)].debugLog(this[t(395)],"loadScript init , has not load decoder and next start interval check"),this._startCheckDecoder())}))[e(464)]((t=>{const s=e;this[s(440)][s(390)](this[s(395)],s(441)+t,t),this[s(440)][s(418)](U.decoderWorkerInitError,t[s(429)]())})))}var n,o;this[e(494)](),t.on(M[e(379)],(()=>{const s=e;this[s(374)]({key:s(377),value:t.visibility})}))}async[jc(362)](){const t=jc;this[t(426)](),this[t(476)]&&this.decoderWorker.destroy(),this[t(356)]=null,this[t(438)]=null,this[t(410)]=!0}_newDecoderWorker(){const t=jc;this[t(476)]=new(window[this[t(356)]])(this[t(440)],{sampleRate:this.player[t(433)]&&this[t(440)][t(433)][t(467)]&&this[t(440)][t(433)][t(467)][t(474)]||Ot,audioBufferSize:this.player[t(433)]&&this[t(440)].audio[t(409)]()||1024}),this[t(500)]()}[jc(424)](){const t=jc;this[t(411)]=setInterval((()=>{const e=t;this[e(356)]in window&&(this[e(440)].debugLog(this[e(395)],e(383)+this[e(356)]+e(373)),this[e(426)](),this[e(491)]())}),200)}[jc(426)](){this[jc(411)]&&(clearInterval(this.checkInterval),this.checkInterval=null)}[jc(353)](){return!1}[jc(425)](){return this._isDestroyed}[jc(494)](){}[jc(500)](){const t=jc;this[t(476)].on(R[t(454)],this[t(465)][t(496)](this)),this.decoderWorker.on(R[t(498)],this._handleVideoCode[t(496)](this)),this[t(476)].on(R[t(378)],this[t(417)][t(496)](this)),this.decoderWorker.on(R[t(448)],this._handleAudioCode[t(496)](this)),this.decoderWorker.on(R.audioAACSequenceHeader,this[t(400)].bind(this)),this[t(476)].on(R[t(480)],this[t(381)][t(496)](this)),this[t(476)].on(R[t(499)],this[t(427)].bind(this)),this.decoderWorker.on(R[t(363)],this._handleRender.bind(this)),this[t(476)].on(R.playAudio,this._handlePlayAudio[t(496)](this)),this.decoderWorker.on(R[t(470)],this._handleSimdH264DecodeVideoWidthIsTooLarge[t(496)](this)),this[t(476)].on(R[t(502)],this[t(375)][t(496)](this)),this[t(476)].on(R[t(399)],this[t(486)].bind(this)),this[t(476)].on(R[t(406)],this[t(386)].bind(this)),this.decoderWorker.on(R.notSupportNewWasm,this[t(408)][t(496)](this))}[jc(443)](t,e,s){const i=jc;this[i(440)][i(398)]()?this[i(468)](t,e,s):this[i(440)].isPlayback()?this.player[i(364)]()?s&&this._decodeVideoNoDelay(t,e,s):this[i(468)](t,e,s):this[i(440)][i(360)]()&&this._decodeVideoNoDelay(t,e,s)}[jc(468)](t,e,s){this[jc(476)].decodeVideo(t,e,s)}[jc(460)](t,e){const s=jc;this[s(440)][s(398)]()?this[s(385)](t,e):this.player[s(466)]()?this[s(440)][s(364)]()||this[s(385)](t,e):this[s(440)][s(360)]()&&this[s(385)](t,e)}_decodeAudioNoDelay(t,e){const s=jc;this[s(476)][s(460)](t,e)}[jc(374)](t){}[jc(369)](){}clearWorkBuffer(){}[jc(345)](){}[jc(465)](){const t=jc;this[t(440)][t(402)](this[t(395)],t(414),R.init),!this.player[t(478)]&&this[t(440)][t(488)](M[t(366)]),this[t(440)].emit(M[t(437)])}[jc(446)](t){const e=jc;this[e(440)].debugLog(this.TAG_NAME,e(414),R[e(498)],t[e(471)]),!this[e(440)]._times[e(463)]&&(this.player[e(456)][e(463)]=je()),this[e(440)][e(394)][e(447)]({encTypeCode:t[e(471)]})}[jc(417)](t){const e=jc;this[e(440)][e(402)](this[e(395)],e(414),R[e(378)],t[e(434)]),this[e(440)][e(351)]&&this[e(440)][e(351)][e(404)](t.buffer,t[e(434)]),this.player.video[e(447)]({encTypeCode:t[e(434)]})}[jc(487)](t){const e=jc;this.player[e(402)](this[e(395)],e(414),R.audioCode,t.code),this[e(440)].audio&&this[e(440)][e(433)][e(501)]({encTypeCode:t[e(471)]})}[jc(400)](t){const e=jc;this.player.debugLog(this[e(395)],e(414),R[e(428)]),this[e(440)].recorder&&this.player.recorder.initAudioAacExtraData(t.buffer)}[jc(381)](t){const e=jc;this[e(440)].debugLog(this[e(395)],e(414),R[e(480)],"width:"+t.w+e(475)+t.h),ys(t.w)||ys(t.h)?this.player.emitError(U[e(458)],e(483)+t.w+" or height "+t.h+e(413)):(this[e(440)].video[e(354)](),this.player[e(394)].updateVideoInfo({width:t.w,height:t.h}),this[e(440)][e(349)].openWebglAlignment||zs(t.w)||this.player[e(439)]()!==X[e(451)]&&this.player.getCanvasRenderType()!==X[e(382)]?(this[e(440)][e(394)][e(450)](),this[e(440)].isPlayback()?(this[e(440)][e(394)].initFps(),this.player.video[e(344)]()):this.player[e(360)]()&&(this.player[e(394)][e(376)](),this[e(440)][e(394)][e(344)]())):this[e(440)].emitError(U[e(419)]))}[jc(427)](t){const e=jc;this[e(440)][e(402)](this[e(395)],e(414),R[e(499)],e(484)+t.channels+e(457)+t.sampleRate),t[e(407)]>2?this[e(440)][e(418)](U[e(482)],"audio channel is "+t[e(407)]+e(444)+2):this[e(440)][e(433)]&&(this[e(440)][e(433)][e(501)](t),(this[e(440)][e(349)].playType===c[e(440)]||this.player[e(349)][e(389)]===c.playbackTF||this[e(440)][e(360)]())&&this[e(440)][e(433)][e(442)]())}[jc(435)](t){const e=jc;if(!this[e(440)].isDestroyedOrClosed())if(this[e(440)][e(394)]){if(this[e(440)][e(398)]()){if(ci(this[e(440)][e(394)].getHasInit()))return void this[e(440)][e(449)](this[e(395)],"onmessage render but video has not init");this.player[e(394)].render(t),this.player[e(384)](),this[e(440)][e(488)](M[e(490)],t.ts),this[e(440)][e(477)]({dfps:!0,buf:t[e(420)]}),!this[e(440)][e(456)][e(405)]&&(this[e(440)][e(456)][e(405)]=je(),this[e(440)][e(421)]())}else if(this[e(440)].isPlayback())this[e(440)][e(477)]({dfps:!0}),ci(this[e(440)][e(422)])?(this[e(440)].playback[e(403)]&&this.player[e(388)][e(430)](),this[e(440)].playback[e(497)]?this[e(440)][e(394)][e(495)](t):this[e(440)][e(394)].render$2(t)):this[e(440)].playback[e(461)]()&&this[e(440)].playback[e(497)]&&this[e(440)][e(394)][e(495)](t);else if(this.player[e(360)]())if(this[e(440)][e(401)].isSeeking()){const s=this[e(440)].playVod.seekingTimestamp;Math[e(352)](t.ts-s)<500&&(this[e(440)][e(401)][e(370)](),this[e(440)][e(477)]({dfps:!0}),this[e(440)][e(394)][e(416)](t))}else this.player.updateStats({dfps:!0}),this[e(440)].video[e(416)](t)}else this.player[e(449)](this.TAG_NAME,e(371))}[jc(367)](t){const e=jc;if(!this.player[e(485)]())if(this[e(440)][e(433)]){if(this[e(440)][e(473)]&&this[e(440)][e(433)]||!this[e(440)][e(394)])if(!this[e(440)][e(349)][e(431)]&&this[e(440)].handleRender(),this[e(440)]._opt[e(389)]===c[e(440)])this[e(440)][e(433)][e(361)](t[e(492)],t.ts);else if(this[e(440)][e(349)][e(389)]===c[e(489)])ci(this[e(440)][e(422)])?this[e(440)][e(433)][e(361)](t[e(492)],t.ts):this[e(440)][e(388)].isPlaybackPauseNotClearCacheAndCacheBeforeDecode()&&this[e(440)][e(388)][e(497)]&&this[e(440)].audio[e(361)](t[e(492)],t.ts);else if(this.player.isPlayVod()&&ci(this[e(440)][e(391)])){if(this[e(440)][e(401)][e(462)]())return;this[e(440)][e(433)][e(361)](t[e(492)],t.ts)}}else this[e(440)][e(449)](e(476),e(455))}[jc(346)](t){const e=jc;this.player[e(418)](U[e(470)],t)}[jc(375)](t){const e=jc;this[e(440)][e(418)](U[e(502)],t)}[jc(486)](){const t=jc;this.player[t(418)](U[t(399)])}[jc(386)](){const t=jc;this[t(440)][t(402)](this.TAG_NAME,t(414),R[t(406)]),Si()&&(this.player[t(362)](),console[t(357)](decodeURIComponent(Kt)),alert(decodeURIComponent(Ht)),window[t(481)][t(372)]())}[jc(408)](t){const e=jc;this[e(440)]&&(this[e(440)].debugLog(this.TAG_NAME,"onmessage:",R[e(358)]),this[e(440)][e(418)](U[e(358)]))}}var Wc=rl;!function(t,e){for(var s=rl,i=t();;)try{if(738799===parseInt(s(223))/1+-parseInt(s(202))/2*(parseInt(s(239))/3)+parseInt(s(266))/4*(-parseInt(s(249))/5)+parseInt(s(171))/6+-parseInt(s(240))/7+parseInt(s(186))/8*(parseInt(s(176))/9)+-parseInt(s(212))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(ml);var Hc,Kc=Wc(204),Qc=Wc(234),Yc=/^(?:text|application)\/xml/i,qc=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Jc=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Xc=/^\s*$/,Zc={},$c={},tl="",el={type:"GET",beforeSend:sl,success:sl,error:sl,complete:sl,context:null,xhr:function(){return new(window[Wc(195)])},accepts:{json:Kc,xml:"application/xml, text/xml",html:Qc,text:"text/plain","*":"*/"[Wc(225)]("*")},crossDomain:!1,timeout:0,username:null,password:null,processData:!0,promise:sl,contentType:Wc(177)};function sl(){}var il=function(t,e){var s=Wc;"object"==typeof t&&(e=t,t=void 0);var i=ul({},e=e||{});for(var r in el)void 0===i[r]&&(i[r]=el[r]);try{var n={},o=new Promise((function(t,e){var s=rl;n.resolve=t,n[s(248)]=e}));o[s(187)]=n.resolve,o.reject=n[s(248)],i[s(247)]=o}catch(t){i[s(247)]={resolve:sl,reject:sl}}var a=Jc.exec(window[s(216)][s(194)][s(231)]())||[];i.url=((t||i.url||window.location[s(194)])+"")[s(260)](/#.*$/,"")[s(260)](/^\/\//,a[1]+"//");var h=i[s(236)];!i[s(261)]&&(i[s(261)]=/^([\w-]+:)?\/\/([^\/]+)/.test(i[s(236)])&&RegExp.$2!==window[s(216)][s(194)]);var c=i.dataType;if(c===s(272)){if(!/=\?/[s(213)](i[s(236)])){var l=(i[s(272)]||s(207))+"=?";i[s(236)]=cl(i[s(236)],l)}return function(t){var e,s=Wc,i=t[s(167)]||s(272)+gl(),r=window[s(229)][s(245)]("script"),n={abort:function(){i in window&&(window[i]=sl)}},o=window[s(229)][s(180)](s(174))[0]||window.document[s(271)];function a(i){var r=s;window[r(228)](e),n[r(183)](),al(i[r(263)],n,i[r(263)],t),h()}function h(){var t=s;r[t(224)]?r[t(224)]():r[t(241)]=r[t(166)]=r[t(255)]=null,r[t(270)]&&r[t(270)][t(165)](r),r=null,delete window[i]}return r.onerror=function(t){a(t)},window[i]=function(i){window[s(228)](e),nl(i,n,t),h()},ll(t),r[s(246)]=t[s(236)][s(260)](/=\?/,"="+i),r[s(246)]=cl(r[s(246)],"_="+(new Date).getTime()),r[s(232)]=!0,t[s(175)]&&(r[s(199)]=t[s(175)]),o[s(244)](r,o.firstChild),t.timeout>0&&(e=window[s(172)]((function(){var e=s;n[e(183)](),al(e(193),n,"timeout",t),h()}),t[s(193)])),t[s(247)].abort=function(){n.abort()},t[s(247)].xhr=n,t[s(247)]}(i)}ll(i);var d=i.accepts[c]||i[s(214)]["*"],u={};/^([\w-]+:)\/\//[s(213)](i.url)?RegExp.$1:window[s(216)][s(203)];var p,f=el[s(262)]();!i[s(261)]&&!u[s(253)]&&(u[s(253)]="XMLHttpRequest"),i[s(217)]&&(Zc[h]&&(u[s(242)]=Zc[h]),$c[h]&&(u[s(269)]=$c[h])),d&&(u[s(181)]=d,d[s(256)](",")>-1&&(d=d[s(257)](",",2)[0]),f.overrideMimeType&&f[s(184)](d));var m=!/^(?:GET|HEAD)$/[s(213)](i[s(263)][s(169)]());if((i.data&&m&&!1!==i[s(250)]||e[s(250)])&&(u[s(252)]=i[s(250)]),!1===i[s(237)]&&!m){var g=/([?&])_=[^&]*/;i[s(236)]=g[s(213)](h)?h[s(260)](g,s(197)+gl()):h+(/\?/[s(213)](h)?"&":"?")+"_="+gl()}i[s(190)]=ul(u,i[s(190)]||{}),f[s(166)]=function(){var t,e,r=s;if(4===f[r(230)]){clearTimeout(p);var n,o=!1;if(f[r(173)]>=200&&f[r(173)]<300||304===f[r(173)]){if(tl=f.getAllResponseHeaders(),i[r(217)]){var a=hl(r(222));a&&(Zc[h]=a),(a=hl(r(251)))&&($c[h]=a)}c=c||(t=f[r(219)](r(258)),e=Wc,t&&(t===Qc?e(198):t===Kc?e(209):Yc.test(t)&&e(210))||e(168)),n=f[r(264)];try{"xml"===c?n=f.responseXML:c===r(209)&&(n=Xc.test(n)?null:JSON[r(221)](n))}catch(t){o=t}o?al(o,r(200),f,i):nl(n,f,i)}else al(null,r(201),f,i)}};var A=!(s(232)in i)||i[s(232)];if(f[s(259)](i[s(263)],i[s(236)],A,i.username,i[s(265)]),i[s(243)])for(var y in i[s(243)])f[y]=i[s(243)][y];for(var y in i.mimeType&&f[s(184)]&&f[s(184)](i[s(178)]),i[s(190)])void 0!==i[s(190)][y]&&f[s(205)](y,i[s(190)][y]+"");return!1===function(t,e){var s=Wc,i=e[s(226)];if(!1===e[s(179)][s(188)](i,t,e))return!1}(f,i)?(f[s(183)](),!1):(i[s(193)]>0&&(p=window[s(172)]((function(){f[s(166)]=sl,f.abort(),al(null,"timeout",f,i)}),i[s(193)])),f[s(164)](i[s(235)]?i[s(235)]:null),i[s(247)][s(183)]=function(){f[s(183)]()},i.promise)};function rl(t,e){var s=ml();return(rl=function(t,e){return s[t-=164]})(t,e)}function nl(t,e,s){var i=Wc,r=s[i(226)],n=i(170);s.success[i(188)](r,t,n,e),s[i(247)][i(187)](t,n,e),ol(n,e,s)}function ol(t,e,s){var i=Wc,r=s.context;s[i(227)][i(188)](r,e,t)}function al(t,e,s,i){var r=Wc,n=i.context;i.error.call(n,s,e,t),i[r(247)][r(248)](s,e,t),ol(e,s,i)}function hl(t){var e,s=Wc;if(!Hc){for(Hc={};e=qc[s(192)](tl);)Hc[e[1].toLowerCase()]=e[2];e=Hc[t[s(231)]()]}return null===e?null:e}function cl(t,e){return(t+"&"+e).replace(/[&?]{1,2}/,"?")}function ll(t){var e,s,i,r,n=Wc;pl(t)&&!(t[n(235)]instanceof FormData)&&t[n(208)]&&(t.data=(e=t[n(235)],(r=[])[(i=Wc)(182)]=function(t,e){this[i(191)](encodeURIComponent(t)+"="+encodeURIComponent(e))},dl(r,e,s),r[i(254)]("&")[i(260)](i(189),"+"))),t[n(235)]&&(!t[n(263)]||"GET"===t[n(263)].toUpperCase())&&(t[n(236)]=cl(t[n(236)],t[n(235)]))}function dl(t,e,s,i){var r,n,o=Wc,a=(r=e,n=Wc,"[object Array]"===Object[n(233)][n(238)].call(r));for(var h in e){var c=e[h];i&&(h=s?i:i+"["+(a?"":h)+"]"),!i&&a?t[o(182)](c[o(220)],c[o(268)]):(s?a(c):pl(c))?dl(t,c,s,h):t[o(182)](h,c)}}function ul(t){for(var e=Wc,s=Array.prototype.slice,i=s[e(188)](arguments,1),r=0,n=i[e(196)];r<n;r++){var o=i[r]||{};for(var a in o)o[e(215)](a)&&void 0!==o[a]&&(t[a]=o[a])}return t}function pl(t){var e=typeof t;return"function"===e||e===Wc(185)&&!!t}function fl(t){return"function"==typeof t}function ml(){var t=["parseerror","error","2QQLwQZ","protocol","application/json, text/javascript","setRequestHeader","post","callback","processData","json","xml","getTime","11309850buTscM","test","accepts","hasOwnProperty","location","ifModified","POST","getResponseHeader","name","parse","Last-Modified","666271jSlZTX","clearAttributes","concat","context","complete","clearTimeout","document","readyState","toLowerCase","async","prototype","text/html","data","url","cache","toString","537843tVnqxg","4319350Mxxnyh","onload","If-Modified-Since","xhrFields","insertBefore","createElement","src","promise","reject","5FRzlUh","contentType","etag","Content-Type","X-Requested-With","join","onerror","indexOf","split","content-type","open","replace","crossDomain","xhr","type","responseText","password","1958452SQmytN","ajaxSetup","value","If-None-Match","parentNode","documentElement","jsonp","send","removeChild","onreadystatechange","jsonpCallback","text","toUpperCase","success","7151442YcLZzA","setTimeout","status","head","scriptCharset","233559geKLke","application/x-www-form-urlencoded; charset=UTF-8","mimeType","beforeSend","getElementsByTagName","Accept","add","abort","overrideMimeType","object","400PRVpdd","resolve","call","%20","headers","push","exec","timeout","href","XMLHttpRequest","length","$1_=","html","charset"];return(ml=function(){return t})()}function gl(){var t=Wc;return(new Date)[t(211)]()}il.get=function(t,e,s,i){return fl(e)&&(i=i||s,s=e,e=void 0),il({url:t,data:e,success:s,dataType:i})},il[Wc(206)]=function(t,e,s,i){var r=Wc;return fl(e)&&(i=i||s,s=e,e=void 0),il({type:r(218),url:t,data:e,success:s,dataType:i})},il.getJSON=function(t,e,s){var i=Wc;return fl(e)&&(s=e,e=void 0),il({url:t,data:e,success:s,dataType:i(209)})},il[Wc(267)]=function(t,e){return e?ul(ul(t,el),e):ul(el,t)};var Al=Ql;function yl(t){return parseInt(t)===t}function bl(t){var e=Ql;if(!yl(t[e(356)]))return!1;for(var s=0;s<t[e(356)];s++)if(!yl(t[s])||t[s]<0||t[s]>255)return!1;return!0}function vl(t,e){var s=Ql;if(t.buffer&&t[s(314)]===s(346))return e&&(t=t[s(291)]?t.slice():Array[s(351)][s(291)][s(308)](t)),t;if(Array[s(343)](t)){if(!bl(t))throw new Error(s(305)+t);return new Uint8Array(t)}if(yl(t[s(356)])&&bl(t))return new Uint8Array(t);throw new Error("unsupported array-like object")}function Sl(t){return new Uint8Array(t)}function wl(t,e,s,i,r){var n=Ql;(null!=i||null!=r)&&(t=t[n(291)]?t[n(291)](i,r):Array[n(351)].slice[n(308)](t,i,r)),e[n(349)](t,s)}!function(t,e){for(var s=Ql,i=t();;)try{if(509945===parseInt(s(321))/1*(parseInt(s(335))/2)+parseInt(s(301))/3+parseInt(s(350))/4*(-parseInt(s(303))/5)+parseInt(s(355))/6*(-parseInt(s(309))/7)+parseInt(s(345))/8+-parseInt(s(330))/9+parseInt(s(332))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Wl);var El,Il={toBytes:function(t){var e=Ql,s=[],i=0;for(t=encodeURI(t);i<t.length;){var r=t[e(296)](i++);37===r?(s[e(295)](parseInt(t[e(326)](i,2),16)),i+=2):s[e(295)](r)}return vl(s)},fromBytes:function(t){for(var e=Ql,s=[],i=0;i<t[e(356)];){var r=t[i];r<128?(s.push(String[e(290)](r)),i++):r>191&&r<224?(s[e(295)](String[e(290)]((31&r)<<6|63&t[i+1])),i+=2):(s[e(295)](String.fromCharCode((15&r)<<12|(63&t[i+1])<<6|63&t[i+2])),i+=3)}return s[e(327)]("")}},Tl=(El="0123456789abcdef",{toBytes:function(t){for(var e=[],s=0;s<t.length;s+=2)e.push(parseInt(t.substr(s,2),16));return e},fromBytes:function(t){for(var e=Ql,s=[],i=0;i<t[e(356)];i++){var r=t[i];s[e(295)](El[(240&r)>>4]+El[15&r])}return s[e(327)]("")}}),kl={16:10,24:12,32:14},_l=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],Cl=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],Rl=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],Dl=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],Ll=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],xl=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],Pl=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],Bl=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],Ml=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],Fl=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],Ol=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],Ul=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],Nl=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],jl=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],Vl=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function zl(t){for(var e=Ql,s=[],i=0;i<t[e(356)];i+=4)s.push(t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3]);return s}var Gl=function(t){var e=Ql;if(!(this instanceof Gl))throw Error(e(307));Object[e(353)](this,e(347),{value:vl(t,!0)}),this[e(298)]()};function Wl(){var t=["length","fromCharCode","slice","_Kd","_lastPrecipherIndex","PKCS#7 padding byte out of range","push","charCodeAt","encrypt","_prepare","ctr","_Ke","1514796NIXgiT","_aes","205LBRaiB","number","Array contains invalid value: ","invalid counter bytes size (must be 16 bytes)","AES must be instanitated with `new`","call","56UDzUhb","invalid key size (must be 16, 24 or 32 bytes)","Electronic Code Block","invalid ciphertext size (must be 16 bytes)","_remainingCounterIndex","name","_lastCipherblock","Counter","ofb","_shiftRegister","invalid plaintext size (must be 16 bytes)","ecb","205ClVZRM","description","PKCS#7 invalid length","integer value out of safe range","increment","substr","join","_counter","invalid counter value (must be an integer)","3857994IpXohx","Counter must be instanitated with `new`","1042660GRVWFx","cbc","invalid initialation vector size (must be 16 bytes)","9950tRisBs","invalid ciphertext size (must be multiple of 16 bytes)","setValue","_remainingCounter","segmentSize","setBytes","decrypt","Cipher Block Chaining","isArray","PKCS#7 invalid padding byte","622632mcwKzJ","Uint8Array","key","invalid plaintext size (must be multiple of 16 bytes)","set","49612dUZzXt","prototype","_lastPrecipher","defineProperty","cfb","194826BwfBWN"];return(Wl=function(){return t})()}Gl.prototype[Al(298)]=function(){var t=Al,e=kl[this.key[t(356)]];if(null==e)throw new Error(t(310));this[t(300)]=[],this[t(292)]=[];for(var s=0;s<=e;s++)this[t(300)][t(295)]([0,0,0,0]),this._Kd[t(295)]([0,0,0,0]);var i,r=4*(e+1),n=this[t(347)][t(356)]/4,o=zl(this[t(347)]);for(s=0;s<n;s++)i=s>>2,this[t(300)][i][s%4]=o[s],this._Kd[e-i][s%4]=o[s];for(var a,h=0,c=n;c<r;){if(a=o[n-1],o[0]^=Cl[a>>16&255]<<24^Cl[a>>8&255]<<16^Cl[255&a]<<8^Cl[a>>24&255]^_l[h]<<24,h+=1,8!=n)for(s=1;s<n;s++)o[s]^=o[s-1];else{for(s=1;s<n/2;s++)o[s]^=o[s-1];a=o[n/2-1],o[n/2]^=Cl[255&a]^Cl[a>>8&255]<<8^Cl[a>>16&255]<<16^Cl[a>>24&255]<<24;for(s=n/2+1;s<n;s++)o[s]^=o[s-1]}for(s=0;s<n&&c<r;)l=c>>2,d=c%4,this[t(300)][l][d]=o[s],this[t(292)][e-l][d]=o[s++],c++}for(var l=1;l<e;l++)for(var d=0;d<4;d++)a=this[t(292)][l][d],this[t(292)][l][d]=Ul[a>>24&255]^Nl[a>>16&255]^jl[a>>8&255]^Vl[255&a]},Gl[Al(351)][Al(297)]=function(t){var e=Al;if(16!=t[e(356)])throw new Error(e(319));for(var s=this[e(300)][e(356)]-1,i=[0,0,0,0],r=zl(t),n=0;n<4;n++)r[n]^=this[e(300)][0][n];for(var o=1;o<s;o++){for(n=0;n<4;n++)i[n]=Dl[r[n]>>24&255]^Ll[r[(n+1)%4]>>16&255]^xl[r[(n+2)%4]>>8&255]^Pl[255&r[(n+3)%4]]^this._Ke[o][n];r=i[e(291)]()}var a,h=Sl(16);for(n=0;n<4;n++)a=this[e(300)][s][n],h[4*n]=255&(Cl[r[n]>>24&255]^a>>24),h[4*n+1]=255&(Cl[r[(n+1)%4]>>16&255]^a>>16),h[4*n+2]=255&(Cl[r[(n+2)%4]>>8&255]^a>>8),h[4*n+3]=255&(Cl[255&r[(n+3)%4]]^a);return h},Gl[Al(351)][Al(341)]=function(t){var e=Al;if(16!=t.length)throw new Error(e(312));for(var s=this[e(292)].length-1,i=[0,0,0,0],r=zl(t),n=0;n<4;n++)r[n]^=this[e(292)][0][n];for(var o=1;o<s;o++){for(n=0;n<4;n++)i[n]=Bl[r[n]>>24&255]^Ml[r[(n+3)%4]>>16&255]^Fl[r[(n+2)%4]>>8&255]^Ol[255&r[(n+1)%4]]^this[e(292)][o][n];r=i.slice()}var a,h=Sl(16);for(n=0;n<4;n++)a=this[e(292)][s][n],h[4*n]=255&(Rl[r[n]>>24&255]^a>>24),h[4*n+1]=255&(Rl[r[(n+3)%4]>>16&255]^a>>16),h[4*n+2]=255&(Rl[r[(n+2)%4]>>8&255]^a>>8),h[4*n+3]=255&(Rl[255&r[(n+1)%4]]^a);return h};var Hl=function(t){var e=Al;if(!(this instanceof Hl))throw Error(e(307));this.description=e(311),this.name=e(320),this[e(302)]=new Gl(t)};Hl[Al(351)][Al(297)]=function(t){var e=Al;if((t=vl(t)).length%16!=0)throw new Error(e(348));for(var s=Sl(t[e(356)]),i=Sl(16),r=0;r<t[e(356)];r+=16)wl(t,i,0,r,r+16),wl(i=this[e(302)][e(297)](i),s,r);return s},Hl[Al(351)][Al(341)]=function(t){var e=Al;if((t=vl(t)).length%16!=0)throw new Error(e(336));for(var s=Sl(t.length),i=Sl(16),r=0;r<t[e(356)];r+=16)wl(t,i,0,r,r+16),wl(i=this[e(302)][e(341)](i),s,r);return s};var Kl=function(t,e){var s=Al;if(!(this instanceof Kl))throw Error("AES must be instanitated with `new`");if(this[s(322)]=s(342),this[s(314)]=s(333),e){if(16!=e[s(356)])throw new Error(s(334))}else e=Sl(16);this[s(315)]=vl(e,!0),this[s(302)]=new Gl(t)};function Ql(t,e){var s=Wl();return(Ql=function(t,e){return s[t-=290]})(t,e)}Kl.prototype.encrypt=function(t){var e=Al;if((t=vl(t))[e(356)]%16!=0)throw new Error(e(348));for(var s=Sl(t[e(356)]),i=Sl(16),r=0;r<t.length;r+=16){wl(t,i,0,r,r+16);for(var n=0;n<16;n++)i[n]^=this[e(315)][n];this[e(315)]=this[e(302)][e(297)](i),wl(this._lastCipherblock,s,r)}return s},Kl.prototype[Al(341)]=function(t){var e=Al;if((t=vl(t))[e(356)]%16!=0)throw new Error(e(336));for(var s=Sl(t[e(356)]),i=Sl(16),r=0;r<t.length;r+=16){wl(t,i,0,r,r+16),i=this[e(302)][e(341)](i);for(var n=0;n<16;n++)s[r+n]=i[n]^this[e(315)][n];wl(t,this._lastCipherblock,0,r,r+16)}return s};var Yl=function(t,e,s){var i=Al;if(!(this instanceof Yl))throw Error(i(307));if(this[i(322)]="Cipher Feedback",this.name=i(354),e){if(16!=e[i(356)])throw new Error("invalid initialation vector size (must be 16 size)")}else e=Sl(16);!s&&(s=1),this[i(339)]=s,this[i(318)]=vl(e,!0),this._aes=new Gl(t)};Yl.prototype[Al(297)]=function(t){var e=Al;if(t.length%this[e(339)]!=0)throw new Error("invalid plaintext size (must be segmentSize bytes)");for(var s,i=vl(t,!0),r=0;r<i[e(356)];r+=this[e(339)]){s=this[e(302)][e(297)](this[e(318)]);for(var n=0;n<this[e(339)];n++)i[r+n]^=s[n];wl(this[e(318)],this[e(318)],0,this.segmentSize),wl(i,this._shiftRegister,16-this[e(339)],r,r+this[e(339)])}return i},Yl[Al(351)].decrypt=function(t){var e=Al;if(t[e(356)]%this[e(339)]!=0)throw new Error("invalid ciphertext size (must be segmentSize bytes)");for(var s,i=vl(t,!0),r=0;r<i[e(356)];r+=this[e(339)]){s=this[e(302)][e(297)](this[e(318)]);for(var n=0;n<this[e(339)];n++)i[r+n]^=s[n];wl(this[e(318)],this[e(318)],0,this[e(339)]),wl(t,this[e(318)],16-this.segmentSize,r,r+this[e(339)])}return i};var ql=function(t,e){var s=Al;if(!(this instanceof ql))throw Error(s(307));if(this[s(322)]="Output Feedback",this[s(314)]=s(317),e){if(16!=e[s(356)])throw new Error(s(334))}else e=Sl(16);this[s(352)]=vl(e,!0),this[s(293)]=16,this[s(302)]=new Gl(t)};ql[Al(351)][Al(297)]=function(t){for(var e=Al,s=vl(t,!0),i=0;i<s[e(356)];i++)16===this[e(293)]&&(this[e(352)]=this[e(302)][e(297)](this[e(352)]),this._lastPrecipherIndex=0),s[i]^=this[e(352)][this._lastPrecipherIndex++];return s},ql[Al(351)][Al(341)]=ql[Al(351)].encrypt;var Jl=function(t){var e=Al;if(!(this instanceof Jl))throw Error(e(331));0!==t&&!t&&(t=1),typeof t===e(304)?(this[e(328)]=Sl(16),this.setValue(t)):this[e(340)](t)};Jl[Al(351)][Al(337)]=function(t){var e=Al;if(typeof t!==e(304)||parseInt(t)!=t)throw new Error(e(329));if(t>Number.MAX_SAFE_INTEGER)throw new Error(e(324));for(var s=15;s>=0;--s)this[e(328)][s]=t%256,t=parseInt(t/256)},Jl[Al(351)][Al(340)]=function(t){var e=Al;if(16!=(t=vl(t,!0))[e(356)])throw new Error(e(306));this[e(328)]=t},Jl[Al(351)].increment=function(){for(var t=Al,e=15;e>=0;e--){if(255!==this[t(328)][e]){this[t(328)][e]++;break}this[t(328)][e]=0}};var Xl=function(t,e){var s=Al;if(!(this instanceof Xl))throw Error("AES must be instanitated with `new`");this[s(322)]=s(316),this[s(314)]=s(299),!(e instanceof Jl)&&(e=new Jl(e)),this._counter=e,this[s(338)]=null,this[s(313)]=16,this[s(302)]=new Gl(t)};Xl.prototype.encrypt=function(t){for(var e=Al,s=vl(t,!0),i=0;i<s[e(356)];i++)16===this[e(313)]&&(this[e(338)]=this[e(302)].encrypt(this._counter[e(328)]),this._remainingCounterIndex=0,this._counter[e(325)]()),s[i]^=this[e(338)][this[e(313)]++];return s},Xl.prototype[Al(341)]=Xl[Al(351)][Al(297)];const Zl={AES:Gl,Counter:Jl,ModeOfOperation:{ecb:Hl,cbc:Kl,cfb:Yl,ofb:ql,ctr:Xl},utils:{hex:Tl,utf8:Il},padding:{pkcs7:{pad:function(t){var e=Al,s=16-(t=vl(t,!0)).length%16,i=Sl(t[e(356)]+s);wl(t,i);for(var r=t[e(356)];r<i[e(356)];r++)i[r]=s;return i},strip:function(t){var e=Al;if((t=vl(t,!0))[e(356)]<16)throw new Error(e(323));var s=t[t[e(356)]-1];if(s>16)throw new Error(e(294));for(var i=t.length-s,r=0;r<s;r++)if(t[i+r]!==s)throw new Error(e(344));var n=Sl(i);return wl(t,n,0,0,i),n}}},_arrayTest:{coerceArray:vl,createArray:Sl,copyArray:wl}};var $l=td;function td(t,e){var s=ed();return(td=function(t,e){return s[t-=182]})(t,e)}function ed(){var t=["algo","object","11961340ZPFWsr","clone","function","5487904xYTdRi","Base","slice","HMAC","create","commonjsGlobal","sigBytes","charCodeAt","_doFinalize","_nDataBytes","_minBufferSize","msCrypto","splice","parse","undefined","3qOwlVJ","extend","cfg","createCommonjsModule","join","max","4705550nRNMTq","randomBytes","mixIn","exports","finalize","blockSize","4210868ECoZMd","9jNifXN","min","words","19914SFjghs","ceil","toString","8587453dpQYcV","length","string","Hex","getRandomValues","push","_doReset","hasOwnProperty","_doProcessBlock","Malformed UTF-8 data","_process","crypto","apply","lib","Latin1","stringify","BufferedBlockAlgorithm","_append","fromCharCode","readInt32LE","call","prototype","substr","6951492MnLSjn","reset","121qsOgBq","_data","init","Hasher","clamp"];return(ed=function(){return t})()}!function(t,e){for(var s=td,i=t();;)try{if(651241===-parseInt(s(249))/1*(-parseInt(s(221))/2)+-parseInt(s(205))/3*(parseInt(s(217))/4)+parseInt(s(211))/5+-parseInt(s(247))/6+parseInt(s(224))/7+parseInt(s(190))/8*(parseInt(s(218))/9)+-parseInt(s(187))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(ed);var sd=$t[$l(208)]((function(t,e){var s,i,n;s=Jt,i=function(){var t=t||function(t,e){var s,i=td;if(typeof window!==i(204)&&window[i(235)]&&(s=window.crypto),typeof self!==i(204)&&self[i(235)]&&(s=self.crypto),typeof globalThis!==i(204)&&globalThis.crypto&&(s=globalThis[i(235)]),!s&&typeof window!==i(204)&&window[i(201)]&&(s=window[i(201)]),!s&&void 0!==Jt&&Jt[i(235)]&&(s=$t[i(195)][i(235)]),!s&&"function"===i(189))try{s=r.default}catch(t){}var n=function(){var t=i;if(s){if(typeof s.getRandomValues===t(189))try{return s[t(228)](new Uint32Array(1))[0]}catch(t){}if(typeof s.randomBytes===t(189))try{return s[t(212)](4)[t(243)]()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object[i(194)]||function(){function t(){}return function(e){var s;return t[td(245)]=e,s=new t,t.prototype=null,s}}(),a={},h=a[i(237)]={},c=h[i(191)]={extend:function(t){var e=td,s=o(this);return t&&s[e(213)](t),(!s.hasOwnProperty(e(182))||this[e(182)]===s[e(182)])&&(s.init=function(){var t=e;s.$super.init[t(236)](this,arguments)}),s.init[e(245)]=s,s.$super=this,s},create:function(){var t=td,e=this[t(206)]();return e[t(182)][t(236)](e,arguments),e},init:function(){},mixIn:function(t){var e=td;for(var s in t)t[e(231)](s)&&(this[s]=t[s]);t.hasOwnProperty("toString")&&(this[e(223)]=t[e(223)])},clone:function(){var t=td;return this[t(182)].prototype[t(206)](this)}},l=h.WordArray=c[i(206)]({init:function(t,e){var s=i;t=this.words=t||[],this[s(196)]=null!=e?e:4*t[s(225)]},toString:function(t){return(t||u)[i(239)](this)},concat:function(t){var e=i,s=this[e(220)],r=t[e(220)],n=this[e(196)],o=t[e(196)];if(this[e(184)](),n%4)for(var a=0;a<o;a++){var h=r[a>>>2]>>>24-a%4*8&255;s[n+a>>>2]|=h<<24-(n+a)%4*8}else for(var c=0;c<o;c+=4)s[n+c>>>2]=r[c>>>2];return this[e(196)]+=o,this},clamp:function(){var e=i,s=this[e(220)],r=this[e(196)];s[r>>>2]&=4294967295<<32-r%4*8,s[e(225)]=t[e(222)](r/4)},clone:function(){var t=i,e=c[t(188)][t(244)](this);return e[t(220)]=this[t(220)][t(192)](0),e},random:function(t){for(var e=i,s=[],r=0;r<t;r+=4)s.push(n());return new(l[e(182)])(s,t)}}),d=a.enc={},u=d[i(227)]={stringify:function(t){for(var e=i,s=t[e(220)],r=t[e(196)],n=[],o=0;o<r;o++){var a=s[o>>>2]>>>24-o%4*8&255;n.push((a>>>4)[e(223)](16)),n[e(229)]((15&a).toString(16))}return n[e(209)]("")},parse:function(t){for(var e=i,s=t[e(225)],r=[],n=0;n<s;n+=2)r[n>>>3]|=parseInt(t[e(246)](n,2),16)<<24-n%8*4;return new(l[e(182)])(r,s/2)}},p=d[i(238)]={stringify:function(t){for(var e=i,s=t[e(220)],r=t[e(196)],n=[],o=0;o<r;o++){var a=s[o>>>2]>>>24-o%4*8&255;n.push(String[e(242)](a))}return n[e(209)]("")},parse:function(t){for(var e=i,s=t[e(225)],r=[],n=0;n<s;n++)r[n>>>2]|=(255&t[e(197)](n))<<24-n%4*8;return new l.init(r,s)}},f=d.Utf8={stringify:function(t){var e=i;try{return decodeURIComponent(escape(p[e(239)](t)))}catch(t){throw new Error(e(233))}},parse:function(t){return p[i(203)](unescape(encodeURIComponent(t)))}},m=h[i(240)]=c[i(206)]({reset:function(){var t=i;this._data=new(l[t(182)]),this[t(199)]=0},_append:function(t){var e=i;typeof t==e(226)&&(t=f[e(203)](t)),this[e(250)].concat(t),this[e(199)]+=t[e(196)]},_process:function(e){var s,r=i,n=this[r(250)],o=n[r(220)],a=n[r(196)],h=this[r(216)],c=a/(4*h),d=(c=e?t[r(222)](c):t[r(210)]((0|c)-this[r(200)],0))*h,u=t[r(219)](4*d,a);if(d){for(var p=0;p<d;p+=h)this[r(232)](o,p);s=o[r(202)](0,d),n.sigBytes-=u}return new(l[r(182)])(s,u)},clone:function(){var t=i,e=c.clone.call(this);return e[t(250)]=this[t(250)][t(188)](),e},_minBufferSize:0});h[i(183)]=m[i(206)]({cfg:c[i(206)](),init:function(t){var e=i;this[e(207)]=this[e(207)][e(206)](t),this[e(248)]()},reset:function(){var t=i;m[t(248)][t(244)](this),this[t(230)]()},update:function(t){var e=i;return this._append(t),this[e(234)](),this},finalize:function(t){var e=i;return t&&this[e(241)](t),this[e(198)]()},blockSize:16,_createHelper:function(t){return function(e,s){var i=td;return new(t[i(182)])(s)[i(215)](e)}},_createHmacHelper:function(t){return function(e,s){var i=td;return new(g[i(193)][i(182)])(t,s).finalize(e)}}});var g=a[i(185)]={};return a}(Math);return t},"object"===(n=td)(186)?t[n(214)]=i():"undefined"===n(189)&&(void 0).amd?(void 0)([],i):s.CryptoJS=i()}));!function(t,e){for(var s=id,i=t();;)try{if(380715===parseInt(s(397))/1*(parseInt(s(395))/2)+parseInt(s(403))/3+parseInt(s(401))/4+parseInt(s(388))/5+-parseInt(s(396))/6+parseInt(s(407))/7*(-parseInt(s(386))/8)+-parseInt(s(392))/9*(-parseInt(s(391))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(rd);Zt((function(t,e){var s,i,r;s=$t[id(402)],i=function(t){return i=(s=t)[(e=id)(406)],r=i[e(387)],n=i[e(390)],(o=s[e(389)]={}).Word=r.extend({init:function(t,e){this.high=t,this.low=e}}),o.WordArray=r.extend({init:function(t,s){var i=e;t=this[i(383)]=t||[],this[i(400)]=null!=s?s:8*t[i(385)]},toX32:function(){for(var t=e,s=this[t(383)],i=s[t(385)],r=[],o=0;o<i;o++){var a=s[o];r[t(384)](a.high),r[t(384)](a.low)}return n.create(r,this[t(400)])},clone:function(){for(var t=e,s=r[t(382)].call(this),i=s[t(383)]=this.words[t(398)](0),n=i.length,o=0;o<n;o++)i[o]=i[o].clone();return s}}),t;var e,s,i,r,n,o},(r=id)(393)==r(393)?t[r(404)]=i(sd):"undefined"===r(399)&&(void 0).amd?(void 0)([r(394)],i):i(s[r(405)])}));function id(t,e){var s=rd();return(id=function(t,e){return s[t-=382]})(t,e)}function rd(){var t=["x64","WordArray","2499430TKYEPs","9ymNpQZ","object","./core","5368SWFoww","1836840xmouoe","41Svkywl","slice","function","sigBytes","950396QMaOBV","commonjsGlobal","165636RntSuT","exports","CryptoJS","lib","56MiACao","clone","words","push","length","53464GhkKgG","Base","437605rGcJiN"];return(rd=function(){return t})()}function nd(t,e){var s=ad();return(nd=function(t,e){return s[t-=459]})(t,e)}var od=nd;!function(t,e){for(var s=nd,i=t();;)try{if(930578===-parseInt(s(460))/1+-parseInt(s(479))/2*(parseInt(s(477))/3)+-parseInt(s(461))/4*(parseInt(s(469))/5)+-parseInt(s(462))/6+-parseInt(s(464))/7+-parseInt(s(471))/8+parseInt(s(467))/9*(parseInt(s(472))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(ad);$t[od(470)]((function(t,e){var s,i,r;s=Jt,i=function(t){var e=nd;return function(){var e=nd;if(typeof ArrayBuffer==e(468)){var s=t[e(474)][e(463)],i=s[e(465)],r=s[e(465)]=function(t){var s=e;if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t[s(459)],t[s(475)])),t instanceof Uint8Array){for(var r=t[s(475)],n=[],o=0;o<r;o++)n[o>>>2]|=t[o]<<24-o%4*8;i[s(473)](this,n,r)}else i.apply(this,arguments)};r[e(466)]=s}}(),t[e(474)][e(463)]},(r=nd)(478)==r(478)?t.exports=i(sd):"undefined"===r(468)&&(void 0)[r(476)]?(void 0)(["./core"],i):i(s.CryptoJS)}));function ad(){var t=["58845WwWIML","createCommonjsModule","6943264XOsHJf","59170DwJjIh","call","lib","byteLength","amd","27981yqXzWQ","object","354npAeZH","byteOffset","719670yfLQmv","592dADIRE","5226564VgvAop","WordArray","5791247EnYWPk","init","prototype","11574BUgNGo","function"];return(ad=function(){return t})()}var hd=ld;function cd(){var t=["charCodeAt","fromCharCode","2HLJJZu","sigBytes","CryptoJS","amd","./core","2135082fNqqsc","3832WIfXdZ","230463BMLUtn","392eGWRxY","110StTGeJ","createCommonjsModule","Utf16BE","push","object","words","create","WordArray","enc","8910881wvAunK","6421182Ybuoxe","152613MPoHuU","commonjsGlobal","function","Utf16","724031ezQjaU","exports","8530VTNeIW","length","join"];return(cd=function(){return t})()}function ld(t,e){var s=cd();return(ld=function(t,e){return s[t-=454]})(t,e)}!function(t,e){for(var s=ld,i=t();;)try{if(843469===parseInt(s(471))/1+parseInt(s(464))/2*(-parseInt(s(469))/3)+-parseInt(s(470))/4*(-parseInt(s(459))/5)+parseInt(s(483))/6+-parseInt(s(482))/7+-parseInt(s(472))/8*(parseInt(s(484))/9)+-parseInt(s(473))/10*(-parseInt(s(457))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(cd);$t[hd(474)]((function(t,e){var s,i,r,n=hd;s=$t[n(454)],i=function(t){var e=n;return function(){var e=ld,s=t,i=s.lib[e(480)],r=s[e(481)];function n(t){return t<<8&4278255360|t>>>8&16711935}r[e(456)]=r[e(475)]={stringify:function(t){for(var s=e,i=t[s(478)],r=t[s(465)],n=[],o=0;o<r;o+=2){var a=i[o>>>2]>>>16-o%4*8&65535;n.push(String[s(463)](a))}return n[s(461)]("")},parse:function(t){for(var s=e,r=t[s(460)],n=[],o=0;o<r;o++)n[o>>>1]|=t.charCodeAt(o)<<16-o%2*16;return i[s(479)](n,2*r)}},r.Utf16LE={stringify:function(t){for(var s=e,i=t.words,r=t.sigBytes,o=[],a=0;a<r;a+=2){var h=n(i[a>>>2]>>>16-a%4*8&65535);o[s(476)](String.fromCharCode(h))}return o[s(461)]("")},parse:function(t){for(var s=e,r=t.length,o=[],a=0;a<r;a++)o[a>>>1]|=n(t[s(462)](a)<<16-a%2*16);return i[s(479)](o,2*r)}}}(),t[e(481)][e(456)]},(r=ld)(477)==r(477)?t[r(458)]=i(sd):"undefined"===r(455)&&(void 0)[r(467)]?(void 0)([r(468)],i):i(s[r(466)])}));function dd(t,e){var s=ud();return(dd=function(t,e){return s[t-=169]})(t,e)}function ud(){var t=["4BRNLsH","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=","create","2487600Jcvhxk","448402hOFzpD","charAt","281835DMswsA","join","8014864ypElIX","4850270vsPKfu","CryptoJS","WordArray","_reverseMap","70QRwMqB","charCodeAt","commonjsGlobal","enc","push","lib","amd","228enNbNn","length","object","_map","exports","indexOf","./core","66jdndJm","words","30027LrevWk","56936pSIMYz"];return(ud=function(){return t})()}!function(t,e){for(var s=dd,i=t();;)try{if(497501===parseInt(s(199))/1*(parseInt(s(172))/2)+-parseInt(s(197))/3*(parseInt(s(188))/4)+-parseInt(s(174))/5*(-parseInt(s(195))/6)+parseInt(s(181))/7*(parseInt(s(198))/8)+-parseInt(s(171))/9+parseInt(s(177))/10+-parseInt(s(176))/11)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(ud);Zt((function(t,e){var s,i,r,n=dd;s=$t[n(183)],i=function(t){var e,s,i,r=n;return i=(s=t)[(e=dd)(186)][e(179)],s[e(184)].Base64={stringify:function(t){var s=e,i=t[s(196)],r=t.sigBytes,n=this[s(191)];t.clamp();for(var o=[],a=0;a<r;a+=3)for(var h=(i[a>>>2]>>>24-a%4*8&255)<<16|(i[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|i[a+2>>>2]>>>24-(a+2)%4*8&255,c=0;c<4&&a+.75*c<r;c++)o[s(185)](n.charAt(h>>>6*(3-c)&63));var l=n.charAt(64);if(l)for(;o[s(189)]%4;)o[s(185)](l);return o[s(175)]("")},parse:function(t){var s=e,r=t[s(189)],n=this[s(191)],o=this[s(180)];if(!o){o=this[s(180)]=[];for(var a=0;a<n[s(189)];a++)o[n.charCodeAt(a)]=a}var h=n[s(173)](64);if(h){var c=t[s(193)](h);-1!==c&&(r=c)}return function(t,s,r){for(var n=e,o=[],a=0,h=0;h<s;h++)if(h%4){var c=r[t[n(182)](h-1)]<<h%4*2|r[t.charCodeAt(h)]>>>6-h%4*2;o[a>>>2]|=c<<24-a%4*8,a++}return i[n(170)](o,a)}(t,r,o)},_map:e(169)},t[r(184)].Base64},(r=dd)(190)==r(190)?t[r(192)]=i(sd):i(s[r(178)])}));var pd=fd;function fd(t,e){var s=md();return(fd=function(t,e){return s[t-=283]})(t,e)}!function(t,e){for(var s=fd,i=t();;)try{if(393606===parseInt(s(289))/1*(-parseInt(s(286))/2)+-parseInt(s(312))/3*(-parseInt(s(307))/4)+-parseInt(s(315))/5+parseInt(s(283))/6*(parseInt(s(294))/7)+parseInt(s(303))/8+-parseInt(s(301))/9*(-parseInt(s(309))/10)+-parseInt(s(302))/11)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(md);$t[pd(314)]((function(t,e){var s,i,r,n=pd;s=$t[n(313)],i=function(t){var e,s,i,r=n;return e=fd,i=(s=t).lib[e(306)],s[e(288)][e(304)]={stringify:function(t,s){var i=e;void 0===s&&(s=!0);var r=t[i(293)],n=t[i(305)],o=s?this[i(285)]:this._map;t[i(291)]();for(var a=[],h=0;h<n;h+=3)for(var c=(r[h>>>2]>>>24-h%4*8&255)<<16|(r[h+1>>>2]>>>24-(h+1)%4*8&255)<<8|r[h+2>>>2]>>>24-(h+2)%4*8&255,l=0;l<4&&h+.75*l<n;l++)a[i(299)](o[i(298)](c>>>6*(3-l)&63));var d=o[i(298)](64);if(d)for(;a[i(290)]%4;)a.push(d);return a.join("")},parse:function(t,s){var r=e;void 0===s&&(s=!0);var n=t[r(290)],o=s?this[r(285)]:this[r(297)],a=this._reverseMap;if(!a){a=this[r(308)]=[];for(var h=0;h<o[r(290)];h++)a[o[r(310)](h)]=h}var c=o.charAt(64);if(c){var l=t[r(284)](c);-1!==l&&(n=l)}return function(t,s,r){for(var n=e,o=[],a=0,h=0;h<s;h++)if(h%4){var c=r[t.charCodeAt(h-1)]<<h%4*2|r[t[n(310)](h)]>>>6-h%4*2;o[a>>>2]|=c<<24-a%4*8,a++}return i.create(o,a)}(t,n,a)},_map:e(295),_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},t[r(288)].Base64url},(r=fd)(311)==r(311)?t[r(287)]=i(sd):i(s[r(300)])}));function md(){var t=["2142905MAcyli","2943858gBJuav","indexOf","_safe_map","274494jZxEii","exports","enc","1AcUDyZ","length","clamp","amd","words","7VrGdgW","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=","./core","_map","charAt","push","CryptoJS","27wmnTMj","17893997GipxSE","6291048AjQNCV","Base64url","sigBytes","WordArray","717128ATvyye","_reverseMap","2570970ydAIyl","charCodeAt","object","9UwrqEG","commonjsGlobal","createCommonjsModule"];return(md=function(){return t})()}function gd(t,e){var s=yd();return(gd=function(t,e){return s[t-=243]})(t,e)}var Ad=gd;!function(t,e){for(var s=gd,i=t();;)try{if(316453===parseInt(s(254))/1+parseInt(s(266))/2*(-parseInt(s(257))/3)+-parseInt(s(250))/4*(-parseInt(s(269))/5)+parseInt(s(251))/6*(parseInt(s(252))/7)+-parseInt(s(253))/8+-parseInt(s(260))/9+parseInt(s(249))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(yd);$t[Ad(261)]((function(t,e){var s,i,r;s=Jt,i=function(t){var e=gd;return function(e){var s=gd,i=t,r=i[s(270)],n=r.WordArray,o=r.Hasher,a=i[s(265)],h=[];!function(){for(var t=s,i=0;i<64;i++)h[i]=4294967296*e[t(247)](e[t(271)](i+1))|0}();var c=a[s(243)]=o.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var i=s,r=0;r<16;r++){var n=e+r,o=t[n];t[n]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var a=this[i(245)].words,c=t[e+0],f=t[e+1],m=t[e+2],g=t[e+3],A=t[e+4],y=t[e+5],b=t[e+6],v=t[e+7],S=t[e+8],w=t[e+9],E=t[e+10],I=t[e+11],T=t[e+12],k=t[e+13],_=t[e+14],C=t[e+15],R=a[0],D=a[1],L=a[2],x=a[3];R=l(R,D,L,x,c,7,h[0]),x=l(x,R,D,L,f,12,h[1]),L=l(L,x,R,D,m,17,h[2]),D=l(D,L,x,R,g,22,h[3]),R=l(R,D,L,x,A,7,h[4]),x=l(x,R,D,L,y,12,h[5]),L=l(L,x,R,D,b,17,h[6]),D=l(D,L,x,R,v,22,h[7]),R=l(R,D,L,x,S,7,h[8]),x=l(x,R,D,L,w,12,h[9]),L=l(L,x,R,D,E,17,h[10]),D=l(D,L,x,R,I,22,h[11]),R=l(R,D,L,x,T,7,h[12]),x=l(x,R,D,L,k,12,h[13]),L=l(L,x,R,D,_,17,h[14]),R=d(R,D=l(D,L,x,R,C,22,h[15]),L,x,f,5,h[16]),x=d(x,R,D,L,b,9,h[17]),L=d(L,x,R,D,I,14,h[18]),D=d(D,L,x,R,c,20,h[19]),R=d(R,D,L,x,y,5,h[20]),x=d(x,R,D,L,E,9,h[21]),L=d(L,x,R,D,C,14,h[22]),D=d(D,L,x,R,A,20,h[23]),R=d(R,D,L,x,w,5,h[24]),x=d(x,R,D,L,_,9,h[25]),L=d(L,x,R,D,g,14,h[26]),D=d(D,L,x,R,S,20,h[27]),R=d(R,D,L,x,k,5,h[28]),x=d(x,R,D,L,m,9,h[29]),L=d(L,x,R,D,v,14,h[30]),R=u(R,D=d(D,L,x,R,T,20,h[31]),L,x,y,4,h[32]),x=u(x,R,D,L,S,11,h[33]),L=u(L,x,R,D,I,16,h[34]),D=u(D,L,x,R,_,23,h[35]),R=u(R,D,L,x,f,4,h[36]),x=u(x,R,D,L,A,11,h[37]),L=u(L,x,R,D,v,16,h[38]),D=u(D,L,x,R,E,23,h[39]),R=u(R,D,L,x,k,4,h[40]),x=u(x,R,D,L,c,11,h[41]),L=u(L,x,R,D,g,16,h[42]),D=u(D,L,x,R,b,23,h[43]),R=u(R,D,L,x,w,4,h[44]),x=u(x,R,D,L,T,11,h[45]),L=u(L,x,R,D,C,16,h[46]),R=p(R,D=u(D,L,x,R,m,23,h[47]),L,x,c,6,h[48]),x=p(x,R,D,L,v,10,h[49]),L=p(L,x,R,D,_,15,h[50]),D=p(D,L,x,R,y,21,h[51]),R=p(R,D,L,x,T,6,h[52]),x=p(x,R,D,L,g,10,h[53]),L=p(L,x,R,D,E,15,h[54]),D=p(D,L,x,R,f,21,h[55]),R=p(R,D,L,x,S,6,h[56]),x=p(x,R,D,L,C,10,h[57]),L=p(L,x,R,D,b,15,h[58]),D=p(D,L,x,R,k,21,h[59]),R=p(R,D,L,x,A,6,h[60]),x=p(x,R,D,L,I,10,h[61]),L=p(L,x,R,D,m,15,h[62]),D=p(D,L,x,R,w,21,h[63]),a[0]=a[0]+R|0,a[1]=a[1]+D|0,a[2]=a[2]+L|0,a[3]=a[3]+x|0},_doFinalize:function(){var t=s,i=this[t(256)],r=i.words,n=8*this[t(262)],o=8*i.sigBytes;r[o>>>5]|=128<<24-o%32;var a=e[t(244)](n/4294967296),h=n;r[15+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),r[14+(o+64>>>9<<4)]=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),i[t(264)]=4*(r[t(259)]+1),this._process();for(var c=this[t(245)],l=c[t(255)],d=0;d<4;d++){var u=l[d];l[d]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return c},clone:function(){var t=s,e=o[t(268)].call(this);return e[t(245)]=this[t(245)][t(268)](),e}});function l(t,e,s,i,r,n,o){var a=t+(e&s|~e&i)+r+o;return(a<<n|a>>>32-n)+e}function d(t,e,s,i,r,n,o){var a=t+(e&i|s&~i)+r+o;return(a<<n|a>>>32-n)+e}function u(t,e,s,i,r,n,o){var a=t+(e^s^i)+r+o;return(a<<n|a>>>32-n)+e}function p(t,e,s,i,r,n,o){var a=t+(s^(e|~i))+r+o;return(a<<n|a>>>32-n)+e}i[s(243)]=o[s(272)](c),i[s(258)]=o[s(267)](c)}(Math),t[e(243)]},"object"===(r=gd)(263)?t[r(248)]=i(sd):"undefined"===r(246)&&(void 0).amd?(void 0)(["./core"],i):i(s.CryptoJS)}));function yd(){var t=["4774779uxbDuA","createCommonjsModule","_nDataBytes","object","sigBytes","algo","93794lUvKmp","_createHmacHelper","clone","5VaXewu","lib","sin","_createHelper","MD5","floor","_hash","function","abs","exports","7134810AHBUff","1021416dOYJae","12VJjprg","358687BDzSDM","2461656ZMXDIv","130271UVjfKj","words","_data","3qtUqkD","HmacMD5","length"];return(yd=function(){return t})()}function bd(t,e){var s=Sd();return(bd=function(t,e){return s[t-=291]})(t,e)}var vd=bd;!function(t,e){for(var s=bd,i=t();;)try{if(254316===parseInt(s(305))/1+-parseInt(s(291))/2*(-parseInt(s(318))/3)+-parseInt(s(325))/4*(-parseInt(s(300))/5)+-parseInt(s(317))/6*(-parseInt(s(302))/7)+parseInt(s(311))/8*(parseInt(s(299))/9)+-parseInt(s(307))/10+-parseInt(s(293))/11*(parseInt(s(301))/12))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Sd);$t[vd(298)]((function(t,e){var s,i,r,n=vd;s=$t[n(297)],i=function(t){var e,s,i,r,o,a,h,c,l=n;return e=bd,i=(s=t).lib,r=i[e(316)],o=i[e(308)],a=s[e(303)],h=[],c=a[e(310)]=o[e(295)]({_doReset:function(){this[e(309)]=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,s){for(var i=this[e(309)].words,r=i[0],n=i[1],o=i[2],a=i[3],c=i[4],l=0;l<80;l++){if(l<16)h[l]=0|t[s+l];else{var d=h[l-3]^h[l-8]^h[l-14]^h[l-16];h[l]=d<<1|d>>>31}var u=(r<<5|r>>>27)+c+h[l];u+=l<20?1518500249+(n&o|~n&a):l<40?1859775393+(n^o^a):l<60?(n&o|n&a|o&a)-1894007588:(n^o^a)-899497514,c=a,a=o,o=n<<30|n>>>2,n=r,r=u}i[0]=i[0]+r|0,i[1]=i[1]+n|0,i[2]=i[2]+o|0,i[3]=i[3]+a|0,i[4]=i[4]+c|0},_doFinalize:function(){var t=e,s=this[t(320)],i=s[t(321)],r=8*this[t(315)],n=8*s[t(323)];return i[n>>>5]|=128<<24-n%32,i[14+(n+64>>>9<<4)]=Math[t(314)](r/4294967296),i[15+(n+64>>>9<<4)]=r,s.sigBytes=4*i.length,this[t(313)](),this[t(309)]},clone:function(){var t=e,s=o[t(312)][t(292)](this);return s[t(309)]=this[t(309)][t(312)](),s}}),s[e(310)]=o._createHelper(c),s[e(304)]=o[e(322)](c),t[l(310)]},"object"===(r=bd)(294)?t.exports=i(sd):"undefined"===r(319)&&(void 0)[r(324)]?(void 0)([r(296)],i):i(s[r(306)])}));function Sd(){var t=["SHA1","8jrvRrt","clone","_process","floor","_nDataBytes","WordArray","563928CAnBhV","9Yyxgqm","function","_data","words","_createHmacHelper","sigBytes","amd","131668oYiVWf","319546jJwAxe","call","9930371zpNwfN","object","extend","./core","commonjsGlobal","createCommonjsModule","1017207KuellO","65nxkiVc","12mCoddL","7dSDPci","algo","HmacSHA1","213952DxyXgF","CryptoJS","1711260UXdGOa","Hasher","_hash"];return(Sd=function(){return t})()}var wd=Ed;function Ed(t,e){var s=Id();return(Ed=function(t,e){return s[t-=449]})(t,e)}!function(t,e){for(var s=Ed,i=t();;)try{if(905660===parseInt(s(453))/1+-parseInt(s(476))/2+parseInt(s(472))/3+parseInt(s(480))/4+-parseInt(s(462))/5+parseInt(s(455))/6*(parseInt(s(475))/7)+parseInt(s(464))/8)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Id);$t[wd(477)]((function(t,e){var s,i,r,n=wd;s=$t[n(481)],i=function(t){var e=n;return function(e){var s=Ed,i=t,r=i[s(470)],n=r[s(463)],o=r.Hasher,a=i[s(468)],h=[],c=[];!function(){var t=s;function i(t){for(var s=e.sqrt(t),i=2;i<=s;i++)if(!(t%i))return!1;return!0}function r(t){return 4294967296*(t-(0|t))|0}for(var n=2,o=0;o<64;)i(n)&&(o<8&&(h[o]=r(e[t(458)](n,.5))),c[o]=r(e[t(458)](n,1/3)),o++),n++}();var l=[],d=a.SHA256=o[s(451)]({_doReset:function(){var t=s;this[t(474)]=new(n[t(466)])(h.slice(0))},_doProcessBlock:function(t,e){for(var i=s,r=this[i(474)][i(449)],n=r[0],o=r[1],a=r[2],h=r[3],d=r[4],u=r[5],p=r[6],f=r[7],m=0;m<64;m++){if(m<16)l[m]=0|t[e+m];else{var g=l[m-15],A=(g<<25|g>>>7)^(g<<14|g>>>18)^g>>>3,y=l[m-2],b=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;l[m]=A+l[m-7]+b+l[m-16]}var v=n&o^n&a^o&a,S=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),w=f+((d<<26|d>>>6)^(d<<21|d>>>11)^(d<<7|d>>>25))+(d&u^~d&p)+c[m]+l[m];f=p,p=u,u=d,d=h+w|0,h=a,a=o,o=n,n=w+(S+v)|0}r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+a|0,r[3]=r[3]+h|0,r[4]=r[4]+d|0,r[5]=r[5]+u|0,r[6]=r[6]+p|0,r[7]=r[7]+f|0},_doFinalize:function(){var t=s,i=this[t(471)],r=i.words,n=8*this[t(467)],o=8*i[t(450)];return r[o>>>5]|=128<<24-o%32,r[14+(o+64>>>9<<4)]=e[t(469)](n/4294967296),r[15+(o+64>>>9<<4)]=n,i.sigBytes=4*r[t(478)],this[t(479)](),this[t(474)]},clone:function(){var t=s,e=o[t(473)][t(457)](this);return e[t(474)]=this[t(474)].clone(),e}});i[s(460)]=o[s(452)](d),i[s(465)]=o[s(456)](d)}(Math),t[e(460)]},(r=Ed)(459)==r(459)?t.exports=i(sd):"undefined"===r(461)&&(void 0).amd?(void 0)(["./core"],i):i(s[r(454)])}));function Id(){var t=["init","_nDataBytes","algo","floor","lib","_data","1158351rcxRro","clone","_hash","7bDAoaO","3038082EFuMyZ","createCommonjsModule","length","_process","2359432PvYRUv","commonjsGlobal","words","sigBytes","extend","_createHelper","1556886XaogKY","CryptoJS","279228HvFmkM","_createHmacHelper","call","pow","object","SHA256","function","3327150ccPwFs","WordArray","4085856hMozjJ","HmacSHA256"];return(Id=function(){return t})()}var Td=kd;!function(t,e){for(var s=kd,i=t();;)try{if(830027===-parseInt(s(284))/1*(parseInt(s(282))/2)+parseInt(s(298))/3*(parseInt(s(283))/4)+-parseInt(s(299))/5+parseInt(s(308))/6+parseInt(s(281))/7*(parseInt(s(300))/8)+parseInt(s(296))/9+-parseInt(s(301))/10*(parseInt(s(307))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(_d);$t[Td(295)]((function(t,e){var s,i,r;s=Jt,i=function(t){var e,s,i,r,n,o,a=kd;return i=(s=t)[(e=kd)(303)][e(297)],r=s[e(288)],n=r[e(304)],o=r[e(287)]=n.extend({_doReset:function(){var t=e;this._hash=new(i[t(305)])([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=e,s=n._doFinalize[t(306)](this);return s.sigBytes-=4,s}}),s[e(287)]=n[e(290)](o),s[e(293)]=n[e(289)](o),t[a(287)]},(r=kd)(286)==r(286)?t[r(294)]=i(sd):"undefined"===r(285)&&(void 0)[r(302)]?(void 0)(["./core",r(291)],i):i(s[r(292)])}));function kd(t,e){var s=_d();return(kd=function(t,e){return s[t-=281]})(t,e)}function _d(){var t=["./sha256","CryptoJS","HmacSHA224","exports","createCommonjsModule","12427308YAmETG","WordArray","3MsLuXY","4569105fuGcqO","8BpTMMQ","5179670rtomHB","amd","lib","SHA256","init","call","11QaHWEf","6600132jXgOTM","1037253kYVGWU","548474qGFIIt","1822052ZEEnEI","3UUCBrJ","function","object","SHA224","algo","_createHmacHelper","_createHelper"];return(_d=function(){return t})()}var Cd=Dd;function Rd(){var t=["1523272TTPkGa","4933620wntjla","HmacSHA512","_hash","init","clone","low","_createHelper","extend","_createHmacHelper","./core","_nDataBytes","447792LagBVG","toX32","9090438cYFlSd","54jnlMdz","high","sigBytes","length","_data","lib","apply","1538358IhZMwX","call","831650JExFat","WordArray","12cSwDOa","createCommonjsModule","exports","function","4030614SRVuwI","commonjsGlobal","_process","floor","Hasher","SHA512","object","words","./x64-core","Word"];return(Rd=function(){return t})()}function Dd(t,e){var s=Rd();return(Dd=function(t,e){return s[t-=391]})(t,e)}!function(t,e){for(var s=Dd,i=t();;)try{if(661636===-parseInt(s(404))/1+-parseInt(s(402))/2+-parseInt(s(406))/3*(-parseInt(s(392))/4)+parseInt(s(421))/5+parseInt(s(410))/6+parseInt(s(394))/7+parseInt(s(420))/8*(-parseInt(s(395))/9))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Rd);$t[Cd(407)]((function(t,e){var s,i,r,n=Cd;s=$t[n(411)],i=function(t){var e=n;return function(){var e=Dd,s=t,i=s[e(400)][e(414)],r=s.x64,n=r[e(419)],o=r[e(405)],a=s.algo;function h(){var t=e;return n.create[t(401)](n,arguments)}var c=[h(1116352408,3609767458),h(1899447441,602891725),h(3049323471,3964484399),h(3921009573,2173295548),h(961987163,4081628472),h(1508970993,3053834265),h(2453635748,2937671579),h(2870763221,3664609560),h(3624381080,2734883394),h(310598401,1164996542),h(607225278,1323610764),h(1426881987,3590304994),h(1925078388,4068182383),h(2162078206,991336113),h(2614888103,633803317),h(3248222580,3479774868),h(3835390401,2666613458),h(4022224774,944711139),h(264347078,2341262773),h(604807628,2007800933),h(770255983,1495990901),h(1249150122,1856431235),h(1555081692,3175218132),h(1996064986,2198950837),h(2554220882,3999719339),h(2821834349,766784016),h(2952996808,2566594879),h(3210313671,3203337956),h(3336571891,1034457026),h(3584528711,2466948901),h(113926993,3758326383),h(338241895,168717936),h(666307205,1188179964),h(773529912,1546045734),h(1294757372,1522805485),h(1396182291,2643833823),h(1695183700,2343527390),h(1986661051,1014477480),h(2177026350,1206759142),h(2456956037,344077627),h(2730485921,1290863460),h(2820302411,3158454273),h(3259730800,3505952657),h(3345764771,106217008),h(3516065817,3606008344),h(3600352804,1432725776),h(4094571909,1467031594),h(275423344,851169720),h(430227734,3100823752),h(506948616,1363258195),h(659060556,3750685593),h(883997877,3785050280),h(958139571,3318307427),h(1322822218,3812723403),h(1537002063,2003034995),h(1747873779,3602036899),h(1955562222,1575990012),h(2024104815,1125592928),h(2227730452,2716904306),h(2361852424,442776044),h(2428436474,593698344),h(2756734187,3733110249),h(3204031479,2999351573),h(3329325298,3815920427),h(3391569614,3928383900),h(3515267271,566280711),h(3940187606,3454069534),h(4118630271,4000239992),h(116418474,1914138554),h(174292421,2731055270),h(289380356,3203993006),h(460393269,320620315),h(685471733,587496836),h(852142971,1086792851),h(1017036298,365543100),h(1126000580,2618297676),h(1288033470,3409855158),h(1501505948,4234509866),h(1607167915,987167468),h(1816402316,1246189591)],l=[];!function(){for(var t=0;t<80;t++)l[t]=h()}();var d=a.SHA512=i[e(428)]({_doReset:function(){var t=e;this[t(423)]=new(o[t(424)])([new n.init(1779033703,4089235720),new(n[t(424)])(3144134277,2227873595),new n.init(1013904242,4271175723),new n.init(2773480762,1595750129),new(n[t(424)])(1359893119,2917565137),new(n[t(424)])(2600822924,725511199),new(n[t(424)])(528734635,4215389547),new n.init(1541459225,327033209)])},_doProcessBlock:function(t,s){for(var i=e,r=this[i(423)][i(417)],n=r[0],o=r[1],a=r[2],h=r[3],d=r[4],u=r[5],p=r[6],f=r[7],m=n.high,g=n[i(426)],A=o.high,y=o.low,b=a[i(396)],v=a[i(426)],S=h[i(396)],w=h[i(426)],E=d[i(396)],I=d[i(426)],T=u.high,k=u[i(426)],_=p[i(396)],C=p[i(426)],R=f[i(396)],D=f[i(426)],L=m,x=g,P=A,B=y,M=b,F=v,O=S,U=w,N=E,j=I,V=T,z=k,G=_,W=C,H=R,K=D,Q=0;Q<80;Q++){var Y,q,J=l[Q];if(Q<16)q=J[i(396)]=0|t[s+2*Q],Y=J[i(426)]=0|t[s+2*Q+1];else{var X=l[Q-15],Z=X[i(396)],$=X.low,tt=(Z>>>1|$<<31)^(Z>>>8|$<<24)^Z>>>7,et=($>>>1|Z<<31)^($>>>8|Z<<24)^($>>>7|Z<<25),st=l[Q-2],it=st[i(396)],rt=st.low,nt=(it>>>19|rt<<13)^(it<<3|rt>>>29)^it>>>6,ot=(rt>>>19|it<<13)^(rt<<3|it>>>29)^(rt>>>6|it<<26),at=l[Q-7],ht=at.high,ct=at[i(426)],lt=l[Q-16],dt=lt[i(396)],ut=lt.low;q=(q=(q=tt+ht+((Y=et+ct)>>>0<et>>>0?1:0))+nt+((Y+=ot)>>>0<ot>>>0?1:0))+dt+((Y+=ut)>>>0<ut>>>0?1:0),J[i(396)]=q,J[i(426)]=Y}var pt,ft=N&V^~N&G,mt=j&z^~j&W,gt=L&P^L&M^P&M,At=x&B^x&F^B&F,yt=(L>>>28|x<<4)^(L<<30|x>>>2)^(L<<25|x>>>7),bt=(x>>>28|L<<4)^(x<<30|L>>>2)^(x<<25|L>>>7),vt=(N>>>14|j<<18)^(N>>>18|j<<14)^(N<<23|j>>>9),St=(j>>>14|N<<18)^(j>>>18|N<<14)^(j<<23|N>>>9),wt=c[Q],Et=wt[i(396)],It=wt[i(426)],Tt=H+vt+((pt=K+St)>>>0<K>>>0?1:0),kt=bt+At;H=G,K=W,G=V,W=z,V=N,z=j,N=O+(Tt=(Tt=(Tt=Tt+ft+((pt+=mt)>>>0<mt>>>0?1:0))+Et+((pt+=It)>>>0<It>>>0?1:0))+q+((pt+=Y)>>>0<Y>>>0?1:0))+((j=U+pt|0)>>>0<U>>>0?1:0)|0,O=M,U=F,M=P,F=B,P=L,B=x,L=Tt+(yt+gt+(kt>>>0<bt>>>0?1:0))+((x=pt+kt|0)>>>0<pt>>>0?1:0)|0}g=n[i(426)]=g+x,n[i(396)]=m+L+(g>>>0<x>>>0?1:0),y=o[i(426)]=y+B,o[i(396)]=A+P+(y>>>0<B>>>0?1:0),v=a[i(426)]=v+F,a[i(396)]=b+M+(v>>>0<F>>>0?1:0),w=h.low=w+U,h.high=S+O+(w>>>0<U>>>0?1:0),I=d[i(426)]=I+j,d.high=E+N+(I>>>0<j>>>0?1:0),k=u.low=k+z,u[i(396)]=T+V+(k>>>0<z>>>0?1:0),C=p[i(426)]=C+W,p.high=_+G+(C>>>0<W>>>0?1:0),D=f.low=D+K,f[i(396)]=R+H+(D>>>0<K>>>0?1:0)},_doFinalize:function(){var t=e,s=this[t(399)],i=s[t(417)],r=8*this[t(391)],n=8*s.sigBytes;return i[n>>>5]|=128<<24-n%32,i[30+(n+128>>>10<<5)]=Math[t(413)](r/4294967296),i[31+(n+128>>>10<<5)]=r,s[t(397)]=4*i[t(398)],this[t(412)](),this._hash[t(393)]()},clone:function(){var t=e,s=i[t(425)][t(403)](this);return s[t(423)]=this[t(423)][t(425)](),s},blockSize:32});s[e(415)]=i[e(427)](d),s[e(422)]=i[e(429)](d)}(),t[e(415)]},(r=Dd)(416)==r(416)?t[r(408)]=i(sd):"undefined"===r(409)&&(void 0).amd?(void 0)([r(430),r(418)],i):i(s.CryptoJS)}));var Ld=Pd;function xd(){var t=["634275woojvU","12510ShdDGY","6662080fhsCZs","SHA512","9QvLYVx","HmacSHA384","./sha512","SHA384","174652jZeypr","163449uyQmJl","call","1224856fIYKWR","./x64-core","exports","Word","function","1379bLZcSI","25EYJuls","createCommonjsModule","sigBytes","x64","_createHmacHelper","_createHelper","72214mLOtvo","_hash","./core","algo","WordArray","init","object"];return(xd=function(){return t})()}function Pd(t,e){var s=xd();return(Pd=function(t,e){return s[t-=431]})(t,e)}!function(t,e){for(var s=Pd,i=t();;)try{if(205602===-parseInt(s(439))/1+parseInt(s(453))/2*(parseInt(s(434))/3)+parseInt(s(438))/4*(-parseInt(s(447))/5)+-parseInt(s(431))/6*(parseInt(s(446))/7)+parseInt(s(441))/8+parseInt(s(460))/9+parseInt(s(432))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(xd);$t[Ld(448)]((function(t,e){var s,i,r;s=Jt,i=function(t){return i=(s=t)[(e=Pd)(450)],r=i[e(444)],n=i[e(457)],o=s[e(456)],a=o[e(433)],h=o[e(437)]=a.extend({_doReset:function(){var t=e;this[t(454)]=new(n[t(458)])([new r.init(3418070365,3238371032),new(r[t(458)])(1654270250,914150663),new(r[t(458)])(2438529370,812702999),new r.init(355462360,4144912697),new(r[t(458)])(1731405415,4290775857),new r.init(2394180231,1750603025),new(r[t(458)])(3675008525,1694076839),new(r[t(458)])(1203062813,3204075428)])},_doFinalize:function(){var t=e,s=a._doFinalize[t(440)](this);return s[t(449)]-=16,s}}),s[e(437)]=a[e(452)](h),s[e(435)]=a[e(451)](h),t.SHA384;var e,s,i,r,n,o,a,h},(r=Pd)(459)==r(459)?t[r(443)]=i(sd):"undefined"===r(445)&&(void 0).amd?(void 0)([r(455),r(442),r(436)],i):i(s.CryptoJS)}));function Bd(t,e){var s=Md();return(Bd=function(t,e){return s[t-=355]})(t,e)}function Md(){var t=["high","slice","4gsXoIe","_createHelper","9Welvuu","7802CWnYrJ","length","cfg","object","SHA3","_state","lib","WordArray","low","48oXxHlJ","18152156zAlEuv","Word","_data","x64","17hfNrJt","push","words","100723VSZbEL","./core","init","blockSize","call","extend","727700MgmPJx","_process","CryptoJS","amd","6581270QTDZZr","function","11215248ZmHzFs","4432173PObkqE","Hasher","exports","_nDataBytes","clone","create","commonjsGlobal","algo"];return(Md=function(){return t})()}!function(t,e){for(var s=Bd,i=t();;)try{if(740585===-parseInt(s(356))/1*(parseInt(s(385))/2)+parseInt(s(372))/3*(parseInt(s(382))/4)+-parseInt(s(365))/5+-parseInt(s(394))/6*(parseInt(s(359))/7)+-parseInt(s(371))/8+parseInt(s(384))/9*(-parseInt(s(369))/10)+parseInt(s(395))/11)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Md);Zt((function(t,e){var s,i,r,n=Bd;s=$t[n(378)],i=function(t){var e=n;return function(e){var s=Bd,i=t,r=i[s(391)],n=r[s(392)],o=r[s(373)],a=i[s(355)][s(396)],h=i[s(379)],c=[],l=[],d=[];!function(){for(var t=s,e=1,i=0,r=0;r<24;r++){c[e+5*i]=(r+1)*(r+2)/2%64;var n=(2*e+3*i)%5;e=i%5,i=n}for(e=0;e<5;e++)for(i=0;i<5;i++)l[e+5*i]=i+(2*e+3*i)%5*5;for(var o=1,h=0;h<24;h++){for(var u=0,p=0,f=0;f<7;f++){if(1&o){var m=(1<<f)-1;m<32?p^=1<<m:u^=1<<m-32}128&o?o=o<<1^113:o<<=1}d[h]=a[t(377)](u,p)}}();var u=[];!function(){for(var t=0;t<25;t++)u[t]=a.create()}();var p=h[s(389)]=o.extend({cfg:o[s(387)][s(364)]({outputLength:512}),_doReset:function(){for(var t=s,e=this._state=[],i=0;i<25;i++)e[i]=new(a[t(361)]);this.blockSize=(1600-2*this[t(387)].outputLength)/32},_doProcessBlock:function(t,e){for(var i=s,r=this[i(390)],n=this[i(362)]/2,o=0;o<n;o++){var a=t[e+2*o],h=t[e+2*o+1];a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),(D=r[o])[i(380)]^=h,D[i(393)]^=a}for(var p=0;p<24;p++){for(var f=0;f<5;f++){for(var m=0,g=0,A=0;A<5;A++)m^=(D=r[f+5*A])[i(380)],g^=D[i(393)];var y=u[f];y[i(380)]=m,y[i(393)]=g}for(f=0;f<5;f++){var b=u[(f+4)%5],v=u[(f+1)%5],S=v.high,w=v[i(393)];for(m=b[i(380)]^(S<<1|w>>>31),g=b.low^(w<<1|S>>>31),A=0;A<5;A++)(D=r[f+5*A])[i(380)]^=m,D[i(393)]^=g}for(var E=1;E<25;E++){var I=(D=r[E])[i(380)],T=D.low,k=c[E];k<32?(m=I<<k|T>>>32-k,g=T<<k|I>>>32-k):(m=T<<k-32|I>>>64-k,g=I<<k-32|T>>>64-k);var _=u[l[E]];_.high=m,_.low=g}var C=u[0],R=r[0];for(C[i(380)]=R[i(380)],C[i(393)]=R[i(393)],f=0;f<5;f++)for(A=0;A<5;A++){var D=r[E=f+5*A],L=u[E],x=u[(f+1)%5+5*A],P=u[(f+2)%5+5*A];D[i(380)]=L[i(380)]^~x.high&P[i(380)],D[i(393)]=L[i(393)]^~x[i(393)]&P[i(393)]}D=r[0];var B=d[p];D[i(380)]^=B[i(380)],D[i(393)]^=B.low}},_doFinalize:function(){var t=s,i=this[t(397)],r=i[t(358)];this[t(375)];var o=8*i.sigBytes,a=32*this[t(362)];r[o>>>5]|=1<<24-o%32,r[(e.ceil((o+1)/a)*a>>>5)-1]|=128,i.sigBytes=4*r[t(386)],this[t(366)]();for(var h=this[t(390)],c=this[t(387)].outputLength/8,l=c/8,d=[],u=0;u<l;u++){var p=h[u],f=p[t(380)],m=p[t(393)];f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),m=16711935&(m<<8|m>>>24)|4278255360&(m<<24|m>>>8),d[t(357)](m),d.push(f)}return new(n[t(361)])(d,c)},clone:function(){for(var t=s,e=o[t(376)][t(363)](this),i=e[t(390)]=this[t(390)][t(381)](0),r=0;r<25;r++)i[r]=i[r].clone();return e}});i[s(389)]=o[s(383)](p),i.HmacSHA3=o._createHmacHelper(p)}(Math),t[e(389)]},"object"===(r=Bd)(388)?t[r(374)]=i(sd):"undefined"===r(370)&&(void 0)[r(368)]?(void 0)([r(360),"./x64-core"],i):i(s[r(367)])}));function Fd(){var t=["1404234znpkmG","_process","words","_createHmacHelper","1336772zjZlIk","call","_hash","algo","RIPEMD160","CryptoJS","lib","47029sgFJga","create","171HDnrdZ","WordArray","242627zcMVMH","10TNLMbi","clone","extend","length","625551ZBWdPF","_createHelper","commonjsGlobal","amd","HmacRIPEMD160","function","1010192HNQJot","_nDataBytes","89720pyqKEy","5GWfIoF","Hasher"];return(Fd=function(){return t})()}function Od(t,e){var s=Fd();return(Od=function(t,e){return s[t-=294]})(t,e)}!function(t,e){for(var s=Od,i=t();;)try{if(210201===-parseInt(s(296))/1*(parseInt(s(301))/2)+parseInt(s(305))/3+-parseInt(s(320))/4*(-parseInt(s(314))/5)+parseInt(s(316))/6+-parseInt(s(300))/7+-parseInt(s(311))/8+-parseInt(s(298))/9*(parseInt(s(313))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Fd);Zt((function(t,e){var s;$t[Od(307)],t.exports=(s=sd,function(t){var e=Od,i=s,r=i[e(295)],n=r[e(299)],o=r[e(315)],a=i[e(323)],h=n[e(297)]([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=n[e(297)]([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=n[e(297)]([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),d=n[e(297)]([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=n[e(297)]([0,1518500249,1859775393,2400959708,2840853838]),p=n.create([1352829926,1548603684,1836072691,2053994217,0]),f=a[e(324)]=o[e(303)]({_doReset:function(){this[e(322)]=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,s){for(var i=e,r=0;r<16;r++){var n=s+r,o=t[n];t[n]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var a,f,S,w,E,I,T,k,_,C,R,D=this[i(322)].words,L=u[i(318)],x=p[i(318)],P=h[i(318)],B=c[i(318)],M=l[i(318)],F=d[i(318)];for(I=a=D[0],T=f=D[1],k=S=D[2],_=w=D[3],C=E=D[4],r=0;r<80;r+=1)R=a+t[s+P[r]]|0,R+=r<16?m(f,S,w)+L[0]:r<32?g(f,S,w)+L[1]:r<48?A(f,S,w)+L[2]:r<64?y(f,S,w)+L[3]:b(f,S,w)+L[4],R=(R=v(R|=0,M[r]))+E|0,a=E,E=w,w=v(S,10),S=f,f=R,R=I+t[s+B[r]]|0,R+=r<16?b(T,k,_)+x[0]:r<32?y(T,k,_)+x[1]:r<48?A(T,k,_)+x[2]:r<64?g(T,k,_)+x[3]:m(T,k,_)+x[4],R=(R=v(R|=0,F[r]))+C|0,I=C,C=_,_=v(k,10),k=T,T=R;R=D[1]+S+_|0,D[1]=D[2]+w+C|0,D[2]=D[3]+E+I|0,D[3]=D[4]+a+T|0,D[4]=D[0]+f+k|0,D[0]=R},_doFinalize:function(){var t=e,s=this._data,i=s[t(318)],r=8*this[t(312)],n=8*s.sigBytes;i[n>>>5]|=128<<24-n%32,i[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),s.sigBytes=4*(i[t(304)]+1),this[t(317)]();for(var o=this[t(322)],a=o.words,h=0;h<5;h++){var c=a[h];a[h]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return o},clone:function(){var t=e,s=o[t(302)][t(321)](this);return s[t(322)]=this._hash[t(302)](),s}});function m(t,e,s){return t^e^s}function g(t,e,s){return t&e|~t&s}function A(t,e,s){return(t|~e)^s}function y(t,e,s){return t&s|e&~s}function b(t,e,s){return t^(e|~s)}function v(t,e){return t<<e|t>>>32-e}i[e(324)]=o[e(306)](f),i[e(309)]=o[e(319)](f)}(),s.RIPEMD160)}));var Ud=jd;!function(t,e){for(var s=jd,i=t();;)try{if(428520===-parseInt(s(488))/1*(parseInt(s(489))/2)+-parseInt(s(497))/3+parseInt(s(485))/4+parseInt(s(494))/5+parseInt(s(474))/6*(parseInt(s(493))/7)+parseInt(s(480))/8*(parseInt(s(498))/9)+parseInt(s(468))/10*(-parseInt(s(472))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Nd);$t[Ud(495)]((function(t,e){var s,i,r;s=Jt,i=function(t){var e,s,i,r;i=(s=t)[(e=jd)(475)][e(484)],r=s[e(499)][e(477)],s[e(476)].HMAC=i.extend({init:function(t,s){var i=e;t=this._hasher=new(t[i(473)]),typeof s==i(487)&&(s=r[i(478)](s));var n=t[i(491)],o=4*n;s[i(467)]>o&&(s=t[i(483)](s)),s[i(471)]();for(var a=this[i(482)]=s[i(469)](),h=this._iKey=s[i(469)](),c=a[i(496)],l=h[i(496)],d=0;d<n;d++)c[d]^=1549556828,l[d]^=909522486;a[i(467)]=h[i(467)]=o,this.reset()},reset:function(){var t=e,s=this[t(490)];s[t(481)](),s.update(this[t(479)])},update:function(t){var s=e;return this[s(490)][s(500)](t),this},finalize:function(t){var s=e,i=this[s(490)],r=i.finalize(t);return i[s(481)](),i[s(483)](this[s(482)][s(469)]()[s(492)](r))}})},"object"===(r=jd)(465)?t[r(501)]=i(sd):"undefined"===r(470)&&(void 0).amd?(void 0)([r(486)],i):i(s[r(466)])}));function Nd(){var t=["208809bRDVdm","enc","update","exports","object","CryptoJS","sigBytes","400DbMzhr","clone","function","clamp","428263ZayRkL","init","178026aIcvqJ","lib","algo","Utf8","parse","_iKey","216rmKHVA","reset","_oKey","finalize","Base","2977716fnjDxe","./core","string","3wtDgrk","130496ETxtGB","_hasher","blockSize","concat","189MXeCSl","1725580LZzUIg","createCommonjsModule","words","1006515ZGDULB"];return(Nd=function(){return t})()}function jd(t,e){var s=Nd();return(jd=function(t,e){return s[t-=465]})(t,e)}function Vd(t,e){var s=zd();return(Vd=function(t,e){return s[t-=156]})(t,e)}!function(t,e){for(var s=Vd,i=t();;)try{if(328416===parseInt(s(178))/1*(-parseInt(s(192))/2)+parseInt(s(168))/3*(-parseInt(s(181))/4)+-parseInt(s(187))/5+parseInt(s(159))/6+-parseInt(s(158))/7*(-parseInt(s(179))/8)+-parseInt(s(189))/9*(parseInt(s(188))/10)+parseInt(s(171))/11*(parseInt(s(167))/12))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(zd);Zt((function(t,e){var s,i,r,n=Vd;s=$t[n(194)],i=function(t){var e,s,i,r,o,a,h,c,l,d=n;return i=(s=t)[(e=Vd)(162)],r=i[e(191)],o=i[e(160)],a=s[e(182)],h=a[e(173)],c=a.HMAC,l=a[e(165)]=r.extend({cfg:r[e(193)]({keySize:4,hasher:h,iterations:25e4}),init:function(t){this[e(175)]=this.cfg.extend(t)},compute:function(t,s){for(var i=e,r=this[i(175)],n=c[i(163)](r[i(180)],t),a=o[i(163)](),h=o.create([1]),l=a[i(176)],d=h[i(176)],u=r[i(169)],p=r[i(177)];l[i(164)]<u;){var f=n[i(157)](s)[i(172)](h);n[i(174)]();for(var m=f.words,g=m[i(164)],A=f,y=1;y<p;y++){A=n.finalize(A),n[i(174)]();for(var b=A[i(176)],v=0;v<g;v++)m[v]^=b[v]}a[i(183)](f),d[0]++}return a[i(184)]=4*u,a}}),s[e(165)]=function(t,s,i){var r=e;return l[r(163)](i)[r(156)](t,s)},t[d(165)]},(r=Vd)(166)==r(166)?t[r(185)]=i(sd):i(s.CryptoJS)}));function zd(){var t=["70ahWyvi","2624964znEyhS","WordArray","./core","lib","create","length","PBKDF2","object","8542896ElmfwZ","9vYhooa","keySize","./sha256","11CvEMUW","finalize","SHA256","reset","cfg","words","iterations","555971zcrvZa","467872gAdxoa","hasher","350772ntobbX","algo","concat","sigBytes","exports","./hmac","1832205ONUANE","150YZfTsd","132201ddwWLE","amd","Base","2zvyalO","extend","commonjsGlobal","compute","update"];return(zd=function(){return t})()}function Gd(t,e){var s=Wd();return(Gd=function(t,e){return s[t-=486]})(t,e)}!function(t,e){for(var s=Gd,i=t();;)try{if(619495===-parseInt(s(517))/1*(-parseInt(s(504))/2)+-parseInt(s(508))/3*(-parseInt(s(489))/4)+parseInt(s(519))/5+parseInt(s(506))/6+parseInt(s(492))/7*(parseInt(s(488))/8)+parseInt(s(494))/9*(-parseInt(s(495))/10)+-parseInt(s(486))/11*(parseInt(s(521))/12))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Wd);Zt((function(t,e){var s,i,r;s=$t[Gd(499)],i=function(t){return i=(s=t)[(e=Gd)(520)],r=i[e(512)],n=i.WordArray,o=s[e(498)],a=o[e(510)],h=o[e(523)]=r.extend({cfg:r.extend({keySize:4,hasher:a,iterations:1}),init:function(t){var s=e;this[s(500)]=this[s(500)][s(497)](t)},compute:function(t,s){for(var i,r=e,o=this[r(500)],a=o[r(491)][r(496)](),h=n[r(496)](),c=h[r(518)],l=o[r(516)],d=o[r(515)];c[r(522)]<l;){i&&a[r(502)](i),i=a[r(502)](t)[r(509)](s),a.reset();for(var u=1;u<d;u++)i=a[r(509)](i),a[r(503)]();h[r(511)](i)}return h[r(487)]=4*l,h}}),s[e(523)]=function(t,s,i){return h[e(496)](i).compute(t,s)},t.EvpKDF;var e,s,i,r,n,o,a,h},(r=Gd)(513)==r(513)?t[r(514)]=i(sd):"undefined"===r(493)&&(void 0)[r(501)]?(void 0)([r(490),r(505),r(507)],i):i(s.CryptoJS)}));function Wd(){var t=["function","988587gbUwja","10wPIUfX","create","extend","algo","commonjsGlobal","cfg","amd","update","reset","154sHsmEP","./sha1","4462140jmLKxw","./hmac","6FiMlbf","finalize","MD5","concat","Base","object","exports","iterations","keySize","3958AIKFJa","words","1735840YFQbUg","lib","12MVYsnS","length","EvpKDF","24445894HwuGuy","sigBytes","208evzyWQ","1060268FZnatM","./core","hasher","276213XHqXly"];return(Wd=function(){return t})()}function Hd(){var t=["527416stLdlm","_xformMode","Pkcs7","decrypt","push","exports","init","flush","28zqABpu","key","Encryptor","9EcSEXO","formatter","_parse","sigBytes","243895XGphIi","_mode","kdf","_minBufferSize","extend","_prevBlock","_process","create","stringify","516400BuRlZG","random","parse","SerializableCipher","execute","CipherParams","mode","createCommonjsModule","string","format","./evpkdf","unpad","call","13379674eUjCOj","4768360eATDfw","finalize","_ENC_XFORM_MODE","splice","30kZpyFI","object","salt","slice","processBlock","Decryptor","__creator","concat","ivSize","_cipher","_append","cfg","decryptBlock","_doFinalize","enc","854731fUKKLA","Base","OpenSSL","encryptBlock","words","_key","ciphertext","BufferedBlockAlgorithm","keySize","WordArray","padding","9pyJNRZ","BlockCipherMode","_iv","reset","290664GkSNsq","pad","encrypt","EvpKDF","blockSize","algo","hasher","toString","CryptoJS","Base64","StreamCipher","mixIn"];return(Hd=function(){return t})()}var Kd=Qd;function Qd(t,e){var s=Hd();return(Qd=function(t,e){return s[t-=292]})(t,e)}!function(t,e){for(var s=Qd,i=t();;)try{if(542978===parseInt(s(375))/1+-parseInt(s(318))/2*(parseInt(s(302))/3)+parseInt(s(342))/4+-parseInt(s(333))/5*(parseInt(s(360))/6)+-parseInt(s(326))/7*(parseInt(s(306))/8)+parseInt(s(329))/9*(-parseInt(s(356))/10)+parseInt(s(355))/11)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Hd);$t[Kd(349)]((function(t,e){var s,i,r;s=Jt,i=function(t){t.lib.Cipher||function(e){var s=Qd,i=t,r=i.lib,n=r[s(292)],o=r[s(300)],a=r[s(298)],h=i[s(374)];h.Utf8;var c=h[s(315)],l=i[s(311)][s(309)],d=r.Cipher=a[s(337)]({cfg:n[s(337)](),createEncryptor:function(t,e){var i=s;return this.create(this[i(358)],t,e)},createDecryptor:function(t,e){return this[s(340)](this._DEC_XFORM_MODE,t,e)},init:function(t,e,i){var r=s;this.cfg=this.cfg[r(337)](i),this[r(319)]=t,this[r(296)]=e,this[r(305)]()},reset:function(){var t=s;a.reset[t(354)](this),this._doReset()},process:function(t){var e=s;return this[e(370)](t),this[e(339)]()},finalize:function(t){var e=s;return t&&this[e(370)](t),this[e(373)]()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return typeof t==Qd(350)?v:y}return function(e){return{encrypt:function(s,i,r){var n=Qd;return t(i)[n(308)](e,s,i,r)},decrypt:function(s,i,r){var n=Qd;return t(i)[n(321)](e,s,i,r)}}}}()});r[s(316)]=d.extend({_doFinalize:function(){var t=s;return this[t(339)](!!t(325))},blockSize:1});var u=i.mode={},p=r[s(303)]=n[s(337)]({createEncryptor:function(t,e){var i=s;return this[i(328)][i(340)](t,e)},createDecryptor:function(t,e){var i=s;return this[i(365)][i(340)](t,e)},init:function(t,e){var i=s;this[i(369)]=t,this[i(304)]=e}}),f=u.CBC=function(){var t=s,e=p.extend();function i(e,s,i){var r,n=t,o=this[n(304)];o?(r=o,this[n(304)]=void 0):r=this[n(338)];for(var a=0;a<i;a++)e[s+a]^=r[a]}return e[t(328)]=e[t(337)]({processBlock:function(e,s){var r=t,n=this._cipher,o=n[r(310)];i.call(this,e,s,o),n[r(294)](e,s),this._prevBlock=e[r(363)](s,s+o)}}),e[t(365)]=e[t(337)]({processBlock:function(e,s){var r=t,n=this._cipher,o=n[r(310)],a=e.slice(s,s+o);n[r(372)](e,s),i[r(354)](this,e,s,o),this._prevBlock=a}}),e}(),m=(i[s(307)]={})[s(320)]={pad:function(t,e){for(var i=s,r=4*e,n=r-t[i(332)]%r,a=n<<24|n<<16|n<<8|n,h=[],c=0;c<n;c+=4)h[i(322)](a);var l=o[i(340)](h,n);t.concat(l)},unpad:function(t){var e=s,i=255&t[e(295)][t[e(332)]-1>>>2];t[e(332)]-=i}};r.BlockCipher=d[s(337)]({cfg:d[s(371)].extend({mode:f,padding:m}),reset:function(){var t,e=s;d[e(305)][e(354)](this);var i=this[e(371)],r=i.iv,n=i[e(348)];this[e(319)]==this[e(358)]?t=n.createEncryptor:(t=n.createDecryptor,this[e(336)]=1),this[e(334)]&&this[e(334)].__creator==t?this[e(334)][e(324)](this,r&&r[e(295)]):(this[e(334)]=t[e(354)](n,this,r&&r.words),this._mode[e(366)]=t)},_doProcessBlock:function(t,e){var i=s;this[i(334)][i(364)](t,e)},_doFinalize:function(){var t,e=s,i=this.cfg[e(301)];return this[e(319)]==this[e(358)]?(i.pad(this._data,this[e(310)]),t=this[e(339)](!0)):(t=this._process(!!e(325)),i[e(353)](t)),t},blockSize:4});var g=r[s(347)]=n[s(337)]({init:function(t){this[s(317)](t)},toString:function(t){var e=s;return(t||this[e(330)])[e(341)](this)}}),A=(i.format={})[s(293)]={stringify:function(t){var e=s,i=t[e(297)],r=t.salt;return(r?o[e(340)]([1398893684,1701076831])[e(367)](r)[e(367)](i):i)[e(313)](c)},parse:function(t){var e,i=s,r=c[i(344)](t),n=r.words;return 1398893684==n[0]&&1701076831==n[1]&&(e=o[i(340)](n.slice(2,4)),n[i(359)](0,4),r.sigBytes-=16),g[i(340)]({ciphertext:r,salt:e})}},y=r[s(345)]=n[s(337)]({cfg:n[s(337)]({format:A}),encrypt:function(t,e,i,r){var n=s;r=this[n(371)].extend(r);var o=t.createEncryptor(i,r),a=o[n(357)](e),h=o[n(371)];return g.create({ciphertext:a,key:i,iv:h.iv,algorithm:t,mode:h[n(348)],padding:h[n(301)],blockSize:t.blockSize,formatter:r[n(351)]})},decrypt:function(t,e,i,r){var n=s;return r=this[n(371)][n(337)](r),e=this[n(331)](e,r[n(351)]),t.createDecryptor(i,r)[n(357)](e[n(297)])},_parse:function(t,e){var i=s;return typeof t==i(350)?e[i(344)](t,this):t}}),b=(i[s(335)]={}).OpenSSL={execute:function(t,e,i,r,n){var a=s;if(!r&&(r=o[a(343)](8)),n)h=l[a(340)]({keySize:e+i,hasher:n}).compute(t,r);else var h=l[a(340)]({keySize:e+i}).compute(t,r);var c=o.create(h[a(295)][a(363)](e),4*i);return h[a(332)]=4*e,g.create({key:h,iv:c,salt:r})}},v=r.PasswordBasedCipher=y[s(337)]({cfg:y[s(371)][s(337)]({kdf:b}),encrypt:function(t,e,i,r){var n=s,o=(r=this[n(371)][n(337)](r))[n(335)][n(346)](i,t[n(299)],t[n(368)],r[n(362)],r[n(312)]);r.iv=o.iv;var a=y.encrypt.call(this,t,e,o.key,r);return a[n(317)](o),a},decrypt:function(t,e,i,r){var n=s;r=this[n(371)][n(337)](r),e=this._parse(e,r[n(351)]);var o=r[n(335)].execute(i,t[n(299)],t[n(368)],e[n(362)],r[n(312)]);return r.iv=o.iv,y[n(321)][n(354)](this,t,e,o[n(327)],r)}})}()},(r=Qd)(361)==r(361)?t[r(323)]=i(sd):i(s[r(314)])}));function Yd(){var t=["exports","slice","blockSize","1697150zskyfC","_iv","_prevBlock","function","CryptoJS","4839924mXcXDd","Decryptor","4razUTd","886959wBFlay","amd","call","commonjsGlobal","625500oWFhID","./core","CFB","2635260umEwXa","3188259fRvzgE","_cipher","object","createCommonjsModule","7sgupmv","mode","6921QfGDqz","./cipher-core","lib","Encryptor","extend","5608IGJJoq","BlockCipherMode","44evxGDM"];return(Yd=function(){return t})()}var qd=Jd;function Jd(t,e){var s=Yd();return(Jd=function(t,e){return s[t-=110]})(t,e)}!function(t,e){for(var s=Jd,i=t();;)try{if(604321===-parseInt(s(116))/1+parseInt(s(120))/2+parseInt(s(124))/3*(parseInt(s(115))/4)+parseInt(s(123))/5+-parseInt(s(113))/6*(-parseInt(s(128))/7)+-parseInt(s(135))/8*(parseInt(s(130))/9)+parseInt(s(141))/10*(-parseInt(s(137))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Yd);$t[qd(127)]((function(t,e){var s,i,r,n=qd;s=$t[n(119)],i=function(t){var e=n;return t[e(129)].CFB=function(){var s=e,i=t[s(132)][s(136)][s(134)]();function r(t,e,i,r){var n,o=s,a=this[o(142)];a?(n=a.slice(0),this[o(142)]=void 0):n=this[o(110)],r.encryptBlock(n,0);for(var h=0;h<i;h++)t[e+h]^=n[h]}return i[s(133)]=i[s(134)]({processBlock:function(t,e){var i=s,n=this[i(125)],o=n.blockSize;r[i(118)](this,t,e,o,n),this[i(110)]=t[i(139)](e,e+o)}}),i[s(114)]=i[s(134)]({processBlock:function(t,e){var i=s,n=this[i(125)],o=n[i(140)],a=t[i(139)](e,e+o);r.call(this,t,e,o,n),this[i(110)]=a}}),i}(),t.mode[e(122)]},"object"===(r=Jd)(126)?t[r(138)]=i(sd):"undefined"===r(111)&&(void 0)[r(117)]?(void 0)([r(121),r(131)],i):i(s[r(112)])}));function Xd(t,e){var s=Zd();return(Xd=function(t,e){return s[t-=493]})(t,e)}!function(t,e){for(var s=Xd,i=t();;)try{if(523376===parseInt(s(508))/1*(parseInt(s(493))/2)+parseInt(s(503))/3*(parseInt(s(516))/4)+-parseInt(s(509))/5+parseInt(s(502))/6+parseInt(s(504))/7+parseInt(s(495))/8+-parseInt(s(501))/9)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Zd);Zt((function(t,e){var s,i,r,n=Xd;s=$t[n(494)],i=function(t){var e,s,i,r=n;return t[r(506)].CTR=(s=t[(e=r)(517)][e(497)][e(499)](),i=s[e(507)]=s[e(499)]({processBlock:function(t,s){var i=e,r=this[i(514)],n=r[i(498)],o=this[i(515)],a=this._counter;o&&(a=this._counter=o.slice(0),this[i(515)]=void 0);var h=a[i(513)](0);r.encryptBlock(h,0),a[n-1]=a[n-1]+1|0;for(var c=0;c<n;c++)t[s+c]^=h[c]}}),s.Decryptor=i,s),t.mode[r(496)]},"object"===(r=Xd)(518)?t.exports=i(sd):"undefined"===r(511)&&(void 0)[r(505)]?(void 0)([r(510),r(500)],i):i(s[r(512)])}));function Zd(){var t=["commonjsGlobal","5765464Qlhoji","CTR","BlockCipherMode","blockSize","extend","./cipher-core","24249312dJGQFp","6090480ifQdcM","333mWDcuw","1822198zPnNlG","amd","mode","Encryptor","27805tHokJB","1437095JHIqds","./core","function","CryptoJS","slice","_cipher","_iv","25324HEKxHO","lib","object","58jVNRnU"];return(Zd=function(){return t})()}var $d=eu;!function(t,e){for(var s=eu,i=t();;)try{if(380963===-parseInt(s(169))/1*(parseInt(s(160))/2)+-parseInt(s(145))/3+-parseInt(s(154))/4+-parseInt(s(165))/5*(parseInt(s(155))/6)+-parseInt(s(157))/7*(-parseInt(s(173))/8)+-parseInt(s(163))/9+parseInt(s(148))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(tu);$t[$d(146)]((function(t,e){var s,i,r,n=$d;s=$t[n(166)],i=function(t){var e=n;return t.mode[e(147)]=function(){var s=e,i=t[s(158)][s(162)][s(149)]();function r(t){if(255==(t>>24&255)){var e=t>>16&255,s=t>>8&255,i=255&t;255===e?(e=0,255===s?(s=0,255===i?i=0:++i):++s):++e,t=0,t+=e<<16,t+=s<<8,t+=i}else t+=1<<24;return t}var n=i.Encryptor=i[s(149)]({processBlock:function(t,e){var i,n=s,o=this[n(156)],a=o[n(172)],h=this[n(164)],c=this[n(161)];h&&(c=this[n(161)]=h.slice(0),this[n(164)]=void 0),0===((i=c)[0]=r(i[0]))&&(i[1]=r(i[1]));var l=c[n(151)](0);o[n(153)](l,0);for(var d=0;d<a;d++)t[e+d]^=l[d]}});return i.Decryptor=n,i}(),t[e(170)][e(147)]},"object"===(r=eu)(152)?t[r(168)]=i(sd):"undefined"===r(150)&&(void 0)[r(171)]?(void 0)(["./core",r(159)],i):i(s[r(167)])}));function tu(){var t=["521944agGAMD","710652KseuME","_cipher","161UrjOWj","lib","./cipher-core","930aCYsbe","_counter","BlockCipherMode","1002834AkmcZA","_iv","10zlgkKW","commonjsGlobal","CryptoJS","exports","34MifSlE","mode","amd","blockSize","245608PBFVbX","1895022Eharzj","createCommonjsModule","CTRGladman","8011200qXLuNg","extend","function","slice","object","encryptBlock"];return(tu=function(){return t})()}function eu(t,e){var s=tu();return(eu=function(t,e){return s[t-=145]})(t,e)}function su(t,e){var s=iu();return(su=function(t,e){return s[t-=396]})(t,e)}!function(t,e){for(var s=su,i=t();;)try{if(692056===-parseInt(s(397))/1*(parseInt(s(412))/2)+parseInt(s(414))/3+-parseInt(s(400))/4*(-parseInt(s(399))/5)+parseInt(s(411))/6*(-parseInt(s(418))/7)+-parseInt(s(417))/8*(parseInt(s(403))/9)+-parseInt(s(401))/10*(-parseInt(s(410))/11)+parseInt(s(423))/12*(parseInt(s(402))/13))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(iu);Zt((function(t,e){var s,i,r,n=su;s=$t[n(398)],i=function(t){var e,s,i,r=n;return t[r(407)][r(396)]=(e=r,s=t.lib[e(424)].extend(),i=s.Encryptor=s.extend({processBlock:function(t,s){var i=e,r=this[i(413)],n=r[i(415)],o=this._iv,a=this[i(422)];o&&(a=this[i(422)]=o[i(408)](0),this[i(420)]=void 0),r[i(409)](a,0);for(var h=0;h<n;h++)t[s+h]^=a[h]}}),s[e(404)]=i,s),t[r(407)][r(396)]},(r=su)(421)==r(421)?t[r(406)]=i(sd):"undefined"===r(405)&&(void 0)[r(416)]?(void 0)(["./core",r(419)],i):i(s.CryptoJS)}));function iu(){var t=["11lxdEVn","1930038tkFEOs","51252VOpJQb","_cipher","248802mFOhFU","blockSize","amd","8ohXFhw","28VpHrqT","./cipher-core","_iv","object","_keystream","13718424cLtneD","BlockCipherMode","OFB","22cldUiI","commonjsGlobal","1462490IaqvGs","16ERsENU","12097910thhDBu","13GqWfGM","9570591GlQgGn","Decryptor","function","exports","mode","slice","encryptBlock"];return(iu=function(){return t})()}function ru(t,e){var s=nu();return(ru=function(t,e){return s[t-=125]})(t,e)}function nu(){var t=["2701510pZGFdG","3665780TFKiIg","BlockCipherMode","9hNhbqi","object","./core","function","Encryptor","3634230YeNzXg","ECB","extend","468592xDRKys","mode","237454eKiOtg","lib","36INuNCn","598760QeAkyX","CryptoJS","8sPYkxc","./cipher-core","17390FyTTEE","decryptBlock","exports","amd"];return(nu=function(){return t})()}!function(t,e){for(var s=ru,i=t();;)try{if(491784===parseInt(s(134))/1+parseInt(s(127))/2*(-parseInt(s(141))/3)+parseInt(s(125))/4+parseInt(s(139))/5+parseInt(s(146))/6+parseInt(s(138))/7*(-parseInt(s(132))/8)+-parseInt(s(129))/9*(parseInt(s(130))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(nu);Zt((function(t,e){var s,i,r;s=Jt,i=function(t){var e,s,i=ru;return t[i(126)].ECB=((s=t[(e=i)(128)][e(140)][e(148)]())[e(145)]=s[e(148)]({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),s.Decryptor=s[e(148)]({processBlock:function(t,s){var i=e;this._cipher[i(135)](t,s)}}),s),t[i(126)][i(147)]},(r=ru)(142)==r(142)?t[r(136)]=i(sd):"undefined"===r(144)&&(void 0)[r(137)]?(void 0)([r(143),r(133)],i):i(s[r(131)])}));var ou=hu;function au(){var t=["331185XAOUVb","358VuyBDq","commonjsGlobal","./core","pad","Ansix923","4357360VGsmqD","7DYQgzu","2031400kyPKMt","./cipher-core","object","exports","words","AnsiX923","sigBytes","1278222WhFFMr","8018087wURokF","1434KhMvqM","createCommonjsModule","16XKwcdJ","amd","126mzfvpp","63888XaYxkw"];return(au=function(){return t})()}function hu(t,e){var s=au();return(hu=function(t,e){return s[t-=467]})(t,e)}!function(t,e){for(var s=hu,i=t();;)try{if(260326===-parseInt(s(469))/1*(-parseInt(s(476))/2)+-parseInt(s(475))/3*(-parseInt(s(471))/4)+-parseInt(s(483))/5+parseInt(s(467))/6*(-parseInt(s(482))/7)+-parseInt(s(474))/8*(parseInt(s(473))/9)+-parseInt(s(481))/10+parseInt(s(468))/11)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(au);$t[ou(470)]((function(t,e){var s,i,r,n=ou;s=$t[n(477)],i=function(t){var e=n;return t[e(479)][e(488)]={pad:function(t,s){var i=e,r=t.sigBytes,n=4*s,o=n-r%n,a=r+o-1;t.clamp(),t[i(487)][a>>>2]|=o<<24-a%4*8,t[i(489)]+=o},unpad:function(t){var s=e,i=255&t[s(487)][t[s(489)]-1>>>2];t.sigBytes-=i}},t.pad[e(480)]},(r=hu)(485)==r(485)?t[r(486)]=i(sd):i(s.CryptoJS)}));var cu=du;function lu(){var t=["CryptoJS","createCommonjsModule","535AxKAjk","exports","commonjsGlobal","create","./core","13455zllSwz","pad","81DLnIHj","sigBytes","object","2490vlwtZb","154FUApWX","32lCRgYC","lib","Iso10126","21611400zKNydT","amd","function","11903948dbprlN","15385fPjNMn","713050mfERbB","WordArray","273176HBYErt","concat","1242SblkiZ"];return(lu=function(){return t})()}function du(t,e){var s=lu();return(du=function(t,e){return s[t-=460]})(t,e)}!function(t,e){for(var s=du,i=t();;)try{if(943904===-parseInt(s(482))/1*(-parseInt(s(479))/2)+parseInt(s(462))/3*(parseInt(s(477))/4)+parseInt(s(474))/5*(parseInt(s(465))/6)+-parseInt(s(473))/7+parseInt(s(467))/8*(-parseInt(s(460))/9)+parseInt(s(475))/10*(parseInt(s(466))/11)+-parseInt(s(470))/12)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(lu);$t[cu(481)]((function(t,e){var s,i,r,n=cu;s=$t[n(484)],i=function(t){var e=n;return t[e(461)][e(469)]={pad:function(s,i){var r=e,n=4*i,o=n-s.sigBytes%n;s[r(478)](t.lib[r(476)].random(o-1))[r(478)](t[r(468)].WordArray[r(485)]([o<<24],1))},unpad:function(t){var s=e,i=255&t.words[t[s(463)]-1>>>2];t[s(463)]-=i}},t.pad[e(469)]},"object"===(r=du)(464)?t[r(483)]=i(sd):"undefined"===r(472)&&(void 0)[r(471)]?(void 0)([r(486),"./cipher-core"],i):i(s[r(480)])}));var uu=fu;function pu(){var t=["sigBytes","5494049hrCwGf","10enMqDv","Iso97971","create","3447768jZiFpm","pad","7FsjZHT","790086xZgSqU","function","ZeroPadding","880104cGrgJg","./core","443056QatZRX","25RQDcft","CryptoJS","unpad","concat","amd","lib","createCommonjsModule","WordArray","object","8376471nQyclE","1wEfIhK","232788JzYzFO","./cipher-core"];return(pu=function(){return t})()}!function(t,e){for(var s=fu,i=t();;)try{if(788731===parseInt(s(234))/1*(-parseInt(s(250))/2)+parseInt(s(248))/3+parseInt(s(235))/4+-parseInt(s(251))/5*(-parseInt(s(245))/6)+-parseInt(s(244))/7*(parseInt(s(242))/8)+parseInt(s(233))/9+-parseInt(s(239))/10*(parseInt(s(238))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(pu);$t[uu(230)]((function(t,e){var s,i,r;s=Jt,i=function(t){var e=fu;return t[e(243)][e(240)]={pad:function(s,i){var r=e;s[r(227)](t[r(229)][r(231)][r(241)]([2147483648],1)),t[r(243)][r(247)][r(243)](s,i)},unpad:function(s){var i=e;t[i(243)][i(247)][i(253)](s),s[i(237)]--}},t[e(243)][e(240)]},"object"===(r=fu)(232)?t.exports=i(sd):"undefined"===r(246)&&(void 0)[r(228)]?(void 0)([r(249),r(236)],i):i(s[r(252)])}));function fu(t,e){var s=pu();return(fu=function(t,e){return s[t-=227]})(t,e)}var mu=Au;function gu(){var t=["8676070ohsRKq","createCommonjsModule","195992QNNdKx","2ABLMuW","words","925254OVjzzE","578485dpRneg","CryptoJS","441018QRRdzc","pad","ZeroPadding","942qnUAmX","exports","16226smCqFX","sigBytes","commonjsGlobal","992992jQyJGf","126YdUvNX","amd","function","clamp","object"];return(gu=function(){return t})()}function Au(t,e){var s=gu();return(Au=function(t,e){return s[t-=476]})(t,e)}!function(t,e){for(var s=Au,i=t();;)try{if(229782===parseInt(s(484))/1*(-parseInt(s(489))/2)+-parseInt(s(486))/3+parseInt(s(497))/4+-parseInt(s(487))/5+-parseInt(s(492))/6*(parseInt(s(494))/7)+parseInt(s(483))/8*(parseInt(s(476))/9)+parseInt(s(481))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(gu);$t[mu(482)]((function(t,e){var s,i,r,n=mu;s=$t[n(496)],i=function(t){var e=n;return t.pad[e(491)]={pad:function(t,s){var i=e,r=4*s;t[i(479)](),t[i(495)]+=r-(t[i(495)]%r||r)},unpad:function(t){var s=e,i=t[s(485)],r=t[s(495)]-1;for(r=t[s(495)]-1;r>=0;r--)if(i[r>>>2]>>>24-r%4*8&255){t.sigBytes=r+1;break}}},t[e(490)].ZeroPadding},(r=Au)(480)==r(480)?t[r(493)]=i(sd):"undefined"===r(478)&&(void 0)[r(477)]?(void 0)(["./core","./cipher-core"],i):i(s[r(488)])}));function yu(t,e){var s=bu();return(yu=function(t,e){return s[t-=483]})(t,e)}function bu(){var t=["4zHUAeU","1576725LJIJkk","4304XAqkAx","pad","2572866kfIwgC","commonjsGlobal","CryptoJS","object","./cipher-core","408882eDLobC","4013842BKaPDp","NoPadding","647930QTYAar","amd","13419YQHTwd","208184oBnBLG"];return(bu=function(){return t})()}!function(t,e){for(var s=yu,i=t();;)try{if(291258===-parseInt(s(497))/1+parseInt(s(487))/2+parseInt(s(489))/3+parseInt(s(488))/4*(-parseInt(s(484))/5)+parseInt(s(492))/6+parseInt(s(498))/7+-parseInt(s(490))/8*(parseInt(s(486))/9))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(bu);Zt((function(t,e){var s,i,r,n=yu;s=$t[n(493)],i=function(t){var e=n;return t[e(491)][e(483)]={pad:function(){},unpad:function(){}},t[e(491)].NoPadding},(r=yu)(495)==r(495)?t.exports=i(sd):i(s[r(494)])}));var vu=Su;function Su(t,e){var s=wu();return(Su=function(t,e){return s[t-=244]})(t,e)}function wu(){var t=["createCommonjsModule","amd","13416kreMWl","ciphertext","toString","format","commonjsGlobal","exports","1169872JvOiDX","248yYfQWW","90tsHANq","object","Hex","2200599rJjszF","25rVgGSM","8175200Aapttt","CryptoJS","8909782mJJDDI","./cipher-core","create","1139361bwsZPM","298362hzPPeq"];return(wu=function(){return t})()}!function(t,e){for(var s=Su,i=t();;)try{if(755857===-parseInt(s(244))/1+-parseInt(s(254))/2+parseInt(s(248))/3*(parseInt(s(255))/4)+parseInt(s(260))/5*(-parseInt(s(245))/6)+parseInt(s(263))/7+-parseInt(s(261))/8+-parseInt(s(259))/9*(-parseInt(s(256))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(wu);$t[vu(246)]((function(t,e){var s,i,r,n=vu;s=$t[n(252)],i=function(t){var e,s,i,r,o=n;return e=Su,i=(s=t).lib.CipherParams,r=s.enc[e(258)],s[e(251)][e(258)]={stringify:function(t){var s=e;return t[s(249)][s(250)](r)},parse:function(t){var s=e,n=r.parse(t);return i[s(265)]({ciphertext:n})}},t[o(251)].Hex},(r=Su)(257)==r(257)?t[r(253)]=i(sd):i(s[r(262)])}));var Eu=Iu;function Iu(t,e){var s=Tu();return(Iu=function(t,e){return s[t-=133]})(t,e)}function Tu(){var t=["sigBytes","1322232vvMEdZ","16wovbYA","./evpkdf","655084WqxDRe","_createHelper","function","./enc-base64","_invKeySchedule","_doCryptBlock","createCommonjsModule","_nRounds","extend","2284668CxQGHj","_keyPriorReset","algo","object","_key","2617671HTEKJe","1125624DUfDDd","664165KYmYTT","AES","19589328oFgHHr","words"];return(Tu=function(){return t})()}!function(t,e){for(var s=Iu,i=t();;)try{if(385451===-parseInt(s(147))/1+-parseInt(s(138))/2+parseInt(s(144))/3+-parseInt(s(145))/4*(parseInt(s(139))/5)+-parseInt(s(156))/6+-parseInt(s(137))/7+parseInt(s(141))/8)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Tu);$t[Eu(153)]((function(t,e){var s,i,r;s=Jt,i=function(t){var e=Iu;return function(){var e=Iu,s=t,i=s.lib.BlockCipher,r=s[e(134)],n=[],o=[],a=[],h=[],c=[],l=[],d=[],u=[],p=[],f=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var s=0,i=0;for(e=0;e<256;e++){var r=i^i<<1^i<<2^i<<3^i<<4;r=r>>>8^255&r^99,n[s]=r,o[r]=s;var m=t[s],g=t[m],A=t[g],y=257*t[r]^16843008*r;a[s]=y<<24|y>>>8,h[s]=y<<16|y>>>16,c[s]=y<<8|y>>>24,l[s]=y,y=16843009*A^65537*g^257*m^16843008*s,d[r]=y<<24|y>>>8,u[r]=y<<16|y>>>16,p[r]=y<<8|y>>>24,f[r]=y,s?(s=m^t[t[t[A^m]]],i^=t[t[i]]):s=i=1}}();var m=[0,1,2,4,8,16,32,64,128,27,54],g=r[e(140)]=i[e(155)]({_doReset:function(){var t=e;if(!this[t(154)]||this[t(133)]!==this[t(136)]){for(var s=this[t(133)]=this[t(136)],i=s[t(142)],r=s[t(143)]/4,o=4*((this[t(154)]=r+6)+1),a=this._keySchedule=[],h=0;h<o;h++)h<r?a[h]=i[h]:(g=a[h-1],h%r?r>6&&h%r==4&&(g=n[g>>>24]<<24|n[g>>>16&255]<<16|n[g>>>8&255]<<8|n[255&g]):(g=n[(g=g<<8|g>>>24)>>>24]<<24|n[g>>>16&255]<<16|n[g>>>8&255]<<8|n[255&g],g^=m[h/r|0]<<24),a[h]=a[h-r]^g);for(var c=this[t(151)]=[],l=0;l<o;l++){if(h=o-l,l%4)var g=a[h];else g=a[h-4];c[l]=l<4||h<=4?g:d[n[g>>>24]]^u[n[g>>>16&255]]^p[n[g>>>8&255]]^f[n[255&g]]}}},encryptBlock:function(t,s){this[e(152)](t,s,this._keySchedule,a,h,c,l,n)},decryptBlock:function(t,s){var i=e,r=t[s+1];t[s+1]=t[s+3],t[s+3]=r,this[i(152)](t,s,this._invKeySchedule,d,u,p,f,o),r=t[s+1],t[s+1]=t[s+3],t[s+3]=r},_doCryptBlock:function(t,s,i,r,n,o,a,h){for(var c=this[e(154)],l=t[s]^i[0],d=t[s+1]^i[1],u=t[s+2]^i[2],p=t[s+3]^i[3],f=4,m=1;m<c;m++){var g=r[l>>>24]^n[d>>>16&255]^o[u>>>8&255]^a[255&p]^i[f++],A=r[d>>>24]^n[u>>>16&255]^o[p>>>8&255]^a[255&l]^i[f++],y=r[u>>>24]^n[p>>>16&255]^o[l>>>8&255]^a[255&d]^i[f++],b=r[p>>>24]^n[l>>>16&255]^o[d>>>8&255]^a[255&u]^i[f++];l=g,d=A,u=y,p=b}g=(h[l>>>24]<<24|h[d>>>16&255]<<16|h[u>>>8&255]<<8|h[255&p])^i[f++],A=(h[d>>>24]<<24|h[u>>>16&255]<<16|h[p>>>8&255]<<8|h[255&l])^i[f++],y=(h[u>>>24]<<24|h[p>>>16&255]<<16|h[l>>>8&255]<<8|h[255&d])^i[f++],b=(h[p>>>24]<<24|h[l>>>16&255]<<16|h[d>>>8&255]<<8|h[255&u])^i[f++],t[s]=g,t[s+1]=A,t[s+2]=y,t[s+3]=b},keySize:8});s[e(140)]=i[e(148)](g)}(),t[e(140)]},(r=Iu)(135)==r(135)?t.exports=i(sd):"undefined"===r(149)&&(void 0).amd?(void 0)(["./core",r(150),"./md5",r(146),"./cipher-core"],i):i(s.CryptoJS)}));function ku(t,e){var s=_u();return(ku=function(t,e){return s[t-=162]})(t,e)}function _u(){var t=["object","Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.","421784PFhzol","64871cpuFtg","_doCryptBlock","algo","840165ojXBBz","TripleDES","BlockCipher","_des1","CryptoJS","lib","length","./enc-base64","35hSkjxb","_des3","extend","createEncryptor","WordArray","49770WGqOwY","_key","commonjsGlobal","_rBlock","_lBlock","decryptBlock","./cipher-core","496328NfwMez","DES","_subKeys","words","./evpkdf","139694fpHvJQ","create","./md5","encryptBlock","slice","_createHelper","625116WSiGeN","_des2","call"];return(_u=function(){return t})()}!function(t,e){for(var s=ku,i=t();;)try{if(155046===parseInt(s(185))/1+-parseInt(s(173))/2+parseInt(s(201))/3+parseInt(s(184))/4+-parseInt(s(188))/5+-parseInt(s(179))/6+-parseInt(s(196))/7*(-parseInt(s(168))/8))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(_u);Zt((function(t,e){var s,i,r,n=ku;s=$t[n(163)],i=function(t){var e=n;return function(){var e=ku,s=t,i=s[e(193)],r=i[e(200)],n=i[e(190)],o=s[e(187)],a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],h=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],d=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],u=o.DES=n.extend({_doReset:function(){for(var t=e,s=this._key[t(171)],i=[],r=0;r<56;r++){var n=a[r]-1;i[r]=s[n>>>5]>>>31-n%32&1}for(var o=this[t(170)]=[],l=0;l<16;l++){var d=o[l]=[],u=c[l];for(r=0;r<24;r++)d[r/6|0]|=i[(h[r]-1+u)%28]<<31-r%6,d[4+(r/6|0)]|=i[28+(h[r+24]-1+u)%28]<<31-r%6;for(d[0]=d[0]<<1|d[0]>>>31,r=1;r<7;r++)d[r]=d[r]>>>4*(r-1)+3;d[7]=d[7]<<5|d[7]>>>27}var p=this._invSubKeys=[];for(r=0;r<16;r++)p[r]=o[15-r]},encryptBlock:function(t,s){this[e(186)](t,s,this._subKeys)},decryptBlock:function(t,s){this[e(186)](t,s,this._invSubKeys)},_doCryptBlock:function(t,s,i){var r=e;this[r(165)]=t[s],this[r(164)]=t[s+1],p[r(181)](this,4,252645135),p[r(181)](this,16,65535),f[r(181)](this,2,858993459),f.call(this,8,16711935),p[r(181)](this,1,1431655765);for(var n=0;n<16;n++){for(var o=i[n],a=this[r(165)],h=this._rBlock,c=0,u=0;u<8;u++)c|=l[u][((h^o[u])&d[u])>>>0];this._lBlock=h,this[r(164)]=a^c}var m=this._lBlock;this[r(165)]=this[r(164)],this._rBlock=m,p[r(181)](this,1,1431655765),f.call(this,8,16711935),f[r(181)](this,2,858993459),p[r(181)](this,16,65535),p.call(this,4,252645135),t[s]=this[r(165)],t[s+1]=this[r(164)]},keySize:2,ivSize:2,blockSize:2});function p(t,s){var i=e,r=(this[i(165)]>>>t^this[i(164)])&s;this._rBlock^=r,this[i(165)]^=r<<t}function f(t,s){var i=e,r=(this[i(164)]>>>t^this[i(165)])&s;this[i(165)]^=r,this[i(164)]^=r<<t}s[e(169)]=n[e(178)](u);var m=o.TripleDES=n[e(198)]({_doReset:function(){var t=e,s=this[t(162)][t(171)];if(2!==s[t(194)]&&4!==s[t(194)]&&s[t(194)]<6)throw new Error(t(183));var i=s[t(177)](0,2),n=s[t(194)]<4?s[t(177)](0,2):s.slice(2,4),o=s[t(194)]<6?s.slice(0,2):s.slice(4,6);this[t(191)]=u[t(199)](r.create(i)),this._des2=u[t(199)](r[t(174)](n)),this[t(197)]=u.createEncryptor(r[t(174)](o))},encryptBlock:function(t,s){var i=e;this[i(191)][i(176)](t,s),this[i(180)][i(166)](t,s),this._des3[i(176)](t,s)},decryptBlock:function(t,s){var i=e;this._des3.decryptBlock(t,s),this[i(180)].encryptBlock(t,s),this._des1.decryptBlock(t,s)},keySize:6,ivSize:2,blockSize:2});s[e(189)]=n[e(178)](m)}(),t[e(189)]},"object"===(r=ku)(182)?t.exports=i(sd):i(s[r(192)])}));var Cu=Du;function Ru(){var t=["exports","object","cfg","2647722xskXBC","80qiPMrj","12602480SmOXBg","call","drop","2418570NljBvS","_doReset","algo","./evpkdf","6uuELKf","27325aNREfe","29234733gOWuWn","6998337mJrvkn","words","function","RC4Drop","extend","./cipher-core","createCommonjsModule","CryptoJS","10LkMHdv","./core","58209ZYBNJg","lib","RC4","./enc-base64","8ZlhENx","StreamCipher"];return(Ru=function(){return t})()}!function(t,e){for(var s=Du,i=t();;)try{if(661953===parseInt(s(105))/1*(parseInt(s(104))/2)+-parseInt(s(117))/3*(-parseInt(s(127))/4)+parseInt(s(115))/5*(-parseInt(s(131))/6)+parseInt(s(126))/7+-parseInt(s(121))/8*(parseInt(s(107))/9)+-parseInt(s(128))/10+parseInt(s(106))/11)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Ru);$t[Cu(113)]((function(t,e){var s,i,r;s=Jt,i=function(t){var e=Du;return function(){var e=Du,s=t,i=s[e(118)][e(122)],r=s[e(102)],n=r[e(119)]=i.extend({_doReset:function(){for(var t=e,s=this._key,i=s[t(108)],r=s.sigBytes,n=this._S=[],o=0;o<256;o++)n[o]=o;o=0;for(var a=0;o<256;o++){var h=o%r,c=i[h>>>2]>>>24-h%4*8&255;a=(a+n[o]+c)%256;var l=n[o];n[o]=n[a],n[a]=l}this._i=this._j=0},_doProcessBlock:function(t,s){var i=e;t[s]^=o[i(129)](this)},keySize:8,ivSize:0});function o(){for(var t=this._S,e=this._i,s=this._j,i=0,r=0;r<4;r++){s=(s+t[e=(e+1)%256])%256;var n=t[e];t[e]=t[s],t[s]=n,i|=t[(t[e]+t[s])%256]<<24-8*r}return this._i=e,this._j=s,i}s.RC4=i._createHelper(n);var a=r[e(110)]=n.extend({cfg:n.cfg[e(111)]({drop:192}),_doReset:function(){var t=e;n[t(132)][t(129)](this);for(var s=this[t(125)][t(130)];s>0;s--)o[t(129)](this)}});s[e(110)]=i._createHelper(a)}(),t[e(119)]},"object"===(r=Du)(124)?t[r(123)]=i(sd):"undefined"===r(109)&&(void 0).amd?(void 0)([r(116),r(120),"./md5",r(103),r(112)],i):i(s[r(114)])}));function Du(t,e){var s=Ru();return(Du=function(t,e){return s[t-=102]})(t,e)}function Lu(t,e){var s=xu();return(Lu=function(t,e){return s[t-=388]})(t,e)}function xu(){var t=["object","126YbwzgX","words","_key","2233236mSRhaV","./cipher-core","3YFEkFP","4386180qiCUVa","494665TslFlX","cfg","33zITuNt","14NvFMtw","exports","call","commonjsGlobal","Rabbit","4441493Adcsbf","_createHelper","4766196xOPqWQ","lib","extend","282000NBZges","amd","function","55435UeYbyF","algo","6IqRicm"];return(xu=function(){return t})()}!function(t,e){for(var s=Lu,i=t();;)try{if(342735===parseInt(s(414))/1*(parseInt(s(401))/2)+parseInt(s(396))/3*(-parseInt(s(394))/4)+-parseInt(s(398))/5+parseInt(s(389))/6*(-parseInt(s(406))/7)+-parseInt(s(411))/8*(-parseInt(s(391))/9)+-parseInt(s(397))/10+-parseInt(s(400))/11*(-parseInt(s(408))/12))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(xu);Zt((function(t,e){var s,i,r;s=$t[Lu(404)],i=function(t){return function(){var e=Lu,s=t,i=s[e(409)].StreamCipher,r=s[e(388)],n=[],o=[],a=[],h=r[e(405)]=i[e(410)]({_doReset:function(){for(var t=e,s=this[t(393)][t(392)],i=this[t(399)].iv,r=0;r<4;r++)s[r]=16711935&(s[r]<<8|s[r]>>>24)|4278255360&(s[r]<<24|s[r]>>>8);var n=this._X=[s[0],s[3]<<16|s[2]>>>16,s[1],s[0]<<16|s[3]>>>16,s[2],s[1]<<16|s[0]>>>16,s[3],s[2]<<16|s[1]>>>16],o=this._C=[s[2]<<16|s[2]>>>16,4294901760&s[0]|65535&s[1],s[3]<<16|s[3]>>>16,4294901760&s[1]|65535&s[2],s[0]<<16|s[0]>>>16,4294901760&s[2]|65535&s[3],s[1]<<16|s[1]>>>16,4294901760&s[3]|65535&s[0]];for(this._b=0,r=0;r<4;r++)c[t(403)](this);for(r=0;r<8;r++)o[r]^=n[r+4&7];if(i){var a=i[t(392)],h=a[0],l=a[1],d=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),u=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),p=d>>>16|4294901760&u,f=u<<16|65535&d;for(o[0]^=d,o[1]^=p,o[2]^=u,o[3]^=f,o[4]^=d,o[5]^=p,o[6]^=u,o[7]^=f,r=0;r<4;r++)c[t(403)](this)}},_doProcessBlock:function(t,s){var i=e,r=this._X;c[i(403)](this),n[0]=r[0]^r[5]>>>16^r[3]<<16,n[1]=r[2]^r[7]>>>16^r[5]<<16,n[2]=r[4]^r[1]>>>16^r[7]<<16,n[3]=r[6]^r[3]>>>16^r[1]<<16;for(var o=0;o<4;o++)n[o]=16711935&(n[o]<<8|n[o]>>>24)|4278255360&(n[o]<<24|n[o]>>>8),t[s+o]^=n[o]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,s=0;s<8;s++)o[s]=e[s];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[7]>>>0?1:0,s=0;s<8;s++){var i=t[s]+e[s],r=65535&i,n=i>>>16,h=((r*r>>>17)+r*n>>>15)+n*n,c=((4294901760&i)*i|0)+((65535&i)*i|0);a[s]=h^c}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}s[e(405)]=i[e(407)](h)}(),t.Rabbit},"object"===(r=Lu)(390)?t[r(402)]=i(sd):"undefined"===r(413)&&(void 0)[r(412)]?(void 0)(["./core","./enc-base64","./md5","./evpkdf",r(395)],i):i(s.CryptoJS)}));var Pu=Bu;function Bu(t,e){var s=Mu();return(Bu=function(t,e){return s[t-=259]})(t,e)}function Mu(){var t=["cfg","./evpkdf","7fVCfEa","RabbitLegacy","239620tuMele","2590520gVZMzC","algo","call","11bQTtlU","2001468EyXSSi","words","StreamCipher","commonjsGlobal","extend","2836665tOKaQz","object","function","3015420UUeahg","amd","60zFTOHI","exports","CryptoJS","2Gjqmrw","createCommonjsModule","342977NmeXQS","./md5","972932zsnemK","./enc-base64","3vqSZtF","_key"];return(Mu=function(){return t})()}!function(t,e){for(var s=Bu,i=t();;)try{if(550165===-parseInt(s(267))/1*(parseInt(s(265))/2)+-parseInt(s(271))/3*(-parseInt(s(269))/4)+parseInt(s(277))/5*(parseInt(s(262))/6)+parseInt(s(275))/7*(parseInt(s(278))/8)+parseInt(s(287))/9+-parseInt(s(260))/10*(parseInt(s(281))/11)+-parseInt(s(282))/12)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Mu);$t[Pu(266)]((function(t,e){var s,i,r;s=$t[Pu(285)],i=function(t){return function(){var e=Bu,s=t,i=s.lib[e(284)],r=s[e(279)],n=[],o=[],a=[],h=r[e(276)]=i[e(286)]({_doReset:function(){var t=e,s=this[t(272)][t(283)],i=this[t(273)].iv,r=this._X=[s[0],s[3]<<16|s[2]>>>16,s[1],s[0]<<16|s[3]>>>16,s[2],s[1]<<16|s[0]>>>16,s[3],s[2]<<16|s[1]>>>16],n=this._C=[s[2]<<16|s[2]>>>16,4294901760&s[0]|65535&s[1],s[3]<<16|s[3]>>>16,4294901760&s[1]|65535&s[2],s[0]<<16|s[0]>>>16,4294901760&s[2]|65535&s[3],s[1]<<16|s[1]>>>16,4294901760&s[3]|65535&s[0]];this._b=0;for(var o=0;o<4;o++)c.call(this);for(o=0;o<8;o++)n[o]^=r[o+4&7];if(i){var a=i.words,h=a[0],l=a[1],d=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),u=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),p=d>>>16|4294901760&u,f=u<<16|65535&d;for(n[0]^=d,n[1]^=p,n[2]^=u,n[3]^=f,n[4]^=d,n[5]^=p,n[6]^=u,n[7]^=f,o=0;o<4;o++)c[t(280)](this)}},_doProcessBlock:function(t,s){var i=e,r=this._X;c[i(280)](this),n[0]=r[0]^r[5]>>>16^r[3]<<16,n[1]=r[2]^r[7]>>>16^r[5]<<16,n[2]=r[4]^r[1]>>>16^r[7]<<16,n[3]=r[6]^r[3]>>>16^r[1]<<16;for(var o=0;o<4;o++)n[o]=16711935&(n[o]<<8|n[o]>>>24)|4278255360&(n[o]<<24|n[o]>>>8),t[s+o]^=n[o]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,s=0;s<8;s++)o[s]=e[s];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[7]>>>0?1:0,s=0;s<8;s++){var i=t[s]+e[s],r=65535&i,n=i>>>16,h=((r*r>>>17)+r*n>>>15)+n*n,c=((4294901760&i)*i|0)+((65535&i)*i|0);a[s]=h^c}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}s.RabbitLegacy=i._createHelper(h)}(),t.RabbitLegacy},"object"===(r=Bu)(288)?t[r(263)]=i(sd):"undefined"===r(259)&&(void 0)[r(261)]?(void 0)(["./core",r(270),r(268),r(274),"./cipher-core"],i):i(s[r(264)])}));const Fu=Ou;function Ou(t,e){const s=Uu();return(Ou=function(t,e){return s[t-=386]})(t,e)}!function(t,e){const s=Ou,i=t();for(;;)try{if(975659===-parseInt(s(414))/1*(-parseInt(s(386))/2)+parseInt(s(402))/3+parseInt(s(392))/4+parseInt(s(405))/5+parseInt(s(416))/6*(parseInt(s(403))/7)+parseInt(s(396))/8*(-parseInt(s(419))/9)+parseInt(s(388))/10*(-parseInt(s(400))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Uu);$t[Fu(394)]((function(t,e){!function(e,s,i){const r=Ou;"object"===r(412)?t[r(390)]=s(sd):"undefined"===r(411)&&(void 0)[r(395)]?(void 0)([r(406),r(418),r(408),r(387),r(399)],s):s(e[r(397)])}(Jt,(function(t){const e=Ou;return function(){const e=Ou;var s=t,i=s[e(417)].BlockCipher,r=s[e(410)];const n=16,o=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var h={pbox:[],sbox:[]};function c(t,s){const i=e;let r=s>>24&255,n=s>>16&255,o=s>>8&255,a=255&s,h=t[i(404)][0][r]+t.sbox[1][n];return h^=t[i(404)][2][o],h+=t.sbox[3][a],h}function l(t,s,i){const r=e;let o,a=s,h=i;for(let e=0;e<n;++e)a^=t[r(415)][e],h=c(t,a)^h,o=a,a=h,h=o;return o=a,a=h,h=o,h^=t.pbox[16],a^=t[r(415)][17],{left:a,right:h}}var d=r.Blowfish=i.extend({_doReset:function(){const t=e;if(this._keyPriorReset!==this[t(393)]){var s=this[t(389)]=this[t(393)],i=s[t(398)],r=s[t(407)]/4;!function(t,s,i){const r=e;for(let e=0;e<4;e++){t[r(404)][e]=[];for(let s=0;s<256;s++)t[r(404)][e][s]=a[e][s]}let n=0;for(let e=0;e<18;e++)t[r(415)][e]=o[e]^s[n],n++,n>=i&&(n=0);let h=0,c=0,d=0;for(let e=0;e<18;e+=2)d=l(t,h,c),h=d.left,c=d[r(401)],t[r(415)][e]=h,t[r(415)][e+1]=c;for(let e=0;e<4;e++)for(let s=0;s<256;s+=2)d=l(t,h,c),h=d[r(409)],c=d.right,t[r(404)][e][s]=h,t[r(404)][e][s+1]=c}(h,i,r)}},encryptBlock:function(t,e){var s=l(h,t[e],t[e+1]);t[e]=s.left,t[e+1]=s.right},decryptBlock:function(t,s){const i=e;var r=function(t,s,i){const r=e;let n,o=s,a=i;for(let e=17;e>1;--e)o^=t[r(415)][e],a=c(t,o)^a,n=o,o=a,a=n;return n=o,o=a,a=n,a^=t[r(415)][1],o^=t[r(415)][0],{left:o,right:a}}(h,t[s],t[s+1]);t[s]=r[i(409)],t[s+1]=r[i(401)]},blockSize:2,keySize:4,ivSize:2});s[e(413)]=i[e(391)](d)}(),t[e(413)]}))}));function Uu(){const t=["words","./cipher-core","22027753ckfXVT","right","5426967tPZTFQ","7khkHXZ","sbox","3377750CGnQVt","./core","sigBytes","./md5","left","algo","function","object","Blowfish","14oaTuCF","pbox","2158674jNrlSM","lib","./enc-base64","8896086RgUJIt","30950sZAvsk","./evpkdf","10zDScDC","_keyPriorReset","exports","_createHelper","3622672MQcemB","_key","createCommonjsModule","amd","8qAQfpd","CryptoJS"];return(Uu=function(){return t})()}var Nu=ju;function ju(t,e){var s=Vu();return(ju=function(t,e){return s[t-=301]})(t,e)}function Vu(){var t=["8449506qUBcZI","./mode-ctr","./enc-base64url","./format-hex","./mode-cfb","./enc-utf16","./lib-typedarrays","./pad-ansix923","8168570cEFlUm","501760PSpQTn","createCommonjsModule","4mgXajx","./pad-nopadding","./cipher-core","./enc-base64","3647240YjYfQf","CryptoJS","./sha3","commonjsGlobal","1458525sktkLa","./pad-iso97971","10620354MmpbwU","./blowfish","2wpKfee","object","./pad-iso10126","./sha224","./hmac","./md5","./sha512","function","./evpkdf","exports","532146JjpftZ","./sha384","./mode-ofb","./tripledes","./mode-ctr-gladman","./sha256","./sha1","./rc4","./pad-zeropadding","./aes"];return(Vu=function(){return t})()}!function(t,e){for(var s=ju,i=t();;)try{if(919033===-parseInt(s(311))/1+-parseInt(s(301))/2*(parseInt(s(340))/3)+-parseInt(s(332))/4*(-parseInt(s(329))/5)+parseInt(s(342))/6+-parseInt(s(330))/7+-parseInt(s(336))/8+-parseInt(s(321))/9)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Vu);var zu=$t[Nu(331)]((function(t,e){var s,i,r;s=$t[Nu(339)],i=function(t){return t},(r=ju)(302)==r(302)?t[r(310)]=sd:"undefined"===r(308)&&(void 0).amd?(void 0)(["./core","./x64-core",r(327),r(326),r(335),r(323),r(306),r(317),r(316),r(304),r(307),r(312),r(338),"./ripemd160",r(305),"./pbkdf2",r(309),r(334),r(325),r(322),r(315),r(313),"./mode-ecb",r(328),r(303),r(341),r(319),r(333),r(324),r(320),r(314),r(318),"./rabbit","./rabbit-legacy",r(343)],i):s[r(337)]=s[r(337)]}));function Gu(t,e){const s=Wu();return(Gu=function(t,e){return s[t-=482]})(t,e)}function Wu(){const t=["232731ZhknBD","169616WvtdTV","654732PNlTxI","catch","119VADOTP","then","486670MTBURJ","WordArray","ModeOfOperation","get","1873630YZtdYi","slice","toString","144XpstWR","1648230ubmYcn","set","Counter","596475lmWwdw","length","4XoYEtf","create","decrypt"];return(Wu=function(){return t})()}function Hu(t){return t[3]|t[2]<<8|t[1]<<16|t[0]<<24}function Ku(t){const e=Gu,s=[];for(let i=0;i<t[e(488)];i+=1)s[i>>>2]|=t[i]<<24-i%4*8;return zu.lib[e(499)][e(490)](s,t[e(488)])}!function(t,e){const s=Gu,i=t();for(;;)try{if(232429===-parseInt(s(492))/1+-parseInt(s(489))/2*(-parseInt(s(487))/3)+-parseInt(s(494))/4+parseInt(s(502))/5+parseInt(s(484))/6+-parseInt(s(496))/7*(-parseInt(s(493))/8)+-parseInt(s(483))/9*(parseInt(s(498))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Wu),function(t,e){const s=ip,i=t();for(;;)try{if(483747===-parseInt(s(341))/1+-parseInt(s(344))/2+-parseInt(s(370))/3*(parseInt(s(343))/4)+parseInt(s(363))/5*(-parseInt(s(366))/6)+parseInt(s(356))/7*(-parseInt(s(354))/8)+parseInt(s(371))/9+-parseInt(s(360))/10*(-parseInt(s(364))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(cp);const Qu=16,Yu=[214,144,233,254,204,225,61,183,22,182,20,194,40,251,44,5,43,103,154,118,42,190,4,195,170,68,19,38,73,134,6,153,156,66,80,244,145,239,152,122,51,84,11,67,237,207,172,98,228,179,28,169,201,8,232,149,128,223,148,250,117,143,63,166,71,7,167,252,243,115,23,186,131,89,60,25,230,133,79,168,104,107,129,178,113,100,218,139,248,235,15,75,112,86,157,53,30,36,14,94,99,88,209,162,37,34,124,59,1,33,120,135,212,0,70,87,159,211,39,82,76,54,2,231,160,196,200,158,234,191,138,210,64,199,56,181,163,247,242,206,249,97,21,161,224,174,93,164,155,52,26,85,173,147,50,48,245,140,177,227,29,246,226,46,130,102,202,96,192,41,35,171,13,83,78,111,213,219,55,69,222,253,142,47,3,255,106,114,109,108,91,81,141,27,175,146,187,221,188,127,17,217,92,65,31,16,90,216,10,193,49,136,165,205,123,189,45,116,208,18,184,229,180,176,137,105,151,74,12,150,119,126,101,185,241,9,197,110,198,132,24,240,125,236,58,220,77,32,121,238,95,62,215,203,57,72],qu=[462357,472066609,943670861,1415275113,1886879365,2358483617,2830087869,3301692121,3773296373,4228057617,404694573,876298825,1347903077,1819507329,2291111581,2762715833,3234320085,3705924337,4177462797,337322537,808926789,1280531041,1752135293,2223739545,2695343797,3166948049,3638552301,4110090761,269950501,741554753,1213159005,1684763257];function Ju(t){const e=ip,s=[];for(let i=0,r=t[e(345)];i<r;i+=2)s[e(365)](parseInt(t[e(362)](i,2),16));return s}function Xu(t){const e=ip;return t[e(340)]((t=>{const s=e;return 1===(t=t[s(355)](16))[s(345)]?"0"+t:t}))[e(357)]("")}function Zu(t){const e=ip,s=[];for(let i=0,r=t[e(345)];i<r;i++){const r=t.codePointAt(i);if(r<=127)s.push(r);else if(r<=2047)s.push(192|r>>>6),s[e(365)](128|63&r);else if(r<=55295||r>=57344&&r<=65535)s[e(365)](224|r>>>12),s[e(365)](128|r>>>6&63),s[e(365)](128|63&r);else{if(!(r>=65536&&r<=1114111))throw s.push(r),new Error("input is not supported");i++,s.push(240|r>>>18&28),s.push(128|r>>>12&63),s[e(365)](128|r>>>6&63),s.push(128|63&r)}}return s}function $u(t){const e=ip,s=[];for(let i=0,r=t[e(345)];i<r;i++)t[i]>=240&&t[i]<=247?(s[e(365)](String[e(350)](((7&t[i])<<18)+((63&t[i+1])<<12)+((63&t[i+2])<<6)+(63&t[i+3]))),i+=3):t[i]>=224&&t[i]<=239?(s.push(String[e(350)](((15&t[i])<<12)+((63&t[i+1])<<6)+(63&t[i+2]))),i+=2):t[i]>=192&&t[i]<=223?(s[e(365)](String.fromCodePoint(((31&t[i])<<6)+(63&t[i+1]))),i++):s[e(365)](String.fromCodePoint(t[i]));return s[e(357)]("")}function tp(t,e){const s=31&e;return t<<s|t>>>32-s}function ep(t){return(255&Yu[t>>>24&255])<<24|(255&Yu[t>>>16&255])<<16|(255&Yu[t>>>8&255])<<8|255&Yu[255&t]}function sp(t){return t^tp(t,2)^tp(t,10)^tp(t,18)^tp(t,24)}function ip(t,e){const s=cp();return(ip=function(t,e){return s[t-=340]})(t,e)}function rp(t){return t^tp(t,13)^tp(t,23)}function np(t,e,s){const i=new Array(4),r=new Array(4);for(let e=0;e<4;e++)r[0]=255&t[4*e],r[1]=255&t[4*e+1],r[2]=255&t[4*e+2],r[3]=255&t[4*e+3],i[e]=r[0]<<24|r[1]<<16|r[2]<<8|r[3];for(let t,e=0;e<32;e+=4)t=i[1]^i[2]^i[3]^s[e+0],i[0]^=sp(ep(t)),t=i[2]^i[3]^i[0]^s[e+1],i[1]^=sp(ep(t)),t=i[3]^i[0]^i[1]^s[e+2],i[2]^=sp(ep(t)),t=i[0]^i[1]^i[2]^s[e+3],i[3]^=sp(ep(t));for(let t=0;t<16;t+=4)e[t]=i[3-t/4]>>>24&255,e[t+1]=i[3-t/4]>>>16&255,e[t+2]=i[3-t/4]>>>8&255,e[t+3]=255&i[3-t/4]}function op(t,e,s){const i=new Array(4),r=new Array(4);for(let e=0;e<4;e++)r[0]=255&t[0+4*e],r[1]=255&t[1+4*e],r[2]=255&t[2+4*e],r[3]=255&t[3+4*e],i[e]=r[0]<<24|r[1]<<16|r[2]<<8|r[3];i[0]^=2746333894,i[1]^=1453994832,i[2]^=1736282519,i[3]^=2993693404;for(let t,s=0;s<32;s+=4)t=i[1]^i[2]^i[3]^qu[s+0],e[s+0]=i[0]^=rp(ep(t)),t=i[2]^i[3]^i[0]^qu[s+1],e[s+1]=i[1]^=rp(ep(t)),t=i[3]^i[0]^i[1]^qu[s+2],e[s+2]=i[2]^=rp(ep(t)),t=i[0]^i[1]^i[2]^qu[s+3],e[s+3]=i[3]^=rp(ep(t));if(0===s)for(let t,s=0;s<16;s++)t=e[s],e[s]=e[31-s],e[31-s]=t}function ap(t,e,s){const i=ip;let{padding:r=i(351),mode:n,iv:o=[],output:a=i(358)}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(n===i(369)&&(typeof o===i(358)&&(o=Ju(o)),16!==o.length))throw new Error(i(353));if(typeof e===i(358)&&(e=Ju(e)),16!==e[i(345)])throw new Error(i(347));if(t="string"==typeof t?0!==s?Zu(t):Ju(t):[...t],("pkcs#5"===r||r===i(351))&&0!==s){const e=Qu-t[i(345)]%Qu;for(let s=0;s<e;s++)t[i(365)](e)}const h=new Array(32);op(e,h,s);const c=[];let l=o,d=t[i(345)],u=0;for(;d>=Qu;){const e=t[i(342)](u,u+16),r=new Array(16);if(n===i(369))for(let t=0;t<Qu;t++)0!==s&&(e[t]^=l[t]);np(e,r,h);for(let t=0;t<Qu;t++)n===i(369)&&0===s&&(r[t]^=l[t]),c[u+t]=r[t];"cbc"===n&&(l=0!==s?r:e),d-=Qu,u+=Qu}if((r===i(361)||r===i(351))&&0===s){const t=c[i(345)],e=c[t-1];for(let s=1;s<=e;s++)if(c[t-s]!==e)throw new Error(i(346));c[i(367)](t-e,e)}return a!==i(359)?0!==s?Xu(c):$u(c):c}function hp(t){return t[3]|t[2]<<8|t[1]<<16|t[0]<<24}function cp(){const t=["substr","440GDKAgD","27448102lABZVe","push","39126MDOflf","splice","includes","cbc","1713nKRPjj","7549605cOetwu","set","map","890134mdocCt","slice","652CPXbhM","1054898shFdcS","length","padding is invalid","key is invalid","byteLength","none","fromCodePoint","pkcs#7","arrayBuffer.length","iv is invalid","48krgDUF","toString","893522LkPpoG","join","string","array","10OQYbIZ","pkcs#5"];return(cp=function(){return t})()}function lp(){const t=["byteLength","9CUbOCu","464272SNAvsV","48SvavJu","385026OcgIaC","slice","260992RKUbzr","2190804nSsMka","119vBYZoJ","8900738heavrs","length","10JpWsTS","5fesWdj","622127dXdgWD","12393423jidtDg","set"];return(lp=function(){return t})()}function dp(t,e){const s=lp();return(dp=function(t,e){return s[t-=394]})(t,e)}function up(t,e,s){const i=dp;for(let r=2;r<t[i(406)];++r){const n=r-2,o=e[n%e[i(406)]],a=s[n%s[i(406)]];t[r]=t[r]^o^a}return t}function pp(t){return t[3]|t[2]<<8|t[1]<<16|t[0]<<24}function fp(t,e){var s=kp();return(fp=function(t,e){return s[t-=427]})(t,e)}function mp(t){return t[3]|t[2]<<8|t[1]<<16|t[0]<<24}!function(t,e){const s=dp,i=t();for(;;)try{if(997061===-parseInt(s(409))/1+-parseInt(s(403))/2+parseInt(s(397))/3*(-parseInt(s(402))/4)+-parseInt(s(408))/5*(-parseInt(s(400))/6)+-parseInt(s(404))/7*(-parseInt(s(398))/8)+-parseInt(s(394))/9*(parseInt(s(407))/10)+-parseInt(s(405))/11*(-parseInt(s(399))/12))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(lp),function(t,e){for(var s=fp,i=t();;)try{if(621163===-parseInt(s(437))/1*(-parseInt(s(441))/2)+parseInt(s(448))/3*(parseInt(s(432))/4)+-parseInt(s(429))/5*(parseInt(s(430))/6)+-parseInt(s(445))/7*(-parseInt(s(435))/8)+parseInt(s(438))/9+-parseInt(s(433))/10*(parseInt(s(431))/11)+-parseInt(s(434))/12)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(kp);const gp=new Array(214,144,233,254,204,225,61,183,22,182,20,194,40,251,44,5,43,103,154,118,42,190,4,195,170,68,19,38,73,134,6,153,156,66,80,244,145,239,152,122,51,84,11,67,237,207,172,98,228,179,28,169,201,8,232,149,128,223,148,250,117,143,63,166,71,7,167,252,243,115,23,186,131,89,60,25,230,133,79,168,104,107,129,178,113,100,218,139,248,235,15,75,112,86,157,53,30,36,14,94,99,88,209,162,37,34,124,59,1,33,120,135,212,0,70,87,159,211,39,82,76,54,2,231,160,196,200,158,234,191,138,210,64,199,56,181,163,247,242,206,249,97,21,161,224,174,93,164,155,52,26,85,173,147,50,48,245,140,177,227,29,246,226,46,130,102,202,96,192,41,35,171,13,83,78,111,213,219,55,69,222,253,142,47,3,255,106,114,109,108,91,81,141,27,175,146,187,221,188,127,17,217,92,65,31,16,90,216,10,193,49,136,165,205,123,189,45,116,208,18,184,229,180,176,137,105,151,74,12,150,119,126,101,185,241,9,197,110,198,132,24,240,125,236,58,220,77,32,121,238,95,62,215,203,57,72),Ap=new Array(2746333894,1453994832,1736282519,2993693404),yp=new Array(462357,472066609,943670861,1415275113,1886879365,2358483617,2830087869,3301692121,3773296373,4228057617,404694573,876298825,1347903077,1819507329,2291111581,2762715833,3234320085,3705924337,4177462797,337322537,808926789,1280531041,1752135293,2223739545,2695343797,3166948049,3638552301,4110090761,269950501,741554753,1213159005,1684763257);function bp(t,e,s,i,r){var n=fp,o=r;o=e+r>t[n(449)]&&i+r<=s[n(449)]?t[n(449)]-e:i+r>s[n(449)]&&e+r<=t[n(449)]?s[n(449)]-i:e+r<=t[n(449)]&&i+r<=s.length?r:s[n(449)]<t[n(449)]?s[n(449)]-i:t[n(449)]-i;for(var a=0;a<o;a++)s[a+i]=t[a+e]}function vp(t){return new Array(t>>24&255,t>>16&255,t>>8&255,255&t)}function Sp(t,e){var s=fp;return e+3<t[s(449)]?t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3]:e+2<t.length?t[e+1]<<16|t[e+2]<<8|t[e+3]:e+1<t[s(449)]?t[e]<<8|t[e+1]:t[e]}function wp(t){var e=new Array(36),s=function(t){for(var e=fp,s=Math[e(442)](t[e(449)]/4),i=new Array(s),r=0;r<t[e(449)];r++)t[r]=255&t[r];for(r=0;r<i[e(449)];r++)i[r]=Sp(t,4*r);return i}(t);e[0]=s[0]^Ap[0],e[1]=s[1]^Ap[1],e[2]=s[2]^Ap[2],e[3]=s[3]^Ap[3];for(var i=new Array(32),r=0;r<32;r++)e[r+4]=e[r]^Ep(e[r+1]^e[r+2]^e[r+3]^yp[r]),i[r]=e[r+4];return i}function Ep(t){var e=new Array(4),s=vp(t);e[0]=gp[255&s[0]],e[1]=gp[255&s[1]],e[2]=gp[255&s[2]],e[3]=gp[255&s[3]];var i=Sp(e,0);return i^(i<<13|i>>>19)^(i<<23|i>>>9)}function Ip(t,e){var s=new Array(36);s[0]=Sp(e,0),s[1]=Sp(e,4),s[2]=Sp(e,8),s[3]=Sp(e,12);for(var i=0;i<32;i++)s[i+4]=s[i]^Tp(s[i+1]^s[i+2]^s[i+3]^t[i]);var r=new Array(4);for(i=35;i>=32;i--)r[35-i]=s[i];return function(t){for(var e=fp,s=new Array(4*t.length),i=0;i<t[e(449)];i++)bp(vp(t[i]),0,s,4*i,4);return s}(r)}function Tp(t){var e=vp(t),s=new Array(4);s[0]=gp[255&e[0]],s[1]=gp[255&e[1]],s[2]=gp[255&e[2]],s[3]=gp[255&e[3]];var i=Sp(s,0);return i^(i<<2|i>>>30)^(i<<10|i>>>22)^(i<<18|i>>>14)^(i<<24|i>>>8)}function kp(){var t=["byteLength","iv is error!","1785xeWeJs","set","includes","3PoCuct","length","sm4 key is error!","log","cipher is error!","420miFKoc","38346cscYwa","396qbmiCH","741068krisdu","3350RUisbm","5389116JcYsZN","27248LsKsEX","min","87641wPuAWB","1933191TPodUW","slice","data is error!","8nWArek","ceil"];return(kp=function(){return t})()}function _p(t,e,s){var i=fp;if(null==t||null==t||t[i(449)]%16!=0)return console[i(427)]("sm4 key is error!"),null;if(null==s||null==s||s[i(449)]<=0)return console[i(427)](i(428)),null;if(null==e||null==e||e[i(449)]%16!=0)return console[i(427)](i(444)),null;for(var r=wp(t),n=Math[i(442)](s[i(449)]/16),o=new Array(s[i(449)]),a=e[i(439)](),h=0;h<n;h++){a=Ip(r,a);var c=new Array(16),l=16*h,d=Math[i(436)](l+16,s[i(449)]);bp(s,l,c,0,d-l);for(var u=0;u<d-l;u++)o[l+u]=c[u]^a[u]}return o}const Cp=Rp;function Rp(t,e){const s=Lp();return(Rp=function(t,e){return s[t-=315]})(t,e)}!function(t,e){const s=Rp,i=t();for(;;)try{if(189145===parseInt(s(545))/1*(-parseInt(s(403))/2)+-parseInt(s(550))/3+parseInt(s(448))/4+parseInt(s(393))/5*(-parseInt(s(444))/6)+-parseInt(s(371))/7+-parseInt(s(504))/8+-parseInt(s(321))/9*(-parseInt(s(453))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Lp);class Dp extends Bi{constructor(t){const e=Rp;super(),this.TAG_NAME=e(552),this[e(409)]=t,this[e(355)]=null,this[e(434)]=null,this[e(441)]=null,this[e(556)]=null,this[e(461)]=null,this.bufferStartDts=null,this[e(566)]=null,this[e(337)]=null,this[e(579)]=null,this[e(558)]=null,this.preTimestampDuration=0,this[e(529)]=0,this[e(438)]=!1,this[e(432)]=-1,this[e(390)]=-1,this.bufferList=[],this[e(340)]=[],this[e(462)]=[],this[e(411)]=null,this[e(542)]=null,this[e(364)]=null,this[e(360)]=!1,this[e(385)]=!1,this.nalUnitSize=null,this[e(381)]=null,this[e(510)]=null,this[e(525)](),this.listenPlaybackEvents()}[Cp(358)](){const t=Cp;this.clearStopInterval(),this.bufferList=[],this[t(340)]=[],this._tempSampleTsList=[],this[t(411)]=null,this[t(542)]=null,this.playbackStreamVideoFps=null,this[t(434)]=null,this[t(441)]=null,this[t(412)]=null,this.bufferStartLocalTs=null,this[t(556)]=null,this.preLoopTimestamp=null,this[t(337)]=null,this[t(558)]=null,this[t(452)]=0,this.prevPayloadBufferSize=0,this[t(381)]=null,this[t(510)]=null,this[t(438)]=!1,this[t(432)]=-1,this.pushLatestDelay=-1,this[t(360)]=!1,this[t(385)]=!1,this[t(414)]=null,this.off(),this[t(409)][t(423)]("CommonDemux",t(358))}[Cp(507)](){const t=Cp;this.player[t(375)]()&&this[t(409)][t(473)]()&&(this[t(409)][t(423)](this[t(465)],t(507)),this.player.on(M.playbackPause,this[t(492)].bind(this)))}[Cp(365)](){const t=Cp;return this[t(360)]||this[t(385)]}[Cp(387)](t,e){const s=Cp;if(!t||!this[s(409)][s(578)]())return-1;if(e===D[s(526)])return this.delay;if(this[s(556)]&&this[s(556)]>t)return this.preDelayTimestamp-t>1e3&&this[s(409)][s(546)]("CommonDemux",s(361)+this.preDelayTimestamp+" > timestamp is "+t+s(555)+(this[s(556)]-t)+"ms and return "+this[s(432)]),this[s(556)]=t,this.delay;if(this.firstTimestamp){if(t){const e=Date[s(433)]()-this[s(441)],i=t-this[s(434)];e>=i?(this[s(438)]=!1,this[s(432)]=e-i):(this.isStreamTsMoreThanLocal=!0,this[s(432)]=i-e)}}else this[s(434)]=t,this[s(441)]=Date[s(433)](),this[s(432)]=-1;return this[s(556)]=t,this[s(432)]}getDelayNotUpdateDelay(t,e){const s=Cp;if(!t||!this[s(409)][s(578)]())return-1;if(e===D[s(526)])return this[s(390)];if(this[s(556)]&&this[s(556)]-t>1e3)return this[s(409)][s(546)](s(552),s(354)+this[s(556)]+" > timestamp is "+t+s(555)+(this[s(556)]-t)+s(458)),-1;if(this[s(434)]){let e=-1;if(t){const i=Date[s(433)]()-this[s(441)],r=t-this[s(434)];e=i>=r?i-r:r-i}return e}return-1}[Cp(547)](){const t=Cp;this[t(434)]=null,this[t(441)]=null,this[t(432)]=-1,this[t(360)]=!1}[Cp(348)](){const t=Cp;this.resetDelay(),this[t(556)]=null}[Cp(525)](){const t=Cp;this[t(409)].isPlayVodMp4()?this[t(409)][t(423)](t(552),t(346)):this[t(409)][t(333)]()?this[t(409)][t(423)]("CommonDemux",t(331)):-1===this.player[t(336)]().indexOf(h[t(454)])?this.player[t(397)]()?this[t(409)].debugLog(t(552),t(511)):(this[t(409)][t(423)]("CommonDemux",t(570)),this[t(427)](),this.stopId=setInterval((()=>{const e=t;if(this[e(409)][e(429)]())return;let s=(new Date)[e(343)]();!this[e(461)]&&(this[e(461)]=s);const i=s-this[e(461)];this.updateHistoryIntervalDiffTimeList(i),i>100&&this[e(409)][e(546)]("CommonDemux",e(484)+i),this._loop(),this[e(461)]=(new Date)[e(343)]()}),20)):this[t(409)].debugLog("CommonDemux",t(471))}[Cp(384)](){const t=Cp;this.stopId&&(clearInterval(this[t(355)]),this.stopId=null),this[t(510)]=null}[Cp(487)](){this.initPlaybackCacheLoop()}[Cp(464)](t){const e=Cp;this[e(340)][e(554)]>5&&this[e(340)][e(518)](),this.historyIntervalDiffTimeList.push(t)}[Cp(402)](){const t=Cp;if(this[t(340)][t(554)]<5)return!1;for(let e=0;e<this.historyIntervalDiffTimeList.length;e++)if(this[t(340)][e]<900)return!1;return!0}[Cp(389)](){const t=Cp;this[t(384)]();for(let e=0;e<this[t(409)][t(509)]();e++)this[t(323)]();const e=Math[t(530)](1e3/this.playbackStreamFps);this[t(409)][t(423)](t(552),t(480)+e+t(379)+this[t(411)]),this[t(355)]=setInterval((()=>{const s=t,i=je();!this[s(510)]&&(this[s(510)]=i);for(let t=0;t<this[s(409)][s(509)]();t++)this[s(323)]();let r=i-this[s(510)],n=parseInt(r/e);n>1&&this[s(534)][s(554)]>0&&this[s(409)].debugWarn(s(552),s(341)+r+"ms and fragDuration is "+e+s(478)+n+s(497)+this.bufferList[s(554)]),this[s(510)]=i}),e)}[Cp(323)](){const t=Cp;let e=null;if(this.bufferList.length)if(e=this[t(534)].shift(),e[t(369)]===D[t(520)]){this.player[t(505)]()?e[t(436)]&&this[t(417)](e):this[t(417)](e);let s=this.bufferList[0];for(;s&&s[t(369)]===D[t(526)];)this[t(534)][t(518)](),this[t(409)][t(505)]()||this[t(417)](s),s=this[t(534)][0]}else if(e[t(369)]===D[t(526)]){this.player[t(505)]()||this._doDecoderDecode(e);let s=this[t(534)][0];for(;s;){if(e=this[t(534)][t(518)](),e.type===D.video){this[t(409)][t(505)]()?e[t(436)]&&this[t(417)](e):this[t(417)](e),s=null;break}e.type===D.audio&&(this[t(417)](e),s=this[t(534)][0])}}}_loop(){const t=Cp;let e;const s=this.player._opt.videoBuffer,i=this[t(409)][t(372)].videoBufferDelay,r=this[t(409)][t(372)][t(583)]===c.player;if(this[t(534)][t(554)]){if(this[t(385)])return void this[t(409)][t(546)](t(552),"_loop isPushDropping is true and bufferList length is "+this[t(534)].length);if(this[t(360)]){for(e=this[t(534)].shift(),this[t(409)][t(546)](t(552),t(325)+e.ts+t(392)+e[t(369)]+", data.isIFrame is "+e[t(436)]+", delay is "+this.delay+t(424)+this[t(534)][t(554)]);!e[t(436)]&&this[t(534)][t(554)];)e=this.bufferList[t(518)]();const s=this.getDelayNotUpdateDelay(e.ts,e[t(369)]);e.isIFrame&&s<=this.getNotDroppingDelayTs()&&(this.player.debugLog("CommonDemux",t(486)+this.delay),this[t(360)]=!1,this[t(417)](e),this._decodeNext(e))}else if(this[t(409)][t(576)]()||this[t(409)][t(377)]()||0===s||this[t(409)][t(514)]())for(;this[t(534)][t(554)];)e=this[t(534)][t(518)](),this._doDecoderDecode(e);else if(e=this[t(534)][0],-1===this[t(387)](e.ts,e[t(369)]))this[t(409)][t(423)](t(552),t(401)+e.ts+" data.type is "+e[t(369)]),this[t(534)][t(518)](),this[t(417)](e),this[t(329)](e);else if(this.delay>i+s&&r)this.hasIframeInBufferList()?(this[t(409)][t(546)](t(552),t(519)+this.delay+", set dropping is true"),this[t(348)](),this[t(360)]=!0,this.player[t(472)]({isDropping:!0})):(this[t(534)][t(518)](),this._doDecoderDecode(e),this[t(329)](e));else for(;this.bufferList.length;){if(e=this.bufferList[0],!(this[t(387)](e.ts,e[t(369)])>s)){this.delay<0&&this.player[t(546)](t(552),t(519)+this.delay+" bufferList is "+this[t(534)]);break}this.bufferList[t(518)](),this._doDecoderDecode(e)}}else-1!==this[t(432)]&&this[t(409)][t(423)]("CommonDemux",t(324)),this.resetAllDelay()}[Cp(422)](t,e,s,i){const r=Cp;let n=arguments[r(554)]>4&&void 0!==arguments[4]?arguments[4]:0;const o=this[r(409)];let a={ts:s,cts:n,type:e,isIFrame:!1};this[r(409)][r(442)]()?(e===D[r(520)]&&o[r(372)].playType===c[r(409)]&&this[r(503)](s),o[r(372)][r(463)]&&!o._opt[r(515)]?(e===D[r(520)]&&(a[r(436)]=i),this[r(496)](t,a)):o[r(372)][r(581)]?(e===D.video&&(a[r(436)]=i),this[r(496)](t,a)):(e===D[r(520)]&&(a.isIFrame=i),this[r(496)](t,a))):this[r(409)][r(576)]()?(e===D[r(520)]&&(a[r(436)]=i),this.player[r(397)]()?this[r(496)](t,a):this.player[r(505)]()?e===D[r(520)]&&i&&this[r(496)](t,a):1===this.player[r(509)]()?this[r(496)](t,a):this[r(496)](t,a,!1)):this[r(409)][r(514)]()&&(e===D.video&&(a[r(436)]=i),this[r(496)](t,a))}[Cp(540)](t,e,s,i){const r=Cp;let n=arguments[r(554)]>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments[r(554)]>5&&void 0!==arguments[5]?arguments[5]:r(431);if(this[r(409)][r(429)]())return void this[r(409)][r(423)](this[r(465)],r(500));let a=!1;if(e===D.audio&&pe(t)&&(this[r(409)].debugLog(r(552),o+r(420)+s+r(468)),a=!0,this[r(409)][r(561)]())){const e=new Uint8Array(t);this[r(409)][r(415)][r(577)](e,s)}let h=!1;if(e===D[r(520)]&&i&&ai(t)&&(this[r(409)][r(423)](r(552),o+r(356)+s+r(416)),h=!0,this[r(409)][r(561)]())){const e=new Uint8Array(t);this[r(409)][r(415)][r(469)](e,s)}this[r(409)][r(408)]&&ci(h)&&ci(a)&&this[r(332)](t,e,s,i,n),e===D[r(520)]?this[r(409)].isPlayVod()&&ci(this[r(409)].isPlayVodUseMSE())&&this[r(409)].playVod&&this[r(409)][r(488)][r(418)]()?i&&this._doDecoderDecode({ts:s,cts:n,payload:t,type:D[r(520)],isIFrame:i}):this[r(417)]({ts:s,cts:n,payload:t,type:D[r(520)],isIFrame:i}):e===D[r(526)]&&(this[r(409)][r(514)]()&&ci(this[r(409)].isPlayVodUseMSE())&&this[r(409)][r(488)]&&this[r(409)][r(488)].isRateMoreThanMaxRate()||this[r(417)]({ts:s,payload:t,type:D[r(526)]}))}[Cp(575)](t,e,s,i){let r=arguments[Cp(554)]>4&&void 0!==arguments[4]?arguments[4]:0;this._doDecode(t,e,s,i,r)}[Cp(351)](t,e,s,i){const r=Cp;let n=arguments[r(554)]>4&&void 0!==arguments[4]?arguments[4]:0;this[r(422)](t,e,s,i,n)}[Cp(456)](t,e,s,i){const r=Cp;let n=arguments[r(554)]>4&&void 0!==arguments[4]?arguments[4]:0;this[r(422)](t,e,s,i,n)}[Cp(538)](t,e,s,i){const r=Cp;let n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;this._doDecodeByHls(t,e,s,i,n,r(330))}[Cp(329)](t){const e=Cp,s=t.ts;if(0===this[e(534)][e(554)])return;let i=this[e(534)][0];const r=i.ts-s,n=t[e(369)]===D.video&&i[e(369)]===D[e(526)],o=t[e(369)]===D[e(520)]&&ai(t[e(470)]);(r<=20||n||o)&&(this[e(409)].debugLog(e(552),e(363)+t[e(369)]+" and\n ts is "+s+e(475)+i[e(369)]+e(477)+i.ts+e(459)+r+" and isVideoAndNextAudio is "+n+e(394)+o),this.bufferList.shift(),this[e(417)](i))}_doDecoderDecode(t){const e=Cp,s=this[e(409)],{webcodecsDecoder:i,mseDecoder:r}=s;this[e(409)][e(442)]()&&this[e(409)][e(472)]({buf:this[e(432)]}),t.type===D.audio?s[e(372)].hasAudio&&(s._opt[e(581)]&&s[e(372)][e(564)]?r.decodeAudio(t.payload,t.ts):s._opt[e(463)]&&s[e(372)][e(373)]?i[e(508)](t[e(470)],t.ts):s[e(357)]&&s[e(357)][e(508)](t[e(470)],t.ts)):t[e(369)]===D[e(520)]&&(s._opt.isEmitSEI&&this[e(535)](t[e(470)],t.ts),s[e(372)][e(463)]&&!s[e(372)][e(515)]?i[e(571)](t[e(470)],t.ts,t[e(436)],t[e(370)]):s[e(372)][e(581)]?r[e(571)](t[e(470)],t.ts,t.isIFrame,t[e(370)]):s[e(357)]&&s.decoderWorker[e(571)](t.payload,t.ts,t[e(436)]))}[Cp(496)](t,e){const s=Cp;let i=!(arguments[s(554)]>2&&void 0!==arguments[2])||arguments[2];const r=this.player[s(372)][s(533)],n=this[s(409)][s(372)][s(383)],o=this[s(409)][s(442)]();if(e.type===D[s(526)]&&pe(t)){if(this[s(409)][s(423)](s(552),"pushBuffer() audio ts is "+e.ts+s(468)),this[s(409)][s(561)]()){const i=new Uint8Array(t);this.player[s(415)][s(577)](i,e.ts)}this._doDecoderDecode({ts:e.ts,payload:t,type:D[s(526)]})}else if(e[s(369)]===D[s(520)]&&e[s(436)]&&ai(t)){if(this[s(409)][s(423)](s(552),"pushBuffer() video ts is "+e.ts+", isVideoSequenceHeader is true"),this[s(409)][s(561)]()){const i=new Uint8Array(t);this[s(409)][s(415)][s(469)](i,e.ts)}this[s(417)]({ts:e.ts,payload:t,type:D[s(520)],isIFrame:e.isIFrame,cts:e.cts})}else{if(this[s(409)].recording&&this[s(332)](t,e[s(369)],e.ts,e[s(436)],e[s(370)]),o){if(e[s(369)]===D[s(520)]){if(this[s(452)]>0){const t=e.ts-this[s(558)],i=2*this[s(452)];t>=i&&this.player[s(423)]("CommonDemux",s(367)+e[s(436)]+s(522)+e.ts+s(479)+this[s(558)]+s(494)+t+s(347)+this.preTimestampDuration+s(350)+i+s(328))}if(null!==this.preTimestamp&&this[s(558)]>=e.ts&&(this[s(409)][s(546)]("CommonDemux",s(367)+e.isIFrame+s(395)+e.ts+s(339)+this.preTimestamp+s(374)+t.byteLength+" and prevPayloadBufferSize is "+this[s(529)]),this[s(558)]-e.ts>w&&(this.player[s(546)](s(552),s(489)+e.ts+s(359)+this[s(558)]+s(399)+(this[s(558)]-e.ts)+s(555)+w+s(521)),this[s(348)]()),this[s(409)]._opt[s(455)]&&ci(e[s(436)])&&this[s(409)][s(578)]())){const t=this[s(421)](),e=ci(this[s(385)]);return this[s(409)].debugLog(s(552),s(388)+t+" and isNotPushDropping is "+e+s(349)),void(t&&e?this.dropBuffer$2():this.clearBuffer(!0))}this[s(558)]>0&&(this[s(452)]=e.ts-this[s(558)]),this.prevPayloadBufferSize=t.byteLength,this[s(558)]=e.ts}if(this[s(409)][s(578)]()){let t=this[s(428)](e.ts,e.type);this[s(390)]=t;const i=n+r;this.delay>0&&t>i&&this[s(432)]<i&&this.hasIframeInBufferList()&&!1===this[s(385)]&&(this[s(409)][s(546)](s(552),"pushLatestDelay is "+t+s(376)+(n+r)+s(549)+this[s(534)][s(554)]+s(326)+this[s(432)]+s(382)),this[s(528)]()),this[s(402)]()&&ci(this[s(409)].visibility)&&(this[s(409)][s(372)][s(581)]?this[s(421)]()&&!1===this[s(385)]&&(this.player.debugWarn(s(552),s(353)+this.historyIntervalDiffTimeList[s(560)](",")+s(517)+this[s(534)][s(554)]+s(481)+this[s(432)]+s(382)),this.dropBuffer$2()):this.hasIframeInBufferList()&&!1===this.isPushDropping&&(this[s(409)][s(546)]("CommonDemux",s(368)+this[s(340)].join(",")+s(517)+this[s(534)][s(554)]+s(481)+this[s(432)]+s(382)),this[s(528)]()))}}i?e.type===D[s(526)]?this[s(534)][s(335)]({ts:e.ts,payload:t,type:D[s(526)]}):e.type===D[s(520)]&&this[s(534)][s(335)]({ts:e.ts,cts:e.cts,payload:t,type:D[s(520)],isIFrame:e[s(436)]}):e.type===D.video?this[s(417)]({ts:e.ts,cts:e[s(370)],payload:t,type:D[s(520)],isIFrame:e[s(436)]}):e[s(369)]===D.audio&&this[s(417)]({ts:e.ts,payload:t,type:D[s(526)]}),this[s(565)]()}}[Cp(565)](){const t=Cp;if(this.player[t(397)]()&&ys(this[t(364)])){let e=$s(this[t(534)],D.video);if(e>0)this[t(364)]=e,this[t(409)][t(520)]&&this[t(409)].video[t(449)](this[t(364)]),this[t(411)]=e,this.initPlaybackCacheLoop();else{const s=this[t(534)].map((t=>({type:t.type,ts:t.ts})));this.player.debugLog("CommonDemux",t(498)+e+t(446)+this.bufferList[t(554)]+t(573)+JSON.stringify(s));const i=100;this[t(534)][t(554)]>=i&&(this[t(409)][t(546)](t(552),"playbackCacheBeforeDecodeForFpsRender, bufferListLength is "+this[t(534)][t(554)]+t(555)+i+t(366)),this[t(364)]=25,this[t(409)][t(520)]&&this[t(409)].video[t(449)](this[t(364)]),this[t(411)]=this[t(364)],this[t(389)]())}}}[Cp(528)](){const t=Cp;if(this[t(534)][t(554)]>0){let e=this.bufferList.findIndex((e=>{const s=t;return hi(e.isIFrame)&&e[s(369)]===D[s(520)]}));if(this[t(483)]())for(let s=0;s<this[t(534)][t(554)];s++){const i=this[t(534)][s],r=this[t(428)](i.ts,i[t(369)]);if(r>=this[t(539)]()){this[t(409)].debugLog(t(552),"dropBuffer$2() isAllIframeInBufferList() is true, and index is "+s+t(551)+r+t(499)+this.getNotDroppingDelayTs()),e=s;break}}if(e>=0){this[t(385)]=!0,this[t(409)].updateStats({isDropping:!0});const s=this[t(534)][t(554)];this[t(534)]=this[t(534)][t(451)](e);const i=this[t(534)][t(518)]();this[t(348)](),this[t(387)](i.ts,i[t(369)]),this[t(417)](i),this[t(385)]=!1,this[t(409)][t(423)]("CommonDemux",t(319)+e+t(447)+s+" ,and new bufferList length is "+this[t(534)][t(554)]+t(516)+this[t(432)]+" ")}else this[t(385)]=!1}0===this[t(534)][t(554)]&&(this[t(385)]=!1)}clearBuffer(){const t=Cp;let e=arguments[t(554)]>0&&void 0!==arguments[0]&&arguments[0];this[t(409)][t(423)](t(552),t(405)+this[t(534)][t(554)]+t(386)+e+t(513)+this[t(409)]._opt.checkFirstIFrame),e&&(this.bufferList=[]),this[t(409)][t(442)]()&&(this[t(348)](),hi(this[t(409)][t(372)].checkFirstIFrame)&&(this[t(360)]=!0,this.player[t(472)]({isDropping:!0}))),this.player[t(398)]()}[Cp(503)](t){const e=Cp;if(!(this[e(409)][e(578)]()&&t>0))return;null===this[e(412)]?(this[e(412)]=t,this[e(566)]=je()):t<this[e(412)]&&(this[e(409)][e(546)]("CommonDemux",e(338)+t+" and bufferStartDts is "+this[e(412)]),this[e(412)]=t,this[e(566)]=je());let s=t-this[e(412)],i=je()-this[e(566)],r=i>s?i-s:0;if(r>this[e(409)][e(372)].networkDelay&&this[e(409)][e(372)].playType===c[e(409)]){let n=!1;null===this[e(381)]&&(n=!0,this[e(381)]=je());const o=je();(o-this[e(381)]>=1e3||n)&&(this[e(409)][e(546)]("CommonDemux","delay is more than networkDelay and now dts:"+t+e(563)+this[e(412)]+e(440)+s+e(419)+i+" ,delay is "+r+e(474)+this[e(409)]._opt[e(523)]),this[e(409)].emit(M.networkDelayTimeout,r),this.prevEmitNetworkDelayTimestamp=o)}this[e(409)][e(472)]({netBuf:r})}[Cp(553)](t){const e=Cp;if(null===this[e(337)])this.preIframeTs=t;else if(this[e(337)]<t){const s=t-this[e(337)];this[e(409)]&&(this[e(409)].videoIframeIntervalTs=s),this[e(337)]=t}}[Cp(532)](t){}[Cp(539)](){const t=Cp;return this[t(409)][t(372)].videoBuffer+this[t(409)][t(372)][t(383)]/2}getMaxDelayTs(){const t=Cp;return this.player[t(372)][t(533)]+this[t(409)][t(372)][t(383)]}getPushLatestDelay(){return this.pushLatestDelay}[Cp(568)](){const t=Cp;let e=0;return this[t(534)].forEach((s=>{s[t(369)]===D.video&&(e+=1)})),e}[Cp(320)](){const t=Cp;let e=0;return this.bufferList[t(460)]((s=>{s[t(369)]===D.audio&&(e+=1)})),e}[Cp(421)](){const t=Cp;return this[t(534)][t(443)]((e=>{const s=t;return e.type===D[s(520)]&&e[s(436)]}))}[Cp(483)](){const t=Cp,e=this[t(568)]();let s=0;return this[t(534)][t(460)]((e=>{const i=t;e.type===D[i(520)]&&e.isIFrame&&(s+=1)})),e===s}getInputByteLength(){return 0}[Cp(466)](){return this[Cp(438)]}[Cp(344)](){}[Cp(537)](){}[Cp(535)](t,e){const s=Cp;let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=4;vs(this.nalUnitSize)&&(r=this[s(414)]);const n=Le(t[s(451)](5),r);if(ci(i)){const t=this.player[s(450)]();t&&t.encType&&(i=t.encType===W[s(557)])}n.forEach((t=>{const r=s,n=i?t[0]>>>1&63:31&t[0],o=i&&(n===q[r(457)]||n===q[r(559)]),a=ci(i)&&n===Y[r(410)];if(o||a){const s=xe(t,i);this.player.emitVideoSei({ts:e,data:s[r(470)]})}}))}handleRecording(t,e,s,i,r){const n=Cp;if(this[n(409)][n(561)]()){const i=new Uint8Array(t);e===D[n(520)]?this[n(409)][n(415)][n(342)](i,s):e===D.audio&&this[n(409)][n(415)].addAudio(i,s)}else if(this[n(409)].isRecordTypeMp4()){const o=new Uint8Array(t);if(this[n(409)][n(415)][n(430)]()){if(e===D[n(520)])this[n(409)][n(415)][n(567)](o[n(451)](5),i,s,r);else if(e===D[n(526)]){const e=new Uint8Array(t);this[n(409)].recorder[n(491)](fe(e)?e[n(451)](2):e[n(451)](1),s)}}else e===D[n(520)]&&this[n(409)].recorder[n(567)](o[n(451)](5),i,s,r)}}[Cp(506)](t){const e=Cp,s=15&t[0];this[e(409)][e(520)][e(490)]({encTypeCode:s});const i=s===G[e(557)];this[e(414)]=function(t,e){let s=null;return e?t[Ce(202)]>=28&&(s=1+(3&t[26])):t.length>=12&&(s=1+(3&t[9])),s}(t,i),this.player[e(423)](this[e(465)],"demux() isVideoSequenceHeader is true and isHevc is "+i+e(543)+this[e(414)])}[Cp(425)](t,e){const s=Cp;let i=this.player,r=t;if(i._opt.isM7sCrypto)if(i[s(372)][s(512)]&&i[s(372)][s(512)].byteLength>0&&i[s(372)].cryptoIV&&i[s(372)][s(541)][s(400)]>0){const e=this.player[s(520)].getVideoInfo();e[s(435)]?r=function(t,e,s){const i=Gu;let r=arguments[i(488)]>3&&void 0!==arguments[3]&&arguments[3];e=new Uint8Array(e),s=new Uint8Array(s);const n=t.byteLength;let o=5;for(;o<n;){let a=Hu(t.slice(o,o+4));if(a>n)break;let h=t[o+4],c=!1;if(r?(h=h>>>1&63,c=[0,1,2,3,4,5,6,7,8,9,16,17,18,19,20,21].includes(h)):(h&=31,c=1===h||5===h),c){const r=t[i(503)](o+4+2,o+4+a);let n=new(Zl[i(500)].ctr)(e,new(Zl[i(486)])(s));const h=n[i(491)](r);n=null,t[i(485)](h,o+4+2)}o=o+4+a}return t}(t,i[s(372)][s(512)],i[s(372)].cryptoIV,e[s(435)]===G[s(557)]):i[s(546)](this[s(465)],s(582)+e[s(435)])}else i.debugError(this[s(465)],s(327)+(i[s(372)].cryptoKey&&i[s(372)][s(512)][s(400)])+s(315)+(i._opt[s(541)]&&i._opt[s(541)].byteLength)+s(391));else if(i._opt[s(524)])if(i[s(372)].sm4CryptoKey){const e=this.player[s(520)][s(450)]()[s(435)]===G[s(557)],n=this.player[s(372)].isSm4CryptoH265V2;r=i[s(372)][s(512)]&&i._opt[s(512)][s(400)]>0&&i[s(372)][s(541)]&&i[s(372)].cryptoIV[s(400)]>0?function(t,e,s){var i=fp;let r=arguments[i(449)]>3&&void 0!==arguments[3]&&arguments[3],n=arguments[i(449)]>4&&void 0!==arguments[4]&&arguments[4];e=new Uint8Array(e),s=new Uint8Array(s);const o=t[i(443)];let a=5;for(;a<o;){let h=mp(t[i(439)](a,a+4));if(h>o)break;let c=t[a+4],l=!1,d=2;if(r?(n&&(d=3),c=c>>>1&63,l=[0,1,2,3,4,5,6,7,8,9,16,17,18,19,20,21][i(447)](c)):(c&=31,l=1===c||5===c),l){const r=_p(e,s,t[i(439)](a+4+d,a+4+h));t[i(446)](r,a+4+d)}a=a+4+h}return t}(t,i[s(372)][s(512)],i[s(372)].cryptoIV,e,n):function(t,e){const s=ip;let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments[s(345)]>3&&void 0!==arguments[3]&&arguments[3];const n=t[s(348)];let o=new Uint8Array(t.slice(0,5)),a=5;for(;a<n;){const h=t[s(342)](a,a+4);let c=hp(h);if(c>n){const e=new Uint8Array(o.length+t[s(345)]-a);e[s(372)](o,0),e[s(372)](t[s(342)](a),o.length),o=e;break}let l=t[a+4],d=!1,u=2;if(i?(r&&(u=3),l=l>>>1&63,d=[0,1,2,3,4,5,6,7,8,9,16,17,18,19,20,21][s(368)](l)):(l&=31,d=1===l||5===l),d){const i=ap(t.slice(a+4+u,a+4+c),e,0,{padding:s(349),output:s(359)});let r=i[i[s(345)]-1];if(r>0&&r<16){let t=!0;for(let e=1;e<=r;e++)if(i[i[s(345)]-e]!==r){t=!1;break}t&&i[s(367)](i[s(345)]-r,r)}const n=new Uint8Array(u);n[s(372)](t[s(342)](a+4,a+4+u),0);const h=Pe(oc(n,new Uint8Array(i))),l=new Uint8Array(o.length+h[s(345)]);l[s(372)](o,0),l[s(372)](h,o.length),o=l}else{const e=t[s(342)](a+4,a+4+c),i=new Uint8Array(o[s(345)]+4+e[s(345)]);i[s(372)](o,0),i.set(h,o.length),i[s(372)](e,o.length+4),o=i}a=a+4+c}return o}(t,i[s(372)][s(404)],e,n)}else!i[s(372)][s(404)]&&i[s(396)](this.TAG_NAME,s(495));else if(i[s(372)][s(352)])if(i[s(372)].cryptoKey&&i._opt[s(512)][s(400)]>0&&i[s(372)].cryptoIV&&i[s(372)][s(541)][s(400)]>0){const e=this.player.video[s(450)]();r=function(t,e,s){const i=dp;let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const n=t.byteLength;let o=5;for(;o<n;){let a=pp(t[i(401)](o,o+4));if(a>n)break;let h=t[o+4],c=!1;if(r?(h=h>>>1&63,c=[0,1,2,3,4,5,6,7,8,9,16,17,18,19,20,21].includes(h)):(h&=31,c=1===h||5===h),c){const r=up(t[i(401)](o+4,o+4+a),e,s);t.set(r,o+4)}o=o+4+a}return t}(t,i[s(372)][s(512)],i[s(372)].cryptoIV,e[s(435)]===G.h265)}else i.debugError(this[s(465)],s(493));return r}cryptoPayloadAudio(t){const e=Cp;let s=this[e(409)];if(ci(s[e(372)][e(322)]))return t;let i=t;if(s[e(372)][e(531)])if(s._opt[e(512)]&&s[e(372)][e(512)][e(400)]>0&&s[e(372)][e(541)]&&s[e(372)][e(541)][e(400)]>0){t[0]>>4===H.AAC&&(i=function(t,e,s){const i=Gu;if(t.byteLength<=30)return t;const r=t.slice(32);let n=new(Zl[i(500)].ctr)(e,new(Zl[i(486)])(s));const o=n[i(491)](r);return n=null,t[i(485)](o,32),t}(t,s[e(372)].cryptoKey,s[e(372)][e(541)]))}else s[e(396)](this[e(465)],"isM7sCrypto cryptoKey.length is "+(s[e(372)][e(512)]&&s[e(372)][e(512)][e(400)])+e(315)+(s[e(372)].cryptoIV&&s[e(372)][e(541)].byteLength)+e(391));else if(s._opt[e(352)])if(s[e(372)][e(512)]&&s._opt[e(512)][e(400)]>0&&s._opt[e(541)]&&s[e(372)].cryptoIV.byteLength>0){t[0]>>4===H.AAC&&(i=function(t,e,s){const i=dp;if(t[i(396)]<=30)return t;const r=up(t[i(401)](30),e,s);return t[i(395)](r,30),t}(t,s._opt[e(512)],s[e(372)][e(541)]))}else s[e(396)](this.TAG_NAME,e(439)+(s._opt[e(512)]&&s[e(372)][e(512)].byteLength)+e(315)+(s[e(372)].cryptoIV&&s._opt[e(541)][e(400)])+" null");return i}[Cp(562)](t,e){const s=Cp,i=t[0],r=48&i,n=15&i,o=t[s(451)](1,5),a=new ArrayBuffer(4),h=new Uint32Array(a),c="a"==String[s(407)](o[0]);if(n===Rt[s(482)]){if(r===Dt.FT_KEY){const e=t[s(451)](5);if(c)this.player.debugError(this[s(465)],"isAV1 is true, not support and can contact author wx:bosswancheng");else{const t=new Uint8Array(5+e[s(554)]);t.set([28,0,0,0,0],0),t[s(467)](e,5),this.updateNalUnitSize(t),this[s(409)][s(423)](this[s(465)],"demux() isVideoSequenceHeader(enhancedH265) is true and nalUnitSize is "+this[s(414)]),this[s(422)](t,D.video,0,!0,0)}}}else if(n===Rt[s(345)]){let i=t,n=0;const o=r===Dt.FT_KEY;if(o&&this.calcIframeIntervalTimestamp(e),c)this.player[s(396)](this[s(465)],"isAV1 is true, not support and can contact author wx:bosswancheng");else{h[0]=t[4],h[1]=t[3],h[2]=t[2],h[3]=0,n=h[0];i=Bh(t[s(451)](8),o),i=this[s(425)](i,o),this[s(422)](i,D[s(520)],e,o,n)}}else if(n===Rt[s(544)]){const i=r===Dt[s(445)],n=t.slice(5);i&&this.calcIframeIntervalTimestamp(e);let o=Bh(n,i);o=this[s(425)](o,i),this[s(422)](o,D[s(520)],e,i,0)}else this[s(409)][s(423)](this[s(465)],"demux() isEnhancedH265Header is true and packetEx is "+n+" and ignore")}[Cp(548)](t){return 128==(128&t)}handlePlaybackPause(t){const e=Cp;hi(t)?this.clearStopInterval():this[e(487)]()}[Cp(527)](t){const e=Cp,s=t[e(580)]((t=>{const s=e;return{ts:t.dts||t[s(502)],type:t[s(369)]}}));this._tempSampleTsList=this._tempSampleTsList[e(501)](s);const i=$s(this._tempSampleTsList,D[e(520)]);if(i)this[e(409)][e(423)](this[e(465)],e(572)+i+e(406)+this._basefps),i<10&&this[e(409)][e(546)](this[e(465)],"_calcDecodeFps() video fps is "+i+e(413)),this[e(362)]=i,this._tempSampleTsList=[],this._postMessageToLoopWorker(e(380),{baseFps:this[e(362)]});else if(this[e(409)].debugLog(this.TAG_NAME,e(317)),this[e(462)][e(554)]>200)return this[e(409)][e(423)](this[e(465)],e(426)+this[e(362)]),this[e(462)]=[],this[e(318)](e(380),{baseFps:this[e(362)]}),!0;return null!==i}[Cp(574)](){const t=Cp;return!this[t(409)][t(378)]()}[Cp(536)](){const t=Cp;return this[t(534)][t(554)]}geVodLoadedTime(){return 0}[Cp(437)](t){const e=Cp;let s=arguments[e(554)]>1&&void 0!==arguments[1]?arguments[1]:5;const i=t[e(485)]||[];for(let t=0;t<i[e(554)]-1;t++){const r=i[t],n=i[t+1];r.dts>=n.dts&&(this[e(409)][e(546)](this[e(465)],e(476)+r[e(334)]+e(569)+n.dts+e(316)),n[e(334)]=r[e(334)]+s)}}}function Lp(){const t=["isM7sCrypto cryptoKey.length is ","\n maybe trigger black screen or flower screen","_decodeNext","mp4","initInterval() and is hls and support hls265 so return","handleRecording","isUseHls265","dts","push","getStreamType","preIframeTs","calcNetworkDelay dts is "," less than (or equal) preTs is ","historyIntervalDiffTimeList","playbackCacheLoop sync frame duration is ","addVideo","getTime","close","PACKET_TYPE_FRAMES","initInterval() and is vod mp4 so return"," and preTsDuration is ","resetAllDelay"," and next drop buffer"," and maxDiff is ","_doDecodeByTs","isXorCrypto","useMSE, page visibility is false and\n history interval diff is ","getDelayNotUpdateDelay() and preDelayTimestamp is ","stopId"," pushBuffer video ts is ","decoderWorker","destroy",", preTimestamp is ","dropping","getDelay() and preDelayTimestamp is ","_basefps","decode data type is ","playbackStreamVideoFps","isDropping",", and set streamFps is 25","pushBuffer() video and isIFrame is ","useWCS, page visibility is false and\n history interval diff is ","type","cts","723415AsMRqL","_opt","wcsDecodeAudio"," and\n payloadBufferSize is ","isPlaybackPauseNotClearCacheAndCacheBeforeDecodeAndUseFpsRender"," > ","isPlayUseMSE","isUseMSE",", playbackStreamFps is ","updateBaseFps","prevEmitNetworkDelayTimestamp"," and dropBuffer$2()","videoBufferDelay","clearStopInterval","isPushDropping",", need clear is ","getDelay","pushBuffer(), isDropSameTimestampGop is true and\n hasIframe is ","initPlaybackCacheLoop","pushLatestDelay"," null",", data.type is ","5nfHbbE"," and isVideoSqeHeader is "," and\n ts is ","debugError","isPlaybackCacheBeforeDecodeForFpsRender","decoderCheckFirstIFrame",",\n diff is ","byteLength","delay is -1 and data.ts is ","isHistoryIntervalDiffTimeAllLarge","18cBFSPd","sm4CryptoKey","clearBuffer,buffer length is ",", update base fps is ","fromCharCode","recording","player","kSliceSEI","playbackStreamFps","bufferStartDts"," ,maybe play slowly","nalUnitSize","recorder",", isVideoSequenceHeader is true","_doDecoderDecode","isRateMoreThanMaxRate",",local diff is "," pushBuffer audio ts is ","hasIframeInBufferList","_doDecode","debugLog"," ,buffer list is ","cryptoPayload","_calcDecodeFps() _tempSampleTsList is more than 200, clear and use base fps update ","_loop","getDelayNotUpdateDelay","isDestroyedOrClosed","isWasmMp4","hls","delay","now","firstTimestamp","encTypeCode","isIFrame","correctSamplePts","isStreamTsMoreThanLocal","isXorCrypto cryptoKey.length is ",", vs start is ","startTimestamp","isPlayer","some","2214726dNdELR","FT_KEY",", bufferListLength is ",",and old bufferList length is ","810300feKznD","setStreamFps","getVideoInfo","slice","preTimestampDuration","10jqOWys","worker","isDropSameTimestampGop","_doDecodeByPs","suffixSei","ms and return -1","\n diff is ","forEach","preLoopTimestamp","_tempSampleTsList","useWCS","updateHistoryIntervalDiffTimeList","TAG_NAME","getIsStreamTsMoreThanLocal","set",", isAacCodecPacket is true","addVideoSequenceHeader","payload","initInterval() and is worker stream so return","updateStats","isStreamTypeNotWorker",", _opt.networkDelay is "," next data type is ","correctSamplePts dts, dts: "," ts is ","ms and diffFps is ",", preTs is ","initPlaybackCacheLoop() and fragDuration is ",",\n delay is ","PACKET_TYPE_SEQ_START","isAllIframeInBufferList","loop demux diff time is ","samples","_loop data isIFrame is true and delay is ","startPlaybackLoopInterval","playVod","pushBuffer() video\n ts is ","updateVideoInfo","handleAddAudioTrack","handlePlaybackPause","isXorCrypto opt.xorCryptoKey is null",",\n diff is ","isSm4Crypto opt.sm4CryptoKey is null","pushBuffer",", and bufferList length is ","playbackCacheBeforeDecodeForFpsRender, calc streamVideoFps is "," and notDroppingDelayTs is ","_doDecodeByHls() player is destroyed or closed","concat","pts","calcNetworkDelay","99064chJvTH","isPlaybackOnlyDecodeIFrame","updateNalUnitSize","listenPlaybackEvents","decodeAudio","getPlaybackRate","prevPlaybackCacheLoopTimestamp","initInterval() and playback and playbackIsCacheBeforeDecodeForFpsRender is true so return","cryptoKey"," and _opt.checkFirstIFrame is ","isPlayVod","useOffscreen"," and new delay is "," and\n bufferList is ","shift","_loop delay is ","video","\n and resetAllDelay()"," and\n ts is ","networkDelay","isSm4Crypto","initInterval","audio","_calcDecodeFps","dropBuffer$2","prevPayloadBufferSize","ceil","isM7sCrypto","calcBufferFps","videoBuffer","bufferList","findSei","getBufferListLength","reset","_doDecodeByMp4","getNotDroppingDelayTs","_doDecodeByHls","cryptoIV","playbackStreamAudioFps"," and nalUnitSize is ","PACKET_TYPE_FRAMESX","27734qmkJTv","debugWarn","resetDelay","_isEnhancedH265Header",", bufferList is ","137553JkzAwe"," and tempDelay is ","CommonDemux","calcIframeIntervalTimestamp","length"," more than ","preDelayTimestamp","h265","preTimestamp","prefixSei","join","isRecordTypeFlv","_decodeEnhancedH265Video",",start dts is ","mseDecodeAudio","calcPlaybackStreamFps","bufferStartLocalTs","handleAddNaluTrack","getVideoBufferLength",", next dts: ","setInterval()","decodeVideo","_calcDecodeFps() video fps is "," and ts list is ","_isUseWorker","_doDecodeByFmp4","isPlayback","addAACSequenceHeader","isDemuxDecodeFirstIIframeInit","preFrameTs","map","useMSE","videoInfo.encTypeCode is ","playType"," or cryptoIV.length is "," and update next dts increase 5ms","_calcDecodeFps() streamVideoFps is null","_postMessageToLoopWorker","dropBuffer$2() iFrameIndex is ","getAudioBufferLength","6901884ndypHl","isCryptoAudio","doPlaybackCacheLoop","loop() bufferList is empty and reset delay","_loop is dropping and data.ts is ",", delay is "];return(Lp=function(){return t})()}function xp(t,e){const s=Up();return(xp=function(t,e){return s[t-=258]})(t,e)}const Pp=xp;!function(t,e){const s=xp,i=t();for(;;)try{if(700380===-parseInt(s(264))/1*(-parseInt(s(276))/2)+-parseInt(s(271))/3*(parseInt(s(283))/4)+parseInt(s(285))/5*(-parseInt(s(278))/6)+parseInt(s(265))/7*(-parseInt(s(292))/8)+-parseInt(s(306))/9+parseInt(s(307))/10*(-parseInt(s(295))/11)+parseInt(s(266))/12*(parseInt(s(262))/13))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Up);var Bp=function(t,e,s,i){return new(s||(s=Promise))((function(r,n){const o=xp;function a(t){const e=xp;try{c(i[e(268)](t))}catch(t){n(t)}}function h(t){const e=xp;try{c(i[e(279)](t))}catch(t){n(t)}}function c(t){const e=xp;var i;t[e(301)]?r(t[e(277)]):(i=t.value,i instanceof s?i:new s((function(t){t(i)})))[e(263)](a,h)}c((i=i.apply(t,e||[]))[o(268)]())}))};const Mp=Symbol(32),Fp=Symbol(16),Op=Symbol(8);function Up(){const t=["then","1237TWOjHC","3143OxsEtG","180iMnXlO","byteOffset","next","close","demand","27TkwUnF","set","writeU8","reject","return","1856niSmkI","value","6ZMIDkX","throw","write","Unsupported type","readU16","390308KMMHMF","setG","5518295OQZGpJ","malloc","read","U32","readU32","number","U16","3048bDlqwg","flush","lastReadPromise","551001PWagXL","length","subarray","need","EOF","writeU32","done","call","resolve","consumed","consume","507222IEeUmS","70pFbfbv","buffer","byteLength","writeU16","pull","copyWithin","1830712DDIFCZ"];return(Up=function(){return t})()}class Np{constructor(t){const e=xp;this.g=t,this[e(304)]=0,t&&(this[e(298)]=t[e(268)]()[e(277)])}[Pp(284)](t){const e=Pp;this.g=t,this[e(270)](t[e(268)]()[e(277)],!0)}[Pp(305)](){const t=Pp;this[t(308)]&&this[t(304)]&&(this.buffer[t(261)](0,this[t(304)]),this.buffer=this[t(308)][t(297)](0,this.buffer[t(296)]-this[t(304)]),this[t(304)]=0)}[Pp(270)](t,e){const s=Pp;return e&&this[s(305)](),this[s(298)]=t,this[s(293)]()}read(t){return Bp(this,void 0,void 0,(function*(){const e=xp;return this[e(294)]&&(yield this[e(294)]),this.lastReadPromise=new Promise(((s,i)=>{const r=e;var n;this[r(274)]=i,this.resolve=t=>{const e=r;delete this.lastReadPromise,delete this[e(303)],delete this[e(298)],s(t)};this[r(270)](t,!0)||null===(n=this.pull)||void 0===n||n[r(302)](this,t)}))}))}[Pp(289)](){return this[Pp(287)](Mp)}[Pp(282)](){return this[Pp(287)](Fp)}readU8(){return this.read(Op)}[Pp(269)](){const t=Pp;var e;this.g&&this.g[t(275)](),this.buffer&&this[t(308)][t(297)](0,0),null===(e=this[t(274)])||void 0===e||e.call(this,new Error(t(299))),delete this[t(294)]}[Pp(293)](){const t=Pp;if(!this[t(308)]||!this[t(298)])return;let e=null;const s=this[t(308)].subarray(this[t(304)]);let i=0;const r=e=>s[t(296)]<(i=e);if(typeof this[t(298)]===t(290)){if(r(this[t(298)]))return;e=s[t(297)](0,i)}else if(this[t(298)]===Mp){if(r(4))return;e=s[0]<<24|s[1]<<16|s[2]<<8|s[3]}else if(this[t(298)]===Fp){if(r(2))return;e=s[0]<<8|s[1]}else if(this[t(298)]===Op){if(r(1))return;e=s[0]}else if(t(308)in this.need){if("byteOffset"in this.need){if(r(this[t(298)][t(258)]-this[t(298)].byteOffset))return;new Uint8Array(this[t(298)][t(308)],this[t(298)][t(267)]).set(s[t(297)](0,i)),e=this.need}else if(this.g)return void this.g[t(279)](new Error(t(281)))}else{if(r(this[t(298)].byteLength))return;new Uint8Array(this[t(298)])[t(272)](s.subarray(0,i)),e=this[t(298)]}return this[t(304)]+=i,this.g?this[t(270)](this.g.next(e)[t(277)],!0):this[t(303)]&&this[t(303)](e),e}[Pp(280)](t){const e=Pp;if(t instanceof Uint8Array?this[e(286)](t[e(296)])[e(272)](t):e(308)in t?this[e(286)](t[e(258)])[e(272)](new Uint8Array(t[e(308)],t.byteOffset,t[e(258)])):this[e(286)](t[e(258)]).set(new Uint8Array(t)),!this.g&&!this[e(303)])return new Promise((t=>this[e(260)]=t));this.flush()}[Pp(300)](t){const e=Pp;this[e(286)](4).set([t>>24&255,t>>16&255,t>>8&255,255&t]),this[e(293)]()}[Pp(259)](t){this.malloc(2).set([t>>8&255,255&t]),this.flush()}[Pp(273)](t){const e=Pp;this[e(286)](1)[0]=t,this[e(293)]()}[Pp(286)](t){const e=Pp;if(this[e(308)]){const s=this.buffer[e(296)],i=s+t;if(i<=this[e(308)].buffer[e(258)]-this[e(308)][e(267)])this[e(308)]=new Uint8Array(this.buffer.buffer,this[e(308)][e(267)],i);else{const t=new Uint8Array(i);t[e(272)](this[e(308)]),this[e(308)]=t}return this[e(308)][e(297)](s,i)}return this[e(308)]=new Uint8Array(t),this[e(308)]}}Np[Pp(288)]=Mp,Np[Pp(291)]=Fp,Np.U8=Op;const jp=Vp;function Vp(t,e){const s=zp();return(Vp=function(t,e){return s[t-=267]})(t,e)}function zp(){const t=["4384580oeUErW","updateNalUnitSize","demuxStart","debugLog","FlvDemux","cryptoPayload","90210pHaubO","updateStats","22524DcLfSK","length","slice","_isEnhancedH265Header","player","demux","_doDecode","buffer","audio","input","TAG_NAME","destroy","payload.length is ","keyFrame","_decodeEnhancedH265Video","6876340fCKtnq","182zxeQSg","byteLength"," and ignore","demux() codecId is ","dispatch() this.input is null","debugWarn","scriptData","_opt","hasVideo","isRecordTypeFlv","3416005IGprfa","demux() type is ","1qtqOrg","299952PhsDhp","hasAudio","_times","addMetaData","56gxxeSJ","onMetaData","write","demux() isIFrame is false and unit type is IDR and update to true","video","close","nalUnitSize"," less than 6 and ignore","h264","calcIframeIntervalTimestamp","448582WcfcnZ"];return(zp=function(){return t})()}!function(t,e){const s=Vp,i=t();for(;;)try{if(566299===-parseInt(s(316))/1*(-parseInt(s(279))/2)+-parseInt(s(288))/3+parseInt(s(280))/4+-parseInt(s(314))/5+parseInt(s(286))/6*(parseInt(s(304))/7)+-parseInt(s(269))/8*(-parseInt(s(317))/9)+-parseInt(s(303))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(zp);class Gp extends Dp{constructor(t){const e=Vp;super(t),this.TAG_NAME=e(284),this.input=new Np(this[e(293)]()),t[e(283)](this[e(298)],"init")}[jp(299)](){const t=jp;super[t(299)](),this[t(297)]&&(this[t(297)][t(274)](),this[t(297)]=null),this[t(292)][t(283)](this[t(298)],"destroy")}dispatch(t){const e=jp;this[e(297)]?this[e(297)][e(271)](t):this[e(292)]&&this.player[e(309)](this[e(298)],e(308))}*[jp(293)](){const t=jp;yield 9;const e=new ArrayBuffer(4),s=new Uint8Array(e),i=new Uint32Array(e),r=this.player;for(;;){if(!this.input)return;s[3]=0;const e=yield 15,n=e[4];s[0]=e[7],s[1]=e[6],s[2]=e[5];const o=i[0];s[0]=e[10],s[1]=e[9],s[2]=e[8],s[3]=e[11];let a=i[0];const h=(yield o)[t(290)]();if(!r)return;switch(n){case L.audio:if(r[t(311)][t(318)]&&(r[t(287)]({abps:h[t(305)]}),h[t(305)]>0)){let e=this.cryptoPayloadAudio(h);this[t(294)](e,D[t(296)],a)}break;case L[t(273)]:if(r[t(311)][t(312)]&&h[t(289)]>=6){let e=a;r.updateStats({vbps:h[t(305)],dts:e}),!r[t(267)][t(282)]&&(r[t(267)][t(282)]=je());const s=h[0];if(this[t(291)](s))this[t(302)](h,e);else{const e=15&s;let r=(s>>4&15)===bt[t(301)];const n=e===G.h265,o=e===G[t(277)];if(ci(n||o))return void this[t(292)][t(309)](this[t(298)],t(307)+e+t(306));ci(r)&&hi(gi(h,n))&&(this[t(292)][t(283)](this[t(298)],t(272)),r=!0),r&&(this[t(278)](a),null===this[t(275)]&&ai(h)&&this[t(281)](h)),i[0]=h[4],i[1]=h[3],i[2]=h[2],i[3]=0;let c=i[0],l=this[t(285)](h,r);this[t(294)](l,D[t(273)],a,r,c)}}else h[t(289)]<6&&r[t(309)](this[t(298)],t(300)+h.length+t(276));break;case L[t(310)]:if(this.player[t(313)]()){const e=new Uint8Array(h);this[t(292)].recorder[t(268)](e)}const e=Bc(h);e&&e[t(270)]&&r.updateMetaData(e[t(270)]);break;default:r.debugLog(this[t(298)],t(315)+n)}}}close(){const t=jp;this[t(297)]&&(this.input[t(274)](),this[t(297)]=null)}getInputByteLength(){const t=jp;let e=0;return this[t(297)]&&this[t(297)].buffer&&(e=this[t(297)][t(295)][t(305)]),e}}function Wp(){const t=["video","72620MEvopK","8ruTXed","_isEnhancedH265Header","getUint32","cryptoPayloadAudio","M7sDemux","7514360dLCNrI","debugWarn","init","getUint8","player","and return","_times","10913514SAxGsB","280WggoFf","30129684UCferl","dv byteLength is","14011893aSQaSs","22MeqOuY","_opt","192192cDBQhl","destroy","calcIframeIntervalTimestamp","dispatch","byteLength","393lGsoba","_doDecode","updateStats","7jUWdZE","hasVideo","TAG_NAME","demuxStart","13982ywYLfI"];return(Wp=function(){return t})()}const Hp=Kp;function Kp(t,e){const s=Wp();return(Kp=function(t,e){return s[t-=344]})(t,e)}!function(t,e){const s=Kp,i=t();for(;;)try{if(994416===-parseInt(s(360))/1+parseInt(s(372))/2*(parseInt(s(365))/3)+parseInt(s(354))/4*(parseInt(s(374))/5)+parseInt(s(353))/6*(parseInt(s(368))/7)+parseInt(s(375))/8*(-parseInt(s(357))/9)+-parseInt(s(346))/10*(-parseInt(s(358))/11)+-parseInt(s(355))/12)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Wp);class Qp extends Dp{constructor(t){const e=Kp;super(t),this[e(370)]=e(345),t.debugLog(this[e(370)],e(348))}destroy(){const t=Kp;super[t(361)](),this[t(350)].debugLog(this.TAG_NAME,t(361))}[Hp(363)](t){const e=Hp,s=this.player,i=new DataView(t),r=i[e(349)](0),n=i[e(377)](1,!1),o=new ArrayBuffer(4),a=new Uint32Array(o);switch(r){case D.audio:if(s[e(359)].hasAudio){const i=new Uint8Array(t,5);if(s[e(367)]({abps:i[e(364)]}),i[e(364)]>0){const t=this[e(344)](i);this[e(366)](t,r,n)}}break;case D[e(373)]:if(s[e(359)][e(369)])if(!s[e(352)][e(371)]&&(s._times[e(371)]=je()),i[e(364)]>=11){const o=new Uint8Array(t,5);let h=n;s[e(367)]({vbps:o[e(364)],dts:h});const c=o[0];if(this[e(376)](c))this._decodeEnhancedH265Video(o,n);else{const t=i[e(349)](5)>>4==1;t&&this[e(362)](n),a[0]=o[4],a[1]=o[3],a[2]=o[2],a[3]=0;let s=a[0],h=this.cryptoPayload(o,t);this[e(366)](h,r,n,t,s)}}else this[e(350)][e(347)](this[e(370)],"dispatch",e(356),i[e(364)],e(351))}}}var Yp=qp;function qp(t,e){var s=Jp();return(qp=function(t,e){return s[t-=107]})(t,e)}function Jp(){var t=["debugLog","30uMvbsP","6zPrnME","init","WebTransportDemux","315133PmqcGg","272026PIehoj","3674153niiZhd","3JvWxZZ","235BEseGS","1433333mGQLZO","46908dTJfzD","8014392IDxfIU","TAG_NAME","player","9UCxdAJ","3408880OAbVVA","destroy"];return(Jp=function(){return t})()}!function(t,e){for(var s=qp,i=t();;)try{if(275703===parseInt(s(123))/1+parseInt(s(124))/2*(parseInt(s(108))/3)+-parseInt(s(111))/4*(parseInt(s(109))/5)+parseInt(s(120))/6*(parseInt(s(107))/7)+-parseInt(s(116))/8*(parseInt(s(115))/9)+parseInt(s(119))/10*(-parseInt(s(110))/11)+parseInt(s(112))/12)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Jp);class Xp extends Gp{constructor(t){var e=qp;super(t),this[e(113)]=e(122),t[e(118)](e(122),e(121))}[Yp(117)](){var t=Yp;super.destroy(),this[t(114)][t(118)](t(122),"destroy")}}const Zp=tf;function $p(){const t=["readUShort","index","readEG","2233aTvtVV","byteLength","readBits","4QHOlnH","bitsAvailable","234tIgUkj","19625848GphgFR","27CvZxdK","602590PDiWEN","length","data","readUByte","396354Dyeozp","3889299jeAMtJ","skipLZ","6685704wcbhnz","readBoolean","bitLength","getBits","skipBits","6848wRAjbY","readUEG","8688SVCSZx","10TEroMx","skipEG"];return($p=function(){return t})()}function tf(t,e){const s=$p();return(tf=function(t,e){return s[t-=128]})(t,e)}!function(t,e){const s=tf,i=t();for(;;)try{if(907961===-parseInt(s(134))/1*(parseInt(s(147))/2)+parseInt(s(140))/3*(parseInt(s(130))/4)+parseInt(s(150))/5*(parseInt(s(139))/6)+parseInt(s(155))/7*(parseInt(s(149))/8)+parseInt(s(132))/9*(parseInt(s(135))/10)+-parseInt(s(133))/11+-parseInt(s(142))/12)break;i.push(i.shift())}catch(t){i.push(i.shift())}}($p);class ef{constructor(t){const e=tf;this[e(137)]=t,this.index=0,this[e(144)]=8*t[e(128)]}get[Zp(131)](){const t=Zp;return this[t(144)]-this[t(153)]}skipBits(t){const e=Zp;if(this.bitsAvailable<t)return!1;this[e(153)]+=t}readBits(t){const e=Zp;let s=!(arguments[e(136)]>1&&void 0!==arguments[1])||arguments[1];return this[e(145)](t,this[e(153)],s)}[Zp(145)](t,e){const s=Zp;let i=!(arguments[s(136)]>2&&void 0!==arguments[2])||arguments[2];if(this[s(131)]<t)return 0;const r=e%8,n=this[s(137)][e/8|0]&255>>>r,o=8-r;if(o>=t)return i&&(this[s(153)]+=t),n>>o-t;{i&&(this.index+=o);const r=t-o;return n<<r|this[s(145)](r,e+o,i)}}skipLZ(){const t=Zp;let e;for(e=0;e<this[t(144)]-this[t(153)];++e)if(0!==this[t(145)](1,this[t(153)]+e,!1))return this[t(153)]+=e,e;return e}skipUEG(){const t=Zp;this[t(146)](1+this[t(141)]())}[Zp(151)](){const t=Zp;this[t(146)](1+this[t(141)]())}[Zp(148)](){const t=Zp,e=this[t(141)]();return this[t(129)](e+1)-1}[Zp(154)](){const t=this[Zp(148)]();return 1&t?1+t>>>1:-1*(t>>>1)}[Zp(143)](){return 1===this.readBits(1)}[Zp(138)](){const t=Zp;let e=arguments[t(136)]>0&&void 0!==arguments[0]?arguments[0]:1;return this[t(129)](8*e)}[Zp(152)](){return this.readBits(16)}readUInt(){return this[Zp(129)](32)}}const sf=rf;function rf(t,e){const s=nf();return(rf=function(t,e){return s[t-=170]})(t,e)}function nf(){const t=["parseVideo265Header","reduce","parseVideo264Header","audioContext","handleVideoFrames","1463978EqlIGU","_times","handleVideoH265Frames_1","handleAudioG711ANalu","handleVideoH265NaluList isSendSeqHeader is false","handleVideoH264Nalu","handleVideoH265NaluList","error","h264","vps","pps","kSliceSEI","_opt","readBits","readUByte","AAC","units","isIFrame","pendingUnits","kSliceIDR","534952HSGtcJ","revokeObjectURL","MP3","slice","h265 naluList.length === 0","isfms","forEach","payload","isEmitSEI","extractH264PPS","vcl","destroy","streamAudioType","debugWarn","push","suffixSei","byteLength","12220600jPriNR","readUEG","video","handleVideoH264NaluList isSendSeqHeader is false","extractNALu$3","isSendSeqHeader","MULAW","demuxStart","h265","getNaluDts","dispatch naluArray.length === 0","extractNALu$2","handleAudioAACNalu","ALAW","sps","subarray","handleVideoH264NaluList","download","iFrame","click","8075061WGVBdl","lastBuf","tempNaluBufferList","handleAudioG711UNalu","extractNALu","prefixSei","getNaluAudioDts","handleVideoH265Nalu","240072uEKyVP","streamVideoType","handleVideoFrames streamVideoType is null","_preDoDecode","extractH265PPS","6198175PxtnGY","naluList.length === 0","nakedFlowDemuxUseNew","href","set","debugLog","emitVideoSei","handleVideoH264Frames"," this.streamVideoType is null","handleVideoH265Frames","audio","3032oDRoHo","player","isSendAACSeqHeader","now","localAudioDts","handleAddNaluStartCode","extractH265SEI","TAG_NAME","5766KGapfE","handleNALu","getInputByteLength","localDts","length","handleVideoNalu","updateStats","extractH264SEI","NakedFlowDemux","224LxGCnO","kSliceNonIDR","_doDecode"];return(nf=function(){return t})()}!function(t,e){const s=rf,i=t();for(;;)try{if(811640===parseInt(s(176))/1+-parseInt(s(262))/2+parseInt(s(245))/3*(-parseInt(s(237))/4)+-parseInt(s(226))/5+-parseInt(s(221))/6*(-parseInt(s(254))/7)+parseInt(s(193))/8+parseInt(s(213))/9)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(nf);class of extends Dp{constructor(t){const e=rf;super(t),this[e(244)]=e(253),this.lastBuf=null,this[e(271)]=null,this[e(207)]=null,this.pps=null,this.streamVideoType=null,this[e(188)]=null,this.tempNaluBufferList=new Uint8Array(0),this[e(174)]={},this[e(248)]=0,this[e(198)]=!1,this[e(239)]=!1,t[e(231)](this[e(244)],"init")}[sf(187)](){const t=sf;super.destroy(),this[t(214)]=null,this[t(271)]=null,this[t(207)]=null,this[t(272)]=null,this[t(222)]=null,this[t(188)]=null,this[t(215)]=new Uint8Array(0),this.pendingUnits={},this[t(248)]=0,this[t(241)]=0,this.isSendSeqHeader=!1,this[t(239)]=!1,this.player[t(231)](this.TAG_NAME,"destroy")}dispatch(t){const e=sf;this[e(238)];const s=new Uint8Array(t);if(this.player[e(274)][e(228)]){const t=this[e(197)](s);if(0===t[e(249)])return void this[e(238)][e(231)](this[e(244)],e(203));this[e(261)](t)}else this[e(204)](s)}addNaluToBuffer(t){const e=sf,s=t.byteLength+this.tempNaluBufferList.byteLength,i=new Uint8Array(s);i[e(230)](this[e(215)],0),i[e(230)](t,this[e(215)].byteLength),this[e(215)]=i}downloadNakedFlowFile(){const t=sf,e=new Blob([this.tempNaluBufferList]);try{const s=document.createElement("a");s[t(229)]=window.URL.createObjectURL(e),s[t(210)]=Date[t(240)]()+".h264",s[t(212)](),window.URL[t(177)](s[t(229)])}catch(e){console[t(269)]("downloadTempNalu",e)}}[sf(202)](){const t=sf,e=this.player._opt.nakedFlowFps;return this[t(248)]=this[t(248)]+parseInt(1e3/e,10),this[t(248)]}[sf(219)](){const t=sf,e=this.player[t(236)][t(260)].sampleRate,s=this[t(238)][t(236)].audioBufferSize;return this[t(248)]+parseInt(s/e*1e3)}[sf(217)](t){const e=sf;let s,i,r=0,n=t[e(192)],o=0,a=[];for(;r<n;)switch(s=t[r++],o){case 0:0===s&&(o=1);break;case 1:o=0===s?2:0;break;case 2:case 3:0===s?o=3:1===s&&r<n?(t[r],i&&a[e(190)](t[e(208)](i,r-o-1)),i=r,o=0):o=0}return i&&a[e(190)](t[e(208)](i,n)),a}[sf(204)](t){const e=sf;let s=null;if(!t||t[e(192)]<1)return;this.lastBuf?(s=new Uint8Array(t[e(192)]+this.lastBuf.length),s[e(230)](this[e(214)]),s[e(230)](new Uint8Array(t),this[e(214)][e(249)])):s=new Uint8Array(t);let i=0,r=-1,n=-2;const o=new Array;for(let t=0;t<s[e(249)];t+=2){const i=s[t],a=s[t+1];0==r&&0==i&&0==a?o[e(190)](t-1):1==a&&0==i&&0==r&&0==n&&o[e(190)](t-2),n=i,r=a}if(o[e(249)]>1)for(let t=0;t<o[e(249)]-1;++t){const r=s[e(208)](o[t],o[t+1]+1);this.handleNALu(r),i=o[t+1]}else i=o[0];if(0!=i&&i<s[e(249)])this[e(214)]=s[e(208)](i);else{!this.lastBuf&&(this[e(214)]=s);const i=new Uint8Array(this[e(214)][e(249)]+t.byteLength);i[e(230)](this[e(214)]),i.set(new Uint8Array(t),this[e(214)].length),this[e(214)]=i}}[sf(197)](t){const e=sf;let s,i,r=0,n=t.byteLength,o=0,a=[],h=new Uint8Array(t);if(this.lastBuf){const t=new Uint8Array(h[e(192)]+this[e(214)].byteLength);t[e(230)](this[e(214)]),t[e(230)](h,this[e(214)].byteLength),h=t,n=h[e(192)],this.lastBuf=null}for(;r<n;)switch(s=h[r++],o){case 0:0===s&&(o=1);break;case 1:o=0===s?2:0;break;case 2:case 3:0===s?o=3:1===s&&r<n?(i!=r-o-1&&a.push(h[e(208)](i,r-o-1)),i=r,o=0):o=0}return i<n&&(this[e(214)]=h.subarray(i,n)),a}[sf(246)](t){const e=sf;t.byteLength<4||(t=t[e(179)](4),this.handleVideoNalu(t))}[sf(250)](t){const e=sf,s=new Uint8Array(t);if(!this[e(222)]&&(this[e(222)]=Ks(s)),this[e(222)]===W[e(270)]){const t=this.handleAddNaluStartCode(s),i=this[e(217)](t);if(0===i.length)return void this[e(238)][e(189)](this[e(244)],e(250),e(227));const r=[];if(i[e(182)]((t=>{const s=e,i=ah(t);i===Y[s(272)]||i===Y[s(207)]?this.handleVideoH264Nalu(t):ch(i)&&r[s(190)](t)})),1===r[e(249)])this[e(267)](r[0]);else{if(function(t){const e=rh;if(0===t[e(363)])return!1;const s=ah(t[0]);for(let i=1;i<t[e(363)];i++)if(s!==ah(t[i]))return!1;return!0}(r)){const t=ah(r[0]),s=lh(t);this[e(209)](r,s,t)}else r[e(182)]((t=>{this[e(267)](t)}))}}else if(this.streamVideoType===W.h265)if(this.player[e(274)].nakedFlowH265DemuxUseNew){const t=this[e(242)](s),i=this[e(217)](t);if(0===i[e(249)])return void this[e(238)][e(189)](this.TAG_NAME,"handleVideoNalu",e(180));const r=[];if(i[e(182)]((t=>{const s=e,i=Fh(t);i===q.pps||i===q.sps||i===q[s(271)]?this[s(220)](t):Uh(i)&&r.push(t)})),1===r[e(249)])this[e(220)](r[0]);else{if(function(t){const e=Oh;if(0===t[e(258)])return!1;const s=Fh(t[0]);for(let i=1;i<t[e(258)];i++)if(s!==Fh(t[i]))return!1;return!0}(r)){const t=Fh(r[0]),e=Nh(t);this.handleVideoH265NaluList(r,e,t)}else r.forEach((t=>{this[e(220)](t)}))}}else{Fh(s)===q[e(272)]?this.extractH265PPS(s):this[e(220)](s)}else this.player[e(189)](this[e(244)],e(234))}[sf(185)](t){const e=sf,s=this[e(242)](t);this[e(217)](s)[e(182)]((t=>{const s=e;hh(ah(t))?this.extractH264SEI(t):this[s(267)](t)}))}[sf(225)](t){const e=sf,s=this[e(242)](t);this[e(217)](s)[e(182)]((t=>{const s=e,i=Fh(t);i===q.sei?this[s(243)](t):this[s(220)](t)}))}[sf(252)](t){const e=this.handleAddNaluStartCode(t);this.extractNALu(e).forEach((t=>{this[rf(267)](t)}))}[sf(243)](t){const e=sf,s=this[e(242)](t);this[e(217)](s).forEach((t=>{this[e(220)](t)}))}[sf(242)](t){const e=sf,s=[0,0,0,1],i=new Uint8Array(t[e(249)]+s[e(249)]);return i[e(230)](s),i[e(230)](t,s[e(249)]),i}[sf(205)](t){const e=sf;if(!t||t[e(192)]<1)return;!this[e(188)]&&(this[e(188)]=K[e(171)]);let s=new Uint8Array(t);const i=s[e(179)](0,7);if(s=s[e(179)](7),!this[e(239)]){const t=(192&i[2])>>6,s=(60&i[2])>>2,r=(1&i[2])<<2|(192&i[3])>>6,n=new Uint8Array([175,0,t<<3|(14&s)>>1,(1&s)<<7|r<<3]);this[e(239)]=!0,this[e(256)](n,D[e(236)],0,!1,0)}const r=this[e(219)](),n=new Uint8Array(s[e(249)]+2);n.set([175,1],0),n[e(230)](s,2),this[e(256)](n,D[e(236)],r,!1,0)}[sf(265)](t){const e=sf;if(!t||t[e(192)]<1)return;!this.streamAudioType&&(this[e(188)]=K[e(206)]);let s=new Uint8Array(t);const i=this[e(219)](),r=new Uint8Array(s[e(249)]+1);r.set([114],0),r[e(230)](s,1),this[e(256)](r,D[e(236)],i,!1,0)}[sf(216)](t){const e=sf;if(!t||t[e(192)]<1)return;!this.streamAudioType&&(this[e(188)]=K[e(199)]);let s=new Uint8Array(t);const i=this.getNaluAudioDts(),r=new Uint8Array(s[e(249)]+1);r[e(230)]([130],0),r.set(s,1),this[e(256)](r,D.audio,i,!1,0)}handleAudioMp3Nalu(t){const e=sf;if(!t||t[e(192)]<1)return;!this.streamAudioType&&(this.streamAudioType=K[e(178)]);let s=new Uint8Array(t);const i=this[e(219)](),r=new Uint8Array(s[e(249)]+1);r[e(230)]([32],0),r[e(230)](s,1),this[e(256)](r,D[e(236)],i,!1,0)}[sf(267)](t){const e=sf,s=ah(t);switch(s){case Y[e(207)]:this[e(207)]=t;break;case Y.pps:this[e(272)]=t}if(this[e(198)]){if(this.sps&&this[e(272)]){const t=nh({sps:this.sps,pps:this[e(272)]}),s=this[e(248)];this._doDecode(t,D.video,s,!0,0),this[e(207)]=null,this.pps=null}if(ch(s)){!this[e(238)][e(263)][e(200)]&&(this[e(238)][e(263)][e(200)]=je());const i=lh(s),r=this[e(202)](),n=function(t,e){const s=rh;let i=[];i[0]=e?23:39,i[1]=1,i[2]=0,i[3]=0,i[4]=0,i[5]=t[s(351)]>>24&255,i[6]=t[s(351)]>>16&255,i[7]=t[s(351)]>>8&255,i[8]=255&t.byteLength;const r=new Uint8Array(i[s(363)]+t.byteLength);return r[s(375)](i,0),r[s(375)](t,i.length),r}(t,i);this[e(224)](n,D[e(195)],r,i,0)}else this[e(238)][e(189)](this[e(244)],"handleVideoH264Nalu is avc seq head nalType is "+s)}else if(this[e(207)]&&this[e(272)]){this[e(198)]=!0;const t=nh({sps:this[e(207)],pps:this.pps});this._doDecode(t,D[e(195)],0,!0,0),this[e(207)]=null,this[e(272)]=null}}handleVideoH264NaluList(t,e,s){const i=sf;if(this[i(198)]){!this[i(238)][i(263)][i(200)]&&(this[i(238)]._times[i(200)]=je());const s=this[i(202)](),r=oh(t[i(258)](((t,e)=>{const s=i,r=Pe(t),n=Pe(e),o=new Uint8Array(r[s(192)]+n.byteLength);return o[s(230)](r,0),o[s(230)](n,r[s(192)]),o})),e);this[i(224)](r,D[i(195)],s,e,0)}else this.player[i(189)](this[i(244)],i(196))}[sf(220)](t){const e=sf,s=Fh(t);switch(s){case q.vps:this[e(271)]=t;break;case q[e(207)]:this[e(207)]=t;break;case q[e(272)]:this[e(272)]=t}if(this.isSendSeqHeader){if(this.vps&&this[e(207)]&&this.pps){const t=Ph({vps:this[e(271)],sps:this[e(207)],pps:this.pps}),s=this[e(248)];this[e(256)](t,D.video,s,!0,0),this[e(271)]=null,this[e(207)]=null,this[e(272)]=null}if(Uh(s)){!this[e(238)][e(263)][e(200)]&&(this[e(238)][e(263)].demuxStart=je());const i=Nh(s),r=this[e(202)](),n=function(t,e){const s=Oh;let i=[];i[0]=e?28:44,i[1]=1,i[2]=0,i[3]=0,i[4]=0,i[5]=t[s(305)]>>24&255,i[6]=t.byteLength>>16&255,i[7]=t[s(305)]>>8&255,i[8]=255&t.byteLength;const r=new Uint8Array(i.length+t.byteLength);return r.set(i,0),r[s(237)](t,i[s(258)]),r}(t,i);this[e(224)](n,D[e(195)],r,i,0)}}else if(this[e(271)]&&this[e(207)]&&this[e(272)]){this[e(198)]=!0;const t=Ph({vps:this[e(271)],sps:this[e(207)],pps:this.pps});this._doDecode(t,D[e(195)],0,!0,0),this.vps=null,this.sps=null,this[e(272)]=null}}[sf(268)](t,e,s){const i=sf;if(this[i(198)]){!this[i(238)][i(263)].demuxStart&&(this[i(238)]._times[i(200)]=je());const s=this.getNaluDts(),r=Bh(t[i(258)](((t,e)=>{const s=i,r=Pe(t),n=Pe(e),o=new Uint8Array(r[s(192)]+n[s(192)]);return o[s(230)](r,0),o[s(230)](n,r[s(192)]),o})),e);this._preDoDecode(r,D.video,s,e,0)}else this.player[i(189)](this[i(244)],i(266))}[sf(224)](t,e,s,i,r){const n=sf;this[n(238)][n(251)]({vbps:t[n(192)],dts:s}),i&&this.calcIframeIntervalTimestamp(s),this[n(256)](t,D[n(195)],s,i,r)}[sf(247)](){const t=sf;let e=0;return this[t(214)]&&(e=this[t(214)][t(192)]),e}[sf(261)](t){const e=sf;if(!this[e(222)])for(let s of t)if(this[e(222)]=Ks(s),this[e(222)])break;this[e(222)]?this.streamVideoType===W[e(270)]?this[e(233)](t):this.streamVideoType===W[e(201)]&&this[e(235)](t):this.player.debugWarn(this[e(244)],e(223))}handleVideoH264Frames(t){const e=sf;let s=[],i=[],r=!1,n=!1;this.pendingUnits.units&&(s=this[e(174)][e(172)],n=this[e(174)][e(186)],r=this[e(174)][e(211)],this.pendingUnits={});let o={};for(let a of t){if(a[e(192)]<4)continue;const t=ah(a);let h=!1,c=t===Y[e(175)];(t===Y[e(255)]||t===Y.kSliceIDR)&&(o=this.parseVideo264Header(a),h=!0),s[e(249)]&&n&&(o[e(181)]||!h)&&(i[e(190)]({units:s,isIFrame:r}),s=[],r=!1,n=!1),s[e(190)](a),r=r||c,n=n||h}s[e(249)]&&(this[e(174)]={units:s,vcl:n,iFrame:r}),i.forEach((t=>{const s=e,i=t[s(172)],r=t[s(173)];let n=null,o=null;if(i[s(182)]((t=>{const e=s,i=31&t[0];switch(i){case Y.pps:this[e(272)]=t;break;case Y.sps:this.sps=t;break;case Y[e(273)]:o=t}if(ch(i)){const s=Pe(t);if(n){const t=new Uint8Array(n.byteLength+s[e(192)]);t[e(230)](n,0),t[e(230)](s,n[e(192)]),n=t}else n=s}})),!this[s(198)]&&this.sps&&this[s(272)]){this[s(198)]=!0;const t=nh({sps:this.sps,pps:this[s(272)]});this[s(256)](t,D[s(195)],0,!0,0),this[s(207)]=null,this[s(272)]=null}if(this[s(198)]){if(this[s(207)]&&this[s(272)]){const t=nh({sps:this[s(207)],pps:this[s(272)]}),e=this[s(248)];this._doDecode(t,D[s(195)],e,!0,0),this[s(207)]=null,this[s(272)]=null}if(n){!this[s(238)][s(263)][s(200)]&&(this.player[s(263)].demuxStart=je());const t=this[s(202)](),e=oh(n,r);if(this.player[s(274)][s(184)]&&o){const e=xe(o,!1);this[s(238)][s(232)]({ts:t,data:e[s(183)]})}this[s(224)](e,D[s(195)],t,r,0)}}}))}[sf(235)](t){const e=sf;let s=[],i=[],r=!1,n=!1;this.pendingUnits[e(172)]&&(s=this[e(174)].units,n=this[e(174)][e(186)],r=this[e(174)][e(211)],this.pendingUnits={});let o={};for(let a of t){if(a[e(192)]<4)continue;const t=Fh(a);let h=!1,c=Nh(t);Uh(t)&&(o=this[e(257)](a),h=!0),s[e(249)]&&n&&(o[e(181)]||!h)&&(i[e(190)]({units:s,isIFrame:r}),s=[],r=!1,n=!1),s[e(190)](a),r=r||c,n=n||h}s[e(249)]&&(this.pendingUnits={units:s,vcl:n,iFrame:r}),i[e(182)]((t=>{const s=e,i=t[s(172)],r=t[s(173)];let n=null,o=null;if(i.forEach((t=>{const e=s,i=t[0]>>>1&63;switch(i){case q[e(272)]:this[e(272)]=t;break;case q[e(207)]:this.sps=t;break;case q[e(271)]:this[e(271)]=t;break;case q[e(191)]:case q[e(218)]:o=t}if(Uh(i)){const s=Pe(t);if(n){const t=new Uint8Array(n[e(192)]+s[e(192)]);t[e(230)](n,0),t[e(230)](s,n[e(192)]),n=t}else n=s}})),!this[s(198)]&&this.sps&&this[s(272)]&&this[s(271)]){this.isSendSeqHeader=!0;const t=Ph({sps:this[s(207)],pps:this[s(272)],vps:this[s(271)]});this[s(256)](t,D[s(195)],0,!0,0),this[s(207)]=null,this[s(272)]=null,this.vps=null}if(this[s(198)]){if(this[s(207)]&&this.pps&&this.vps){const t=Ph({sps:this[s(207)],pps:this[s(272)],vps:this[s(271)]}),e=this[s(248)];this[s(256)](t,D.video,e,!0,0),this[s(207)]=null,this[s(272)]=null,this[s(271)]=null}if(n){!this[s(238)][s(263)][s(200)]&&(this[s(238)]._times.demuxStart=je());const t=this[s(202)](),e=Bh(n,r);if(this[s(238)][s(274)][s(184)]&&o){const e=xe(o,!0);this[s(238)][s(232)]({ts:t,data:e[s(183)]})}this[s(224)](e,D.video,t,r,0)}}}))}[sf(264)](t){const e=sf;t[e(182)]((t=>{this[e(250)](t)}))}[sf(259)](t){const e=sf,s=new ef(t);s[e(170)]();return{isfms:0===s[e(194)](),sType:s[e(194)]()}}[sf(257)](t){const e=sf,s=new ef(t);return s.readUByte(),{nalType:s[e(275)](6),isfms:0===s[e(275)](1),sType:s[e(275)](3)}}}function af(){var t=["130172qGFgVv","198988RLIYWD","TAG_NAME","65422ZTPkQR","27087XGzRao","player","783792rUzJeL","EmptyDemux","init","548526hXvrpe","destroy","419290ZxwTsZ","debugLog"];return(af=function(){return t})()}var hf=cf;function cf(t,e){var s=af();return(cf=function(t,e){return s[t-=397]})(t,e)}!function(t,e){for(var s=cf,i=t();;)try{if(141878===-parseInt(s(409))/1+-parseInt(s(397))/2+-parseInt(s(400))/3+parseInt(s(402))/4+parseInt(s(407))/5+parseInt(s(405))/6+parseInt(s(399))/7)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(af);class lf extends Dp{constructor(t){var e=cf;super(t),this[e(401)]=t,this[e(398)]=e(403),t[e(408)]("EmptyDemux",e(404))}[hf(406)](){var t=hf;super[t(406)](),this[t(401)][t(408)](t(403),"destroy")}}var df=pf;!function(t,e){for(var s=pf,i=t();;)try{if(229178===-parseInt(s(1228))/1*(-parseInt(s(196))/2)+-parseInt(s(1265))/3+-parseInt(s(1076))/4+parseInt(s(864))/5+parseInt(s(647))/6*(parseInt(s(1109))/7)+parseInt(s(778))/8*(parseInt(s(902))/9)+-parseInt(s(494))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(ff);var uf=$t[df(1154)]((function(t,e){var s,r,n=df,o=(s=new Date,r=4,{setLogLevel:function(t){var e=pf;r=t==this[e(485)]?1:t==this[e(508)]?2:t==this.warn?3:(this[e(772)],4)},debug:function(t,e){var i=pf;void 0===console.debug&&(console[i(485)]=console[i(707)]),1>=r&&console[i(485)]("["+o[i(181)](new Date-s,1e3)+"]","["+t+"]",e)},log:function(t,e){var s=pf;this[s(485)](t[s(715)])},info:function(t,e){2>=r&&console.info("["+o.getDurationString(new Date-s,1e3)+"]","["+t+"]",e)},warn:function(t,e){var i=pf;3>=r&&console.warn("["+o[i(181)](new Date-s,1e3)+"]","["+t+"]",e)},error:function(t,e){var i=pf;4>=r&&console[i(772)]("["+o[i(181)](new Date-s,1e3)+"]","["+t+"]",e)}});o.getDurationString=function(t,e){var s,i=pf;function r(t,e){for(var s=pf,i=(""+t)[s(379)](".");i[0].length<e;)i[0]="0"+i[0];return i[s(688)](".")}t<0?(s=!0,t=-t):s=!1;var n=t/(e||1),o=Math.floor(n/3600);n-=3600*o;var a=Math[i(1070)](n/60),h=1e3*(n-=60*a);return h-=1e3*(n=Math[i(1070)](n)),h=Math[i(1070)](h),(s?"-":"")+o+":"+r(a,2)+":"+r(n,2)+"."+r(h,3)},o[n(1293)]=function(t){var e=n,s=t[e(348)];if(s>0){for(var i="",r=0;r<s;r++)r>0&&(i+=","),i+="["+o.getDurationString(t[e(969)](r))+","+o[e(181)](t[e(1207)](r))+"]";return i}return e(1188)},n(1266)!==n(751)&&(e[n(795)]=o);var a=function(t){var e=n;if(!(t instanceof ArrayBuffer))throw e(182);this[e(753)]=t,this[e(380)]=new DataView(t),this[e(883)]=0};a[n(1262)].getPosition=function(){return this[n(883)]},a[n(1262)][n(445)]=function(){var t=n;return this[t(753)][t(689)]},a[n(1262)][n(825)]=function(){var t=n;return this[t(753)][t(689)]},a[n(1262)][n(979)]=function(t){var e=n,s=Math.max(0,Math[e(496)](this[e(753)][e(689)],t));return this[e(883)]=isNaN(s)||!isFinite(s)?0:s,!0},a[n(1262)][n(416)]=function(){var t=n;return this[t(165)]()>=this[t(445)]()},a[n(1262)][n(602)]=function(t,e){var s=n,i=0;if(this.position+t<=this[s(753)][s(689)]){switch(t){case 1:i=e?this[s(380)][s(507)](this[s(883)]):this[s(380)][s(730)](this.position);break;case 2:i=e?this[s(380)][s(699)](this[s(883)]):this[s(380)][s(673)](this.position);break;case 3:if(e)throw"No method for reading signed 24 bits values";i=this[s(380)][s(730)](this[s(883)])<<16,i|=this[s(380)][s(730)](this.position+1)<<8,i|=this[s(380)].getUint8(this.position+2);break;case 4:i=e?this[s(380)].getInt32(this.position):this[s(380)][s(1023)](this[s(883)]);break;case 8:if(e)throw"No method for reading signed 64 bits values";i=this[s(380)][s(1023)](this[s(883)])<<32,i|=this[s(380)][s(1023)](this[s(883)]+4);break;default:throw s(286)+t}return this[s(883)]+=t,i}throw"Not enough bytes in buffer"},a[n(1262)][n(245)]=function(){return this[n(602)](1,!1)},a[n(1262)].readUint16=function(){return this[n(602)](2,!1)},a[n(1262)][n(400)]=function(){return this[n(602)](3,!1)},a[n(1262)][n(876)]=function(){return this.readAnyInt(4,!1)},a[n(1262)][n(814)]=function(){return this[n(602)](8,!1)},a[n(1262)][n(490)]=function(t){var e=n;if(this[e(883)]+t<=this[e(753)][e(689)]){for(var s="",i=0;i<t;i++)s+=String[e(789)](this[e(245)]());return s}throw"Not enough bytes in buffer"},a[n(1262)][n(1353)]=function(){for(var t=n,e=[];;){var s=this[t(245)]();if(0===s)break;e[t(1031)](s)}return String.fromCharCode.apply(null,e)},a[n(1262)][n(377)]=function(){return this[n(602)](1,!0)},a[n(1262)].readInt16=function(){return this[n(602)](2,!0)},a[n(1262)][n(155)]=function(){return this[n(602)](4,!0)},a.prototype[n(1314)]=function(){return this[n(602)](8,!1)},a.prototype[n(289)]=function(t){for(var e=n,s=new Uint8Array(t),i=0;i<t;i++)s[i]=this[e(245)]();return s},a[n(1262)][n(936)]=function(t){for(var e=n,s=new Int16Array(t),i=0;i<t;i++)s[i]=this[e(977)]();return s},a[n(1262)][n(1039)]=function(t){for(var e=n,s=new Int16Array(t),i=0;i<t;i++)s[i]=this[e(771)]();return s},a.prototype[n(1310)]=function(t){for(var e=n,s=new Uint32Array(t),i=0;i<t;i++)s[i]=this[e(876)]();return s},a[n(1262)][n(484)]=function(t){for(var e=new Int32Array(t),s=0;s<t;s++)e[s]=this.readInt32();return e},"undefined"!==n(1266)&&(e[n(291)]=a);var h=function(t,e,s){var i=n;this[i(1203)]=e||0,t instanceof ArrayBuffer?this[i(753)]=t:typeof t==i(1266)?(this.dataView=t,e&&(this[i(1203)]+=e)):this[i(753)]=new ArrayBuffer(t||0),this[i(883)]=0,this[i(1025)]=null==s?h[i(873)]:s};h[n(1262)]={},h[n(1262)][n(165)]=function(){return this[n(883)]},h.prototype[n(1341)]=function(t){var e=n;if(this[e(393)]){var s=this[e(1203)]+this[e(883)]+t,i=this._buffer[e(689)];if(s<=i)s>this[e(897)]&&(this._byteLength=s);else{for(i<1&&(i=1);s>i;)i*=2;var r=new ArrayBuffer(i),o=new Uint8Array(this[e(711)]);new Uint8Array(r,0,o[e(348)]).set(o),this[e(753)]=r,this[e(897)]=s}}},h.prototype[n(408)]=function(){var t=n;if(this[t(897)]!=this[t(711)][t(689)]){var e=new ArrayBuffer(this[t(897)]),s=new Uint8Array(e),i=new Uint8Array(this[t(711)],0,s[t(348)]);s[t(1249)](i),this[t(753)]=e}},h[n(1135)]=!1,h.LITTLE_ENDIAN=!0,h[n(1262)][n(897)]=0,Object[n(266)](h[n(1262)],n(689),{get:function(){var t=n;return this[t(897)]-this[t(1203)]}}),Object[n(266)](h.prototype,n(753),{get:function(){var t=n;return this[t(408)](),this[t(711)]},set:function(t){var e=n;this[e(711)]=t,this[e(568)]=new DataView(this[e(711)],this[e(1203)]),this[e(897)]=this[e(711)][e(689)]}}),Object.defineProperty(h.prototype,"byteOffset",{get:function(){return this[n(1203)]},set:function(t){var e=n;this[e(1203)]=t,this[e(568)]=new DataView(this._buffer,this[e(1203)]),this[e(897)]=this[e(711)][e(689)]}}),Object[n(266)](h.prototype,n(515),{get:function(){return this[n(568)]},set:function(t){var e=n;this[e(1203)]=t[e(637)],this[e(711)]=t.buffer,this._dataView=new DataView(this._buffer,this._byteOffset),this[e(897)]=this[e(1203)]+t[e(689)]}}),h[n(1262)].seek=function(t){var e=n,s=Math[e(382)](0,Math[e(496)](this[e(689)],t));this[e(883)]=isNaN(s)||!isFinite(s)?0:s},h[n(1262)][n(433)]=function(){var t=n;return this[t(883)]>=this[t(897)]},h[n(1262)].mapUint8Array=function(t){var e=n;this[e(1341)](1*t);var s=new Uint8Array(this[e(711)],this.byteOffset+this[e(883)],t);return this.position+=1*t,s},h[n(1262)].readInt32Array=function(t,e){var s=n;t=null==t?this.byteLength-this[s(883)]/4:t;var i=new Int32Array(t);return h[s(1308)](i[s(753)],0,this[s(753)],this[s(637)]+this[s(883)],t*i.BYTES_PER_ELEMENT),h[s(561)](i,null==e?this[s(1025)]:e),this[s(883)]+=i.byteLength,i},h.prototype.readInt16Array=function(t,e){var s=n;t=null==t?this[s(689)]-this[s(883)]/2:t;var i=new Int16Array(t);return h[s(1308)](i[s(753)],0,this[s(753)],this.byteOffset+this[s(883)],t*i[s(546)]),h[s(561)](i,null==e?this[s(1025)]:e),this.position+=i.byteLength,i},h.prototype[n(573)]=function(t){var e=n;t=null==t?this[e(689)]-this.position:t;var s=new Int8Array(t);return h[e(1308)](s[e(753)],0,this[e(753)],this.byteOffset+this[e(883)],t*s[e(546)]),this[e(883)]+=s[e(689)],s},h[n(1262)][n(1310)]=function(t,e){var s=n;t=null==t?this[s(689)]-this[s(883)]/4:t;var i=new Uint32Array(t);return h[s(1308)](i[s(753)],0,this[s(753)],this[s(637)]+this[s(883)],t*i[s(546)]),h[s(561)](i,null==e?this.endianness:e),this[s(883)]+=i.byteLength,i},h[n(1262)][n(1039)]=function(t,e){var s=n;t=null==t?this[s(689)]-this[s(883)]/2:t;var i=new Uint16Array(t);return h[s(1308)](i[s(753)],0,this[s(753)],this[s(637)]+this[s(883)],t*i[s(546)]),h[s(561)](i,null==e?this[s(1025)]:e),this[s(883)]+=i[s(689)],i},h[n(1262)][n(289)]=function(t){var e=n;t=null==t?this[e(689)]-this[e(883)]:t;var s=new Uint8Array(t);return h[e(1308)](s[e(753)],0,this[e(753)],this[e(637)]+this[e(883)],t*s[e(546)]),this.position+=s[e(689)],s},h[n(1262)][n(669)]=function(t,e){var s=n;t=null==t?this[s(689)]-this.position/8:t;var i=new Float64Array(t);return h[s(1308)](i[s(753)],0,this[s(753)],this[s(637)]+this[s(883)],t*i[s(546)]),h.arrayToNative(i,null==e?this.endianness:e),this.position+=i[s(689)],i},h.prototype[n(718)]=function(t,e){var s=n;t=null==t?this[s(689)]-this.position/4:t;var i=new Float32Array(t);return h[s(1308)](i[s(753)],0,this.buffer,this.byteOffset+this[s(883)],t*i[s(546)]),h[s(561)](i,null==e?this[s(1025)]:e),this[s(883)]+=i.byteLength,i},h.prototype[n(155)]=function(t){var e=n,s=this[e(568)][e(1053)](this.position,null==t?this.endianness:t);return this[e(883)]+=4,s},h.prototype[n(977)]=function(t){var e=n,s=this[e(568)][e(699)](this[e(883)],null==t?this[e(1025)]:t);return this[e(883)]+=2,s},h[n(1262)][n(377)]=function(){var t=n,e=this[t(568)][t(507)](this.position);return this.position+=1,e},h[n(1262)].readUint32=function(t){var e=n,s=this[e(568)].getUint32(this[e(883)],null==t?this[e(1025)]:t);return this.position+=4,s},h[n(1262)][n(771)]=function(t){var e=n,s=this[e(568)].getUint16(this[e(883)],null==t?this[e(1025)]:t);return this[e(883)]+=2,s},h.prototype.readUint8=function(){var t=n,e=this[t(568)][t(730)](this[t(883)]);return this[t(883)]+=1,e},h.prototype.readFloat32=function(t){var e=n,s=this[e(568)][e(431)](this.position,null==t?this[e(1025)]:t);return this[e(883)]+=4,s},h[n(1262)].readFloat64=function(t){var e=n,s=this[e(568)].getFloat64(this[e(883)],null==t?this[e(1025)]:t);return this[e(883)]+=8,s},h.endianness=new Int8Array(new Int16Array([1])[n(753)])[0]>0,h[n(1308)]=function(t,e,s,i,r){var n=new Uint8Array(t,e,r),o=new Uint8Array(s,i,r);n.set(o)},h[n(561)]=function(t,e){var s=n;return e==this[s(1025)]?t:this[s(1290)](t)},h[n(942)]=function(t,e){return this[n(1025)]==e?t:this.flipArrayEndianness(t)},h[n(1290)]=function(t){for(var e=n,s=new Uint8Array(t.buffer,t[e(637)],t[e(689)]),i=0;i<t[e(689)];i+=t[e(546)])for(var r=i+t[e(546)]-1,o=i;r>o;r--,o++){var a=s[o];s[o]=s[r],s[r]=a}return t},h[n(1262)].failurePosition=0,String.fromCharCodeUint8=function(t){for(var e=n,s=[],i=0;i<t[e(348)];i++)s[i]=t[i];return String[e(789)][e(1263)](null,s)},h[n(1262)][n(490)]=function(t,e){var s=n;return null==e||e==s(766)?String.fromCharCodeUint8.apply(null,[this.mapUint8Array(null==t?this[s(689)]-this[s(883)]:t)]):new TextDecoder(e).decode(this[s(1254)](t))},h[n(1262)][n(1353)]=function(t){var e=n,s=this.byteLength-this[e(883)],i=new Uint8Array(this._buffer,this[e(1203)]+this.position),r=s;null!=t&&(r=Math[e(496)](t,s));for(var o=0;o<r&&0!==i[o];o++);var a=String[e(452)][e(1263)](null,[this[e(1254)](o)]);return null!=t?this[e(883)]+=r-o:o!=s&&(this[e(883)]+=1),a};var c=Math[n(437)](2,32);h[n(1262)][n(1314)]=function(){var t=n;return this.readInt32()*c+this[t(876)]()},h[n(1262)][n(814)]=function(){var t=n;return this[t(876)]()*c+this[t(876)]()},h[n(1262)][n(1314)]=function(){return this[n(876)]()*c+this.readUint32()},h[n(1262)][n(400)]=function(){var t=n;return(this[t(245)]()<<16)+(this[t(245)]()<<8)+this[t(245)]()},e[n(1237)]=h,h[n(1262)].save=function(t){var e=n,s=new Blob([this[e(753)]]);if(!window[e(996)]||!URL[e(1145)])throw e(1162);var i=window.URL[e(1145)](s),r=document[e(1333)]("a");document[e(458)].appendChild(r),r[e(731)](e(681),i),r.setAttribute(e(727),t),r[e(731)](e(642),e(339)),r.click(),window.URL[e(666)](i)},h[n(1262)]._dynamicSize=!0,Object[n(266)](h.prototype,n(1373),{get:function(){return this[n(393)]},set:function(t){var e=n;!t&&this[e(408)](),this[e(393)]=t}}),h.prototype[n(1243)]=function(t){var e=n,s=new ArrayBuffer(this[e(897)]-t),i=new Uint8Array(s),r=new Uint8Array(this[e(711)],t,i[e(348)]);i.set(r),this[e(753)]=s,this.position-=t},h[n(1262)].writeInt32Array=function(t,e){var s=n;if(this[s(1341)](4*t[s(348)]),t instanceof Int32Array&&this[s(637)]+this[s(883)]%t[s(546)]===0)h[s(1308)](this[s(711)],this[s(637)]+this[s(883)],t[s(753)],0,t[s(689)]),this.mapInt32Array(t.length,e);else for(var i=0;i<t.length;i++)this[s(872)](t[i],e)},h[n(1262)].writeInt16Array=function(t,e){var s=n;if(this._realloc(2*t[s(348)]),t instanceof Int16Array&&this[s(637)]+this[s(883)]%t[s(546)]===0)h[s(1308)](this[s(711)],this[s(637)]+this[s(883)],t[s(753)],0,t[s(689)]),this[s(811)](t[s(348)],e);else for(var i=0;i<t[s(348)];i++)this[s(670)](t[i],e)},h[n(1262)][n(1056)]=function(t){var e=n;if(this[e(1341)](1*t[e(348)]),t instanceof Int8Array&&this[e(637)]+this[e(883)]%t[e(546)]===0)h[e(1308)](this[e(711)],this[e(637)]+this.position,t[e(753)],0,t.byteLength),this[e(807)](t.length);else for(var s=0;s<t[e(348)];s++)this[e(525)](t[s])},h[n(1262)][n(1267)]=function(t,e){var s=n;if(this[s(1341)](4*t.length),t instanceof Uint32Array&&this.byteOffset+this[s(883)]%t[s(546)]===0)h.memcpy(this[s(711)],this.byteOffset+this[s(883)],t[s(753)],0,t.byteLength),this[s(1074)](t[s(348)],e);else for(var i=0;i<t[s(348)];i++)this[s(763)](t[i],e)},h[n(1262)][n(651)]=function(t,e){var s=n;if(this[s(1341)](2*t[s(348)]),t instanceof Uint16Array&&this[s(637)]+this[s(883)]%t.BYTES_PER_ELEMENT===0)h.memcpy(this[s(711)],this[s(637)]+this[s(883)],t[s(753)],0,t[s(689)]),this.mapUint16Array(t[s(348)],e);else for(var i=0;i<t.length;i++)this[s(347)](t[i],e)},h[n(1262)][n(359)]=function(t){var e=n;if(this[e(1341)](1*t.length),t instanceof Uint8Array&&this[e(637)]+this.position%t[e(546)]===0)h[e(1308)](this[e(711)],this.byteOffset+this.position,t[e(753)],0,t[e(689)]),this[e(1254)](t[e(348)]);else for(var s=0;s<t.length;s++)this[e(1342)](t[s])},h[n(1262)][n(483)]=function(t,e){var s=n;if(this[s(1341)](8*t[s(348)]),t instanceof Float64Array&&this[s(637)]+this[s(883)]%t.BYTES_PER_ELEMENT===0)h[s(1308)](this[s(711)],this[s(637)]+this[s(883)],t[s(753)],0,t[s(689)]),this[s(558)](t[s(348)],e);else for(var i=0;i<t[s(348)];i++)this[s(548)](t[i],e)},h[n(1262)][n(464)]=function(t,e){var s=n;if(this[s(1341)](4*t[s(348)]),t instanceof Float32Array&&this[s(637)]+this.position%t[s(546)]===0)h[s(1308)](this[s(711)],this.byteOffset+this[s(883)],t[s(753)],0,t.byteLength),this[s(254)](t[s(348)],e);else for(var i=0;i<t.length;i++)this.writeFloat32(t[i],e)},h[n(1262)].writeInt32=function(t,e){var s=n;this[s(1341)](4),this[s(568)][s(1126)](this[s(883)],t,null==e?this[s(1025)]:e),this[s(883)]+=4},h[n(1262)][n(670)]=function(t,e){var s=n;this[s(1341)](2),this[s(568)][s(1091)](this[s(883)],t,null==e?this[s(1025)]:e),this[s(883)]+=2},h[n(1262)][n(525)]=function(t){var e=n;this[e(1341)](1),this[e(568)][e(896)](this[e(883)],t),this[e(883)]+=1},h[n(1262)][n(763)]=function(t,e){var s=n;this[s(1341)](4),this._dataView[s(1219)](this[s(883)],t,null==e?this[s(1025)]:e),this[s(883)]+=4},h[n(1262)][n(347)]=function(t,e){var s=n;this[s(1341)](2),this[s(568)][s(443)](this[s(883)],t,null==e?this.endianness:e),this.position+=2},h[n(1262)].writeUint8=function(t){var e=n;this[e(1341)](1),this[e(568)].setUint8(this[e(883)],t),this[e(883)]+=1},h[n(1262)][n(547)]=function(t,e){var s=n;this[s(1341)](4),this._dataView[s(340)](this[s(883)],t,null==e?this[s(1025)]:e),this[s(883)]+=4},h[n(1262)][n(548)]=function(t,e){var s=n;this[s(1341)](8),this[s(568)][s(472)](this.position,t,null==e?this.endianness:e),this[s(883)]+=8},h[n(1262)].writeUCS2String=function(t,e,s){var i=n;null==s&&(s=t[i(348)]);for(var r=0;r<t[i(348)]&&r<s;r++)this[i(347)](t[i(425)](r),e);for(;r<s;r++)this[i(347)](0)},h[n(1262)][n(1340)]=function(t,e,s){var i=n,r=0;if(null==e||e==i(766))if(null!=s){var o=Math[i(496)](t[i(348)],s);for(r=0;r<o;r++)this[i(1342)](t[i(425)](r));for(;r<s;r++)this[i(1342)](0)}else for(r=0;r<t[i(348)];r++)this[i(1342)](t.charCodeAt(r));else this[i(359)](new TextEncoder(e)[i(334)](t[i(616)](0,s)))},h[n(1262)][n(553)]=function(t,e){var s=n,i=0;if(null!=e){var r=Math.min(t[s(348)],e);for(i=0;i<r;i++)this[s(1342)](t[s(425)](i));for(;i<e;i++)this[s(1342)](0)}else{for(i=0;i<t[s(348)];i++)this[s(1342)](t[s(425)](i));this.writeUint8(0)}},h[n(1262)].writeStruct=function(t,e){for(var s=n,i=0;i<t.length;i+=2){var r=t[i+1];this[s(1142)](r,e[t[i]],e)}},h[n(1262)].writeType=function(t,e,s){var i,r=n;if("function"==typeof t)return t(this,e);if(typeof t==r(1266)&&!(t instanceof Array))return t.set(this,e,s);var o=null,a=r(766),c=this[r(883)];switch(typeof t==r(184)&&/:/[r(252)](t)&&(i=t[r(379)](":"),t=i[0],o=parseInt(i[1])),typeof t==r(184)&&/,/.test(t)&&(i=t.split(","),t=i[0],a=parseInt(i[1])),t){case r(1157):this[r(1342)](e);break;case"int8":this.writeInt8(e);break;case"uint16":this[r(347)](e,this[r(1025)]);break;case"int16":this[r(670)](e,this.endianness);break;case r(700):this[r(763)](e,this.endianness);break;case r(1236):this.writeInt32(e,this.endianness);break;case"float32":this[r(547)](e,this[r(1025)]);break;case"float64":this.writeFloat64(e,this[r(1025)]);break;case r(298):this.writeUint16(e,h[r(1135)]);break;case r(402):this[r(670)](e,h.BIG_ENDIAN);break;case r(1174):this.writeUint32(e,h[r(1135)]);break;case r(798):this[r(872)](e,h[r(1135)]);break;case r(723):this[r(547)](e,h.BIG_ENDIAN);break;case r(428):this[r(548)](e,h.BIG_ENDIAN);break;case r(454):this[r(347)](e,h[r(873)]);break;case r(1296):this[r(670)](e,h[r(873)]);break;case"uint32le":this.writeUint32(e,h.LITTLE_ENDIAN);break;case"int32le":this.writeInt32(e,h[r(873)]);break;case r(986):this[r(547)](e,h.LITTLE_ENDIAN);break;case r(815):this[r(548)](e,h.LITTLE_ENDIAN);break;case r(1062):this[r(553)](e,o);break;case r(184):this.writeString(e,a,o);break;case r(1102):this[r(726)](e,this[r(1025)],o);break;case r(332):this.writeUCS2String(e,h[r(873)],o);break;case r(695):this[r(726)](e,h.BIG_ENDIAN,o);break;default:if(3==t[r(348)]){for(var l=t[1],d=0;d<e[r(348)];d++)this[r(1142)](l,e[d]);break}this.writeStruct(t,e)}null!=o&&(this[r(883)]=c,this[r(1341)](o),this[r(883)]=c+o)},h[n(1262)][n(720)]=function(t){var e=n,s=Math.floor(t/c);this.writeUint32(s),this[e(763)](4294967295&t)},h[n(1262)][n(847)]=function(t){var e=n;this[e(1342)]((16711680&t)>>16),this[e(1342)]((65280&t)>>8),this[e(1342)](255&t)},h.prototype.adjustUint32=function(t,e){var s=n,i=this[s(883)];this.seek(t),this.writeUint32(e),this[s(979)](i)},h[n(1262)][n(993)]=function(t,e){var s=n;this._realloc(4*t);var i=new Int32Array(this[s(711)],this[s(637)]+this[s(883)],t);return h[s(561)](i,null==e?this[s(1025)]:e),this[s(883)]+=4*t,i},h[n(1262)][n(811)]=function(t,e){var s=n;this[s(1341)](2*t);var i=new Int16Array(this[s(711)],this[s(637)]+this[s(883)],t);return h[s(561)](i,null==e?this[s(1025)]:e),this.position+=2*t,i},h[n(1262)].mapInt8Array=function(t){var e=n;this[e(1341)](1*t);var s=new Int8Array(this[e(711)],this[e(637)]+this[e(883)],t);return this[e(883)]+=1*t,s},h[n(1262)][n(1074)]=function(t,e){var s=n;this[s(1341)](4*t);var i=new Uint32Array(this._buffer,this[s(637)]+this[s(883)],t);return h[s(561)](i,null==e?this[s(1025)]:e),this[s(883)]+=4*t,i},h[n(1262)].mapUint16Array=function(t,e){var s=n;this._realloc(2*t);var i=new Uint16Array(this[s(711)],this[s(637)]+this[s(883)],t);return h[s(561)](i,null==e?this[s(1025)]:e),this[s(883)]+=2*t,i},h.prototype.mapFloat64Array=function(t,e){var s=n;this[s(1341)](8*t);var i=new Float64Array(this[s(711)],this[s(637)]+this[s(883)],t);return h[s(561)](i,null==e?this[s(1025)]:e),this[s(883)]+=8*t,i},h[n(1262)][n(254)]=function(t,e){var s=n;this[s(1341)](4*t);var i=new Float32Array(this[s(711)],this.byteOffset+this[s(883)],t);return h[s(561)](i,null==e?this[s(1025)]:e),this[s(883)]+=4*t,i};var l=function(t){var e=n;this[e(949)]=[],this[e(299)]=-1,t&&(this[e(831)](t),this[e(299)]=0)};l[n(1262)]=new h(new ArrayBuffer,0,h.BIG_ENDIAN),l[n(1262)][n(646)]=function(){var t,e=n;return this[e(299)]>-1||(this.buffers.length>0?0===(t=this[e(949)][0])[e(164)]?(this[e(753)]=t,this[e(299)]=0,o[e(485)](e(894),e(540)),!0):(this[e(924)](),!1):(this.logBufferLevel(),!1))},ArrayBuffer[n(576)]=function(t,e){var s=n;o[s(485)]("ArrayBuffer",s(851)+(t.byteLength+e.byteLength));var i=new Uint8Array(t.byteLength+e[s(689)]);return i[s(1249)](new Uint8Array(t),0),i.set(new Uint8Array(e),t[s(689)]),i[s(753)]},l[n(1262)][n(1309)]=function(t,e,s){var i,r=n;return(i=new Uint8Array(s))[r(1249)](new Uint8Array(t,e,s)),i[r(753)].fileStart=t[r(164)]+e,i.buffer[r(186)]=0,i[r(753)]},l[n(1262)][n(831)]=function(t){for(var e=n,s=!0,i=0;i<this[e(949)][e(348)];i++){var r=this.buffers[i];if(t[e(164)]<=r.fileStart){if(t[e(164)]===r[e(164)]){if(t[e(689)]>r[e(689)]){this[e(949)][e(590)](i,1),i--;continue}}else t[e(164)]+t[e(689)]<=r[e(164)]||(t=this[e(1309)](t,0,r[e(164)]-t[e(164)])),o.debug(e(894),e(635)+t[e(164)]+e(1245)+t[e(689)]+")"),this[e(949)][e(590)](i,0,t),0===i&&(this[e(753)]=t);s=!1;break}if(t[e(164)]<r[e(164)]+r.byteLength){var a=r[e(164)]+r[e(689)]-t[e(164)],h=t[e(689)]-a;if(!(h>0)){s=!1;break}t=this[e(1309)](t,a,h)}}s&&(o[e(485)](e(894),e(635)+t[e(164)]+e(1245)+t[e(689)]+")"),this.buffers[e(1031)](t),0===i&&(this.buffer=t))},l[n(1262)].logBufferLevel=function(t){var e,s,i,r,a,h=n,c=[],l="";for(i=0,r=0,e=0;e<this[h(949)][h(348)];e++)s=this[h(949)][e],0===e?(a={},c[h(1031)](a),a[h(969)]=s.fileStart,a.end=s[h(164)]+s[h(689)],l+="["+a.start+"-"):a[h(1207)]===s.fileStart?a.end=s[h(164)]+s[h(689)]:((a={})[h(969)]=s[h(164)],l+=c[c[h(348)]-1][h(1207)]-1+"], ["+a[h(969)]+"-",a[h(1207)]=s.fileStart+s.byteLength,c[h(1031)](a)),i+=s.usedBytes,r+=s[h(689)];c[h(348)]>0&&(l+=a.end-1+"]");var d=t?o[h(508)]:o[h(485)];0===this[h(949)].length?d(h(894),"No more buffer in memory"):d(h(894),""+this[h(949)][h(348)]+h(1001)+i+"/"+r+" bytes), continuous ranges: "+l)},l[n(1262)][n(569)]=function(){var t,e,s=n;for(t=0;t<this[s(949)][s(348)];t++)(e=this[s(949)][t]).usedBytes===e.byteLength&&(o[s(485)](s(894),s(217)+t),this.buffers[s(590)](t,1),t--)},l.prototype[n(885)]=function(){var t,e=n;if(this[e(299)]+1<this[e(949)][e(348)]){if((t=this[e(949)][this[e(299)]+1])[e(164)]===this[e(753)][e(164)]+this[e(753)].byteLength){var s=this[e(753)][e(689)],i=this[e(753)][e(186)],r=this[e(753)][e(164)];return this.buffers[this[e(299)]]=ArrayBuffer[e(576)](this.buffer,t),this[e(753)]=this[e(949)][this[e(299)]],this[e(949)][e(590)](this.bufferIndex+1,1),this[e(753)][e(186)]=i,this[e(753)].fileStart=r,o[e(485)]("ISOFile",e(1178)+s+"->"+this[e(753)][e(689)]+")"),!0}return!1}return!1},l[n(1262)][n(238)]=function(t,e,s){var i,r=n,a=null,h=-1;for(i=!0===t?0:this.bufferIndex;i<this[r(949)].length&&(a=this[r(949)][i])[r(164)]<=e;)h=i,s&&(a[r(164)]+a[r(689)]<=e?a.usedBytes=a[r(689)]:a[r(186)]=e-a[r(164)],this[r(924)]()),i++;return-1!==h?(a=this[r(949)][h])[r(164)]+a[r(689)]>=e?(o[r(485)](r(894),r(371)+h),h):-1:-1},l.prototype[n(535)]=function(t){var e,s,i,r=n,o=void 0!==t?t:this[r(299)];if(s=this[r(949)][o],this[r(949)][r(348)]>o+1)for(e=o+1;e<this[r(949)][r(348)]&&(i=this.buffers[e])[r(164)]===s.fileStart+s[r(689)];e++)s=i;return s[r(164)]+s[r(689)]},l[n(1262)][n(750)]=function(t){var e=n,s=this.findPosition(!0,t,!1);return-1!==s?this[e(535)](s):t},l[n(1262)][n(221)]=function(t){var e=n;this.buffer[e(186)]+=t,this[e(924)]()},l[n(1262)][n(336)]=function(){var t=n;this.buffer[t(186)]=this[t(753)].byteLength,this.logBufferLevel()},l[n(1262)].seek=function(t,e,s){var i,r=n;return-1!==(i=this.findPosition(e,t,s))?(this[r(753)]=this.buffers[i],this[r(299)]=i,this.position=t-this[r(753)][r(164)],o[r(485)]("MultiBufferStream","Repositioning parser at buffer position: "+this[r(883)]),!0):(o[r(485)]("MultiBufferStream","Position "+t+" not found in buffered data"),!1)},l[n(1262)].getPosition=function(){var t=n;if(-1===this[t(299)]||null===this[t(949)][this[t(299)]])throw"Error accessing position in the MultiBufferStream";return this[t(949)][this[t(299)]][t(164)]+this.position},l[n(1262)][n(825)]=function(){return this[n(689)]},l[n(1262)][n(445)]=function(){var t=n;if(-1===this[t(299)]||null===this.buffers[this.bufferIndex])throw"Error accessing position in the MultiBufferStream";return this[t(949)][this[t(299)]][t(164)]+this[t(689)]},l.prototype[n(537)]=function(){var t=n;this[t(949)]=[],this[t(299)]=-1},"undefined"!==n(1266)&&(e[n(894)]=l);var d=function(){var t=n,e=[];e[3]="ES_Descriptor",e[4]=t(307),e[5]=t(481),e[6]=t(790),this[t(204)]=function(t){return e[t]};var s=this,i={};return this.parseOneDescriptor=function(s){var r,n,a,h=t,c=0;for(r=s[h(245)](),a=s[h(245)]();128&a;)c=(127&a)<<7,a=s.readUint8();return c+=127&a,o[h(485)](h(417),"Found "+(e[r]||"Descriptor "+r)+", size "+c+h(469)+s[h(165)]()),(n=e[r]?new i[e[r]](c):new(i[h(1302)])(c)).parse(s),n},i.Descriptor=function(t,e){this.tag=t,this.size=e,this.descs=[]},i[t(1302)].prototype[t(514)]=function(e){var s=t;this[s(1080)]=e.readUint8Array(this[s(532)])},i[t(1302)][t(1262)][t(926)]=function(e){for(var s=t,i=0;i<this[s(461)][s(348)];i++)if(this.descs[i][s(733)]==e)return this[s(461)][i];return null},i[t(1302)][t(1262)][t(1037)]=function(e){for(var i=t,r=e[i(883)];e[i(883)]<r+this[i(532)];){var n=s[i(998)](e);this[i(461)].push(n)}},i[t(991)]=function(e){var s=t;i[s(1302)][s(1134)](this,3,e)},i[t(991)].prototype=new(i[t(1302)]),i.ES_Descriptor[t(1262)][t(514)]=function(e){var s=t;if(this[s(656)]=e[s(771)](),this[s(312)]=e[s(245)](),this[s(532)]-=3,128&this[s(312)]?(this[s(650)]=e[s(771)](),this.size-=2):this[s(650)]=0,64&this[s(312)]){var i=e[s(245)]();this[s(996)]=e[s(490)](i),this[s(532)]-=i+1}else this[s(996)]="";32&this[s(312)]?(this[s(745)]=e[s(771)](),this[s(532)]-=2):this.OCR_ES_ID=0,this[s(1037)](e)},i.ES_Descriptor[t(1262)][t(907)]=function(e){var s=t,i=this[s(926)](4);return i?i[s(888)]:0},i[t(991)].prototype.getAudioConfig=function(e){var s=t,i=this[s(926)](4);if(!i)return null;var r=i[s(926)](5);if(r&&r[s(1080)]){var n=(248&r[s(1080)][0])>>3;return 31===n&&r[s(1080)][s(348)]>=2&&(n=32+((7&r.data[0])<<3)+((224&r[s(1080)][1])>>5)),n}return null},i[t(307)]=function(e){var s=t;i[s(1302)][s(1134)](this,4,e)},i[t(307)][t(1262)]=new(i[t(1302)]),i[t(307)].prototype[t(514)]=function(e){var s=t;this[s(888)]=e[s(245)](),this[s(1256)]=e[s(245)](),this[s(279)]=0!=(this[s(1256)]>>1&1),this[s(1256)]=this[s(1256)]>>>2,this.bufferSize=e.readUint24(),this[s(201)]=e[s(876)](),this.avgBitrate=e[s(876)](),this[s(532)]-=13,this[s(1037)](e)},i.DecoderSpecificInfo=function(e){var s=t;i[s(1302)][s(1134)](this,5,e)},i[t(481)][t(1262)]=new i.Descriptor,i[t(790)]=function(e){var s=t;i[s(1302)][s(1134)](this,6,e)},i.SLConfigDescriptor.prototype=new i.Descriptor,this};e.MPEG4DescriptorParser=d;var u={ERR_INVALID_DATA:-1,ERR_NOT_ENOUGH_DATA:0,OK:1,BASIC_BOXES:[n(1151),n(1329),n(1301),n(728),n(960),n(627)],FULL_BOXES:["hmhd","nmhd","iods","xml ","bxml",n(684),"mere"],CONTAINER_BOXES:[[n(620),["trak",n(841)]],["trak"],[n(1020)],["mdia"],[n(774)],[n(914)],[n(374),[n(520),n(748)]],[n(330),[n(621)]],["moof",[n(210)]],[n(210),[n(242),n(520),"sbgp"]],[n(465)],[n(607)],[n(1351)],[n(1220),["tfra"]],["meco"],[n(296)],[n(834)],["strk"],[n(1264)],[n(740)],[n(567)],[n(716)],[n(517)],[n(1118),[n(994)]],[n(1191),[n(152)]],["ipco"],["grpl"],[n(828)],[n(906),[n(1066)]]],boxCodes:[],fullBoxCodes:[],containerBoxCodes:[],sampleEntryCodes:{},sampleGroupEntryCodes:[],trackGroupTypes:[],UUIDBoxes:{},UUIDs:[],initialize:function(){var t=n;u[t(435)][t(1262)]=new(u[t(919)]),u[t(732)][t(1262)]=new(u[t(919)]),u[t(770)][t(1262)]=new(u[t(919)]),u.TrackGroupTypeBox[t(1262)]=new(u[t(435)]),u.BASIC_BOXES.forEach((function(t){u.createBoxCtor(t)})),u.FULL_BOXES[t(1049)]((function(e){u[t(630)](e)})),u[t(1054)].forEach((function(e){u[t(297)](e[0],null,e[1])}))},Box:function(t,e,s){var i=n;this[i(809)]=t,this[i(532)]=e,this[i(1338)]=s},FullBox:function(t,e,s){var i=n;u[i(919)][i(1134)](this,t,e,s),this.flags=0,this.version=0},ContainerBox:function(t,e,s){var i=n;u[i(919)][i(1134)](this,t,e,s),this[i(1077)]=[]},SampleEntry:function(t,e,s,i){var r=n;u.ContainerBox[r(1134)](this,t,e),this[r(959)]=s,this[r(969)]=i},SampleGroupEntry:function(t){this[n(1312)]=t},TrackGroupTypeBox:function(t,e){u[n(435)].call(this,t,e)},createBoxCtor:function(t,e){var s=n;u[s(721)][s(1031)](t),u[t+s(919)]=function(e){var i=s;u[i(919)][i(1134)](this,t,e)},u[t+s(919)][s(1262)]=new(u[s(919)]),e&&(u[t+s(919)][s(1262)].parse=e)},createFullBoxCtor:function(t,e){var s=n;u[t+s(919)]=function(e){var i=s;u[i(435)][i(1134)](this,t,e)},u[t+s(919)][s(1262)]=new(u[s(435)]),u[t+"Box"].prototype[s(514)]=function(t){var i=s;this[i(601)](t),e&&e[i(1134)](this,t)}},addSubBoxArrays:function(t){if(t){this.subBoxNames=t;for(var e=t.length,s=0;s<e;s++)this[t[s]+"s"]=[]}},createContainerBoxCtor:function(t,e,s){var i=n;u[t+i(919)]=function(e){var r=i;u[r(732)][r(1134)](this,t,e),u[r(189)][r(1134)](this,s)},u[t+i(919)][i(1262)]=new(u[i(732)]),e&&(u[t+"Box"][i(1262)][i(514)]=e)},createMediaSampleEntryCtor:function(t,e,s){var i=n;u.sampleEntryCodes[t]=[],u[t+i(770)]=function(t,e){var r=i;u[r(770)][r(1134)](this,t,e),u[r(189)][r(1134)](this,s)},u[t+i(770)][i(1262)]=new(u[i(770)]),e&&(u[t+i(770)][i(1262)][i(514)]=e)},createSampleEntryCtor:function(t,e,s,i){var r=n;u[r(1098)][t][r(1031)](e),u[e+"SampleEntry"]=function(s){var n=r;u[t+"SampleEntry"][n(1134)](this,e,s),u[n(189)].call(this,i)},u[e+r(770)][r(1262)]=new(u[t+r(770)]),s&&(u[e+r(770)][r(1262)][r(514)]=s)},createEncryptedSampleEntryCtor:function(t,e,s){var i=n;u[i(176)][i(1134)](this,t,e,s,[i(740)])},createSampleGroupCtor:function(t,e){var s=n;u[t+s(426)]=function(e){u[s(426)].call(this,t,e)},u[t+s(426)][s(1262)]=new(u[s(426)]),e&&(u[t+"SampleGroupEntry"][s(1262)].parse=e)},createTrackGroupCtor:function(t,e){var s=n;u[t+s(1170)]=function(e){var i=s;u[i(1170)][i(1134)](this,t,e)},u[t+s(1170)][s(1262)]=new(u[s(1170)]),e&&(u[t+s(1170)][s(1262)][s(514)]=e)},createUUIDBox:function(t,e,s,i){var r=n;u[r(355)][r(1031)](t),u[r(1090)][t]=function(i){var n=r;e?u[n(435)].call(this,n(1338),i,t):s?u[n(732)][n(1134)](this,n(1338),i,t):u[n(919)].call(this,"uuid",i,t)},u[r(1090)][t][r(1262)]=e?new(u[r(435)]):s?new(u[r(732)]):new(u[r(919)]),i&&(e?u[r(1090)][t][r(1262)][r(514)]=function(t){var e=r;this.parseFullHeader(t),i&&i[e(1134)](this,t)}:u.UUIDBoxes[t].prototype[r(514)]=i)}};function p(t,e){this.x=t,this.y=e}function f(t,e){var s=n;this.bad_pixel_row=t,this[s(900)]=e}u[n(414)](),u[n(1107)]=1,u[n(1099)]=2,u[n(376)]=4,u.TFHD_FLAG_BASE_DATA_OFFSET=1,u[n(259)]=2,u[n(591)]=8,u[n(842)]=16,u[n(1068)]=32,u.TFHD_FLAG_DUR_EMPTY=65536,u[n(1206)]=131072,u.TRUN_FLAGS_DATA_OFFSET=1,u[n(970)]=4,u[n(938)]=256,u[n(241)]=512,u.TRUN_FLAGS_FLAGS=1024,u[n(701)]=2048,u[n(919)].prototype[n(816)]=function(t){var e=n;return this[e(441)](new(u[t+e(919)]))},u[n(919)][n(1262)].addBox=function(t){var e=n;return this[e(1077)][e(1031)](t),this[t[e(809)]+"s"]?this[t[e(809)]+"s"].push(t):this[t[e(809)]]=t,t},u[n(919)][n(1262)].set=function(t,e){return this[t]=e,this},u[n(919)][n(1262)].addEntry=function(t,e){var s=e||n(1120);return!this[s]&&(this[s]=[]),this[s].push(t),this},n(1266)!==n(751)&&(e.BoxParser=u),u.parseUUID=function(t){return u.parseHex16(t)},u[n(1230)]=function(t){for(var e=n,s="",i=0;i<16;i++){var r=t[e(245)]()[e(1210)](16);s+=1===r[e(348)]?"0"+r:r}return s},u[n(719)]=function(t,e,s){var i,r,a,h=n,c=t[h(165)](),l=0;if(t[h(445)]()-c<8)return o[h(485)](h(594),"Not enough data in stream to parse the type and size of the box"),{code:u[h(928)]};if(s&&s<8)return o[h(485)]("BoxParser","Not enough bytes left in the parent box to parse a new box"),{code:u.ERR_NOT_ENOUGH_DATA};var d=t[h(876)](),p=t[h(490)](4);if(o[h(485)](h(594),h(1200)+p+h(552)+d+h(469)+c),l=8,p==h(1338)){if(t[h(445)]()-t[h(165)]()<16||s-l<16)return t[h(979)](c),o[h(485)](h(594),"Not enough bytes left in the parent box to parse a UUID box"),{code:u[h(928)]};a=u[h(854)](t),l+=16}if(1==d){if(t[h(445)]()-t.getPosition()<8||s&&s-l<8)return t.seek(c),{code:u[h(928)]};d=t[h(814)](),l+=8}else if(0===d)if(s)d=s;else if("mdat"!==p)return i=new u.Box(p,d),{code:u.OK,box:i,size:i.size};return 0!==d&&d<l||0!==d&&s&&d>s?{code:u[h(928)],type:p,size:d,hdr_size:l,start:c}:0!==d&&c+d>t[h(445)]()?(t[h(979)](c),{code:u.ERR_NOT_ENOUGH_DATA,type:p,size:d,hdr_size:l,start:c}):e?{code:u.OK,type:p,size:d,hdr_size:l,start:c}:(u[p+"Box"]?i=new(u[p+h(919)])(d):p!==h(1338)?(i=new u.Box(p,d))[h(378)]=!0:u[h(1090)][a]?i=new(u[h(1090)][a])(d):((i=new(u[h(919)])(p,d))[h(1338)]=a,i.has_unparsed_data=!0),i[h(959)]=l,i[h(969)]=c,i.write===u[h(919)][h(1262)][h(955)]&&i[h(809)]!==h(1151)&&i[h(1059)](t),i.parse(t),(r=t[h(165)]()-(i[h(969)]+i.size))<0?t.seek(i[h(969)]+i[h(532)]):r>0&&0!==i.size&&t[h(979)](i[h(969)]+i[h(532)]),{code:u.OK,box:i,size:i[h(532)]})},u[n(919)][n(1262)][n(514)]=function(t){var e=n;this.type!=e(1151)?this[e(1080)]=t[e(289)](this[e(532)]-this.hdr_size):0===this[e(532)]?t[e(979)](t[e(445)]()):t[e(979)](this[e(969)]+this[e(532)])},u[n(919)][n(1262)][n(1059)]=function(t){var e=n;this[e(1080)]=t[e(289)](this[e(532)]-this.hdr_size),t[e(883)]-=this[e(532)]-this.hdr_size},u[n(435)][n(1262)][n(1059)]=function(t){var e=n;this[e(601)](t),this.data=t[e(289)](this[e(532)]-this[e(959)]),this[e(959)]-=4,t.position-=this[e(532)]-this[e(959)]},u[n(435)].prototype[n(601)]=function(t){var e=n;this[e(513)]=t[e(245)](),this[e(312)]=t[e(400)](),this[e(959)]+=4},u[n(435)][n(1262)].parse=function(t){var e=n;this.parseFullHeader(t),this[e(1080)]=t.readUint8Array(this.size-this[e(959)])},u[n(732)][n(1262)][n(514)]=function(t){for(var e,s,i=n;t[i(165)]()<this[i(969)]+this.size;){if((e=u[i(719)](t,!1,this[i(532)]-(t[i(165)]()-this.start)))[i(997)]!==u.OK)return;if(s=e[i(849)],this[i(1077)][i(1031)](s),this[i(968)]&&-1!=this.subBoxNames[i(904)](s[i(809)]))this[this.subBoxNames[this[i(968)][i(904)](s.type)]+"s"][i(1031)](s);else{var r=s.type!==i(1338)?s[i(809)]:s[i(1338)];this[r]||(this[r]=s)}}},u[n(919)][n(1262)][n(329)]=function(t){var e=n;this[e(424)]=t.readUint16();var s=[];s[0]=this.language>>10&31,s[1]=this.language>>5&31,s[2]=31&this[e(424)],this[e(1183)]=String[e(789)](s[0]+96,s[1]+96,s[2]+96)},u[n(1012)]="Visual",u[n(366)]=n(729),u.SAMPLE_ENTRY_TYPE_HINT=n(151),u[n(403)]=n(399),u[n(1222)]=n(764),u[n(572)]="System",u[n(1196)]=n(910),u[n(770)][n(1262)][n(169)]=function(t){var e=n;t[e(289)](6),this[e(1148)]=t[e(771)](),this[e(959)]+=8},u.SampleEntry[n(1262)][n(514)]=function(t){var e=n;this[e(169)](t),this[e(1080)]=t[e(289)](this[e(532)]-this[e(959)])},u[n(770)].prototype[n(1059)]=function(t){var e=n;this[e(169)](t),this.data=t[e(289)](this[e(532)]-this.hdr_size),this[e(959)]-=8,t[e(883)]-=this[e(532)]-this[e(959)]},u.SampleEntry.prototype[n(963)]=function(t){var e=n;u.ContainerBox.prototype.parse[e(1134)](this,t)},u.createMediaSampleEntryCtor(u.SAMPLE_ENTRY_TYPE_HINT),u[n(800)](u.SAMPLE_ENTRY_TYPE_METADATA),u[n(800)](u[n(1222)]),u.createMediaSampleEntryCtor(u[n(572)]),u[n(800)](u[n(1196)]),u.createMediaSampleEntryCtor(u[n(1012)],(function(t){var e,s=n;this[s(169)](t),t[s(771)](),t[s(771)](),t.readUint32Array(3),this.width=t[s(771)](),this[s(856)]=t[s(771)](),this[s(978)]=t[s(876)](),this[s(694)]=t[s(876)](),t[s(876)](),this.frame_count=t.readUint16(),e=Math[s(496)](31,t[s(245)]()),this[s(988)]=t[s(490)](e),e<31&&t[s(490)](31-e),this[s(1324)]=t[s(771)](),t[s(771)](),this[s(963)](t)})),u[n(800)](u[n(366)],(function(t){var e=n;this[e(169)](t),t.readUint32Array(2),this[e(865)]=t[e(771)](),this[e(281)]=t[e(771)](),t[e(771)](),t[e(771)](),this[e(1240)]=t.readUint32()/65536,this[e(963)](t)})),u.createSampleEntryCtor(u[n(1012)],n(578)),u.createSampleEntryCtor(u[n(1012)],n(1097)),u[n(176)](u[n(1012)],n(477)),u[n(176)](u[n(1012)],n(832)),u[n(176)](u[n(1012)],n(927)),u[n(176)](u[n(1012)],"dav1"),u[n(176)](u.SAMPLE_ENTRY_TYPE_VISUAL,n(810)),u[n(176)](u[n(1012)],"hev1"),u[n(176)](u.SAMPLE_ENTRY_TYPE_VISUAL,"hvt1"),u[n(176)](u[n(1012)],n(293)),u.createSampleEntryCtor(u[n(1012)],n(615)),u[n(176)](u[n(1012)],n(1248)),u[n(176)](u[n(1012)],n(956)),u.createSampleEntryCtor(u[n(1012)],n(1112)),u.createSampleEntryCtor(u[n(1012)],"vvs1"),u[n(176)](u[n(1012)],n(911)),u[n(176)](u[n(1012)],n(869)),u[n(176)](u[n(1012)],n(1149)),u[n(176)](u.SAMPLE_ENTRY_TYPE_VISUAL,n(264)),u[n(176)](u[n(1012)],n(544)),u[n(176)](u.SAMPLE_ENTRY_TYPE_VISUAL,n(859)),u[n(176)](u[n(1012)],"mjpg"),u[n(176)](u.SAMPLE_ENTRY_TYPE_VISUAL,n(1287)),u.createSampleEntryCtor(u[n(366)],"mp4a"),u[n(176)](u.SAMPLE_ENTRY_TYPE_AUDIO,n(921)),u[n(176)](u[n(366)],n(361)),u[n(176)](u[n(366)],n(147)),u[n(176)](u[n(366)],n(551)),u[n(176)](u[n(366)],n(975)),u[n(176)](u[n(366)],"mha2"),u[n(176)](u[n(366)],n(1213)),u[n(176)](u[n(366)],"mhm2"),u[n(1315)](u[n(1012)],"encv"),u[n(1315)](u[n(366)],"enca"),u.createEncryptedSampleEntryCtor(u[n(1222)],n(944)),u[n(1315)](u[n(572)],"encs"),u[n(1315)](u.SAMPLE_ENTRY_TYPE_TEXT,n(257)),u.createEncryptedSampleEntryCtor(u[n(403)],n(622)),u[n(915)](n(218),(function(t){var e=n,s=16*(1+(1&(1&t[e(245)]())));this[e(644)]=[];for(var i=0;i<3;i++)this[e(644)][i]=16==s?t[e(771)]():t[e(876)]()})),u[n(915)](n(643),(function(t){var e=n;this[e(860)]=t[e(245)]()})),u[n(630)](n(672),(function(t){var e=n;this[e(1214)]=t[e(1353)]();var s=this[e(532)]-this[e(959)]-(this[e(1214)][e(348)]+1);this[e(1364)]=t[e(289)](s)})),u[n(915)](n(706),(function(t){var e=n,s=t[e(245)]();if(!(s>>7&!1)&&(this[e(513)]=127&s,1===this.version&&(s=t[e(245)](),this[e(450)]=s>>5&7,this[e(193)]=31&s,s=t[e(245)](),this.seq_tier_0=s>>7&1,this[e(805)]=s>>6&1,this[e(231)]=s>>5&1,this[e(909)]=s>>4&1,this.chroma_subsampling_x=s>>3&1,this.chroma_subsampling_y=s>>2&1,this.chroma_sample_position=3&s,s=t.readUint8(),this[e(886)]=s>>5&7,0===this.reserved_1))){if(this[e(290)]=s>>4&1,1===this[e(290)])this.initial_presentation_delay_minus_one=15&s;else if(this[e(203)]=15&s,0!==this[e(203)])return;var i=this[e(532)]-this[e(959)]-4;this[e(1327)]=t[e(289)](i)}})),u[n(915)](n(739),(function(t){var e,s,i=n;for(this[i(1047)]=t[i(245)](),this[i(618)]=t[i(245)](),this.profile_compatibility=t.readUint8(),this[i(1180)]=t[i(245)](),this[i(288)]=3&t.readUint8(),this[i(368)]=31&t[i(245)](),s=this[i(532)]-this[i(959)]-6,this[i(360)]=[],e=0;e<this.nb_SPS_nalus;e++)this[i(360)][e]={},this[i(360)][e][i(348)]=t[i(771)](),this[i(360)][e][i(317)]=t[i(289)](this.SPS[e][i(348)]),s-=2+this[i(360)][e][i(348)];for(this[i(619)]=t[i(245)](),s--,this[i(1223)]=[],e=0;e<this[i(619)];e++)this[i(1223)][e]={},this[i(1223)][e].length=t[i(771)](),this[i(1223)][e][i(317)]=t[i(289)](this[i(1223)][e][i(348)]),s-=2+this[i(1223)][e][i(348)];s>0&&(this.ext=t[i(289)](s))})),u[n(915)](n(783),(function(t){var e=n;this.bufferSizeDB=t[e(876)](),this[e(201)]=t[e(876)](),this[e(913)]=t[e(876)]()})),u[n(630)]("ccst",(function(t){var e=n,s=t[e(245)]();this[e(323)]=128==(128&s),this[e(1010)]=64==(64&s),this.max_ref_per_pic=(63&s)>>2,t.readUint24()})),u.createBoxCtor("cdef",(function(t){var e,s=n;for(this[s(865)]=t.readUint16(),this[s(249)]=[],this[s(459)]=[],this[s(243)]=[],e=0;e<this[s(865)];e++)this[s(249)].push(t[s(771)]()),this[s(459)][s(1031)](t[s(771)]()),this[s(243)].push(t[s(771)]())})),u[n(915)]("clap",(function(t){var e=n;this[e(1169)]=t.readUint32(),this[e(987)]=t[e(876)](),this[e(1129)]=t.readUint32(),this[e(271)]=t[e(876)](),this.horizOffN=t[e(876)](),this[e(713)]=t[e(876)](),this[e(879)]=t[e(876)](),this[e(415)]=t[e(876)]()})),u[n(915)](n(606),(function(t){var e=n;this[e(1218)]=t[e(771)](),this[e(183)]=t[e(771)]()})),u[n(630)]("cmex",(function(t){var e=n;1&this.flags&&(this[e(654)]=t[e(155)]()),2&this.flags&&(this[e(1124)]=t[e(155)]()),4&this.flags&&(this.pos_z=t[e(155)]()),8&this.flags&&(0==this.version?16&this.flags?(this[e(1348)]=t[e(155)](),this[e(660)]=t.readInt32(),this[e(328)]=t[e(155)]()):(this[e(1348)]=t[e(977)](),this[e(660)]=t.readInt16(),this[e(328)]=t.readInt16()):this[e(513)]),32&this[e(312)]&&(this.id=t[e(876)]())})),u[n(630)](n(530),(function(t){var e=n;this.focal_length_x=t[e(155)](),this[e(999)]=t.readInt32(),this.principal_point_y=t[e(155)](),1&this.flags&&(this[e(566)]=t[e(155)](),this[e(1299)]=t[e(155)]())})),u[n(915)](n(934),(function(t){var e=n;for(this[e(1184)]=t[e(876)](),this[e(667)]=[],this[e(344)]=[],i=0;i<this[e(1184)];i++){var s=t.readUint16();this[e(667)][e(1031)](s),s>=32768&&this.component_type_urls.push(t.readCString())}})),u[n(630)](n(541),(function(t){var e,s,i=n;if(e=t[i(876)](),this[i(191)]=[],0===this[i(513)])for(s=0;s<e;s++)this[i(191)][i(1031)](t[i(814)]())})),u[n(630)](n(475),(function(t){var e=n;this.maxCLL=t.readUint16(),this.maxFALL=t[e(771)]()})),u[n(915)]("colr",(function(t){var e=n;if(this[e(1217)]=t[e(490)](4),this[e(1217)]===e(736)){this[e(1371)]=t[e(771)](),this[e(168)]=t[e(771)](),this[e(1332)]=t[e(771)]();var s=t[e(245)]();this[e(692)]=s>>7}else(this[e(1217)]===e(1307)||"prof"===this[e(1217)])&&(this[e(587)]=t[e(289)](this[e(532)]-4))})),u[n(630)](n(779),(function(t){var e=n;this[e(329)](t),this[e(1048)]=t[e(1353)]()})),u.createFullBoxCtor("cslg",(function(t){var e=n;0===this[e(513)]&&(this[e(595)]=t[e(155)](),this[e(1105)]=t[e(155)](),this.greatestDecodeToDisplayDelta=t[e(155)](),this[e(1040)]=t[e(155)](),this[e(227)]=t[e(155)]())})),u[n(630)]("ctts",(function(t){var e,s,i=n;if(e=t[i(876)](),this[i(396)]=[],this[i(1271)]=[],0===this[i(513)])for(s=0;s<e;s++){this.sample_counts[i(1031)](t[i(876)]());var r=t[i(155)]();this[i(1271)][i(1031)](r)}else if(1==this[i(513)])for(s=0;s<e;s++)this[i(396)][i(1031)](t[i(876)]()),this.sample_offsets.push(t[i(155)]())})),u[n(915)](n(173),(function(t){var e=n,s=t.readUint8(),i=t[e(245)](),r=t[e(245)]();this[e(1114)]=s>>6,this[e(1075)]=s>>1&31,this[e(665)]=(1&s)<<2|i>>6&3,this[e(1060)]=i>>3&7,this[e(852)]=i>>2&1,this[e(346)]=3&i|r>>5&7})),u[n(915)](n(1108),(function(t){var e=n,s=t[e(771)]();this.data_rate=s>>3,this[e(270)]=7&s,this[e(1009)]=[];for(var i=0;i<this[e(270)]+1;i++){var r={};this[e(1009)][e(1031)](r);var o=t.readUint8(),a=t[e(245)](),h=t.readUint8();r[e(1114)]=o>>6,r[e(1075)]=o>>1&31,r.bsmod=(1&o)<<4|a>>4&15,r.acmod=a>>1&7,r[e(852)]=1&a,r[e(612)]=h>>1&15,r[e(612)]>0&&(r[e(1227)]=(1&h)<<8|t.readUint8())}})),u[n(630)]("dfLa",(function(t){var e=n,s=[],i=["STREAMINFO",e(724),e(1211),e(1286),e(967),e(308),e(603),"RESERVED"];for(this[e(601)](t);;){var r=t[e(245)](),o=Math.min(127&r,i.length-1);if(o?t[e(289)](t[e(400)]()):(t[e(289)](13),this.samplerate=t[e(876)]()>>12,t[e(289)](20)),s[e(1031)](i[o]),128&r)break}this[e(462)]=s[e(348)]+" ("+s.join(", ")+")"})),u[n(915)]("dimm",(function(t){var e=n;this[e(1182)]=t[e(814)]()})),u[n(915)]("dmax",(function(t){this[n(274)]=t.readUint32()})),u[n(915)](n(200),(function(t){var e=n;this[e(1182)]=t[e(814)]()})),u[n(915)](n(804),(function(t){var e=n;if(this[e(239)]=t[e(245)](),this.OutputChannelCount=t.readUint8(),this[e(1244)]=t[e(771)](),this[e(1313)]=t.readUint32(),this[e(503)]=t[e(977)](),this[e(305)]=t[e(245)](),0!==this.ChannelMappingFamily){this[e(943)]=t.readUint8(),this[e(743)]=t[e(245)](),this.ChannelMapping=[];for(var s=0;s<this[e(995)];s++)this[e(1232)][s]=t.readUint8()}})),u[n(630)]("dref",(function(t){var e,s,i=n;this[i(1120)]=[];for(var r=t.readUint32(),o=0;o<r;o++){if((e=u[i(719)](t,!1,this[i(532)]-(t[i(165)]()-this[i(969)])))[i(997)]!==u.OK)return;s=e[i(849)],this[i(1120)][i(1031)](s)}})),u[n(915)](n(1318),(function(t){this.bytessent=t.readUint64()})),u.createFullBoxCtor(n(263),(function(t){var e=n;this[e(564)]=t.readString(this[e(532)]-this[e(959)])})),u[n(630)](n(1005),(function(t){var e=n;this[e(1120)]=[];for(var s=t.readUint32(),i=0;i<s;i++){var r={};this[e(1120)][e(1031)](r),1===this[e(513)]?(r[e(945)]=t[e(814)](),r[e(961)]=t[e(1314)]()):(r[e(945)]=t[e(876)](),r[e(961)]=t.readInt32()),r[e(877)]=t[e(977)](),r[e(1229)]=t[e(977)]()}})),u.createFullBoxCtor(n(1046),(function(t){var e=n;1==this.version?(this[e(866)]=t[e(876)](),this[e(839)]=t[e(814)](),this[e(180)]=t.readUint32(),this.id=t[e(876)](),this[e(268)]=t[e(1353)](),this[e(892)]=t[e(1353)]()):(this[e(268)]=t[e(1353)](),this[e(892)]=t[e(1353)](),this.timescale=t[e(876)](),this[e(981)]=t[e(876)](),this[e(180)]=t[e(876)](),this.id=t[e(876)]());var s=this.size-this.hdr_size-(16+(this[e(268)][e(348)]+1)+(this.value[e(348)]+1));1==this[e(513)]&&(s-=4),this[e(1192)]=t[e(289)](s)})),u[n(1372)]=function(t,e){var s=n;u[t+s(919)]=function(e){u[s(435)].call(this,t,e)},u[t+s(919)][s(1262)]=new(u[s(435)]),u[t+s(919)][s(1262)][s(514)]=function(t){var r=s;if(this.parseFullHeader(t),e)e[r(1134)](this,t);else for(this.group_id=t[r(876)](),this.num_entities_in_group=t[r(876)](),this.entity_ids=[],i=0;i<this[r(682)];i++){var n=t[r(876)]();this[r(390)][r(1031)](n)}}},u.createEntityToGroupCtor(n(797)),u.createEntityToGroupCtor(n(476)),u[n(1372)](n(337)),u[n(1372)](n(617)),u[n(1372)](n(1079)),u.createEntityToGroupCtor(n(632)),u[n(1372)]("eqiv"),u[n(1372)](n(1370)),u[n(1372)](n(495)),u[n(1372)](n(283)),u.createEntityToGroupCtor(n(788)),u[n(1372)]("slid"),u[n(1372)](n(791)),u.createEntityToGroupCtor(n(282)),u[n(1372)](n(209)),u[n(1372)](n(1225)),u[n(630)](n(512),(function(t){var e=n,s=t.readUint8Array(this[e(532)]-this.hdr_size);if("function"!==e(751)){var i=new d;this[e(802)]=i[e(998)](new h(s[e(753)],0,h[e(1135)]))}})),u.createBoxCtor(n(624),(function(t){var e=n;this[e(782)]=t[e(245)](),this.fieldOrdering=t[e(245)]()})),u[n(915)]("frma",(function(t){var e=n;this[e(505)]=t[e(490)](4)})),u[n(915)](n(652),(function(t){var e=n,s=this[e(532)]-this.hdr_size;this.major_brand=t.readString(4),this[e(562)]=t.readUint32(),s-=8,this[e(1086)]=[];for(var i=0;s>=4;)this[e(1086)][i]=t[e(490)](4),s-=4,i++})),u[n(630)](n(398),(function(t){var e=n;0===this[e(513)]&&(t[e(876)](),this.handler=t[e(490)](4),t[e(1310)](3),this.name=t.readString(this[e(532)]-this.hdr_size-20),"\0"===this[e(463)][this.name.length-1]&&(this[e(463)]=this[e(463)].slice(0,-1)))})),u[n(915)]("hvcC",(function(t){var e,s,i,r,o=n;this[o(1047)]=t[o(245)](),r=t[o(245)](),this[o(1044)]=r>>6,this[o(957)]=(32&r)>>5,this[o(1155)]=31&r,this[o(838)]=t[o(876)](),this[o(519)]=t.readUint8Array(6),this[o(889)]=t[o(245)](),this[o(972)]=4095&t.readUint16(),this[o(304)]=3&t[o(245)](),this.chroma_format_idc=3&t[o(245)](),this[o(918)]=7&t[o(245)](),this[o(429)]=7&t[o(245)](),this.avgFrameRate=t[o(771)](),r=t.readUint8(),this[o(1173)]=r>>6,this.numTemporalLayers=(13&r)>>3,this[o(600)]=(4&r)>>2,this[o(288)]=3&r,this[o(1117)]=[];var a=t[o(245)]();for(e=0;e<a;e++){var h=[];this[o(1117)][o(1031)](h),r=t.readUint8(),h.completeness=(128&r)>>7,h[o(697)]=63&r;var c=t[o(771)]();for(s=0;s<c;s++){var l={};h.push(l),i=t[o(771)](),l[o(1080)]=t.readUint8Array(i)}}})),u.createFullBoxCtor(n(1284),(function(t){var e,s=n;0===this[s(513)]?this.entry_count=t[s(771)]():this[s(1283)]=t[s(876)](),this[s(349)]=[];for(var i=0;i<this.entry_count;i++){if((e=u[s(719)](t,!1,this[s(532)]-(t[s(165)]()-this[s(969)]))).code!==u.OK)return;e[s(849)].type,s(384),this.item_infos[i]=e[s(849)]}})),u.createFullBoxCtor("iloc",(function(t){var e,s=n;e=t[s(245)](),this.offset_size=e>>4&15,this[s(300)]=15&e,e=t[s(245)](),this[s(405)]=e>>4&15,1===this[s(513)]||2===this.version?this[s(1344)]=15&e:this[s(1344)]=0,this[s(796)]=[];var i=0;if(this[s(513)]<2)i=t[s(771)]();else{if(2!==this.version)throw s(504);i=t[s(876)]()}for(var r=0;r<i;r++){var o={};if(this[s(796)][s(1031)](o),this[s(513)]<2)o[s(1082)]=t[s(771)]();else{if(2!==this.version)throw s(504);o[s(1082)]=t[s(876)]()}switch(1===this[s(513)]||2===this[s(513)]?o[s(954)]=15&t[s(771)]():o[s(954)]=0,o[s(1148)]=t.readUint16(),this.base_offset_size){case 0:o.base_offset=0;break;case 4:o[s(1359)]=t[s(876)]();break;case 8:o[s(1359)]=t[s(814)]();break;default:throw"Error reading base offset size"}var a=t.readUint16();o[s(225)]=[];for(var h=0;h<a;h++){var c={};if(o[s(225)][s(1031)](c),1===this.version||2===this[s(513)])switch(this[s(1344)]){case 0:c[s(448)]=0;break;case 4:c[s(448)]=t[s(876)]();break;case 8:c[s(448)]=t.readUint64();break;default:throw s(1202)}switch(this[s(734)]){case 0:c[s(1367)]=0;break;case 4:c[s(1367)]=t.readUint32();break;case 8:c[s(1367)]=t[s(814)]();break;default:throw s(1202)}switch(this[s(300)]){case 0:c[s(1035)]=0;break;case 4:c.extent_length=t[s(876)]();break;case 8:c[s(1035)]=t[s(814)]();break;default:throw"Error reading extent index"}}}})),u[n(915)]("imir",(function(t){var e=n,s=t.readUint8();this[e(881)]=s>>7,this[e(754)]=1&s})),u[n(630)]("infe",(function(t){var e=n;if((0===this[e(513)]||1===this[e(513)])&&(this.item_ID=t[e(771)](),this[e(693)]=t[e(771)](),this[e(345)]=t[e(1353)](),this[e(1175)]=t[e(1353)](),this[e(768)]=t[e(1353)]()),1===this[e(513)])return this[e(1316)]=t[e(490)](4),void t[e(979)](this.start+this[e(532)]);this[e(513)]>=2&&(2===this.version?this.item_ID=t[e(771)]():3===this[e(513)]&&(this.item_ID=t.readUint32()),this[e(693)]=t[e(771)](),this.item_type=t[e(490)](4),this.item_name=t[e(1353)](),"mime"===this[e(917)]?(this[e(1175)]=t[e(1353)](),this[e(768)]=t[e(1353)]()):"uri "===this.item_type&&(this.item_uri_type=t[e(1353)]()))})),u.createFullBoxCtor(n(152),(function(t){var e,s,i=n;for(entry_count=t.readUint32(),this[i(755)]=[],e=0;e<entry_count;e++){var r={};this[i(755)][i(1031)](r),this[i(513)]<1?r.id=t[i(771)]():r.id=t[i(876)]();var o=t[i(245)]();for(r[i(1181)]=[],s=0;s<o;s++){var a=t[i(245)](),h={};r[i(1181)].push(h),h[i(509)]=(128&a)>>7==1,1&this[i(312)]?h[i(1354)]=(127&a)<<8|t[i(245)]():h[i(1354)]=127&a}}})),u[n(630)](n(1351),(function(t){var e,s,i=n;for(this[i(848)]=[];t.getPosition()<this[i(969)]+this.size;){if((e=u[i(719)](t,!0,this.size-(t[i(165)]()-this.start)))[i(997)]!==u.OK)return;(s=0===this.version?new(u[i(780)])(e[i(809)],e[i(532)],e.hdr_size,e[i(969)]):new(u[i(680)])(e[i(809)],e[i(532)],e[i(959)],e[i(969)]))[i(955)]===u[i(919)][i(1262)][i(955)]&&s[i(809)]!==i(1151)&&s[i(1059)](t),s[i(514)](t),this[i(848)][i(1031)](s)}})),u[n(915)](n(1176),(function(t){var e=n;this[e(1199)]=3&t[e(245)]()})),u.createFullBoxCtor(n(1238),(function(t){var e=n;this[e(175)]=t[e(876)](),this[e(321)]=t[e(876)]()})),u[n(630)](n(994),(function(t){var e=n;this[e(792)]=t[e(1353)](),this[e(892)]=t[e(1353)]()})),u[n(630)](n(634),(function(t){var e=n,s=t[e(245)]();this[e(806)]=[];for(var i=0;i<s;i++){var r={};this[e(806)][i]=r,r[e(1136)]=t[e(876)]();var o=t[e(245)]();switch(r[e(354)]=o>>7,r[e(1330)]=127&o,r[e(1330)]){case 0:r[e(1312)]=t.readString(4);break;case 1:r[e(1312)]=t[e(490)](4),r[e(714)]=t[e(876)]();break;case 2:case 3:break;case 4:r[e(664)]=t[e(876)]()}}})),u[n(915)](n(1073),(function(t){var e=n;this.layer_id=t[e(771)]()})),u[n(915)](n(369),(function(t){var e=n;this[e(1288)]=t[e(876)](),this.bytes=t[e(876)]()})),p[n(1262)][n(1210)]=function(){return"("+this.x+","+this.y+")"},u[n(915)](n(1032),(function(t){var e=n;this[e(1165)]=[],this.display_primaries[0]=new p(t[e(771)](),t[e(771)]()),this.display_primaries[1]=new p(t[e(771)](),t[e(771)]()),this.display_primaries[2]=new p(t[e(771)](),t[e(771)]()),this[e(1140)]=new p(t[e(771)](),t[e(771)]()),this[e(628)]=t[e(876)](),this[e(1094)]=t.readUint32()})),u[n(630)](n(649),(function(t){var e=n;1==this[e(513)]?(this[e(198)]=t.readUint64(),this[e(206)]=t.readUint64(),this[e(866)]=t[e(876)](),this[e(256)]=t[e(814)]()):(this[e(198)]=t.readUint32(),this[e(206)]=t[e(876)](),this.timescale=t[e(876)](),this[e(256)]=t[e(876)]()),this[e(329)](t),t[e(771)]()})),u.createFullBoxCtor("mehd",(function(t){var e=n;1&this[e(312)]&&(this[e(513)]=1),1==this[e(513)]?this.fragment_duration=t[e(814)]():this[e(757)]=t.readUint32()})),u[n(630)](n(1221),(function(t){var e=n;this[e(1077)]=[],u[e(732)][e(1262)][e(514)].call(this,t)})),u[n(630)](n(658),(function(t){var e=n;this[e(863)]=t[e(876)]()})),u[n(630)]("mfro",(function(t){var e=n;this[e(1088)]=t[e(876)]()})),u.createFullBoxCtor(n(1050),(function(t){var e=n;this[e(985)]=t[e(245)]()})),u.createFullBoxCtor(n(717),(function(t){var e=n;1==this.version?(this[e(198)]=t.readUint64(),this[e(206)]=t[e(814)](),this[e(866)]=t.readUint32(),this[e(256)]=t[e(814)]()):(this[e(198)]=t[e(876)](),this.modification_time=t.readUint32(),this[e(866)]=t.readUint32(),this[e(256)]=t[e(876)]()),this[e(442)]=t[e(876)](),this[e(813)]=t[e(771)]()>>8,t[e(771)](),t[e(1310)](2),this[e(212)]=t[e(1310)](9),t[e(1310)](6),this[e(1163)]=t[e(876)]()})),u.createBoxCtor("npck",(function(t){var e=n;this[e(1204)]=t[e(876)]()})),u[n(915)](n(777),(function(t){this[n(1204)]=t.readUint64()})),u.createFullBoxCtor("padb",(function(t){var e=n,s=t[e(876)]();this[e(878)]=[];for(var i=0;i<Math[e(1070)]((s+1)/2);i++)this[e(878)]=t[e(245)]()})),u[n(915)]("pasp",(function(t){var e=n;this[e(153)]=t[e(876)](),this[e(1242)]=t[e(876)]()})),u[n(915)](n(1349),(function(t){var e=n;this.text=t.readString(this[e(532)]-this.hdr_size)})),u[n(915)](n(787),(function(t){var e=n;this[e(491)]=t[e(876)]();var s=t[e(245)]();this[e(275)]=t[e(490)](s)})),u[n(630)](n(1278),(function(t){var e=n,s=(this[e(532)]-this[e(959)])/8;this.rate=[],this.initial_delay=[];for(var i=0;i<s;i++)this[e(442)][i]=t[e(876)](),this[e(391)][i]=t.readUint32()})),u[n(630)]("pitm",(function(t){var e=n;0===this.version?this[e(352)]=t.readUint16():this.item_id=t[e(876)]()})),u.createFullBoxCtor(n(533),(function(t){var e,s=n;for(this.num_channels=t.readUint8(),this.bits_per_channels=[],e=0;e<this[s(1190)];e++)this[s(794)][e]=t[s(245)]()})),u[n(915)]("pmax",(function(t){var e=n;this[e(1335)]=t[e(876)]()})),u[n(630)](n(410),(function(t){var e=n;if(this[e(661)]=t[e(771)](),this[e(1089)]=[],2&this[e(312)])for(var s=0;s<this[e(661)];s++)this[e(1089)][s]=t[e(771)]()})),u[n(630)](n(933),(function(t){var e=n;this[e(358)]=t[e(876)](),this.ntp_timestamp=t[e(814)](),0===this[e(513)]?this[e(961)]=t[e(876)]():this[e(961)]=t[e(814)]()})),u[n(630)](n(841),(function(t){var e=n;if(this[e(976)]=u[e(1230)](t),this[e(513)]>0){var s=t[e(876)]();this[e(589)]=[];for(var i=0;i<s;i++)this.kid[i]=u.parseHex16(t)}var r=t[e(876)]();r>0&&(this[e(1080)]=t[e(289)](r))})),u[n(630)](n(195),(function(t){var e=n;this[e(528)]=t[e(876)](),this[e(856)]=t[e(876)]()})),u[n(630)](n(550),(function(t){var e=n;this[e(528)]=t[e(876)](),this[e(856)]=t[e(876)]()})),u.createFullBoxCtor(n(679),(function(t){var e=n;this[e(528)]=t[e(876)](),this[e(856)]=t[e(876)]()})),u[n(297)](n(916),null,["clef",n(679),"enof"]),u[n(915)](n(962),(function(t){var e=n;this[e(251)]=t[e(490)](4),this.sdptext=t[e(490)](this[e(532)]-this[e(959)]-4)})),u.createFullBoxCtor(n(310),(function(t){var e=n;1&this[e(312)]&&(this[e(335)]=t[e(876)](),this[e(1121)]=t[e(876)]());var s=t[e(876)]();this[e(737)]=[];for(var i=0;i<s;i++)0===this[e(513)]?this.offset[i]=t[e(876)]():this[e(737)][i]=t.readUint64()})),u[n(630)](n(605),(function(t){var e=n;1&this[e(312)]&&(this[e(335)]=t[e(876)](),this.aux_info_type_parameter=t[e(876)]()),this[e(862)]=t.readUint8();var s=t[e(876)]();if(this[e(1019)]=[],0===this.default_sample_info_size)for(var i=0;i<s;i++)this[e(1019)][i]=t[e(245)]()})),u[n(176)](u[n(403)],"mett",(function(t){var e=n;this[e(169)](t),this.content_encoding=t[e(1353)](),this[e(583)]=t[e(1353)](),this[e(963)](t)})),u.createSampleEntryCtor(u[n(403)],n(597),(function(t){var e=n;this.parseHeader(t),this[e(768)]=t.readCString(),this[e(407)]=t[e(1353)](),this[e(685)]=t.readCString(),this.parseFooter(t)})),u[n(176)](u[n(1222)],n(311),(function(t){var e=n;this[e(169)](t),this[e(768)]=t[e(1353)](),this[e(583)]=t[e(1353)](),this.parseFooter(t)})),u[n(176)](u[n(1222)],n(1298),(function(t){var e=n;this.parseHeader(t),this[e(407)]=t.readCString(),this[e(685)]=t[e(1353)](),this[e(232)]=t[e(1353)](),this[e(963)](t)})),u.createSampleEntryCtor(u[n(1222)],"stxt",(function(t){var e=n;this.parseHeader(t),this[e(768)]=t[e(1353)](),this[e(583)]=t.readCString(),this[e(963)](t)})),u[n(176)](u[n(1222)],n(744),(function(t){var e=n;this.parseHeader(t),this[e(893)]=t.readUint32(),this[e(676)]=t[e(377)](),this.vertical_justification=t.readInt8(),this[e(397)]=t[e(289)](4),this.box_record=t[e(936)](4),this[e(1216)]=t.readUint8Array(12),this[e(963)](t)})),u[n(176)](u[n(403)],n(971),(function(t){var e=n;this.parseHeader(t),this[e(963)](t)})),u[n(846)](n(250),(function(t){var e,s=n,i=t[s(771)]();for(this[s(958)]=t.readUint16(),this[s(381)]=[],e=0;e<i;e++)this.sample_offset[e]=t[s(876)]();var r=this[s(895)]-4-4*i;for(this.num_output_samples=[],this[s(1093)]=[],e=0;e<r/4;e++)this[s(592)][e]=t.readUint16(),this[s(1093)][e]=t[s(771)]()})),u.createSampleGroupCtor(n(309),(function(t){var e=n;this[e(487)]=t[e(245)](),this[e(752)]=t[e(245)](),this[e(837)]=t[e(771)](),this[e(709)]=t.readUint16()})),u[n(846)](n(394),(function(t){var e=n;this.subSequenceIdentifier=t[e(771)](),this[e(487)]=t.readUint8();var s=t[e(245)]();this.durationFlag=s>>7,this.avgRateFlag=s>>6&1,this[e(453)]&&(this.duration=t.readUint32()),this[e(776)]&&(this.accurateStatisticsFlag=t[e(245)](),this[e(837)]=t[e(771)](),this[e(709)]=t[e(771)]()),this.dependency=[];for(var i=t[e(245)](),r=0;r<i;r++){var o={};this[e(1179)][e(1031)](o),o.subSeqDirectionFlag=t[e(245)](),o[e(487)]=t[e(245)](),o[e(1198)]=t[e(771)]()}})),u[n(846)]("dtrt",(function(t){})),u[n(846)](n(1113),(function(t){})),u[n(846)]("prol",(function(t){this[n(1034)]=t.readInt16()})),u[n(846)]("rap ",(function(t){var e=n,s=t[e(245)]();this.num_leading_samples_known=s>>7,this[e(478)]=127&s})),u[n(846)](n(1051),(function(t){var e=n;if(this[e(1123)]=t[e(771)](),this[e(895)]!==2+(1===this[e(1123)]?2:6*this.operation_point_count)+9)this[e(1080)]=t[e(289)](this[e(895)]-2);else{if(1===this[e(1123)])this[e(1279)]=t[e(771)]();else{this[e(1279)]=[],this.available_bitrate=[];for(var s=0;s<this[e(1123)];s++)this[e(522)][s]=t[e(876)](),this[e(1279)][s]=t[e(771)]()}this.maximum_bitrate=t[e(876)](),this[e(1038)]=t[e(876)](),this[e(222)]=t[e(245)]()}})),u.createSampleGroupCtor(n(265),(function(t){var e=n;this.roll_distance=t[e(977)]()})),u[n(426)][n(1262)][n(514)]=function(t){var e=n;this.data=t[e(289)](this.description_length)},u[n(846)](n(1185),(function(t){})),u[n(846)](n(582),(function(t){})),u.createSampleGroupCtor(n(808),(function(t){var e=n;this[e(881)]=t[e(245)]();var s=t.readUint8();this[e(237)]=s>>4,this[e(875)]=15&s,this[e(273)]=t[e(245)](),this[e(1153)]=t[e(245)](),this.KID=u[e(1230)](t),this[e(457)]=0,this[e(219)]=0,1===this.isProtected&&0===this[e(1153)]&&(this[e(457)]=t.readUint8(),this[e(219)]=t.readUint8Array(this[e(457)]))})),u[n(846)]("stsa",(function(t){})),u[n(846)](n(1150),(function(t){var e=n,s=t[e(245)]();this[e(1321)]=63&s})),u[n(846)](n(501),(function(t){var e=n,s=t[e(245)]();this[e(599)]=s>>7})),u.createSampleGroupCtor("tsas",(function(t){})),u.createSampleGroupCtor("tscl",(function(t){})),u[n(846)](n(1152),(function(t){})),u[n(630)](n(748),(function(t){var e=n;this[e(1312)]=t.readString(4),1===this.version?this[e(714)]=t.readUint32():this.grouping_type_parameter=0,this.entries=[];for(var s=t[e(876)](),i=0;i<s;i++){var r={};this[e(1120)][e(1031)](r),r[e(294)]=t[e(155)](),r[e(1045)]=t.readInt32()}})),f[n(1262)].toString=function(){var t=n;return t(1281)+this[t(1146)]+", column: "+this[t(900)]+"]"},u[n(630)](n(761),(function(t){var e,s=n;for(this[s(1184)]=t[s(771)](),this[s(691)]=[],e=0;e<this.component_count;e++)this.component_index[s(1031)](t[s(771)]());var i=t.readUint8();for(this[s(1339)]=128==(128&i),this[s(823)]=t[s(876)](),this[s(178)]=t[s(876)](),this[s(521)]=t[s(876)](),this[s(765)]=[],this[s(833)]=[],this.bad_pixels=[],e=0;e<this[s(823)];e++)this[s(765)][s(1031)](t[s(876)]());for(e=0;e<this[s(178)];e++)this[s(833)].push(t[s(876)]());for(e=0;e<this[s(521)];e++){var r=t.readUint32(),o=t.readUint32();this[s(655)][s(1031)](new f(r,o))}})),u[n(630)](n(235),(function(t){var e=n;this[e(1133)]=t[e(490)](4),this.scheme_version=t[e(876)](),1&this[e(312)]&&(this[e(1147)]=t[e(490)](this[e(532)]-this.hdr_size-8))})),u[n(915)](n(534),(function(t){var e=n;this[e(781)]=t[e(490)](this[e(532)]-this[e(959)])})),u.createFullBoxCtor(n(747),(function(t){var e,s=n,i=this.size-this.hdr_size;this[s(1295)]=[],this.sample_depends_on=[],this[s(1241)]=[],this[s(920)]=[];for(var r=0;r<i;r++)e=t[s(245)](),this[s(1295)][r]=e>>6,this[s(492)][r]=e>>4&3,this.sample_is_depended_on[r]=e>>2&3,this[s(920)][r]=3&e})),u.createFullBoxCtor(n(824)),u[n(630)](n(520),(function(t){var e=n;this[e(1312)]=t.readString(4),o[e(485)](e(594),e(1326)+this[e(1312)]),1===this[e(513)]?this[e(1064)]=t.readUint32():this.default_length=0,this[e(513)]>=2&&(this[e(1115)]=t[e(876)]()),this[e(1120)]=[];for(var s=t[e(876)](),i=0;i<s;i++){var r;r=u[this[e(1312)]+e(426)]?new(u[this[e(1312)]+e(426)])(this.grouping_type):new(u[e(426)])(this[e(1312)]),this[e(1120)][e(1031)](r),1===this[e(513)]?0===this.default_length?r[e(895)]=t[e(876)]():r[e(895)]=this[e(1064)]:r.description_length=this.default_length,r[e(955)]===u.SampleGroupEntry[e(1262)][e(955)]&&(r.data=t.readUint8Array(r[e(895)]),t[e(883)]-=r[e(895)]),r.parse(t)}})),u[n(630)](n(966),(function(t){var e=n;this[e(609)]=t.readUint32(),this[e(866)]=t[e(876)](),0===this.version?(this[e(194)]=t[e(876)](),this[e(1350)]=t.readUint32()):(this[e(194)]=t[e(814)](),this.first_offset=t[e(814)]()),t.readUint16(),this[e(848)]=[];for(var s=t.readUint16(),i=0;i<s;i++){var r={};this[e(848)][e(1031)](r);var o=t[e(876)]();r[e(1036)]=o>>31&1,r[e(677)]=2147483647&o,r[e(1274)]=t[e(876)](),o=t[e(876)](),r.starts_with_SAP=o>>31&1,r[e(930)]=o>>28&7,r[e(1306)]=268435455&o}})),u[n(780)]=function(t,e,s,i){var r=n;u[r(919)][r(1134)](this,t,e),this[r(959)]=s,this.start=i},u[n(780)][n(1262)]=new(u[n(919)]),u[n(780)][n(1262)][n(514)]=function(t){var e=n;this[e(295)]=t.readUint16();var s=t[e(771)]();this.references=[];for(var i=0;i<s;i++)this[e(848)][i]={},this[e(848)][i][e(489)]=t.readUint16()},u[n(680)]=function(t,e,s,i){var r=n;u[r(919)][r(1134)](this,t,e),this[r(959)]=s,this.start=i},u.SingleItemTypeReferenceBoxLarge[n(1262)]=new u.Box,u.SingleItemTypeReferenceBoxLarge.prototype.parse=function(t){var e=n;this[e(295)]=t[e(876)]();var s=t[e(771)]();this.references=[];for(var i=0;i<s;i++)this.references[i]={},this[e(848)][i][e(489)]=t[e(876)]()},u[n(630)]("SmDm",(function(t){var e=n;this[e(702)]=t[e(771)](),this[e(223)]=t[e(771)](),this.primaryGChromaticity_x=t[e(771)](),this.primaryGChromaticity_y=t[e(771)](),this[e(473)]=t.readUint16(),this.primaryBChromaticity_y=t[e(771)](),this[e(874)]=t.readUint16(),this[e(769)]=t[e(771)](),this[e(1357)]=t[e(876)](),this[e(314)]=t[e(876)]()})),u[n(630)]("smhd",(function(t){var e=n;this[e(357)]=t[e(771)](),t[e(771)]()})),u[n(630)](n(1195),(function(t){var e=n;this.subsegments=[];for(var s=t[e(876)](),i=0;i<s;i++){var r={};this[e(356)][e(1031)](r),r[e(1234)]=[];for(var o=t[e(876)](),a=0;a<o;a++){var h={};r[e(1234)].push(h),h[e(470)]=t[e(245)](),h[e(560)]=t[e(400)]()}}})),u[n(630)](n(363),(function(t){var e,s=n;if(e=t[s(876)](),this[s(191)]=[],0===this[s(513)])for(var i=0;i<e;i++)this[s(191)][s(1031)](t[s(876)]())})),u.createFullBoxCtor(n(228),(function(t){var e=n,s=(this[e(532)]-this[e(959)])/2;this.priority=[];for(var i=0;i<s;i++)this.priority[i]=t[e(771)]()})),u[n(630)](n(1361)),u[n(630)]("stri",(function(t){var e=n;this[e(1255)]=t[e(771)](),this.alternate_group=t[e(771)](),this[e(664)]=t[e(876)]();var s=(this[e(532)]-this[e(959)]-8)/4;this.attribute_list=[];for(var i=0;i<s;i++)this[e(439)][i]=t[e(876)]()})),u.createFullBoxCtor("stsc",(function(t){var e,s,i=n;if(e=t[i(876)](),this.first_chunk=[],this[i(1172)]=[],this[i(678)]=[],0===this[i(513)])for(s=0;s<e;s++)this[i(1205)].push(t[i(876)]()),this[i(1172)].push(t[i(876)]()),this[i(678)][i(1031)](t[i(876)]())})),u[n(630)]("stsd",(function(t){var e,s,i,r,o=n;for(this[o(1120)]=[],i=t[o(876)](),e=1;e<=i;e++){if((s=u.parseOneBox(t,!0,this[o(532)]-(t[o(165)]()-this[o(969)])))[o(997)]!==u.OK)return;u[s.type+"SampleEntry"]?((r=new(u[s[o(809)]+o(770)])(s[o(532)]))[o(959)]=s[o(959)],r[o(969)]=s[o(969)]):r=new(u[o(770)])(s[o(809)],s.size,s[o(959)],s.start),r[o(955)]===u[o(770)].prototype.write&&r[o(1059)](t),r[o(514)](t),this[o(1120)][o(1031)](r)}})),u[n(630)](n(456),(function(t){var e=n;this[e(1312)]=t.readUint32();var s=t[e(771)]();this[e(1045)]=[];for(var i=0;i<s;i++)this[e(1045)][i]=t.readUint32()})),u[n(630)](n(925),(function(t){var e,s,i=n;if(e=t[i(876)](),this[i(451)]=[],this.sync_sample_numbers=[],0===this[i(513)])for(s=0;s<e;s++)this[i(451)][i(1031)](t.readUint32()),this[i(989)][i(1031)](t[i(876)]())})),u[n(630)](n(1366),(function(t){var e,s,i=n;if(s=t[i(876)](),0===this[i(513)])for(this[i(248)]=[],e=0;e<s;e++)this[i(248)].push(t[i(876)]())})),u[n(630)](n(531),(function(t){var e,s=n;if(this[s(784)]=[],0===this[s(513)])for(this[s(951)]=t[s(876)](),this[s(294)]=t[s(876)](),e=0;e<this[s(294)];e++)0===this[s(951)]?this[s(784)][s(1031)](t[s(876)]()):this[s(784)][e]=this.sample_size})),u[n(630)](n(529),(function(t){var e,s,i,r=n;if(e=t[r(876)](),this[r(396)]=[],this[r(150)]=[],0===this[r(513)])for(s=0;s<e;s++)this[r(396)][r(1031)](t.readUint32()),(i=t.readInt32())<0&&(i=1),this.sample_deltas[r(1031)](i)})),u[n(630)](n(812),(function(t){var e=n,s=t[e(876)]();this[e(172)]=3&s,this[e(244)]=t[e(876)]();var i,r,o=t.readUint32();for(this[e(1018)]=t[e(490)](o),this[e(1077)]=[];t[e(165)]()<this.start+this[e(532)];){if((i=u[e(719)](t,!1,this[e(532)]-(t[e(165)]()-this[e(969)]))).code!==u.OK)return;r=i[e(849)],this.boxes[e(1031)](r),this[r[e(809)]]=r}})),u[n(915)]("styp",(function(t){var e=n;u[e(499)].prototype[e(514)].call(this,t)})),u[n(630)](n(430),(function(t){var e,s,i=n;if(this[i(784)]=[],0===this[i(513)])if(this.reserved=t[i(400)](),this[i(370)]=t[i(245)](),s=t[i(876)](),4===this[i(370)])for(e=0;e<s;e+=2){var r=t[i(245)]();this.sample_sizes[e]=r>>4&15,this[i(784)][e+1]=15&r}else if(8===this.field_size)for(e=0;e<s;e++)this[i(784)][e]=t[i(245)]();else if(16===this[i(370)])for(e=0;e<s;e++)this[i(784)][e]=t[i(771)]()})),u[n(630)](n(278),(function(t){var e,s,i,r,o=n;for(i=t[o(876)](),this[o(1120)]=[],e=0;e<i;e++){var a={};if(this[o(1120)][e]=a,a[o(793)]=t[o(876)](),a.subsamples=[],(r=t[o(771)]())>0)for(s=0;s<r;s++){var h={};a[o(1224)][o(1031)](h),1==this[o(513)]?h.size=t.readUint32():h[o(532)]=t[o(771)](),h.priority=t[o(245)](),h.discardable=t[o(245)](),h[o(853)]=t[o(876)]()}}})),u[n(630)]("tenc",(function(t){var e=n;if(t[e(245)](),0===this.version)t[e(245)]();else{var s=t[e(245)]();this[e(479)]=s>>4&15,this[e(375)]=15&s}this.default_isProtected=t[e(245)](),this[e(1139)]=t[e(245)](),this[e(887)]=u[e(1230)](t),1===this[e(801)]&&0===this[e(1139)]&&(this[e(1024)]=t.readUint8(),this[e(803)]=t[e(289)](this.default_constant_IV_size))})),u[n(630)](n(871),(function(t){var e=n;1==this[e(513)]?this[e(1297)]=t.readUint64():this[e(1297)]=t[e(876)]()})),u[n(630)](n(826),(function(t){var e=n,s=0;this.track_id=t[e(876)](),this[e(532)]-this[e(959)]>s&&this[e(312)]&u[e(581)]?(this[e(855)]=t[e(814)](),s+=8):this[e(855)]=0,this.size-this[e(959)]>s&&this.flags&u[e(259)]?(this.default_sample_description_index=t[e(876)](),s+=4):this[e(940)]=0,this[e(532)]-this[e(959)]>s&&this[e(312)]&u[e(591)]?(this[e(613)]=t[e(876)](),s+=4):this[e(613)]=0,this[e(532)]-this.hdr_size>s&&this[e(312)]&u[e(842)]?(this[e(1253)]=t[e(876)](),s+=4):this[e(1253)]=0,this[e(532)]-this.hdr_size>s&&this[e(312)]&u.TFHD_FLAG_SAMPLE_FLAGS?(this[e(436)]=t[e(876)](),s+=4):this[e(436)]=0})),u[n(630)](n(1052),(function(t){var e=n;this[e(1136)]=t.readUint32(),t.readUint24();var s=t[e(245)]();this[e(645)]=s>>4&3,this.length_size_of_trun_num=s>>2&3,this.length_size_of_sample_num=3&s,this[e(1120)]=[];for(var i=t[e(876)](),r=0;r<i;r++)1===this[e(513)]?(this[e(274)]=t.readUint64(),this[e(741)]=t[e(814)]()):(this.time=t.readUint32(),this.moof_offset=t.readUint32()),this.traf_number=t[e(316)+8*(this[e(645)]+1)](),this[e(931)]=t["readUint"+8*(this[e(322)]+1)](),this[e(827)]=t[e(316)+8*(this[e(759)]+1)]()})),u[n(630)](n(903),(function(t){var e=n;1==this[e(513)]?(this[e(198)]=t.readUint64(),this[e(206)]=t.readUint64(),this[e(1257)]=t[e(876)](),t.readUint32(),this[e(256)]=t[e(814)]()):(this[e(198)]=t[e(876)](),this.modification_time=t.readUint32(),this[e(1257)]=t.readUint32(),t[e(876)](),this[e(256)]=t[e(876)]()),t[e(1310)](2),this[e(234)]=t[e(977)](),this.alternate_group=t[e(977)](),this[e(813)]=t[e(977)]()>>8,t[e(771)](),this.matrix=t.readInt32Array(9),this[e(528)]=t[e(876)](),this[e(856)]=t[e(876)]()})),u[n(915)](n(1376),(function(t){var e=n;this[e(274)]=t[e(876)]()})),u.createBoxCtor(n(891),(function(t){var e=n;this[e(274)]=t[e(876)]()})),u[n(915)](n(554),(function(t){var e=n;this[e(1182)]=t[e(876)]()})),u[n(915)](n(301),(function(t){var e=n;this.bytessent=t[e(876)]()})),u[n(915)](n(338),(function(t){var e=n;this[e(1182)]=t[e(814)]()})),u[n(1170)][n(1262)][n(514)]=function(t){var e=n;this[e(601)](t),this[e(188)]=t[e(876)]()},u[n(1360)]("msrc"),u[n(493)]=function(t,e,s,i){var r=n;u[r(919)][r(1134)](this,t,e),this.hdr_size=s,this[r(969)]=i},u[n(493)][n(1262)]=new(u[n(919)]),u[n(493)][n(1262)].parse=function(t){var e=n;this[e(276)]=t[e(1310)]((this[e(532)]-this[e(959)])/4)},u[n(1212)][n(1262)][n(514)]=function(t){for(var e,s,i=n;t.getPosition()<this[i(969)]+this[i(532)];){if((e=u[i(719)](t,!0,this.size-(t[i(165)]()-this[i(969)])))[i(997)]!==u.OK)return;(s=new(u[i(493)])(e[i(809)],e[i(532)],e[i(959)],e.start))[i(955)]===u[i(919)][i(1262)][i(955)]&&s.type!==i(1151)&&s[i(1059)](t),s[i(514)](t),this[i(1077)][i(1031)](s)}},u[n(630)](n(1186),(function(t){var e=n;for(this[e(1136)]=t[e(876)](),this[e(1077)]=[];t[e(165)]()<this.start+this.size;){if(ret=u[e(719)](t,!1,this[e(532)]-(t[e(165)]()-this.start)),ret[e(997)]!==u.OK)return;box=ret.box,this[e(1077)][e(1031)](box)}})),u.createFullBoxCtor("trex",(function(t){var e=n;this[e(1257)]=t[e(876)](),this.default_sample_description_index=t[e(876)](),this.default_sample_duration=t[e(876)](),this[e(1253)]=t[e(876)](),this.default_sample_flags=t[e(876)]()})),u[n(915)](n(260),(function(t){var e=n;this[e(1182)]=t[e(814)]()})),u[n(630)](n(242),(function(t){var e=n,s=0;if(this[e(294)]=t[e(876)](),s+=4,this[e(532)]-this[e(959)]>s&&this.flags&u[e(912)]?(this[e(608)]=t[e(155)](),s+=4):this[e(608)]=0,this[e(532)]-this[e(959)]>s&&this[e(312)]&u.TRUN_FLAGS_FIRST_FLAG?(this[e(1085)]=t[e(876)](),s+=4):this[e(1085)]=0,this[e(623)]=[],this.sample_size=[],this[e(1304)]=[],this[e(220)]=[],this[e(532)]-this[e(959)]>s)for(var i=0;i<this[e(294)];i++)this[e(312)]&u.TRUN_FLAGS_DURATION&&(this[e(623)][i]=t[e(876)]()),this[e(312)]&u[e(241)]&&(this[e(951)][i]=t[e(876)]()),this.flags&u.TRUN_FLAGS_FLAGS&&(this.sample_flags[i]=t[e(876)]()),this[e(312)]&u[e(701)]&&(0===this[e(513)]?this[e(220)][i]=t[e(876)]():this[e(220)][i]=t[e(155)]())})),u[n(630)](n(844),(function(t){var e=n;this[e(1255)]=t[e(876)]();var s=(this[e(532)]-this[e(959)]-4)/4;this[e(439)]=[];for(var i=0;i<s;i++)this[e(439)][i]=t[e(876)]()})),u.createFullBoxCtor("txtC",(function(t){var e=n;this.config=t[e(1353)]()})),u[n(915)]("tyco",(function(t){var e=n,s=(this[e(532)]-this[e(959)])/4;this[e(1086)]=[];for(var i=0;i<s;i++)this[e(1086)][i]=t.readString(4)})),u[n(630)](n(1106),(function(t){var e=n;this.lang=t[e(1353)](),this[e(463)]=t[e(1353)](),this[e(641)]=t[e(1353)](),this.tags=t[e(1353)]()})),u[n(630)](n(427),(function(t){var e,s=n;if(this.profile=t.readUint32(),1==this[s(513)]);else if(0==this[s(513)]){for(this[s(1184)]=t[s(876)](),this.component_index=[],this.component_bit_depth_minus_one=[],this[s(749)]=[],this.component_align_size=[],e=0;e<this[s(1184)];e++)this[s(691)].push(t.readUint16()),this[s(179)].push(t.readUint8()),this[s(749)][s(1031)](t.readUint8()),this[s(192)][s(1031)](t[s(245)]());this[s(1144)]=t[s(245)](),this[s(1292)]=t[s(245)](),this[s(162)]=t[s(245)]();var i=t[s(245)]();this[s(526)]=i>>7&1,this.block_pad_lsb=i>>6&1,this[s(1337)]=i>>5&1,this[s(1071)]=i>>4&1,this[s(215)]=i>>3&1,this.pixel_size=t[s(876)](),this[s(422)]=t[s(876)](),this[s(284)]=t[s(876)](),this[s(671)]=t.readUint32(),this[s(331)]=t.readUint32()}})),u.createFullBoxCtor(n(1101),(function(t){var e=n;1!==this[e(312)]&&(this[e(474)]=t[e(1353)]())})),u[n(630)]("urn ",(function(t){var e=n;this[e(463)]=t[e(1353)](),this[e(532)]-this[e(959)]-this[e(463)].length-1>0&&(this[e(474)]=t[e(1353)]())})),u[n(686)]("a5d40b30e81411ddba2f0800200c9a66",!0,!1,(function(t){var e=n;this[e(446)]=t[e(490)](this[e(532)]-this[e(959)]).replace(/&/g,e(1189)).replace(/</g,e(1042))[e(1008)](/>/g,">")[e(1008)](/"/g,e(1158))[e(1008)](/'/g,e(482))})),u[n(686)](n(421),!0,!1,(function(t){var e=n;this[e(976)]=u[e(1230)](t);var s=t[e(876)]();s>0&&(this.data=t[e(289)](s))})),u[n(686)](n(746),!0,!1),u[n(686)](n(158),!0,!1,(function(t){var e=n;this[e(626)]=t[e(400)](),this[e(1260)]=t[e(245)](),this[e(887)]=u[e(1230)](t)})),u[n(686)](n(404),!0,!1,(function(t){var e=n;this[e(1355)]=t[e(245)](),this[e(1120)]=[];for(var s=0;s<this[e(1355)];s++){var i={},r=0,o=0;1===this[e(513)]?(r=t[e(814)](),o=t[e(814)]()):(r=t[e(876)](),o=t[e(876)]()),i[e(1334)]=r,i[e(1231)]=o,this[e(1120)][e(1031)](i)}})),u[n(686)]("6d1d9b0542d544e680e2141daff757b2",!0,!1,(function(t){var e=n;1===this[e(513)]?(this.absolute_time=t[e(814)](),this[e(256)]=t[e(814)]()):(this[e(1334)]=t[e(876)](),this[e(256)]=t[e(876)]())})),u[n(630)](n(148),(function(t){var e=n;this[e(1100)]=t[e(771)](),this[e(935)]=t[e(1039)](3)})),u[n(630)](n(480),(function(t){var e,s=n;1===this[s(513)]?(this[s(570)]=t[s(245)](),this[s(470)]=t[s(245)](),e=t.readUint8(),this.bitDepth=e>>4,this[s(280)]=e>>1&7,this[s(1069)]=1&e,this.colourPrimaries=t[s(245)](),this.transferCharacteristics=t[s(245)](),this.matrixCoefficients=t[s(245)](),this.codecIntializationDataSize=t.readUint16(),this[s(388)]=t.readUint8Array(this[s(980)])):(this.profile=t.readUint8(),this[s(470)]=t[s(245)](),e=t[s(245)](),this.bitDepth=e>>4&15,this.colorSpace=15&e,e=t.readUint8(),this[s(280)]=e>>4&15,this[s(1041)]=e>>1&7,this[s(1069)]=1&e,this[s(980)]=t.readUint16(),this[s(388)]=t[s(289)](this[s(980)]))})),u[n(915)](n(387),(function(t){var e=n;this[e(287)]=t[e(490)](this[e(532)]-this[e(959)])})),u.createFullBoxCtor("vvcC",(function(t){var e,s,i=n,r={held_bits:void 0,num_held_bits:0,stream_read_1_bytes:function(t){var e=pf;this[e(964)]=t[e(245)](),this[e(438)]=8},stream_read_2_bytes:function(t){var e=pf;this[e(964)]=t[e(771)](),this.num_held_bits=16},extract_bits:function(t){var e=pf,s=this[e(964)]>>this[e(438)]-t&(1<<t)-1;return this[e(438)]-=t,s}};if(r[i(683)](t),r[i(1233)](5),this[i(288)]=r[i(1233)](2),this[i(1078)]=r[i(1233)](1),this.ptl_present_flag){if(r[i(258)](t),this[i(327)]=r.extract_bits(9),this.num_sublayers=r[i(1233)](3),this[i(952)]=r.extract_bits(2),this[i(1325)]=r[i(1233)](2),r[i(683)](t),this[i(1067)]=r[i(1233)](3),r[i(1233)](5),r[i(258)](t),r[i(1233)](2),this[i(383)]=r[i(1233)](6),this[i(1155)]=r[i(1233)](7),this[i(957)]=r.extract_bits(1),this.general_level_idc=t.readUint8(),r[i(683)](t),this[i(696)]=r[i(1233)](1),this.ptl_multilayer_enabled_flag=r.extract_bits(1),this[i(236)]=new Uint8Array(this[i(383)]),this[i(383)]){for(e=0;e<this[i(383)]-1;e++){var o=r.extract_bits(6);r[i(683)](t);var a=r.extract_bits(2);this[i(236)][e]=o<<2|a}this[i(236)][this[i(383)]-1]=r[i(1233)](6)}else r.extract_bits(6);if(this[i(497)]>1){for(r.stream_read_1_bytes(t),this[i(973)]=0,s=this.num_sublayers-2;s>=0;--s){var h=r[i(1233)](1);this[i(973)]|=h<<s}for(s=this.num_sublayers;s<=8&&this[i(497)]>1;++s)r[i(1233)](1);for(this[i(542)]=[],s=this.num_sublayers-2;s>=0;--s)this.ptl_sublayer_present_mask&1<<s&&(this[i(542)][s]=t[i(245)]())}if(this[i(698)]=t[i(245)](),this[i(444)]=[],this[i(698)])for(e=0;e<this[i(698)];e++)this[i(444)][i(1031)](t[i(876)]());this.max_picture_width=t[i(771)](),this.max_picture_height=t.readUint16(),this[i(262)]=t[i(771)]()}this[i(1117)]=[];var c=t[i(245)]();for(e=0;e<c;e++){var l=[];this.nalu_arrays[i(1031)](l),r[i(683)](t),l[i(1343)]=r[i(1233)](1),r.extract_bits(2),l[i(697)]=r[i(1233)](5);var d=1;for(13!=l[i(697)]&&12!=l[i(697)]&&(d=t[i(771)]()),s=0;s<d;s++){var u=t.readUint16();l[i(1031)]({data:t[i(289)](u),length:u})}}})),u.createFullBoxCtor(n(267),(function(t){var e=n,s=strm.readUint8();this[e(288)]=3&s})),u[n(770)][n(1262)][n(1110)]=function(){return!1},u.SampleEntry[n(1262)][n(840)]=function(){return!1},u[n(770)][n(1262)][n(161)]=function(){return!1},u[n(770)].prototype[n(214)]=function(){return!1},u[n(770)][n(1262)].isHint=function(){return!1},u[n(770)].prototype[n(1166)]=function(){var t=n;return this.type[t(1008)](".","")},u[n(770)][n(1262)][n(984)]=function(){return""},u[n(770)].prototype[n(1021)]=function(){return""},u[n(770)][n(1262)][n(247)]=function(){return""},u.SampleEntry[n(1262)][n(1347)]=function(){return""},u.SampleEntry.prototype[n(1087)]=function(){return""},u[n(341)].prototype[n(1110)]=function(){return!0},u[n(341)].prototype.getWidth=function(){return this.width},u[n(341)][n(1262)][n(1021)]=function(){return this[n(856)]},u[n(272)][n(1262)][n(840)]=function(){return!0},u.AudioSampleEntry.prototype[n(247)]=function(){return this[n(865)]},u[n(272)][n(1262)][n(1347)]=function(){return this[n(1240)]},u.AudioSampleEntry[n(1262)].getSampleSize=function(){return this[n(281)]},u[n(1258)][n(1262)].isSubtitle=function(){return!0},u[n(1322)][n(1262)][n(214)]=function(){return!0},u[n(932)]=function(t,e){var s=n,i=Number(t)[s(1210)](16);for(e=null==e?e=2:e;i[s(348)]<e;)i="0"+i;return i},u[n(385)][n(1262)].getCodec=u[n(1269)][n(1262)].getCodec=u[n(1209)][n(1262)][n(1166)]=u[n(536)][n(1262)][n(1166)]=function(){var t=n,e=u[t(770)].prototype.getCodec[t(1134)](this);return this[t(739)]?e+"."+u[t(932)](this[t(739)][t(618)])+u[t(932)](this[t(739)][t(1276)])+u[t(932)](this[t(739)][t(1180)]):e},u[n(1029)].prototype[n(1166)]=u[n(1363)][n(1262)][n(1166)]=function(){var t,e=n,s=u[e(770)][e(1262)][e(1166)][e(1134)](this);if(this[e(1022)]){switch(s+=".",this[e(1022)][e(1044)]){case 0:s+="";break;case 1:s+="A";break;case 2:s+="B";break;case 3:s+="C"}s+=this[e(1022)][e(1155)],s+=".";var i=this[e(1022)][e(838)],r=0;for(t=0;t<32&&(r|=1&i,31!=t);t++)r<<=1,i>>=1;s+=u[e(932)](r,0),s+=".",0===this[e(1022)][e(957)]?s+="L":s+="H",s+=this.hvcC[e(889)];var o=!1,a="";for(t=5;t>=0;t--)(this[e(1022)][e(519)][t]||o)&&(a="."+u[e(932)](this[e(1022)][e(519)][t],0)+a,o=!0);s+=a}return s},u[n(1289)].prototype[n(1166)]=u[n(149)][n(1262)].getCodec=function(){var t,e=n,s=u.SampleEntry[e(1262)][e(1166)][e(1134)](this);if(this.vvcC){s+="."+this[e(177)][e(1155)],this[e(177)][e(957)]?s+=".H":s+=".L",s+=this[e(177)][e(889)];var i="";if(this.vvcC[e(236)]){var r,o=[],a=0;for(a|=this[e(177)][e(882)]<<7,a|=this[e(177)].ptl_multilayer_enabled<<6,t=0;t<this[e(177)].general_constraint_info.length;++t)a|=this.vvcC[e(236)][t]>>2&63,o.push(a),a&&(r=t),a=this[e(177)][e(236)][t]>>2&3;if(void 0===r)i=".CA";else{i=".C";var h="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",c=0,l=0;for(t=0;t<=r;++t)for(c=c<<8|o[t],l+=8;l>=5;){i+=h[c>>l-5&31],c&=(1<<(l-=5))-1}l&&(i+=h[31&(c<<=5-l)])}}s+=i}return s},u.mp4aSampleEntry[n(1262)][n(1166)]=function(){var t=n,e=u.SampleEntry[t(1262)][t(1166)][t(1134)](this);if(this[t(512)]&&this[t(512)][t(802)]){var s=this[t(512)][t(802)].getOTI(),i=this[t(512)][t(802)].getAudioConfig();return e+"."+u[t(932)](s)+(i?"."+i:"")}return e},u[n(539)][n(1262)][n(1166)]=function(){var t=n,e=u[t(770)][t(1262)].getCodec[t(1134)](this);return this[t(583)]?e+"."+this[t(583)]:e},u[n(1275)][n(1262)][n(1166)]=u[n(574)][n(1262)][n(1166)]=function(){var t=n,e=u[t(770)].prototype.getCodec.call(this),s=this[t(480)][t(470)];0==s&&(s="00");var i=this[t(480)].bitDepth;return 8==i&&(i="08"),e+".0"+this[t(480)][t(570)]+"."+s+"."+i},u[n(468)][n(1262)][n(1166)]=function(){var t,e=n,s=u[e(770)][e(1262)].getCodec[e(1134)](this),i=this[e(706)][e(193)];return i<10&&(i="0"+i),2===this.av1C[e(450)]&&1===this.av1C[e(805)]?t=1===this.av1C[e(231)]?"12":"10":this.av1C[e(450)]<=2&&(t=1===this[e(706)].high_bitdepth?"10":"08"),s+"."+this.av1C[e(450)]+"."+i+(this[e(706)][e(858)]?"H":"M")+"."+t},u[n(919)][n(1262)][n(704)]=function(t,e){var s=n;this[s(532)]+=8,this.size>c&&(this[s(532)]+=8),"uuid"===this[s(809)]&&(this[s(532)]+=16),o[s(485)](s(1130),s(1268)+this[s(809)]+" of size: "+this[s(532)]+s(469)+t[s(165)]()+(e||"")),this.size>c?t[s(763)](1):(this.sizePosition=t.getPosition(),t.writeUint32(this[s(532)])),t.writeString(this.type,null,4),this[s(809)]===s(1338)&&t[s(359)](this[s(1338)]),this[s(532)]>c&&t[s(720)](this.size)},u[n(435)].prototype.writeHeader=function(t){var e=n;this[e(532)]+=4,u.Box[e(1262)][e(704)][e(1134)](this,t,e(611)+this[e(513)]+e(760)+this.flags),t.writeUint8(this.version),t[e(847)](this.flags)},u[n(919)][n(1262)].write=function(t){var e=n;this[e(809)]===e(1151)?this[e(1080)]&&(this.size=this[e(1080)][e(348)],this[e(704)](t),t[e(359)](this[e(1080)])):(this[e(532)]=this[e(1080)]?this.data[e(348)]:0,this[e(704)](t),this[e(1080)]&&t[e(359)](this[e(1080)]))},u[n(732)].prototype[n(955)]=function(t){var e=n;this[e(532)]=0,this[e(704)](t);for(var s=0;s<this[e(1077)][e(348)];s++)this[e(1077)][s]&&(this[e(1077)][s][e(955)](t),this.size+=this[e(1077)][s][e(532)]);o[e(485)](e(1130),"Adjusting box "+this[e(809)]+e(353)+this[e(532)]),t.adjustUint32(this[e(333)],this[e(532)])},u[n(493)].prototype[n(955)]=function(t){var e=n;this[e(532)]=4*this[e(276)][e(348)],this[e(704)](t),t.writeUint32Array(this[e(276)])},u[n(555)][n(1262)][n(955)]=function(t){var e,s=n;for(this[s(532)]=7,e=0;e<this[s(360)][s(348)];e++)this[s(532)]+=2+this.SPS[e][s(348)];for(e=0;e<this[s(1223)].length;e++)this[s(532)]+=2+this[s(1223)][e][s(348)];for(this.ext&&(this.size+=this[s(549)].length),this[s(704)](t),t.writeUint8(this.configurationVersion),t[s(1342)](this[s(618)]),t.writeUint8(this[s(1276)]),t[s(1342)](this[s(1180)]),t.writeUint8(this[s(288)]+252),t[s(1342)](this[s(360)].length+224),e=0;e<this[s(360)].length;e++)t[s(347)](this[s(360)][e].length),t[s(359)](this.SPS[e][s(317)]);for(t[s(1342)](this.PPS[s(348)]),e=0;e<this[s(1223)].length;e++)t.writeUint16(this[s(1223)][e][s(348)]),t[s(359)](this[s(1223)][e][s(317)]);this[s(549)]&&t.writeUint8Array(this[s(549)])},u.co64Box[n(1262)][n(955)]=function(t){var e,s=n;for(this[s(513)]=0,this[s(312)]=0,this[s(532)]=4+8*this.chunk_offsets[s(348)],this.writeHeader(t),t[s(763)](this.chunk_offsets.length),e=0;e<this[s(191)][s(348)];e++)t[s(720)](this[s(191)][e])},u[n(861)].prototype.write=function(t){var e=n;this.version=0,this[e(312)]=0,this[e(532)]=20,this[e(704)](t),t[e(872)](this[e(595)]),t[e(872)](this[e(1105)]),t[e(872)](this[e(773)]),t[e(872)](this[e(1040)]),t[e(872)](this[e(227)])},u[n(170)][n(1262)].write=function(t){var e,s=n;for(this[s(513)]=0,this.flags=0,this[s(532)]=4+8*this[s(396)][s(348)],this[s(704)](t),t.writeUint32(this[s(396)].length),e=0;e<this.sample_counts[s(348)];e++)t[s(763)](this[s(396)][e]),1===this[s(513)]?t[s(872)](this[s(1271)][e]):t[s(763)](this[s(1271)][e])},u[n(908)][n(1262)][n(955)]=function(t){var e=n;this[e(513)]=0,this[e(312)]=0,this[e(532)]=4,this[e(704)](t),t[e(763)](this[e(1120)][e(348)]);for(var s=0;s<this[e(1120)].length;s++)this[e(1120)][s][e(955)](t),this[e(532)]+=this[e(1120)][s].size;o.debug(e(1130),e(941)+this[e(809)]+e(353)+this[e(532)]),t[e(197)](this[e(333)],this[e(532)])},u[n(950)][n(1262)][n(955)]=function(t){var e=n;this[e(513)]=0,this[e(312)]=0,this[e(532)]=this[e(564)][e(348)],this[e(704)](t),t[e(1340)](this[e(564)])},u.elstBox[n(1262)][n(955)]=function(t){var e=n;this[e(513)]=0,this[e(312)]=0,this[e(532)]=4+12*this[e(1120)].length,this.writeHeader(t),t.writeUint32(this[e(1120)][e(348)]);for(var s=0;s<this[e(1120)][e(348)];s++){var i=this.entries[s];t.writeUint32(i[e(945)]),t[e(872)](i.media_time),t[e(670)](i[e(877)]),t.writeInt16(i[e(1229)])}},u[n(306)].prototype[n(955)]=function(t){var e=n;this[e(513)]=0,this[e(312)]=0,this.size=16+this.message_data[e(348)]+(this.scheme_id_uri[e(348)]+1)+(this[e(892)][e(348)]+1),this[e(704)](t),t[e(553)](this.scheme_id_uri),t[e(553)](this[e(892)]),t[e(763)](this.timescale),t[e(763)](this[e(981)]),t[e(763)](this[e(180)]),t[e(763)](this.id),t[e(359)](this[e(1192)])},u.ftypBox.prototype.write=function(t){var e=n;this[e(532)]=8+4*this[e(1086)][e(348)],this[e(704)](t),t[e(1340)](this[e(575)],null,4),t[e(763)](this.minor_version);for(var s=0;s<this[e(1086)][e(348)];s++)t[e(1340)](this.compatible_brands[s],null,4)},u.hdlrBox[n(1262)].write=function(t){var e=n;this[e(532)]=20+this[e(463)].length+1,this[e(513)]=0,this[e(312)]=0,this.writeHeader(t),t.writeUint32(0),t[e(1340)](this[e(230)],null,4),t[e(763)](0),t[e(763)](0),t[e(763)](0),t.writeCString(this[e(463)])},u[n(527)][n(1262)][n(955)]=function(t){var e,s,i=n;for(this.size=23,e=0;e<this[i(1117)][i(348)];e++)for(this.size+=3,s=0;s<this.nalu_arrays[e].length;s++)this[i(532)]+=2+this[i(1117)][e][s][i(1080)][i(348)];for(this[i(704)](t),t.writeUint8(this[i(1047)]),t[i(1342)](this.general_profile_space<<6+this[i(957)]<<5+this.general_profile_idc),t.writeUint32(this.general_profile_compatibility),t[i(359)](this[i(519)]),t[i(1342)](this[i(889)]),t[i(347)](this[i(972)]+(15<<24)),t[i(1342)](this[i(304)]+252),t[i(1342)](this[i(1325)]+252),t[i(1342)](this[i(918)]+248),t[i(1342)](this[i(429)]+248),t.writeUint16(this[i(709)]),t[i(1342)]((this[i(1173)]<<6)+(this.numTemporalLayers<<3)+(this[i(600)]<<2)+this[i(288)]),t[i(1342)](this.nalu_arrays[i(348)]),e=0;e<this[i(1117)].length;e++)for(t[i(1342)]((this[i(1117)][e][i(1343)]<<7)+this[i(1117)][e][i(697)]),t.writeUint16(this[i(1117)][e][i(348)]),s=0;s<this[i(1117)][e].length;s++)t[i(347)](this[i(1117)][e][s].data[i(348)]),t[i(359)](this[i(1117)][e][s][i(1080)])},u[n(226)][n(1262)][n(955)]=function(t){var e=n;this.version=0,this.flags=0,this.size=this[e(792)][e(348)]+1+(this[e(892)].length+1),this.writeHeader(t),t[e(553)](this[e(792)]),t.writeCString(this[e(892)])},u[n(313)].prototype.write=function(t){var e=n;this[e(532)]=20,this[e(312)]=0,this[e(513)]=0,this.writeHeader(t),t[e(763)](this[e(198)]),t[e(763)](this[e(206)]),t[e(763)](this[e(866)]),t.writeUint32(this[e(256)]),t.writeUint16(this[e(424)]),t[e(347)](0)},u[n(820)][n(1262)][n(955)]=function(t){var e=n;this[e(513)]=0,this[e(312)]=0,this[e(532)]=4,this[e(704)](t),t[e(763)](this[e(757)])},u[n(318)][n(1262)][n(955)]=function(t){var e=n;this[e(513)]=0,this.flags=0,this[e(532)]=4,this.writeHeader(t),t[e(763)](this[e(863)])},u[n(712)][n(1262)].write=function(t){var e=n;this.version=0,this[e(312)]=0,this.size=96,this[e(704)](t),t[e(763)](this[e(198)]),t[e(763)](this[e(206)]),t[e(763)](this[e(866)]),t[e(763)](this[e(256)]),t[e(763)](this[e(442)]),t[e(347)](this.volume<<8),t[e(347)](0),t[e(763)](0),t[e(763)](0),t[e(1267)](this.matrix),t[e(763)](0),t[e(763)](0),t.writeUint32(0),t[e(763)](0),t[e(763)](0),t[e(763)](0),t.writeUint32(this[e(1163)])},u[n(770)][n(1262)][n(704)]=function(t){var e=n;this[e(532)]=8,u[e(919)][e(1262)].writeHeader[e(1134)](this,t),t[e(1342)](0),t[e(1342)](0),t[e(1342)](0),t.writeUint8(0),t.writeUint8(0),t[e(1342)](0),t[e(347)](this[e(1148)])},u[n(770)].prototype[n(1095)]=function(t){for(var e=n,s=0;s<this[e(1077)][e(348)];s++)this[e(1077)][s][e(955)](t),this.size+=this[e(1077)][s].size;o[e(485)](e(1130),e(941)+this[e(809)]+e(353)+this[e(532)]),t[e(197)](this[e(333)],this.size)},u.SampleEntry[n(1262)][n(955)]=function(t){var e=n;this.writeHeader(t),t[e(359)](this[e(1080)]),this[e(532)]+=this[e(1080)][e(348)],o[e(485)](e(1130),e(941)+this[e(809)]+e(353)+this[e(532)]),t[e(197)](this[e(333)],this[e(532)])},u[n(341)][n(1262)][n(955)]=function(t){var e=n;this[e(704)](t),this.size+=70,t[e(347)](0),t[e(347)](0),t.writeUint32(0),t[e(763)](0),t[e(763)](0),t[e(347)](this[e(528)]),t.writeUint16(this[e(856)]),t[e(763)](this[e(978)]),t[e(763)](this[e(694)]),t[e(763)](0),t[e(347)](this[e(1272)]),t[e(1342)](Math[e(496)](31,this[e(988)][e(348)])),t[e(1340)](this[e(988)],null,31),t[e(347)](this[e(1324)]),t[e(670)](-1),this[e(1095)](t)},u[n(272)][n(1262)].write=function(t){var e=n;this[e(704)](t),this[e(532)]+=20,t[e(763)](0),t[e(763)](0),t[e(347)](this[e(865)]),t.writeUint16(this[e(281)]),t.writeUint16(0),t[e(347)](0),t[e(763)](this[e(1240)]<<16),this[e(1095)](t)},u[n(756)].prototype[n(955)]=function(t){var e=n;this[e(704)](t),this.size+=this.namespace[e(348)]+1+this[e(685)][e(348)]+1+this[e(232)].length+1,t.writeCString(this.namespace),t[e(553)](this[e(685)]),t[e(553)](this[e(232)]),this.writeFooter(t)},u[n(426)][n(1262)][n(955)]=function(t){var e=n;t[e(359)](this[e(1080)])},u[n(636)][n(1262)][n(955)]=function(t){var e=n;this[e(513)]=1,this.flags=0,this.size=12+8*this[e(1120)][e(348)],this[e(704)](t),t[e(1340)](this[e(1312)],null,4),t[e(763)](this[e(714)]),t[e(763)](this[e(1120)][e(348)]);for(var s=0;s<this[e(1120)][e(348)];s++){var i=this[e(1120)][s];t[e(872)](i[e(294)]),t.writeInt32(i[e(1045)])}},u[n(229)].prototype[n(955)]=function(t){var e,s,i=n;for(this[i(312)]=0,this[i(532)]=12,e=0;e<this[i(1120)][i(348)];e++)s=this[i(1120)][e],1===this[i(513)]&&(0===this.default_length&&(this[i(532)]+=4),this.size+=s[i(1080)].length);for(this.writeHeader(t),t[i(1340)](this[i(1312)],null,4),1===this[i(513)]&&t.writeUint32(this.default_length),this[i(513)]>=2&&t[i(763)](this.default_sample_description_index),t[i(763)](this[i(1120)][i(348)]),e=0;e<this[i(1120)][i(348)];e++)s=this.entries[e],1===this[i(513)]&&0===this[i(1064)]&&t[i(763)](s.description_length),s[i(955)](t)},u[n(1043)][n(1262)].write=function(t){var e=n;this.version=0,this[e(312)]=0,this[e(532)]=20+12*this[e(848)].length,this[e(704)](t),t[e(763)](this[e(609)]),t[e(763)](this[e(866)]),t[e(763)](this[e(194)]),t[e(763)](this[e(1350)]),t[e(347)](0),t.writeUint16(this[e(848)][e(348)]);for(var s=0;s<this[e(848)][e(348)];s++){var i=this[e(848)][s];t.writeUint32(i[e(1036)]<<31|i[e(677)]),t[e(763)](i[e(1274)]),t[e(763)](i[e(1247)]<<31|i[e(930)]<<28|i[e(1306)])}},u[n(867)][n(1262)][n(955)]=function(t){var e=n;this.version=0,this[e(312)]=1,this[e(532)]=4,this[e(704)](t),t[e(347)](this[e(357)]),t.writeUint16(0)},u[n(829)].prototype[n(955)]=function(t){var e=n;this[e(513)]=0,this.flags=0,this[e(532)]=4+4*this[e(191)][e(348)],this[e(704)](t),t[e(763)](this.chunk_offsets[e(348)]),t[e(1267)](this.chunk_offsets)},u.stscBox[n(1262)].write=function(t){var e,s=n;for(this[s(513)]=0,this[s(312)]=0,this[s(532)]=4+12*this[s(1205)][s(348)],this[s(704)](t),t.writeUint32(this[s(1205)][s(348)]),e=0;e<this[s(1205)][s(348)];e++)t[s(763)](this[s(1205)][e]),t[s(763)](this.samples_per_chunk[e]),t[s(763)](this[s(678)][e])},u[n(1294)][n(1262)][n(955)]=function(t){var e,s=n;for(this[s(513)]=0,this[s(312)]=0,this[s(532)]=0,this[s(704)](t),t[s(763)](this.entries[s(348)]),this[s(532)]+=4,e=0;e<this.entries.length;e++)this[s(1120)][e][s(955)](t),this[s(532)]+=this[s(1120)][e][s(532)];o[s(485)](s(1130),"Adjusting box "+this[s(809)]+s(353)+this[s(532)]),t[s(197)](this.sizePosition,this[s(532)])},u[n(1033)][n(1262)].write=function(t){var e,s=n;for(this.version=0,this[s(312)]=0,this[s(532)]=4+8*this[s(451)].length,this[s(704)](t),t[s(763)](this[s(451)][s(348)]),e=0;e<this[s(451)][s(348)];e++)t[s(763)](this[s(451)][e]),t[s(763)](this[s(989)][e])},u[n(785)].prototype.write=function(t){var e=n;this[e(513)]=0,this[e(312)]=0,this[e(532)]=4+4*this[e(248)][e(348)],this[e(704)](t),t.writeUint32(this[e(248)][e(348)]),t[e(1267)](this[e(248)])},u[n(947)][n(1262)][n(955)]=function(t){var e,s=n,i=!0;if(this[s(513)]=0,this[s(312)]=0,this[s(784)][s(348)]>0)for(e=0;e+1<this[s(784)][s(348)];){if(this.sample_sizes[e+1]!==this[s(784)][0]){i=!1;break}e++}else i=!1;this.size=8,!i&&(this[s(532)]+=4*this.sample_sizes[s(348)]),this[s(704)](t),i?t[s(763)](this[s(784)][0]):t[s(763)](0),t[s(763)](this[s(784)][s(348)]),!i&&t[s(1267)](this[s(784)])},u[n(1323)][n(1262)][n(955)]=function(t){var e,s=n;for(this[s(513)]=0,this[s(312)]=0,this.size=4+8*this[s(396)][s(348)],this[s(704)](t),t[s(763)](this[s(396)].length),e=0;e<this[s(396)][s(348)];e++)t[s(763)](this[s(396)][e]),t.writeUint32(this.sample_deltas[e])},u[n(1164)].prototype[n(955)]=function(t){var e=n,s=Math[e(437)](2,32)-1;this[e(513)]=this.baseMediaDecodeTime>s?1:0,this[e(312)]=0,this.size=4,1===this[e(513)]&&(this.size+=4),this[e(704)](t),1===this[e(513)]?t[e(720)](this[e(1297)]):t[e(763)](this[e(1297)])},u.tfhdBox[n(1262)][n(955)]=function(t){var e=n;this[e(513)]=0,this.size=4,this[e(312)]&u[e(581)]&&(this[e(532)]+=8),this.flags&u.TFHD_FLAG_SAMPLE_DESC&&(this[e(532)]+=4),this[e(312)]&u[e(591)]&&(this.size+=4),this[e(312)]&u[e(842)]&&(this.size+=4),this[e(312)]&u[e(1068)]&&(this[e(532)]+=4),this.writeHeader(t),t[e(763)](this[e(1257)]),this[e(312)]&u.TFHD_FLAG_BASE_DATA_OFFSET&&t[e(720)](this.base_data_offset),this[e(312)]&u[e(259)]&&t[e(763)](this[e(940)]),this[e(312)]&u.TFHD_FLAG_SAMPLE_DUR&&t[e(763)](this[e(613)]),this.flags&u[e(842)]&&t[e(763)](this[e(1253)]),this[e(312)]&u[e(1068)]&&t[e(763)](this.default_sample_flags)},u.tkhdBox.prototype[n(955)]=function(t){var e=n;this[e(513)]=0,this[e(532)]=80,this.writeHeader(t),t[e(763)](this[e(198)]),t.writeUint32(this[e(206)]),t[e(763)](this.track_id),t[e(763)](0),t[e(763)](this[e(256)]),t[e(763)](0),t.writeUint32(0),t[e(670)](this[e(234)]),t[e(670)](this.alternate_group),t[e(670)](this[e(813)]<<8),t[e(347)](0),t[e(690)](this[e(212)]),t.writeUint32(this[e(528)]),t[e(763)](this[e(856)])},u[n(1072)][n(1262)][n(955)]=function(t){var e=n;this.version=0,this[e(312)]=0,this.size=20,this[e(704)](t),t.writeUint32(this[e(1257)]),t[e(763)](this.default_sample_description_index),t[e(763)](this.default_sample_duration),t.writeUint32(this[e(1253)]),t[e(763)](this[e(436)])},u[n(830)].prototype[n(955)]=function(t){var e=n;this[e(513)]=0,this[e(532)]=4,this[e(312)]&u[e(912)]&&(this.size+=4),this[e(312)]&u.TRUN_FLAGS_FIRST_FLAG&&(this[e(532)]+=4),this[e(312)]&u.TRUN_FLAGS_DURATION&&(this[e(532)]+=4*this[e(623)][e(348)]),this[e(312)]&u[e(241)]&&(this.size+=4*this.sample_size[e(348)]),this[e(312)]&u[e(471)]&&(this[e(532)]+=4*this[e(1304)][e(348)]),this[e(312)]&u.TRUN_FLAGS_CTS_OFFSET&&(this.size+=4*this[e(220)][e(348)]),this[e(704)](t),t[e(763)](this.sample_count),this.flags&u[e(912)]&&(this[e(199)]=t[e(165)](),t[e(872)](this[e(608)])),this[e(312)]&u[e(970)]&&t[e(763)](this[e(1085)]);for(var s=0;s<this[e(294)];s++)this[e(312)]&u[e(938)]&&t.writeUint32(this[e(623)][s]),this[e(312)]&u[e(241)]&&t.writeUint32(this[e(951)][s]),this[e(312)]&u[e(471)]&&t[e(763)](this[e(1304)][s]),this[e(312)]&u[e(701)]&&(0===this[e(513)]?t[e(763)](this[e(220)][s]):t.writeInt32(this[e(220)][s]))},u[n(292)][n(1262)].write=function(t){var e=n;this[e(513)]=0,this[e(474)]?(this[e(312)]=0,this.size=this.location[e(348)]+1):(this[e(312)]=1,this[e(532)]=0),this.writeHeader(t),this[e(474)]&&t.writeCString(this[e(474)])},u[n(1011)][n(1262)].write=function(t){var e=n;this[e(513)]=0,this[e(312)]=0,this[e(532)]=this[e(463)][e(348)]+1+(this[e(474)]?this[e(474)][e(348)]+1:0),this[e(704)](t),t[e(553)](this[e(463)]),this[e(474)]&&t[e(553)](this[e(474)])},u[n(392)][n(1262)][n(955)]=function(t){var e=n;this[e(513)]=0,this.flags=1,this[e(532)]=8,this[e(704)](t),t[e(347)](this.graphicsmode),t[e(651)](this[e(935)])},u.cttsBox.prototype[n(974)]=function(t){var e,s,i,r=n;for(i=0,e=0;e<this[r(396)][r(348)];e++)for(s=0;s<this[r(396)][e];s++)t[i][r(1358)]=t[i][r(725)]+this[r(1271)][e],i++},u[n(1323)][n(1262)][n(974)]=function(t){var e,s,i,r=n;for(i=0,e=0;e<this[r(396)][r(348)];e++)for(s=0;s<this[r(396)][e];s++)t[i][r(725)]=0===i?0:t[i-1][r(725)]+this[r(150)][e],i++},u[n(829)][n(1262)].unpack=function(t){var e,s=n;for(e=0;e<this[s(191)][s(348)];e++)t[e][s(737)]=this[s(191)][e]},u[n(586)][n(1262)][n(974)]=function(t){var e,s,i,r,o,a=n;for(r=0,o=0,e=0;e<this[a(1205)][a(348)];e++)for(s=0;s<(e+1<this[a(1205)][a(348)]?this[a(1205)][e+1]:1/0);s++)for(o++,i=0;i<this[a(1172)][e];i++){if(!t[r])return;t[r].description_index=this[a(678)][e],t[r][a(1015)]=o,r++}},u.stszBox[n(1262)][n(974)]=function(t){var e,s=n;for(e=0;e<this[s(784)][s(348)];e++)t[e][s(532)]=this[s(784)][e]},u[n(269)]=[n(1077),n(1120),n(848),n(1224),n(796),n(349),"extents",n(755),n(356),"ranges","seekLists",n(1159),"esd",n(806)],u[n(320)]=["compatible_brands",n(212),"opcolor",n(396),"sample_counts",n(150),"first_chunk",n(1172),"sample_sizes",n(191),n(1271),n(678),n(623)],u.boxEqualFields=function(t,e){var s,i=n;if(t&&!e)return!1;for(s in t)if(!(u[i(269)].indexOf(s)>-1||t[s]instanceof u[i(919)]||e[s]instanceof u[i(919)]||void 0===t[s]||typeof e[s]===i(751)||typeof t[s]===i(350)||typeof e[s]===i(350)||t[i(968)]&&t.subBoxNames[i(904)](s[i(898)](0,4))>-1||e[i(968)]&&e[i(968)][i(904)](s[i(898)](0,4))>-1||"data"===s||"start"===s||s===i(532)||"creation_time"===s||s===i(206)||u[i(320)][i(904)](s)>-1||t[s]===e[s]))return!1;return!0},u[n(1006)]=function(t,e){var s=n;if(!u[s(1058)](t,e))return!1;for(var i=0;i<u.DIFF_BOXES_PROP_NAMES[s(348)];i++){var r=u.DIFF_BOXES_PROP_NAMES[i];if(t[r]&&e[r]&&!u[s(1006)](t[r],e[r]))return!1}return!0};var m=function(){};m[n(1262)][n(662)]=function(t){var e,s,i=n,r=new a(t.buffer);for(e=[];!r[i(416)]();)(s=u[i(719)](r,!1)).code===u.OK&&s[i(849)][i(809)]===i(465)&&e[i(1031)](s[i(849)]);return e},m[n(1262)][n(1285)]=function(t,e,s){var i=n;function r(t,e,s){var i=pf;return s=s||"0",(t+="")[i(348)]>=e?t:new Array(e-t[i(348)]+1)[i(688)](s)+t}function o(t){var e=pf,s=Math[e(1070)](t/3600),i=Math[e(1070)]((t-3600*s)/60),n=Math[e(1070)](t-3600*s-60*i),o=Math[e(1070)](1e3*(t-3600*s-60*i-n));return r(s,2)+":"+r(i,2)+":"+r(n,2)+"."+r(o,3)}for(var a=this[i(662)](s),h="",c=0;c<a[i(348)];c++){var l=a[c];h+=o(t)+i(506)+o(e)+"\r\n",h+=l[i(1349)][i(287)]}return h};var g=function(){};g[n(1262)][n(662)]=function(t){var e,s=n,i={};i[s(1250)]=[];var r=new a(t.data[s(753)]);if(t[s(1224)]&&0!==t[s(1224)][s(348)]){if(i[s(367)]=r[s(490)](t[s(1224)][0][s(532)]),t[s(1224)][s(348)]>1)for(e=1;e<t[s(1224)].length;e++)i[s(1250)][e]=r[s(289)](t[s(1224)][e][s(532)])}else i[s(367)]=r[s(490)](t[s(1080)][s(348)]);return typeof DOMParser!==s(751)&&(i[s(758)]=(new DOMParser)[s(516)](i.documentString,"application/xml")),i};var A=function(){};A[n(1262)][n(662)]=function(t){var e=n;return new a(t[e(1080)][e(753)])[e(490)](t[e(1080)].length)},A[n(1262)].parseConfig=function(t){var e=n,s=new a(t[e(753)]);return s[e(876)](),s[e(1353)]()},e[n(1273)]=g,e[n(580)]=A;var y=function(t){var e=n;this[e(1111)]=t||new l,this[e(1077)]=[],this[e(373)]=[],this[e(983)]=[],this[e(163)]=!1,this[e(767)]=!1,this[e(563)]=null,this[e(786)]=!1,this[e(663)]=null,this[e(342)]=!1,this.onSegment=null,this[e(1320)]=null,this[e(420)]=null,this.sampleListBuilt=!1,this[e(315)]=[],this[e(1061)]=[],this.isFragmentationInitialized=!1,this[e(990)]=!1,this[e(419)]=0,this[e(401)]=!1,this[e(1374)]=null,this[e(1177)]=!1};y[n(1262)][n(537)]=function(){var t=n;this[t(1111)]&&(this[t(1111)][t(537)](),this[t(1111)]=null),this[t(1077)]=[],this[t(373)]=[],this[t(983)]=[],this[t(163)]=!1,this[t(767)]=!1,this[t(563)]=null,this.moovStartSent=!1,this[t(663)]=null,this[t(342)]=!1,this[t(1057)]=null,this[t(1320)]=null,this[t(420)]=null,this[t(154)]=!1,this[t(315)]=[],this[t(1061)]=[],this[t(1277)]=!1,this.sampleProcessingStarted=!1,this[t(419)]=0,this[t(401)]=!1,this[t(1374)]=null,this[t(1177)]=!1,this.moov=null,this[t(652)]=null,this[t(796)]=[],this[t(625)]=[]},y[n(1262)][n(1096)]=function(t,e,s){var i=n,r=this.getTrackById(t);if(r){var o={};this[i(315)][i(1031)](o),o.id=t,o.user=e,o[i(1362)]=r,r[i(675)]=0,o.segmentStream=null,o[i(1300)]=1e3,o[i(1128)]=!0,s&&(s[i(1138)]&&(o[i(1300)]=s.nbSamples),s.rapAlignement&&(o[i(1128)]=s.rapAlignement))}},y.prototype.unsetSegmentOptions=function(t){for(var e=n,s=-1,i=0;i<this[e(315)][e(348)];i++){this[e(315)][i].id==t&&(s=i)}s>-1&&this[e(315)].splice(s,1)},y[n(1262)][n(1143)]=function(t,e,s){var i=n,r=this[i(659)](t);if(r){var o={};this[i(1061)][i(1031)](o),o.id=t,o.user=e,o[i(1362)]=r,r[i(675)]=0,o[i(1300)]=1e3,o[i(277)]=[],s&&s[i(1138)]&&(o[i(1300)]=s[i(1138)])}},y.prototype[n(633)]=function(t){for(var e=n,s=-1,i=0;i<this.extractedTracks[e(348)];i++){this[e(1061)][i].id==t&&(s=i)}s>-1&&this[e(1061)][e(590)](s,1)},y[n(1262)][n(514)]=function(){var t,e,s=n;if(!this[s(185)]||this[s(185)]())for(;;){if(this[s(253)]&&this[s(253)]()){if(this[s(598)]())continue;return}if(this.saveParsePosition&&this[s(510)](),(t=u[s(719)](this.stream,false)).code===u[s(928)]){if(this[s(216)]){if(this.processIncompleteBox(t))continue;return}return}var i;switch(i=(e=t.box)[s(809)]!==s(1338)?e[s(809)]:e[s(1338)],this[s(1077)].push(e),i){case s(1151):this[s(373)][s(1031)](e);break;case"moof":this[s(983)].push(e);break;case s(620):this[s(767)]=!0,0===this[s(373)][s(348)]&&(this[s(163)]=!0);default:this[i],this[i]=e}this[s(1303)]&&this.updateUsedBytes(e,t)}},y[n(1262)][n(423)]=function(t){var e=n;if(null==t)throw e(674);if(void 0===t[e(164)])throw"Buffer must have a fileStart property";return 0===t[e(689)]?(this[e(1111)][e(924)](),!1):(t[e(186)]=0,this[e(1111)].insertBuffer(t),this[e(1111)].logBufferLevel(),!!this[e(1111)][e(646)]())},y.prototype[n(386)]=function(t,e){var s,i=n;if(this.checkBuffer(t))return this.parse(),this[i(767)]&&!this[i(786)]&&(this[i(786)]=!0,this[i(563)]&&this.onMoovStart()),this[i(620)]?(!this.sampleListBuilt&&(this.buildSampleLists(),this[i(154)]=!0),this[i(1e3)](),this[i(663)]&&!this.readySent&&(this[i(342)]=!0,this[i(663)](this[i(319)]())),this[i(1270)](e),this[i(1055)]?(s=this[i(1055)],this.nextSeekPosition=void 0):s=this[i(843)],this[i(1111)][i(750)]&&(s=this.stream[i(750)](s))):s=this.nextParsePosition?this[i(843)]:0,this[i(966)]&&this[i(1374)]&&!this.sidxSent&&(this[i(1374)](this.sidx),this[i(1177)]=!0),this[i(1221)]&&(this[i(302)]&&!this[i(401)]&&(this[i(302)](),this.itemListBuilt=!0),this[i(738)]&&this.processItems(this[i(213)])),this.stream[i(569)]&&(this.stream.logBufferLevel(),this.stream.cleanBuffers(),this[i(1111)][i(924)](!0)),s},y[n(1262)][n(319)]=function(){var t,e,s,i,r,o,a=n,h={},c=new Date(a(818))[a(614)]();if(this[a(620)])for(h[a(585)]=!0,h[a(256)]=this[a(620)].mvhd[a(256)],h[a(866)]=this[a(620)].mvhd[a(866)],h[a(1167)]=null!=this.moov.mvex,h[a(1167)]&&this.moov[a(330)][a(1356)]&&(h.fragment_duration=this[a(620)][a(330)][a(1356)].fragment_duration),h.isProgressive=this[a(163)],h[a(156)]=null!=this[a(620)].iods,h[a(1127)]=[],h.brands.push(this.ftyp[a(575)]),h[a(1127)]=h[a(1127)][a(576)](this[a(652)][a(1086)]),h[a(1171)]=new Date(c+1e3*this[a(620)][a(717)].creation_time),h[a(948)]=new Date(c+1e3*this[a(620)].mvhd[a(206)]),h.tracks=[],h[a(1137)]=[],h[a(579)]=[],h.subtitleTracks=[],h[a(1328)]=[],h.hintTracks=[],h.otherTracks=[],t=0;t<this[a(620)][a(171)][a(348)];t++){if(o=(s=this.moov[a(171)][t]).mdia.minf[a(374)][a(240)][a(1120)][0],i={},h.tracks[a(1031)](i),i.id=s[a(903)][a(1257)],i.name=s[a(1346)].hdlr.name,i[a(848)]=[],s[a(607)])for(e=0;e<s[a(607)][a(1077)].length;e++)r={},i[a(848)].push(r),r[a(809)]=s.tref[a(1077)][e][a(809)],r.track_ids=s[a(607)][a(1077)][e][a(276)];s[a(1020)]&&(i[a(418)]=s.edts[a(1005)][a(1120)]),i.created=new Date(c+1e3*s[a(903)][a(198)]),i[a(948)]=new Date(c+1e3*s.tkhd[a(206)]),i[a(1365)]=s[a(903)][a(256)],i[a(868)]=h[a(866)],i[a(234)]=s.tkhd[a(234)],i[a(1083)]=s.tkhd[a(1083)],i[a(813)]=s[a(903)].volume,i.matrix=s[a(903)][a(212)],i[a(631)]=s[a(903)][a(528)]/65536,i[a(538)]=s.tkhd.height/65536,i[a(866)]=s[a(1346)][a(649)][a(866)],i[a(224)]=s[a(1346)][a(774)].stbl.cslg,i.duration=s[a(1346)][a(649)][a(256)],i[a(639)]=s[a(639)],i[a(1201)]=o[a(1166)](),i.kind=s[a(1118)]&&s[a(1118)][a(657)][a(348)]?s[a(1118)][a(657)][0]:{schemeURI:"",value:""},i[a(424)]=s[a(1346)].elng?s[a(1346)][a(263)].extended_language:s[a(1346)][a(649)][a(1183)],i[a(1300)]=s[a(277)][a(348)],i[a(532)]=s[a(857)],i[a(1331)]=8*i[a(532)]*i[a(866)]/i[a(639)],o[a(840)]()?(i.type=a(1208),h[a(1137)][a(1031)](i),i.audio={},i.audio[a(174)]=o[a(1347)](),i[a(1208)][a(865)]=o.getChannelCount(),i[a(1208)][a(951)]=o[a(1087)]()):o[a(1110)]()?(i[a(809)]=a(406),h[a(579)].push(i),i[a(406)]={},i[a(406)][a(528)]=o.getWidth(),i.video[a(856)]=o[a(1021)]()):o[a(161)]()?(i[a(809)]=a(905),h[a(166)][a(1031)](i)):o[a(351)]()?(i.type=a(708),h[a(261)][a(1031)](i)):o[a(214)]()?(i.type=a(708),h[a(1328)][a(1031)](i)):(i[a(809)]=a(708),h[a(742)][a(1031)](i))}else h[a(585)]=!1;if(h.mime="",h[a(585)]&&h[a(1261)]){for(h[a(579)]&&h.videoTracks[a(348)]>0?h.mime+=a(1116):h[a(1137)]&&h[a(1137)][a(348)]>0?h.mime+=a(524):h[a(202)]+=a(1016),t=0;t<h[a(1261)][a(348)];t++)0!==t&&(h.mime+=","),h[a(202)]+=h[a(1261)][t][a(1201)];h[a(202)]+=a(1291),h.mime+=this[a(652)][a(1086)].join(),h[a(202)]+='"'}return h},y[n(1262)][n(1017)]=function(t){var e=n;t&&(this[e(1055)]?this.nextSeekPosition=Math.min(t[e(737)]+t[e(1319)],this[e(1055)]):this[e(1055)]=t.offset+t[e(1319)])},y[n(1262)].processSamples=function(t){var e,s,i=n;if(this[i(990)]){if(this.isFragmentationInitialized&&null!==this.onSegment)for(e=0;e<this[i(315)][i(348)];e++){var r=this[i(315)][e];for(s=r[i(1362)];s[i(675)]<s[i(277)][i(348)]&&this[i(990)];){o[i(485)](i(167),i(432)+r.id+i(486)+s[i(675)]);var a=this[i(775)](r.id,s[i(675)],r[i(233)]);if(!a)break;if(r[i(233)]=a,s[i(675)]++,(s[i(675)]%r[i(1300)]==0||t||s.nextSample>=s[i(277)][i(348)])&&(this[i(1057)]&&this[i(1057)](r.id,r[i(1282)],r[i(233)][i(753)],s[i(675)],t||s[i(675)]>=s[i(277)][i(348)]),r.segmentStream=null,r!==this.fragmentedTracks[e]))break}}if(null!==this[i(1320)])for(e=0;e<this[i(1061)].length;e++){var h=this[i(1061)][e];for(s=h.trak;s.nextSample<s.samples[i(348)]&&this[i(990)];){o[i(485)](i(167),i(1131)+h.id+" sample #"+s[i(675)]);var c=this.getSample(s,s.nextSample);if(!c){this[i(1017)](s.samples[s[i(675)]]);break}if(s[i(675)]++,h.samples[i(1031)](c),(s.nextSample%h[i(1300)]==0||s.nextSample>=s[i(277)].length)&&(o[i(485)](i(167),"Sending samples on track #"+h.id+i(486)+s[i(675)]),this[i(1320)]&&this.onSamples(h.id,h[i(1282)],h[i(277)]),h.samples=[],h!==this.extractedTracks[e]))break}}}},y[n(1262)].getBox=function(t){var e=n,s=this[e(1305)](t,!0);return s[e(348)]?s[0]:null},y.prototype[n(1305)]=function(t,e){var s=n,i=[];return y[s(157)][s(1134)](this,t,i,e),i},y[n(157)]=function(t,e,s){var i=n;for(var r in this[i(809)]&&this[i(809)]==t&&e[i(1031)](this),this[i(1077)]){if(e[i(348)]&&s)return;y[i(157)][i(1134)](this[i(1077)][r],t,e,s)}},y.prototype[n(285)]=function(t){var e=n,s=this[e(659)](t);return s?s[e(277)]:void 0},y[n(1262)][n(303)]=function(t,e){var s=n,i=this[s(659)](t);return this[s(929)](i,e)},y[n(1262)].releaseUsedSamples=function(t,e,s){var i=n,r=this[i(659)](t);r.lastValidSample||(r.lastValidSample=0);for(var o=r.lastValidSample;o<e;o++)this[i(571)](r,o);r[i(565)]=e,s&&(this[i(1077)]=[],this.mdats=[],this.moofs=[],this.lastMoofIndex=0)},y[n(1262)][n(1168)]=function(t){var e=n,s=this[e(659)](t);const i=s[e(277)],r=i[i[e(348)]-1];r[e(1080)]=null,r[e(641)]=null,r[e(1319)]=0,s[e(277)]=[],s[e(277)][e(1031)](r),s.nextSample=s[e(277)][e(348)],this[e(1077)]=[],this[e(373)]=[],this[e(983)]=[],this.lastMoofIndex=0},y[n(1262)][n(969)]=function(){var t=n;this[t(990)]=!0,this[t(1270)](!1)},y.prototype[n(1141)]=function(){this[n(990)]=!1},y.prototype[n(545)]=function(){var t=n;this[t(1e3)](),this[t(1270)](!0),this[t(1111)][t(569)](),this[t(1111)][t(924)](!0)},y[n(1262)][n(556)]=function(t,e,s){var i,r,o,a=n,h=0,c=0;if(0===s[a(277)][a(348)])return{offset:0,time:0};for(i=0;i<s[a(277)][a(348)];i++){if(r=s[a(277)][i],0===i)c=0,o=r[a(866)];else if(r[a(208)]>t*r[a(866)]){c=i-1;break}e&&r.is_sync&&(h=i)}for(e&&(c=h),t=s[a(277)][c][a(208)],s.nextSample=c;s.samples[c][a(1319)]===s[a(277)][c][a(532)]&&s[a(277)][c+1];)c++;return{offset:s[a(277)][c][a(737)]+s.samples[c][a(1319)],time:t/o}},y[n(1262)][n(324)]=function(t){var e,s=n;return t[s(277)]?((e=t[s(277)][t[s(277)][s(348)]-1])[s(208)]+e[s(256)])/e[s(866)]:1/0},y.prototype[n(979)]=function(t,e){var s,i,r,o=n,a=this[o(620)],h={offset:1/0,time:1/0};if(this.moov){for(r=0;r<a[o(171)][o(348)];r++)s=a[o(171)][r],t>this[o(324)](s)||((i=this[o(556)](t,e,s))[o(737)]<h.offset&&(h[o(737)]=i[o(737)]),i[o(274)]<h[o(274)]&&(h[o(274)]=i[o(274)]));return h.offset===1/0?h={offset:this[o(843)],time:0}:h.offset=this[o(1111)][o(750)](h[o(737)]),h}throw"Cannot seek: moov not received!"},y.prototype.equal=function(t){for(var e=n,s=0;s<this[e(1077)][e(348)]&&s<t.boxes[e(348)];){var i=this.boxes[s],r=t[e(1077)][s];if(!u[e(1006)](i,r))return!1;s++}return!0},n(1266)!==n(751)&&(e[n(167)]=y),y.prototype[n(1004)]=0,y[n(1262)][n(187)]=null,y[n(1262)][n(843)]=0,y[n(1262)][n(255)]=!1,y[n(1262)].processIncompleteBox=function(t){var e,s=n;return t[s(809)]===s(1151)?(e=new(u[t.type+s(919)])(t[s(532)]),this[s(187)]=e,this[s(1077)][s(1031)](e),this.mdats.push(e),e.start=t[s(969)],e[s(959)]=t[s(959)],this[s(1111)][s(221)](e[s(959)]),this[s(1004)]=e[s(969)]+e[s(532)],this[s(1111)][s(979)](e[s(969)]+e[s(532)],!1,this[s(255)])?(this.parsingMdat=null,!0):(this[s(767)]?this[s(843)]=this.stream.findEndContiguousBuf():this.nextParsePosition=e[s(969)]+e[s(532)],!1)):(t[s(809)]===s(620)&&(this[s(767)]=!0,0===this.mdats[s(348)]&&(this.isProgressive=!0)),!!this.stream.mergeNextBuffer&&this[s(1111)][s(885)]()?(this[s(843)]=this[s(1111)][s(445)](),!0):(t.type?this.moovStartFound?this.nextParsePosition=this.stream[s(445)]():this[s(843)]=this[s(1111)][s(165)]()+t[s(532)]:this[s(843)]=this.stream.getEndPosition(),!1))},y[n(1262)][n(253)]=function(){return null!==this[n(187)]},y[n(1262)][n(598)]=function(){var t,e=n;return t=this.parsingMdat,this[e(1111)].seek(t.start+t[e(532)],!1,this.discardMdatData)?(o.debug(e(167),e(1063)),this[e(187)]=null,!0):(this[e(843)]=this[e(1111)][e(535)](),!1)},y[n(1262)].restoreParsePosition=function(){var t=n;return this.stream[t(979)](this.lastBoxStartPosition,!0,this[t(255)])},y.prototype[n(510)]=function(){var t=n;this.lastBoxStartPosition=this[t(1111)][t(165)]()},y[n(1262)][n(1303)]=function(t,e){var s=n;this[s(1111)][s(221)]&&("mdat"===t[s(809)]?(this[s(1111)].addUsedBytes(t.hdr_size),this[s(255)]&&this[s(1111)].addUsedBytes(t[s(532)]-t[s(959)])):this[s(1111)][s(221)](t[s(532)]))},y[n(1262)].add=u[n(919)][n(1262)][n(816)],y[n(1262)].addBox=u.Box[n(1262)][n(441)],y.prototype[n(409)]=function(t){var e=n,s=t||{};this[e(816)](e(652))[e(1249)](e(575),s[e(1127)]&&s[e(1127)][0]||e(518))[e(1249)]("minor_version",0)[e(1249)](e(1086),s[e(1127)]||[e(518)]);var i=this[e(816)](e(620));return i[e(816)](e(717)).set(e(866),s[e(866)]||600)[e(1249)]("rate",s[e(442)]||65536)[e(1249)](e(198),0)[e(1249)]("modification_time",0)[e(1249)]("duration",s[e(256)]||0)[e(1249)](e(813),s.width?0:256)[e(1249)](e(212),[65536,0,0,0,65536,0,0,0,1073741824])[e(1249)]("next_track_id",1),i.add(e(330)),this},y[n(1262)][n(1103)]=function(t){var e=n;!this[e(620)]&&this[e(409)](t);var s=t||{};s[e(528)]=s.width||320,s[e(856)]=s[e(856)]||320,s.id=s.id||this[e(620)][e(717)][e(1163)],s[e(809)]=s[e(809)]||e(578);var i=this[e(620)][e(816)](e(1362));this[e(620)][e(717)][e(1163)]=s.id+1,i[e(816)](e(903)).set(e(312),u[e(1107)]|u[e(1099)]|u[e(376)])[e(1249)]("creation_time",0)[e(1249)](e(206),0)[e(1249)](e(1257),s.id)[e(1249)](e(256),s.duration||0).set(e(234),s[e(234)]||0)[e(1249)](e(1083),0)[e(1249)](e(813),1).set(e(212),[0,0,0,0,0,0,0,0,0]).set(e(528),s[e(528)]<<16).set(e(856),s.height<<16);var r=i[e(816)](e(1346));r[e(816)](e(649))[e(1249)]("creation_time",0).set("modification_time",0)[e(1249)](e(866),s[e(866)]||1)[e(1249)](e(256),s[e(817)]||0)[e(1249)](e(424),s.language||e(687)),r[e(816)](e(398))[e(1249)](e(230),s[e(398)]||"vide").set("name",s[e(463)]||e(1026)),r[e(816)](e(263))[e(1249)](e(564),s[e(424)]||e(982));var o=r.add(e(774));if(void 0!==u[s[e(809)]+"SampleEntry"]){var h=new(u[s[e(809)]+e(770)]);h[e(1148)]=1;var c="";for(var l in u[e(1098)])for(var d=u[e(1098)][l],p=0;p<d.length;p++)if(d.indexOf(s[e(809)])>-1){c=l;break}switch(c){case"Visual":if(o.add(e(148)).set(e(1100),0)[e(1249)](e(935),[0,0,0]),h[e(1249)]("width",s[e(528)])[e(1249)](e(856),s.height)[e(1249)](e(978),72<<16)[e(1249)]("vertresolution",72<<16).set(e(1272),1)[e(1249)](e(988),s[e(809)]+e(207))[e(1249)](e(1324),24),s.avcDecoderConfigRecord){var f=new(u[e(555)]);f[e(514)](new a(s[e(992)])),h[e(441)](f)}else if(s[e(1252)]){var m=new(u[e(527)]);m.parse(new a(s.hevcDecoderConfigRecord)),h.addBox(m)}break;case e(729):o.add("smhd")[e(1249)]("balance",s[e(357)]||0),h[e(1249)](e(865),s.channel_count||2)[e(1249)](e(281),s[e(281)]||16)[e(1249)]("samplerate",s[e(1240)]||65536);break;case e(151):o[e(816)]("hmhd");break;case e(764):if(o[e(816)]("sthd"),s[e(809)]===e(1298))h[e(1249)]("namespace",s[e(407)]||e(511)).set(e(685),s.schema_location||"").set(e(232),s[e(232)]||"");break;case e(399):o[e(816)](e(1352));break;case"System":o.add(e(1352));break;default:o[e(816)]("nmhd")}s[e(641)]&&h[e(441)](s[e(641)]),s[e(953)]&&s[e(953)].forEach((function(t){h.addBox(t)})),o.add(e(914))[e(816)](e(1132))[e(890)]((new(u[e(292)]))[e(1249)]("flags",1));var g=o[e(816)](e(374));return g.add(e(240)).addEntry(h),g.add("stts")[e(1249)](e(396),[])[e(1249)]("sample_deltas",[]),g[e(816)](e(735))[e(1249)](e(1205),[])[e(1249)](e(1172),[])[e(1249)](e(678),[]),g[e(816)](e(363))[e(1249)](e(191),[]),g[e(816)]("stsz")[e(1249)]("sample_sizes",[]),this[e(620)].mvex[e(816)](e(621))[e(1249)]("track_id",s.id)[e(1249)](e(940),s[e(940)]||1)[e(1249)]("default_sample_duration",s.default_sample_duration||0)[e(1249)](e(1253),s.default_sample_size||0)[e(1249)]("default_sample_flags",s[e(436)]||0),this[e(822)](i),s.id}},u[n(919)][n(1262)][n(466)]=function(t){var e=n,s=t||new h;s.endianness=h[e(1135)],this[e(955)](s)},y.prototype[n(325)]=function(t,e,s){var i=n,r=s||{},o={},a=this[i(659)](t);if(null!==a){o[i(159)]=a[i(277)].length,o.track_id=a[i(903)][i(1257)],o.timescale=a[i(1346)][i(649)].timescale,o[i(1239)]=r.sample_description_index?r[i(678)]-1:0,o[i(641)]=a.mdia[i(774)][i(374)].stsd[i(1120)][o[i(1239)]],o.data=e,o[i(532)]=e[i(689)],o[i(1319)]=o.size,o[i(256)]=r[i(256)]||1,o.cts=r[i(208)]||0,o[i(725)]=r.dts||0,o.is_sync=r.is_sync||!1,o.is_leading=r[i(1295)]||0,o.depends_on=r.depends_on||0,o[i(1125)]=r[i(1125)]||0,o[i(1081)]=r[i(1081)]||0,o[i(710)]=r[i(710)]||0,o[i(737)]=0,o.subsamples=r.subsamples,a[i(277)][i(1031)](o),a.samples_size+=o[i(532)],a[i(639)]+=o[i(256)],void 0===a.first_dts&&(a[i(1246)]=r[i(725)]),this[i(1270)]();var h=this[i(648)](o);return this[i(441)](h),h[i(466)](),h[i(939)][0][i(1007)][0][i(608)]=h[i(532)]+8,this[i(816)](i(1151)).data=new Uint8Array(e),o}},y[n(1262)][n(648)]=function(t){var e=n,s=0;s=t[e(1197)]?1<<25:65536;var i=new u.moofBox;i[e(816)](e(658))[e(1249)](e(863),this[e(419)]),this.nextMoofNumber++;var r=i.add(e(210)),o=this[e(659)](t[e(1257)]);return r[e(816)](e(826))[e(1249)](e(1257),t[e(1257)])[e(1249)](e(312),u[e(1206)]),r[e(816)]("tfdt")[e(1249)](e(1297),t.dts-(o[e(1246)]||0)),r[e(816)](e(242))[e(1249)](e(312),u[e(912)]|u[e(938)]|u[e(241)]|u[e(471)]|u.TRUN_FLAGS_CTS_OFFSET)[e(1249)](e(608),0)[e(1249)](e(1085),0)[e(1249)](e(294),1).set(e(623),[t.duration])[e(1249)](e(951),[t[e(532)]]).set(e(1304),[s])[e(1249)]("sample_composition_time_offset",[t[e(208)]-t[e(725)]]),i},y.prototype.lastMoofIndex=0,y.prototype.samplesDataSize=0,y[n(1262)].resetTables=function(){var t,e,s,i,r,o,a=n;for(this[a(1003)]=this[a(620)][a(717)][a(256)],this[a(620)][a(717)][a(256)]=0,t=0;t<this[a(620)][a(171)][a(348)];t++){(e=this[a(620)][a(171)][t]).tkhd[a(256)]=0,e[a(1346)][a(649)].duration=0,(e[a(1346)][a(774)][a(374)].stco||e.mdia.minf.stbl[a(541)])[a(191)]=[],(s=e[a(1346)][a(774)][a(374)][a(735)])[a(1205)]=[],s[a(1172)]=[],s.sample_description_index=[],(e[a(1346)][a(774)][a(374)][a(531)]||e[a(1346)][a(774)].stbl[a(430)])[a(784)]=[],(i=e[a(1346)][a(774)][a(374)].stts)[a(396)]=[],i[a(150)]=[],(r=e[a(1346)].minf.stbl[a(500)])&&(r[a(396)]=[],r[a(1271)]=[]),o=e.mdia[a(774)][a(374)][a(1366)];var h=e.mdia[a(774)][a(374)][a(1077)][a(904)](o);-1!=h&&(e[a(1346)][a(774)].stbl[a(1077)][h]=null)}},y[n(610)]=function(t,e,s,i,r){var o,a,h,c,l=n;function d(t,e,s){var i=pf;this[i(1312)]=t,this.grouping_type_parameter=e,this[i(748)]=s,this[i(1104)]=-1,this[i(543)]=-1}for(e&&(e.sample_groups_info=[]),!t[l(937)]&&(t[l(937)]=[]),a=0;a<s[l(348)];a++){for(c=s[a][l(1312)]+"/"+s[a].grouping_type_parameter,h=new d(s[a][l(1312)],s[a][l(714)],s[a]),e&&(e[l(937)][c]=h),!t.sample_groups_info[c]&&(t[l(937)][c]=h),o=0;o<i[l(348)];o++)i[o][l(1312)]===s[a].grouping_type&&(h[l(641)]=i[o],h.description[l(1002)]=!0);if(r)for(o=0;o<r[l(348)];o++)r[o][l(1312)]===s[a][l(1312)]&&(h.fragment_description=r[o],h.fragment_description[l(1002)]=!0,h.is_fragment=!0)}if(e){if(r)for(a=0;a<r.length;a++)!r[a][l(1002)]&&r[a][l(513)]>=2&&(c=r[a].grouping_type+"/0",(h=new d(r[a][l(1312)],0))[l(922)]=!0,!e[l(937)][c]&&(e[l(937)][c]=h))}else for(a=0;a<i[l(348)];a++)!i[a][l(1002)]&&i[a].version>=2&&(c=i[a][l(1312)]+"/0",h=new d(i[a][l(1312)],0),!t[l(937)][c]&&(t.sample_groups_info[c]=h))},y[n(836)]=function(t,e,s,i){var r,o,a=n;for(r in e[a(870)]=[],i){var h;if(e[a(870)][r]={},e[a(870)][r][a(1312)]=i[r][a(1312)],e.sample_groups[r][a(714)]=i[r][a(714)],s>=i[r][a(1104)]&&(i[r][a(1104)]<0&&(i[r].last_sample_in_run=0),i[r][a(543)]++,i[r].entry_index<=i[r][a(748)][a(1120)][a(348)]-1&&(i[r][a(1104)]+=i[r][a(748)][a(1120)][i[r][a(543)]].sample_count)),i[r][a(543)]<=i[r][a(748)].entries[a(348)]-1?e.sample_groups[r][a(1045)]=i[r][a(748)][a(1120)][i[r][a(543)]][a(1045)]:e[a(870)][r][a(1045)]=-1,0!==e[a(870)][r].group_description_index)h=i[r].fragment_description?i[r].fragment_description:i[r][a(641)],e[a(870)][r][a(1045)]>0?(o=e[a(870)][r][a(1045)]>65535?(e[a(870)][r].group_description_index>>16)-1:e[a(870)][r][a(1045)]-1,h&&o>=0&&(e.sample_groups[r][a(641)]=h[a(1120)][o])):h&&h[a(513)]>=2&&h.default_group_description_index>0&&(e.sample_groups[r][a(641)]=h[a(1120)][h.default_group_description_index-1])}},y[n(899)]=function(t,e,s){var i=n;e&&(t?(e[i(1295)]=t.is_leading[s],e[i(411)]=t[i(492)][s],e[i(1125)]=t[i(1241)][s],e.has_redundancy=t[i(920)][s]):(e[i(1295)]=0,e[i(411)]=0,e[i(1125)]=0,e[i(1081)]=0))},y[n(1262)][n(440)]=function(){var t,e,s=n;for(t=0;t<this.moov[s(171)][s(348)];t++)e=this[s(620)][s(171)][t],this[s(822)](e)},y[n(1262)].buildTrakSampleLists=function(t){var e,s,i,r,o,a,h,c,l,d,u,p,f,m,g,A,b,v,S,w,E,I,T,k,_=n;if(t[_(277)]=[],t.samples_duration=0,t.samples_size=0,s=t[_(1346)][_(774)][_(374)][_(363)]||t.mdia[_(774)].stbl[_(541)],i=t[_(1346)][_(774)][_(374)][_(735)],r=t.mdia[_(774)].stbl[_(531)]||t[_(1346)][_(774)][_(374)].stz2,o=t[_(1346)].minf[_(374)].stts,a=t[_(1346)][_(774)].stbl.ctts,h=t.mdia[_(774)][_(374)][_(1366)],c=t[_(1346)].minf[_(374)][_(240)],l=t[_(1346)][_(774)].stbl.subs,p=t[_(1346)][_(774)][_(374)][_(228)],d=t.mdia.minf[_(374)][_(1336)],u=t.mdia[_(774)][_(374)][_(1375)],v=-1,S=-1,w=-1,E=-1,I=0,T=0,k=0,y.initSampleGroups(t,null,d,u),typeof r!==_(751)){for(e=0;e<r.sample_sizes[_(348)];e++){var C={};C.number=e,C[_(1257)]=t[_(903)].track_id,C[_(866)]=t[_(1346)][_(649)][_(866)],C[_(1319)]=0,t.samples[e]=C,C[_(532)]=r[_(784)][e],t[_(857)]+=C[_(532)],0===e?(m=1,f=0,C[_(1015)]=m,C[_(362)]=f,b=i[_(1172)][f],A=0,g=f+1<i.first_chunk[_(348)]?i[_(1205)][f+1]-1:1/0):e<b?(C[_(1015)]=m,C[_(362)]=f):(m++,C.chunk_index=m,A=0,m<=g||(g=++f+1<i[_(1205)].length?i[_(1205)][f+1]-1:1/0),C[_(362)]=f,b+=i.samples_per_chunk[f]),C.description_index=i.sample_description_index[C[_(362)]]-1,C[_(641)]=c.entries[C[_(1239)]],C.offset=s[_(191)][C[_(1015)]-1]+A,A+=C.size,e>v&&(S++,v<0&&(v=0),v+=o.sample_counts[S]),e>0?(t[_(277)][e-1][_(256)]=o[_(150)][S],t.samples_duration+=t.samples[e-1][_(256)],C.dts=t[_(277)][e-1][_(725)]+t[_(277)][e-1][_(256)]):C[_(725)]=0,a?(e>=w&&(E++,w<0&&(w=0),w+=a[_(396)][E]),C.cts=t[_(277)][e][_(725)]+a[_(1271)][E]):C[_(208)]=C[_(725)],h?(e==h[_(248)][I]-1?(C[_(1197)]=!0,I++):(C[_(1197)]=!1,C.degradation_priority=0),l&&l.entries[T][_(793)]+k==e+1&&(C[_(1224)]=l[_(1120)][T][_(1224)],k+=l[_(1120)][T][_(793)],T++)):C[_(1197)]=!0,y[_(899)](t[_(1346)].minf.stbl[_(747)],C,C[_(159)]),p?C.degradation_priority=p[_(965)][e]:C[_(710)]=0,l&&l[_(1120)][T][_(793)]+k==e&&(C[_(1224)]=l[_(1120)][T][_(1224)],k+=l[_(1120)][T][_(793)]),(d.length>0||u[_(348)]>0)&&y[_(836)](t,C,e,t.sample_groups_info)}e>0&&(t[_(277)][e-1][_(256)]=Math[_(382)](t[_(1346)][_(649)][_(256)]-t[_(277)][e-1].dts,0),t.samples_duration+=t.samples[e-1].duration)}},y[n(1262)][n(1e3)]=function(){var t,e,s,i,r,o,a,h,c,l,d,p,f,m,g,A=n;if(void 0!==this[A(620)])for(;this[A(326)]<this[A(983)].length;)if(c=this[A(983)][this.lastMoofIndex],this[A(326)]++,"moof"==c[A(809)])for(l=c,t=0;t<l[A(939)][A(348)];t++){for(d=l[A(939)][t],p=this.getTrackById(d[A(826)][A(1257)]),f=this[A(205)](d.tfhd[A(1257)]),i=d[A(826)][A(312)]&u.TFHD_FLAG_SAMPLE_DESC?d.tfhd[A(940)]:f?f[A(940)]:1,r=d[A(826)][A(312)]&u.TFHD_FLAG_SAMPLE_DUR?d[A(826)][A(613)]:f?f[A(613)]:0,o=d[A(826)][A(312)]&u[A(842)]?d[A(826)][A(1253)]:f?f[A(1253)]:0,a=d[A(826)][A(312)]&u[A(1068)]?d[A(826)][A(436)]:f?f.default_sample_flags:0,d[A(827)]=0,d[A(1336)][A(348)]>0&&y[A(610)](p,d,d[A(1336)],p.mdia.minf.stbl[A(1375)],d[A(1375)]),e=0;e<d[A(1007)][A(348)];e++){var b=d[A(1007)][e];for(s=0;s<b[A(294)];s++){(m={})[A(835)]=this.lastMoofIndex,m[A(901)]=d[A(827)],d.sample_number++,m[A(159)]=p[A(277)][A(348)],d[A(821)]=p[A(277)][A(348)],p[A(277)][A(1031)](m),m.track_id=p.tkhd[A(1257)],m.timescale=p[A(1346)][A(649)].timescale,m[A(1239)]=i-1,m[A(641)]=p[A(1346)][A(774)].stbl.stsd[A(1120)][m[A(1239)]],m[A(532)]=o,b[A(312)]&u[A(241)]&&(m[A(532)]=b[A(951)][s]),p[A(857)]+=m[A(532)],m[A(256)]=r,b.flags&u[A(938)]&&(m[A(256)]=b[A(623)][s]),p.samples_duration+=m.duration,p[A(160)]||s>0?m[A(725)]=p[A(277)][p[A(277)].length-2].dts+p[A(277)][p.samples[A(348)]-2][A(256)]:(d[A(871)]?m.dts=d[A(871)][A(1297)]:m[A(725)]=0,p.first_traf_merged=!0),m[A(208)]=m[A(725)],b[A(312)]&u[A(701)]&&(m[A(208)]=m[A(725)]+b[A(220)][s]),g=a,b[A(312)]&u.TRUN_FLAGS_FLAGS?g=b[A(1304)][s]:0===s&&b.flags&u[A(970)]&&(g=b[A(1085)]),m.is_sync=!(g>>16&1),m[A(1295)]=g>>26&3,m[A(411)]=g>>24&3,m[A(1125)]=g>>22&3,m[A(1081)]=g>>20&3,m.degradation_priority=65535&g;var v=!!(d.tfhd[A(312)]&u[A(581)]),S=!!(d.tfhd.flags&u[A(1206)]),w=!!(b[A(312)]&u[A(912)]),E=0;E=v?d[A(826)][A(855)]:S||0===e?l[A(969)]:h,0===e&&0===s?m[A(737)]=w?E+b.data_offset:E:m.offset=h,h=m[A(737)]+m[A(532)],(d.sbgps.length>0||d[A(1375)][A(348)]>0||p.mdia[A(774)].stbl.sbgps[A(348)]>0||p.mdia[A(774)][A(374)][A(1375)][A(348)]>0)&&y[A(836)](p,m,m[A(901)],d[A(937)])}}if(d[A(278)]){p[A(1156)]=!0;var I=d[A(821)];for(e=0;e<d.subs[A(1120)][A(348)];e++)I+=d[A(278)].entries[e][A(793)],(m=p.samples[I-1])[A(1224)]=d.subs[A(1120)][e].subsamples}}},y[n(1262)][n(929)]=function(t,e){var s,i=n,r=t[i(277)][e];if(!this[i(620)])return null;if(r[i(1080)]){if(r.alreadyRead==r.size)return r}else r[i(1080)]=new Uint8Array(r[i(532)]),r[i(1319)]=0,this.samplesDataSize+=r[i(532)],o[i(485)](i(167),i(395)+e+i(946)+t.tkhd[i(1257)]+i(1215)+r[i(532)]+i(246)+this[i(1311)]+")");for(;;){var a=this[i(1111)][i(238)](!0,r[i(737)]+r.alreadyRead,!1);if(!(a>-1))return null;var c=(s=this.stream.buffers[a]).byteLength-(r[i(737)]+r[i(1319)]-s[i(164)]);if(r[i(532)]-r[i(1319)]<=c)return o.debug(i(167),i(1187)+e+i(845)+r[i(1319)]+i(722)+(r[i(737)]+r[i(1319)]-s.fileStart)+" read size: "+(r[i(532)]-r[i(1319)])+" full size: "+r[i(532)]+")"),h.memcpy(r[i(1080)][i(753)],r[i(1319)],s,r[i(737)]+r[i(1319)]-s[i(164)],r[i(532)]-r[i(1319)]),s[i(186)]+=r[i(532)]-r[i(1319)],this[i(1111)][i(924)](),r[i(1319)]=r.size,r;if(0===c)return null;o[i(485)](i(167),i(1187)+e+i(523)+r.alreadyRead+i(722)+(r[i(737)]+r[i(1319)]-s.fileStart)+" read size: "+c+i(460)+r[i(532)]+")"),h[i(1308)](r[i(1080)].buffer,r[i(1319)],s,r[i(737)]+r[i(1319)]-s[i(164)],c),r[i(1319)]+=c,s.usedBytes+=c,this[i(1111)][i(924)]()}},y[n(1262)][n(571)]=function(t,e){var s=n,i=t[s(277)][e];return i.data?(this[s(1311)]-=i[s(532)],i[s(1080)]=null,i[s(641)]=null,delete i[s(710)],delete i[s(411)],delete i[s(1239)],delete i[s(1081)],delete i[s(1125)],delete i[s(1295)],delete i[s(1197)],delete i[s(835)],delete i[s(901)],delete i[s(866)],delete i[s(208)],delete i[s(725)],delete i[s(737)],delete i.size,delete i.track_id,delete i[s(256)],i[s(1319)]=0,i[s(532)]):0},y[n(1262)][n(593)]=function(){return this[n(1311)]},y.prototype[n(364)]=function(){var t=n;const e=this[t(1111)].buffers||[];let s=0;return e[t(1049)]((e=>{const i=e[t(689)];s+=i})),s},y[n(1262)][n(1027)]=function(){var t,e=n,s="";for(t=0;t<this[e(620)].traks[e(348)];t++){t>0&&(s+=","),s+=this.moov[e(171)][t][e(1346)].minf.stbl[e(240)].entries[0][e(1166)]()}return s},y.prototype[n(205)]=function(t){var e,s=n;if(!this[s(620)]||!this[s(620)][s(330)])return null;for(e=0;e<this[s(620)][s(330)][s(762)].length;e++){var i=this.moov.mvex.trexs[e];if(i[s(1257)]==t)return i}return null},y[n(1262)][n(659)]=function(t){var e=n;if(void 0===this[e(620)])return null;for(var s=0;s<this[e(620)].traks[e(348)];s++){var i=this[e(620)][e(171)][s];if(i[e(903)][e(1257)]==t)return i}return null},y[n(1262)].items=[],y.prototype[n(625)]=[],y.prototype[n(799)]=0,y.prototype[n(302)]=function(){var t,e,s,i=n,r=this[i(796)],o=this[i(625)],a=this[i(1221)];if(null!=a&&void 0!==a[i(398)]&&void 0!==a[i(1284)]){for(t=0;t<a[i(1284)][i(349)][i(348)];t++)(s={}).id=a.iinf[i(349)][t].item_ID,r[s.id]=s,s[i(1193)]=[],s.name=a[i(1284)].item_infos[t][i(345)],a[i(1284)].item_infos[t][i(1317)]>0&&(s.protection=a[i(684)][i(1369)][a.iinf[i(349)][t][i(1317)]-1]),a[i(1284)][i(349)][t][i(917)]?s.type=a[i(1284)][i(349)][t][i(917)]:s[i(809)]=i(202),s.content_type=a[i(1284)][i(349)][t][i(1175)],s.content_encoding=a.iinf[i(349)][t][i(768)];if(a[i(819)])for(t=0;t<a[i(819)].boxes[i(348)];t++)entity_group={},entity_group.id=a[i(819)][i(1077)][t][i(1161)],entity_group[i(390)]=a[i(819)][i(1077)][t].entity_ids,entity_group.type=a[i(819)][i(1077)][t][i(809)],o[entity_group.id]=entity_group;if(a.iloc)for(t=0;t<a.iloc[i(796)].length;t++){var h=a[i(850)][i(796)][t];for(s=r[h[i(1082)]],0!==h[i(1148)]&&(s[i(923)]=a[i(914)][i(1077)][h[i(1148)]-1]),h[i(954)],s[i(225)]=[],s[i(532)]=0,e=0;e<h[i(225)].length;e++)s[i(225)][e]={},s[i(225)][e][i(737)]=h[i(225)][e].extent_offset+h[i(1359)],s[i(225)][e].length=h[i(225)][e][i(1035)],s[i(225)][e].alreadyRead=0,s[i(532)]+=s[i(225)][e][i(348)]}if(a.pitm&&(r[a[i(190)][i(352)]][i(557)]=!0),a[i(1351)])for(t=0;t<a[i(1351)][i(848)].length;t++){var c=a[i(1351)].references[t];for(e=0;e<c.references[i(348)];e++)r[c[i(295)]].ref_to[i(1031)]({type:c.type,id:c.references[e]})}if(a[i(1191)])for(var l=0;l<a.iprp.ipmas.length;l++){var d=a[i(1191)][i(638)][l];for(t=0;t<d[i(755)][i(348)];t++){var u=d[i(755)][t];if(!(s=r[u.id])&&(s=o[u.id]),s)for(void 0===s[i(1235)]&&(s[i(1235)]={},s[i(1235)][i(1077)]=[]),e=0;e<u[i(1181)][i(348)];e++){var p=u.props[e];if(p[i(1354)]>0&&p[i(1354)]-1<a[i(1191)][i(705)][i(1077)][i(348)]){var f=a[i(1191)][i(705)][i(1077)][p.property_index-1];s[i(1235)][f[i(809)]]=f,s[i(1235)].boxes[i(1031)](f)}}}}}},y[n(1262)][n(343)]=function(t){var e,s,i=n;if(!this[i(1221)])return null;if(!(s=this[i(796)][t])[i(1080)]&&s[i(532)])s.data=new Uint8Array(s[i(532)]),s[i(1319)]=0,this.itemsDataSize+=s.size,o[i(485)](i(167),i(559)+t+i(1215)+s[i(532)]+" (total: "+this[i(799)]+")");else if(s[i(1319)]===s[i(532)])return s;for(var r=0;r<s[i(225)][i(348)];r++){var a=s[i(225)][r];if(a[i(1319)]!==a[i(348)]){var c=this.stream[i(238)](!0,a[i(737)]+a[i(1319)],!1);if(!(c>-1))return null;var l=(e=this[i(1111)][i(949)][c]).byteLength-(a[i(737)]+a[i(1319)]-e[i(164)]);if(!(a.length-a[i(1319)]<=l))return o.debug("ISOFile","Getting item #"+t+i(455)+r+i(523)+a[i(1319)]+" offset: "+(a.offset+a[i(1319)]-e[i(164)])+" read size: "+l+i(653)+a[i(348)]+i(211)+s.size+")"),h.memcpy(s[i(1080)][i(753)],s.alreadyRead,e,a[i(737)]+a[i(1319)]-e[i(164)],l),a[i(1319)]+=l,s[i(1319)]+=l,e[i(186)]+=l,this.stream[i(924)](),null;o[i(485)]("ISOFile",i(447)+t+i(455)+r+i(845)+a[i(1319)]+i(722)+(a[i(737)]+a[i(1319)]-e[i(164)])+i(584)+(a[i(348)]-a.alreadyRead)+i(653)+a.length+i(211)+s[i(532)]+")"),h[i(1308)](s.data[i(753)],s[i(1319)],e,a.offset+a[i(1319)]-e[i(164)],a[i(348)]-a[i(1319)]),e[i(186)]+=a[i(348)]-a[i(1319)],this[i(1111)][i(924)](),s[i(1319)]+=a.length-a.alreadyRead,a[i(1319)]=a.length}}return s[i(1319)]===s[i(532)]?s:null},y[n(1262)][n(596)]=function(t){var e=n,s=this[e(796)][t];if(s[e(1080)]){this.itemsDataSize-=s[e(532)],s[e(1080)]=null,s.alreadyRead=0;for(var i=0;i<s[e(225)][e(348)];i++){s[e(225)][i][e(1319)]=0}return s[e(532)]}return 0},y[n(1262)][n(738)]=function(t){var e=n;for(var s in this[e(796)]){var i=this[e(796)][s];this[e(343)](i.id),t&&!i[e(629)]&&(t(i),i[e(629)]=!0,i[e(1080)]=null)}},y[n(1262)].hasItem=function(t){var e=n;for(var s in this.items){var i=this[e(796)][s];if(i[e(463)]===t)return i.id}return-1},y[n(1262)][n(488)]=function(){var t=n;return this[t(1221)]?this[t(1221)].hdlr.handler:null},y.prototype[n(1345)]=function(){var t=n;return this[t(1221)]&&this[t(1221)][t(190)]?this[t(343)](this[t(1221)][t(190)].item_id):null},y.prototype[n(884)]=function(t){var e=n,s=t||{},i=null;if(null==(i=s.itemId?this[e(343)](s[e(1226)]):this[e(1345)]()))return null;var r=new y;r[e(255)]=!1;var o={type:i[e(809)],description_boxes:i.properties.boxes};i[e(1235)].ispe&&(o[e(528)]=i[e(1235)][e(1238)][e(175)],o[e(856)]=i[e(1235)][e(1238)].image_height);var a=r[e(1103)](o);return a?(r[e(325)](a,i[e(1080)]),r):null},y[n(1262)][n(955)]=function(t){for(var e=n,s=0;s<this[e(1077)].length;s++)this[e(1077)][s][e(955)](t)},y.prototype[n(775)]=function(t,e,s){var i=n,r=this[i(659)](t),a=this[i(929)](r,e);if(null==a)return this[i(1017)](r[i(277)][e]),null;var c=s||new h;c[i(1025)]=h.BIG_ENDIAN;var l=this[i(648)](a);l.write(c),l[i(939)][0].truns[0][i(608)]=l[i(532)]+8,o.debug("MP4Box",i(412)+l[i(939)][0][i(1007)][0].data_offset),c[i(197)](l[i(939)][0][i(1007)][0][i(199)],l[i(939)][0][i(1007)][0][i(608)]);var d=new(u[i(1160)]);return d[i(1080)]=a[i(1080)],d[i(955)](c),c},y[n(413)]=function(t,e,s,i){var r,a=n;o[a(485)](a(167),a(389));var c=new h;c[a(1025)]=h[a(1135)],t[a(955)](c);var l=e[a(816)](a(330));for(s&&l[a(816)]("mehd")[a(1249)](a(757),s),r=0;r<e.traks[a(348)];r++)l[a(816)](a(621))[a(1249)](a(1257),e[a(171)][r][a(903)][a(1257)])[a(1249)]("default_sample_description_index",1)[a(1249)](a(613),i)[a(1249)](a(1253),0)[a(1249)]("default_sample_flags",65536);return e[a(955)](c),c[a(753)]},y[n(1262)][n(1013)]=function(t){var e=n,s=new h;s.endianness=h[e(1135)],this.write(s),s[e(1013)](t)},y[n(1262)][n(604)]=function(){var t=n,e=new h;return e[t(1025)]=h[t(1135)],this[t(955)](e),e[t(753)]},y[n(1262)][n(880)]=function(){var t,e,s,i,r=n;for(this[r(1057)],!this[r(1277)]&&(this.isFragmentationInitialized=!0,this[r(419)]=0,this[r(449)]()),e=[],t=0;t<this[r(315)][r(348)];t++){var o=new(u[r(668)]);o[r(717)]=this[r(620)][r(717)],o[r(1077)][r(1031)](o[r(717)]),s=this[r(659)](this.fragmentedTracks[t].id),o[r(1077)][r(1031)](s),o[r(171)][r(1031)](s),(i={}).id=s.tkhd[r(1257)],i[r(1282)]=this[r(315)][t].user,i.buffer=y[r(413)](this[r(652)],o,this[r(620)][r(330)]&&this[r(620)][r(330)][r(1356)]?this[r(620)][r(330)].mehd.fragment_duration:void 0,this[r(620)][r(171)][t][r(277)][r(348)]>0?this[r(620)].traks[t][r(277)][0][r(256)]:0),e[r(1031)](i)}return e},y.prototype[n(1065)]=function(){var t=n,e={};return e[t(620)]=this[t(620)],this[t(620)]&&this[t(620)][t(171)]&&this[t(620)].traks.length>1&&(e[t(1028)]=this[t(620)].traks[0].samples[t(348)],e[t(1092)]=this.moov[t(171)][1][t(277)][t(348)]),e},u[n(919)].prototype[n(1251)]=function(t){var e=n;this[e(532)]+=8,this[e(532)]>c&&(this[e(532)]+=8),this[e(809)]===e(1338)&&(this[e(532)]+=16),t[e(707)](t[e(498)]+e(467)+this[e(532)]),t[e(707)](t.indent+e(434)+this[e(809)])},u[n(435)][n(1262)].printHeader=function(t){var e=n;this[e(532)]+=4,u.Box[e(1262)][e(1251)][e(1134)](this,t),t[e(707)](t[e(498)]+e(703)+this.version),t[e(707)](t[e(498)]+e(1122)+this[e(312)])},u[n(919)].prototype[n(1280)]=function(t){this.printHeader(t)},u.ContainerBox.prototype[n(1280)]=function(t){var e=n;this.printHeader(t);for(var s=0;s<this[e(1077)][e(348)];s++)if(this[e(1077)][s]){var i=t[e(498)];t[e(498)]+=" ",this.boxes[s][e(1280)](t),t[e(498)]=i}},y[n(1262)].print=function(t){var e=n;t[e(498)]="";for(var s=0;s<this.boxes[e(348)];s++)this[e(1077)][s]&&this[e(1077)][s].print(t)},u.mvhdBox[n(1262)][n(1280)]=function(t){var e=n;u.FullBox[e(1262)][e(1251)][e(1134)](this,t),t[e(707)](t.indent+e(1259)+this[e(198)]),t[e(707)](t[e(498)]+"modification_time: "+this.modification_time),t[e(707)](t[e(498)]+e(1030)+this[e(866)]),t[e(707)](t[e(498)]+e(1194)+this[e(256)]),t[e(707)](t.indent+e(1119)+this[e(442)]),t[e(707)](t[e(498)]+e(1084)+(this[e(813)]>>8)),t[e(707)](t.indent+e(372)+this[e(212)][e(688)](", ")),t.log(t.indent+e(1014)+this[e(1163)])},u[n(588)][n(1262)][n(1280)]=function(t){var e=n;u[e(435)].prototype[e(1251)][e(1134)](this,t),t[e(707)](t.indent+e(1259)+this[e(198)]),t[e(707)](t[e(498)]+e(365)+this.modification_time),t[e(707)](t.indent+"track_id: "+this[e(1257)]),t[e(707)](t[e(498)]+"duration: "+this[e(256)]),t[e(707)](t[e(498)]+"volume: "+(this.volume>>8)),t.log(t[e(498)]+e(372)+this[e(212)][e(688)](", ")),t[e(707)](t[e(498)]+"layer: "+this.layer),t[e(707)](t.indent+e(640)+this[e(1083)]),t.log(t.indent+e(502)+this[e(528)]),t[e(707)](t[e(498)]+e(577)+this[e(856)])};var b={};b[n(1368)]=function(t,e){var s=n,i=void 0===t||t,r=new y(e);return r[s(255)]=!i,r},n(1266)!==n(751)&&(e[n(1368)]=b.createFile)}));function pf(t,e){var s=ff();return(pf=function(t,e){return s[t-=147]})(t,e)}function ff(){var t=["tfdtBox","display_primaries","getCodec","isFragmented","removeUsedSamples","cleanApertureWidthN","TrackGroupTypeBox","created","samples_per_chunk","constantFrameRate","uint32be","content_type","irot","sidxSent","Concatenating buffer for box parsing (length: ","dependency","AVCLevelIndication","props","bytessent","languageString","component_count","scif","trep","Getting sample #","(empty)","&","num_channels","iprp","message_data","ref_to","duration: ","ssix","SAMPLE_ENTRY_TYPE_TEXT","is_sync","subSequenceIdentifier","angle","Found box of type '","codec","Error reading extent index","_byteOffset","packetssent","first_chunk","TFHD_FLAG_DEFAULT_BASE_IS_MOOF","end","audio","avc3SampleEntry","toString","APPLICATION","trefBox","mhm1","aux_type"," of size ","style_record","colour_type","max_content_light_level","setUint32","mfra","meta","SAMPLE_ENTRY_TYPE_SUBTITLE","PPS","subsamples","prgr","itemId","chan_loc","92567kQYXai","media_rate_fraction","parseHex16","absolute_duration","ChannelMapping","extract_bits","ranges","properties","int32","DataStream","ispe","description_index","samplerate","sample_is_depended_on","vSpacing","shift","PreSkip"," - Length: ","first_dts","starts_with_SAP","dvhe","set","resources","printHeader","hevcDecoderConfigRecord","default_sample_size","mapUint8Array","switch_group","streamType","track_id","SubtitleSampleEntry","creation_time: ","default_IV_size","tracks","prototype","apply","strd","1229613NBLeee","object","writeUint32Array","Writing box ","avc2SampleEntry","processSamples","sample_offsets","frame_count","XMLSubtitlein4Parser","subsegment_duration","vp08SampleEntry","profile_compatibility","isFragmentationInitialized","pdin","target_rate_share","print","[row: ","user","entry_count","iinf","getText","SEEKTABLE","uncv","period","vvc1SampleEntry","flipArrayEndianness",'"; profiles="',"interleave_type","printRanges","stsdBox","is_leading","int16le","baseMediaDecodeTime","stpp","skew_factor","nb_samples","free","Descriptor","updateUsedBytes","sample_flags","getBoxes","SAP_delta_time","rICC","memcpy","reduceBuffer","readUint32Array","samplesDataSize","grouping_type","InputSampleRate","readInt64","createEncryptedSampleEntryCtor","extension_type","protection_index","drep","alreadyRead","onSamples","NAL_unit_type","MetadataSampleEntry","sttsBox","depth","chroma_format_idc","Found Sample Groups of type ","configOBUs","metadataTracks","idat","assignment_type","bitrate","matrix_coefficients","createElement","absolute_time","bytes","sbgps","block_little_endian","uuid","correction_applied","writeString","_realloc","writeUint8","completeness","index_size","getPrimaryItem","mdia","getSampleRate","quat_x","payl","first_offset","iref","nmhd","readCString","property_index","fragment_count","mehd","luminanceMax","pts","base_offset","createTrackGroupCtor","sthd","trak","hvc1SampleEntry","aux_subtype","movie_duration","stss","extent_offset","createFile","protections","favc","colour_primaries","createEntityToGroupCtor","dynamicSize","onSidx","sgpds","tmax","ec-3","vmhd","vvi1SampleEntry","sample_deltas","Hint","ipma","hSpacing","sampleListBuilt","readInt32","hasIOD","_sweep","8974dbce7be74c5184f97148f9882554","number","first_traf_merged","isSubtitle","block_size","isProgressive","fileStart","getPosition","subtitleTracks","ISOFile","transfer_characteristics","parseHeader","cttsBox","traks","single_view_allowed","dac3","sample_rate","image_width","createSampleEntryCtor","vvcC","num_bad_cols","component_bit_depth_minus_one","event_duration","getDurationString","Needs an array buffer","max_pic_average_light_level","string","restoreParsePosition","usedBytes","parsingMdat","track_group_id","addSubBoxArrays","pitm","chunk_offsets","component_align_size","seq_level_idx_0","earliest_presentation_time","clef","2jeYzON","adjustUint32","creation_time","data_offset_position","dmed","maxBitrate","mime","reserved_2","getDescriptorName","getTrexById","modification_time"," Compressor","cts","wbbr","traf"," full item size: ","matrix","onItem","isMetadata","pad_unknown","processIncompleteBox","Removing buffer #","a1lx","constant_IV","sample_composition_time_offset","addUsedBytes","discard_priority","primaryRChromaticity_y","cts_shift","extents","kindBox","compositionEndTime","stdp","sgpdBox","handler","twelve_bit","auxiliary_mime_types","segmentStream","layer","schm","general_constraint_info","crypt_byte_block","findPosition","Version","stsd","TRUN_FLAGS_SIZE","trun","channel_associations","stereo_scheme","readUint8"," (total: ","getChannelCount","sample_numbers","channel_indexes","alst","descriptionformat","test","hasIncompleteMdat","mapFloat32Array","discardMdatData","duration","enct","stream_read_2_bytes","TFHD_FLAG_SAMPLE_DESC","trpy","hintTracks","avg_frame_rate","elng","avs3","roll","defineProperty","vvnC","scheme_id_uri","DIFF_BOXES_PROP_NAMES","num_ind_sub","cleanApertureHeightD","AudioSampleEntry","isProtected","time","rtpmap_string","track_ids","samples","subs","upStream","chromaSubsampling","samplesize","tsyn","iaug","tile_align_size","getTrackSamplesInfo","readInt method not implemented for size: ","text","lengthSizeMinusOne","readUint8Array","initial_presentation_delay_present","MP4BoxStream","url Box","lhe1","sample_count","from_item_ID","hnti","createContainerBoxCtor","uint16be","bufferIndex","length_size","tpay","flattenItemInfo","getTrackSample","parallelismType","ChannelMappingFamily","emsgBox","DecoderConfigDescriptor","CUESHEET","avll","saio","sbtt","flags","mdhdBox","luminanceMin","fragmentedTracks","readUint","nalu","mfhdBox","getInfo","DIFF_PRIMITIVE_ARRAY_PROP_NAMES","image_height","length_size_of_trun_num","all_ref_pics_intra","getTrackDuration","addSample","lastMoofIndex","ols_idx","quat_z","parseLanguage","mvex","num_tile_rows_minus_one","u16stringle","sizePosition","encode","aux_info_type","setAllUsedBytes","albc","tpyl","_self","setFloat32","VisualSampleEntry","readySent","getItem","component_type_urls","item_name","bit_rate_code","writeUint16","length","item_infos","function","isHint","item_id"," with new size ","padding_flag","UUIDs","subsegments","balance","ref_track_id","writeUint8Array","SPS","ac-4","chunk_run_index","stco","getStreamBufferSize","modification_time: ","SAMPLE_ENTRY_TYPE_AUDIO","documentString","nb_SPS_nalus","maxr","field_size","Found position in existing buffer #","matrix: ","mdats","stbl","default_skip_byte_block","TKHD_FLAG_IN_PREVIEW","readInt8","has_unparsed_data","split","dataview","sample_offset","max","num_bytes_constraint_info","infe","avc1SampleEntry","appendBuffer","vttC","codecIntializationData","Generating initialization segment","entity_ids","initial_delay","vmhdBox","_dynamicSize","avss","Allocating sample #","sample_counts","bg_color_rgba","hdlr","Metadata","readUint24","itemListBuilt","int16be","SAMPLE_ENTRY_TYPE_METADATA","d4807ef2ca3946958e5426cb9e46a79f","base_offset_size","video","namespace","_trimAlloc","init","prdi","depends_on","Adjusting data_offset with new value ","writeInitializationSegment","initialize","vertOffD","isEos","MPEG4DescriptorParser","edits","nextMoofNumber","onError","d08a4f1810f34a82b6c832d8aba183d3","row_align_size","checkBuffer","language","charCodeAt","SampleGroupEntry","uncC","float64be","bit_depth_chroma_minus8","stz2","getFloat32","Creating media fragment on track #","isEof","type:","FullBox","default_sample_flags","pow","num_held_bits","attribute_list","buildSampleLists","addBox","rate","setUint16","general_sub_profile_idc","getEndPosition","LiveServerManifest","Getting item #","extent_index","resetTables","seq_profile","shadowed_sample_numbers","fromCharCodeUint8","durationFlag","uint16le"," extent #","stsg","constant_IV_size","body","channel_types"," full size: ","descs","numMetadataBlocks","name","writeFloat32Array","vttc","computeSize","size:","av01SampleEntry"," at position ","level","TRUN_FLAGS_FLAGS","setFloat64","primaryBChromaticity_x","location","CoLL","afbr","avc3","num_leading_samples","default_crypt_byte_block","vpcC","DecoderSpecificInfo","'","writeFloat64Array","readInt32Array","debug"," for sample ","layerNumber","getMetaHandler","to_item_ID","readString","payloadID","sample_depends_on","TrackReferenceTypeBox","887740crKNpk","fobr","min","num_sublayers","indent","ftypBox","ctts","tele","width: ","OutputGain","version of iloc box not supported","data_format"," --\x3e ","getInt8","info","essential","saveParsePosition","nonamespace","esds","version","parse","dataView","parseFromString","trgr","iso4","general_constraint_indicator","sgpd","num_bad_pixels","available_bitrate"," partial data (alreadyRead: ",'audio/mp4; codecs="',"writeInt8","component_little_endian","hvcCBox","width","stts","cmin","stsz","size","pixi","sdp ","findEndContiguousBuf","avc4SampleEntry","destroy","track_height","stxtSampleEntry","Stream ready for parsing","co64","sublayer_level_idc","entry_index","j2ki","flush","BYTES_PER_ELEMENT","writeFloat32","writeFloat64","ext","enof","Opus","' and size ","writeCString","totl","avcCBox","seekTrack","primary","mapFloat64Array","Allocating item #","range_size","arrayToNative","minor_version","onMoovStart","extended_language","lastValidSample","focal_length_y","rinf","_dataView","cleanBuffers","profile","releaseSample","SAMPLE_ENTRY_TYPE_SYSTEM","readInt8Array","vp09SampleEntry","major_brand","concat","height: ","avc1","videoTracks","Textin4Parser","TFHD_FLAG_BASE_DATA_OFFSET","scnm","mime_format"," read size: ","hasMoov","stscBox","ICC_profile","tkhdBox","kid","splice","TFHD_FLAG_SAMPLE_DUR","num_output_samples","getAllocatedSampleDataSize","BoxParser","compositionToDTSShift","releaseItem","metx","processIncompleteMdat","level_independently_decodable","temporalIdNested","parseFullHeader","readAnyInt","PICTURE","getBuffer","saiz","clli","tref","data_offset","reference_ID","initSampleGroups"," v=","num_dep_sub","default_sample_duration","getTime","dvh1","substring","altr","AVCProfileIndication","nb_PPS_nalus","moov","trex","encm","sample_duration","fiel","entity_groups","default_AlgorithmID","strk","max_display_mastering_luminance","sent","createFullBoxCtor","track_width","dobr","unsetExtractionOptions","leva","Appending new buffer (fileStart: ","sbgpBox","byteOffset","ipmas","samples_duration","alternate_group: ","description","target","a1op","layer_size","length_size_of_traf_num","initialized","1302jcJTSa","createSingleSampleMoof","mdhd","dependsOn_ES_ID","writeUint16Array","ftyp"," full extent size: ","pos_x","bad_pixels","ES_ID","kinds","mfhd","getTrackById","quat_y","step_count","parseSample","onReady","sub_track_id","bsmod","revokeObjectURL","component_types","moovBox","readFloat64Array","writeInt16","num_tile_cols_minus_one","auxC","getUint16","Buffer must be defined and non empty","nextSample","horizontal_justification","referenced_size","sample_description_index","prof","SingleItemTypeReferenceBoxLarge","href","num_entities_in_group","stream_read_1_bytes","ipro","schema_location","createUUIDBox","und","join","byteLength","writeInt32Array","component_index","full_range_flag","item_protection_index","vertresolution","u16stringbe","ptl_frame_only_constraint_flag","nalu_type","ptl_num_sub_profiles","getInt16","uint32","TRUN_FLAGS_CTS_OFFSET","primaryRChromaticity_x","version:","writeHeader","ipco","av1C","log","metadata","avgFrameRate","degradation_priority","_buffer","mvhdBox","horizOffD","grouping_type_parameter","msg","schi","mvhd","readFloat32Array","parseOneBox","writeUint64","boxCodes"," offset: ","float32be","PADDING","dts","writeUCS2String","download","skip","Audio","getUint8","setAttribute","ContainerBox","tag","offset_size","stsc","nclx","offset","processItems","avcC","sinf","moof_offset","otherTracks","CoupledCount","tx3g","OCR_ES_ID","a2394f525a9b4f14a2446c427c648df4","sdtp","sbgp","component_format","getEndFilePositionAfter","undefined","accurateStatisticsFlag","buffer","axis","associations","stppSampleEntry","fragment_duration","document","length_size_of_sample_num"," f=","sbpm","trexs","writeUint32","Subtitle","bad_rows","ASCII","moovStartFound","content_encoding","whitePointChromaticity_y","SampleEntry","readUint16","error","greatestDecodeToDisplayDelta","minf","createFragment","avgRateFlag","nump","88iYSKYh","cprt","SingleItemTypeReferenceBox","sdptext","fieldCount","btrt","sample_sizes","stssBox","moovStartSent","payt","pano","fromCharCode","SLConfigDescriptor","ster","schemeURI","sample_delta","bits_per_channels","Log","items","aebr","int32be","itemsDataSize","createMediaSampleEntryCtor","default_isProtected","esd","default_constant_IV","dOps","high_bitdepth","levels","mapInt8Array","seig","type","hvc1","mapInt16Array","stvi","volume","readUint64","float64le","add","media_duration","1904-01-01T00:00:00Z","grpl","mehdBox","first_sample_index","buildTrakSampleLists","num_bad_rows","senc","getLength","tfhd","sample_number","j2kH","stcoBox","trunBox","insertBuffer","avc4","bad_columns","hinf","moof_number","setSampleGroupProperties","avgBitRate","general_profile_compatibility","presentation_time","isAudio","pssh","TFHD_FLAG_SAMPLE_SIZE","nextParsePosition","tsel"," data (alreadyRead: ","createSampleGroupCtor","writeUint24","references","box","iloc","Trying to create a new buffer of size: ","lfeon","codec_specific_parameters","parseUUID","base_data_offset","height","samples_size","seq_tier_0","mjp2","op_index","cslgBox","default_sample_info_size","sequence_number","715415mEjdVL","channel_count","timescale","smhdBox","movie_timescale","vp08","sample_groups","tfdt","writeInt32","LITTLE_ENDIAN","whitePointChromaticity_x","skip_byte_block","readUint32","media_rate_integer","padbits","vertOffN","initializeSegmentation","reserved","ptl_frame_only_constraint","position","itemToFragmentedTrackFile","mergeNextBuffer","reserved_1","default_KID","oti","general_level_idc","addEntry","tmin","value","displayFlags","MultiBufferStream","description_length","setInt8","_byteLength","slice","process_sdtp","bad_pixel_column","number_in_traf","361602hBquMH","tkhd","indexOf","subtitles","etyp","getOTI","drefBox","monochrome","Text","vvcN","TRUN_FLAGS_DATA_OFFSET","avgBitrate","dinf","createBoxCtor","tapt","item_type","bit_depth_luma_minus8","Box","sample_has_redundancy","ac-3","is_fragment","source","logBufferLevel","stsh","findDescriptor","av01","ERR_NOT_ENOUGH_DATA","getSample","SAP_type","trun_number","decimalToHex","prft","cmpd","opcolor","readInt16Array","sample_groups_info","TRUN_FLAGS_DURATION","trafs","default_sample_description_index","Adjusting box ","nativeToEndian","StreamCount","encu","segment_duration"," on track #","stszBox","modified","buffers","elngBox","sample_size","constant_frame_rate","description_boxes","construction_method","write","vvc1","general_tier_flag","first_output_sample","hdr_size","meco","media_time","rtp ","parseFooter","held_bits","priority","sidx","VORBIS_COMMENT","subBoxNames","start","TRUN_FLAGS_FIRST_FLAG","wvtt","min_spatial_segmentation_idc","ptl_sublayer_present_mask","unpack","mha1","system_id","readInt16","horizresolution","seek","codecIntializationDataSize","presentation_time_delta","fr-FR","moofs","getWidth","bits_per_pixel","float32le","cleanApertureWidthD","compressorname","sync_sample_numbers","sampleProcessingStarted","ES_Descriptor","avcDecoderConfigRecord","mapInt32Array","kind","OutputChannelCount","URL","code","parseOneDescriptor","principal_point_x","updateSampleLists"," stored buffer(s) (","used","initial_duration","lastBoxStartPosition","elst","boxEqual","truns","replace","ind_subs","intra_pred_used","urn Box","SAMPLE_ENTRY_TYPE_VISUAL","save","next_track_id: ","chunk_index",'application/mp4; codecs="',"setNextSeekPositionFromSample","stereo_indication_type","sample_info_size","edts","getHeight","hvcC","getUint32","default_constant_IV_size","endianness","Track created with MP4Box.js","getCodecs","moovAudioNum","hev1SampleEntry","timescale: ","push","mdcv","stshBox","roll_distance","extent_length","reference_type","parseRemainingDescriptors","minimum_bitrate","readUint16Array","compositionStartTime","transferFunction","<","sidxBox","general_profile_space","group_description_index","emsg","configurationVersion","notice","forEach","mskC","rash","tfra","getInt32","CONTAINER_BOXES","nextSeekPosition","writeInt8Array","onSegment","boxEqualFields","parseDataAndRewind","acmod","extractedTracks","cstring","Found 'mdat' end in buffered data","default_length","getPerformanceInfo","tyco","bit_depth_minus8","TFHD_FLAG_SAMPLE_FLAGS","videoFullRangeFlag","floor","block_reversed","trexBox","lsel","mapUint32Array","bsid","819040VRSFMR","boxes","ptl_present_flag","brst","data","has_redundancy","item_ID","alternate_group","volume: ","first_sample_flags","compatible_brands","getSampleSize","_size","item_count","UUIDBoxes","setInt16","moovVideoNum","num_total_samples","min_display_mastering_luminance","writeFooter","setSegmentOptions","avc2","sampleEntryCodes","TKHD_FLAG_IN_MOVIE","graphicsmode","url ","u16string","addTrack","last_sample_in_run","leastDecodeToDisplayDelta","udes","TKHD_FLAG_ENABLED","dec3","8225nszstW","isVideo","stream","vvi1","mvif","fscod","default_group_description_index",'video/mp4; codecs="',"nalu_arrays","udta","rate: ","entries","aux_info_type_parameter","flags:","operation_point_count","pos_y","is_depended_on","setInt32","brands","rapAlignement","cleanApertureHeightN","BoxWriter","Exporting on track #","dref","scheme_type","call","BIG_ENDIAN","track_ID","audioTracks","nbSamples","default_Per_Sample_IV_Size","white_point","stop","writeType","setExtractionOptions","sampling_type","createObjectURL","bad_pixel_row","scheme_uri","data_reference_index","vp09","sync","mdat","vipr","Per_Sample_IV_Size","createCommonjsModule","general_profile_idc","has_fragment_subsamples","uint8",""","seekPoints","mdatBox","group_id","DataStream.save: Can't create object URL.","next_track_id"];return(ff=function(){return t})()}uf[df(795)],uf[df(291)],uf[df(1237)],uf[df(894)],uf[df(417)],uf[df(594)],uf[df(1273)],uf[df(580)],uf[df(167)],uf.createFile;const mf=gf;function gf(t,e){const s=bf();return(gf=function(t,e){return s[t-=204]})(t,e)}function Af(t){return t.reduce(((t,e)=>256*t+e))}function yf(t){const e=gf,s=[101,103,119,99],i=t.length-28,r=t[e(246)](i,i+s.length);return s[e(232)](((t,e)=>t===r[e]))}function bf(){const t=["slice","1582636aDHGSj","object","1308cppUxv","message","6022660CByniX","player","instantiate","instance","debugLog","function","40566IlpAUw","wasm not supported","length","memory","then","Instance","TransportDescrambler","9885PlOplC","stack overflow","TAG_NAME","catch","transport","3277647UfPaCB","7022280ykobzB","byteLength","reverse","8645wcUtDh","Module","every","exports","5UiXSlg","init error","destroy","not support wasm","set","map","buffer","init","debugWarn","10tWbJWS","parse","Memory"];return(bf=function(){return t})()}!function(t,e){const s=gf,i=t();for(;;)try{if(498445===parseInt(s(234))/1*(parseInt(s(214))/2)+-parseInt(s(221))/3+parseInt(s(204))/4+parseInt(s(230))/5*(-parseInt(s(206))/6)+-parseInt(s(208))/7+parseInt(s(227))/8+parseInt(s(226))/9*(parseInt(s(243))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(bf);mf(236),mf(225);function vf(t,e){const s=wf();return(vf=function(t,e){return s[t-=212]})(t,e)}const Sf=vf;function wf(){const t=["channel_count","bind","videoTrackId","start","dispatch","audio","offset","calcIframeIntervalTimestamp","debugWarn","onSamples","timescale","debugError","92740NhGSHA","click","12838vXcMoK","535267OaSjEJ","destroy","getTrackById","updateStats","hvcC","1807071DupDRY","indexOf","getStreamBufferSize","buffer","7512EnRmMx","_listenMp4Box","removeUsedSamples","cryptoPayload","390ZifZrD","length","_doDecodeByFmp4",'video/mp4; codecs="avc1.640028,mp4a.40.2"',"createElement","mp4Box","DataStream","entries","getSeqHeader","setExtractionOptions","4JpZKlh","video","4567472fuUljx","474YNSnmj","replace","stsd","codec","debugLog","href","audioTrackId","duration","sample_rate","Fmp4Demux","TAG_NAME","revokeObjectURL","getInputByteLength","appendBuffer","_opt","seqHeader","byteLength","write","tempFmp4List","cryptoPayloadAudio","audioTracks","hasAudio","mdia","cts","minf","1657007zRqyFo","onReady","flush","download","set","405927DXUzdw","avcC","config","player","data","mp4Box onError","isHevc","onError","is_sync","downloadFmp4File"];return(wf=function(){return t})()}!function(t,e){const s=vf,i=t();for(;;)try{if(949545===parseInt(s(253))/1*(parseInt(s(276))/2)+parseInt(s(258))/3+parseInt(s(278))/4+-parseInt(s(250))/5*(-parseInt(s(279))/6)+-parseInt(s(252))/7*(parseInt(s(262))/8)+-parseInt(s(228))/9*(parseInt(s(266))/10)+parseInt(s(223))/11)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(wf);class Ef extends Dp{constructor(t){const e=vf;super(t),this[e(289)]=e(288),this[e(231)]=t,this[e(271)]=uf.createFile(),this.tempFmp4List=[],this[e(244)]=0,this.videoTrackId=null,this.audioTrackId=null,this[e(234)]=!1,this[e(263)](),t[e(283)](this[e(289)],"init")}[Sf(254)](){const t=Sf;this[t(271)]&&(this.mp4Box.stop(),this[t(271)][t(225)](),this[t(271)].destroy(),this[t(271)]=null),this.tempFmp4List=[],this[t(244)]=0,this[t(240)]=null,this[t(285)]=null,this.isHevc=!1,this[t(231)].debugLog(this[t(289)],"destroy")}[Sf(263)](){const t=Sf;this[t(271)][t(224)]=this.onReady[t(239)](this),this[t(271)][t(235)]=this[t(235)].bind(this),this[t(271)][t(247)]=this.onSamples[t(239)](this)}[Sf(224)](t){const e=Sf;this[e(231)][e(283)](this[e(289)],e(224),t);const s=t.videoTracks[0],i=t[e(218)][0];if(s){this[e(240)]=s.id;const t=this[e(274)](s);t&&(this[e(231)].debugLog(this[e(289)],e(213),t),this[e(268)](t,D.video,0,!0,0)),this[e(271)][e(275)](s.id)}if(i&&this[e(231)][e(212)][e(219)]){this[e(285)]=i.id;const t=i[e(243)]||{},s=de[e(259)](t[e(287)]),r=i[e(282)][e(280)]("mp4a.40.","");this[e(271)][e(275)](i.id);const n={profile:parseInt(r,10),sampleRate:s,channel:t[e(238)]},o=ue(n);this[e(231)][e(283)](this[e(289)],"aacADTSHeader",o,e(230),n),this[e(268)](o,D[e(243)],0,!1,0)}this.mp4Box[e(241)]()}[Sf(235)](t){const e=Sf;this[e(231)][e(249)](this[e(289)],e(233),t)}[Sf(247)](t,e,s){const i=Sf;if(t===this.videoTrackId){for(const t of s){const e=t[i(232)],s=t[i(236)],r=1e3*t[i(221)]/t.timescale;t[i(286)],t[i(248)],this.player[i(256)]({vbps:e[i(214)],dts:r}),s&&this[i(245)](r);let n=null;n=this[i(234)]?Bh(e,s):oh(e,s);let o=this[i(265)](n,s);this[i(268)](o,D[i(277)],r,s,0)}this[i(271)][i(264)](t)}else if(t===this[i(285)]){if(this.player[i(212)][i(219)]){for(const t of s){const e=t[i(232)];this[i(231)][i(256)]({abps:e[i(214)]});const s=1e3*t[i(221)]/t[i(248)];t[i(286)],t[i(248)];const r=new Uint8Array(e[i(214)]+2);r[i(227)]([175,1],0),r[i(227)](e,2);const n=this[i(217)](r);this[i(268)](n,D[i(243)],s,!1,0)}this[i(271)][i(264)](t)}}else this[i(231)][i(246)](this[i(289)],"onSamples() trackId error",t)}[Sf(274)](t){const e=Sf,s=this.mp4Box[e(255)](t.id);for(const t of s[e(220)][e(222)].stbl[e(281)][e(273)])if(t[e(229)]||t[e(257)]){const s=new(uf[e(272)])(void 0,0,uf[e(272)].BIG_ENDIAN);let i=[];t[e(229)]?(t.avcC[e(215)](s),i=[23,0,0,0,0]):(this[e(234)]=!0,t[e(257)][e(215)](s),i=[28,0,0,0,0]);const r=new Uint8Array(s.buffer,8),n=new Uint8Array(i[e(267)]+r[e(267)]);return n[e(227)](i,0),n[e(227)](r,i[e(267)]),n}return null}[Sf(242)](t){const e=Sf;let s=new Uint8Array(t);s[e(261)].fileStart=this[e(244)],this[e(244)]+=s[e(214)],this[e(271)][e(292)](s[e(261)])}[Sf(237)](){const t=Sf,e=new Blob(this[t(216)],{type:t(269)}),s=URL.createObjectURL(e),i=document[t(270)]("a");i[t(284)]=s,i[t(226)]=je()+".fmp4",i[t(251)](),URL[t(290)](s)}[Sf(291)](){const t=Sf;let e=0;return this[t(271)]&&(e=this.mp4Box[t(260)]()),e}}function If(){var t=["2136036eByzkw","3245913spUvxD","2846934ixmjPY","player","debugLog","init","60CDrZpT","TAG_NAME","destroy","28slyPVd","2480144whHSZL","60SPPkag","Mpeg4Demux","LOG_NAME","158558movqWx","297235Rwccmf","1EtFLUC","2808198GEbhsy"];return(If=function(){return t})()}function Tf(t,e){var s=If();return(Tf=function(t,e){return s[t-=200]})(t,e)}var kf=Tf;!function(t,e){for(var s=Tf,i=t();;)try{if(951865===-parseInt(s(201))/1*(-parseInt(s(217))/2)+-parseInt(s(203))/3+parseInt(s(214))/4*(parseInt(s(200))/5)+parseInt(s(205))/6+parseInt(s(212))/7*(-parseInt(s(213))/8)+-parseInt(s(202))/9+parseInt(s(209))/10*(parseInt(s(204))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(If);class _f extends Dp{constructor(t){var e=Tf;super(t),this[e(206)]=t,this[e(210)]=e(215),this.player[e(207)](this[e(216)],e(208))}[kf(211)](){var t=kf;super[t(211)](),this[t(206)][t(207)](this[t(216)],t(211))}}function Cf(t,e){var s=Rf();return(Cf=function(t,e){return s[t-=347]})(t,e)}function Rf(){var t=["23470lCbYkn","filter","38094FylAnm","238314tWJNYc","forEach","set","byteLength","reduce","4868224eiuMGC","1611yEIwKN","612360DZtlCm","124VuEAgm","1411050OKGBQy","7jrZYyW","303650KXTwPT","length"];return(Rf=function(){return t})()}function Df(){for(var t=Cf,e=arguments.length,s=new Array(e),i=0;i<e;i++)s[i]=arguments[i];if((s=s[t(347)](Boolean))[t(361)]<2)return s[0];const r=new Uint8Array(s[t(353)](((e,s)=>e+s[t(352)]),0));let n=0;return s[t(350)]((e=>{var s=t;r[s(351)](e,n),n+=e[s(352)]})),r}!function(t,e){for(var s=Cf,i=t();;)try{if(304617===-parseInt(s(349))/1+-parseInt(s(360))/2+-parseInt(s(348))/3*(-parseInt(s(357))/4)+-parseInt(s(356))/5+-parseInt(s(358))/6*(-parseInt(s(359))/7)+parseInt(s(354))/8+-parseInt(s(355))/9*(parseInt(s(362))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Rf);const Lf=Of;function xf(){const t=["hasKeyframesIndex","sampling_index","level","channel_count","videoDataRate","channel_config","random_access_indicator","isComplete","times","expected_length","270192afXEFS","hasVideo","slices","dts","stream_id","6000oMquYD","sampling_freq_index","isSeekable","length","chromaFormat","mimeType","len","pid","refFrames","profile","original_codec_mimetype","config","keyframesIndex","39FKCvOh","hasAudio","original_object_type","1IhjqUH","videoCodec","881514yGVOJp","mp4a.40.","floor","_search","sarNum","width","12192lHZUrx","audio_object_type","sarDen","filepositions","stream_type","6111030NtDmod","data","userAgent","806265YQHeuo","codec_mimetype","toLowerCase","duration","audioCodec","audioChannelCount","audioSampleRate","266TLFuuY","3915189AMjMhJ","segmentCount","total_length","android","sampling_rate","firefox"];return(xf=function(){return t})()}!function(t,e){const s=Of,i=t();for(;;)try{if(773562===-parseInt(s(524))/1*(parseInt(s(532))/2)+-parseInt(s(521))/3*(parseInt(s(508))/4)+-parseInt(s(540))/5+-parseInt(s(526))/6+parseInt(s(486))/7*(parseInt(s(503))/8)+parseInt(s(487))/9+-parseInt(s(537))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(xf);const Pf={kMPEG1Audio:3,kMPEG2Audio:4,kPESPrivateData:6,kADTSAAC:15,kLOASAAC:17,kAC3:129,kEAC3:135,kMetadata:21,kSCTE35:134,kH264:27,kH265:36,G711A:144,G711U:145,G722:146,G723:147,G729:153,OPUS:156};class Bf{constructor(){const t=Of;this[t(505)]=[],this[t(489)]=0,this[t(502)]=0,this[t(499)]=0}}class Mf{constructor(){const t=Of;this.pid=null,this[t(538)]=null,this[t(536)]=null,this.random_access_indicator=null}}class Ff{constructor(){const t=Of;this[t(515)]=null,this[t(507)]=null,this[t(514)]=null,this.data=null,this.pts=null,this.nearest_pts=null,this[t(506)]=null}}function Of(t,e){const s=xf();return(Of=function(t,e){return s[t-=480]})(t,e)}const Uf=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];class Nf{constructor(){const t=Of;this[t(513)]=null,this[t(482)]=null,this[t(522)]=null,this[t(504)]=null,this[t(483)]=null,this[t(525)]=null,this.audioDataRate=null,this[t(497)]=null,this[t(485)]=null,this[t(484)]=null,this[t(531)]=null,this.height=null,this.fps=null,this[t(517)]=null,this.level=null,this[t(516)]=null,this[t(512)]=null,this[t(530)]=null,this.sarDen=null,this.metadata=null,this.segments=null,this[t(488)]=null,this[t(493)]=null,this.keyframesIndex=null}[Lf(500)](){const t=Lf;let e=!1===this[t(522)]||!0===this.hasAudio&&null!=this[t(483)]&&null!=this[t(485)]&&null!=this[t(484)],s=!1===this[t(504)]||!0===this[t(504)]&&null!=this.videoCodec&&null!=this[t(531)]&&null!=this.height&&null!=this.fps&&null!=this.profile&&null!=this[t(495)]&&null!=this[t(516)]&&null!=this[t(512)]&&null!=this[t(530)]&&null!=this[t(534)];return null!=this[t(513)]&&e&&s}[Lf(510)](){return!0===this[Lf(493)]}getNearestKeyframe(t){const e=Lf;if(null==this[e(520)])return null;let s=this[e(520)],i=this[e(529)](s[e(501)],t);return{index:i,milliseconds:s[e(501)][i],fileposition:s[e(535)][i]}}[Lf(529)](t,e){const s=Lf;let i=0,r=t[s(511)]-1,n=0,o=0,a=r;for(e<t[0]&&(i=0,o=a+1);o<=a;){if(n=o+Math[s(528)]((a-o)/2),n===r||e>=t[n]&&e<t[n+1]){i=n;break}t[n]<e?o=n+1:a=n-1}return i}}class jf{constructor(t){const e=Lf;let s=null,i=t[e(533)],r=t.audio_object_type,n=t[e(509)],o=t[e(498)],a=0,h=navigator[e(539)][e(481)]();-1!==h.indexOf(e(492))?n>=6?(r=5,s=new Array(4),a=n-3):(r=2,s=new Array(2),a=n):-1!==h.indexOf(e(490))?(r=2,s=new Array(2),a=n):(r=5,a=n,s=new Array(4),n>=6?a=n-3:1===o&&(r=2,s=new Array(2),a=n)),s[0]=r<<3,s[0]|=(15&n)>>>1,s[1]=(15&n)<<7,s[1]|=(15&o)<<3,5===r&&(s[1]|=(15&a)>>>1,s[2]=(1&a)<<7,s[2]|=8,s[3]=0),this[e(519)]=s,this[e(491)]=Uf[n],this[e(494)]=n,this[e(496)]=o,this.object_type=r,this[e(523)]=i,this[e(480)]=e(527)+r,this[e(518)]=e(527)+i}}const Vf=Gf;function zf(){const t=["AAC: AudioObjectType changed from ","last_pcr_","AAC: Detected pts overlapped, ","handleSectionSlice","hvcc","calcIframeIntervalTimestamp","cts","parseH264Payload","current_pmt_pid_","sampling_freq_index","audio_init_segment_dispatched_","program_number","slices","object_type","floor","codec","_doDecodeAudio","updateStats","parsePES","fps_num","G711A","parseSPS$2","Parsed first PMT: ","kSliceIDR_N_LP","destroy","dispatchAudioVideoMediaSegment","kEAC3","debugLog","kMPEG1Audio","4520144zljxMe","h265","sync_offset","Generated first HEVCDecoderConfigurationRecord for mimeType: ","24BGrlVj","aac","isFirstDispatch and tsPacketSize = ",", syncOffset = ","parseOpusPayload","aacADTSHeader profile: ","sar_ratio","hasIncompleteData","kSliceNonIDR","_doDecodeByTs","handlePESSlice: packet_start_code_prefix should be 1 but with value ","parseSCTE35","frameRate","chroma_format","audio_metadata_","parsePAT: table_id ","low_frequency_effects_channel_on","pmt_","nearest_pts","loas_aac","updateVideoInfo","match","duration_","audio_track_","sort","hasAudio","getInputByteLength","presentHeight","expected_length","frame_rate","kSliceCRA_NUT","program_pmt_pid","readNextNaluPayload","updateAudioInfo","samples","_getPcrBase","parseADTSAACPayload","abs","adts_aac","width","TAG","SMPTE 2038 Metadata: pid=","config_","isIFrame","timescale","loas_previous_frame","kSliceVPS","ac-3","VANC","dispatchAudioMediaSegment","Synchronous KLV Metadata: pid=","channel_mode","1527758suLYXR","dispatchVideoMediaSegment","audioSampleRate","timestamp_offset_","dts","common_pids","originalCodec","bit_depth","1NzmsLI","audio_object_type","fps","video_metadata_","player","bitDepth","h264","level","kPESPrivateData","length","duration",'video/mp2t; codecs="',"first_parse_","127130MHZsyb","parseSection","MP3","presentWidth","kMPEG2Audio","181511phCzDV","pes_slice_queues_","_preDoDecode","Video: Present resolution width changed from ","program_pmt_map_","_getTimestamp","type","mp3","tsPacketSize","parseTimedID3MetadataPayload","MP3: Channel count changed from ","MP3: SamplingFrequencyIndex changed from ","fps_den","profile","bit_stream_mode","discontinuity_indicator"," to ","stream_type","aac_last_incomplete_data_","pts","refSampleDuration","TAG_NAME","dispatchVideoInitSegment","codecHeight","opus","audio_metadata_changed_",", stream_id=","from","set","parsePMT","pps","25842FmcRLS","last_pcr_base_","parsePES: packet_start_code_prefix should be 1 but with value ","codecWidth","stringify","mseDecodeAudio","version_number","getIncompleteData","AAC: SamplingFrequencyIndex changed from ","Not Supported Opus channel count.","parseChunks",", dts=","sarRatio","sampling_frequency","ID3 "," is not corresponded to PMT!","handlePESSlice","video","75catoJs","81936iMnbIL","_doDecodeVideo","detectAudioMetadataChange","cryptoPayloadAudio","eac3","debugWarn","chromaFormat","emitPESSlices","G711U","AC3: Bit Stream Identification changed from ","media_info_","parseH265Payload","pid","Video: Coded Resolution changed from ","isHevc","syncOffset","parsePPS","video_track_","concat","Opus","Malformed PES: PES_packet_length < 3 + PES_header_data_length","audio_last_sample_pts_","descriptor","height","kH264","Video: Codec mimeType changed from ","min","cryptoPayload","isInitSegmentDispatched","Parsed first PAT: ","parseSynchronousKLVMetadataPayload","expected: ","debugError","bit_stream_identification","sample_rate","videoCodec","g711u","pid_stream_type","parsePESPrivateDataPayload","kSliceSPS","ref_frames","parsePAT","elementary_stream_priority_indicator","fromCharCode","video_metadata_changed_","parseSMPTE2038MetadataPayload",", sampleRate: ","audio","AAC: Unknown pts","getNearestTimestampMilliseconds","parseEAC3Payload",", pts=","g711a","parseAC3Payload","total_length","AC3: Channel Mode changed from ","detectVideoMetadataChange","4458167KtVVzl","codec_size","Generated first AudioSpecificConfig for mimeType: ","channel_count","details","kMetadata","ms, PES pts: ",", channel: ","subarray","payload","push","random_access_indicator","sps","1260qGtwTy","parseSPS","channel_config","audioSampleRateIndex","emitSectionSlices","synchronous_klv_pids","len","KLVA","Opus: Channel count changed from ","file_position","byteLength","audioCodec","codec_mimetype","_initPmt","dispatchAudioInitSegment","_remainingPacketData","scte_35_pids","hasVideo","stream_id","refFrames","Timed ID3 Metadata: pid=","vps","Audio: Audio Codecs changed from ","pcr_pid","level_string","probe","forEach","original_codec_mimetype","has_video_","ac3","video_init_segment_dispatched_","dispatchPESPrivateDataDescriptor","present_size","payload_unit_start_indicator","pes_private_data_pids","chroma_format_string","pat_","kLOASAAC","ec-3","timed_id3_pids","dispatch","kAC3","meta","correctSamplePts","kH265","H265: Critical h265 metadata has been changed, attempt to re-generate InitSegment","clearSlices","Asynchronous KLV Metadata: pid=","smpte2038_pids","data","section_slice_queues_","sarNum","parseAsynchronousKLVMetadataPayload","current_program_","timescale_","readNextAACFrame","594TPTBBp","EAC3: Unsupported codec","kSCTE35","AC3: Unsupported codec","config","channelCount","has_audio_","sampling_index","parsePMT: table_id ","parseVPS","AAC","profile_string","MP3: AudioObjectType changed from "];return(zf=function(){return t})()}function Gf(t,e){const s=zf();return(Gf=function(t,e){return s[t-=173]})(t,e)}!function(t,e){const s=Gf,i=t();for(;;)try{if(759041===parseInt(s(401))/1*(-parseInt(s(393))/2)+parseInt(s(450))/3*(-parseInt(s(341))/4)+-parseInt(s(468))/5*(-parseInt(s(469))/6)+-parseInt(s(226))/7+-parseInt(s(337))/8+-parseInt(s(295))/9*(-parseInt(s(414))/10)+parseInt(s(419))/11*(parseInt(s(239))/12))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(zf);class Wf extends Dp{constructor(t){const e=Gf;super(t),this[e(405)]=t,this.TAG_NAME="TsDemux",this[e(413)]=!0,this[e(427)]=0,this.syncOffset=0,this[e(358)]=null,this[e(383)]=null,this[e(179)]=new Nf,this[e(293)]=90,this.duration_=0,this.pat_={version_number:0,network_pid:0,program_map_pid:{}},this[e(292)]=null,this[e(316)]=-1,this[e(423)]={},this[e(420)]={},this.section_slice_queues_={},this.video_metadata_={vps:null,sps:null,pps:null,details:null},this[e(355)]={codec:null,audio_object_type:null,sampling_freq_index:null,sampling_frequency:null,channel_config:null},this[e(309)]=null,this.last_pcr_base_=NaN,this[e(396)]=0,this[e(190)]=void 0,this.aac_last_incomplete_data_=null,this[e(267)]=!1,this[e(301)]=!1,this.video_init_segment_dispatched_=!1,this[e(318)]=!1,this[e(213)]=!1,this[e(444)]=!1,this[e(386)]=null,this[e(186)]={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this[e(364)]={type:e(216),id:2,sequenceNumber:0,samples:[],length:0},this[e(254)]=null,this[e(405)][e(335)](this[e(440)],"init")}destroy(){const t=Gf;this[t(179)]=null,this[t(420)]=null,this[t(289)]=null,this[t(404)]=null,this[t(355)]=null,this[t(437)]=null,this[t(186)]=null,this[t(364)]=null,this[t(254)]=null,super[t(332)]()}[Vf(264)](t){const e=Vf;let s=new Uint8Array(t),i=-1,r=188;if(s[e(249)]<=3*r)return{needMoreData:!0};for(;-1===i;){let t=Math.min(1e3,s.byteLength-3*r);for(let e=0;e<t;){if(71===s[e]&&71===s[e+r]&&71===s[e+2*r]){i=e;break}e++}if(-1===i)if(188===r)r=192;else{if(192!==r)break;r=204}}return-1===i?{match:!1}:(192===r&&i>=4&&(i-=4),{match:!0,consumed:0,ts_packet_size:r,sync_offset:i})}[Vf(252)](){return{program_number:0,version_number:0,pcr_pid:0,pid_stream_type:{},common_pids:{h264:void 0,h265:void 0,adts_aac:void 0,loas_aac:void 0,opus:void 0,ac3:void 0,eac3:void 0,mp3:void 0,g711a:void 0,g711u:void 0},pes_private_data_pids:{},timed_id3_pids:{},synchronous_klv_pids:{},asynchronous_klv_pids:{},scte_35_pids:{},smpte2038_pids:{}}}[Vf(279)](t){const e=Vf;let s=new Uint8Array(t);this._remainingPacketData&&(s=Df(this[e(254)],s),this[e(254)]=null);let i=s.buffer;const r=this.parseChunks(i);r?this[e(254)]=s[e(234)](r):s[e(410)]<this[e(427)]&&(this[e(254)]=s)}[Vf(460)](t){const e=Vf;let s=0;if(this[e(413)]){this[e(413)]=!1;const i=this.probe(t);i[e(362)]&&(this[e(427)]=i.ts_packet_size,this[e(184)]=i[e(339)]),s=this[e(184)],this.player[e(335)](this.TAG_NAME,e(343)+this[e(427)]+e(344)+this.syncOffset)}for(;s+this[e(427)]<=t[e(249)];){192===this[e(427)]&&(s+=4);const i=new Uint8Array(t,s,188);let r=i[0];if(71!==r){this[e(405)][e(174)](this.TAG_NAME,"parseChunks() sync_byte = "+r+", not start with 0x47, so break");break}let n=(64&i[1])>>>6;i[1];let o=(31&i[1])<<8|i[2],a=(48&i[3])>>>4,h=15&i[3],c=!(!this[e(358)]||this.pmt_[e(262)]!==o),l={},d=4;if(2==a||3==a){let t=i[4];if(t>0&&(c||3==a)){if(l[e(434)]=(128&i[5])>>>7,l.random_access_indicator=(64&i[5])>>>6,l[e(211)]=(32&i[5])>>>5,(16&i[5])>>>4){let t=300*this[e(376)](i)+((1&i[10])<<8|i[11]);this.last_pcr_=t}}if(2==a||5+t===188){s+=188,204===this[e(427)]&&(s+=16);continue}d=5+t}if(1==a||3==a)if(0===o||o===this.current_pmt_pid_||null!=this[e(358)]&&this[e(358)][e(206)][o]===Pf.kSCTE35){let i=188-d;this[e(311)](t,s+d,i,{pid:o,payload_unit_start_indicator:n,continuity_conunter:h,random_access_indicator:l[e(237)]})}else if(null!=this.pmt_&&null!=this[e(358)][e(206)][o]){let i=188-d,r=this[e(358)][e(206)][o];(o===this[e(358)].common_pids[e(407)]||o===this.pmt_[e(398)].h265||o===this.pmt_[e(398)].adts_aac||o===this[e(358)][e(398)].loas_aac||o===this[e(358)][e(398)][e(268)]||o===this[e(358)][e(398)][e(173)]||o===this.pmt_[e(398)].opus||o===this.pmt_[e(398)][e(426)]||o===this[e(358)][e(398)][e(221)]||o===this.pmt_.common_pids[e(205)]||!0===this.pmt_[e(273)][o]||!0===this[e(358)][e(278)][o]||!0===this[e(358)].synchronous_klv_pids[o]||!0===this[e(358)].asynchronous_klv_pids[o])&&this.handlePESSlice(t,s+d,i,{pid:o,stream_type:r,payload_unit_start_indicator:n,continuity_conunter:h,random_access_indicator:l[e(237)]})}s+=188,204===this[e(427)]&&(s+=16)}return this.dispatchAudioVideoMediaSegment(),s}[Vf(311)](t,e,s,i){const r=Vf;let n=new Uint8Array(t,e,s),o=this.section_slice_queues_[i[r(181)]];if(i[r(272)]){let a=n[0];if(null!=o&&0!==o.total_length){let n=new Uint8Array(t,e+1,Math.min(s,a));o[r(320)].push(n),o[r(223)]+=n[r(249)],o[r(223)]===o[r(369)]?this[r(243)](o,i):this[r(285)](o,i)}for(let h=1+a;h<n.byteLength;){if(255===n[h+0])break;let a=(15&n[h+1])<<8|n[h+2];this.section_slice_queues_[i[r(181)]]=new Bf,o=this[r(289)][i[r(181)]],o.expected_length=a+3,o[r(237)]=i[r(237)];let c=new Uint8Array(t,e+h,Math[r(195)](s-h,o[r(369)]-o[r(223)]));o.slices[r(236)](c),o[r(223)]+=c[r(249)],o.total_length===o.expected_length?this[r(243)](o,i):o[r(223)]>=o[r(369)]&&this[r(285)](o,i),h+=c.byteLength}}else if(null!=o&&0!==o.total_length){let n=new Uint8Array(t,e,Math[r(195)](s,o[r(369)]-o[r(223)]));o.slices[r(236)](n),o[r(223)]+=n[r(249)],o[r(223)]===o[r(369)]?this[r(243)](o,i):o[r(223)]>=o[r(369)]&&this[r(285)](o,i)}}[Vf(466)](t,e,s,i){const r=Vf;let n=new Uint8Array(t,e,s),o=n[0]<<16|n[1]<<8|n[2];n[3];let a=n[4]<<8|n[5];if(i[r(272)]){if(1!==o)return void this[r(405)].debugWarn(this[r(440)],r(351)+o);let t=this[r(420)][i[r(181)]];t&&(0===t[r(369)]||t[r(369)]===t[r(223)]?this[r(176)](t,i):this[r(285)](t,i)),this[r(420)][i[r(181)]]=new Bf,this[r(420)][i[r(181)]][r(237)]=i[r(237)]}if(null==this[r(420)][i.pid])return;let h=this[r(420)][i[r(181)]];h[r(320)][r(236)](n),i.payload_unit_start_indicator&&(h[r(369)]=0===a?0:a+6),h[r(223)]+=n.byteLength,h.expected_length>0&&h[r(369)]===h[r(223)]?this[r(176)](h,i):h[r(369)]>0&&h[r(369)]<h[r(223)]&&this[r(285)](h,i)}[Vf(243)](t,e){const s=Vf;let i=new Uint8Array(t[s(223)]);for(let e=0,r=0;e<t[s(320)][s(410)];e++){let n=t[s(320)][e];i[s(447)](n,r),r+=n[s(249)]}t[s(320)]=[],t[s(369)]=-1,t[s(223)]=0;let r={};r[s(181)]=e.pid,r[s(288)]=i,r[s(248)]=t[s(248)],r.random_access_indicator=t[s(237)],this[s(415)](r)}[Vf(176)](t,e){const s=Vf;let i=new Uint8Array(t[s(223)]);for(let e=0,r=0;e<t[s(320)][s(410)];e++){let n=t[s(320)][e];i.set(n,r),r+=n[s(249)]}t.slices=[],t[s(369)]=-1,t[s(223)]=0;let r=new Mf;r.pid=e[s(181)],r[s(288)]=i,r[s(436)]=e[s(436)],r[s(237)]=t[s(237)],this[s(326)](r)}[Vf(285)](t){const e=Vf;t[e(320)]=[],t.expected_length=-1,t[e(223)]=0}[Vf(415)](t){const e=Vf;let s=t[e(288)],i=t[e(181)];0===i?this[e(210)](s):i===this[e(316)]?this[e(448)](s):null!=this.pmt_&&this.pmt_[e(255)][i]&&this.parseSCTE35(s)}[Vf(326)](t){const e=Vf;let s=t[e(288)],i=s[0]<<16|s[1]<<8|s[2],r=s[3],n=s[4]<<8|s[5];if(1===i){if(188!==r&&190!==r&&191!==r&&240!==r&&241!==r&&255!==r&&242!==r&&248!==r){s[6];let i,o,a=(192&s[7])>>>6,h=s[8];(2===a||3===a)&&(i=this[e(424)](s,9),o=3===a?this._getTimestamp(s,14):i);let c,l=9+h;if(0!==n){if(n<3+h)return void this[e(405)][e(174)](this.TAG_NAME,e(189));c=n-3-h}else c=s[e(249)]-l;let d=s[e(234)](l,l+c);switch(t.stream_type){case Pf[e(336)]:case Pf.kMPEG2Audio:this.parseMP3Payload(d,i);break;case Pf[e(409)]:this.pmt_[e(398)][e(443)]===t.pid?this[e(345)](d,i):this[e(358)][e(398)][e(268)]===t[e(181)]?this.parseAC3Payload(d,i):this.pmt_[e(398)][e(173)]===t.pid?this[e(219)](d,i):this.pmt_.asynchronous_klv_pids[t[e(181)]]?this[e(291)](d,t[e(181)],r):this[e(358)].smpte2038_pids[t.pid]?this.parseSMPTE2038MetadataPayload(d,i,o,t[e(181)],r):this[e(207)](d,i,o,t[e(181)],r);break;case Pf.kADTSAAC:this[e(377)](d,i);break;case Pf[e(276)]:this.parseLOASAACPayload(d,i);break;case Pf.kAC3:this[e(222)](d,i);break;case Pf.kEAC3:this[e(219)](d,i);break;case Pf[e(231)]:this[e(358)][e(278)][t[e(181)]]?this[e(428)](d,i,o,t[e(181)],r):this[e(358)][e(244)][t[e(181)]]&&this.parseSynchronousKLVMetadataPayload(d,i,o,t.pid,r);break;case Pf[e(193)]:this.parseH264Payload(d,i,o,t.random_access_indicator);break;case Pf[e(283)]:this.parseH265Payload(d,i,o,t.random_access_indicator);break;case Pf.G711A:this.parseG711Payload(d,i,!0);break;case Pf[e(177)]:this.parseG711Payload(d,i,!1);break;default:this[e(405)][e(174)](this.TAG_NAME,"Unsupported stream. type: "+t[e(436)]+", pid: "+t[e(181)])}}else if((188===r||191===r||240===r||241===r||255===r||242===r||248===r)&&t[e(436)]===Pf.kPESPrivateData){let i,o=6;i=0!==n?n:s[e(249)]-o;let a=s[e(234)](o,o+i);this[e(207)](a,void 0,void 0,t[e(181)],r)}}else this[e(405)][e(201)](this[e(440)],e(452)+i)}[Vf(210)](t){const e=Vf;let s=t[0];if(0!==s)return void Log.e(this.TAG,e(356)+s+" is not corresponded to PAT!");let i=(15&t[1])<<8|t[2];t[3],t[4];let r=(62&t[5])>>>1,n=1&t[5],o=t[6];t[7];let a=null;if(1===n&&0===o)a={version_number:0,network_pid:0,program_pmt_pid:{}},a[e(456)]=r;else if(a=this[e(275)],null==a)return;let h=i-5-4,c=-1,l=-1;for(let s=8;s<8+h;s+=4){let i=t[s]<<8|t[s+1],r=(31&t[s+2])<<8|t[s+3];0===i?a.network_pid=r:(a[e(372)][i]=r,-1===c&&(c=i),-1===l&&(l=r))}1===n&&0===o&&(null==this[e(275)]&&this[e(405)].debugLog(this[e(440)],e(198)+JSON.stringify(a)),this[e(275)]=a,this.current_program_=c,this[e(316)]=l)}[Vf(448)](t){const e=Vf;let s=t[0];if(2!==s)return void this.player.debugError(this[e(440)],e(303)+s+e(465));let i,r=(15&t[1])<<8|t[2],n=t[3]<<8|t[4],o=(62&t[5])>>>1,a=1&t[5],h=t[6];if(t[7],1===a&&0===h)i=this[e(252)](),i[e(319)]=n,i[e(456)]=o,this[e(423)][n]=i;else if(i=this[e(423)][n],null==i)return;i.pcr_pid=(31&t[8])<<8|t[9];let c=(15&t[10])<<8|t[11],l=12+c,d=r-9-c-4;for(let s=l;s<l+d;){let r=t[s],n=(31&t[s+1])<<8|t[s+2],o=(15&t[s+3])<<8|t[s+4];i.pid_stream_type[n]=r;let a=i.common_pids[e(407)]||i.common_pids[e(338)],h=i[e(398)].adts_aac||i[e(398)][e(360)]||i[e(398)][e(268)]||i[e(398)][e(173)]||i[e(398)][e(443)]||i[e(398)][e(426)]||i[e(398)][e(221)]||i.common_pids.g711u;if(r!==Pf[e(193)]||a)if(r!==Pf[e(283)]||a)if(r!==Pf.kADTSAAC||h)if(r!==Pf[e(276)]||h)if(r!==Pf[e(280)]||h)if(r!==Pf[e(334)]||h)if(r!==Pf[e(336)]&&r!==Pf[e(418)]||h)if(r!==Pf[e(328)]||h)if(r!==Pf[e(177)]||h)if(r===Pf[e(409)]){if(i[e(273)][n]=!0,o>0){for(let r=s+5;r<s+5+o;){let s=t[r+0],o=t[r+1];if(5===s){let s=String[e(212)](...Array.from(t[e(234)](r+2,r+2+o)));s===e(389)?i[e(287)][n]=!0:s===e(188)?i[e(398)][e(443)]=n:s===e(246)&&(i.asynchronous_klv_pids[n]=!0)}else if(127===s&&n===i[e(398)][e(443)]){let s=null;if(128===t[r+2]&&(s=t[r+3]),null==s){Log.e(this[e(381)],e(459));continue}const i={codec:"opus",channel_count:0==(15&s)?2:15&s,channel_config_code:s,sample_rate:48e3},n={codec:e(443),meta:i};0==this.audio_init_segment_dispatched_?(this[e(355)]=i,this[e(253)](n)):this[e(471)](n)&&(this[e(390)](),this[e(253)](n))}r+=2+o}let a=t[e(234)](s+5,s+5+o);this[e(270)](n,r,a)}}else if(r===Pf[e(231)]){if(o>0)for(let r=s+5;r<s+5+o;){let s=t[r+0],o=t[r+1];if(38===s){let s=t[r+2]<<8|t[r+3]<<0,o=null;65535===s&&(o=String[e(212)](...Array[e(446)](t[e(234)](r+4,r+4+4))));let a=null;if(255===t[r+4+(65535===s?4:0)]){let i=4+(65535===s?4:0)+1;a=String[e(212)](...Array.from(t[e(234)](r+i,r+i+4)))}o===e(464)&&a===e(464)?i[e(278)][n]=!0:a===e(246)&&(i[e(244)][n]=!0)}r+=2+o}}else r===Pf[e(297)]&&(i[e(255)][n]=!0);else i[e(398)].g711u=n;else i[e(398)][e(221)]=n;else i[e(398)][e(426)]=n;else i.common_pids[e(173)]=n;else i[e(398)][e(268)]=n;else i.common_pids[e(360)]=n;else i[e(398)][e(379)]=n;else i.common_pids.h265=n;else i[e(398)][e(407)]=n;s+=5+o}n===this[e(292)]&&(null==this[e(358)]&&this[e(405)].debugLog(this[e(440)],e(330)+JSON[e(454)](i)),this[e(358)]=i,(i[e(398)][e(407)]||i.common_pids[e(338)])&&(this[e(267)]=!0),(i.common_pids[e(379)]||i.common_pids.loas_aac||i[e(398)].ac3||i[e(398)][e(443)]||i.common_pids.mp3||i[e(398)].g711a||i.common_pids[e(205)])&&(this[e(301)]=!0))}[Vf(352)](t){}[Vf(315)](t,e,s,i){const r=Vf;let n=new dh(t),o=null,a=null,h=[],c=0,l=!1;for(;null!=(o=n.readNextNaluPayload());){let t=new uh(o);if(t[r(425)]===Y.kSliceSPS){let e=Qa[r(329)](o[r(288)]);this[r(269)]?!0===this[r(225)](t,e)&&(this.player[r(335)](this[r(440)],"H264: Critical h264 metadata has been changed, attempt to re-generate InitSegment"),this.video_metadata_changed_=!0,this[r(404)]={vps:void 0,sps:t,pps:void 0,details:e}):(this[r(404)].sps=t,this[r(404)][r(230)]=e)}else t.type===Y.kSlicePPS?(!this[r(269)]||this[r(213)])&&(this[r(404)][r(449)]=t,this[r(404)][r(238)]&&this[r(404)][r(449)]&&(this[r(213)]&&this[r(394)](),this.dispatchVideoInitSegment())):(t.type===Y.kSliceIDR||t[r(425)]===Y[r(349)]&&1===i)&&(l=!0);this[r(269)]&&(h[r(236)](t),c+=t[r(288)].byteLength)}let d=Math.floor(e/this.timescale_),u=Math[r(322)](s/this[r(293)]);if(h[r(410)]){let t=this[r(186)];for(let t=0;t<h[r(410)];t++){let e=h[t];if(null==a)a=e[r(288)];else{let t=new Uint8Array(a[r(249)]+e[r(288)].byteLength);t[r(447)](a,0),t[r(447)](e[r(288)],a[r(249)]),a=t}}let e={length:c,isIFrame:l,dts:u,pts:d,cts:d-u,payload:a,type:D[r(467)],isHevc:!1};t[r(375)][r(236)](e),t.length=a[r(249)]}}[Vf(180)](t,e,s,i){const r=Vf;let n=new jh(t),o=null,a=null,h=[],c=0,l=!1;for(;null!=(o=n[r(373)]());){let t=new Vh(o);if(t[r(425)]===q[r(387)]){if(!this[r(269)]){let e=_h[r(304)](o[r(288)]);this.video_metadata_.vps=t,this.video_metadata_[r(230)]={...this[r(404)].details,...e}}}else if(t.type===q[r(208)]){let e=_h[r(240)](o[r(288)]);this.video_init_segment_dispatched_?!0===this.detectVideoMetadataChange(t,e)&&(this[r(405)][r(335)](this[r(440)],r(284)),this.video_metadata_changed_=!0,this[r(404)]={vps:void 0,sps:t,pps:void 0,details:e}):(this[r(404)][r(238)]=t,this[r(404)].details={...this[r(404)][r(230)],...e})}else if(t[r(425)]===q.kSlicePPS){if(!this.video_init_segment_dispatched_||this.video_metadata_changed_){let e=_h[r(185)](o[r(288)]);this[r(404)][r(449)]=t,this[r(404)][r(230)]={...this.video_metadata_.details,...e},this[r(404)][r(260)]&&this[r(404)][r(238)]&&this[r(404)][r(449)]&&(this[r(213)]&&this[r(394)](),this[r(441)]())}}else(t[r(425)]===q.kSliceIDR_W_RADL||t[r(425)]===q[r(331)]||t[r(425)]===q[r(371)])&&(l=!0);this.video_init_segment_dispatched_&&(h[r(236)](t),c+=t[r(288)][r(249)])}let d=Math[r(322)](e/this.timescale_),u=Math[r(322)](s/this[r(293)]);if(h[r(410)]){let t=this[r(186)];for(let t=0;t<h[r(410)];t++){let e=h[t];if(null==a)a=e[r(288)];else{let t=new Uint8Array(a[r(249)]+e[r(288)][r(249)]);t[r(447)](a,0),t[r(447)](e.data,a[r(249)]),a=t}}let e={type:D.video,length:c,isIFrame:l,dts:u,pts:d,cts:d-u,payload:a,isHevc:!0};t.samples[r(236)](e),t[r(410)]=a[r(249)]}}detectVideoMetadataChange(t,e){const s=Vf;if(e.codec_mimetype!==this[s(404)].details[s(251)])return this[s(405)][s(335)](this[s(440)],s(194)+(this[s(404)].details[s(251)]+" to ")+e.codec_mimetype),!0;if(e.codec_size[s(380)]!==this[s(404)][s(230)].codec_size[s(380)]||e[s(227)][s(192)]!==this[s(404)][s(230)][s(227)].height){let t=this[s(404)][s(230)][s(227)],i=e[s(227)];return this[s(405)].debugLog(this.TAG_NAME,s(182)+(t[s(380)]+"x")+t.height+s(435)+i[s(380)]+"x"+i[s(192)]),!0}return e[s(271)][s(380)]!==this[s(404)][s(230)][s(271)][s(380)]&&(this[s(405)][s(335)](this[s(440)],s(422)+(this[s(404)][s(230)][s(271)].width+" to ")+e.present_size[s(380)]),!0)}[Vf(197)](){const t=Vf;return this[t(267)]&&this.has_audio_?this[t(269)]&&this[t(318)]:this.has_video_&&!this[t(301)]?this[t(269)]:!(this[t(267)]||!this[t(301)])&&this.audio_init_segment_dispatched_}[Vf(441)](){const t=Vf;let e=this[t(404)][t(230)],s={};s[t(425)]="video",s.id=this.video_track_.id,s[t(385)]=1e3,s.duration=this[t(363)],s[t(453)]=e[t(227)].width,s[t(442)]=e.codec_size[t(192)],s[t(417)]=e[t(271)][t(380)],s[t(368)]=e[t(271)][t(192)],s[t(432)]=e[t(306)],s[t(408)]=e[t(263)],s[t(406)]=e[t(400)],s.chromaFormat=e[t(354)],s[t(462)]=e[t(347)],s[t(353)]=e[t(370)];let i=s[t(353)][t(431)],r=s.frameRate[t(327)];s[t(439)]=i/r*1e3,s[t(323)]=e[t(251)];let n=!1;if(this[t(404)][t(260)]){n=!0;let e=this[t(404)].vps[t(288)][t(234)](4),i=this[t(404)][t(238)][t(288)][t(234)](4),r=this.video_metadata_[t(449)][t(288)].subarray(4);s.hvcc=Ph({vps:e,sps:i,pps:r}),0==this.video_init_segment_dispatched_&&this[t(405)][t(335)](this.TAG_NAME,t(340)+s[t(323)]),s[t(312)]&&this[t(350)](s[t(312)],D[t(467)],0,!0,0)}else{let e=this.video_metadata_[t(238)][t(288)][t(234)](4),i=this.video_metadata_[t(449)].data[t(234)](4);s.avcc=nh({sps:e,pps:i}),0==this[t(269)]&&this[t(405)][t(335)](this.TAG_NAME,"Generated first AVCDecoderConfigurationRecord for mimeType: "+s[t(323)]),s.avcc&&this[t(350)](s.avcc,D.video,0,!0,0)}this[t(269)]=!0,this[t(213)]=!1;let o=this[t(179)];o[t(256)]=!0,o[t(380)]=s[t(453)],o.height=s[t(442)],o[t(403)]=s.frameRate.fps,o[t(432)]=s[t(432)],o[t(408)]=s[t(408)],o[t(258)]=e[t(209)],o[t(175)]=e[t(274)],o[t(290)]=s[t(462)].width,o.sarDen=s[t(462)][t(192)],o[t(204)]=s[t(323)],o[t(366)]&&o[t(250)]?o.mimeType=t(412)+o.videoCodec+","+o[t(250)]+'"':o.mimeType=t(412)+o[t(204)]+'"',this[t(405)].video[t(361)]({width:s.codecWidth,height:s[t(442)],encTypeCode:n?G[t(338)]:G[t(407)]})}[Vf(394)](){const t=Vf;this[t(197)]()&&this[t(186)].length&&this[t(421)]()}[Vf(390)](){const t=Vf;this[t(197)]()&&this[t(364)][t(410)]&&this._preDoDecode()}[Vf(333)](){const t=Vf;this.isInitSegmentDispatched()&&(this.audio_track_[t(410)]||this.video_track_[t(410)])&&this[t(421)]()}[Vf(377)](t,e){const s=Vf;if(this[s(267)]&&!this[s(269)])return;if(this[s(437)]){let e=new Uint8Array(t.byteLength+this[s(437)][s(249)]);e[s(447)](this.aac_last_incomplete_data_,0),e.set(t,this.aac_last_incomplete_data_.byteLength),t=e}let i,r;if(null!=e&&(r=e/this[s(293)]),this[s(355)][s(323)]===s(342)){if(null==e&&null!=this[s(190)])i=1024/this[s(355)][s(463)]*1e3,r=this.audio_last_sample_pts_+i;else if(null==e)return void this.player[s(174)](this[s(440)],s(217));if(this.aac_last_incomplete_data_&&this.audio_last_sample_pts_){i=1024/this.audio_metadata_[s(463)]*1e3;let t=this.audio_last_sample_pts_+i;Math[s(378)](t-r)>1&&(this[s(405)].debugWarn(this.TAG_NAME,"AAC: Detected pts overlapped, "+(s(200)+t)+"ms, PES pts: "+r+"ms"),r=t)}}let n,o=new Te(t),a=null,h=r;for(;null!=(a=o[s(294)]());){i=1024/a[s(463)]*1e3;const t={codec:s(342),data:a};0==this[s(318)]?(this[s(355)]={codec:s(342),audio_object_type:a[s(402)],sampling_freq_index:a[s(317)],sampling_frequency:a.sampling_frequency,channel_config:a[s(241)]},this.dispatchAudioInitSegment(t)):this[s(471)](t)&&(this.dispatchAudioMediaSegment(),this[s(253)](t)),n=h;let e=Math.floor(h);const r=new Uint8Array(a[s(288)][s(410)]+2);r[s(447)]([175,1],0),r.set(a.data,2);let o={payload:r,length:r.byteLength,pts:e,dts:e,type:D[s(216)]};this[s(364)][s(375)][s(236)](o),this.audio_track_[s(410)]+=r[s(249)],h+=i}o.hasIncompleteData()&&(this[s(437)]=o.getIncompleteData()),n&&(this[s(190)]=n)}parseLOASAACPayload(t,e){const s=Vf;if(this[s(267)]&&!this[s(269)])return;if(this.aac_last_incomplete_data_){let e=new Uint8Array(t.byteLength+this.aac_last_incomplete_data_[s(249)]);e[s(447)](this.aac_last_incomplete_data_,0),e[s(447)](t,this[s(437)][s(249)]),t=e}let i,r;if(null!=e&&(r=e/this[s(293)]),"aac"===this.audio_metadata_[s(323)]){if(null==e&&null!=this[s(190)])i=1024/this.audio_metadata_[s(463)]*1e3,r=this[s(190)]+i;else if(null==e)return void this[s(405)][s(174)](this.TAG_NAME,s(217));if(this[s(437)]&&this[s(190)]){i=1024/this[s(355)][s(463)]*1e3;let t=this[s(190)]+i;Math.abs(t-r)>1&&(this.player[s(174)](this[s(381)],s(310)+(s(200)+t+s(232)+r+"ms")),r=t)}}let n,o=new _e(t),a=null,h=r;for(;null!=(a=o.readNextAACFrame(ys(this[s(386)])?void 0:this[s(386)]));){this[s(386)]=a,i=1024/a.sampling_frequency*1e3;const t={codec:s(342),data:a};0==this.audio_init_segment_dispatched_?(this[s(355)]={codec:s(342),audio_object_type:a.audio_object_type,sampling_freq_index:a[s(317)],sampling_frequency:a.sampling_frequency,channel_config:a[s(241)]},this[s(253)](t)):this[s(471)](t)&&(this[s(390)](),this[s(253)](t)),n=h;let e=Math[s(322)](h);const r=new Uint8Array(a[s(288)].length+2);r[s(447)]([175,1],0),r.set(a.data,2);let o={payload:r,length:r.byteLength,pts:e,dts:e,type:D[s(216)]};this.audio_track_[s(375)][s(236)](o),this[s(364)][s(410)]+=r[s(249)],h+=i}o[s(348)]()&&(this[s(437)]=o[s(457)]()),n&&(this[s(190)]=n)}[Vf(222)](t,e){}[Vf(219)](t,e){}[Vf(345)](t,e){}parseMP3Payload(t,e){const s=Vf;if(this.has_video_&&!this.video_init_segment_dispatched_)return;let i=[44100,48e3,32e3,0],r=[22050,24e3,16e3,0],n=[11025,12e3,8e3,0],o=t[1]>>>3&3,a=(6&t[1])>>1,h=(t[2],(12&t[2])>>>2),c=3!==(t[3]>>>6&3)?2:1,l=0,d=34;switch(s(426),o){case 0:l=n[h];break;case 2:l=r[h];break;case 3:l=i[h]}switch(a){case 1:d=34,s(410);break;case 2:d=33,s(410);break;case 3:d=32,s(410)}const u={};u[s(321)]=d,u.sample_rate=l,u.channel_count=c,u.data=t;const p={codec:s(426),data:u};0==this[s(318)]?(this[s(355)]={codec:"mp3",object_type:d,sample_rate:l,channel_count:c},this[s(253)](p)):this[s(471)](p)&&(this[s(390)](),this[s(253)](p));const f=new Uint8Array(t[s(410)]+1);f[s(447)]([32],0),f[s(447)](t,1);let m={payload:f,length:f[s(249)],pts:e/this[s(293)],dts:e/this[s(293)],type:D[s(216)]};this[s(364)].samples[s(236)](m),this[s(364)][s(410)]+=f[s(249)]}parseG711Payload(t,e,s){const i=Vf;if(this[i(267)]&&!this[i(269)])return;const r={};r[i(203)]=8e3,r[i(229)]=1;const n={codec:i(s?221:205)};0==this[i(318)]?(this[i(355)]={codec:n[i(323)],sample_rate:r.sample_rate,channel_count:r.channel_count},this.dispatchAudioInitSegment(n)):this.detectAudioMetadataChange(n)&&(this[i(390)](),this.dispatchAudioInitSegment(n));const o=new Uint8Array(t[i(410)]+1),a=s?[114]:[130];o[i(447)](a,0),o[i(447)](t,1);let h={payload:o,length:o.byteLength,pts:e/this[i(293)],dts:e/this[i(293)],type:D.audio};this[i(364)][i(375)][i(236)](h),this[i(364)].length+=o.byteLength}[Vf(471)](t){const e=Vf;if(t[e(323)]!==this[e(355)][e(323)])return this[e(405)].debugLog(this[e(440)],e(261)+(this[e(355)].codec+" to ")+t.codec),!0;if(t[e(323)]===e(342)&&"aac"===this.audio_metadata_[e(323)]){const s=t[e(288)];if(s.audio_object_type!==this.audio_metadata_.audio_object_type)return this.player[e(335)](this[e(440)],e(308)+(this[e(355)][e(402)]+e(435)+s.audio_object_type)),!0;if(s[e(317)]!==this[e(355)].sampling_freq_index)return this[e(405)].debugLog(this[e(440)],e(458)+(this[e(355)].sampling_freq_index+" to ")+s[e(317)]),!0;if(s[e(241)]!==this[e(355)][e(241)])return this[e(405)][e(335)](this[e(440)],"AAC: Channel configuration changed from "+(this.audio_metadata_.channel_config+e(435)+s[e(241)])),!0}else if(t.codec===e(388)&&this[e(355)][e(323)]===e(388)){const s=t[e(288)];if(s[e(463)]!==this[e(355)][e(463)])return this[e(405)][e(335)](this[e(440)],"AC3: Sampling Frequency changed from "+(this.audio_metadata_[e(463)]+e(435)+s.sampling_frequency)),!0;if(s[e(202)]!==this[e(355)][e(202)])return this[e(405)][e(335)](this[e(440)],e(178)+(this[e(355)][e(202)]+" to ")+s.bit_stream_identification),!0;if(s.bit_stream_mode!==this.audio_metadata_.bit_stream_mode)return this.player[e(335)](this[e(440)],"AC3: BitStream Mode changed from "+(this.audio_metadata_[e(433)]+e(435)+s[e(433)])),!0;if(s.channel_mode!==this[e(355)].channel_mode)return this.player.debugLog(this[e(440)],e(224)+(this[e(355)][e(392)]+e(435)+s[e(392)])),!0;if(s[e(357)]!==this[e(355)][e(357)])return this[e(405)][e(335)](this[e(440)],"AC3: Low Frequency Effects Channel On changed from "+(this[e(355)][e(357)]+e(435)+s.low_frequency_effects_channel_on)),!0}else if(t[e(323)]===e(443)&&this[e(355)][e(323)]===e(443)){const s=t[e(281)];if(s[e(203)]!==this[e(355)][e(203)])return this.player[e(335)](this[e(440)],"Opus: SamplingFrequencyIndex changed from "+this[e(355)][e(203)]+" to "+s.sample_rate),!0;if(s[e(229)]!==this.audio_metadata_.channel_count)return this[e(405)][e(335)](this[e(440)],e(247)+(this[e(355)][e(229)]+" to ")+s[e(229)]),!0}else if(t[e(323)]===e(426)&&this[e(355)].codec===e(426)){const s=t[e(288)];if(s[e(321)]!==this[e(355)][e(321)])return this.player[e(335)](this.TAG_NAME,e(307)+(this[e(355)][e(321)]+e(435)+s[e(321)])),!0;if(s[e(203)]!==this.audio_metadata_[e(203)])return this[e(405)][e(335)](this[e(440)],e(430)+(this[e(355)].sample_rate+e(435)+s.sample_rate)),!0;if(s[e(229)]!==this[e(355)][e(229)])return this[e(405)][e(335)](this[e(440)],e(429)+(this[e(355)][e(229)]+" to ")+s[e(229)]),!0}return!1}[Vf(253)](t){const e=Vf;let s={};s[e(425)]=e(216),s.id=this[e(364)].id,s[e(385)]=1e3,s[e(411)]=this.duration_;let i="";if(this.audio_metadata_.codec===e(342)){let r=t[e(323)]===e(342)?t[e(288)]:null,n=new jf(r);s.audioSampleRate=n.sampling_rate,s[e(242)]=n[e(302)],s[e(300)]=n[e(229)],s[e(323)]=n[e(251)],s[e(399)]=n[e(266)],s[e(299)]=n[e(299)],s.refSampleDuration=1024/s[e(395)]*s.timescale,i=H[e(305)];const o=ue({profile:this[e(405)]._opt[e(455)]?n[e(321)]:n.original_object_type,sampleRate:s[e(242)],channel:s[e(300)]});this[e(405)].debugLog(this[e(440)],e(346)+n.object_type+e(215)+s.audioSampleRateIndex+e(233)+s[e(300)]),this[e(350)](o,D[e(216)],0,!1,0)}else this[e(355)][e(323)]===e(388)?this[e(405)][e(174)](this[e(440)],e(298)):this[e(355)][e(323)]===e(277)?this[e(405)][e(174)](this.TAG_NAME,e(296)):this[e(355)][e(323)]===e(443)?this[e(405)][e(174)](this[e(440)],"Opus: Unsupported codec"):this.audio_metadata_.codec===e(426)?(s[e(395)]=this[e(355)][e(203)],s[e(300)]=this[e(355)][e(229)],s[e(323)]=e(426),s[e(399)]="mp3",s[e(299)]=void 0,i=H[e(416)]):this[e(355)].codec===e(221)?(s[e(395)]=this.audio_metadata_[e(203)],s[e(300)]=this.audio_metadata_[e(229)],s[e(323)]="g711a",s[e(399)]="g711a",s[e(299)]=void 0,i=H.G711A):this[e(355)].codec===e(205)&&(s[e(395)]=this[e(355)][e(203)],s[e(300)]=this.audio_metadata_[e(229)],s.codec=e(205),s[e(399)]=e(205),s[e(299)]=void 0,i=H[e(177)]);0==this[e(318)]&&this[e(405)][e(335)](this.TAG_NAME,e(228)+s[e(323)]),this[e(318)]=!0,this.video_metadata_changed_=!1,i&&this[e(405)][e(216)][e(374)]({encTypeCode:i,channels:s.channelCount,sampleRate:s.audioSampleRate})}[Vf(270)](t,e,s){const i=Vf;let r={};r.pid=t,r[i(436)]=e,r[i(191)]=s}[Vf(207)](t,e,s,i,r){const n=Vf;let o=new Ff;if(o[n(181)]=i,o[n(257)]=r,o[n(245)]=t.byteLength,o[n(288)]=t,null!=e){let t=Math[n(322)](e/this[n(293)]);o[n(438)]=t}else o[n(359)]=this[n(218)]();if(null!=s){let t=Math[n(322)](s/this[n(293)]);o[n(397)]=t}}[Vf(428)](t,e,s,i,r){const n=Vf;this[n(405)][n(335)](this[n(440)],n(259)+i+", pts="+e+n(461)+s+n(445)+r)}[Vf(199)](t,e,s,i,r){const n=Vf;this[n(405)][n(335)](this.TAG_NAME,n(391)+i+n(220)+e+n(461)+s+", stream_id="+r)}[Vf(291)](t,e,s){const i=Vf;this.player.debugLog(this[i(440)],i(286)+e+i(445)+s)}[Vf(214)](t,e,s,i,r){const n=Vf;this.player[n(335)](this[n(440)],n(382)+i+n(220)+e+n(461)+s+", stream_id="+r)}[Vf(218)](){const t=Vf;if(null!=this[t(190)])return Math[t(322)](this[t(190)]);if(null!=this.last_pcr_){return Math[t(322)](this[t(309)]/300/this[t(293)])}}_preDoDecode(){const t=Vf,e=this[t(186)],s=this[t(364)];let i=e.samples;this.correctSamplePts(e),this[t(282)](s),s[t(375)][t(410)]>0&&(i=e[t(375)][t(187)](s[t(375)]),i=i[t(365)](((e,s)=>{const i=t;return e[i(397)]-s[i(397)]}))),i[t(265)]((e=>{const s=t,i=new Uint8Array(e[s(235)]);delete e[s(235)],e[s(425)]===D[s(467)]?this[s(470)]({...e,payload:i}):e[s(425)]===D[s(216)]&&this[s(324)]({...e,payload:i})})),e[t(375)]=[],e.length=0,s.samples=[],s.length=0}[Vf(470)](t){const e=Vf,s=new Uint8Array(t[e(235)]);let i=null;i=t[e(183)]?Bh(s,t.isIFrame):oh(s,t.isIFrame),this[e(405)][e(325)]({dts:t.dts,vbps:i[e(249)]}),t[e(384)]&&this[e(313)](t.dts);let r=this[e(196)](i,t[e(384)]);this[e(350)](r,D[e(467)],t[e(397)],t[e(384)],t[e(314)])}[Vf(324)](t){const e=Vf,s=new Uint8Array(t.payload);this.player.updateStats({abps:s.byteLength});let i=this[e(472)](s);this._doDecodeByTs(i,D[e(216)],t.dts,!1,0)}[Vf(367)](){const t=Vf;return this[t(254)]&&this[t(254)][t(249)]||0}[Vf(376)](t){const e=Vf;let s=33554432*t[6]+131072*t[7]+512*t[8]+2*t[9]+(128&t[10])/128+this[e(396)];return s+4294967296<this[e(451)]&&(s+=8589934592,this[e(396)]+=8589934592),this.last_pcr_base_=s,s}_getTimestamp(t,e){const s=Vf;let i=536870912*(14&t[e])+4194304*(255&t[e+1])+16384*(254&t[e+2])+128*(255&t[e+3])+(254&t[e+4])/2+this[s(396)];return i+4294967296<this.last_pcr_base_&&(i+=8589934592),i}}const Hf=Kf;function Kf(t,e){const s=Qf();return(Kf=function(t,e){return s[t-=130]})(t,e)}function Qf(){const t=["195685DKaeFc","19249800UEovrN","nakedFlow","23312RlMOQt","getLoaderFactory","webTransport","353qZBvhk","fmp4","1061583lEpRyq","5037417xrzcun","52vZfXzm","m7s","mpeg4","flv","_opt","4030PgMtbS","679iUhaPB","1763694hxwHOK","isPlayVod"];return(Qf=function(){return t})()}!function(t,e){const s=Kf,i=t();for(;;)try{if(367937===parseInt(s(142))/1*(-parseInt(s(132))/2)+-parseInt(s(144))/3+parseInt(s(146))/4*(-parseInt(s(136))/5)+parseInt(s(134))/6+parseInt(s(133))/7*(parseInt(s(139))/8)+-parseInt(s(145))/9+parseInt(s(137))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Qf);class Yf{constructor(t){return new(Yf.getLoaderFactory(t))(t)}static[Hf(140)](t){const e=Hf,s=t[e(131)].demuxType;return wi()?lf:s===d[e(147)]?Qp:s===d[e(130)]||t.isWebrtcH265()?Gp:s===d[e(141)]?Xp:s===d[e(138)]?of:s===d[e(143)]&&ci(t[e(135)]())?Ef:s===d[e(148)]?_f:s===d.ts?Wf:lf}}function qf(){var t=["906998lkWGDa","435927qFgMzS","2435100sTknzo","2126580nEznVz","572152qxzdtX","704515KNMpDB","16mmddzg","exports","default","unwrapExports","__esModule","defineProperty","125500RGIbLn"];return(qf=function(){return t})()}var Jf=Xf;function Xf(t,e){var s=qf();return(Xf=function(t,e){return s[t-=399]})(t,e)}!function(t,e){for(var s=Xf,i=t();;)try{if(361270===-parseInt(s(411))/1+parseInt(s(399))/2+-parseInt(s(400))/3+-parseInt(s(402))/4+parseInt(s(404))/5+parseInt(s(401))/6+-parseInt(s(403))/7*(-parseInt(s(405))/8))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(qf);var Zf=Zt((function(t){var e=Xf;t[e(406)]=function(t,e,s){return e in t?Object[Xf(410)](t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t},t[e(406)][e(409)]=!0,t[e(406)][e(407)]=t[e(406)]})),$f=$t[Jf(408)](Zf);function tm(){const t=["112VmADiD","3998848cTEEJV","527683rMNSoM","151735UyRXwA","12835280MCgFny","length","117878YRIDSY","set","Invalid MP3 packet, first byte != 0xFF ","Invalid MP3 packet, header missing!","buffer","sample_rate","354987gEniKw","792888IkYfUR","data","error","18LpJRex","9UuHGBr","object_type"];return(tm=function(){return t})()}function em(t,e){const s=tm();return(em=function(t,e){return s[t-=155]})(t,e)}!function(t,e){const s=em,i=t();for(;;)try{if(377025===-parseInt(s(162))/1+parseInt(s(166))/2+parseInt(s(158))/3*(parseInt(s(173))/4)+-parseInt(s(163))/5*(-parseInt(s(157))/6)+-parseInt(s(161))/7+-parseInt(s(160))/8*(parseInt(s(172))/9)+parseInt(s(164))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(tm);const sm=[44100,48e3,32e3,0],im=[22050,24e3,16e3,0],rm=[11025,12e3,8e3,0],nm=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],om=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],am=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1];function hm(t){const e=em;if(t[e(165)]<4)return void console[e(156)](e(169));let s=new Uint8Array(t[e(170)]),i=null;if(255!==s[0])return void console[e(156)](e(168));let r=s[1]>>>3&3,n=(6&s[1])>>1,o=(240&s[2])>>>4,a=(12&s[2])>>>2,h=3!==(s[3]>>>6&3)?2:1,c=0,l=0;switch(r){case 0:c=rm[a];break;case 2:c=im[a];break;case 3:c=sm[a]}switch(n){case 1:o<am[e(165)]&&(l=am[o]);break;case 2:o<om[e(165)]&&(l=om[o]);break;case 3:o<nm[e(165)]&&(l=nm[o])}return i={bitRate:l,sampleRate:c,channelCount:h,codec:"mp3",originalCodec:"mp3",audioType:"mp3"},i}function cm(t,e){const s=lm();return(cm=function(t,e){return s[t-=337]})(t,e)}function lm(){const t=["3879dMVvoX","4680NvgVoo","OpusHead","21UHJioZ","6UurGpB","335gUzJgQ","opus","byteLength","byteOffset","60290BYHMCV","4116882IVOvzX","970088ffQtGl","length","15388lxCvFy","44926KQeFbm","buffer","fromCodePoint","73584HdlCVy","getUint32","Invalid Opus MagicSignature"];return(lm=function(){return t})()}function dm(t,e){const s=fm();return(dm=function(t,e){return s[t-=102]})(t,e)}!function(t,e){const s=cm,i=t();for(;;)try{if(134828===parseInt(s(337))/1+-parseInt(s(352))/2*(parseInt(s(346))/3)+-parseInt(s(356))/4*(-parseInt(s(348))/5)+-parseInt(s(347))/6*(parseInt(s(354))/7)+parseInt(s(340))/8+-parseInt(s(343))/9*(parseInt(s(344))/10)+parseInt(s(353))/11)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(lm);const um=dm;!function(t,e){const s=dm,i=t();for(;;)try{if(148813===-parseInt(s(261))/1+-parseInt(s(235))/2+parseInt(s(237))/3*(-parseInt(s(256))/4)+-parseInt(s(198))/5+parseInt(s(157))/6+parseInt(s(132))/7+-parseInt(s(188))/8*(-parseInt(s(173))/9))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(fm);class pm extends Bi{constructor(t){const e=dm;super(),this[e(228)]=t,this[e(160)]=e(266),this[e(145)]=!1,this.hasAudioInit=!1,this[e(231)]=!!ci(t._opt.checkFirstIFrame),this[e(240)]=!1,this.isAudioInitInfo=!1,this.prevTimestamp=null,this[e(202)]=null,this.prevDts=null,this[e(133)]=null,this[e(208)]=null,this[e(125)]=!1,this[e(143)]=!1,this[e(212)]=!1,this[e(179)]=!1,this.isWidthOrHeightChanged=!1,this[e(155)]=null,this[e(221)]=null,this[e(129)](),this[e(246)]()&&this[e(220)](),t[e(233)](this[e(160)],e(250))}async[um(200)](){const t=um;if(this._clearAudioNoDataCheckTimeout(),this._clearAudioSourceBufferCheckTimeout(),this[t(133)]){if(this[t(145)])try{await this.decoder.flush()}catch(t){}ci(this[t(183)]())&&this.decoder[t(158)](),this[t(133)]=null}if(this[t(208)]){if(this[t(201)])try{await this[t(208)][t(149)]()}catch(t){}ci(this[t(243)]())&&this[t(208)][t(158)](),this[t(208)]=null}this[t(166)]=null,this[t(202)]=null,this[t(227)]=null,this.hasInit=!1,this[t(240)]=!1,this[t(125)]=!1,this[t(212)]=!1,this[t(143)]=!1,this[t(179)]=!1,this.isDecodeFirstIIframe=!1,this[t(252)]=!1,this[t(150)](),this[t(228)][t(233)](this[t(160)],"destroy")}[um(129)](){const t=this;this.decoder=new VideoDecoder({output(e){t[dm(139)](e)},error(e){t[dm(138)](e)}})}[um(220)](){const t=this;this.decoderAudio=new AudioDecoder({output(e){t.handleDecodeAudio(e)},error(e){t[dm(216)](e)}})}[um(246)](){const t=um;return this[t(228)][t(244)].hasAudio&&this.player[t(244)][t(219)]}handleDecode(t){const e=um;if(this[e(228)][e(267)]())return this.player[e(233)](this[e(160)],"handleDecode() player is destroyed and return"),void qs(t);if(ci(this[e(231)]))return this[e(228)][e(233)](this[e(160)],e(264)),void qs(t);if(this[e(246)]()&&ci(this[e(201)]))return null===this[e(155)]&&(this[e(155)]=setTimeout((()=>{const t=e;this[t(163)](),this.player[t(105)](U.webcodecsAudioInitTimeout)}),1e3)),void qs(t);if(this[e(228)][e(136)]())this[e(228)][e(140)]({dfps:!0}),!this[e(228)][e(248)].videoStart&&(this.player[e(248)][e(126)]=je(),this[e(228)][e(186)]()),this[e(228)].video[e(152)]({videoFrame:t,ts:t.timestamp}),this[e(228)][e(146)]();else if(this[e(228)][e(203)]())this.player[e(140)]({dfps:!0}),ci(this.player[e(234)])?(this.player[e(161)][e(107)]&&this.player.playback[e(120)](),this[e(228)][e(161)][e(270)]?this[e(228)][e(137)][e(113)]({videoFrame:t,ts:t[e(189)]}):this[e(228)].video[e(116)]({videoFrame:t,ts:t[e(189)]})):this.player[e(161)][e(165)]()&&this.player[e(161)][e(270)]&&this.player[e(137)][e(113)]({videoFrame:t,ts:t[e(189)]});else if(this.player.isPlayVod())if(this[e(228)][e(144)].isSeeking()){const s=this[e(228)][e(144)][e(217)];Math.abs(s-t.timestamp)<500&&(this[e(228)][e(144)][e(187)](),this[e(228)][e(140)]({dfps:!0}),this[e(228)].video.render$2({videoFrame:t,ts:t[e(189)]}))}else this[e(228)][e(140)]({dfps:!0}),this.player.video[e(116)]({videoFrame:t,ts:t[e(189)]})}[um(138)](t){const e=um;this[e(228)][e(174)](this[e(160)],e(123),t[e(262)],t);const s=t[e(257)]();-1!==s[e(205)](dt[e(253)])?this[e(228)][e(178)](U[e(223)],s):-1!==s[e(205)](dt[e(110)])||-1!==s.indexOf(dt[e(207)])||-1!==s.indexOf(dt[e(230)])?this[e(228)][e(178)](U[e(111)],s):-1!==s.indexOf(dt[e(148)])&&this[e(228)][e(178)](U[e(171)],s)}handleDecodeAudio(t){const e=um;return this.player[e(267)]()?(this[e(228)].debugLog(this[e(160)],e(159)),void Js(t)):ci(this[e(231)])?(this[e(228)][e(233)](this.TAG_NAME,e(122)),void Js(t)):void(this[e(228)].isPlayer()?this[e(228)][e(104)][e(130)](t,t.timestamp):this[e(228)][e(203)]()?this[e(228)][e(104)][e(130)](t,t[e(189)]):this.player[e(112)]()&&(this[e(228)][e(144)][e(181)]()?Js(t):this[e(228)][e(104)][e(130)](t,t.timestamp)))}[um(216)](t){const e=um;this.player[e(174)](this[e(160)],e(121),t[e(262)],t)}[um(247)](t,e,s,i){const r=um;if(this.player)if(this[r(228)][r(267)]())this[r(228)][r(106)](this[r(160)],r(102));else if(this[r(145)])if(!this[r(231)]&&s&&(this[r(231)]=!0),this[r(231)]){if(this[r(183)]())return void this.player[r(106)](this[r(160)],r(225));if(s&&0===t[1]){const e=15&t[0];let s={};if(e===G[r(214)]){s=sh(t[r(117)](5))}else e===G[r(168)]&&(s=Dh(t));const i=this[r(228)][r(137)][r(103)];i&&i[r(196)]&&i.height&&s&&s[r(222)]&&s.codecHeight&&(s[r(222)]!==i[r(196)]||s.codecHeight!==i[r(218)])&&(this[r(228)][r(106)](this[r(160)],r(177)+i[r(196)]+r(108)+i[r(218)]+",\n new width is "+s[r(222)]+r(269)+s.codecHeight+r(153)),this[r(252)]=!0,this[r(228)].emitError(U.wcsWidthOrHeightChange,"width "+i[r(196)]+"->"+i[r(218)]+" height "+s[r(222)]+"->"+s[r(190)]))}if(this.isWidthOrHeightChanged)return void this[r(228)][r(106)](this[r(160)],r(254));if(ai(t))return void this[r(228)].debugLog(this[r(160)],r(271));if(t[r(119)]<12)return void this[r(228)][r(106)](this[r(160)],r(242)+t.byteLength+r(211));let i=!1,n=(new Date)[r(195)]();!this[r(166)]&&(this[r(166)]=n,i=!0);const o=n-this[r(166)];this[r(202)]=o,o>500&&!i&&this.player[r(136)]()&&this[r(228)][r(106)](this.TAG_NAME,"decodeVideo diff time is ",o);const a=t[r(117)](5),h=new EncodedVideoChunk({data:a,timestamp:e,type:s?Z[r(151)]:Z[r(185)]});this[r(228)][r(105)](M[r(182)],e);try{this.decoder[r(169)](h)}catch(t){this.player[r(174)](this[r(160)],r(191),t);const e=t[r(257)]();(-1!==e[r(205)](dt[r(251)])||-1!==e[r(205)](dt.canNotDecodeClosedCodec))&&this[r(228)][r(178)](U[r(111)],e)}this[r(166)]=(new Date)[r(195)]()}else this[r(228)].debugLog(this[r(160)],r(147));else if(s&&t[1]===ft){const e=15&t[0];if(this[r(228)][r(137)][r(255)]({encTypeCode:e}),e===G.h265&&!fs()){const t=ts();return this[r(228)].debugWarn(this[r(160)],r(206),t.type,t[r(259)]),void this[r(228)][r(178)](U[r(171)])}!this[r(228)][r(248)][r(154)]&&(this.player[r(248)][r(154)]=je());let s=null,i=null;const n=t[r(117)](5);if(e===G[r(214)]?(i=sh(n),s={codec:i.codec,description:n}):e===G[r(168)]&&(i=Lh(n),s={codec:i[r(131)],description:n}),!s||s&&!s[r(131)]||i&&0===i[r(222)]&&0===i.codecHeight)return this[r(228)].debugWarn(this[r(160)],"decodeVideo and webcodecs configure is",JSON[r(167)](s)),void this[r(228)].emitError(U.webcodecsDecodeConfigureError,r(224));s[r(232)]=i.codecHeight,s[r(210)]=i[r(222)],!this[r(240)]&&(this[r(228)][r(233)](this[r(160)],"updateVideoInfo: "+i[r(222)]+","+i[r(190)]),this.player[r(137)].updateVideoInfo({width:i[r(222)],height:i[r(190)]}),this[r(228)][r(137)][r(265)](),this[r(240)]=!0),this[r(228)][r(245)]&&this[r(228)]._opt[r(170)]===l[r(128)]&&this[r(228)][r(245)][r(164)](t,e),this[r(228)][r(137)][r(226)](),this[r(228)][r(233)](this.TAG_NAME,"decoder.configure() and codec is "+s[r(131)]);try{s.optimizeForLatency=!0,s[r(115)]="prefer-hardware",this[r(133)].configure(s),this[r(145)]=!0}catch(t){this.player[r(174)](this[r(160)],r(175),t[r(262)],t);const e=t[r(257)]();-1!==e[r(205)](dt[r(148)])?this[r(228)].emitError(U[r(171)],e):this.player[r(178)](U.webcodecsDecodeConfigureError,e)}}else this[r(228)].debugWarn(this[r(160)],r(215)+s+" , payload is "+t[1]+r(263))}[um(213)](t,e){const s=um;if(this[s(228)])if(this[s(228)].isDestroyedOrClosed())this[s(228)][s(106)](this.TAG_NAME,s(162));else if(this.hasAudioInit){if(this[s(125)]&&pe(t))return void this[s(228)][s(233)](this[s(160)],s(238));if(this.isOpus&&ci(1===t[1]))return void this.player[s(233)](this.TAG_NAME,"decodeAudio and has already initialized and payload is not opus comment packets and type is "+t[1]+s(263));if(this[s(199)](),this[s(231)]){if(this[s(243)]())return void this[s(228)][s(106)](this[s(160)],"AudioDecoder isDecodeStateClosed true");const i=this[s(125)]||this[s(143)]?t.slice(2):t[s(117)](1),r=i[s(109)]/this.player[s(104)].audioInfo[s(172)]*1e3,n=new EncodedAudioChunk({type:s(151),data:i,timestamp:e,duration:parseInt(r,10)});try{this.decoderAudio[s(169)](n)}catch(t){this[s(228)].debugError(this[s(160)],s(141),t),t[s(257)]()}}}else{const e=t[0]>>4&15,i=t[0]>>1&1,r=e===H[s(114)],n=e===H[s(258)],o=e===H[s(209)],a=e===H[s(249)],h=e===H[s(236)];let c="";c=n||h?i?16:8:0===i?8:16;const d={codec:"",numberOfChannels:"",sampleRate:""};let u=null;if(n||r){let e=null;if(pe(t)){const i=t.slice(2);e=be(i),e&&(d[s(131)]=e.originalCodec,d.numberOfChannels=e[s(124)],d.sampleRate=e[s(172)]),u=i,this.isAAC=n}else if(r){e=hm(t[s(117)](1)),e&&(d[s(131)]=Ft[s(135)],d[s(192)]=e[s(124)],d[s(172)]=e.sampleRate,this.isMp3=!0)}else if(h&&0===t[1]){e=function(t){const e=cm;if(!t[e(355)])return;const s=new DataView(t[e(338)],t[e(351)],t[e(350)]);let i="";for(let s=0;s<8;s++)i+=String[e(339)](t[s]);if(i!==e(345))throw new Error(e(342));const r=t[9],n=s[e(341)](12,!0),o=s.getInt16(16,!0);if(!n)return{};const a=e(349);return{outputGain:o,sampleRate:n,channelCount:r,config:new Uint8Array(t[e(338)],t[e(351)]+8,t[e(350)]-8),codec:"opus",originCodec:a}}(t[s(117)](2)),e&&(d[s(131)]=Ft[s(127)],d[s(192)]=e.channelCount,d[s(172)]=e[s(172)]),this[s(143)]=!0}}else(a||o)&&(d.codec=o?Ft[s(241)]:Ft[s(197)],d[s(192)]=1,d[s(172)]=8e3,this.isG711=!0);if(d[s(131)]&&d.numberOfChannels&&d[s(172)]){!this.isAudioInitInfo&&(this.player[s(104)][s(180)]({encTypeCode:e,channels:d[s(192)],sampleRate:d[s(172)],depth:c}),this[s(176)]=!0),this.player[s(245)]&&this[s(228)][s(244)][s(170)]===l[s(128)]&&u&&this[s(228)][s(245)].initAudioAacExtraData(u),this[s(228)][s(233)](this.TAG_NAME,s(194)+d.codec);try{this[s(208)][s(268)](d),this[s(163)](),this[s(201)]=!0,null===this[s(221)]&&(this[s(221)]=setTimeout((()=>{const t=s;this[t(199)](),this[t(228)][t(105)](U.webcodecsAudioNoDataTimeout)}),1e3))}catch(t){this[s(228)][s(174)](this[s(160)],s(156),t[s(262)],t),t[s(257)]()}}}}[um(134)](t){}[um(163)](){const t=um;this[t(155)]&&(clearTimeout(this[t(155)]),this.audioSourceBufferCheckTimeout=null)}[um(199)](){const t=um;this[t(221)]&&(clearTimeout(this[t(221)]),this[t(221)]=null)}[um(184)](){return this[um(202)]}[um(183)](){const t=um;return"closed"===this[t(133)][t(229)]}[um(118)](){const t=um;return this[t(133)][t(229)]===t(142)}[um(260)](){const t=um;return this[t(133)].state===t(239)}isAudioDecodeStateClosed(){const t=um;return this[t(208)].state===t(204)}isAudioDecodeStateConfigured(){const t=um;return this.decoderAudio.state===t(142)}[um(193)](){const t=um;return this[t(208)][t(229)]===t(239)}}function fm(){const t=["MP3","hardwareAcceleration","render$2","slice","isDecodeStateConfigured","byteLength","increaseLocalTimestamp","AudioDecoder handleError:","handleDecodeAudio() isDecodeFirstIIframe is false and return","VideoDecoder handleError:","channelCount","isAAC","videoStart","opus","mp4","initDecoder","play","codec","351253kNBErf","decoder","updateMediaSourceDuration","mp3","isPlayer","video","handleError","handleDecode","updateStats","AudioDecoder","configured","isOpus","playVod","hasInit","handleRender","VideoDecoder first frame is not iFrame","hevcDecodingIsNotSupported","flush","off","key","render",",\n and emit change event","decodeStart","audioSourceBufferCheckTimeout","configure audio error","1052742qnZgmf","close","handleDecodeAudio() player is destroyed","TAG_NAME","playback","decodeAudio() player is destroyed","_clearAudioSourceBufferCheckTimeout","initMetaData","isPlaybackPauseNotClearCacheAndCacheBeforeDecode","prevTimestamp","stringify","h265","decode","recordType","webcodecsH265NotSupport","sampleRate","420759IoMLGy","debugError","configure error","isAudioInitInfo","decodeVideo: video width or height is changed,\n old width is ","emitError","isG711","updateAudioInfo","isSeeking","timeUpdate","isDecodeStateClosed","getDecodeDiffTimes","delta","handlePlayToRenderTimes","removeSeekingTimestamp","16iovivQ","timestamp","codecHeight","VideoDecoder","numberOfChannels","isAudioDecodeStateUnConfigured","decoderAudio.configure() and codec is ","getTime","width","ulaw","196830kCoRvc","_clearAudioNoDataCheckTimeout","destroy","hasAudioInit","decodeDiffTimestamp","isPlayback","closed","indexOf","WebcodecsDecoder not support hevc decode","decodingError","decoderAudio","ALAW","codedWidth"," and return","isMp3","decodeAudio","h264","decodeVideo has not init , isIframe is ","handleErrorAudio","seekingTimestamp","height","wcsDecodeAudio","initDecoderAudio","audioSourceNoDataCheckTimeout","codecWidth","webcodecsUnsupportedConfigurationError","configure or configure.code is null","VideoDecoder isDecodeStateClosed true","bindMediaStream","prevDts","player","state","decoderError","isDecodeFirstIIframe","codedHeight","debugLog","playbackPause","41536GrzjGY","OPUS","3iOrZeV","decodeAudio and has already initialized and payload is aac codec packet so drop this frame","unconfigured","isInitInfo","alaw","decodeVideo and payload is too small , payload length is ","isAudioDecodeStateClosed","_opt","recorder","needInitAudio","decodeVideo","_times","MULAW","init","keyframeIsRequiredError","isWidthOrHeightChanged","unsupportedConfiguration","decodeVideo: video width or height is changed, and return","updateVideoInfo","149008SKXaOs","toString","AAC","version","isDecodeStateUnConfigured","72939WVbKyA","code"," so drop this frame","handleDecode() isDecodeFirstIIframe is false and return","initCanvasViewSize","Webcodecs","isDestroyedOrClosed","configure",", new height is ","isUseFpsRender","decodeVideo and payload is video sequence header so drop this frame","decodeVideo() player is destroyed","videoInfo","audio","emit","debugWarn","isUseLocalCalculateTime",", old height is ","length","decoderFailure","webcodecsDecodeError","isPlayVod","pushData"];return(fm=function(){return t})()}function mm(){const t=["11555072iOViMv","1829752rveyVW","544311ZtrnhV","keys","3417280zPMtni",'\n <i class="jb-pro-icon jb-pro-icon-',"7954272tyLbyX","\n ","length","7337704WFNYNX","12299273WAWKUM","</span></span>","forEach","8fedCxT"];return(mm=function(){return t})()}function gm(t,e){const s=mm();return(gm=function(t,e){return s[t-=123]})(t,e)}function Am(t,e){const s=ym();return(Am=function(t,e){return s[t-=394]})(t,e)}function ym(){const t=['<div class="jb-pro-controls-item-wrap"><div class="jb-pro-controls-item jb-pro-occlusion">',".jb-pro-quality-menu-list",".jb-pro-scale-icon-text",".jb-pro-progress-hover","\n ","$volume",".jb-pro-controls-left",".jb-pro-volume-panel",'<div class="jb-pro-controls-item jb-pro-speed"></div>',".jb-pro-ptz-bg-active","\n\n ","$screenshot","29768phZXUB",'\n <div class="jb-pro-performance-panel"></div>\n <div class="jb-pro-contextmenus"></div>\n <div class="jb-pro-tips-message">\n <div class="jb-pro-tips-message-close">\n <div class="jb-pro-tips-message-close-icon"></div>\n </div>\n <div class="jb-pro-tips-message-content"></div>\n </div>\n ',"2198scPWbq","$volumePanelText","playType","$loadingBgImage","$playbackProgressCache",'</span>\n </span>\n </div>\n <div class="jb-pro-ptz-narrow jb-pro-ptz-icon">\n <i class="jb-pro-ptz-narrow-icon"></i>\n <span class="icon-title-tips">\n <span class="icon-title">',"showControl","$objectDetect","$playbackProgressTip",".jb-pro-ptz-narrow","querySelector","background","apertureFar",'\n <div class="jb-pro-ptz-arrow jb-pro-ptz-arrow-left-up" data-arrow="left-up"></div>\n <div class="jb-pro-ptz-arrow jb-pro-ptz-arrow-right-up" data-arrow="right-up"></div>\n <div class="jb-pro-ptz-arrow jb-pro-ptz-arrow-left-down" data-arrow="left-down"></div>\n <div class="jb-pro-ptz-arrow jb-pro-ptz-arrow-right-down" data-arrow="right-down"></div>\n ','\n <div class="jb-pro-ptz-btn">\n <div class="jb-pro-ptz-cruise-play jb-pro-ptz-icon">\n <i class="jb-pro-ptz-focus-icon"></i>\n <span class="icon-title-tips">\n <span class="icon-title">',"fullscreenExit",'\n <div class="jb-pro-controls-right">\n ',"i18n",".jb-pro-controls-playback-time-inner","$volumeOff","$recording","$controlsInner",".jb-pro-zoom-narrow","zoomStop","showRateBtn","simple","aiOcclusion","focusFar","performance",".jb-pro-ptz-cruise-play","</div>\n </div>\n ","$zoomStop2","$occlusionDetect",".jb-pro-zoom-stop",".jb-pro-ptz-active",".jb-pro-playback-narrow","$recordStop","insertAdjacentHTML","$objectDetectActive",".jb-pro-record",".jb-pro-ptz","$playbackTimeListOne","$pause","$playbackProgressPlayed","showPrecisionBtn","$playbackExpand",".jb-pro-occlusion-active","ptzWiperShow","screenshot","$scaleMenuList","narrow","playbackConfig","fogOpen",'\n <div class="jb-pro-control-progress-simple">\n <div class="jb-pro-control-progress-inner">\n <div class="jb-pro-progress-hover"></div>\n <div class="jb-pro-progress-cache"></div>\n <div class="jb-pro-progress-played"></div>\n <div class="jb-pro-progress-indicator"></div>\n <div class="jb-pro-progress-tip">00:00</div>\n </div>\n </div>\n ',".jb-pro-loading-text","ptzCruiseShow",".jb-pro-ptz-fog-close","wiperClose",".jb-pro-quality-menu",".jb-pro-controls-playback-current-time-text","3045279LmIXEj",".jb-pro-recording-stop","$logSave",'</div><div class="jb-pro-controls-item jb-pro-zoom-stop">',"$scaleMenu","$volumeOn","classList",".jb-pro-recording-time",'</div>\n <div class="jb-pro-zoom-stop2">',"$ptzCruisePlay","</div>\n </div>\n ","$playbackProgressTime","$close","$playbackProgressIndicator","defineProperty","_opt","controlType",'</span>\n </span>\n </div>\n <div class="jb-pro-ptz-aperture-near jb-pro-ptz-icon">\n <i class="jb-pro-ptz-aperture-icon"></i>\n <span class="icon-title-tips">\n <span class="icon-title">',"wiperOpen",".jb-pro-playback-control-time","$record",".jb-pro-recording","hasVideo","audio",'<div class="jb-pro-controls-item-wrap"><div class="jb-pro-controls-item jb-pro-play">',".jb-pro-play",".jb-pro-performance-active","$zoom","quality","faceActive",'</div><div class="jb-pro-controls-item jb-pro-pause">',".jb-pro-close","play","recordStop","expandMinus",'</div><div class="jb-pro-controls-item jb-pro-object-active">','<div class="jb-pro-controls-item-wrap"><div class="jb-pro-controls-item jb-pro-performance">',"loading",".jb-pro-zoom-stop2","$recordingStop","$volumePanel",".jb-pro-ptz-focus-near","aiFace",".jb-pro-controls-playback-btns","$ptzExpand","\n ",".jb-pro-controls-bottom","$ptzActive","aiObject","ptzFocusShow","ptzZoomShow",'\n <div class="jb-pro-zoom-controls">\n <div class="jb-pro-zoom-narrow">',"8772190RBZmXH",".jb-pro-ptz-controls",'\n <div class="jb-pro-controls">\n <div class="jb-pro-controls-bottom">\n <div class="jb-pro-controls-left">\n ',".jb-pro-controls-item-html",'</div><div class="jb-pro-controls-item jb-pro-fullscreen-exit">',".jb-pro-fullscreen","21814661SejmbV",'</div><div class="jb-pro-controls-item jb-pro-ptz-active">',"$controlsRight",".jb-pro-speed-menu",".jb-pro-playback-expand","loadingIcon",'<div class="jb-pro-controls-item-wrap"><div class="jb-pro-controls-item jb-pro-object">',"scale","$playbackTimeListSecond",'\n <div class="jb-pro-loading">\n ','</div>\n <div class="jb-pro-zoom-tips">',"$occlusionDetectActive",".jb-pro-tips-message-close",".jb-pro-ptz-wiper-open","$ptzFogClose","ptz","playVodConfig",'\n <div class="jb-pro-controls-playback-btns">\n <div class="jb-pro-controls-item jb-pro-playback-narrow">',"1726413zUshUq",".jb-pro-ptz-cruise-pause",'<div class="jb-pro-controls-item-wrap"><div class="jb-pro-controls-item jb-pro-fullscreen">','<div class="jb-pro-poster" style="background-image: url(',"controlHtml","$fullscreenExit","zoom",'\n <div class="jb-pro-controls-item-wrap">\n <div class="jb-pro-controls-item jb-pro-scale-menu">\n <div class="jb-pro-scale-icon-text"></div>\n <div class="jb-pro-scale-menu-list"></div>\n </div>\n </div>\n ',"$zoomStop",".jb-pro-record-stop",'\n <div class="jb-pro-ptz-btn">\n <div class="jb-pro-ptz-fog-open jb-pro-ptz-icon">\n <i class="jb-pro-ptz-focus-icon"></i>\n <span class="icon-title-tips">\n <span class="icon-title">',"$controls",".jb-pro-loading-bg-image","$ptz","face","$playbackCurrentTime","$ptzControl","$qualityText",'<div class="jb-pro-controls-item-wrap"><div class="jb-pro-controls-item jb-pro-close">',"\n ","</span>\n </span>\n </div>\n </div>\n ",".jb-pro-volume-panel-wrap","$volumePanelWrap","$poster",".jb-pro-object-active",".jb-pro-tips-message","fogClose","hasControl","$playbackTime","$ptzWiperOpen",'</span>\n </span>\n </div>\n <div class="jb-pro-ptz-wiper-close jb-pro-ptz-icon">\n <i class="jb-pro-ptz-focus-icon"></i>\n <span class="icon-title-tips">\n <span class="icon-title">',".jb-pro-volume",'</div>\n </div>\n <div class="jb-pro-recording">\n <div class="jb-pro-recording-red-point"></div>\n <div class="jb-pro-recording-time">00:00:00</div>\n <div class="jb-pro-recording-stop">','\n <div class="jb-pro-loading-text">',".jb-pro-controls-playback-time-list","ptzFogShow","$speedText",".jb-pro-play-big",".jb-pro-ptz-expand",".jb-pro-volume-panel-handle","$playbackNarrow","\n ","ptzMoreArrowShow",'</div>\n <div class="jb-pro-zoom-expand">',"$playbackTimeInner","focusNear","9SYJZhi","add","</div>\n </div>\n ",".jb-pro-icon-audio",".jb-pro-progress-tip",".jb-pro-zoom","$play",'\n <div class="jb-pro-ptz-btn">\n <div class="jb-pro-ptz-wiper-open jb-pro-ptz-icon">\n <i class="jb-pro-ptz-focus-icon"></i>\n <span class="icon-title-tips">\n <span class="icon-title">',"\n </div>\n </div>\n </div>\n ",".jb-pro-volume-panel-text",".jb-pro-face",".jb-pro-control-progress-simple",".jb-pro-object","$container",".jb-pro-controls-playback-current-time","$scaleText",".jb-pro-controls-playback-time-scroll","$playBig","fullscreen",".jb-pro-performance",'\n <div class="jb-pro-controls-center">\n <div class="jb-pro-controls-playback-time">\n <div class="jb-pro-controls-playback-time-inner">\n <div class="jb-pro-controls-playback-time-scroll">\n <div class="jb-pro-controls-playback-time-list">\n <div class="jb-pro-playback-time-day">\n <div class="jb-pro-playback-time-one-wrap"></div>\n <div class="jb-pro-playback-time-second-wrap"></div>\n </div>\n </div>\n <div class="jb-pro-controls-playback-current-time">\n <div class="jb-pro-controls-playback-current-time-text">00:00:00</div>\n </div>\n </div>\n </div>\n </div>\n ',".jb-pro-icon-mute","getI18n","\n ","close","showBandwidth","expandPlus","cruisePlay","</div></div>",' <div class="jb-pro-controls-item-wrap"><div class="jb-pro-controls-item jb-pro-record">',"playbackTF",' <div class="jb-pro-controls-item-wrap"><div class="jb-pro-controls-item jb-pro-ptz">',".jb-pro-ptz-wiper-close",".jb-pro-loading-bg","$tipsMessageClose","record",".jb-pro-ptz-arrow","</span>\n </span>\n </div>\n </div>\n ",'\n <div class="jb-pro-ptz-control"></div>\n <div class="jb-pro-ptz-btns">\n ',".jb-pro-quality-icon-text","$ptzControlCircular","controlAutoHide","object",'</span>\n </span>\n </div>\n <div class="jb-pro-ptz-focus-near jb-pro-ptz-icon">\n <i class="jb-pro-ptz-focus-icon"></i>\n <span class="icon-title-tips">\n <span class="icon-title">','</div>\n <div class="jb-pro-controls-item jb-pro-playback-expand">',"$speed","$ptzFocusFar",'\n <div class="jb-pro-ptz-controls show-',".jb-pro-contextmenus",".jb-pro-progress-indicator","$playbackTimeScroll","$performanceActive",'\n <div class="jb-pro-controls-item-wrap">\n <div class="jb-pro-controls-item jb-pro-quality-menu">\n <div class="jb-pro-quality-icon-text"></div>\n <div class="jb-pro-quality-menu-list"></div>\n </div>\n </div>\n ',"performanceActive","$controlHtml","$tipsMessage","ptzApertureShow","ptzShowType","ptzActive","pause",".jb-pro-fullscreen-exit","logSave","operateBtns",'</div><div class="jb-pro-controls-item jb-pro-face-active">',".jb-pro-tips-message-content",'</div><div class="jb-pro-controls-item jb-pro-performance-active">',"playVod",".jb-pro-scale-menu-list",".jb-pro-controls-playback-time","expand","occlusionActive",".jb-pro-progress-cache","\n ","$qualityMenu",".jb-pro-speed-icon-text","$volumeHandle","$speedMenuList","$faceDetectActive","5sfCWKs","mute",".jb-pro-pause","$contextmenus","2IdkXbj",".jb-pro-controls","6544554yBfKPy",'<div class="jb-pro-play-big"></div>',"2436868wHXvbb",".jb-pro-loading",'<div class="jb-pro-controls-item-wrap"><div class="jb-pro-controls-item jb-pro-screenshot">',"$ptzNarrow","$recordingTime"];return(ym=function(){return t})()}!function(t,e){const s=gm,i=t();for(;;)try{if(975439===-parseInt(s(129))/1+-parseInt(s(127))/2*(parseInt(s(130))/3)+parseInt(s(123))/4+parseInt(s(132))/5+parseInt(s(134))/6+-parseInt(s(124))/7+parseInt(s(128))/8)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(mm),function(t,e){const s=Am,i=t();for(;;)try{if(926194===-parseInt(s(545))/1+parseInt(s(673))/2*(parseInt(s(469))/3)+parseInt(s(677))/4+-parseInt(s(669))/5*(-parseInt(s(675))/6)+parseInt(s(409))/7*(-parseInt(s(407))/8)+parseInt(s(591))/9*(-parseInt(s(521))/10)+parseInt(s(527))/11)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(ym);var bm=(t,e)=>{const s=Am,i=function(){const t=gm;let e=arguments[t(136)]>0&&void 0!==arguments[0]?arguments[0]:{};const s={};return Object[t(131)](zt)[t(126)]((i=>{const r=t,n=e[i]||zt[i];s[i]=r(133)+i+'"></i>\n '+(n?'<span class="icon-title-tips"><span class="icon-title">'+n+r(125):"")+r(135)})),s}(t[s(484)][s(426)]||{}),r=t[s(613)]();t[s(484)].hasControl&&t[s(484)][s(632)]?t[s(604)][s(475)][s(592)]("jb-pro-controls-show-auto-hide"):t[s(604)][s(475)][s(592)]("jb-pro-controls-show");const n=t[s(484)],o=n[s(653)],a=s(611)+(n[s(460)][s(453)]?s(544)+i[s(459)]+s(635)+i[s(660)]+s(439):"")+"\n </div>\n ",h=s(462);t[s(604)][s(446)]("beforeend",s(399)+(n.background?s(548)+n[s(420)]+')"></div>':"")+'\n <div class="jb-pro-loading-bg">\n <img class="jb-pro-loading-bg-image" src="" alt="">\n </div>\n '+(n[s(532)]?s(536)+i[s(506)]+s(578)+n.loadingText+s(439):"")+s(399)+(n[s(572)]&&o[s(501)]?s(676):"")+s(399)+(n[s(572)]&&o[s(542)]?s(638)+n[s(648)]+'">\n <div class="jb-pro-ptz-bg-active"></div>\n <div class="jb-pro-ptz-arrow jb-pro-ptz-arrow-up" data-arrow="up"></div>\n <div class="jb-pro-ptz-arrow jb-pro-ptz-arrow-right" data-arrow="right"></div>\n <div class="jb-pro-ptz-arrow jb-pro-ptz-arrow-down" data-arrow="down"></div>\n <div class="jb-pro-ptz-arrow jb-pro-ptz-arrow-left" data-arrow="left"></div>\n '+(n[s(587)]?s(422):"")+s(629)+(n[s(519)]?'\n <div class="jb-pro-ptz-btn">\n <div class="jb-pro-ptz-expand jb-pro-ptz-icon">\n <i class="jb-pro-ptz-expand-icon"></i>\n <span class="icon-title-tips">\n <span class="icon-title">'+r[s(617)]+s(414)+r[s(503)]+s(565):"")+"\n "+(n[s(647)]?'\n <div class="jb-pro-ptz-btn">\n <div class="jb-pro-ptz-aperture-far jb-pro-ptz-icon">\n <i class="jb-pro-ptz-aperture-icon"></i>\n <span class="icon-title-tips">\n <span class="icon-title">'+r[s(421)]+s(486)+r.apertureNear+"</span>\n </span>\n </div>\n </div>\n ":"")+"\n "+(n[s(518)]?'\n <div class="jb-pro-ptz-btn">\n <div class="jb-pro-ptz-focus-far jb-pro-ptz-icon">\n <i class="jb-pro-ptz-focus-icon"></i>\n <span class="icon-title-tips">\n <span class="icon-title">'+r[s(436)]+s(634)+r[s(590)]+s(565):"")+s(663)+(n[s(464)]?s(423)+r[s(618)]+'</span>\n </span>\n </div>\n <div class="jb-pro-ptz-cruise-pause jb-pro-ptz-icon">\n <i class="jb-pro-ptz-focus-icon"></i>\n <span class="icon-title-tips">\n <span class="icon-title">'+r.cruisePause+"</span>\n </span>\n </div>\n </div>\n ":"")+s(663)+(n[s(580)]?s(555)+r[s(461)]+'</span>\n </span>\n </div>\n <div class="jb-pro-ptz-fog-close jb-pro-ptz-icon">\n <i class="jb-pro-ptz-focus-icon"></i>\n <span class="icon-title-tips">\n <span class="icon-title">'+r[s(571)]+s(628):"")+"\n\n "+(n[s(456)]?s(598)+r[s(487)]+s(575)+r[s(466)]+s(628):"")+"\n </div>\n </div>\n ":"")+s(514)+(n[s(491)]?s(520)+i.narrow+s(537)+r.zoomTips+s(588)+i[s(660)]+s(477)+i[s(432)]+s(577)+i[s(502)]+s(593):"")+s(405)+(n[s(572)]?s(523)+(n[s(616)]?s(403):"")+'\n <div class="jb-pro-playback-control-time"></div>\n <div class="jb-pro-controls-item-html">'+n[s(549)]+s(479)+(n[s(411)]===c[s(621)]&&n[s(460)].showControl&&n[s(460)][s(485)]===A.normal?a:"")+s(564)+(n[s(411)]===c[s(621)]&&n[s(460)][s(415)]&&n[s(460)].controlType===A[s(434)]?h:"")+s(564)+(n.playType===c[s(657)]?h:"")+s(425)+(n.playType===c[s(621)]&&n[s(460)].showRateBtn||n.playType===c.playVod&&n[s(543)][s(433)]?'\n <div class="jb-pro-controls-item-wrap">\n <div class="jb-pro-controls-item jb-pro-speed-menu">\n <div class="jb-pro-speed-icon-text"></div>\n <div class="jb-pro-speed-menu-list"></div>\n </div>\n </div>\n ':"")+s(614)+(o[s(615)]?s(563)+i[s(615)]+s(619):"")+s(614)+(o[s(652)]?'<div class="jb-pro-controls-item-wrap"><div class="jb-pro-controls-item jb-pro-logSave">'+i[s(652)]+"</div></div>":"")+"\n "+(o[s(437)]?s(505)+i[s(437)]+s(656)+i[s(644)]+"</div></div>":"")+s(614)+(o[s(511)]?'<div class="jb-pro-controls-item-wrap"><div class="jb-pro-controls-item jb-pro-face">'+i[s(559)]+s(654)+i[s(498)]+s(619):"")+s(614)+(o[s(517)]?s(533)+i[s(633)]+s(504)+i.objectActive+s(619):"")+"\n "+(o[s(435)]?s(395)+i.occlusion+'</div><div class="jb-pro-controls-item jb-pro-occlusion-active">'+i[s(661)]+s(619):"")+"\n "+(o[s(497)]?s(643):"")+"\n "+(o[s(534)]?s(552):"")+s(614)+(o[s(492)]?'\n <div class="jb-pro-controls-item-wrap">\n <div class="jb-pro-controls-item jb-pro-volume">\n '+i[s(492)]+s(586)+i[s(670)]+'\n <div class="jb-pro-volume-panel-wrap">\n <div class="jb-pro-volume-panel">\n <div class="jb-pro-volume-panel-handle"></div>\n </div>\n <div class="jb-pro-volume-panel-text"></div>\n </div>\n </div>\n </div>\n ':"")+"\n "+(o.play?s(493)+i[s(501)]+s(499)+i[s(650)]+"</div></div>":"")+s(614)+(o[s(457)]?s(679)+i.screenshot+"</div></div>":"")+s(614)+(o[s(626)]?s(620)+i[s(626)]+'</div><div class="jb-pro-controls-item jb-pro-record-stop">'+i[s(502)]+s(619):"")+s(614)+(o.ptz?s(622)+i[s(542)]+s(528)+i[s(649)]+s(619):"")+s(614)+(o.zoom?' <div class="jb-pro-controls-item-wrap"><div class="jb-pro-controls-item jb-pro-zoom">'+i[s(551)]+s(472)+i[s(432)]+s(619):"")+"\n "+(o.fullscreen?s(547)+i[s(609)]+s(525)+i[s(424)]+s(619):"")+s(599):"")+s(408)),Object[s(483)](e,s(568),{value:t.$container[s(419)](".jb-pro-poster"),configurable:!0}),Object.defineProperty(e,"$loadingBg",{value:t[s(604)][s(419)](s(624)),configurable:!0}),Object.defineProperty(e,s(412),{value:t[s(604)][s(419)](s(557)),configurable:!0}),Object[s(483)](e,"$loading",{value:t.$container.querySelector(s(678)),configurable:!0}),Object[s(483)](e,"$loadingText",{value:t[s(604)][s(419)](s(463)),configurable:!0}),Object[s(483)](e,s(597),{value:t.$container[s(419)](s(494)),configurable:!0}),Object.defineProperty(e,s(608),{value:t[s(604)][s(419)](s(582)),configurable:!0}),Object[s(483)](e,s(429),{value:t[s(604)][s(419)](s(490)),configurable:!0}),Object[s(483)](e,s(394),{value:t[s(604)][s(419)](s(476)),configurable:!0}),Object.defineProperty(e,s(508),{value:t[s(604)][s(419)](s(470)),configurable:!0}),Object[s(483)](e,s(451),{value:t[s(604)][s(419)](s(671)),configurable:!0}),Object[s(483)](e,s(556),{value:t[s(604)][s(419)](s(674)),configurable:!0}),Object.defineProperty(e,s(430),{value:t[s(604)].querySelector(s(515)),configurable:!0}),Object[s(483)](e,"$controlsLeft",{value:t[s(604)].querySelector(s(401)),configurable:!0}),Object[s(483)](e,s(529),{value:t[s(604)][s(419)](".jb-pro-controls-right"),configurable:!0}),Object[s(483)](e,s(400),{value:t.$container[s(419)](s(576)),configurable:!0}),Object[s(483)](e,s(567),{value:t[s(604)][s(419)](s(566)),configurable:!0}),Object[s(483)](e,s(410),{value:t[s(604)][s(419)](s(600)),configurable:!0}),Object[s(483)](e,s(509),{value:t.$container[s(419)](s(402)),configurable:!0}),Object[s(483)](e,s(666),{value:t[s(604)][s(419)](s(584)),configurable:!0}),Object[s(483)](e,s(474),{value:t.$container[s(419)](s(594)),configurable:!0}),Object[s(483)](e,s(428),{value:t[s(604)].querySelector(s(612)),configurable:!0}),Object.defineProperty(e,"$fullscreen",{value:t[s(604)][s(419)](s(526)),configurable:!0}),Object[s(483)](e,s(550),{value:t[s(604)][s(419)](s(651)),configurable:!0}),Object[s(483)](e,s(489),{value:t[s(604)].querySelector(s(448)),configurable:!0}),Object[s(483)](e,s(445),{value:t[s(604)][s(419)](s(554)),configurable:!0}),Object[s(483)](e,s(406),{value:t[s(604)][s(419)](".jb-pro-screenshot"),configurable:!0}),Object[s(483)](e,s(636),{value:t[s(604)].querySelector(".jb-pro-speed"),configurable:!0}),Object[s(483)](e,s(645),{value:t[s(604)][s(419)](s(524)),configurable:!0}),Object[s(483)](e,s(573),{value:t[s(604)][s(419)](s(659)),configurable:!0}),Object[s(483)](e,s(589),{value:t[s(604)][s(419)](s(427)),configurable:!0}),Object.defineProperty(e,s(641),{value:t[s(604)].querySelector(s(607)),configurable:!0}),Object[s(483)](e,"$playbackTimeList",{value:t[s(604)][s(419)](s(579)),configurable:!0}),Object[s(483)](e,s(450),{value:t.$container[s(419)](".jb-pro-playback-time-one-wrap"),configurable:!0}),Object[s(483)](e,s(535),{value:t[s(604)].querySelector(".jb-pro-playback-time-second-wrap"),configurable:!0}),Object[s(483)](e,s(560),{value:t[s(604)][s(419)](s(605)),configurable:!0}),Object[s(483)](e,"$playbackCurrentTimeText",{value:t[s(604)][s(419)](s(468)),configurable:!0}),Object[s(483)](e,"$controlsPlaybackBtns",{value:t.$container.querySelector(s(512)),configurable:!0}),Object[s(483)](e,s(585),{value:t.$container[s(419)](s(444)),configurable:!0}),Object.defineProperty(e,s(454),{value:t[s(604)][s(419)](s(531)),configurable:!0}),Object.defineProperty(e,s(558),{value:t.$container[s(419)](s(449)),configurable:!0}),Object[s(483)](e,s(516),{value:t.$container[s(419)](s(443)),configurable:!0}),Object[s(483)](e,s(561),{value:t[s(604)].querySelector(s(522)),configurable:!0}),Object[s(483)](e,"$ptzBgActive",{value:t[s(604)][s(419)](s(404)),configurable:!0}),Object[s(483)](e,s(631),{value:t[s(604)].querySelector(".jb-pro-ptz-control"),configurable:!0}),Object[s(483)](e,"$ptzArrows",{value:t[s(604)].querySelectorAll(s(627)),configurable:!0}),Object[s(483)](e,s(513),{value:t[s(604)][s(419)](s(583)),configurable:!0}),Object[s(483)](e,s(680),{value:t[s(604)][s(419)](s(418)),configurable:!0}),Object[s(483)](e,"$ptzApertureFar",{value:t.$container.querySelector(".jb-pro-ptz-aperture-far"),configurable:!0}),Object.defineProperty(e,"$ptzApertureNear",{value:t[s(604)].querySelector(".jb-pro-ptz-aperture-near"),configurable:!0}),Object[s(483)](e,s(637),{value:t[s(604)][s(419)](".jb-pro-ptz-focus-far"),configurable:!0}),Object[s(483)](e,"$ptzFocusNear",{value:t[s(604)][s(419)](s(510)),configurable:!0}),Object[s(483)](e,s(478),{value:t[s(604)][s(419)](s(438)),configurable:!0}),Object[s(483)](e,"$ptzCruisePause",{value:t[s(604)][s(419)](s(546)),configurable:!0}),Object.defineProperty(e,"$ptzFogOpen",{value:t.$container[s(419)](".jb-pro-ptz-fog-open"),configurable:!0}),Object[s(483)](e,s(541),{value:t[s(604)][s(419)](s(465)),configurable:!0}),Object.defineProperty(e,s(574),{value:t.$container[s(419)](s(540)),configurable:!0}),Object.defineProperty(e,"$ptzWiperClose",{value:t[s(604)][s(419)](s(623)),configurable:!0}),Object[s(483)](e,s(562),{value:t[s(604)][s(419)](s(630)),configurable:!0}),Object[s(483)](e,s(664),{value:t.$container[s(419)](s(467)),configurable:!0}),Object[s(483)](e,"$qualityMenuList",{value:t[s(604)].querySelector(s(396)),configurable:!0}),Object.defineProperty(e,s(606),{value:t[s(604)][s(419)](s(397)),configurable:!0}),Object[s(483)](e,s(473),{value:t[s(604)][s(419)](".jb-pro-scale-menu"),configurable:!0}),Object[s(483)](e,s(458),{value:t.$container[s(419)](s(658)),configurable:!0}),Object[s(483)](e,s(496),{value:t[s(604)][s(419)](s(596)),configurable:!0}),Object[s(483)](e,s(553),{value:t.$container[s(419)](s(442)),configurable:!0}),Object[s(483)](e,"$zoomNarrow",{value:t[s(604)].querySelector(s(431)),configurable:!0}),Object[s(483)](e,"$zoomExpand",{value:t[s(604)].querySelector(".jb-pro-zoom-expand"),configurable:!0}),Object.defineProperty(e,s(440),{value:t[s(604)][s(419)](s(507)),configurable:!0}),Object[s(483)](e,s(481),{value:t[s(604)][s(419)](s(500)),configurable:!0}),Object[s(483)](e,"$zoomControls",{value:t.$container[s(419)](".jb-pro-zoom-controls"),configurable:!0}),Object[s(483)](e,"$performancePanel",{value:t[s(604)][s(419)](".jb-pro-performance-panel"),configurable:!0}),Object[s(483)](e,"$performance",{value:t[s(604)][s(419)](s(610)),configurable:!0}),Object[s(483)](e,s(642),{value:t[s(604)][s(419)](s(495)),configurable:!0}),Object[s(483)](e,"$faceDetect",{value:t[s(604)][s(419)](s(601)),configurable:!0}),Object.defineProperty(e,s(668),{value:t[s(604)][s(419)](".jb-pro-face-active"),configurable:!0}),Object[s(483)](e,s(416),{value:t[s(604)].querySelector(s(603)),configurable:!0}),Object[s(483)](e,s(447),{value:t[s(604)][s(419)](s(569)),configurable:!0}),Object[s(483)](e,s(441),{value:t[s(604)][s(419)](".jb-pro-occlusion"),configurable:!0}),Object[s(483)](e,s(538),{value:t[s(604)].querySelector(s(455)),configurable:!0}),Object[s(483)](e,s(672),{value:t[s(604)].querySelector(s(639)),configurable:!0}),Object[s(483)](e,s(581),{value:t[s(604)][s(419)](s(665)),configurable:!0}),Object[s(483)](e,"$speedMenu",{value:t[s(604)][s(419)](s(530)),configurable:!0}),Object.defineProperty(e,s(667),{value:t.$container.querySelector(".jb-pro-speed-menu-list"),configurable:!0}),Object[s(483)](e,s(471),{value:t[s(604)].querySelector(".jb-pro-logSave"),configurable:!0}),Object.defineProperty(e,"$playbackProgress",{value:t[s(604)][s(419)](s(602)),configurable:!0}),Object[s(483)](e,s(417),{value:t[s(604)].querySelector(s(595)),configurable:!0}),Object[s(483)](e,"$playbackProgressHover",{value:t[s(604)][s(419)](s(398)),configurable:!0}),Object[s(483)](e,s(452),{value:t[s(604)][s(419)](".jb-pro-progress-played"),configurable:!0}),Object[s(483)](e,s(413),{value:t[s(604)][s(419)](s(662))}),Object[s(483)](e,s(482),{value:t[s(604)][s(419)](s(640)),configurable:!0}),Object.defineProperty(e,s(480),{value:t[s(604)][s(419)](s(488)),configurable:!0}),Object[s(483)](e,s(646),{value:t[s(604)].querySelector(s(570)),configurable:!0}),Object[s(483)](e,s(625),{value:t[s(604)].querySelector(s(539)),configurable:!0}),Object[s(483)](e,"$tipsMessageContent",{value:t[s(604)][s(419)](s(655)),configurable:!0})};function vm(t,e){const s=wm();return(vm=function(t,e){return s[t-=111]})(t,e)}function Sm(t,e){let s=!1;return t.forEach((t=>{const i=vm;!s&&t.startTimestamp<=e&&t[i(133)]>e&&(s=!0)})),s}function wm(){const t=["dataType",'" data-min="',"push",":05","insertAdjacentHTML","rafId","65103MjsDhU","title","hour","99918OTxwlo","max","beforeend",'"><span class="jb-pro-playback-time-hour-text">',"51846LqVyop","jb-pro-playback-time-title-tips-left","min","862023RxVoHl","2761218nWmOHf","2205KUCgEH","3620VzYQiU","startTimestamp","endTimestamp",":00",'">\n <span class="jb-pro-playback-time-title-tips ','\n <div class="jb-pro-playback-time-minute-one','\n <div class="jb-pro-playback-time-hour" data-hour="',"$playbackTimeListOne","hasRecord","second",'" data-type="','" data-second="',"</span></div>\n ","replace","</span></span>\n </div>\n ","length","4001070AutEfk",'"\n data-time="',"8ohnsNB","ceil",'"><span class="jb-pro-playback-time-title">',"7uEAUyO"];return(wm=function(){return t})()}function Em(){const t=vm;let e=arguments[t(146)]>0&&void 0!==arguments[0]?arguments[0]:[],s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0;const r=e[t(146)],n=s[t(146)],o=Math[t(122)](r,n),a=2e3,h=Math[t(150)](o/a);let c=0,l=0;function d(){const n=t;let o="",u="";for(let t=0;t<a;t++){const t=e[l];t&&(o+=n(136)+(t.hasRecord?" active":"")+(t.isStart?" start":"")+'" data-has-record="'+t[n(139)]+n(148)+t.timestamp+n(141)+t[n(112)]+n(135)+(l>r-60?n(126):"")+n(151)+t[n(119)]+n(145));const i=s[l];i&&(u+=n(137)+i[n(120)]+n(113)+i[n(127)]+n(142)+i[n(140)]+n(124)+i[n(119)]+n(143)),l+=1}o&&i[n(138)].insertAdjacentHTML(n(123),o),u&&i.$playbackTimeListSecond[n(116)](n(123),u),c+=1,c<h&&(i[n(117)]=window.requestAnimationFrame(d))}d()}function Im(t,e){const s=function(){const t=vm;let e=arguments[t(146)]>0&&void 0!==arguments[0]?arguments[0]:[],s=[];const i=(e[0]||{})[t(132)];for(let r=0;r<1440;r++){const n=r%60==0;let o=!1;i&&(o=Sm(e,Ds(i,r))),s[t(114)]({title:Cs(r),timestamp:r,dataType:t(127),hasRecord:o,isStart:n})}return s}(t);Em(s,function(){const t=vm;let e=[];for(let s=0;s<24;s++){let i=s+t(134);s<10&&(i="0"+i),e[t(114)]({title:i,hour:s,min:0,second:0})}return e}(),e)}function Tm(t,e){const s=function(){const t=vm;let e=arguments[t(146)]>0&&void 0!==arguments[0]?arguments[0]:[],s=[];const i=(e[0]||{}).startTimestamp;for(let r=0;r<1440;r++){let n=60*r,o=n%1800==0,a=!1;i&&(a=Sm(e,Ls(i,n))),s[t(114)]({title:Rs(n),timestamp:n,dataType:t(140),hasRecord:a,isStart:o});let h=60*r+30;o=h%1800==0,i&&(a=Sm(e,Ls(i,h))),s.push({title:Rs(h),timestamp:h,dataType:t(140),hasRecord:a,isStart:o})}return s}(t);Em(s,function(){const t=vm;let e=[];for(let s=0;s<24;s++){let i=s+":00",r=s+":30";s<10&&(i="0"+i,r="0"+r),e[t(114)]({title:i,hour:s,min:0,second:0}),e[t(114)]({title:r,hour:s,min:30,second:0})}return e}(),e)}function km(t,e){const s=function(){const t=vm;let e=arguments[t(146)]>0&&void 0!==arguments[0]?arguments[0]:[],s=[];const i=(e[0]||{})[t(132)];for(let r=0;r<144;r++)for(let n=0;n<60;n++){let o=10*n+600*r,a=o%600==0,h=!1;i&&(h=Sm(e,Ls(i,o))),s[t(114)]({title:Rs(o),timestamp:o,dataType:t(140),isStart:a,hasRecord:h})}return s}(t);Em(s,function(){const t=vm;let e=[];for(let s=0;s<24;s++){let i=s+":00";s<10&&(i="0"+i),e[t(114)]({title:i,hour:s,min:0,second:0});for(let r=1;r<6;r++){let n=r+"0";e[t(114)]({title:i[t(144)](":00",":"+n),hour:s,min:10*r,second:0})}}return e}(),e)}function _m(t,e){const s=function(){const t=vm;let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],s=[];const i=(e[0]||{})[t(132)];for(let r=0;r<288;r++)for(let n=0;n<60;n++){let o=5*n+300*r,a=o%300==0,h=!1;i&&(h=Sm(e,Ls(i,o))),s[t(114)]({title:Rs(o),timestamp:o,dataType:"second",isStart:a,hasRecord:h})}return s}(t);Em(s,function(){const t=vm;let e=[];for(let s=0;s<24;s++){let i=s+":00";s<10&&(i="0"+i),e[t(114)]({title:i,hour:s,min:0,second:0}),e.push({title:i[t(144)](t(134),t(115)),hour:s,min:5,second:0});for(let r=1;r<6;r++){let n=r+"0",o=r+"5";e[t(114)]({title:i[t(144)](t(134),":"+n),hour:s,min:10*r,second:0}),e[t(114)]({title:i[t(144)](t(134),":"+o),hour:s,min:10*r+5,second:0})}}return e}(),e)}function Cm(t){const e=Dm,s=Math[e(452)](t/3600),i=Math[e(452)]((t-3600*s)/60),r=Math.floor(t-3600*s-60*i);return(s>0?[s,i,r]:[i,r]).map((t=>t<10?"0"+t:String(t)))[e(459)](":")}function Rm(t,e,s){const i=Dm,r=t.$playbackProgress,{left:n}=r[i(454)](),o=Ve((Je()?s.touches[0][i(457)]:s[i(448)])-n,0,r[i(451)]),a=parseInt(o/r[i(451)]*e,10);return{second:a,time:Cm(a),width:o,percentage:Ve(o/r[i(451)],0,1)}}function Dm(t,e){const s=Lm();return(Dm=function(t,e){return s[t-=446]})(t,e)}function Lm(){const t=["firstElementChild","clientX","630477zcliVO","join","79801trWuYX","444504kbKfom","remove","394905PYSnqF","2sjNnBR","3565854pxMvlN","pageX","559338CoSAxI","5BqXzwk","clientWidth","floor","10wRrhfL","getBoundingClientRect","775796zcMQRw"];return(Lm=function(){return t})()}function xm(t,e){return Ve(t/e,0,1)}function Pm(t,e){const s=Bm();return(Pm=function(t,e){return s[t-=252]})(t,e)}function Bm(){const t=["mseDecodeAudio","$volume","showPerformance","left","lock","px) translateY(","isDropping","$playbackProgressIndicator","orientation","$scaleMenu","isPlayer","60nlawTA",'</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>最新缓冲时长(ms) ',"defineProperty","setRotate","removeChild",'</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>MSE播放模式 ','</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>解封装(ms) ',"$recordStop",'\n <div class="jb-pro-quality-menu-item" data-quality="',"is10Min","$volumeHandle","mseTs","remove","audioInfo","点播文件","hasVideo","</span>\n </div>\n ",'</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>缓冲时长(ms) ',"volume",'\n <div class="jb-pro-performance-item">\n <span>音频码率(bit) ',"$ptzControl","{h}:{i}:{s}","$screenshot",'\n <div class="jb-pro-performance-item">\n <span>视频GOP(ms) ',"extendBtnList","encType","jb-pro-auto-orientation-fullscreen",'\n <div class="jb-pro-performance-item">\n <span>缓存时长(ms) ','</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>解码模式 ',"beforeend",'</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>video间隔时间(s) ',"jb-pro-object-","rect",'\n <div class="jb-pro-performance-item">\n <span>网络请求组件 ',"then","</span>\n </div>\n ","allTimestamp","audioDemuxBuffer","speed","</span>\n </div>\n ",'\n <div class="jb-pro-performance-item">\n <span>音频播放模式 ',"playVodEndedAndShowPlayBtn","playVodWaiting","demuxBuffer","isScreenNowRow","value","</span>\n </div>\n ","playbackPause",'</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>视频帧率(fps) ',"showAfterLoading","createdMoment",'\n <div class="jb-pro-performance-item">\n <span>解码前-解码后延迟(ms) ',"fiveMin","直播流","370792awAhCs",'\n <div class="jb-pro-performance-item">\n <span>播放器版本 ',"$playbackTimeListOne","mseDelay","streamResponseTimestamp","insertAdjacentHTML","isUseHls265",'</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>音频待解码帧 ',"6565176xFRsCH","$speed","height","playbackConfig",'</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>视频(宽x高) ',"audio","2VkKHCR","hlsDelay","$pause",'\n <div class="jb-pro-performance-item">\n <span>是否播放流畅 ',"usedJSHeapSize","loading","getSeconds","hlsDemuxAudioLength","$speedMenuList","0 KB/s","oneHour","dts",'</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>视频录制大小 ',"isAudioPlaybackRateSpeed","playVodConfig","rate","22lFuKZf",'</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>开始请求地址(ms) ',"msePendingBuffer","playVodPause","$scaleMenuItems","controlsPlaybackBtnsRect","controlsInnerRect","channels","playVodTimeCache","$occlusionDetectActive","translateX(","qualityConfig","playbackTime","isOldHls","wcsDecodeDiffTimes","streamQuality","playVodRateChange","translateX(0) translateY(0) rotate(0)","tenMin","$playbackProgressTime","objectDetectActive","style","add","$tipsMessage","occlusionDetectActive","debugUuid","controlType","currentPts","$volumePanelText","simple","showRateBtn","jb-pro-fullscreen-rotate","_serverInfo","top","normal","jb-pro-ptz-controls-show","$speedMenuItems","</span>\n </div>\n ","totalDuration",'</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>渲染组件 ',"playFailedAndPausedShowPlayBtn","videoInfo","getVideoPlaybackQuality","_times","zooming","none","$qualityText","$performanceActive","rafId","togglePerformancePanel","display","useMSE","videoCurrentTimeDiff","setAttribute","halfHour","load","$playbackProgressCache","$objectDetectActive","$zoom","_opt","213064qKTJWe","playbackRateChange","stats","push","$performancePanel","sampleRate","isPlayback","$playbackExpand","$playbackCurrentTimeText",".jb-pro-speed-menu-item",'\n <div class="jb-pro-performance-item">\n <span>WCS解码间隔(ms) ',"object","transform","playback","changePercisitionInterval","px)","debugLog","$loadingBgImage","listenWindowResizeAuoResize","block",'倍</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>播放模式 ',"$occlusionDetect","streamTimestamp","classList",".jb-pro-quality-menu-item","getControlHeight","</div>\n ","$recordingTime","width",'</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>音频缓冲时长(ms) ',"$volumeOn","playVodSeek","\n ","</span>\n </div>\n ","$activeIconWrap","pushLatestDelay","getCpuLevel","change","jb-pro-quality-menu-item-active","operateBtns","$qualityMenu",'\n <div class="jb-pro-performance-item">\n <span>渲染引擎 ',"getRecordingDuration","$scaleMenuList","jb-pro-scale-menu-item-active","showControl","abs","controlsLeftRect","$zoomStop","10tcYbZx","getStreamFps","resize","calc(","hasControl","$ptz","maxFps","dataset","totalJSHeapSize","% - ","isShowRecordingUI","161iwmPDr","$faceDetect","741843NXQWAm",'\n <div class="jb-pro-performance-item">\n <span>视频录制时间 ',"destroy","$record","hasAudio","12024Klwywg",'</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>页面开始渲染(ms) ',"playingTimestamp","showPrecisionBtn","$faceDetectActive","documentElement","scaleConfig",'\n <div class="jb-pro-performance-item">\n <span>视频显示时间(ms) ',"netBuf","rateConfig","control",'</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>Video已丢弃帧 ',"playVod",'\n <div class="jb-pro-performance-item">\n <span>video显示时间(s) ','\n <div class="jb-pro-performance-item">\n <span>待解封装数据(byte) ',"getRenderType","type","mseDecodePlaybackRate","scaleType","playing","emit","recording","isInMulti","events","</span>\n </div>\n ","$zoomControls",'</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>总延迟(网络+解码)(ms) ',"$volumePanel","getAudioEngineType","quality","fps","$container","flex","fullscreen","useWebFullScreen","absolute"," / ","$poster","querySelectorAll","appendChild","isStreamTsMoreThanLocal","$playbackTimeScroll","playbackVideoBuffer","streamBuffer","disabled","$play","scale","$playbackProgressPlayed","$performance",'\n <div class="jb-pro-speed-menu-item" data-speed="',"audioTs","translateX(-50%) translateY(0) rotate(0)","video","cancelAnimationFrame",'</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>视频码率(bit) ',"getRecordingByteLength","isFullscreen","isUseFpsRender","$iconWrap","$playbackTimeListSecond","text/html","is60Min","volumechange",'\n <div class="jb-pro-performance-item">\n <span>音频显示时间(ms) ',"jb-pro-speed-menu-item-active","</span>\n </div>\n ",'\n <div class="jb-pro-performance-item">\n <span>播放器初始化(ms) ',"abps","$playbackNarrow","$playBig","$playbackTimeInner","is1Min","forEach","audioBufferDelayTs",'</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>音频缓冲帧 ',"isMulti",'</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>MSE缓存时长(s) ',"controlsRightRect","$fullscreen","innerText","decodeTimestamp","$loadingBg","录播流",'</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>MSE待解码帧 ','\n <div class="jb-pro-performance-item">\n <span>MSE缓冲时长(ms) ',"find","isPlayVod",'</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>解码(ms) '," x ","off",'</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>MSE解码时间(ms) ','\n <div class="jb-pro-performance-item">\n <span>解封装模式 ',"pTs","playTimestamp","isPlayFailedAndPaused",'\n <div class="jb-pro-performance-item">\n <span>服务器信息 ',"isPlaying",'</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>可使用的内存 ',"destroys","$volumeOff",'\n <div class="jb-pro-performance-item">\n <span>音频格式 ','</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>已使用的内存 ',"$loading","vbps","$recording","useWCS",'<div class="jb-pro-performance-item">\n <span>HLS缓冲时长(ms) ',"contentDocument","isWebrtcH264","renderedVideoFrames","getHours","streamQualityChange","recordingTimestamp","androidMobileFullscreenRotate",'</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>videoBuffer缓存时间(ms) ',"rotate(-90deg)","totalDelayTs","isAliyunRtc","controlsPlaybackTimeInner","</span>\n </div>\n ","$controlHtml","$speedText",'</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>视频峰值帧率(fps) ',"demuxTimestamp",'\n <div class="jb-pro-performance-item">\n <span>视频解码时间(ms) ',"webFullscreen","2013291wJATap","playbackTF","$objectDetect","\n ","getDecodeType","defaultView","videoIframeIntervalTs","buf","$fullscreenExit","px) rotate(-90deg)","portrait",'\n <div class="jb-pro-performance-item">\n <span>网络延迟(ms) ',"getStreamType","fullScreenByStart",'</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>音频采样率 ',"playType","canvas","100%",'</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>视频格式 ',"innerHTML","isShowZoomingUI",'</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>初始化到页面渲染(ms) ',"isAudioNotMute","$playbackCurrentTime","jsHeapSizeLimit","kBps","label","536556lulSbp","length"];return(Bm=function(){return t})()}!function(t,e){const s=vm,i=t();for(;;)try{if(228854===parseInt(s(118))/1+-parseInt(s(121))/2+-parseInt(s(128))/3+parseInt(s(131))/4*(parseInt(s(130))/5)+parseInt(s(125))/6*(parseInt(s(111))/7)+-parseInt(s(149))/8*(parseInt(s(129))/9)+parseInt(s(147))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(wm),function(t,e){const s=Dm,i=t();for(;;)try{if(117498===parseInt(s(460))/1*(-parseInt(s(446))/2)+-parseInt(s(458))/3+-parseInt(s(455))/4+parseInt(s(450))/5*(parseInt(s(449))/6)+parseInt(s(463))/7+parseInt(s(461))/8+-parseInt(s(447))/9*(-parseInt(s(453))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Lm),function(t,e){const s=Pm,i=t();for(;;)try{if(389048===-parseInt(s(263))/1+-parseInt(s(497))/2*(parseInt(s(389))/3)+parseInt(s(483))/4*(parseInt(s(622))/5)+-parseInt(s(416))/6+parseInt(s(256))/7*(-parseInt(s(573))/8)+-parseInt(s(258))/9*(-parseInt(s(429))/10)+parseInt(s(513))/11*(parseInt(s(491))/12))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Bm);var Mm=(t,e)=>{const s=Pm,{events:{proxy:i}}=t;let r=null,n=null,o=null,a=null;if(t._opt[s(591)]){r=document.createElement(s(584)),n=s(460)+si(),r[s(566)]("aria-hidden","true"),r[s(566)]("tabindex",-1),r[s(566)]("id",n),r[s(279)]=s(323),r.data="about:blank",ze(r,{display:s(592),position:s(298),top:"0",left:"0",height:s(406),width:s(406),overflow:"hidden",pointerEvents:s(558),zIndex:"-1"}),o=t[s(601)],a=t.height;const e=hs((()=>{const e=s;(t.width!==o||t.height!==a)&&(o=t[e(601)],a=t.height,t[e(283)](M[e(624)]))}),500);i(r,s(568),(()=>{const t=s;i(r[t(370)][t(394)],t(624),(()=>{e()}))})),t[s(294)][s(302)](r)}t.on(M[s(260)],(()=>{const e=s;if(r)try{if(!Ln(r)){const s=t[e(294)].querySelector("#"+n);s&&t[e(294)]&&t[e(294)][e(433)](s)}}catch(t){}p&&(clearInterval(p),p=null),m=null,g=null,y=0,r=null,n=null,o=null,a=null})),t.on(M[s(325)],(()=>{!function(t){const i=s;if(0===t)ze(e[i(603)],i(563),i(558)),ze(e[i(362)],i(563),i(295)),ze(e[i(439)],"top","48px");else if(e[i(439)]&&e[i(290)]){const s=Ge(e[i(290)],"height")||60,r=Ge(e.$volumeHandle,"height"),n=s-(s-r)*t-r;ze(e[i(439)],i(546),n+"px"),ze(e.$volumeOn,i(563),i(295)),ze(e[i(362)],i(563),i(558))}e[i(541)]&&(e[i(541)].innerHTML=parseInt(100*t))}(t[s(447)])})),t.on(M[s(502)],(i=>{const r=s;e.isInitPlayer=!1,ze(e.$loading,r(563),i?"flex":r(558)),(ci(t[r(572)].backgroundLoadingShow)&&hi(i)||ci(i))&&ze(e[r(300)],r(563),"none"),i&&(ze(e[r(332)],r(563),r(558)),ze(e[r(536)],r(563),r(558)),e[r(453)][r(335)]((t=>{const e=r;t[e(479)]===Ut[e(502)]&&(t[e(321)]&&ze(t.$iconWrap,e(563),e(295)),t[e(607)]&&ze(t[e(607)],e(563),e(558)))}))),!i&&t[r(572)].extendDomConfig[r(478)]&&e.$extendDom&&ze(e.$extendDom,r(563),r(592)),!i&&t[r(278)]()===f[r(405)]&&ci(t._opt[r(564)])&&h()})),t.on(M.removeLoadingBgImage,(()=>{h()}));const h=()=>{const i=s;e[i(590)]&&e[i(344)]&&e.$loadingBgImage.src&&(t[i(589)]("Control","remove loading bg image"),e.$loadingBgImage[i(601)]=0,e[i(590)].height=0,e.$loadingBgImage.src="",ze(e.$loadingBg,i(563),i(558)))},l=()=>{const e=s;if(t[e(296)],b(),Je())if(t._opt.androidMobileFullscreenRotate)t.fullscreen?t[e(473)]()&&(t[e(294)][e(596)][e(535)](e(544)),t[e(432)](270)):(t[e(294)][e(596)][e(441)]("jb-pro-fullscreen-rotate"),t[e(432)](0)),S((()=>{E()}));else{var i,r;if(null===(i=screen)||void 0===i||null===(r=i.orientation)||void 0===r||!r.lock)return;const s=screen[e(426)][e(279)];if(t.fullscreen){const i=t.width,r=t[e(493)],{clientWidth:n,clientHeight:o}=document[e(268)];if(i>r&&n<o||i<r&&n>o){const i=s.startsWith(e(399))?"landscape":e(399);screen[e(426)][e(422)](i)[e(463)]((()=>{In(t.$container,"jb-pro-auto-orientation-fullscreen")}))}}else kn(t.$container,e(455))&&screen[e(426)][e(422)](s)[e(463)]((()=>{Tn(t[e(294)],"jb-pro-auto-orientation-fullscreen")}))}},d=e=>{Ns(e)===t.$container&&l()};let p=null,m=null,g=null,y=0;const b=i=>{const r=s;if(ci(t[r(359)]()))return;let n=bs(i)?i:t.fullscreen;ze(e[r(397)],r(563),r(n?295:558)),ze(e[r(341)],r(563),r(n?558:295))},v=()=>{const e=s;return t[e(572)][e(404)]===c[e(390)]&&t._opt.playbackConfig[e(618)]},S=i=>{const r=s;Je()&&e.$controls&&(t._opt[r(297)]||t[r(572)][r(376)])?setTimeout((()=>{const s=r;if(t[s(296)]){const i=t[s(598)](!1);let r=t.height/2-t.width+i/2,n=t.height/2-i/2;if(e.$controls[s(534)][s(585)]=s(523)+-r+"px) translateY(-"+n+s(398),e[s(288)]){const i=156,r=30,n=t[s(601)]/2+i/2-r/2;e[s(288)][s(534)][s(585)]=s(523)+-n+"px) translateY("+t[s(493)]/2+s(398)}if(e.$recording){const i=101,r=20,n=t[s(601)]/2+i/2-r/2;e[s(367)].style[s(585)]="translateX("+-n+s(423)+t[s(493)]/2+s(398)}e.$ptzControl&&(e[s(449)].style[s(585)]=s(378))}else e.$controls[s(534)].transform=s(530),e[s(288)]&&(e.$zoomControls[s(534)][s(585)]=s(314)),e[s(367)]&&(e[s(367)].style[s(585)]=s(314)),e[s(449)]&&(e.$ptzControl[s(534)][s(585)]="rotate(0)");i&&i()}),10):i&&i()};try{ee.on(s(610),d),t[s(286)][s(361)][s(576)]((()=>{ee[s(352)]("change",d)}))}catch(t){}t.on(M.webFullscreen,(t=>{Je()&&(b(t),S((()=>{E()})))})),t.on(M[s(402)],(()=>{l()})),t.on(M.recording,(()=>{const i=s;t[i(282)]&&(ze(e[i(261)],i(563),t[i(284)]?i(558):i(295)),ze(e[i(436)],i(563),t[i(284)]?i(295):"none"),(t[i(572)][i(626)]||t[i(572)][i(255)])&&(ze(e.$recording,i(563),t[i(284)]?"flex":"none"),ci(t[i(284)])&&e[i(600)]&&(e[i(600)].innerHTML=ks(0))))})),t.on(M[s(375)],(t=>{e[s(600)]&&(e.$recordingTime.innerHTML=ks(t))})),t.on(M.zooming,(()=>{const i=s;t[i(282)]&&(ze(e[i(571)],i(563),t.zooming?i(558):i(295)),ze(e[i(621)],i(563),t[i(557)]?i(295):i(558)),(t._opt[i(626)]||t[i(572)][i(409)])&&ze(e[i(288)],i(563),t.zooming?"flex":i(558)))})),t.on(M[s(282)],(t=>{w(t)}));const w=i=>{const r=s;i?(ze(e[r(308)],r(563),r(558)),ze(e.$playBig,r(563),r(558))):(t[r(357)]&&ci(t[r(572)][r(553)])?(ze(e[r(308)],r(563),r(558)),ze(e[r(332)],r(563),r(558))):(ze(e[r(308)],r(563),r(295)),ze(e.$playBig,"display",r(592))),t[r(349)]()&&t._opt[r(470)]&&t[r(275)].isEnded()&&(ze(e[r(308)],r(563),r(295)),ze(e[r(332)],r(563),r(592)))),ze(e[r(499)],r(563),i?r(295):"none"),ze(e[r(451)],r(563),r(i?295:558)),ze(e[r(261)],r(563),r(i?295:558)),ze(e[r(613)],r(563),i?"flex":r(558)),ze(e[r(419)],r(563),i?"flex":r(558)),ze(e[r(627)],r(563),r(i?295:558)),ze(e[r(571)],r(563),i?r(295):"none"),ze(e[r(427)],r(563),r(i?295:558)),ze(e[r(257)],r(563),i?r(295):"none"),ze(e.$objectDetect,r(563),r(i?295:558)),ze(e[r(594)],"display",r(i?295:558)),ze(e[r(383)],r(563),i?"flex":"none"),(t[r(579)]()||t.isPlayVod())&&ze(e.$speedMenu,r(563),r(i?295:558)),b(),e.extendBtnList[r(335)]((t=>{const e=r;t[e(479)]===Ut[e(282)]&&(t[e(321)]&&ze(t[e(321)],"display",i?"flex":e(558)),t[e(607)]&&ze(t[e(607)],"display","none"))})),t[r(572)][r(420)]?ze(e[r(560)],"display",r(i?295:558)):(ze(e[r(311)],"display",r(i?295:558)),ze(e[r(560)],"display","none")),ze(e.$poster,r(563),"none"),ze(e.$ptzActive,r(563),r(558)),ze(e[r(436)],"display",r(558)),ze(e.$zoomStop,r(563),r(558)),ze(e.$faceDetectActive,"display",r(558)),ze(e[r(570)],r(563),"none"),!i&&(e[r(492)]&&(e[r(492)][r(408)]=function(t){const e=Me;if(null==t||""===t)return e(345);let s=parseFloat(t);return s=s[e(513)](2),s+e(507)}("")),ze(e[r(288)],"display",r(558)),ze(e.$recording,"display",r(558)),e.$ptzControl&&e[r(449)].classList[r(441)](r(548))),E(),i&&I()};t[s(579)]()&&t.on(M[s(476)],(t=>{w(!t)})),t.on(M[s(414)],(i=>{const r=s,n=function(t){const e=Me;if(null==t||""===t||0===parseFloat(t)||t===e(325))return e(345);const s=[e(507),"MB/s",e(469),"TB/s",e(638),e(307),e(370),e(369)];let i=0;const r=parseFloat(t/8);i=Math.floor(Math[e(587)](r)/Math[e(587)](1024));let n=r/Math[e(423)](1024,i);return n=n[e(513)](2),n+(s[i]||s[0])}(i);e.kbpsShow=n,t[r(572)].showBandwidth&&e.$speed&&(e.$speed[r(408)]=n),E()}));const E=()=>{const i=s;if(v()&&t[i(572)][i(494)][i(539)]===A.normal){let s=e[i(519)].width-e[i(620)][i(601)]-e[i(340)][i(601)]-e[i(518)][i(601)];Je()&&t[i(388)]&&(s=e[i(519)].height-e[i(620)][i(493)]-e[i(340)].height-e[i(518)][i(493)]),e[i(333)][i(534)].width=s+"px"}},I=()=>{const i=s;if(!v()||t._opt.playbackConfig[i(539)]!==A[i(547)])return;const r=e[i(412)][i(534)][i(421)];let n=parseInt(r,10);const o=e[i(381)][i(601)];n=n-o/2>0?parseInt(n-o/2,10):0,e[i(333)].scrollLeft=n};if(v()){const i=()=>{const i=s;if(v()){let s=0;const r=t[i(586)]&&t[i(586)][i(265)];if(r){const n=new Date(r),o=n[i(373)](),a=n.getMinutes(),h=n[i(503)]();t[i(586)][i(324)]?s=60*o+a:t[i(586)].is30Min?s=2*(60*o+a)+parseInt(h/30,10):t[i(586)][i(438)]?s=6*(60*o+a)+parseInt(h/10,10):t.playback.is5Min?s=12*(60*o+a)+parseInt(h/5,10):t.playback[i(334)]&&(s=60*(60*o+a)+parseInt(h,10)),e[i(412)][i(534)][i(421)]=s+"px"}}},r=t=>{const i=s;e[i(331)][i(596)][i(441)](i(307)),e.$playbackExpand[i(596)].remove(i(307)),t===st.oneHour&&e[i(331)][i(596)].add(i(307)),t===st[i(481)]&&e[i(580)].classList[i(535)](i(307))};t.on(M[s(525)],(r=>{const n=s;if(t._opt.playbackConfig[n(539)]===A[n(547)])e.$playbackCurrentTimeText&&(e[n(581)][n(342)]=is(r,n(450))),i();else if(t[n(572)].playbackConfig.controlType===A[n(542)]){const s=xm(r,t.playback.totalDuration);e[n(310)][n(534)][n(601)]=100*s+"%",e[n(425)].style[n(421)]="calc("+100*s+n(254)+7+n(588),e[n(532)][n(342)]=Cm(r)+n(299)+Cm(t[n(586)][n(551)])}})),t.on(M.playbackPrecision,((n,o)=>{const a=s;v()&&t[a(572)][a(494)].controlType===A[a(547)]&&(e.$playbackTimeScroll[a(596)][a(441)](it.oneHour,it[a(567)],it[a(481)],it[a(531)]),e[a(304)][a(596)][a(535)](it[n]),e[a(561)]&&(window[a(316)](e[a(561)]),e[a(561)]=null),e[a(587)]&&(clearTimeout(e[a(587)]),e[a(587)]=null),e[a(485)].innerHTML="",e[a(322)][a(408)]="",e.changePercisitionInterval=setTimeout((()=>{const s=a;switch(e[s(485)][s(408)]="",e.$playbackTimeListSecond[s(408)]="",n){case st[s(507)]:Im(o,e);break;case st.halfHour:Tm(o,e);break;case st[s(531)]:km(o,e);break;case st[s(481)]:_m(o,e)}i(),t[s(572)][s(494)][s(266)]&&r(n),I()}),16))})),t.on(M[s(624)],(()=>{S((()=>{E()}))})),t.on(M.playbackTimeScroll,(()=>{I()})),E()}if(t[s(349)]()&&(t.on(M[s(516)],(t=>{w(!t)})),t.on(M.playVodTime,(i=>{const r=s,n=xm(i,t.playVod[r(551)]);e.$playbackProgressPlayed[r(534)][r(601)]=100*n+"%",e[r(425)][r(534)][r(421)]=r(625)+100*n+r(254)+7+r(588),e[r(532)][r(342)]=Cm(i)+r(299)+Cm(t[r(275)][r(551)])})),t.on(M[s(521)],(t=>{const i=s;e[i(569)].style[i(601)]=100*t+"%"})),t.on(M[s(471)],(()=>{ze(e.$loading,"display","flex")})),t.on(M.playVodCanplay,(()=>{const t=s;ze(e.$loading,t(563),t(558))})),t.on(M[s(604)],(()=>{const t=s;ze(e.$loading,t(563),t(295))})),t.on(M.playVodSeekEnd,(()=>{const t=s;ze(e[t(365)],t(563),t(558))})),t.on(M.playVodEnded,(()=>{const i=s;e[i(310)].style[i(601)]=i(406),e[i(425)][i(534)].left="calc(100% - 7px)",e.$playbackProgressTime[i(342)]=Cm(t[i(275)][i(551)])+i(299)+Cm(t.playVod.totalDuration)}))),t[s(572)][s(612)].quality&&t[s(572)].qualityConfig[s(417)]>0){t.on(M[s(374)],(t=>{i(t)}));const i=t=>{const i=s;e[i(559)][i(342)]=t,e.$qualityMenuItems.forEach((e=>{const s=i,r=e[s(252)][s(292)];e.classList.remove(s(611)),r===t&&e.classList[s(535)](s(611))}))};(()=>{const i=s,r=t[i(572)][i(524)]||[];let n="";r[i(335)]((t=>{const e=i;n+=e(437)+t+'">'+t+e(599)})),n&&(e.$qualityMenuList.insertAdjacentHTML(i(458),n),Object.defineProperty(e,"$qualityMenuItems",{value:t[i(294)][i(301)](i(597))}))})(),t[s(528)]&&i(t.streamQuality)}if(t[s(572)][s(612)][s(309)]&&t[s(572)][s(269)].length>0){t.on(M.viewResizeChange,(t=>{i(t)}));const i=i=>{const r=s,n=t[r(572)][r(269)][i];e.$scaleText[r(342)]=n,e[r(517)].forEach((t=>{const e=r,s=t.dataset.scale;t[e(596)][e(441)]("jb-pro-scale-menu-item-active"),os(s)===os(i)&&t[e(596)][e(535)](e(617))}))};(()=>{const i=s,r=t[i(572)][i(269)]||[];let n="";r[i(335)](((t,e)=>{n+='\n <div class="jb-pro-scale-menu-item" data-scale="'+e+'">'+t+"</div>\n "})),n&&(e[i(616)][i(488)](i(458),n),Object.defineProperty(e,"$scaleMenuItems",{value:t.$container.querySelectorAll(".jb-pro-scale-menu-item")}))})(),i(t[s(281)])}if(t[s(579)]()&&t._opt[s(494)][s(543)]&&t[s(572)][s(494)].rateConfig[s(417)]>0){t.on(M[s(574)],(t=>{i(t)}));const i=i=>{const r=s,n=t._opt[r(494)].rateConfig.find((t=>os(t[r(474)])===os(i)));n&&(e[r(384)][r(342)]=n[r(415)],e[r(549)].forEach((t=>{const e=r,s=t[e(252)].speed;t[e(596)][e(441)]("jb-pro-speed-menu-item-active"),os(s)===os(i)&&t[e(596)][e(535)](e(327))})))};(()=>{const i=s,r=t._opt.playbackConfig[i(272)];let n="";r[i(335)](((t,e)=>{const s=i;n+=s(312)+t.value+'">'+t[s(415)]+"</div>\n "})),n&&(e[i(505)][i(488)]("beforeend",n),Object[i(431)](e,i(549),{value:t[i(294)].querySelectorAll(i(582))}))})();const r=t[s(586)]&&t[s(586)][s(512)]||1;i(r)}if(t[s(349)]()&&t[s(572)][s(511)][s(543)]&&t[s(572)][s(511)].rateConfig[s(417)]>0){t.on(M[s(529)],(t=>{i(t)}));const i=i=>{const r=s,n=t[r(572)][r(511)][r(272)][r(348)]((t=>os(t.value)===os(i)));n&&(e[r(384)][r(342)]=n[r(415)],e.$speedMenuItems[r(335)]((t=>{const e=r,s=t.dataset[e(467)];t.classList[e(441)](e(327)),os(s)===os(i)&&t[e(596)][e(535)](e(327))})))};(()=>{const i=s,r=t[i(572)][i(511)].rateConfig;let n="";r[i(335)](((t,e)=>{const s=i;n+=s(312)+t[s(474)]+'">'+t[s(415)]+"</div>\n "})),n&&(e[i(505)].insertAdjacentHTML("beforeend",n),Object[i(431)](e,"$speedMenuItems",{value:t.$container[i(301)](i(582))}))})();const r=t[s(275)]?t[s(275)].rate:1;i(r)}t.on(M[s(575)],(function(){const i=s;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t[i(572)][i(420)]){ze(e.$performancePanel,"display","block"),e[i(577)][i(408)]="";const s=Qe,n=ui(),o=t[i(609)](),a=vs(o)&&-1!==o?""+Et[o]:"",h=t[i(315)]&&t[i(315)][i(554)]||{},c=t[i(496)]&&t[i(496)][i(442)]||{},l=t[i(556)]||{},d=t[i(278)](),p=t.getCanvasRenderType(),m=t[i(393)](),g=t.getDemuxType(),A=t[i(401)](),y=t[i(291)]();let b=t[i(615)](),v=t[i(318)]();const S=t[i(510)](),w=t[i(395)];b=ks(b),v=ds(v);const E=t[i(428)]()?i(482):t[i(579)]()?i(345):i(443);let I=r[i(424)];const T=t[i(572)][i(564)]&&t._opt[i(418)],k=t[i(273)]?t[i(273)].kbpsShow:i(506),_=t[i(555)](),C=t[i(545)]||"",R=i(484)+s+"</span>\n </div>\n "+(C?i(358)+C+i(287):"")+i(392)+(t[i(572)][i(338)]?'\n <div class="jb-pro-performance-item">\n <span>UUid '+t[i(572)][i(538)]+i(287):"")+i(392)+(t[i(285)]()?'\n <div class="jb-pro-performance-item">\n <span>窗口下标 '+t[i(572)].multiIndex+"</span>\n </div>\n ":"")+i(392)+(n?'\n <div class="jb-pro-performance-item">\n <span>内存大小限制 '+ds(n[i(413)])+i(360)+ds(n[i(253)])+i(364)+ds(n[i(501)])+i(287):"")+i(392)+(a?'\n <div class="jb-pro-performance-item">\n <span>CPU压力情况 '+a+i(550):"")+"\n\n "+(n&&n[i(501)]>n[i(253)]?'\n <div class="jb-pro-performance-item">\n <span>可能内存泄漏 是}</span>\n </div>\n ':"")+'\n\n <div class="jb-pro-performance-item">\n <span>播放模式 '+E+'</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>屏幕宽高 '+screen[i(601)]+i(351)+screen[i(493)]+"</span>\n </div>\n "+(t[i(579)]()?'\n <div class="jb-pro-performance-item">\n <span>播放倍率 '+t[i(586)][i(512)]+i(593)+(t[i(586)][i(320)]?"固定FPS":"动态FPS")+i(464)+(t.playback[i(320)]?'\n <div class="jb-pro-performance-item">\n <span>固定FPS '+t[i(315)][i(623)]()+i(328):"")+i(605):"")+i(354)+u[g]+i(457)+m+i(552)+d+i(445)+(d===f[i(405)]?i(614)+p+i(287):"")+i(462)+A+i(407)+(h[i(454)]||"-")+i(495)+(h[i(601)]||"-")+"x"+(h[i(493)]||"-")+i(445)+(t[i(428)]()?i(452)+(w||"-")+i(382):"")+i(363)+(K[c[i(454)]]||"-")+'</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>音频引擎 '+(y||"-")+'</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>音频通道 '+(c[i(520)]||"-")+i(403)+(c[i(578)]||"-")+i(445)+(t[i(428)]()?i(329)+l[i(356)]+i(514)+l[i(595)]+'</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>请求响应(ms) '+l[i(487)]+i(435)+l[i(386)]+i(350)+l[i(343)]+i(264)+l.videoTimestamp+i(410)+l[i(465)]+i(287)+(t[i(284)]?i(259)+b+i(509)+v+i(475):"")+i(392):"")+i(448)+r[i(330)]+i(317)+r[i(366)]+i(477)+r[i(293)]+i(385)+r[i(628)]+'</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>解码帧率(fps) '+r.dfps+i(337)+r.audioBuffer+i(602)+r[i(336)]+i(445)+(t.isPlayer()?'\n <div class="jb-pro-performance-item">\n <span>视频待解码帧 '+r[i(472)]+i(475):i(456)+r.playbackCacheDataDuration+'</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>视频待渲染帧 '+r[i(305)]+'</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>视频待解码帧 '+r.demuxBuffer+i(490)+r[i(466)]+i(475))+i(277)+r[i(306)]+i(445)+(t[i(572)][i(564)]?i(347)+r[i(486)]+i(346)+r[i(515)]+i(339)+r.mseStore+i(353)+r[i(440)]+i(434)+(r[i(280)]>1?"加速":"正常")+i(287):"")+i(392)+(t[i(572)][i(368)]?i(583)+r[i(527)]+i(287):"")+i(392)+(t[i(526)]()?i(369)+r[i(498)]+i(468):"")+i(392)+(t[i(489)]()?'<div class="jb-pro-performance-item">\n <span>HLS缓冲时长(ms) '+r[i(498)]+'</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>HLS待解码帧 '+r.hlsDemuxLength+'</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>HLS待解码视频帧 '+r.hlsDemuxVideoLength+'</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>HLS待解码音频帧 '+r[i(504)]+i(468):"")+i(392)+(t[i(428)]()&&_?'\n <div class="jb-pro-performance-item">\n <span>Video已渲染帧 '+_[i(372)]+i(274)+_.droppedVideoFrames+i(606):"")+i(392)+(t.isPlayer()?i(400)+r[i(271)]+i(446)+r[i(396)]+i(430)+r[i(608)]+i(550):"")+i(392)+(t[i(572)][i(564)]||t[i(371)]()||t[i(380)]()?i(276)+r.videoCurrentTime+i(459)+r[i(565)]+i(377)+r.mseVideoBufferDelayTime+"</span>\n </div>\n ":"")+i(270)+(r[i(540)]||r.ts)+i(445)+(t[i(572)][i(262)]&&t[i(411)]()&&ci(T)?i(326)+r[i(313)]+i(464)+(t[i(572)][i(444)]?'\n <div class="jb-pro-performance-item">\n <span>音视频同步时间戳(ms) '+r.audioSyncVideo+i(328):"")+i(469)+(S?"加速":"正常")+"</span>\n </div>\n ":"")+i(387)+r[i(508)]+i(445)+(t[i(428)]()?i(480)+r.delayTs+i(289)+r[i(379)]+i(550):"")+"\n "+(t[i(428)]()&&r[i(303)]?'<div class="jb-pro-performance-item">\n <span>是否超过一倍率推流 是</span>\n </div>\n ':"")+i(392)+(t[i(428)]()?i(500)+r.videoSmooth+i(287):"")+"\n "+(t[i(428)]()?'\n <div class="jb-pro-performance-item">\n <span>是否在丢帧 '+I+i(287):"")+'\n <div class="jb-pro-performance-item">\n <span>网速 '+k+'</span>\n </div>\n <div class="jb-pro-performance-item">\n <span>播放时长(s) '+ks(r[i(355)])+'</span>\n </div>\n <div class="jb-pro-performance-item-block"></div>\n ';e[i(577)][i(488)](i(458),R)}else e.$performancePanel[i(408)]="",ze(e[i(577)],i(563),"none")})),t.on(M[s(562)],(t=>{const i=s;ze(e[i(311)],i(563),i(t?558:295)),ze(e[i(560)],i(563),i(t?295:558))})),t.on(M.faceDetectActive,(t=>{const i=s;ze(e[i(257)],"display",i(t?558:295)),ze(e[i(267)],i(563),i(t?295:558))})),t.on(M[s(533)],(t=>{const i=s;ze(e[i(391)],i(563),t?"none":i(295)),ze(e[i(570)],i(563),t?"flex":i(558))})),t.on(M[s(537)],(t=>{const i=s;ze(e[i(594)],i(563),i(t?558:295)),ze(e[i(522)],i(563),i(t?295:558))}))};function Fm(t,e){var s=Om();return(Fm=function(t,e){return s[t-=293]})(t,e)}!function(t,e){for(var s=Fm,i=t();;)try{if(492954===-parseInt(s(302))/1+-parseInt(s(305))/2+-parseInt(s(294))/3*(parseInt(s(310))/4)+-parseInt(s(311))/5+-parseInt(s(314))/6*(-parseInt(s(293))/7)+-parseInt(s(307))/8+parseInt(s(303))/9)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Om);function Om(){var t=["$playbackTimeInner","controlsRightRect","$controls","defineProperty","$controlsInner","$controlsPlaybackBtns","558257qeUqbO","30593178jnlZrK","controlsPlaybackTimeInner","976456ShVIDc","controlsInnerRect","5044768UGsowj","controlsPlaybackBtnsRect","controlsLeftRect","16uQrMGY","3301135VfycMT","$controlsRight","getBoundingClientRect","48aXnfWu","260953wYqujd","650409BxIuob","$controlsLeft"];return(Om=function(){return t})()}function Um(){const t=["focusFar","152367hCJeoR","jb-pro-scale-menu-shown","cursor","$screenshot","top","mouseover","playType","isInitPlayer","height","$ptzFocusFar","operateBtns","screenshotFn","lastVolume","stop","record","apertureNear","9459312wHzBoP","quality","$ptzFogClose","left","totalDuration","_lastVolume","style","recordStopFn","ptzFogShow","fullscreenFn","$speedMenu","ptzZoomShow","jb-pro-volume-panel-wrap-show","zoom","$zoomStop","$playbackTimeList","streamQuality","$ptzActive","mousedown","$tipsMessage","$zoom","controlAutoHide","expandPrecision","$tipsMessageContent","clientWidth","9vcfBoW","$ptz","$playBig","fiStop","apertureFar","$ptzCruisePause","$volumeOff","speed","fullscreen","performance","cruiseStart","arrow","isPtzControlDroging","faceDetect","matches","uiUsePlaybackPause","currentTarget","narrowPrecision","jb-pro-ptz-bg-active-","$recordStop","$ptzWiperClose","ptzSupportDraggable","47376XFuDxv","display","$occlusionDetectActive","$ptzBgActive","$scaleMenu","seek","$tipsMessageClose","playbackConfig","aiObject","$record","1126696mvpbBl","124runhqW","playbackTF","zoomExpand","mouseout","jb-pro-ptz-controls-show","_opt","forEach","normal","ptzApertureShow","offsetTop","$volume","ptzCruiseShow","percentage","wheel","grab","ptzFocusShow","length","controlType","pauseFn","recording","dataset","clientY","tempPtzPosition","doDestroy","setScaleMode","audio","$faceDetectActive","innerHTML","aiFace","flex","catch","jb-pro-speed-menu-shown","playbackPreRateChange","ptzClickType","$volumePanel","fogClose","click","block","$objectDetectActive","touches","ptzStopEmitDelay","6516830vNqrSV","$qualityMenuList","aiOcclusion","isPlayVod","$ptzExpand","screenshot","scale","$pause","$playbackProgress","playbackPause","$ptzFogOpen","down","recordFn","supportWheel","3423752BTjYns","isInWebFullscreen","playback","div.jb-pro-speed-menu-item","7Ctlbuy","div.jb-pro-scale-menu-item","$performance","div.jb-pro-quality-menu-item","$speedMenuList","$container","detail","zoomNarrow","mouseup","$ptzFocusNear","then","playVodPause","$fullscreenExit","target","$performanceActive","occlusionDetect","fullscreenExitFn","wheelDelta","playVod","jb-pro-ptz-control-","$playbackProgressTip","$ptzArrows","resumeAudioAfterPause","$playbackProgressIndicator","remove","$playbackNarrow","$ptzControl","wiperOpen","7278090UtyskA","showRateBtn","downloadMemoryLog","12848LicKzq","$ptzControlCircular","stopPropagation","$zoomExpand","$ptzApertureFar","$volumeHandle","$volumePanelWrap","1cBiBVM","focusNear","$qualityMenu","$scaleMenuList","$playbackExpand","logSave","isFocus","volume","$ptzApertureNear","$controls","classList","none","emit","isDroging","hasControl","move","clickInitPlayer","getBoundingClientRect","play","ptz","zooming","isVolumeDroging","$close","jb-pro-ptz-bg-active-show","playForControl","$faceDetect","jb-pro-quality-menu-shown","second","video","mouseDownAndUp","close","togglePerformancePanel","playFn","add","$fullscreen","$playbackTimeInner","pauseForControl","fogOpen","$volumeOn","mousemove","div.jb-pro-playback-time-minute-one","contextmenu","playVodForward","playVodSeek","grabbing"];return(Um=function(){return t})()}function Nm(t,e){const s=Um();return(Nm=function(t,e){return s[t-=144]})(t,e)}!function(t,e){const s=Nm,i=t();for(;;)try{if(791697===parseInt(s(316))/1*(parseInt(s(218))/2)+-parseInt(s(145))/3*(parseInt(s(219))/4)+-parseInt(s(306))/5+-parseInt(s(161))/6+parseInt(s(278))/7*(-parseInt(s(274))/8)+parseInt(s(186))/9*(parseInt(s(260))/10)+-parseInt(s(309))/11*(-parseInt(s(208))/12))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Um);function jm(t,e){var s=zm();return(jm=function(t,e){return s[t-=268]})(t,e)}function Vm(t,e){var s=jm;void 0===e&&(e={});var i=e[s(292)];if(t&&"undefined"!=typeof document){var r=document[s(276)]||document[s(275)](s(276))[0],n=document.createElement(s(282));n[s(288)]="text/css",i===s(285)?r.firstChild?r[s(290)](n,r[s(287)]):r.appendChild(n):r[s(284)](n),n.styleSheet?n[s(273)][s(272)]=t:n[s(284)](document[s(283)](t))}}function zm(){var t=["insertAt","133deNGMl","3122mYYGBE","1025937OgtTtd","10XYulqX","cssText","styleSheet","11921508VapGmY","getElementsByTagName","head","2106oiJItl","13zQesQD","101106iiATnu","481385tFegNU","14048WgDhyZ","style","createTextNode","appendChild","top","835041GBhiTZ","firstChild","type","4vXTgHn","insertBefore","146vhVkTl"];return(zm=function(){return t})()}!function(t,e){for(var s=jm,i=t();;)try{if(208935===-parseInt(s(291))/1*(-parseInt(s(269))/2)+parseInt(s(286))/3*(-parseInt(s(289))/4)+-parseInt(s(280))/5+parseInt(s(279))/6*(-parseInt(s(268))/7)+parseInt(s(281))/8*(-parseInt(s(277))/9)+parseInt(s(271))/10*(parseInt(s(270))/11)+parseInt(s(274))/12*(parseInt(s(278))/13))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(zm);function Gm(t,e){const s=Wm();return(Gm=function(t,e){return s[t-=138]})(t,e)}function Wm(){const t=["tagName","true","keyCode","17334cTvcZl","10dpaKgc","3501918fjgSqU","585sgAItd","1elydvC","contenteditable","292188XVqHOR","hotKeyVolumeStep","9vbLhIl","playVodForwardJumping","getAttribute","9VMzwDf","4589068PMftVQ","keydown","1261138wTqupZ","hotKeySeekStep","arrowDown","3647608JucXNB","toUpperCase","arrowRight","volume","keys","isPlayVod","preventDefault","forEach","arrowUp","isFocus","activeElement","9287700tJAUbk","_opt","fullscreen"];return(Wm=function(){return t})()}Vm('@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(1turn)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(1turn)}}@-webkit-keyframes magentaPulse{0%{background-color:#630030;-webkit-box-shadow:0 0 9px #333}50%{background-color:#a9014b;-webkit-box-shadow:0 0 18px #a9014b}to{background-color:#630030;-webkit-box-shadow:0 0 9px #333}}@keyframes magentaPulse{0%{background-color:#630030;-webkit-box-shadow:0 0 9px #333}50%{background-color:#a9014b;-webkit-box-shadow:0 0 18px #a9014b}to{background-color:#630030;-webkit-box-shadow:0 0 9px #333}}.jb-pro-container video::-webkit-media-controls{display:none!important}.jb-pro-container .jb-pro-icon{cursor:pointer;width:16px;height:16px;display:inline-block}.jb-pro-container .jb-pro-ptz-controls{position:absolute;width:156px;height:156px;visibility:hidden;opacity:0;border-radius:78px;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATgAAAE4BAMAAAA9UfJZAAAAMFBMVEUAAABHcEy0tLRZWVmysrKoqKi1tbWvr6+2traBgYG1tbWWlpa1tbW1tbVUVFS1tbVGCHqkAAAAD3RSTlMzAO9U3LSWySp3aZcVRDUDw823AAAJYUlEQVR42u3d32sbVxYH8EPHxgg/lBsa7SBkukmpSbwLI2KbEPpgZ5MQtwmM0wRMmgdhP6RgEuwlSVnYlmGMYaEvMU1KKX4QNq0pocVmm7CYfRBaQguFpbgPKRSC/4V2LGliO+bulWKrkvVrftyZ+WbxeTRG+nDnnnNmRjP3EpMR6tMH18du/0Xj1tGz5+9cf/DUlPKx5PsTkr8s3eZ1cX7ym1zkuI/f1wTFunNt9fP+FIno7/98/tFY+Y8ffBUlLrmkl2Cr96guTv27BMxP5iLCqUvi68+tpqhJKPNXBH3SjACnfimm/7Wmsl3fI/FP75lh457oPH+1Da3M+1T8481QcT0T7UetevR618LDPdH4hTlyHLGH3LoZEk6d4PlvyVW8pfNeMwzcDwa/kCKXoTzk9tfB455o1mXyEIOa+0PrFvcFt+fIU8QM/k6guOQifzNFHkN5l/flgsOJVHibfMR9l2nhBqem+VXyFZ/xghkMTp3il8lnDPKiGQROhs2lzjEuKcVW1uWk4ybk2Eq63pxk3CK/RZLiJO+Ti/vZXw3ZX1E+kon7jv+JJMY/+Q15uIRWIKmRthZk4VTDTsnFKYZtSsItWiskObq1Pjm4f8gqIrUF5W8ycAl+nAKIT/iCf1zSKFAgkW4/7drifrLmgsHF2k87alvhblFAcbJttWuDU/VtCiyyedMXbjGfCg6n6H1+cHE+TQFGFx/3jksa2xRoZO2cZ9xsUJn6e8aOeMX1aGco4Biw1jzilm0KPNJb3nBxvhI8rrtVTlCLK5ptCiEyBS+474POhr2c+NA9Lqm/QaHEiXzONW42yN5Q2ydG3OLU4MvI7+XEdImbCWvgSkN3zB1O1YYptOhoNnRNcDM2hRjGMTc4VZsOE9fVZOioyYyjUKPJrKPGNW44XFxX41rXEPc4vFTdS9iLTnFJ4wyFHAO2U1zcSoWNU7RLDnFTb1DocaLoDJfgc+HjYo3uTjTArW9TBJHdcYJTtdEocJ0NCnE97nGBIon0RQc4YzgaXIfdHhdBHdmrJuNtceubFFFkdtrhVG0lKlx3XUrsxz22KbIwLrbBTQ1Hhxsotsb18FR0OIWvtcT9Z5sijOyfW+KM6ShxXXYrXMJKRYlTtIUWuLubFGlknrXAGaPR4jrt5riERRFH7XGtwc1sRo3LHGuKi/qo7j+uhJOr9flKMBW4QR2uxk1NR4/rKjbGRdpXG/bXKtxrAEdVHNfTDXHLf0TAvbLVCJfU5hBwMSvXABfPE0To4w1wP25i4DLPG+CmRjFwncV6nIpQSF4UE7MOd7hAIJG+VIe7u4GCG3pWh0uPouA6C/txMFOuetIR3JSrmnQEN+WqJh2BVbmaSreLS+JMudKky9Xg4jYBRXq8BndoEwmXOVKDWx5GwnVs1eD0OSRcLF+N67EIKrS1Klx8GwuXHa/C/biBhRt6XoVbnsbCdW1V4bDyoZIRZZwKlg8iI8wKLl5Aw73oEWXcoQ003NCRCm59GA3XsVPBTa2g4bqLFZyWQsMp1h6uJ09woa/t4tCaV6WBEWSy7qYrQSbrbroS2MVNzUUOAXbWSnel0sU+AUbpsl/gEjYizlgo4w5vI+Kyl8o4xEryopYI3N1hRFzHszJueRQR17lVxqXnEHGxQhmHd06yd15CgBcQlcsIYokCJi69IHDxbUycOGki9toGJm7otMC9/ism7tXfBA6zBperMIHW4HIVJsDrwsrVIYE2CNEibIHDbBDlFkFJ0AYhWkSOemxUnLFGqN2r1L8ItXuV+hfFN1FxmXH6wwYqbuivdAgXd4RQ+36p8xNq3y91flqfRsV17dD6KCquc4eWcXFbtLyCiusu0hQ0bg4VFytSGhdXICOFilNs0nFx+QOcZ5xGsGEd4DzjOC6OH+A847QD3P9jtuJ2CGjcQeP3gYM+2YQ+TYe+wMG+NETGQd+OgL6RA30LDPrm4eu/ouJe/Q37hjX0rX7oH0mgf16C/mEO+idN6B+DoX9Gx34AAfrRDeiHXqAfF0Lt/OUHrVAfUcucRn+4D/qxSOgHSqEfxcV+iBn68W/EV3AqD85Dv3IA/bIG9GsumC8IaSb+q1XYL6VBv84H/SIk9Cuk0C/fQr+2jP3CN/Sr8tCLDEAvzwC9sAX0kiDYi6lAL0MDvYAP9NJH0ItGYS+3Bb1QGVaP2LfEG/TieNDLCmIvyAi9lCX0IqDQy6diLzwLvWQv9GLH0MtER76rRqWxPgdemtwYf9kWdYdeDh97IwHoLRigN6/A3vYDesMU6K1msDfpgd7eiOmjSEf1ZdpSC3ozMuht3LA3wIPeOjDSTRdfKb7M21VCb/QJvUUq9uay0NvyYm9oHFFKdDvaChp6E23s7cehN25nh5G3vE8aZ8LGDdjMIY49zoc9dPpFx7ikHnIh7sjnHOPYTMj36oxjzDlO1UI9Xe9oUICb49iMDTBwzXCqFuKsG2gycM1wYtaFlrCK3mTgmuJU7UzkA9cUx2bDGjpFH2FucUk9pA57onGNa4lj31uhnJzEtA+ZexxLh3KpkykwL7g4D+GUuJuPe8Kx5RCuJtJbzBuuJ/hyMmCtecSx2aBzIqaNMK+4pBHwtU7WznnGiZwI9Oykq1U2tMWxxSD7hKL3MT84VQ/wwGbzpi8c+47fCsp2kt9g/nDsp6AyNqb1Mb+4pBFQKU7bpm8cS/DjQdg+aXT/wTWOzfLL8m2DfITJwLFFS/oZQHf7CecQpxq25GqnGO0nnEMcS2iSq13WWmCycKLaHZebDDeYPBz7mb8tz3aff8Rk4tiivJQd5H1MLo5NyNIN8t6cbJw6ZV2WYys6tTnHCZ2MsRM2k8nHSdG5srnBMTXNr/qzfcYLLmyucEyd8FdR7vNeNzZ3OJZc5G967mTKu7wvx4LDMfYFtz2efMYM/o7LL3OLY080byVlULNusqBx7AeDX3B9aJWH3P6aBY8rpUX+W3e2t3SXqeAZVzq0/JyLmRe7wt0fUs849t8Jzv/u8Ngq/+K8d42FhxODp/P8VQc85VPxjzc9folXHFO/1Lh1rc3BjT0S//SeycLGCd6Sxvm51abDp8xf4dyaNL1/gw+caBhLuvj6O6v36mWn5scEPe+H5hMn4uP3hUEAr63e6y+PYX//qflHY+U/fvCVzw/3ixPD98vSbV4X5ye/yfn+aP+4MvDpg+tjZ4+K8bKOnr1z/cFTU8rH/g92biFxn2S73AAAAABJRU5ErkJggg==") no-repeat 50%;background-size:100% 100%;transition:visibility .3s,opacity .3s;right:43px;bottom:135px}.jb-pro-container .jb-pro-ptz-controls.show-vertical{right:43px}.jb-pro-container .jb-pro-ptz-controls.show-vertical .jb-pro-ptz-btns{left:0;top:156px}.jb-pro-container .jb-pro-ptz-controls.show-level{right:163px}.jb-pro-container .jb-pro-ptz-controls.show-level .jb-pro-ptz-btns{min-height:156px;left:144px;top:0;display:flex;flex-direction:column;justify-content:center}.jb-pro-container .jb-pro-ptz-controls.jb-pro-ptz-controls-show{visibility:visible;opacity:1}.jb-pro-container .jb-pro-ptz-bg-active{visibility:hidden;opacity:0;width:156px;height:156px;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATgAAAE4CAMAAAD4oR9YAAAAM1BMVEX///////////////////////////9HcEz///////////////////////////////////85yRS0AAAAEXRSTlO5DCgVgZBxAK2fQDRkBR5XTPLKM/gAABnnSURBVHja7F0Jkqs6DGQPO9z/tD8Jq6WWbCCvIjKfzAGmulrW3ooedr6ui+M4TdP++SXPr1l/SdL3aRrHhv7ZyA5qb9xe0L3Am+DrkzeCL/BeX908MezTuPsfOArdgl3KsZuhq99fk/Tx3waum+ByAHua5QbYilkzY1aP728YhrH5InrfBa57OLAtVjpRbYaumex04dq4APeC7vnVSfo/45bXLe33jGscMx3f0A1vyg3t69e2dRL/NeA6wrgdcCvjyPM2U25mXDt9xVD3f/qN0yi3Mm6P20S54vlXtGPS/R3GPSbYOsC4ZAvmJtiaGiL3Zlzx/Ht+Y/KXTJXbqmaqe9za1VYn3N7YpX/OVGev2qduOLIiB7xqOzGuWCiXFVmWtU3368A5lkqeOJI21I5XXaORxVRnxmUTdNnY/4U3riNvHMJts9XRtdXVUttipdzrK/4x7UyY6sK4Gbo+nU21T1zKcd9AGJetlMvyLKvj3zXVfeqQElMljINx3MK4xVQ3xj2Ry7N/6CiMOIfYyVUXWxUyBx7HuZRbcHt9bf/Lb9zsHlzKzabauJaK47iVcC7jJujS33/joKkmxDnM4QiJ4xDjZuT+DXQW3jgxV012qcPuiePhCGfchlv1/P0D6Czmqmuq2gPGkbIS8Q4ZsNU3dGP3Y2+cW1RyKpkrbAnwqhi3iXHFHrU3bFVV5c3vBsCsOALjkXErAW85F3rjFvBm5Kos+TngCOXYG7fA1ojFER7GPUHbmer0tfGPANeROM6pjvDMQSkrsWQ1d564Fbr61964TvSqDa6O0ELmAtvGuc2rrpQrn/aa/qCpYq+6mSpOVhnjWBy38u2JXFl9yL8acg6CV3Ur5yxVZfW4AsRxG+XKssz6n3njVMYR4Eg8sj1yi3tgtroxrpyhG38gc+h8PYddPQ551dVQW5jju2/cG7kXdB946Uy9cbDnQOpxuCCHcq5dHDcht8D2/K67VxPNGtLJd7qDTcgb1zLGbXEcY9z0Fd39GReTzIH1B/2lcxrGTYxjXnXyqxNyef8zpipVlfDsyCCmDkuumhGvWq6W+vyisqxvDJwwOxJQO6fNmjaQcRt0ZdR2dwWOFZViuculNWtgBZjk+DNq1cq45y+Lf5NxE25B3oEyLueFJWqtT+Ciqr8r48jsCAyAG+2Na53MAdQxX16VhHEL4Z7Ilc2dGad28pskaULiEdDlyijjdqa6gBeNtwSu63AnP3V6NUnAG9cu1RHOuL2hVi5qr6+9Za4qV0dCGcfCEfDIufWRFbsZvKy7KeNgW7XHvRqxWfOGLhO6XCrjoiiPb/rGdZ75uGRfj9u3B1sWAEtdLuxVF/Cq9HaMe4A4TptkZYwLqI44rmGDbUe5E8hZcg54zquRbHXu5NN6HKuO7N84YqwbdGV/Q8YF5arUN7CJTNLkgplD5T5xG+OOI2ehAhxv00ocOlpWwhHwljns5uNg6bxCb9wbueSupip6VTnj2jGudSvnOeqrVo6h7vl2nHM2K8AkV1WyfDYDvHUcWF+1VBl3EDlLKdc2dQ6aNbhXw2eAt14Nf+MqFse5rDuS8tucHUmhqaJppYF6B8440h7E8cjhqMTiLtcaAL+ga9jWZb35hpbHceyNI9WRSmHcE7n4jqbqTp2D2nnzgm154mB1hJQy1cwBIpd3twCOrjnEoDsoTZ2jepybb2VKrhpx3zB92Z29Khpl1ZN8MHWzJV1CdYQHJEeqTMbqcfEMW+obLBwES83w7AgvY0YlMNT3N96GcXEHGQdxG2t3CQ5kDkoFeO8esHd4fc193jinAtxvXhUN3Ywz5VAFGM3cENfgVM4x5YICYRumqu5yIVMdJuhaLXMAFWBKOIhbWFBiO44Dg4Usxx/cCrDyxqESMIYuu4lX1fYcGnVaaVmtKXZxHOzW5Bvfqtk3iLAFuVaLew4HluDUzIH1VYMZF+AgLMZxcAYY1uNYBTgrwPDIaqxOQ1p540IchBFTJW9c2ofNAO99Q+sYaugbJ35Vd4sKsPbGqVM33KsWmdpXLeXqufsVNwhH8FyhOh8n74foKb5WVDr0zFky1Rgt+iaJZyJTWErKMynpqsqgVy4q0xv0VTvZq0pJPq5jzn41zzzVET0aCYjmTO05OLaaBEwWqhvSenUkKtVw5P0N96mOpNr2YCPuh4AJCGEAoioDver7628Sx8WAcU2i1eM259AWhZBzuQEJieN07JR6sCHgXoSLnepI7yo9NqgCLE5A6K4hjHGKsVqK49JYEGyBg4XIq2b7FREUx5Xu2LkXOtmz2pJBW5sOqdjJF3sOjHG5fz7OT7n8DtURwjjPtBKtx7VLOa6Q4zh5Wkn8xhvU4xbG9al/s2bAbxwYkJO7XCGME43VIuMc56Dnqi7hpPE4cVopBLnibozTp5X4DHAQ49iwfsCX3IhxYFoJB8C0y7Xr1iwBSZXDulIUjF11G6+qr5aPALlCmTrfyWfQzCEK49xoPMnnjFMaq3QlX9tzQPuq0QFbLeNbMU6cHRn3Sb60HwJ6NXAhKQi61nzpPAbtQaY8jUUgQnRHSodxZSjjoig161W7HePIRGZDJzJHQXiEzE4DpRtSjotCHzkUkhj2qqJi4V54T1S6cWwVp/nhjAP1JQuDhbs4TtFW0spKTgW4UHJVFv4GQpcZA64jkt1xDNS8lDEv9Y3z5KpRGY4biIINMC7e2lxKNFJDqUfQquGZA2yrHoINUM7G6ZX1iVM2RKDUI08dssVUfduDRyI5QDkbFWCnscrWVWV1/RZ2uaRc9UyKL1LO0r7q1qwBm761WsmEUjdge9ApAB9iHHWslq4kMalHTbHQieO0zXKljHmIc4XdOE695yCpsg7eOE7t5B/4Uqv1uDSGKhDYq0r6yQWYj5NnRw5BNxjOHJAKRJB+nJqr4jcuOki4qOzs5qrgulSDJzJHUcyrCNMdOc44ty5nel815KDZ4HTypeoILAEfZJxbCjYkSpVKgZx/IpOfXgnarDkKXWIrHAm7kiTqxw1er+oQzg2Bj32FTcYJ2kpCIx9PK2XMq1ZCz+EM46LYZK4qaCsdmo+TqiOV5FWPITdYLZ2jOqYa/6LN8kJSZT1dxkSTJEYKmZ2/OuI5aIYYh+UzKn3TN9A9mLjL1cl6LexKkqof575xVJWVx3HRefdgUbGQNGs2U2Ul4HYQ60o+HeBzjCtt9VXVqXMpc3DEzh2NzEJSnr7OuG35wUTpPGjqXN3lQgdE0AWRA2sOHls1eO2yh/uqWM1LbUgvQzeatOhR5NZM39QIBNyQbviBVajYItbOYa56knCbrRrUj0vxTn5QVQlOnUtdrjKKztuqpbMEJ27WtCG3BzX9uMPfYqsmlW7SPnRfFeSqwTrAp9641VZtXi1PlX1VN44THzlvPe4k45aZLys9h+7cvuqsAqEpBAm6I9HJN24pZ9oIRzp5XzVUsVCZOnd0Ry4zbu52GdMBDn7j+NVyYXaEneW6+sbNrQcjtwdJCTh4WmlrSLcF3axRZ4AvMC6zxjj9annty1X9M8BoefBMQGKudB5UjnMnMltQV1JuD5JK5jnGTUU52zeke+4cfMJ7ygxwSZuDJ6EbzDEuZF+VNLnczCETlPdkdf3Tj5yhAHhNVdV9VXgJGV9JyqWjjRdS1fWRs6vmRctK1KuiLD/b22q2KyvlWJT1HOPeo3IWqyNwlwtrxJNrlwW69ZNr0qKnoBsfNrWVcH+w9gzIFXxDeisr5cxSrzCusFVWkpVukH7coF/0zQRt0a2QGZ1HLrfAuIfDOL/uiLOTz9UMMiTmtXMOVXmxW/P+OqM6wPBKEmLcbuiGMw4lq9cmIPbewa5iIb3LdYxxKHMouYDcSeRqcxd9+dS5VFWCGZd3e9DtR5+21dbYRd/1EAaagUC6IzDLV7YHj4pSKbmDkZRLnmRNcHeQ3azZdvLJ9qCUOVyhXGVmQUSpx9GWAzNW6Y0DmYMzrbTeHjzxxTeI41zktugXtQezAsRxon7caUt9VZZMMQ7pAPMnjnTyB5lxJHPgU+enGTeajONUHWB46wfW41jmAE79nHerNiYyFeXpBu/keycyM8983CWv+sxWLe2rsgpwH7qRxPuqb7pl6IKe61RPYpcbvefQy3e58LSSbwY4B071CuNKk31VtswlTyuJ+6oZuss1h3HVCTEDluZb7Ks6prqrjijlOLTLxRlXUhng85RLo+77por7qp5c1fUN8I1Tbw9eqce9ArkvA6eqxOOr5UQGgrdVC1l5GszHnYSuNsC4OKgeF6au73S5Mt983IU3bvwqcN3jAe9y9VgkvvHPskp7DuI9h7PfYOGNw3EcH7rx91XRPbNPT2TOEbCNNw7uJOGhG+naD8+5PG/cJcI9gYu/CxuYVuqd+6reHbgBWqrvavlV5LLvAqfdc6AFYElcyW1IS0eScqg7ch65/MvABXW5ElWvZXDiOL2Tz3VHzn7Vt4F7iNuDobMjwp7DUh3hfKs+EQCbAs43O9KgG9KDrK6vMe5qIPdd4NS7XFLi4NxzADf0eEPa8aqX1lV35REjb5zac1geuYVwtfjGbTmXsJH0qf7g14Hz9xzE9iD0qigewTv5F71qaeKNwz0HXI+jb5zLODABQWaAP+MbXA2SbxdH9KlzMjw9jvAUMr72o6363hQ4VyQ+lU+vkH70ALVFM2cnP8f1uOojhLPgVZnWI7y9Enjtcr+TT/qDJdj0LW9tqlgFQtUdYQfNQupxnHE3dw5aripmDgOcOt90gHOpOvKRF85EOCJKPSrVEa/y9D9QLDQEXKco3UiqVPtdrjZIIxNuSEeX+qomc9U+3S/WUIUgvD2o7nJ9UnfECnAPWQUiSOu8HYKERz6oO2IDuE7THcHOATIO9xzQhnT1IcblVhjnagRp8QjZVw1gHOFb9ZnSuY1OvutVe3/86w4Be7XOc6GvetsuF47jAq5dElFWn9a5oJF5YUDOBHCdds9BzRw2xrWy1jl946qrC6tfb0i7uWoKZ0eaoJs1e8LR+6pQPy66GMiNhqaV4ljbc/DqjrTC1fL8n/RVa0ummiI1r0a/yyUPT2dcXBR08s9Cl9gVpdKvEvgO00LB7qta585g4eP7jIuDxEXdaSV87TID91WdiUx67uf011lkHBTea/R6HN1XhTdr0AmROw9Pd1h5euurJvxKEh2e9uyrfnYn38q4vnp7cLchXXuVbtxdLoFx1UVtpWnv0uLNGudquTCROXj2HHI6riRK791zJakjIxDKRGatMI5fu8z81y4vzU5bE2yJmYLyFsc1jaythPcc+CW4j2grGVi71GTQgnLV1tFrQduDUj3uWvwb27p2Sefjel/PAXXy+QywoFh4IZKrTF67lC6I1H6NTHEGOBeWB88LoVm6dimoGaxO1a+RiafOpX3V8r7yGayOuZfPgGsOQhy3V4Fgew7wSlJ5hXG1aY1Msj2IK8B0BAK8cYIIxBXG9bZuD6ZUlCqk5zC0x/Yczh9YtSVK9ZA3pAN6Dqq6vnAo9ANx3Ndl0LazXPK0kq/n4J06F+45XMkc7Ajv0Sy/VzZrpAsiLUnyhZ38fQX4vOqIOXX9o9cutRlgfZfrSuZgTVxU9KrKPQdQOgd3CZB7OO9VzcnZ4pYDHddnkoVSrprlAXe5ynN5gxF1/Vi7ocenp7XdcueJyxSt8wtjhRYku2EcB3Hb1LxqHMb9192VJTmuw7DxSsfxdv/Tvn7TSceiAEpylqYnH/lWsWBRXABMVLHQ8B4cjvWUfN1xTYU6wJEqqy7y1ynBEIGt8ycqBxe2BGh3JEt3hO3HtXjm0KFJ/kHIOTDCmEUM2RFMH9ygn8N+WoNmDpcLZEgfFuz2pQPMKof7eHBME0RsxAVX3OFS1Y/Zj77jtGQ34nLRWjVeHtFF/pOIc2EvRdf1m/2UKy11s+8qtXzmAKQMhiNNTDefqiWtFIlkQqEbNJFuO7g6oqr84p8PC710IxN0R0bK5VIFV2svTx9CnCPTxspm1iiGiBKeptmh26tAYOXpp+y3HSGuqUwnONzIZN7bRAdYp4bDZpee5qq5OsAKcdTQISjykUjmM/aq3lRZK3rH6a5SOMmPZw5BQ47yQ05rvm3NVVXhkLCs0YqF2EN60A4iw8Ev1dtcNXvmsGK+qukh/QIRtEHE06cK1fXtKRfLqoTLRadcw8Ev1ZkTXBXzVdkdt5k1PvtQo/24I604520lvq0EFAvxXLXlytPHpjUXcRU4tTuiJvkx4EbugxHojrRJTn4p5jY3gcspucLQKW0lVnNhFQhF5ir+VhsvgZsN/Tji9cOcVybD6wcOuQ5MuXpxirhyt0tTea9NTPKLEVf7CdzMaZdZbpd0Pw6LZ1wiN7PhWGpwk1Uz/BzQDsSEnOB6vXT+cLscntoB3sQZ4qiaV/qOixjSJYgrBNwwu0OcSYKzzbe1ExwYrF6InFdpVp3EG+IIJSlsnWv9uEQ/DrMH497IcOgt4hNxC9vXv2b5ElhU32fuuF78IQ4r3XyreV3NST5V86K16uG6YRF3iIt1gJscxRbgE9oG88E2oa5fdMu14h9x5pZX2I9DuaGn+nGXmOdw6PHrvh+X9OWagGdNbzCkI5uk7NhpwHliSDf2sIY4wQHl6ZysWvoaqcUz4hLyGUrsfF85QIZIvASsh1zZsYsA54qTDyuHSAViM7wH+x6NarDWeRHiFpHT3HE1g5zldsk6wEDOdiiwJejFJeKYvaqtWEhFqShfFSkWHikaPHZH0qJUxEOvnK9a4CE9ibvACVQsbMLKwWTWGP6qMeKOAW6o3AWOXHHZ/TiD55BGXHZW3UScfqqPVdbGMjSLa1VVcRG+KmRI53fOOxGnn2piedpgSK9GB5h0MssBVzsM3AwdfXPuuFh3ZGLaonBUk3/J9eIfcXDmcC1RLEwotgTvuDzIDY3LwM1z0kMam/1gjcyWjQePq7VscjrE2YuFxNHMLFWB1vlwKDO4rlX1tj7ROidZNc1XzZJPZh/q73O5BPBVo90R5PaTyKqYPVhcdK3iGXHxJB8RRLT14KZYl1FW7RJa5zkf6uw2cJJ8x5kbmcDsx+yO6NglQreInO+Oy9oBNry348qh2M5hFTkH4sysihA3WXNVvAIciQSVtH2d745kdZUYQ9pa1o8QNxzLqO4m+eFcNRk6BLmWiHZ3gK+a+FZH8Y444q9qbuuTmcMLlad7Ee+Iq9gOcNJ7cFqZDjCXOs98AV9m8Y84OFitI7fLK0VcwHPoqZ+Dks+wPtRhEf+IS4kZ1ElqOZrW3CBH+ar2O24U34GT8rmqntWsif24jjFrrCtuEjkD4qC2kpqrjrQ9cpDLZXlIt+I+cEl/VernsB7Zj9PTQZIYKjkX4iCz5go7mYpZY2qdI77qH+M9MtRyGsQZXC5rrzBWnt77OQCNzKB2YIi7ipwDcZXJ5YJS54p32UM/h84WAmZZdZMTBE435LLt3sm2foajbyqtTnKCwCkVCFMlHnKSpkhev4UdYHDHke5IK2cIXKACYbuWm7UqVp7uzDsOI66bzxE4ogKBZg5ZtWqCIR2+4wDiLtl2s84m+VW8ra+YNXZ3BHaA4VwVvn8vjcipEJezr8/UDOgOMDeYYv24ZGXvtzuS0Y9jO8AT3QHmnPzhz9G4OZs5QKIvFgJW40FYqraAWRP4OQSRK4qbM55Dxpeqd4B/uiNTmj1oVg5ZhZbvKZdi1mBHMyIuanPydXdk97GW4U28GZqFSjdL8h2nkgN+x7E7bo+40rj50AHOkTq3NYIQ4tpolRXKi36/Q0rj5m2uWkV81ZS6/hRvK/XRyIHRHIby95v/d1y9WEk1lmW1uVx4XekWua4SOSHiKuZnZu3HYXV9yh6EPIc74NojBuQe9uMqUz+ujp4jI+2dt6w7Qp3ghuw+krNaNctBrwYqaNB7MHgAdyk/h5K+pdfx4GzusoafKujHRR3gDu/HhfpxfxF3lTMGbrZtCdB+XIi4KDegmQPagbh1zsufIY4QV2ltJcVXDTn5EeKKuFyqcmgrOWng9g05pZG5RFvnd8SNtDuiPKRbw9H3/ztumkVOjrg5ra2kEIe7IxBx4e7IA3DjMwf3eMfhh9xovH/73dZ5n9cBHrpFzhs4hbhgB5iqeaH5IGDWtCazZuhnOXHg5jmdVX9mDte0u9TjAQz9HB6Iu4zPHt2v7kgNe+cb3FbqeVa9qBfw39C1jZw9cMBDmr7jwqHDylzL+5Sfw2V9wcn9Iy5qZFoTaZRV9b7+k1nB55Sr2gEOaysFiFO+tCSrhqsj2yzyjyAu3lYCHnojyap85gAdfV9wu3l+x2V0R36INSvWAUbvuMvzydRprWogTmfVO+AI4uB+XF/JvxK4UHekMZRucHdkQhsQvdqPuwGurV95cl+LhUR3hPfjTN5lkFa78bUH97StdEdcOJC277h0bvgO24ty6RkQV5OtG5Pn0GIy19S8/OCeKofojlu47gjVT+4/EjZvdu9grnq1uVxAB1il1beEzRtBJJQICv1VMeKU93a0OzItbzq5k90RgLhl+XGCqy3ERdYrO0fftXnb2T3VqjfE5aigMbf3YANirN54co93XMjJT20rhWteP5Hrr/NbT+7xjoPMctOzJkqq6/Luk3u84+7vuGUBSzeBweoE3yPTm8Hm444LiA5gyMXuuJU56G3NR07uAXHVwwo5fgBTf1Xo2rjVnzq7r6yK1LwSr5HHHTdt9fy5k5/R7XLcJdX7FbeOy2dP7trPweQ57FRZx7r6+Mndq3ldEzrAY938ysl9uiQ1cJNVa2SO16X6tZP/dj8uDqJW2VfM/O/ftf7FmPkK3OMZ3MAu8G3T6ytiTTU7OK8jxMlfuN1idg/X91/9VUZ81WOVo8P+Bw+0DogP6NDPAAAAAElFTkSuQmCC") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-ptz-bg-active.jb-pro-ptz-bg-active-up{transform:rotate(-90deg)}.jb-pro-container .jb-pro-ptz-bg-active.jb-pro-ptz-bg-active-left{transform:rotate(180deg)}.jb-pro-container .jb-pro-ptz-bg-active.jb-pro-ptz-bg-active-down{transform:rotate(90deg)}.jb-pro-container .jb-pro-ptz-bg-active.jb-pro-ptz-bg-active-left-up{transform:rotate(-135deg)}.jb-pro-container .jb-pro-ptz-bg-active.jb-pro-ptz-bg-active-right-up{transform:rotate(-45deg)}.jb-pro-container .jb-pro-ptz-bg-active.jb-pro-ptz-bg-active-left-down{transform:rotate(135deg)}.jb-pro-container .jb-pro-ptz-bg-active.jb-pro-ptz-bg-active-right-down{transform:rotate(45deg)}.jb-pro-container .jb-pro-ptz-bg-active.jb-pro-ptz-bg-active-show{visibility:visible;opacity:1}.jb-pro-container .jb-pro-ptz-control{position:absolute;left:53px;top:53px;width:50px;height:50px;background:#fff;border-radius:50%;transition:left .3s,top .3s}.jb-pro-container .jb-pro-ptz-control.jb-pro-ptz-control-left{left:33px}.jb-pro-container .jb-pro-ptz-control.jb-pro-ptz-control-up{top:33px}.jb-pro-container .jb-pro-ptz-control.jb-pro-ptz-control-right{left:73px}.jb-pro-container .jb-pro-ptz-control.jb-pro-ptz-control-down{top:73px}.jb-pro-container .jb-pro-ptz-control.jb-pro-ptz-control-left-up{top:39px;left:39px}.jb-pro-container .jb-pro-ptz-control.jb-pro-ptz-control-left-down{left:39px;top:67px}.jb-pro-container .jb-pro-ptz-control.jb-pro-ptz-control-right-up{top:39px;left:67px}.jb-pro-container .jb-pro-ptz-control.jb-pro-ptz-control-right-down{top:67px;left:67px}.jb-pro-container .jb-pro-ptz-icon{position:relative}.jb-pro-container .jb-pro-ptz-icon:hover .icon-title-tips{visibility:visible;opacity:1}.jb-pro-container .jb-pro-ptz-btns{display:block;position:absolute;left:0;top:156px;width:156px;box-sizing:border-box;padding:0 30px}.jb-pro-container .jb-pro-ptz-btns .jb-pro-ptz-btn{display:flex;justify-content:space-between}.jb-pro-container .jb-pro-ptz-expand .jb-pro-ptz-expand-icon{display:inline-block;width:28px;height:28px;cursor:pointer;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAMAAABF0y+mAAAANlBMVEVfX19fX19fX19fX19fX19fX19fX19HcExfX19fX19fX1/////Pz8+oqKjCwsKhoaHn5+eWlpaOqTaDAAAAC3RSTlP/3CaKxwJiAELtp4ri/s4AAACuSURBVCjPfZPREoUgCERXBdPRyv7/Z6/Z1aQp9oWJMyYLiKUrOIpAJBdGCldgbzBkPM/QEoTI3jBEPBRDhwEvChe08Q1Ge0ImvIq4Qj8ljrLdH77CyQPWlCdHC0Q1e9rmmuC+oQN9Q4LwcQg40L6eyqm0uEpXSUqe3fKpkkqL+Y/o+07SrahNEO0T0LBsvOitf4xsLqiNTB32wtqaVKosGLO2mhUrS93+PZ4D99wPqzMJVcbEyA8AAAAASUVORK5CYII=") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-ptz-expand:hover .jb-pro-ptz-expand-icon{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAMAAABF0y+mAAAAM1BMVEVHcEyZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZn////i4uLZ2dnIyMjExMS8vLy+iXNeAAAACnRSTlMAYomLxwEm9+NCLo6DKwAAALNJREFUKM99k9kWgyAMRIMmEMLm/39tKaVKFJkXl3sYJ4sAXeQ3ZOcYd0+gRYblFBuFLYoS2ot5lpvYn8zJQ65TO2GVNmdCmQq/qczw4gjpejD14BgmhziEIvCjVRlPioftHW6A7xBB1a8CCUMvsuSqEkPM7eZX6h8GrQ67bYpNIbRL6rb4/k2EfVXKsgmqfQrW9qnGq96a28jGQG1ky2HXpVysyYyeDIhWq7le6ua9P36HD6+2GRi8iBZBAAAAAElFTkSuQmCC") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-ptz-narrow .jb-pro-ptz-narrow-icon{display:inline-block;width:28px;height:28px;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAMAAABF0y+mAAAAM1BMVEVHcExfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX1/9/f2/v7/y8vLUObqxAAAADXRSTlMA3IrE6SZi9wI+y0gNXAn3CgAAAI5JREFUKM+Fk1kOwyAMBQ04bJHT3P+0JVUMNMWv8zvSk1cipfjAKXHwhR7k6KTjYp7dVuWLug1XWB5wz96T/JD2O3Phmv0k5ypL6lVVFIPYpLOka5WKSSFvS0/BloHYlkza5HkMzrvVLo8ZlRr7mtFYWBBsBQ4BjC//GTxcGVw2PpOVHQ6fJj7qS4936OoN2K4e5yE6N1UAAAAASUVORK5CYII=") no-repeat 50%;background-size:100% 100%;cursor:pointer}.jb-pro-container .jb-pro-ptz-narrow:hover .jb-pro-ptz-narrow-icon{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcBAMAAACAI8KnAAAAJ1BMVEVHcEyZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZn+/v7X19ckk9ihAAAACnRSTlMA9+NCAsuKJsRiPv/2GwAAAJlJREFUGNNjYAAC5gxFoTYDBijw1FoFBIumQHjsUavAYGkBmGu0CgqUwRqlYNyFIO2Fq+BAnIGBJQrBXerAwLkKCUxgYELmKjBYIXMXM2Qhc5cxdCFzVzBoIXMXMYAcsRsMdgEdgs4FKT4DBqdAitGMQrMIzRkojlRB9wKaB9G8z+CMGjgshjCuMCjoWNxRAxYt2KGRYgJiAQAnZcjElaB/xwAAAABJRU5ErkJggg==") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-ptz-aperture-far .jb-pro-ptz-aperture-icon{display:inline-block;width:28px;height:28px;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAMAAABF0y+mAAAASFBMVEVHcExfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX1////9fX1+kpKRzc3ODg4PFxcW1tbXW1tbk5OT29vaVlZVmZmZ8vCMFAAAADHRSTlMAxGJ5Mssm9+NCiYtiH91SAAABAklEQVQoz41T7Q6DIAyEJQooUL55/zddhVazzZjdHyqXXo8DhWCYTWqltNyN+MZLuxP69UGti/vAsl6c0e4L+tQ2yv1AEbvecMhO5cXdYhk+6aO3WGrNAMwentlMz/ZAKIlNoRsqY2wtFWu9t8wasc0iYVN0LkQfrG1zbxNyrIBcntOQrH1Ukkb60QcxYF1xMA2dh8zWj6ZDsLCsIrL4Ds5Hm9FMbCEROWUB0COaLXEIZJKV7CKybGO7UuxjxY2C/TkMbxboKBQCxgMN6MCJQ6Ch/QjOZg/B13LGx8FDTe3IFvl+Bc9XBi3UWoex68qeL/vxmdyxyvz3NJ8f9dDef36HN7koIK2LjxB0AAAAAElFTkSuQmCC") no-repeat 50%;background-size:100% 100%;cursor:pointer}.jb-pro-container .jb-pro-ptz-aperture-far:hover .jb-pro-ptz-aperture-icon{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAMAAABF0y+mAAAAOVBMVEVHcEyZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZn+/v6cnJzr6+u/v7+xsbGlpaXNzc3b29vqh7uRAAAAC3RSTlMAyRjKA59J/3PzPhe1wxwAAAD2SURBVCjPjZPrssMgCIR1mkYtisD7P+zBCyZpM5mzv5hs0M8VnZvaok9BlXzc3FXbO5z0vtifFC5Kn8OL4UfxwVvuHm61d5Z0b6ZGZZwZpQAUosWsjVZntVS1sH3ZFo1IRVYfGXgx+VGwNkkIVbhq9/jm3cAhaNv1Uk3IA8mNn7D3kbQeWK3TLH2jCthrDFcTMwUWaKiClc9mJtJWhS3SF5BpJqMQW1b3xwnkDahMoHYomkeJRgSENA/MFsKML7fgoCBVbGvM+Cx4JcKWbWHKK/h1ZYS1Jy/nK3u8bB3KhzG5deMxtfv3aO7/Heq+9ms8h9fxHP4AHzAWU9zlWNgAAAAASUVORK5CYII=") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-ptz-aperture-near .jb-pro-ptz-aperture-icon{display:inline-block;width:28px;height:28px;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAMAAABF0y+mAAAAQlBMVEVHcExfX19fX19fX19fX19fX19fX19fX19fX19fX19fX1////9fX1+FhYWbm5vz8/Nzc3OwsLDi4uLDw8PW1tZmZmYgm6a+AAAAC3RSTlMAYmOLx4kn9+NCIVJiPGAAAAD+SURBVCjPjVPttoMgDMOJAqOU8uH7v+qKFN2c597lF5LTJg1VqQG3aGuM1bNTV0wWDtjpg3pq+IB+npyzcIE9ejsDXzDCrjccs+tOariF3n2OLyw5xko0vh9MDjNb9Q0hp2GK3cixlIApe4/JD9appR8SFxWAUFLg6n63iB1irnY1Jv0mlrok7nUdcZRa1YeshxBA9iijChlxI6iZEaBgSEL2tkRcymPGGJpqlbZ6uDg0WR/F0DwuMpxDkYwiIXA8hO2uMJdGCCK6teB8RQoY8xGfevQjxYQt25qoRwDT25MRBjZ7GtP/P/afa3LHmrflXa+ruf661Hvv+et3eAF6Fh3v+sSUGgAAAABJRU5ErkJggg==") no-repeat 50%;background-size:100% 100%;cursor:pointer}.jb-pro-container .jb-pro-ptz-aperture-near:hover .jb-pro-ptz-aperture-icon{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAMAAABF0y+mAAAAM1BMVEWZmZmZmZmZmZmZmZmZmZmZmZmZmZlHcEyZmZmZmZn///+qqqq9vb3z8/PMzMzo6Oja2tpXGg+mAAAACnRSTlP/JomLxwJiAONCr+rW2wAAAOtJREFUKM99U9sWhCAInEpLBS///7WLEWy7p9O8qEzCMBIOQ15DAlLYsoegS9yFMKQ93skl4Adh+ZI54Q8pG5nxgKzkgkcsk4zhmQxRyN1OPHqtncjOu5AuppcJ6s1EHTA1YzC3Wgq3YmzGqpsmlwZAo7F8oLEVKoeE6+TbSxK0JJ/3FLOwFnUxzXuoltYDDMLoAlmYXLAWIrkqbdZKs+q4KBfkNV1uwGaBim9TdLWS3R7iGRvCNTPB7JvGlc5EXK8cKbrxooint73RzXh7Msl6Oj/uT/b62O9j8sj6gMXX0Xwf6jP3Zr9DtNAHTYMMXrXSK0YAAAAASUVORK5CYII=") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-ptz-focus-far .jb-pro-ptz-focus-icon{display:inline-block;width:28px;height:28px;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAMAAABF0y+mAAAAPFBMVEVHcExfX19fX19fX19fX19fX19fX19fX19fX19fX19fX1////92dnbs7OyFhYWjo6Pe3t7Ly8uxsbG8vLyG+Q0EAAAAC3RSTlMAiWJjx9wm/0Lti7mfpe0AAADaSURBVCjPfVMJDoQgDERFC/bg8P9/XUSO6CqTqA0TptNDpSrMpC2A1btRT8wrNKzzjdo03KC3zhkLD9imbeAFhd3sG2kvZQ2v0NknfGBJZKkhBM9MxOxDKBV1N4iHi0TRHYjN01Qi7/kK2PtyNDU7DAEJgDAAN0u1jsQEFEkcVVmrqjeXrkWRmC67eqbgG7bJyvkQSQkvUvec7szpek6t9ubWJSK/uJVSm+APzHKCh++DWWuH4plQKNYOpfappcjy2VvJn9744cjGwx6uyXjBxqs5Xuqsvf/9Dj8rLhRg+bQ5VAAAAABJRU5ErkJggg==") no-repeat 50%;background-size:100% 100%;cursor:pointer}.jb-pro-container .jb-pro-ptz-focus-far:hover .jb-pro-ptz-focus-icon{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAMAAABF0y+mAAAAOVBMVEWZmZmZmZmZmZmZmZmZmZmZmZmZmZlHcEyZmZmZmZmZmZn///+xsbGoqKjt7e309PTExMTQ0NDe3t774OlGAAAAC3RSTlP/itxixwImAELtp8B2gZgAAADmSURBVCjPjZMLjsUgCEVpq60G8Lf/xQ62gvNeOmZuUiWeKHC1cKnC5iJAdFuwJXgmf+xg2g//G54OPuTOCUOEL8WgMMCLwgPP+Abj2aF38CrnBR7whw6Bo4fWUk7MMrQ2OrpAq0GspTLLgKg1wTailNITZA0EaTkZGjIAY5NwlATah5CGRMJYj50tFtlWiapsLvAPRdtL/WOmET7QzZyl5ywzp7NWsjBJ1odsragJqeJ9HGFNZoLaJw71hMTm0O7NeDE1Z6YsU5rGL69sedmXXz0ToW8PzA/oV09T8OJR32fb7+B17Qe3WwtC9PVbHAAAAABJRU5ErkJggg==") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-ptz-focus-near .jb-pro-ptz-focus-icon{display:inline-block;width:28px;height:28px;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAMAAABF0y+mAAAARVBMVEVHcExfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX1/////t7e2dnZ3W1tbGxsa3t7eDg4Oqqqri4uKTk5NImu/5AAAADXRSTlMAYieJ3MvE/0Lti4oh87zNagAAAOtJREFUKM+NU1sOwyAMY30FtoWS8Lj/UZe2gWpVh2aJH1wcO0mNqbDj4gDc8rLmiscEDdPji3rP8IX5fXLWwQWuaVu4gbKDuyPdsJMz3GLefcIPbJ6PDCEAFDlUAJiORM3NigQFAXAFlqOeRhWJyFFIHxNGvRrN0mp470U++3axGM2RAmXcXqKnkDSN0a9WIk5Sa01MpDXBQAdVtrA8lBhFnnKpsmoo5VBrhszV0KuJ5N2tP92O50iQjpzcctravoihdoi0Q1NrfN56m0VWzFBoje+OrD/s7pr0F0yUr6s5/LvUu/bz+B2ep+IHdMIV2SUZfCsAAAAASUVORK5CYII=") no-repeat 50%;background-size:100% 100%;cursor:pointer}.jb-pro-container .jb-pro-ptz-focus-near:hover .jb-pro-ptz-focus-icon{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAMAAABF0y+mAAAAQlBMVEVHcEyZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZn////c3Nz09PTp6enR0dHFxcW7u7uwsLAUKT0cAAAADXRSTlMA3IrE6WIm9wI+y0gNQZpqdwAAAOdJREFUKM99U9GShCAMQ8BF3Cmlpfz/r15dAe88l8zwQiQkoRrTEa3zIXhno7lhWxcYWNbtN/fa4Q/218VFDzf4of0O8A/h3TQfOGU/ytsOj9gPVyt8warkmYEQQAgABYDxTKROz88koS6AVIB1fRCNbSI1cVUy15Jq27LGjTtyzipPeWw40/IXQkrHyZSRmqw3LaQgctFNKYzYyGACfEXossLMojFEj7J0WfdwJ3dD9uY2X25tL0Hj45mTR87Y66u9IQFsDS1bL57o7JbUDNIofvpk08eej8kTe3Hz0ZwP9UFfv8OgfgBUByCEUZhYtAAAAABJRU5ErkJggg==") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-ptz-cruise-play .jb-pro-ptz-focus-icon{display:inline-block;width:28px;height:28px;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAAcCAYAAACdz7SqAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAJWSURBVHgBtZe/b9pAFMefbSYWMjCjdOtmYEYqXVC3umMlBFRiT7qxkexITcdKSDUSYna2iqX+E/DG6LCQgcETUiR+5Pv8I3Kc+McF5ysZ3x2++9x79/zuLFEG9Xq9s/1+r8my/AnVJq4z/2LZfB0Oh1tFUQxd1+208aQ0GAa7kCTpMgRJk4kJXk+nU5NEoe12W8PM/wrAotIx2Z+w3MkE7XQ6Q3S4otNlY5zPUZdL7wiMBUsRIK/fDeWvhQ92XS0HrQia83cCsqoIyMug8gQ9Ho/DpF7FYpEajQa9VTBoyIZxWeEfv6IndSqVSjQYDKhcLtNqtaLtdkuigmGSZVn/XKiqqr9wqyZ1YEtbrRZVKhX3zvX1ei0Eh7Ufa7Xan8C9VRIUg9lyQZfzO19VOOugkBpAgaXRtnq97oLZ5ZvNJm0YQkBZ8m63E7YyKl5ntrrf77vlJCF/qzLlKLZ4NBqRpmmuF2LBlLOyBFYBchDKlIeWyyWNx+PUtS2Qtx+eJA6i2WzmQtMEA+8KnA+73a6N+jkJil1pGAbN5/PMfRBIZsGn3+LFvSABMYiBgpnJgZEeFHQD4EzQrOsWI4N/nrY2uPg/eeefV8WvAKfALOsWJ3jzA++rcqjhB25OXAd244nA62AjV4LGxWLhIBk/oPiF8pc9mUy+BZVnyQEzueEZUb5yjyvhBiX6BCw2YTGvdZNyAkYPZsprT/rgO/K2vDcdQQH7jes7gPcv/kvqyCcKbEVX6PxVAG76QWPGPZAIDcEZqGECTQyokpe9wp8VfNqzyA2L9M+KRzm19l1i6ZQBAAAAAElFTkSuQmCC") no-repeat 50%;background-size:100% 100%;cursor:pointer}.jb-pro-container .jb-pro-ptz-cruise-play:hover .jb-pro-ptz-focus-icon{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAAdCAYAAABWk2cPAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAJ5SURBVHgBtZe7buJAFIYPjsVFAok3wBUlYcUDLNvQISUSDVVCA0IUYZ8gmzcgBeIiJLwdFau8QToaQKygovI20CJBARKX/Y/jICPAF3B+yRpjZvzNOWfOzLGLLKrZbAaXy+WdKIq32+1WcrlcQe0vZb1e/8XvQT6ff7fyLpdZh0qlEr+5uXne7XZxMpciCIKMSfzGBBSyCwVMAqxpEXYEhzdeAJYtQ2u12h2aJq4gXadSLpf7aQptNBoPm81GJofEsc5ms9/0zwT9j3K5HHUSyEJ4ovV6vXkSyjHEyvxDXyCAHxGy4hEUq+4JjWQ02O/30xV65rTbQ9lKNEWjEYFAgFKpFMViMbpQnOfFPRSKWxnldrtVaDqdpnA4THalefMDinx8sDOYrY7H45RIJOy6PMibjch3F24AJEmSeo3HY+p2u7RYLEzHwNqogOUcpSvFrk4mk5Zcjry9FZCX1+46qj5dzvEOhUKGfQVyWAyPRCLqojsnEYtohpiSE5rP59TpdEhRFMN+Itw7Q3DpGq1WKxqNRurF90YC75+gnXszulBsVbvdpl6vZwpkwasDNWVw9r3BWlu5Op1OVdBkMrEzTD11RO1exmUJytb0+30aDodkV7DyjT2rBpNrG8zg3WwQW9ZqtS4CatASt/sVhAC/GA3glWk1bqcEo+TPwm0P5QeYySt9jRS9UQe54vF4fqEZkMNCdXivrw4PoJlMZoad5IeDYE7F+0KhcPC+syVotVotIQ5PdLm4CD8CGkJZfAIhzlw3SWRdM+T9q9frLbHnTnUwrfBZfPCiecQG8v3MBHj/HvAm4/P55HMwW1C9tG8a/RmsGH1CnNJ/17UakVMOx7kAAAAASUVORK5CYII=") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-ptz-cruise-pause .jb-pro-ptz-focus-icon{display:inline-block;width:28px;height:28px;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAAcCAYAAACdz7SqAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAHySURBVHgBxZc7bsJAEIbHdprQJAU1ckln3FM4J4jTIkSMRB9uQDhBlBPECIk2yQ1MSeeIxg0KZQoKKpSCR/4xtsXTNmA7v2ThHe/ut7M7O7sIFEOGYdzO5/OSJEn3KGp4ZDy33ucxP6vVqo86H71ez47qT4iCLZfLJ0EQmhuQKNlo89rtdk06FVqtVjV49kZrr86RicG2TdMcx4LWarUWGjzT5Rqjn7tdsJAi8Ch4C4op1TGl75S8GKwCPOWC6FsRNDKAL5SOZER30HcAhbFFEUFTLBapXC5v2fL5/J7tiOCXofHLlVfikRhRrSqVChUKBXIchyaTiWtrNBruYLjM9jB5jlmup4vFQqMYyuVydKE03vsuVBTFR8pIcFD317REGQlRXBJ5PSl+iktCskgZC57eZA5l/Q/Uy4lTykjYq1++p5EHb1LC9rRdKA7dT8pO64yERG/SmVM8m81OqW7yckr8Ztv2r6Io1whnLawF59fhcLiVY0ejkWsfDAYUJfRfB+snOE85J2KRvym9RGF2Op06vwRbhg9YHgmlIz7E235B2vwC1x1VVdl7jZLT3nVF2q0BsJUg+ODFTDpU0wP3PfC5a2wB+BD7CuqLgws/TQQYn7cyxYfxfdc6ViEUujMAHUlER4cKHfhbATvPjBUG8/UH1xXJDxHoYGQAAAAASUVORK5CYII=") no-repeat 50%;background-size:100% 100%;cursor:pointer}.jb-pro-container .jb-pro-ptz-cruise-pause:hover .jb-pro-ptz-focus-icon{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAAcCAYAAACdz7SqAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAH/SURBVHgBxVY7bsJAEJ01CAkJKUhUULmiDSnpoKYINyBuQIgi3AA4QZQKIQq4QaChhhuQCxAXSERUSDSIb944axSS+CPA5kn27o7X+2Z2dz6CXKDT6URXq1UqGAw+Hg6HDB4V4qj8rAsh9N1uN9rv971KpTJ2Wk84kW2322csVv1BYr+gEGMo8Foul7uWc6w+NJvNjKIoHXRVOgMg74K8AXLdFWm73a7BujpdDh3rZH8TCw8JLYlPSFutVh7NG10feigUetA0bcEDxZTiDFU0L+QN1M1mc1z7SBoIBGrkcGkSiQQlk8kTWSQS+SP7D3CzJ76c3A/yi61kodOP6XSaYrEYzWYzWi6XhiybzVI8HjfGLLeDNGxoWpohF8C50CXgwMK+r0gNCuQTENnyitQgRT4BQSOlyFvrKsRdCapC/uPuFqR0G1IZExfkH94NSzkHkk+Ap4wNUiTqPvmH74gUDoe7dOYWr9dr13M5sfNxBnjQ7/dXuVwuDGHG7ieOr9Pp9CTGzudzQz6ZTMgJ2FFtMBh8HvMpx0Ro/UEeBQq2slgsatw/uoxMsBp5A64WG+bgxE9LpVIPpUWDrgv7csUE4nEdlWCNPCC0JJXEF5Wg8MchHs11CWpCVvZVkBfckksyrneHVnMEuQRXitiqPBS4lwpEJYmORkc7Qju0IzPxBZ2t+3mW/JtqAAAAAElFTkSuQmCC") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-ptz-fog-open .jb-pro-ptz-focus-icon{display:inline-block;width:28px;height:28px;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAAdCAYAAABWk2cPAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAKgSURBVHgBtZe/jtpAEMYH28WJioIa+URDF8MTkAalO6cH4YIiFbk8QXS8QO6oUlCAkGjDtTRHJBoa4nQ0KBZdJApoEAV/Mp9jkAF7bXPcJ5ndtdf725nZWdYxiijDMBKr1SqhKIqKNpdms9mcRxkjFqZTsVjMy7J8x1WdL9WjC6D97Xb73G63m0HjxULAvnI1T+FlMfxBBPeEwoW73Q6we7pcViwWe8+utwKhDFQZ+IOrGr1eAH9ksOkLdSz8Rd5xu1RzBmfdFkvupwz8dmUgBENeYNAZtFQqGVwY9DZSnTVi6+Decrn8h0JYWSgUKJfLHdrL5ZKm0ykNBgOazWbCd9nNt3CzgoZjpUohlEqlKJPJHN3DJHRdp16vR51Ox/ddTiVkw70NlSTp7rRDMpmkWq1G4/HYvmANSpHghXg8To1Gw/M5W1oGVEZD07TvXNy4O8Btw+GQFouFbV06nabRaGRbhbaf8AzvTiYTr8c32Wz2p8KrSuMgJ7x6IEa4AIuivau9tNlsNGm9XqsBY9gxhOvCCi728wa7OCHhRzQAZl2pVGyXRZEoBAoFCDGs1+v2QooiUfpIHE+LBEL+VatVezVfDcp/whYJhAWBVHFvCEFCfz8op6cpORuxJRokajz98tSRae+97OJnUS/RanQLkwNQ4FrzsA2yyU0Gf/br2e12A90LlwYAkS5Pdrm/wRs+/rh1ChAshuV7wTqAQoTAarVat6gorll8YWvzXBXmbdTUcY3/sK/L+4ppmnPeF/9SCGsvAXIsH8+gDthkMFyepyuJgS0GHh3w5NNOzO0zeMHVD/R64BMDP53d93vBORW+0GVnpvmpS0NBXXDDSacwR9K5kxaPok+NUJ8VDlzlQucJvKNj63G2/U3/E78fZqx/rk0w4ggu8jUAAAAASUVORK5CYII=") no-repeat 50%;background-size:100% 100%;cursor:pointer}.jb-pro-container .jb-pro-ptz-fog-open:hover .jb-pro-ptz-focus-icon{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAAdCAYAAABWk2cPAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAK2SURBVHgBtVa9jtpAEB58/EqArqCBBqehorgTVDQxPVJOiD5QAEJUeYLjniBcgRACKeQJQsQDBBoqkIigookraC1BwT+ZcQBBsNd7Ovgk2LV3vd/M7PyZgBPlclnc7XZPFovFv91uRZPJdL9fktfr9W987udyuRbPWSajDUgm3d3dPSOhBMaQUaAXu93eSKVSCryVtFQqPaBWXznJNMlR8zo3aa1W+7zZbIo4vYd3QBCEQjqdfjEkrVarzyhlAa4EvOt6JpNJ6ZJWKpUnHH7A9VHMZrNfLkjJO9Ecv3Aqwg2A1osevFs4vCQP5SF0Op3g9XrPflar1egzut9vCNVHzPS3j8EkcCAcDkMgELh4PxqNoNvtwmw20/tUXC6XSRyLqqZ7LS80CgaDqiY8IEESiQSIoqi7B53qE40qqVYsolTgdrshEokAeh9IkgRGIDPTPhJYC8SD4eg3k52RQNQi7XQ66txms+kepEUcjUah2Wxqrq9Wq6h5Pp8/4CUzD1osFuqPFwfnIsE1IBKbyDqANIzFYhCPx+EtYPmCGQxAppJlGQaDAVwLaFlBgRtAx7T/SNGNZWCg1WqpoeP3+4EX0+kUJpOJNiEqKWA49HGusA6gwPd4PMCLXq+nu4bpsK+6LVV9YMDlcqnkPKD7JyF1oFD+PSSHV9ZB4/EYQqEQGGE4HEK73dZdR+Ua6nh4gWXtD3AkfCL3+XzHZ4pfyrekIQnHApr2A2oqn4YM1TvDWkr3xbozPVAxJ0KaH1MRFllSvQG3gYztz7FtOct/mLqorZDhulD2BVzWJKW2kTZckVjBnviM8IKUQBtQ40ck/w7vAIUhnvGYz+cvwpHZbGNHkcQMwtXGnICs9YrCF/Q2GHb4e3IJBxLgo44ACsY6afbT4XDUWd09N+kpqOhTDT55Jf9/Z0b4C/UJLQCcLGi1AAAAAElFTkSuQmCC") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-ptz-fog-close .jb-pro-ptz-focus-icon{display:inline-block;width:28px;height:28px;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAAcCAYAAACdz7SqAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAIjSURBVHgBtZe9UsJAEMc3l1Q0WvAA2NEp1MyInVbGnoE8AVrSqW+gT2CY4QGwpTEFNcaOEqksKKiYcYYP/xsSJoRwx8f5n7nRu9u73+7lbu8waAc5jnM6m81sIcQlqhcoOZTTsHvAZT6fv5um2XZdd6Caz1DBMNm9YRgPMYhKHhx8brVaHu0LrVQqNjx/2wOWlAtnn9MiT4VWq9VHDHii4zXAPFdJsPGPwK1gIwHk7/dC+sXgAsBjroioFZsmpznCuHKLxeIxqqwirdVqvGmcbaOy2SyVSqW1tuFwGJTRaES7CEGd8TJbXOEo4YkjG8BQ27ZT+7rdLrXbbSUcx4+P3oOIVQ4Wr0Cj0aBMJiO1Q6Q1PvsirFzSkeKVqNfrKjM+8xeCybRMbUcrn88HRSasqs2R5kijisWitB+reiKm0+mhaS5VvMwqCdIs1WYKoJZljUmj+NwqobS8D7Wp1+tJ+5EPvkWYD33SIE4S/X5faoOHgCdC+jsdKc5GnJUUGiNIzwrpbjwh76tOpxMAJ5OJyjTwKp7wP/CnvM06LeFzdPwNd4AFihL+Chom/U86/HmiAr4CGOR4M2r0fX9cKBR+8e816deg2WzeRJW15ABPXvgxRXoVPFfiDWbSAhF7iJiXvUyagMmHmZlmGYK/aXn7HPSNAWui3AH4s9EnG8ibiy94DL6l3W8jL3zvetsMpNCEAw4cKGPCc9r8WeGj/YuBMlikP+yn3EGZYjlWAAAAAElFTkSuQmCC") no-repeat 50%;background-size:100% 100%;cursor:pointer}.jb-pro-container .jb-pro-ptz-fog-close:hover .jb-pro-ptz-focus-icon{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAAcCAYAAACdz7SqAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAI5SURBVHgBxZZLjtpAEIbLjUFih8QFnBUrJCIOEHOCROIACStALBhOMMwJMlkgBCyYnCDMCUJWrJCQYB+zBwkJFiBe+QvZyEz86IEezSc1dj/w76pyV5dGEnS73cR6vf4SiUQ+HY9HE0MJu5GmaSNcFrvd7hn3vXK5bIU9TwsTw8Oqh8PhzhGRoIf1tSBxX9F2u12FVfVXiL3ksVgs1khWtNVqfcfljm7HgtW5l1Zrbyh4Fo7FYh8LhcLCGRDu2U6nc69YkDG22+0v98DZ0mazaQgh/tLbUUOMHy9E8eH8treDJ8lkkgzDuBibz+c0m81otVqRBAu4+QO7WecerDSDBB3RbDbrOTcej2kwGFAIvNc5dPVTTLHpv9INpNNpyufzBEsC1yF81dOVf8KslCHIEy4SjUYjIxDLDDoGKYAtDrNW13VT7Pf7azOOJ6lUKnAeySLB7jVIIezmMAS9A/igxIIUwns3VBQ+HpFCLMsKnGcjhX0CKLF2MpnQcrkMXIPzuX+KKax9phthtw6Hw7BlVqVSGel25wntqqy02WxOFnLj+xB6/HNTwmdXTqdTGTHmfKA7lhKSxAOCbPr9g90n82X6AcGfTgVxUTngtKlD+J4UAw/2S6VSzulfJAe8SZ3fiNRiQbTgHvgvI0H4Gxb9IAVwTexVmHmmQbiCD1suHy26En7xaDSa86p/A4ttrpuIT3ohpLcTxw/tAWJ9vzUaSWCLm3DXZzS+z7hELFzYjX/i8fiTu9T04x9LgQk+PbvDKQAAAABJRU5ErkJggg==") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-ptz-wiper-open .jb-pro-ptz-focus-icon{display:inline-block;width:28px;height:28px;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAALxSURBVHgBtVYrrBpBFJ0FFAqBqCIrUXRBk5QaUleewBBIlwSDoW1CUlzz0CSlaJJHA8FgqMBg4CWIKkpRuEfQCDAYAvSeYYfsLgss6fYkk5ndmXvP/c1HYjaQTqdjbrf7PQ0VarLWgBW1Cdput3tutVrdW7qka5OZTEZ1uVwfaBhj9jDf7/ePzWazwe4hVFVVPhwOT3cQnRFLkvS20WjMzRMuCzKFyH7/AxkAg18oQp/ME24LsgENfcwBkJfvQqHQejqd/jr905HJGpnMHIYW3iHGp5AS2df/QabpfiKHfCdCVCN1qh1hv9/PIpEIi0ajLBgMskAgcDZfKBTMYjJVL8+nh7MeS/8ioFiQbDYbtlgseA/lXq+Xt9lsxrrdLkulUmw8Hp/poLB+JC+rkpa7FysiKEokEpyo3+/zBiIrr2EU1kKmWCxariMvsy46IRJWZFBSLpf5GApgvZUSYLlcstFoxMfwHnKQN4Mi+cYdDoe/IGpmslKpxJV0Oh223W7ZLcTjcb6uVqtxLxFayJtkfSga2Sycy+X4YnhlBzAQhGI9euTRqnhAaNjkKA5Unl0yALlD0SC0Au12m/fIvx5nRxsEYV2lUrHMgxmiYMwGwmiE1qzDrSiKSv0r8QMxF2Wdz+fZer3mhXAJCP9gMOCGAiBJJpM8h6jqXq9nWO+hLfGH9ohiVoTFIEbxwFqECMoQInwLy4V3mEMe0SB7YWtMJJzoVK7fLnkgKg65BVBM8Bj5gjHwDORoGNfrdUMu9SDnfl7d+HqAEArFCYNQYoxtAODfJSIBimTWpV2Swxt8PLwiRAgjGrwXuEVGmBNXw6MxP5KXMWYTCKs4U+2COH6g59tCu6uG7A7AYxteCcypVU+EmgVZbcJxkO4HcmplIEQuMcGOTz8nyT6T7on4Npw0mMBzgDnkqUZWNfyzWujQM/FB79lVQh2xeudbZ0VE36mvipzdRagjjtFtnSBlr9nxuS9uGCidk1HPdFp1xcvsGv4CcbeEIeSIw9MAAAAASUVORK5CYII=") no-repeat 50%;background-size:100% 100%;cursor:pointer}.jb-pro-container .jb-pro-ptz-wiper-open:hover .jb-pro-ptz-focus-icon{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAM0SURBVHgBtVa/SyNREJ7dBLVQELU4bdwrtFJOUCxsXEG0Ue4OK6tLKhEb/QsO/4LzChVtvGvE0sPOxtiYJuFyJBBICtOlSSAQCEnIj5tvyC676ybZYPLB4y373ptv5puZt6uQB1xeXup+v/9zs9lc4qHxK621VFAUJYbRaDSeDw4O7rvZUroQBXw+3zcm0ckbMkx8enh4+It6IWQijYlueiByI95g4oxzQXW+OD8/X1JV9e87yACNbbxeXV0dOxcUJxnn6okfx6l/OOHcnr0hhIzsFcg06jNa8obwbErKOfs+CDIhUdUbxrhJiGrknAW8HB4bGyNN02h+fp6mp6dpcnLStj46OkpbW1vOY1q5XJZ8iqTX19dPnYpkZmZGSObm5qharVI+n5cZ5ENDQzKy2SxFIhFaW1ujTCZDqVTKaabA+z4qrdy9uhHB0PLyskSTSCRkVCoV16gRLfYODw/T7e2tOOQE5zKocmRf3Mggzd7eHvEtQnd3dxSNRl3JgGKxaEaE6HEO553gOllXuQ3W3ch2d3fFyMvLS1siKxYXF0XWh4cHOYfzUMgKpE1t3Y026LouhxCVF8DBhYUFcz9m5HF7e9u5VUOV2pp8dnaWpqamPJMBKysrEh2kNRAOh2VG/q14c7XhILzb3993zYMT2IOCcTo4MTEhkqKgrPCx1gGePxgv6vW6EKJYNjc3qVQqSSG0A+RPJpPiKACS1dVVaQ9UdSwWs+33c6n+47ZYchqKx+NCvLOzI80NiWAMEkFyeM75lx5FdFhD4SCXIEJluxRbTLm4uDjmcv3RLgIYgrfILZBOpymXy0m+UImIDLLCATyHQiFbLq1gB/90bHwrcNPAILwGAaREcz8+Pso6CNsRGZDGx0eS8xXqRgh5DYkgIwZuFQPdyGACfwJ+PHGhnHKUOnkEetS4U72Co/uNWdoC3yovUVqBiD1EZW4fGRk5MwkBjjKIBRoAarXa12AwWLARIpdY4McC9RcnR0dHZjPabhosMOkG9S9S2/8MMLDfRKhljawjoYU4wNXby79OgavxJwrEyFlPhBZinasYH+pPPOMaNL4wMJphJZ553Bt/Zp3wHwTYnvHjbDCuAAAAAElFTkSuQmCC") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-ptz-wiper-close .jb-pro-ptz-focus-icon{display:inline-block;width:28px;height:28px;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAAcCAYAAACdz7SqAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAANOSURBVHgBtVc9TCJBFB52r7jYyCXWnhcbO1aru8RErjGXWBxX2BijGG1svNhJo56VhQU2ViQsgdDQYEFDc5rQ0BDoaMgRGhoKaMhdCHDve+6QZVhgMfglm9mdn/e9v3kz6xEusL+/79c0bcvj8fjpc8V6gCY9VXqK3W73MZFIpN3I80wj03X9il79wh2q/X7fJAXvTdNszkQaDAZXaHF0BrIRcvLKERE/OQ3qYwh/06shXg8vRPl8PlEqlZ4nktoIV8QcgBxwItbfitBOvL6+XioWi2XZp8kXIryaN6FNdpSM8spvthRWUmPaJ25vb4vV1VVRqVSGBCwtLYm1tTUeW1hY4KfVak2hFe+J+B+5+QkfnL2Hh4fI1KAq/OLiQlxeXorl5WWxsbEhNjc3RbvdFrVajVvMkcTlclmk02nRaDTGETfJ1Z+wlTxWLP84zQoEAkwEodlslh+QqZDWY36hUGByp3m9Xu88Ho+HNaokfidCCAIh2kgkMlYQAOtyuZy4vb1lBW9ubnidCioa37klkw0nQrgWgpLJJMfXDUAOBbEO66GAAkOS+tSRk5MTXgjr4FIAMXULrIObz87O1CHv8fHxR03thXAkDhbahezt7TlpzkA8sc7uUngIQIhUgNRr70AWQsu7u7uBEPTBdaqboQTcCIUgXL4DUBzjTrHVDcP4BmVlR6fTYVLg9PSU9yC2CIghEG7HHIC2GluJOGYyGR6DYiDCGEKD/iErNS2sU238QnH9rGqDopDP5zm+EIJ3aL6zs8NEUAKCQSiVwxp4BFaHQqGRwkJoRqPRkEZ7tCjGAAJQHED28PDAVkirsX1kUcAc7FEXWc5c7+iQTltnpyMgHNYgUSSZBL5BhqTBHkVMAZnxKsijMbQ6Vf+/FFe/mFLs6/X6IJZ20t3dXXb34uIihwFuTqVSI3Mt0nPia3LtpVLot461V0FWLiiBZwzMWCx2xOSy5+DgIEya/BRvA1xfvlKxr+JjUBwola/Fy81u7iDCX5JwiJSPHNJm3sQWoTnUp06a57XFIrxW+0dug8guutM8EvEHpxPIJRDDH6qFA2UmrSSrg0SO5HJLjhDdUxue+bLtQG7QqR8ggVvC4beCFHumRMSxVJxEJvEfnFm91YrgD/sAAAAASUVORK5CYII=") no-repeat 50%;background-size:100% 100%;cursor:pointer}.jb-pro-container .jb-pro-ptz-wiper-close:hover .jb-pro-ptz-focus-icon{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAAcCAYAAACdz7SqAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAANwSURBVHgBtZa/SyNBFMffboJaKAS10SZ7hXqFegGbCyjmUPTAH3eHlZWmULG6u/Kqi/9BLEQRIdoKigf2l1Q2ChGtBLmtFAQloPgL1HvfRyZuJhuzBvOFzezOj/eZee/NZAzyoMXFxYjf7+99enqK8GNxlZVtyhiGYXOZ5vo/MzMzW17sGaVgPp/vN2DkTbZpmqs8wfloNJqh10AZZjEs8QpYAfzx8TE6Ozub9AQFkGf7l55dWLbYTmxqamruRehbAl8CG5UEOvTNmWSmekHCVAgIJVgB9eHHD1bJSTPp7NXe3k68Hejg4CBvdF1dHTU0NFBVVRVdXl7S/f09nZ+fl2BS4Pb29geXMXyIe5eXlxM6FMaHh4dpY2ODGhsbybIsamlpyUFQog/geE5PT2l3d5eurq6KgTPc7x22kpGN5T+3Xl1dXdTa2ipGDw8P5bm7uyvoB3hTU5P0t22b9vb2ZFIu+smxjSOmEbfW2tpaAcJgMpkUQ25ACG4+Ojqi7e1tqq6uprGxMRmvi8P1BaXJLyE34MjIiBja2dmhzs5O8iLAMUGMw3h4yCkOobDYs+YHfXAkEpGBWJ1KJMTUqzAObh4cHNSbAisrK0FTrw0Gg5I4GKiEBAmHwwUzV2pubpZJOV0KD0EIkS6TlxxwViALMcvx8fGcEdQhKzs6OvIGYxLIcEwIxuFSvEP19fXSjpzQ5RsdHf3M5XtV8fDwIFDs0f7+frq+vpYtAjAMwu3oA/X09MgqEcf9/X1pQ/wBQhuyPZ1O56/SNOO+oaGhMAM+6rM5Ozuj4+NjiS+M4B2ZGQqFBHRyckLd3d2USqWor6+Pbm5uZAySqa2tjdbX1+VbU2Z6evoX3JumIoIBHA6ATUxMyCl1cXEhQOxD1ON9c3NT9qjufl2K5a+pqdliA4liHWEc7kOiwMXOvYpvwJA02KOILwS3FoGuoTTlWDKMJJUQ4qwfDmoyAwMDkkiYIBIOsS2iJH7k7MW1JPu3VpbUyYWVw91u4oWtcjyjOSi0tLQU54bvVBnh+vKJry82PnKHAydFDI1UATFwTgHzoIgtZvPW4Cxw1VlX0YtZFhjT6wvOXrgBK+ZnjcqXimHMrbHUZXuSV43kCpE3IUTzvPfjr75s61pYWAgx/Ctndy9/WlxaCsKPzZs+xc8Ww9IvwZT+A8hTw5fcMmXrAAAAAElFTkSuQmCC") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-ptz-arrow{cursor:pointer;position:absolute;width:0;height:0}.jb-pro-container .jb-pro-ptz-arrow-up{left:71px;top:15px;border:7px solid transparent;border-bottom:10px solid #fff}.jb-pro-container .jb-pro-ptz-arrow-right{top:71px;right:15px;border:7px solid transparent;border-left:10px solid #fff}.jb-pro-container .jb-pro-ptz-arrow-left{left:15px;top:71px;border:7px solid transparent;border-right:10px solid #fff}.jb-pro-container .jb-pro-ptz-arrow-down{left:71px;bottom:15px;border:7px solid transparent;border-top:10px solid #fff}.jb-pro-container .jb-pro-ptz-arrow-left-up{transform:rotate(45deg);left:32px;top:33px;border:7px solid transparent;border-right:10px solid #fff}.jb-pro-container .jb-pro-ptz-arrow-right-up{transform:rotate(-45deg);right:32px;top:33px;border:7px solid transparent;border-left:10px solid #fff}.jb-pro-container .jb-pro-ptz-arrow-left-down{transform:rotate(45deg);left:32px;bottom:33px;border:7px solid transparent;border-top:10px solid #fff}.jb-pro-container .jb-pro-ptz-arrow-right-down{transform:rotate(-45deg);right:32px;bottom:33px;border:7px solid transparent;border-top:10px solid #fff}.jb-pro-container .jb-pro-loading-bg{display:none}.jb-pro-container .jb-pro-loading-bg,.jb-pro-container .jb-pro-poster{position:absolute;z-index:10;left:0;top:0;right:0;bottom:0;height:100%;width:100%;background-position:50%;background-repeat:no-repeat;background-size:contain;pointer-events:none}.jb-pro-container .jb-pro-play-big{position:absolute;display:none;height:100%;width:100%;z-index:11;background:rgba(0,0,0,.4)}.jb-pro-container .jb-pro-play-big:after{cursor:pointer;content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:block;width:48px;height:48px;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAIVBMVEVHcEzMzMzMzMzNzc3MzMzPz8/Nzc3MzMzMzMzMzMzMzMzLVn6fAAAACnRSTlMA+duduRUwSGSD8toSsAAAAI9JREFUOMvV07ENgzAQhWG3lLSp6MwCViYIRSpG8AiM4FWMaPymDBKESMF/cQ0S136F353vnLuo3gp1kOYEoCXW4LFKIZAnqAXYICeASoAdzgG+cApwgF4EfwF+oDkCqIwA6gnyAKA8AaizQhsBAjzuqUHofInGIQbjRxXjMrTJuHDestR4Bng4eGrN0929PqNfzC6h06weAAAAAElFTkSuQmCC");background-repeat:no-repeat;background-position:50%}.jb-pro-container .jb-pro-play-big:hover:after{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEVHcEz///////////////////////////////////////////8Uel1nAAAAC3RSTlMA+rbVFUecgC7rYhEEz+4AAACbSURBVDjL1dMhDsJAEIXhdeiGpKYWQVKDWc8ReojFc4ReAlPFFQazad7lIGkb0jK/WEPSsZ+YN5mZEP5UrZIP0vgE0Kv3oPlIJlAk8AJM4ASYwAkww2+ABfQg0ImgugPYsfNBVl99kA0AsjOArAPQpRTGHiBB8whxM0y+3skXNltsvMYriIWrpWPA80mFJ5qL3gAfB1/tcAt7rzdiV+HEgs1oBgAAAABJRU5ErkJggg==")}.jb-pro-container .jb-pro-recording{display:none;position:absolute;box-sizing:border-box;left:50%;top:0;padding:0 3px;transform:translateX(-50%);justify-content:space-around;align-items:center;width:101px;height:20px;background:#000;opacity:1;border-radius:0 0 8px 8px;z-index:1}.jb-pro-container .jb-pro-recording .jb-pro-recording-red-point{width:8px;height:8px;background:#ff1f1f;border-radius:50%;-webkit-animation:magentaPulse 1s linear infinite;animation:magentaPulse 1s linear infinite}.jb-pro-container .jb-pro-recording .jb-pro-recording-time{font-size:14px;font-weight:500;color:#ddd}.jb-pro-container .jb-pro-recording .jb-pro-recording-stop{height:100%}.jb-pro-container .jb-pro-recording .jb-pro-icon-recordStop{width:16px;height:16px;cursor:pointer}.jb-pro-container .jb-pro-zoom-controls{display:none;position:absolute;box-sizing:border-box;left:50%;top:0;padding:0 3px;transform:translateX(-50%);justify-content:space-around;align-items:center;width:156px;height:30px;background:#000;opacity:1;border-radius:0 0 8px 8px;z-index:1}.jb-pro-container .jb-pro-zoom-controls .jb-pro-icon{vertical-align:top}.jb-pro-container .jb-pro-zoom-controls .jb-pro-zoom-narrow{width:16px;height:16px;cursor:pointer}.jb-pro-container .jb-pro-zoom-controls .jb-pro-zoom-tips{font-size:14px;font-weight:500;color:#ddd}.jb-pro-container .jb-pro-zoom-controls .jb-pro-zoom-expand,.jb-pro-container .jb-pro-zoom-controls .jb-pro-zoom-stop2{width:16px;height:16px;cursor:pointer}.jb-pro-container .jb-pro-loading{display:none;flex-direction:column;justify-content:center;align-items:center;position:absolute;z-index:20;left:0;top:0;right:0;bottom:0;width:100%;height:100%;pointer-events:none}.jb-pro-container .jb-pro-loading-text{line-height:20px;font-size:13px;color:#fff;margin-top:10px}.jb-pro-container .jb-pro-controls{background-color:#161616;box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-end;position:absolute;z-index:40;left:0;right:0;bottom:0;height:38px;width:100%;padding-left:13px;padding-right:13px;font-size:14px;color:#fff;opacity:0;visibility:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none}.jb-pro-container .jb-pro-controls.jb-pro-controls-small{height:30px;padding-left:8px;padding-right:8px}.jb-pro-container .jb-pro-controls.jb-pro-controls-small .jb-pro-controls-item{padding:0 5px}.jb-pro-container .jb-pro-controls.jb-pro-controls-small .jb-pro-icon{width:14px;height:14px}.jb-pro-container .jb-pro-controls.jb-pro-controls-small .jb-pro-menu-icon-text,.jb-pro-container .jb-pro-controls.jb-pro-controls-small .jb-pro-quality-icon-text,.jb-pro-container .jb-pro-controls.jb-pro-controls-small .jb-pro-scale-icon-text,.jb-pro-container .jb-pro-controls.jb-pro-controls-small .jb-pro-speed-icon-text{font-size:12px}.jb-pro-container .jb-pro-controls.jb-pro-controls-small .jb-pro-menu-item,.jb-pro-container .jb-pro-controls.jb-pro-controls-small .jb-pro-quality-menu-item,.jb-pro-container .jb-pro-controls.jb-pro-controls-small .jb-pro-scale-menu-item,.jb-pro-container .jb-pro-controls.jb-pro-controls-small .jb-pro-speed-menu-item{font-size:12px;text-align:center;width:40px}.jb-pro-container .jb-pro-controls.jb-pro-controls-small .jb-pro-volume-panel,.jb-pro-container .jb-pro-controls.jb-pro-controls-small .jb-pro-volume-panel-text,.jb-pro-container .jb-pro-controls.jb-pro-controls-small .jb-pro-volume-panel-wrap{width:40px}.jb-pro-container .jb-pro-controls .jb-pro-controls-item{position:relative;display:flex;justify-content:center;padding:0 8px}.jb-pro-container .jb-pro-controls .jb-pro-controls-item:hover .icon-title-tips{visibility:visible;opacity:1}.jb-pro-container .jb-pro-controls .jb-pro-controls-item.jb-pro-face,.jb-pro-container .jb-pro-controls .jb-pro-controls-item.jb-pro-face-active,.jb-pro-container .jb-pro-controls .jb-pro-controls-item.jb-pro-fullscreen,.jb-pro-container .jb-pro-controls .jb-pro-controls-item.jb-pro-fullscreen-exit,.jb-pro-container .jb-pro-controls .jb-pro-controls-item.jb-pro-icon-audio,.jb-pro-container .jb-pro-controls .jb-pro-controls-item.jb-pro-microphone-close,.jb-pro-container .jb-pro-controls .jb-pro-controls-item.jb-pro-object,.jb-pro-container .jb-pro-controls .jb-pro-controls-item.jb-pro-object-active,.jb-pro-container .jb-pro-controls .jb-pro-controls-item.jb-pro-occlusion,.jb-pro-container .jb-pro-controls .jb-pro-controls-item.jb-pro-occlusion-active,.jb-pro-container .jb-pro-controls .jb-pro-controls-item.jb-pro-pause,.jb-pro-container .jb-pro-controls .jb-pro-controls-item.jb-pro-performance,.jb-pro-container .jb-pro-controls .jb-pro-controls-item.jb-pro-performance-active,.jb-pro-container .jb-pro-controls .jb-pro-controls-item.jb-pro-play,.jb-pro-container .jb-pro-controls .jb-pro-controls-item.jb-pro-ptz,.jb-pro-container .jb-pro-controls .jb-pro-controls-item.jb-pro-ptz-active,.jb-pro-container .jb-pro-controls .jb-pro-controls-item.jb-pro-quality-menu,.jb-pro-container .jb-pro-controls .jb-pro-controls-item.jb-pro-record,.jb-pro-container .jb-pro-controls .jb-pro-controls-item.jb-pro-record-stop,.jb-pro-container .jb-pro-controls .jb-pro-controls-item.jb-pro-scale-menu,.jb-pro-container .jb-pro-controls .jb-pro-controls-item.jb-pro-screenshot,.jb-pro-container .jb-pro-controls .jb-pro-controls-item.jb-pro-speed-menu,.jb-pro-container .jb-pro-controls .jb-pro-controls-item.jb-pro-template-menu,.jb-pro-container .jb-pro-controls .jb-pro-controls-item.jb-pro-volume,.jb-pro-container .jb-pro-controls .jb-pro-controls-item.jb-pro-zoom,.jb-pro-container .jb-pro-controls .jb-pro-controls-item.jb-pro-zoom-stop{display:none}.jb-pro-container .jb-pro-controls .jb-pro-controls-item.jb-pro-speed{padding:0}.jb-pro-container .jb-pro-controls .jb-pro-controls-item-html{position:relative;display:none;justify-content:center}.jb-pro-container .jb-pro-controls .jb-pro-playback-control-time{position:relative;justify-content:center;padding:0 8px}.jb-pro-container .jb-pro-controls .jb-pro-icon-audio,.jb-pro-container .jb-pro-controls .jb-pro-icon-mute{z-index:1}.jb-pro-container .jb-pro-controls .jb-pro-controls-bottom{display:flex;justify-content:space-between;height:100%}.jb-pro-container .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-left,.jb-pro-container .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-right{display:flex;align-items:center}.jb-pro-container.jb-pro-controls-show .jb-pro-controls{opacity:1;visibility:visible}.jb-pro-container.jb-pro-controls-show-auto-hide .jb-pro-controls{opacity:.8;visibility:visible;display:none}.jb-pro-container.jb-pro-hide-cursor *{cursor:none!important}.jb-pro-container .jb-pro-icon-loading{width:50px;height:50px;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8BAMAAADI0sRBAAAAIVBMVEVHcEx4eHh4eHh4eHh4eHh3d3d4eHh4eHh4eHh4eHh4eHiqaCaRAAAACnRSTlMAikwX3CxpwZ7zIGi5xgAAAZ9JREFUOMt9lb9Lw0AUx2Njqm4iGEqmEnBxslKUdhJctFMVcW5wKZ0CLpJJQRw6iVqQbg3FtPdX+l5+XHJ3796bQj557773fe8ujtOI+6jz5p84dHjTkYD4+RhT9CIRZWRPJr1bChnbY532GhT4oUpbI6HEuqvgIH9544dh9J4/rpr0Ms8oV3zMNT7X1MXSmaznzfHjM4n72moe5n8ryYrW9rKRvgf0S93JA7yKa9lbzUg3keJb8OVCtwkrFmoO4MnsAuj5rGqnZg+GZXUXkl9NjEui9n3YA9XgpMgakLXz6ujMTIgrCkPVv0Jil8KgKQN/wRN69hLcb1vrbR2nQkxwiZTGQ5Teb7TO8PUaS8Q03sE+zkjP8qbjzgJtEhRbV4gnlkOFeM7hDYNdxPbiYFvKSHN6L2NmY5WzMYPtplZdTxncRvn2sI+DHIoug22jWMaA12Y7BrXzrG8BX32XPMDKWVzw1bdMOnH1KNqNi8toqn7JGumZnStXLi0e4tcP6R3I635Nc/mzsMxl9aux9b78UVmn2pve8u6eR50j9c0/ywzyVl5+z84AAAAASUVORK5CYII=");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;-webkit-animation-name:rotation;animation-name:rotation;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.jb-pro-container .jb-pro-icon-screenshot{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEVHcEzMzMzMzMzMzMzMzMzNzc3MzMzMzMzNzc3Nzc3MzMzMzMwv5ahDAAAAC3RSTlMAW+8S2UGVwyyZnOTRhEMAAAEfSURBVDjLzZKxbsJADIYdBQpsSCyVMlXAdEuQYGKpWFk6dWHJgsQ7sMDSpUv3PgITAQT0f7ly57ucQ45KXRAZot+/89k+X4ju9KzL4XOhlm3pR0enYrWViSRPXQIQSASkRSkIJEFRimYCuQAHSW89IOv6SH5TCsuAj68Ab1wDzqkAzqoC7AUAPtgsABgkBBgkCJiNHehGok//KRVsHqd+3Dj1/vukt3AH/Jj05s5/AmyZhFVWXDls44iVvfQWkCvgxU6g9ZdJfCLvjJbYaT3GvjOY4mQSG3SJGjhr/Y1Xohp+TGKqqzexZ/1GVGdNCitt6R8zVvb9d+JmKdl8o5sPWbtxT6zFuJcDQtk92MNmYiXHquYlZlVt1j4P6cd7fgHFW7Nhqu29TwAAAABJRU5ErkJggg==") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-screenshot:hover{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAALVBMVEVHcEz////////////////////////////////////////////////////////NXt0CAAAADnRSTlMAWe+X2TINXUYZvctoYyuS2NgAAAEVSURBVDjLzZKhDsJADIZLCAsEg8WgEGCWGSwCgZxB4MgEAonB8wQEXoBH4BEWXgPJgEBG0mdgR3u77raRYAgnlq+9+/t3TQF+dKbZcJXSYSnzlViT457lRScKmBqILSFA3GoO8S4E+Ex5JiSJ4CbVdyOQdZNomX9D4dl+ko3NC8vFFmhPy8FIsi0ZlwLBW/LY5BxYYreUSgoFAEmhB5Rc9OCbUoXmTmDadQKTn4y6A/XTaoSKdb6KyGU6RJ7eHgpb3ABinAoil303xB6vQnRahNhXvMdre+fzOgxVrokX4jHAnBh8PALU8Eq8BqgTg/vePF8tpuPy9/NFaalSc273RizarYqfkswjifNMQ/TyTGMv4v87L+ks5gqDbc9OAAAAAElFTkSuQmCC") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-play{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAIVBMVEVHcEzMzMzMzMzNzc3MzMzPz8/Nzc3MzMzMzMzMzMzMzMzLVn6fAAAACnRSTlMA+duduRUwSGSD8toSsAAAAI9JREFUOMvV07ENgzAQhWG3lLSp6MwCViYIRSpG8AiM4FWMaPymDBKESMF/cQ0S136F353vnLuo3gp1kOYEoCXW4LFKIZAnqAXYICeASoAdzgG+cApwgF4EfwF+oDkCqIwA6gnyAKA8AaizQhsBAjzuqUHofInGIQbjRxXjMrTJuHDestR4Bng4eGrN0929PqNfzC6h06weAAAAAElFTkSuQmCC") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-play:hover{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEVHcEz///////////////////////////////////////////8Uel1nAAAAC3RSTlMA+rbVFUecgC7rYhEEz+4AAACbSURBVDjL1dMhDsJAEIXhdeiGpKYWQVKDWc8ReojFc4ReAlPFFQazad7lIGkb0jK/WEPSsZ+YN5mZEP5UrZIP0vgE0Kv3oPlIJlAk8AJM4ASYwAkww2+ABfQg0ImgugPYsfNBVl99kA0AsjOArAPQpRTGHiBB8whxM0y+3skXNltsvMYriIWrpWPA80mFJ5qL3gAfB1/tcAt7rzdiV+HEgs1oBgAAAABJRU5ErkJggg==") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-pause{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAFVBMVEVHcEzMzMzHx8fMzMzMzMzOzs7MzMz4IlKVAAAABnRSTlMA6xIU1hVqIuOVAAAAMUlEQVQ4y2NgGFYgLS3RAEQziQFZoxKjEqMSaBJpEAkgIw1ZQlBQRAEs4QhkDeIMDgAWx1gMHyIL4wAAAABJRU5ErkJggg==") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-pause:hover{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAFVBMVEVHcEz///////////////////////+3ygHaAAAABnRSTlMA7OgSFBXMmAA4AAAAM0lEQVQ4y2NgGFYgLS3JAUQzi6WlJY5KjEqMSqBJpEEkgIw0ZAklJSUDsISikpLQIM7gAJjhWp6XcaOxAAAAAElFTkSuQmCC") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-record{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAHlBMVEVHcEzGxsbMzMzMzMzLy8vMzMzMzMzNzc3MzMzMzMxEZ/aQAAAACXRSTlMADPKKKeBxlV6neZ4mAAAArUlEQVQ4y2NgGDZgJhpowCURAJeYpIQENJEkCgWRgCeShAGyjfgl2EqwS7BFToZJiLg4ICTEImdOh0pwRM6cDJcIjpw5E6aDFeh8B5gECBCUYAkKCoMbNXNSOlyCgUEQ4apJJmxIEkjOVWFgxi4RgEsikGQJnEYp4pLA6VxUDyJLIAUJcRLIwY7qXKSIQvOHWCQODzKIleBPPjgTHM4kijNR48oGkajiYUMykwMAAfmZhUjBISQAAAAASUVORK5CYII=") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-record:hover{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJ1BMVEVHcEz///////////////////////////////////////////////8NopmKAAAADHRSTlMA8gyMLeRw1x2DBpWGN2QDAAAAt0lEQVQ4y2NgGDbgDBpIwCVRAJc4KIgEZM4EwCU2KSEBHySJCcg29iBJGCBLgHUs24FdYlnNYZiESksDXKJALebMaagES8yZw3CJypgzZ2A6WIHOd4BJgABMgh2XBEtpaBjcqDMHs+ESDFyLEK46aMGGkEB2rgQDJ3aJAFwSUSRL4DQKp+VHcTkXxYMoEkhBQpwEcrCjSCBHFJo/1GIO408MOJMPzgSHM4niTNS4skENqnjYkMzkAEgzyFpeX6L3AAAAAElFTkSuQmCC") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-recordStop{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAOVBMVEVHcEz///////////////////////////////////////////////////////////////////////99PJZNAAAAEnRSTlMAMPndsnZj1CSYPcmL6wsdoU80pOJLAAABu0lEQVRIx5VV26KEIAhMA++p9f8fezatFDPr8LSrjMxwiWlqzRuMYKW0ENH46c3WuGyVLXEduuO83UyK59fl1jX5EEUXD9DOaSh43XEP5zUIdZ4pAecTofVnWSt3ip4rx7N61vjnY1D30CpH4QQR8vsP+RA5Rs3KpjfMU/pMim/LgbvH7DF2F8sU0owqapKLqgnhuGWwImUagn2zhUX6WQQoYkXG9WxSAJd700/ygsCpAoliaDsPiG48GM1X5Ft/06sfp8DrDE+3DpekWjxM6366fgEcnklC+AIIWYQmPEeAaUmjFOnhCLDfxZRH+w1gU5b/DYjfNcyJ0p7dxX8B+FwxQVtvAGB5ig0d5gFA5KbzS91hI8CenvlHflfN/XvzJQnxbBEko1gbvVnPii+FadSVRUEaYylQfJtpLB+aRG4LY/80yKdUbCraM0lozGR4ewZ0Wtnj1iC7hjWKNnjYmR62W15cLlL3+2pyMR09jccyuyUrHKsvthc5xsY1iWJ0Xk3t+2XP7AnWwrAQmBH6asXubmL1Z5Lz6o992jWiu9lnMSiQsK27FS9NxhCumZgB2fTBPFsFolhZr5B/D3o9sJAI6skAAAAASUVORK5CYII=") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-recordStop:hover{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEVHcEwimP0imPwimP8imPwimP0imPsimP0imfsimPwimP0imPwimf8imPwimPwimPxLmg1rAAAAD3RSTlMA15sisGUvdz3szYwMT8H+hDJEAAABx0lEQVQ4y3WUO08CQRCADxBQchBiMDE24KswFlw0Wtig/oHzUWglJBZWio3GDjUxlhhrEzT+ABMrO2iptLLVRluDggI+xtmdXW73LkxxNzvfzuzszNwZhhDzdOxqaPGgYrgkOgFczh90ezAJQmpL2v6OHYnqk2aWxOTtAnu/O/Y5XNZXmTZjo3ot7aESwLdFeqAM0MoJkMf9ltwVQJ9PcQN0UFIJogvdJgLQVFMsAlxyBaPmVBDCE8W7qd+2SDsx0q4OwhSrCG134W54jDfKLjDNxaL8/9AAMM/solptRnoALBbwEPWYrOEzLnrZsTGoMW+fBHG2SiLPUNI6KMOH8QS/XsCMBYQekIEv7NGZF/Rht2yqmA4i3UG9O0iTqgMfhirDhRdU8XJZqqEO8tDAqje8IIt1r+I5HmBjfD9AxQ1MgJQRpc6GJRALHOAS1WRlhMs4VaSFzwIWzCUF3op71kdNsNs/FDCuA58YqCQl7IhN3WbDnlLtfjnuON515WM17c7w41QPOuBIzDT5wqi0T4ESGV3gjtTjkuPATwHoX9+cPRlmmvJ57YAir2qKy459QL/UhrS/uAu3xf8KiX3DI+b22t6jc9F/qfaum9E1pJ4AAAAASUVORK5CYII=") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-fullscreen{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAALVBMVEVHcEzMzMzOzs7Pz8/MzMzMzMzNzc3MzMzMzMzMzMzMzMzMzMzNzc3MzMzMzMxdHBitAAAADnRSTlMA8AwGYt0aUcg+til5kgmZywUAAAGWSURBVDjL1VM9SwNBEB12IcGkMagxNktQSZFCYimIJAqKpZ3Vco3YBYs0NkKQgBg4ECtLFSFVCGgQrERBsLayPE0Ip7n5De73BdKLTrE3ezPvze6+GYDfsAQKy/Rz0i/OZJjY9XREuohTKulS+ZFGiADfyZXU5uHktI44VH5apDx554aXwJqloiIwiEsStAjCAsRNF1jCmGqa4Vc+BvS4JkjwzyPE6xiwzsxxeTbZxqjkANSWZFkoIj5bQBl4aBDfkPDNpeRRialB+SRAFz8UU1sAaEUjSCDoJ7iukZJ1V+c01bFczM1pWaa+a0Rp7MHn4V8Z1R9vLLCv9WjKdVFfk77JP+bZdz35YAfKXx6KhKp93abUYVbrj49g9aAYSuFCLbPUwzdCsYEWTloXgw1oGwQbENeuKwxzXhxwAADRMFd+zzRc6AAASY6RH8VjUHaXTrlOpDgCUP3gelc01e2d+f16cWbnQ46BGCRNVsWAWQJVw2xGfUXVv2k1OsLfazXqblzS99u1FwKFvBJioXBY2+r82U75Ab7O0ypVV0wKAAAAAElFTkSuQmCC") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-fullscreen:hover{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAANlBMVEVHcEz///////////////////////////////////////////////////////////////////+GUsxbAAAAEXRSTlMA3clDHfdfDQbsVG00u4Cqkr04dRsAAAGaSURBVEjH7VXLdsQgCPUBAROdjP//s1UTDUxsz3TRTc+wC94bHsLVmP9hkE8LIdvgupt2tFhcpy2CMZyVxNePEoqDp4hwEGz5PTqWoZNzLrmD9riltBEYzzpZQ8bweXy56Qy6Tivsp5JQYtawuMH3eJlSxIJtdSSa4xer4lMB89pK23mKrwjZVpsRzLq35vEE3+r26h6w5EKppcp3fP2lIpTPWJvoXoobeNI1sM3haHvx56tu2sdElJ54GbnPQ7RZ1sCpl8qPEMXBNQ8vN82jNbzLCPzGSDOZj/2Bqd19R1rELIEbDFrUJfKYdlALbDuDMko/hz7t8DqtCfr8h1Vt4rn7eh/6Ph37ch20aW8McsfGCOXzcr+GOlQG1rJ2HSHUDO/4Mu01qVAqTCpCJfgZ3phTS2pKm5aZOMUbs7Q6nk6L8UzRh6W78jH+gD/VRxHokPuNgUGTaPPR+zDR1mrlvcGgwkAVacSbeoN4Z0rb5/6XLrW/2GTLk2NhXHRKzrqAt9cD4rr4ddvae0NAYgOICdZyvPj4UYRf2BdfbB8iWvnTUwAAAABJRU5ErkJggg==") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-fullscreenExit{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAG1BMVEVHcEzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMxi4XDRAAAACHRSTlMAf3WqJmy+7azWNnMAAADNSURBVDjLxZQ9E4IwDIaLfMzCOTDSOz07OjLir5CR0dmJFVHIzzZtnMzbOzcyZHnuaXpJWmO2ji4GhpAzzZeQzw8FKCj1pMHss9OgpwsGOS0YGOcVUMPsfBVkmJoVCBJW0FFB6SFIaMKAlRGDnEiDkuM00lP3SmL6H5QSh+iIr9ZWVWntUV9Z4qWbHAWrhcUYNLC4Wwm3xb1r2mOQYoVn2EKFAVb81KHiQQq6L3vSUoMBUmSzgCKbVeiL3eTp3Odf8H1sxRAZZNZt/Vt8AHcPQbiQQVF+AAAAAElFTkSuQmCC") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-fullscreenExit:hover{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJ1BMVEVHcEz///////////////////////////////////////////////8NopmKAAAADHRSTlMAe4Fzh7MZbKPtN8gpX19xAAAA3klEQVQ4y8XUIQ7CQBAF0CWhKQHDGtQKQFcURUgqEARBED0Aoqp3IKnoATAEW8MNOACmhQYKcyi6uyjmr+aLqXj56bSbVoh/J3HBxcw0ZfA2c3FiQLGeQcWh1lOVDDJTAeCbCgAR6QqCDj0xCEU5Bl2BIALKMwhdKjGILRUYfCIOEynlvABANk64M5jabJxHfJY2I76yzYu/ZCc0s1WbNYAQ3jxqwMoGHoqWGHpUQajEgcYYcKWFtjLE4FGJQewoxODRDQOqKPPcHl9sfzSXa/0L349tEDsOsp/8+2/xAY+BZBY9KhM5AAAAAElFTkSuQmCC") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-audio{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAIVBMVEVHcEzKysrMzMzMzMzMzMzMzMzMzMzMzMzMzMzNzc3MzMz8gU00AAAACnRSTlMAL0jMZKt96hGJsSKv1QAAAJ9JREFUOMvN078KQFAYBfCbJEw2q6SUyWxTnsJT2JTJ6D38Gb6n5PpT6BwbuaNfTnz3fEp9fZwAP7czD0MsGCzBYJcEYsGwBEHQQRB0EII1CMAWdAOzyJUvJ4jyDVyZVHKGpj9guEI2IuhaDFadYnCkIm9I+kPgn8t+kI7kOsT72HcwQnJR9Gofy8DrwwtHK8pLzdeALg5fNb6cdJ1fOjOGYrl5CLFcggAAAABJRU5ErkJggg==") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-audio:hover{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJ1BMVEVHcEz///////////////////////////////////////////////8NopmKAAAADHRSTlMAL0TQf2frEaZYt8E+idL4AAAAnUlEQVQ4y2NgoDdgUcAuzr4Hh4TaGQHsBp3BLsG+BoeE2hnsEkCDsEqADMIqATIImwTYICwSEIPQJFhnBjKInUGSUA2CSPCcOcIwB1ki5xRM4iiDDrKEzQlsEuUF2CVY0jbgkDhjMLQkEkj0IM4gQQ1EHMHOOXMiakRpTiQQtXgTA+7kgzvB4UyiuBM17myAM+Pgzmq4MyfO7EwjAAAEf+BAxqI/agAAAABJRU5ErkJggg==") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-mute{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEVHcEzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMztXryaAAAAD3RSTlMAHd4P7ztyiy1OnKhdx7uY2gyAAAAB8ElEQVQ4y72Uu0vDQBzHE45C3SJFaSGjUEiRpJRCBifXokkpSv0DfOBrEKxUUSoFH9ClFAUfU7c4OARRCs5WjThIsJuDlLo4ldvPe8SYxGyCt1zgw+dev+8vHPcvYybvfCR2OgUv2CoLdI62bUn3gq5UJxOomZofXPUNrIChJRklfcDSiKK2bYQ6PiCaREk0EQoYPFYa3F73F+DGsBJLmAjBAMBKakG15KAxqIhd2KuK5reRccBDNbqGJhfSlnNc/kBh4OY+vaoR5QrRC0afKgxMrKdXNKI8yxRENpyd+i0VA6wMm5IOBmORCwfAFjGwolofevbuPrvpGhRgpVaqiJflrLuUQQFRToS9l894EMDe7q6yL7/G5wMATc5mQCiAvQo3HAbwLtyYHQZgTxhohgGUa/CP12EA16W2/Ou4ZEj1dNG9oPMkZGiwJWQ8j+huPoJy9Z/XHTfUFSbAURveCtE5px5vs7hQDKS25FSDn2KR5Up1/lRmIHne7BvKd82LMRJbSjr5M40lmaYZ5/PRpiCpizjJyk+CwOGOzACLpSdz02QxkiuRhd8dNOwkV7zl2YX1mcySKJrQiPkXY9klSt6rkJPRwIlmzrcWSGyzHuTb11V/N0y/S6SdwdCR4m/47OIN7XOQCfwJwHGp8IcfyRdBLEZK4Uxp6wAAAABJRU5ErkJggg==") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-mute:hover{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAP1BMVEVHcEz///////////////////////////////////////////////////////////////////////////////9KjZoYAAAAFHRSTlMAbk2o8o0P5TsGnVojFi/XHcV9urLaq0oAAAIQSURBVEjH3ZZZkqswDEXxLM8T+1/rkw0BuwM0f131+IvDyZVk6SrL8p88QCHp8UAnWmoWoG8AwQRN4/vOiqwUuwWqiob646MMhEW+KnMLMIXffgiZoODBusb7kCzjByF7OOszkOyp4amJ7fWVPwCN6BpyWRypvANPCvi7u4aTXe13YI+KkYA5bMRTSMlLnSyGwisSH40B0FJOrKVB6iAw2U7sGgPgQ/DTPQjitCOZT4Q6gWCtGwGFbSM34ENUNSpAKTACmC31rnRgJwjDdkFAJpfkAsZcAJvCSVQB2FaWWKdB/ATMAHwIUYL21lRBZRDiC5AnsBHBUqxEyaraFMoz0AnvHNa6xDWS34FGgNf6PYAEZoCt+BroUWFVbeb5HbCqSvB2cToyca+Adjlycdawt0C/HeyScl1W/w3gsU3aAd7JF8AuAN6isr7NAogXAFeq59Ec7ifAm49hF8wCMWfVNXAeCAkjEGuBr6R5ZGJzBrl4gGniBME+w8aMMyCsNZtfaemnmYaAQ6I3Rz0fnDhHJxc93Vrr7sHWjP3XRtTba2L3EkdFVaPC6YmXxKI9DGF1YPLdiwfD2r37cL5nDVw+uKzU5K27hsXCXPtyC2uyyl0D0p2TY7VaIvFYWU0Dm8TdOXmrVp52HG4lU4K/N38PpS/Kw70dbmb/sC0WCcQwNNzzjrzUj7veUyIIyL/4m/EP8V829O8zh5EAAAAASUVORK5CYII=") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-ptz{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAM1BMVEVHcEzMzMzMzMzMzMzMzMzMzMzNzc3MzMzNzc3MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMxDm1AzAAAAEXRSTlMAHqw+E8It/gjxc03jhGDTlgAjE2kAAAI6SURBVEjHpVbZkoQgDBwg3Of/f+12gtfMbK1Yy4NampCju4Ov1y8ruNyyo9fyCibVlNW6vUu29GpWQwTVdPTernqwffHex0WP4Nro3k+PrMKCvew/PcZ95aoNsY9yua+cGxTZsnf2K7ch4CAdGnWwYx/5LgKZCgxGdrhH3BeqNmnwviFXPZbQJmcM25HJ5n7/Pczr2QqksMJfO7BJOHLKLWFdMiL1QXYRwFagMklb4GB1zS7s8Le3fqH7Q28tVLkKdIzeaOJB2OKtY8KfTQCUa4++dNsLbrqpTR7xguHGt8hfg8P+seuaEkNdBjahzOD7g1cHP21SL2LtMNBKMdTRJjffTX1wVgrsEb1ITJU6QknwYJAcQky2cE02NbzPp70KyKggtpu9xM7Ik+CBIqY+8FrYyRUkrs+MEm1TG6tG9LZxNDNFGDue63TYGgIHqUUcuNhvhyZtn5LnlDq3Juxa4noCuX0scErOpNMDCrVcHPCS5rFGuQR9KZpxnB6CQ0ZO+AIBcTPk3UdbTx1L7jLEEHsMW7ZYm8NlIFyxn8+xdL7MURYEhzd5k2N2TabxIAORwC2r00QQfNSgrnqTJfh7cDmDu9ggtV0EZFr7kGu4KAxtNDln406TLwF9iZCIwn9EfjPuncRHYm5x3NfK3cFAS5kWxljSnTFlPHBAUFg5HsCCVOd9cdwXq+027un2QJlMjqISJutCDceRtTTuT4+1Q3HWHR8cu0fh9sGvADTYH9iLah/9nPz5+/MDJnQfoIVoAnQAAAAASUVORK5CYII=") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-ptz:hover{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAQlBMVEVHcEz////////////////////////////////////////////////////////////////////////////////////1bZCPAAAAFXRSTlMAeVoYDS1pBiPv4/g6lkzO2qSxvoixscijAAACi0lEQVRIx51W2ZLcIAwcLnPf+P9/NS2wp5xkq0ziF3ZRC3R0i/l8fvi04oxx89n+RBi1sqB38TKw7lw7lNzDa3U0e57bHhJ4d567HlqGC08eLAj9Gv8XD4/OwtsdhlfCW2s9LfWtuNrMhG1uLWP17Xh14LF4m8dx1OJ9jkm85YCYch5JzDVy81on3MFYkpTNYGmHHloYI+aqlNhlh5ZSvmH1AyBUwPcMX+u/clW3XYvA2YgRGXyZIZX6PXv0l3GlV9Jp9FKcK7mytJIg8xEeBdaBtV4P8tAixexnp73tY7ZBkrk9WEL8t7ZUDqtIA3jXa8sODSeUVqw5aztT+g4QeNAgM0PGTA0+EmfVeUvU0CEW4hX+lt/zseE7jJKDSmi0EUKBhr7EAMKPvNjOA9Fz4Yk/CFgcGRSdkYOHCLRxQfzKRN5SB/b5Ot8SzzQiKqcb6ipFdCfi1JI84OBdxzarhJ8RkpxHOQszl7bpn0GpmnXq6R4OfTkwwlyUWzeQg7rSLNhNUzEUEqJF3DMHeeXgqRIaYwHimLKipK8hMZOYVfJ5oKtIFSgXk5z4KcNx3GOIPGYfPigh9YGHBNQKVKbZhxMnqq+OHfWBHARZfWm1dnfSXfJuXInplse8wy39zkisdQ5kuLY+Bpc5hwGiH8Mx1rE24DFaLqXkfrNVkjk+8JPTPF0bUw+R9MCVuA8ks/xDyF/9orMqpBQeiob5RbIbmv7/TxvoX1Oqa914TsYg7QUWx8Y7R89JQY8mY6Dat1G5GARuMOgYHY9cbL1vNvc++fk67olLk4nrQSl7457OPqdeKn+vEwm4LPzW87DyXvqIyei9znHS+cZz9SxV+Qf8nNbjn37NkDx4+PmCXzHOLUMtjgmUAAAAAElFTkSuQmCC") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-ptzActive{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAANlBMVEVHcEwgmv8imPwimPwhmP8imP8imPwimPwmmf8imPwimPwhmP0imPwimPwimPwimPsimP0imPoLqfILAAAAEnRSTlMADprCJBnU/gXwh3LiUKxAXjJ/ELXKAAACbklEQVRIx5VW2bbjIAwLa1jM9v8/O7Iht+09MwPlpS2VwLZkJ9f1lxVG1joPdZ0u1ZIxurhv8DH6dMpQI5t439GAEc7xYPgTRnAtV7plReRhd5kDP8+fd+wzt70yPhIJzWT7/6DCJCAYLReZPMIuJC4pClSktHqbNpJO1aTmmAme3cvtWs9NSfq52CPhnJNjlbVHwgmWSWGHeQHcKFjj7fygwidf2fa4mbVOuladcnsoDn9/CKKAWf6HEtpANiJvUp9Fgr0SvocPP/sqjOCK9ktpyCAo4Kt/d4n4/6baseNKAt5XrauPN1A4ZLAd30RUI4kNfELVx+yd3lrXYIg1Bp/B/dGs5N8mPsJoVyiwkofQSlm+K9aiwmoQMDoI4wefoK/rhkESrSuV+BR2i6HZH9juLzxCtBmn6rFmB66gNJQwBOSxncT/N3FAlxAoLQfJDy2+6rMLI3aznl9fhOcGSdZzoNhex2K3TXJEVe3M4Zb6QhHuJc5BWakYIqqietcPw6FK+EHofUHRqtLEQ5X8dKVENXXgEpLOpcjwkFI30YFVHE8fyx2ShZJ/ydTKlZwZ4BCOv/af9uMi0DILe4kieynScgPbhai+DRDckTT6N6zJpI3HMghM3BMg+q9pHmwrbR0Q0D5wc0JHPy0E5Ur7Nf3Rk68LnR0NHfO28/T5P4cNr+uLFR7eEdiNxvMRbd5Onlqsis4iIVdme4di3akWOz+3T0aUnFWHa8QZrO51NO69MeLPafrNuBenxel/3d21j8k/jyxf+75OQabFxOtuT94G3Lpjzb0zBn2Dl0ep/waPidQ/p/XB60Dp7e8F/QO7WSJg4zEzdwAAAABJRU5ErkJggg==") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-ptzActive:hover{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAANlBMVEVHcExru/9ru/9qu/9ru/9ru/9ru/9ru/9svP9ruv9ru/9ru/9ru/9ru/9ru/9ru/9ru/9ru/+3uxEqAAAAEnRSTlMA5q0cR/PC/ggSKtN5OIhaa5izIOiAAAACV0lEQVRIx5VW2ZLjMAiMToNu/f/PboNsJ5PaKWv8kKRkWkDTQF6v/zyUfO+JX9sP1dKKd/v2acQcm992kbo1R4il7iHIif0BRNtCUOozH4cikAdt2YfjRLTnzN15/8I85wFCI2xDzlnyMLO7R0aFoTzbFGB+jIkYLkyePvmW8d2fs2ZfZuv8It9s6zvV5uSr2LmKb9oVh37QvpjYOcf8fcO3Cb1jGqOU0SvTTd6X2KUBLgKdLzaiDtE2n+isTh8/+AX7E6/Vh/NNSyfVm10RXIe1nxXRapmsDQB7SMnkmE0IxgqvUn0jteEf1T2CHXgr0gjZllGk1HoJL7lD7fRpD20CgJcwQ6EdSh3lLK0zVfuqz2WvPlPJh7HqnCQ4MysxoAYQE0vHub/toRuqzRy5pEUvbg62MzlJQn1MHBe1x7WSAddpNDSN1c9wRMhKfi2jrICwAIsQvHkD7Al41bOrBNC1Y7QdmSg15LDokGETJB/imxYJKfmFMDqI3FjUkDS3NSEDjBaxknRYSb+4nj4kC43W2OKrkqGB8jV2Fq03YiWbhHQTpUV1mMHXWYf8HlNX7ZUQRC6iwBAIK0r0ILr1UxqKsPattAkhwSIiMl76bT/Ft/TbTy2jHQoM7Cz9isHVMb6GILl0H4DGivbw7xNc8rAtiJn3O/qvD6JT/wgs7Y370ZSdWmbZWEKiG1lXImldW7Q1jGMbZW9tUVKZmGjjGvf+EXAqzWiX5OfFSHVp/zjbfGPc3whdcbTF67V2N1e79qYMru2/AnzVYFsdWFt/+nOypv8vQvoHou4gOtSrG5EAAAAASUVORK5CYII=") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-performance{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAnUExURUdwTM7OzszMzM3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3NzW8hQDoAAAAMdFJOUwC/gO8ra6tUQNmVEKtAA1gAAAE4SURBVDjLzZMhT8RAEIWnpS3tXcWdQ6wgOJIKfFdUICv6AyruB5w4EuSJCwRXgUBWkGArLsEi6JVuaZkfxawguSWz/p7azLdtdt97C3ASagp+PpeXPDjHVx7McMWDCBc8qPCZB4m44YFIeOBh+ckCf9z+sCCYqi8WvA/5Nwu26cfA+JRBs4h7WmX/tr9AXcQHAPdgzEPZh5idTQBOZ3zyiModISKQGxZ7dd85E0SKfMGjM7vXeI/5AE5LvrwpcK9IOrQYB5BlCsFIvjzgrkaSjsBZbmC9XsGsAxfn8gKXpL9sSlnQFBwFTTuaKWXgI5Ar+sfHTrW6DUDO+2jEEtCNQ9wL6gNujMvvdFS3eugxGT51fBXxTvF1wLLngbT0BGphKalAy0MQ3Z4Ha2V7UoMFJKkFVAWcvH4B0OJfd9YsTl0AAAAASUVORK5CYII=") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-performance:hover{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAzUExURUdwTP///////////////////////////////////////////////////////////////8/RimEAAAAQdFJOUwD2qdfrViyAwW2XORBGtSCsD6SyAAABN0lEQVRIx+2VzQ7DIAyDYfxToH7/p10CbQ+T2s33Rb1MijM3/qDG/EurolD9zSNRggBU0hFelMABmenfADhGkJDhGUFGgiX6I1AAQlDgZK/td8ELtQORiTmIq42I2bYdCD8NjzPmYQxO+rbn2S5qzEUF6YjkgcJude56X3s0SoL7LRAeylyaVPiFq0Jyx230mpeXmXVOHssRbhackhCq25Sny++xcBW1n6Snqw6BTgrqRP6kzfDcgmRLGonDWSf2OecwB491dOrEVZpNsxiyiHzWJ0Z+BbBwzaoWVb49HrqVfSkxHen7WNznLhzl8xpQlT3E9oHUtYaufB+7NY9g9ctbjFfj/h1DwXUrzDltMn1Ql9M814EQWPLmEBg4R7JSzpFQxTmSBMkLvJKOhFHfKEEnv3L/+qw3DuMPzAFH9pIAAAAASUVORK5CYII=") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-performanceActive{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAtUExURUdwTBGW2xKV2hKW3BKW2xGW3BKW2xGW3BGW2xKW2xKV3RGW2xGW2xGW3BKW2+P2IvgAAAAOdFJOUwC/gCvzq1RAleURc9VmrA9rXAAAAT9JREFUOMvNkzFLw1AUhU+SxtTahnZyC+IsIeAenDuE/oJQcS/FTYTi6hKcHYpDZ/EXBME95BeURpM0Me39Db4Mgk/u23umcL8kvHfOucBBKEr5eW95xoMjeuBBlyY86NOQBwt654HrPPHAca/YuUHrDQsG9eybBWa1+GLBqvS3LJiNX0vGJw/R0N6LJ+/f6x9I3uwG0D+luRU0FnmdCtBy6ZM7KvQdjgXwJYuNZVNrFfqF8IX+nFm/oBvyS2iZ8OWxgH4u1IZmU4kgfoa5E77c0jwhoTYCbTRFGE7QrXFCveCURkK/2cRBCp2gFYiyWk7Jw4AgXOmQZMAqa9uAeCP+JsViihtb9OKIPtBUuvy8jeqyHRpMhvc5X0W6Lvg60HrPg0DREySOoqQJKRbByRWbExaqlSoVwB0rwCLFwesHquttxhcsa64AAAAASUVORK5CYII=") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-performanceActive:hover{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAnUExURUdwTH3G63zE6n3G7H3F633G7H3F633G633F7H3F7HvG7H3G7H3F6xOzy+EAAAAMdFJOUwC/hKbvK0BT2XURZct0z00AAAE3SURBVDjLzZMhU8NAEIX3LiSUNqI1qBMMChFRgYxAd07E4CI6HQwzEUXgKjC4CH5ABAKJyA+oaHqBJO3+KPaYYSZh9nyfyuyXu7l77x3ASSgu+flYX/HgHOc8kC4wwikPMnzhQaTueKAiHvi43bFg0m4OLPBM9sWCjyb9ZsHm8NkwPiUQT8MjfSX/fn+F/C3syJf9YB7oLsDkjIaiHix5QCNbGBmAFPve+3lXi/0viLB3ZnmDz5g2ICry5daAvCbZhSE2oIsFeC35ssJljiQbgZitIY7nIGu4wLG+xBnpL5tClxQhCANR1Q5TSmCCQK7YjftOVbYNUOxot0EsHl0uwHdFfcD14PJLG9W9HfpMho81X0V8MnwdcHvkgS4cBcqVo6QKHQ9B1a6XY1zAcSiIFg6QlXDy+gEd714RcAqEowAAAABJRU5ErkJggg==") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-face{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAeUExURUdwTL+/v76+vsDAwL+/v7+/v7+/v8DAwL+/v7+/v96T4QgAAAAJdFJOUwBAgSCbs9hZap+hQJoAAADvSURBVDjLY2AYRkAJCAygbEZBQUEBKJtpJhDAOJpA9kSYxESgKphuIaBuhASqyYzESjC2hDRilQBZ64BFgm2qMLPYNCwSkQpAwlMBWYIRzJsKYrKCxZSRncKSDFYzBSNY2MD2MqRhSFgqgClPAwwJBxwSbAk4jGKZDCKZp2JIsEOcOx0ztjQDYL5ENwsYJKrTsMSvGSgepzVg2pE5qSikPRPT8sopBuDod0ATZ54JsbZyBrJgAVAp1Ax2oPXMykjxYQaLA2CMoERUZQDMrgBUCc8CKIdzAvHJhyQJpLQLSu0TCaV2lPwBSu0KQy+LAwBuJj5UbruNggAAAABJRU5ErkJggg==") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-face:hover{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAnUExURUdwTP///////////////////////////////////////////////w2imYoAAAAMdFJOUwBAgBvfrFmcw4wrbtGliFoAAAD2SURBVDjLY2AYRkAJCAygbEZBQUEBKJvpDBDAODpA9kGYxEGgKphuIaBuhASqyYzESjBu79yIVWIP0NoCLBIsR4WZJY5gkYiZACRqFJAlGMG8EyAmK1hMGdkp7M4gkus4RrCwBIApFwwJmwlgqsYAQ6IAIrEAwygHHEaxngJbfhRDgg0sxHoMM7Z0AmC+RAPsJ4S5NE5gid8VoHg8sgHTDh/PzM60HkzLc44bgKMf3RKuMwoQ+dNIgswJDAycUDPYjhgwMCsjxYcJLA6AMYISUTkBMLsaUCVqEqAcngPEJx+SJJDSLii1HySU2lHyByi1Kwy9LA4AqflRBKNSA88AAAAASUVORK5CYII=") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-faceActive{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAhUExURUdwTBCT2xKV2hGY2hKW2xGW2xGW2xGW2xKX3BGX3BKW23povfoAAAAKdFJOUwBAgRybs9hZLG6hrV9tAAAA80lEQVQ4y2NgGEZACQgMoGxGQUFBASibaRUQwDhaQPZCmMRCoCqYbiGgboQEqsmMxEowTgmZiFViFtBaBywSbEuFmcWWYZGIUgASXgrIEoxg3lIQkxUspozsFJZkEMmxBCNY2MD2MqRhSFgpgCkvAwwJBxwSbAk4jGJZAbZ8KYYEO8S5yzFjSysA5kt0s5YKc6guwxK/baB4XDYB045Vi4pCyrMwLa9aYgCOfgc0cY5VEGurViIJMhcAlULNYF9mwMCsjBQfZrA4AMYISkRVBcDsCkCV8CqAcrgWEJ98SJJASrug1L6QUGpHyR+g1K4w9LI4ALk0RHtSETFcAAAAAElFTkSuQmCC") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-faceActive:hover{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAhUExURUdwTHzD63zE6n7H7H3F7H3F633G63zF7H3G7H3F7H3F68TinBIAAAAKdFJOUwBAgR+Z31ipwW4yAjb9AAAA+UlEQVQ4y2NgGEZACQgMoGxGQUFBASibaRUQwDhaQPZCmMRCoCqYbiGgboQEqsmMxEowTmmZiFViFtBaBywSrMuFmSWWYpGoUgASXgrIEowgHtsKEJMDLKaM7BSWYLCaJRjBwloAploxJKwUwJSXAYYE2KUMVRgSrAFgKhTDKPbFIJJ5OYYEG1iIfRlmbGkVwHyJBlhWCDNrrMASvxageFw6AdOOqKCklrQuTMuzlhiAo98BTZx5FcTarJXIgglApVBr2ZYaMDArI8WHKSwOgDGCElFZBTC7GlAlvBKgHK4FxCcfkiSQ0i4otS8klNpR8gcotSsMvSwOAIs+RIlIrewIAAAAAElFTkSuQmCC") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-object{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAA51JREFUaEPtmT1oFEEUx9/bnRALGxE70btkZjcR7QMiRisRbCzEQvxCLGyEhCDRBC/RoNaWFgYLFUSwUBAUDKKFFqIQ3OzNJpfCyspS8HaejNyG87J7t7N3l03gttydefP/vbcz8+YNwhZ/cIvrhx5A3hFMjEAQBDwMwzOmAi3LWhBCLDTr5/t+ycSubdtLnPOncX1iAfQAlmXdNBmkru2RVgBSSspg+5kQ4lRjv1iAIAgqRFTIMIju0i2AWNvrAKSUowDwLqP4tACm9rWmbABCiFxXKimlhu0BtPFHtdc19wj4vn/Wtu3XnPOfWVByA5BSngCAuwCwryb8Hud8EhGNltANB/B9/5BlWXcA4GCMx/8g4jjn/H7aaGwYgOd5BxhjcwCgPd/0QcRVAJhM2l3rO3cdQEq5GxFvEdH5VsLX7aKIH8MwLLmu+zapb9cAFhcXt/f3988AwJip8Jj2L2zbLg0MDHxr/NY1gCAIpohIJ2V2BwC0iUd9fX2lQqFQ6cQvtJbICSGOxHhlVOdKjuPMl8vlqzrxI6IdWUAQ8Um1Wp0ZGhryiYghYrUtgDQionxJT0al1IwGkVJeBAANvieNDQB4joglzvmilHIXAIwrpX67rmuUamfKcxoTvnoQ3/dP27Z9g4j2J4C81KBCiC9LS0suY2yMiC7rttoZuQBEQhsiopfT6wAwUvv+hjE2XSwWP0kpRxBxgohO1kPmDhAHEgTBUaVU1XGc98vLy8eVUhoqbpPLPwIx6/wqEV2ovX8AALzZ/Ng0EWgQGa1iLQ8xPYCUyx8YHjt7EWjm2I7sAy0it7ERqNWEDkeiklIJg8pFWwC1ZC6SM9NYc1oXgcaiVlxVYmVlZW8YhlMAcCnFvOkEQPqqRBqASLTneTsZY3pjapZSpwF4Y1nW7ODg4Ie202kTgGiwSqWyrVqtXgOA6Zj0OhGAiF4R0azrup87dqDJAlA/eLlcnkDESQCI0us4gOdEdNtxnK+tfkHjA027AJEgKeUVANBROVd7p3fixwAwJ4T43kp4nR2zylynAOoE/JuAiPiDcx6kFb5pAEwF5zKJ2xXZrH9uc6BTUD0AAGh639Xo6bjUI+G/NglS+p3Y87wCY+y/2ozJSGkuRDLekQFjbEexWPxVryfpjuxhllKhNtwtAESc55xHx9M1hsR0WlcOlFLHTLyv26Ypi5hesyql5oeHh3VBeN2T6TxgCtXN9j2Abno3je0tH4G/KbtRT7VUKs8AAAAASUVORK5CYII=") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-object:hover{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAwdJREFUaEPtmTuIFTEUhv8fLSxsFrET3UIQRHtBRNdKBBsLsRBfiIWNoIisD1xfqLWlhYuFCiJYKAgKLqKFFqIgoiBoYWVlKbjwy4HMJXs3M5Nk7tzZCzfdvZPk/F9OHicnxIgXjrh+jAG69mCpByStB3AgQ+AcybmqdpJmEvv9SvJhqE0QwBm4lGikqD4VAaCMvh+R3NffrgzgB4DJDCPWpC2AYN+LACTtAPAqU3wsQGr/pikPgGSnO5Ukgx0DNJhRzZp27gFJBwE8J/k7B6UzAEl7ANwEsNEJvwVgmmTSFjp0AEnbANwAsDUw4v8AnCZ5O9YbQwOQtBnAdQA28nXlp/NG8HT1G7cOIGkNgKsADtepDnx/C2CG5Muytq0BSFoJ4DKAUxnC+5s8cSCf+j+0CXDBjAJYNgAA6+Keg7AwpldyAXqBHMmpwKjYyThJclbSSQBWfyIT5IF5kuQ3SctJzjcCiBHhxUu2GM24gRx1IGtj+gDw2I34Z0mrbXcC8JdkUqidFecEAj4fZD+A8wA2lYA8NVCSHyRtcGvouKtrg9EJQKHVB7Ht9ByALe7jCwAXSb6TZP+dAbC3D7JzgBDITgDzJF9L2u2gQoectV0yAD7IEffjDgC7plaVJQdgYotdLOYSMwaI2gETr51jD1SN6qDOgSobw/WAywltLxRVhBIxi7LxInaxUCHHFvmCpFkorWInoR8LheqsA2DB3LGIRdPIAznBXC1AIVrSKncwVYXUMQB2Sl8h+SYQOCanVaIBPJAVAM5aqBAIr6sAnjnh78s82aoHQkYlWYwz7YXXIQCLRK+R/Fg3BYcO4HnlhPPKIfefTYX7dm8m+aVOuNdP+1OoSow79KzKL5LfY4UvGYBUwZ0s4qYiazzY7RRqCtfZIm4qfGBrAEDle1e/0FDoUTKvUxiT3gfsaWlBbibFUsyDiKSkBK9nf4LkH19P2RvZ3cxUIVoEmCVZXE97DFXPrJY52JUy+lY3Ji2S8cxq4i3jsahk3QdSodqsPwZoc3Rj+h55D/wH5CHfQHNA9EUAAAAASUVORK5CYII=") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-objectActive{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAA9JJREFUaEPtmU+IE1ccx7+/N7O0BwUn24UeRKOd7LalvS+I6HoSwYsH8SCtLf1jEqWoyLJVMfEP6nlNIgi6eFChCB4UChaU0h7aQ1GQrnFSdw9e/JNs9LTFzPvJZI27m8xk5k02m13I3sK+33vfz/u9N+/7fo+wzP9ometHF6DTGfTMQF+mYNqwd6sKlFLcK++P3WsWF8nkUyr9stAeTcXN624xrgDVAUgcVxmk1lbaGPIFyFocou9fSonYzvo4d4BsYQLgaIhB0EYA174bAFaNWpuFhrthxDsxQQCMrKXUPwGbvfr2BSglYh39UjmwXYCwy2kh4jqegd5M/itdaL8+i5vPwwB1DMDIWNuJcBbA545wAs4V4+YIiJQ+oYsOYGTzGwniDIANLjP+hkCHiglzNGg2Fg3AGB3/Ugj9NBO2+4ujSSaMeJ2uc+PbDhC5aK1GhU6CeY+/8IZz9E+CnSomBn7zim0bQF/m4QqbPkgDOKgufH4EAzdZaKny3vUP6vtqG0BvtnCUwY4p01oFcOIZuCJ7elKvvo9OtLyESMN7IzeViA3VC3TshiY4Wkz2j0Uyj3+aMX5shAIhuia4kn6Z+DSPu6xjiCotAQQRMeuXaJJYpqsgOetbcBV8TZA+ANxgotRU3Hz48SWr7800DjHL6VJyQMlqh/I5jYZvFsTI5XcRa0cA/sLDv98iieMv98X++Sj7aEBCPwjwD9W2LNMdAqhJnQMyc5D9DGBwRhzukK4fK/647q9I1hoE6DDAO+ZBdh6gEaQ3V9hi27JS3tf/u3Hhv20kpQPldsgthQw0fOcnpc3fVK2EhosEmE33x9LJwKxM54Lj/Ap0SeoCBPz+qVw7uxnwmdQFOge8R1n0DDg1ISaxqSbJy0oE2pTvqhStbOK5FQy2ka6vOTVkoL6o5VaVWHX+yVoh7KMAvvPbNq1mQNmNBgGoiV55fry3R+jOweRpqQMBMO4wxImp5Cd/tGynVQBqg0UvT3z4eroyDMaxenvdHIBvE/GJYnzgb69MtjUDboMa2ceHCTQCoGqvPQBuSOZT5WT/fb8luOgANUFGxkoQYVja+Lq2iQm4ygKnS3tj//oJf9+PamUuzBJqJsY59Jz/9wh6+iJpFoIKXzIAqoI7solbFdksvmN7YKGgugAMNH3vqp9pN+vhtq5VMqT2PpAbjwrW59VmVAYL8iASCfdGBvm/bpQPrCvP1eP+RpYrXA5XKgTaBkA0Voqb1eupL4DToFo5YLlVZfadtkHKIqrPrFLIsXL8s0k3LaHuA6pQ7WzfBWjn7Abpe9ln4C11Qo9Pmb2aMgAAAABJRU5ErkJggg==") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-objectActive:hover{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAA8hJREFUaEPtmU1oU1kUx//nvthx4cJqX3RgGLsQBNG1tq8Z7axkwM0sxIX4hbhwIygibfPMeyapunY5iymzGAURZjEDAwoVm8SPhSiIKAjtQtAmiooLiyb3yEtNm76+5L37kjQp5C2Te879/+65H+eeS1jlH61y/egCtDuCNSOQyH3cWirNHVIXKO6kYvqdenbxqVlLxS8J8Txp6Ne9bDwBnA5IiIRKJ5W2LDHsB2BmC6zqmxk3UkP6AbedJ4CZfTsNcL9qJ077VgHU8r0MID5V2EsCk2HEBwbIFdT8M/aGBkgaelt3KtOB7QKEnU9NsGt7BMyp2cOa4P8tY3M+DE/bAC7cK+xnxmUwtjvCCXzFHtRHiEhpC11xADOTjwG4BCLDY8S/MvhsyoheDRqNFQMwc292QmppEPb7i6MZgEdqna7V9i0HSNx/95MscRLgo/7CXS0IWS6VrFRs8+1ati0DSEzm18kesgGcURa+3OAfSGklY5ueuP9qGYCZzceZySKC1gQAgPkvXtNjpXatn258CmlYSOSSg/qwW+B8usH9SSM6Ec/lTxM7iR/3hgEh4Jpk2Kkh/UVikiP2MBUbAggiYjFfchajtB0QM/fuOFg64D8H8QHQTQ3CsowNT8cffdLnPn8+KyXPpWKb1FLtYJ0tbbU84asCyRYOEmiMwTtq+P63JJAYH9AfxTOFbUTlNXRyPlmTdpsAKlIXQZyDDJJGGbx7/l++BSHM5EDfg7HMm91CRM6B+fdqyA4AWA5iZd/++hWymDaid+OZ/G8EGgXB65DrhAi4Jw3NsORj5VRC4A8AW+tN2Q6KwKJM54b2HcD3EtMFCLojqVw7uxHwGdVQ992OjkC5JqSJPRXw2qlEsMpFo1OonMx9/7gE211z8iirLC1qeVUlxrLvtwgU4wBO+K2bpgCoVSX8ASqiRx682hgp/jBaL6UOBsC3pMTFdCyaaUI6HRyg0llicnptqWfdeTBMd3pdH4D/kyQupgf7HtaKZIj7gDpAdefxzOw5IjECoJxeewEQ6CZBpmwj+thvCq44QEWQmZ09BYjzLHFk4SQm/C2KIm3/svGZn/AFP+qVucYi4BbmbLnOb5rGr+zB6MugwjsGQFVwWxZxoyLr2bdtDTQLqgsAQt33LvdIe6UenvNaJUQqJ3Hi3ut+KSNLajMqfQV5EAnzRuZoEF8ivfZw74dqPbXeyP4MVSoE0DoAmkgafeXrqS+A08CpHBDTPpXRd9oGKYuoPrNqETlhD/w446Ul1H1AFaqV7bsArRzdIL5XfQS+AaeCtE+rbksUAAAAAElFTkSuQmCC") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-occlusion{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAACCVJREFUaEO9Wn2MXFUVP+e96X5oa9UoYpUszrzzZlqLKDYhgAFaaKU2+M2W9Q8TNUQSQEsiRUjFVaHGNmoBMTUmaPwD2iIhqKR8WEBFGkLFUjbtzDtvpjYrVhpCXAtm1867x5zxvnXm9c28mR13b7LpdO65557fveeez0GYp1Gr1d4VRdF7lL3rui/n8/lX5mMr/H8wDcPwIgC4QkQuAwAVWv9eA4BJy/8sAHg7ALysf4i4DwAe9Tzvj/3uP2cA5XL5CsdxNiLi5QBwUkQeQcRHrNB/JaKZZuGYeRAA3gsAZ4nIBkTcAABLROS3xpjdpVLp0bmA6RlApVI5FxE3OY4zGkXRdkTc6/v+c3PZPAiC80Vkveu6Nxlj9ojIjmKx+GIvvLoGcODAgTctXbp0CwBsEpGHEXEbEf25l83a0TLzh0RkMyJ+AgB2TE1N3b5q1ap/dcO7KwC6AQDsRMQhAPiu53m7umHeK00YhlcDwC0iMg0A13ZzQJkAlKmI3A8ADyDi9Z7nnehVsF7owzA8Q0R+BABXIeJY1mF1BMDM3wSAcRHZ5Pv+nb0I0i9tEARfRcQdxphvFYvF8Xb82gJg5gsA4FkiyrylfoQVEScIgttyudxLhULhwSQvZhYAuJCI9qftkyrckSNHzs7lckdFZJ3v+0/0I2CntRMTEwNDQ0P3i8inAeCUPmLP8/Y2rwmCYC0iPl6v19+3fPnyvyT5nQZAmQ4ODv5aRF70fX/zfAk/OTk5PD09rcbg4/EeiPgPEfkUET2dALENEc+dmZm5cuXKlf9unjsNADNvBYD1AHAJEf1zPgCUy+UljuPsQsSPpfD/m95Is29h5rcAwO8AYC8R3doWgDopx3H2I+IXs17/XIEdOnTobcPDw3ry6zrwCKMo+kypVDoU01hreK8x5oJmZ9dyA0EQ/AwAhnzfH5urgJ3WVSqVd7iuu8vGTB23SLM+QRCoOZ/2ff8Ls2oXf9DYJpfLPSgiH+nGgfQKcGJi4szBwUE9+Uuy1orIQREZKxaL5WZadaiI+Ey9XtfbacROszfAzL8wxtQ62dysjdvNM7MGcSq8Rq1ZY/+pU6fGVqxYcSyNsFKpjDuOkyeizycBHBeRjb7v/z5rh17ma7XaSBRFuwHg/C7WPYWIV3fy9kEQXIyIu4no3bMAqtXqZcaYnUREXWzSNQkzFwBAhf9wF4v2RlG0sVQqncyiZWZ2HOfaQqGwr6FCYRhuE5E3E9F1WYuT83qluVzu74VCYWfzXLlcLuqDBYAPZvEUkYeIaBQR61m0Os/M9yDiG57nbW4AYOZnAeDWpAPJYsbMNwLAD5TOdd2L8/n8Hyy/FfbkV2bxaKgB4s89z5u1LFlrmPlSANhKRBfGAPTBrCGiatbieN7GSpoaDut3IvLa4sWLi8uWLXvVbvBUFi+NchFR00/V6+16ollr7AGpaj5JRCMxAL06VaGWNLATM2ZW4dc00yDinZ7nbdLvrLXQaDZ1iMi9vu9/ySb/BwHgTAC4kYh2ZIGw6ekbRJRDy+AlIjoja2E8X6vVilEUtdhoOzdBROdY4fcYY0Ydx0kDcQ8RXd90m+qVH9P/qwPTf9WcK5+YJmnemfmE67rnIDOfBwA/JaJuLEWDHzNrAPZwGmCNGnO53HYAWA4Aoykgvk9EX0uuDcPwBhG5KwahAjOzqqHqewNYMwhm/hMAXDMnAEEQaP76vTY39v4oiiZd1/0VALyzGYSI3OH7vubVqYOZ9fE3NEENin1LDdqkgZkFMBcVqlarG4wxv0mR4nUiWqLfHz58eGTRokXfdl33tnw+n+pVu1XZNLpZFbIq0fKIm6yIOhX10K8g4t1E9IDSa84wMDBwHBG1WNU8NIObDReY+RYA0EqDhhJqbQ4SkRYI+hotj9gCaDGj1Wp1lTHm+ZRdvk5EDdVh5h9qiaWZBhHXe57XCLKYWVXoygSPk0SksX1fw3r4FjPa4shsVqanP5DcyRhzebFY3Hf06NG31ut1fWQNT4uIWzzPu0M/d3gjTxPR6r6k/+/htDqyMAy/Y4zRPOCmmLn1zprYJ8eriLja87yJSqXyScdxHtKSi4YCVvgxRLyvjZCpFqhXQEEQbHccZ9rzvG/EsdBFIqKmVK1AYzQJl8Z/NH4PzHxV/NkCuAsRb0hb1C4x7xUAMx9GxGu0ONycD0yKyGcTuegLAJD26K4joh+nbczMe7QolZwTkZt939/Wq7BJeq2nIuIviUgr3v9LaDSdFJFjKR7vtMcYOxXVRWPMpY7jCBE1PGiz84k3F5G7fd//Sr/CW80YR8SROK2cvYFOKSUzr0PED2hGZYw5ISLHrafUx9QI2uICmFY1RORsx3FmEPE5EXne8zz1mn2Pjiml1d+ekvrmqHO+K3hWvvZJvb2ensoqCwmgq7KK1eGttnuyNqsSvVAAtGINAE9oF6hjYUsB2EaG6vWx2La3U96FAmAt28jU1NTqZOMjtbhrGxovZJXVFwJAXGYHgPPS6lVtS+dxY6PT41wIAFpe79To6Fj7j9PCdmX2TvF6vzYzLqtrgyX2MWk8M5sXcaNDRLQjeft8Vaxj4bQSLSJbEFHjsraNjZg+E4AS2obHTzRb0kxsvirXVm1vBoAT9Xr9y2kNjeQtdAVAF9kQW5PseW+zzszMjCcbGe1UsmsAMYOURveTc62nap1TRNYsSKM7eQIaO7mu+zkAWAsArwPA45oXdPNTAxutaillsTqoKIruW7CfGqRdpRaHReSj2lvo8scezyDiY1qc7dda9axC3W64UD+3+Q/fZENVhTDr2gAAAABJRU5ErkJggg==") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-occlusion:hover{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAABphJREFUaEO9WmnIVVUUXSuiuahopOLLIqTBBgtCC01Ty8JmS/sRVESBNgiVJVZaaag0WBlGYNEPrSyiQdTKskEjpNKSCBqlzAqJSAsbYMV67vt13/3uffe+93pvw+Mb7rn77HXOPntY5xEdEkkHAjgk1G8k+VMnpuL/oVTSaQDOBnBmGG3DfwHwXeg/DMC+ADbGZwWAZSRXtTt/ywAk2eDLAIwAsAXAkvjY6O9J/pk2TtLOAA4FYDDnxmdPAG8AeJbkslbANA1A0gkAbgJwKYA5AJaS/KCVySWdCmA0gFsAPAfgIZLrmtFVGYCk3QBMDeNfAjCb5MfNTFY0VtJJAG4FcL5BALiX5B9VdFcCEBPMB7ALgPtIPlNFebNjJI0DcDuAbQCuq7JApQBC6SIAiwFMJPlzs4Y1M17SAQAeBTAWwPiyxWoIQNJdAKbZbUjObcaQdsdKujHcaTpJ25ArhQAkDQKwmmTpLrVjrKQdANwJ4FOSL2R1SRKAwSTfz5sn1zhJhwP4BsAokq+3Y2CjdyXtBMDueRGAv32ISS7NhN+RAF4D0I/kt1l9fQCE0lcArCPpyNARkbQrAAeD81IT/ArgQpIrMyBmA3D4HkPyr/SzPAAzIzYPJflbJ6yX5ARm48/J0f+DdySdWyTtBeDtyDlTCgFEkrKvXVV2+lsFJmmfMH5UAx1fAriY5CfJmIiGCwAMSie7uh2Q9KRjPcnxrRpY4vP7hfGumcqkT/SR5POyjeSVycu9AKK2cRQ4vUoCKZs9J5ocFMYPrfDu2sgBn2fOgjP2e7E7tdopDeBpAF83irkVJs4dIslFnH3eVWuZ2IWdwDbkDZTknHAEySuyADa5uiT5TtkMzTyX1ONqE4ALtzJ5C8C4Rtle0pCoXg/uBSDJPjmf5FFlMzTzXNKRYfzJFd5z/PcCujRvKJK+iFppRc2FJDnO7k5yQtnLOb7tLf2RpIu9XpHUP9zmxAo6X3R5TvKfCmNt7zwAvztPJQBWA5iSTSBlyiRNAvBAjBtC8t1YkGNi5Y8r0xHPn0pHlrJ3JJ0BYCbJwQkAH5jhJL8qezl5HrWSW0NnVItbyP4kN8cE9ucycVh0+2m/nlM184drvkmyJwHgrbML1bWBjWaXZOOHZ8bMJeluzdts13I1WyQLSF4dzb/DpsPsJJJuaBpKtKd2oR0ZClwJug6vJOHfdTE6XlxPckAY7xbRbWceiHkkJ6Z201l5efw93T8dzkNP7d/Z8C7JfckAAxgI4AmSVSJFTZkkF2BuK/OkX/TKRweALIj7Sd6cfVHS9QAeTkAEALuh/d1Sl5klfQjgmlYBuEqdVQDg2KBTXgawfwbEDJLuq3NFkg9/zRMcUOIsJTuQrVB7AZiAataFTIu8mmPFVpKuNL1LTmB3u1kpyqqV/LUY7HYXisnqDnEqijipOEObVXuEpPtiG+dGxP83WZUWd3C95YIkN+hmGlxKONqsJel6pi2pO8RhUF0YlXQKgDU5s9xGsuY6kh4MiiU9bHRCUEmyC43J6NhC0rV9W5IXRusSWaywV98rnZURJFdI2huAD1mSaaeSnBHgis7ISpLD2rJ+++L1SWT3RB9ghqwmkgzKjX1WNgMYRnK9pAsAuAxYTNLRxu+5l1hYYGRuBGoWkCQzgu4L7kjOgP3WodRRIAGQGJen33VLch7GJr8HAIdCh8Q8yW3MWwDwWS2EkqvS/YBJ2UsyvehHAPIO3QSSj+VNLMkJzKRUViaTdNHYlgSf+jxJk8R1DY3byQ05GS/vMNaSSvii/VEkaxlUUjr5JMY6gt3QluX/eYZLlJ6k+KvUUkpyqj8+OirH300pALWiLSHAJJnVMK/kusqs9RqSTjptS3C0+S1lrF5TTX266uw0gxf2FTf1McDkUWVapZsAKtEqAcIu4FJhZBkT3S0AwVib4lxCspjYCgC+yLBf+0DXYnuRdBGAI5trK+efuouPInLXodMhtCGt3g0AKZp9YB5f1Yhe923JokaHs0sATK8XXnSUXXAkbWEuzd6oXm83ZkpKaPVpSY7J01l6eZFcdESX5cu3jjDWiXHBRLvpcV1WeLGRjC8FEAfbienx6JZmdZC5tttOBuBkeW3ehUZ2FyoBCBAurWv3ZdEPd/Ka1W5Td5FR5JKVAaS2OHvRbX6mJT41eE5TM52/6M6uQNDxlzvhAdga91gusat81cDVquurPQA4QS3s2lcN8rYyyOGzfLdQ8cseLsiWu7NrN1o17UJVJ+zW123+BfogD+TkdLQFAAAAAElFTkSuQmCC") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-occlusionActive{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAACItJREFUaEO9Wn+MVNUV/s59+wOqyM7bFaxAsDBvFqnWak0MYhBQUEqUVssi/aNJawg7bxaKScFqqKyt0gip4sK8XUKqjX/IL43RlqBSxLZWYqwWdWNh3oIlFClkebMUaXfZefc0983MMjv7Zt7MLrvvn93MPec753v33HPuPfcRhukZt+3YeCndCQpeCO3kmWVTTg+HKbocoKHWjpnEuBfMd4GgnJ7ADAcCJzx8iUlE0AGcBOMkiPYz4c1kNPzXodofNAE9fvheQCyBoLvBOA/wHunSHq7CiXM9+BdWGj39nGuxq8dWYyJdxCSh8UKAFoIwBpL/CMidTmzam4MhUzaBmpYjNwmNVoFEA9jdSEx7zzZFPhiM8dotiduYeAFIWw2Wu6TLm7pW1n9SDlbJBK7d+rev/c8du5aAVQC/Lok2dEWNv5djrJBsTat9s2BeA9AiBjaN1s499eXyW/9bCnZJBNIG0AbQKCb8OhkN7ygFvFyZUGvHQ8R4DOBuSWgs5QUFEkiD8nYAuyuJmk5Hw2fKdawc+fGtHeN6mbcAWMxES4NeVlECequ9DoxmMK9yYpHny3FkqLJ6PPFTEG0CyyedWH1zIbyCBPQ2ewYk3ndMI3CWhuTsOhb6uMQTEBWfOdGpr+Zj6ZbNELjdaTQO+tnxda6m9R/XCa74AoLnO42RfUNysJjyuvYqffyo7QA/AKCXQYuSZnhvrorelpgHSW9LSn2jK3r9P/PhBhLY1V6ld1b/HuBPHDOyZricn/jsidEXRnXvIOD+SzaoS7r8/a4Vxrv9SFiJDQDd5NT13IeGGy7mjg0gELLs9QQsQAp3OiuN/wwHgbrfHh4ju8UOEH3XB/9LkvxAbm3RW+yrUIE/MbA3aRqPFyTgFakKcZCJfhK0+gdLbKz1aUjDaJWG5xfCYKADcB9MmtM+zcpksuELMiVn5Ba7fjOgxxMvgjDKMSNLB+tgMb0xW4/UVUpth7dnCnp8so9uJbaD0e3EIj/OqvcR8PY2VPGqJL6jlAISZD9//Op4+zWSqncwcGewLh8il5eeXVF/OFc2XVDpPXDqwezeqY9AyLJfIpbHiuXcYMP+EnqLPREVUGEzMxCDcFC6vUu7mqYf95PV40eamcSUpGn8SI1fmgHLPiUFL+lqjPw50EgZAjVbjk0Wwt0J4LYgNQYOVBE9VKza17QlZglJOx3T+Hofgdq2o3dJKduSpmEEGSlnfOxWe6pwsZOA75Sgt1dUu0s6H552Pkg2ZNm2EKLxbOPU/d4M6FbHBma+IhkzYkHK+ePpKa34d9Kc2pY7VmcdrpfQVNh8OxCT+TVnutGAOZQKlAUQittxIrrgmOE1aQJx+30p8Xh+AQkC01vtR8B4VskxtFlJc8pfPLw2ezokVNjcEIThjRP9zomG+zJLkE7NZnu2EFjvxIzbMzNgH3c1zD233DgapJwd17fYM0DYD8Lo9G/s9GpX1p9ffm2nZ0DDgUAstcsVNAGMWQBtVG80UAeACk3NxTuOaUzOEkg5KVwx4BhYBE237P0A5vYTIXreiYZXpWf1SDNIrCsIwfyCE4s8rA7/qV73EIBrADzimMamQBItdrVegQuOaVSQAui96H6WjBnjAhUzAnXWsXoJt1+Ozgy1O6Zxo+e8JnbBlQ1+JBiIJ02jqW824/Z8EN5KT6R8Uv1R6dzDyTz56T0Ut89UVmk3Ut1W+xZXYlsyapSSKTy4Osu+XwKv+xFWu0aBio1gXA+BhgEkGL9xYsbP8nVrrY4VDG7JklAOhyz7AAGzc3/L6oVa7Y80gWWDIhCKJ9YQ0TO+MybwTVHpnnB7tDcIuDqXBDM/nYxF1haaabX4ZS+8SFAJRa2lrGx+gukjMJgQCllHFxLkH3wc+coxjTHq95otn08mUflLltoTXU1TfKtqqSHrJ9cXQt6Cs+x+izgni6iicgrg0wBtdkxjtwfmHUSqTgGkmlW5jzrB9W0Xai37MQYWAZioml0ADjmmcfNQHPd0cxdxhkC/NFrXdvRWKeWH+YYY+HnSNLzQ0S37OXgtlpyHaYETC3sNqlrLfoOB+/IwzjumcdVQCQxMo/mFzHvD1ertV+UbIynvPttUv7/muS9qRHVK5Xqv0hLT2rOx8NPq/0JrhIF3k6YxZ6gEfApZx68Aqc4Bq7PgqjqDMMPHWCcTzUlGw+211pHvMcRrquXimEZDxvmlRPSyr5MFMlC5hHQrsREQ3Y4Z/oVXyNLNWd7mmMb0LFiOc374Ddn1oFv24r61obCsRAuBVvgpFTqYl0/A/pyJlqnm8KXtdKt9glz+Qe5ZtNayP2ZgwKJjRiwZMyw/w7pl71JNqQHrh/nRZCyyoVxn8+W9fqpGrzhRY5IXupdCJvEiwMfzK57vYswc99KxKGdDCHaihldB+xWfDDiDNyfNyMqhOu8lD6860+TssbKkI6WuSj3oW0yYSZBnwHxKEc3dtGUbYF5Xg/k6CNHDTB9o4A87zfBHl8P5okfKNLvyDvV+BC6Ho4Uwih7qlVK5bZWRJFBSWyUTw+sJtLCSMC+oEz1SBNIda+xj8J6ijS1FQF1kdLtjVYE6ns3thaZ0pAhkMtvkUdq5OfkXHwWau96FxsdBbfWRIJBts0vCLX79qoKt8+zFRrH2+ogQsGwudtFR/IIjeyws0GYvtl8fajbKttVBaM7WGD/MwMuL7EUHwBuRoqeGq2PdV1C9TjSvBWh1sYuNrHwgAS+9pi88tgIYx0TPDFfnOhO2jwI4Iym13O9CI38WSiLgKe1qrwp1VjePxDVrsq6nOf8io1BIlk4gg5B/0S01emew/VSvz+ny3BG56M5/A6odz6T9kIB5DHwFxtsssbuUTw1IYDEI8wm4koF9xO7LI/apgd9UquYwS74HzHeU+LHHeyToLdWcHWq2KjuESjU4Up/b/B9u0kgtWdqPkwAAAABJRU5ErkJggg==") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-occlusionActive:hover{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAACJpJREFUaEO9WntsW9UZ/33HaZJCX7S5TmhalQ1NaAzGYJUgvk7pe5QKusGa0v0xaZvQkKBbK60BWl/b8XWKaLWtUJg6IcG0P+hrCMHWlcdK2OLrFPFYGdU0ac+q9BHfFPoC2sQ+33SufVPXvfa1kyaWolg+3+t3zznfd87vu4Qx+nQfONc8yF+0KvP1NPHoxjsm9Y+FK7oSRo2+fh0I3AUpFwHUyoxWIv6EiI4o+8w8m5mmE+EowEchxH4g95rZ1myN1v+IAUR6M3eRwCqAFgM4C8ZeZuyFmHDk9OmpH2+7my4UB7fmj9wwderpWZBDs4mwHOoPmAzwn1hiV7I9+NpIwNQMwOjtvwWC1gLUwVJuIfA+s73lnZE4N3pP3M6gZSTEeoB3Q/JWs735w1psVQ0g/t6xq+T5uogkrCXQKyDebIaCf63FWTlZI525FUydDF4hGFtFYzYZnzvz82psVwVAOSCI7QA3MuMJU9d2VmO8VhnDsh8gwuMAnWfIh6p5QL4AlFEAO5ixp45yj8T1lkytgdUiH7dOBLMceIYIKwGs9ntYFQFELDtGQJyJ1yZDwadqCWS0spF05qfEtJWl7Eq2N8fL2SsLwLBOtgEybeqa7yyNJthYjEVucSYqRN1HCX3GS6W2DMtmQIRMfUaflx/P4GJ9x6+Tsu6/xGJpIjzjzdEEWEk3tvtQvZzVsgPM9zEwJJhXJMLBfcU60dTJJUzyDSGyX+pqu/Z/pfYuAxA7xPXytP17YvowEdY6xyr4dekjEydxo0oG9170QadY8neS7drbl4KwNzPxLWKqdk/XTTRYPHYZgGgqs0kSLQsExJ1dd8w4MxYAOlP25AaCCv5uD/vHIHP3FdeW2IGTU3I5+WfBvC8RDm4oC0AVKRbUR6Af+u3+kQJ7rPfwNXVi4k4CLS1vg/+Vy/H9m+Y1/82VUdmQwc+T5LbiYnfJDBhW5gWAGk1dWz3SACvpxd8705QbHNwJ5kV+9r2yj2HZOwA+b+rBH7j6wwDyZxt6CcThagqIXwCl47GeTIusJ7Vs7vTTZfDBHGVXPxGa+Y9i2ULFTrHk+92z00UAlv1bSPmfSjnXz3G58c6ej2c1TGjYCYLub4P6JAZXd+szD3vJRnr74xDiy0ld+74aHwZgpOzjknhVtx78i7+T6iU2Wp/OEZzdBcLtVWj1BJB7oFK132hl5gmmXWZYu3YYQDQ9sIiZt5u69pUqnFQtErH6rycWKvhv+ioR9l2QWLU5rJ31kzUs+59E9FAi1LTfmYFo2t7MzFebevBhP+XScTWlVCdOmG3a9uKxSMq+QRB2MvANX5vML4shraNrAWV9ZQEYVuZZIvosEdI6HQCGlUmzpA2lBcTPWLTPXscSv3DkmOeZ4WCv+ho7cPLGXC63i0A3+dnIj9NvTL1pOLP46UR67fkkeJOpB0MFAPZhxoSFSX3av/2U3XHD6m9j0H4CTSz89kmgoeGG+NwpA3kH6PGzxcAOAbQyMI8IW9QT9dNR4xHr1PWEobdMXZvjAIik7OzpM01Xl14DKxkzLHs/gIXFMgR6KqE3rXVsqqUlRKy8DX7e1IM/2nCgvzmQFQdBaAFjnRnWtvqBcK6nUwY+S4a1OlLswfnc5x+ZejDop+iOq/VNhEtytLOKwIeSevBmFXxgQt3u3FC2wwsEMT+bCAcfGbZn9S8liNcdG1J2qf8qnTsps/ApTe+Glck0Bq66mWJ99m3MeC4R0vwzRcFYpM++lyRe8QKsTo1STtgC4KsiQB2lIAj4eULXflaqG7UG1jD4aReECthI2z1gzC/+zdWLpu33ifDgiAAYVn8nIJ70BBAQX/siK480CLwKJq0YBIG7E3owUm6mnc0/JJ2VoBKK2ksXZ6DkhOoCGMkSilr2cgb+4BHIOVPXJqvfN1rH5giqT0gORLv1azyrarVL1ktueAl5beKiLKL4nuMg9BPxtkQouEfJOxeR1ubjAKaXbOJ0Qm8aPi5E0gOPE7ACzLMAtBJwMKFrt44mcKV7ySZWPxjWpWk0lrLnSsK7pY4Y9FhSb3KWjpG2fwmGk3HcD5NYlgzNcAgqI22/CsY9JTbOmro2ZbQALkujpYWs8IRVSa8vdUa53OLEvJb9sZ5Pp3F9tsettAyKJPWm7vwDKbNHCG+bIW3BqAFcVsj6BkzkuNEMa+td4woUQG0ezgYCCCyI69MPRdL93yYWLyvKJRnWOpy1n7ZXC8aLXkGWy0C1AjJS9hYE6LzZ1mTkK7EiZ6V4ztS1G11jbnCegRB3uPshms6sdL87+8nKPE2gNV565S7mNQOw7L9DyAcVOXzxOG3ZRyBz3y2+ixqW/QEAj01HD5t606+8HEdS9u4CKVUyLB819ebNtQZbKq/4VIjA70xdm63GigBkXmDJhy+reB6b0b3u5fO0nA8hOKlrTgUtLj7Dmxu8LakHfzLa4J0Zdo4oNMe9VlZ1pYyoUk/i62DSAc6wlMfzpf7ioc0lwAqsxnUEugDB7yCLd8127f0rEXzFK2U+e9R2qfcCcCUCLWej4qXeAVAjrTKeAKqiVRQItQQgaLng3BI/Jnq8ACjGWlLgTUjeW5HYUgCcRsZgfY9UG7qQ28tN6XgBUJlNCJoj6gcXlDY+PMndwmb5wI9WHw8ALs0O4tu8+KoK9Hq+sVGJXh8PAHl6vXyjo3KDo3AtLEezVzqvjzYbubQ6A3G3xpQ5nlR25TY6iLGF6kRyrBhrNwrFRHNWRpiwvlJjw5WvqvuSb3gEfs2gIAFPjhVznU+VeJTAGSFyP/ZqaJQ+7qoAKCXV+OBTdnw82qw0TYuXNjLKrZOqAbgGShvdLOitkfKpiuckyQvHpdFd+gQUHQ9B3yPGEhDOAfwGS9pT1asGgldCNTgYk5igCtSL4/aqgddUKnIY4G8xc7ialz2IKAXQ64qcHW22qnkJVetwvF63+T9nAHfjRfzL0gAAAABJRU5ErkJggg==") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-logSave{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAA1RJREFUaEPtmT1oFEEUx9/bFLFKJzG2WiknZObFxlO8RtFC8SuFWlrYGBtRRNCghV9YmFQWgoVaaAS1ULRRRKvbmYBBQezVYBOIGFMkT0ZuYXPufOxdspuDO7jibmfe/H/z3sy8eYvQ4R/scP3QBSjbg8EemJyc3La4uHgUETcx82YAWNum+N8A8IWZrxLR41ZtBQForUeY+Xarg/j6MfMVIrroa5f13AuglOJWDLfQ56aU8mzefk4ApdR9ADiW12ir7RFxXAgxkqe/FUBrvYeZXzQbY+bh3t7ed5VKZTrPQM2eNHYQ8VGGjTtSypOhtq0AcRyPIeKptCEppTfkbAM3AxhbcRwfyYJg5nEiCvKEVZBS6hUA7EoEIeJ+IcTz0JlpbpcFYNrYIBDxlhDijG88lwd+IGJ/YoCZ1xPRd5/BUA/Mzc31VavVWRcEM18jovOuMV0eWLL7tBM+RoBS6isAbEzERFFUHRwc/JD8dnjishDikg2iSIAJADiU8uhdIjqRFuZYEweI6Gmuc8AWs6EhVK/XR3t6eg4zMyKiEQ/MvOSwQsS3iHhhZmbmY61W++UIp/dSyu2FAmit3zDzTjMoItaFEFuVUt8AYCB0ElLtZqWUfYUCZHlQKXUQAJ60AAC2Nbhia8AWglprAoB7jYQwmGXVACSKzRqJomgLAJjvBh/JqgPwCQ7dRAoPIZ/w5HkXIHQGQlOHvCd56PjdEOpoD6TShT/MfD19OXeFQCPnOYeIaxYWFiaGhoZGQ9Pv5nZthVA6XWjkOsMJRGj+b/IhIURtVQCkIUJvYKUCONLf/+67tjuw+T+rLlTYLmSDCDmwbOIbF6CgC1Vba8B3m3JBuMQXDuC4iGQy+MSXAhAKESK+NAAfRKj4UgFsEHnElw5gBGit9wFAUqy9kbco1vY2Gsfxsha2QrbV1K42gIimAPDvw8zTRLQuy0ZhpcU8AMZ7zPws1ee1lHJ3LoDlLu7mAcioZFuLvYWV130AU1NT/fPz8zuyqtWIuFcI8TKXBxo7QaEvOCyQD6SUx20T4K33F/iKKVOj7yrqBWhsiSv6ki8zNBBPCyHGfKEXBGCMrMBr1mZtPxHxEzN/jqLoYbr07oIIBvDNRFnPuwBlzXwybsd74C95KWhPrxIhsgAAAABJRU5ErkJggg==") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-logSave:hover{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAthJREFUaEPtmTuMTUEYx3//TrWdeLRUJCrReISGUBCvLVAqNGiEiASh8IoClUKyBQqPBAWhsREqnYRE9NgoV0T3yci5m9mzc2bmnHvvOXuTO8ktbs7MN//ffPP45hsx4kUjrp8xQNcezPaAmW0EDgFrgLXA0j7F/wG+AlckPW5qKwvAzE4At5p2ktHusqTzGfUWVEkCmJk1MdygzQ1Jp+u2iwKY2X3gcF2jfdS/I8l5O7tUApjZTuBlwNIk8E7STHYvQMCTzs6jgI27ko7l2o4B3AaO+4YkJadcVcdlAGfLzA5WQGR7IgbwGtjuCdoj6UXuyJTrhQBcnQjETUmnUv3FAH4CyzwDKyX9SBnM9QAwIWk2AXFV0tlYnzGAebtPP9OnEPkNWO2J2STpQ+9/xBOXJF2ogmgT4Amw3xNyT9JRX1gEYq+kZyGIoQGY2UXgAPyPt5x4V8qH1TRwDvgk6XdkOr2XtLltgLfA1qLTj5I2mNl3YEWDdTQraaJtgAVryMz2AU8bAFC1Boc5hYKbgJmtB6aKgDCbZdEAeLuOWyPrit+qFMmiA0gJrjr4yu1an0Ip4Z6Hss6hMUBu6FD3JB9PodwRGGkPeOHCX+CafzmPDUAR85wBlrgwQ5LbUueV3AHsaxGbmR8uOAGTPYga8f+0pG2LBWAOosYNrFOAqith6L5bdQee81optG7nHIjE8DlnVlB8EVa3AxCJ4VMAleJbB2gAERXfCUANiKT4zgAyILLEdwoQgcgW3zlAIWA30EvWXq+bFBvESTzQxFZqSyqdAe7i7xIAvTIjaXnIRmupxZoAznvPvTZvJO2oCzDQ5G5NgPKbRGWyt7X0egrAzFwedktFtnqXpFe1PFAsxLYfOEIaH0g6UjUAyXx/i09MQY2pq2gSoPDEsB/5QuJPSnLrMFqyAAqIQT+zloX9Aj4DX4CHfuo9RpANkBqJrr6PAboa+V6/I++Bf0in3kCazcMZAAAAAElFTkSuQmCC") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-zoom{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAkUExURUdwTMDAwL+/v7+/v7+/v76+vr+/v7+/v7+/v7+/v7+/v7+/vxtcv/AAAAALdFJOUwBVdZCpGdZE7C3B0wnY6AAAAV9JREFUOMt1lDtPwzAQx20ghGwVsHVJhQRDlsywWKqEULsw8FhRJ2iWiglGGJvFCw8xIVVCSEwkKU25L4ftpOHs2Cclsu7v370smxCLecRh+xOH8Ja5kGEs/6dtYf1XONcWZurbwwRCQjYZ9l7uHAPAOBHpI1QC/QSY9g84ldmnAn7Z3htwsfZnvSe54eJd5hlcC7gccxTwSETZEr5+714vLRdfkFraVNtetXLpR7ha+mkHCV1Y/q8ZOW8AgDkecsIaAEIcGbIGyLUq4KcBYl0o7QAB4FZACBMrQKpaJOCZQqyAIhgayYEpgD1DZghXCvBTNJFKmCvgzmhcCEsBwMjSRx6BslYftRX0JLYKrAsLqzDC54EFMwvy58QhMM8hFNq0UpwET+sLC9/4BmEBTytyRCIbDoAEiR1Qp1dbRxfoyv9g3ogaKVuXhVZZbtqX6Ez6H23PxG4CM259QDwt/h8ABfK8nDqSAAAAAABJRU5ErkJggg==") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-zoom:hover{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAzUExURUdwTP///////////////////////////////////////////////////////////////8/RimEAAAAQdFJOUwCCyreU7KZVRCDaZnETLwj6WaYVAAABUUlEQVRIx5WV2Q6EIAxFoVBWxf7/184AOnGUsvTBqDmXrqRCzNou1kwGtyZIQNuiD0P6evWTURFUMtIoPO+iVoGIZPkMqkdKA0jZgoJ6suQc2EoiGBldOoQ9HSDk5+GTs1Fqo9IlcEpvNv3qv0MBhSalIFSv3+MCJCY8fUaCxasycrMu9dp5VTUhubXZ6CqsAvn66ZAsx+e8fON37oT3bZ4aiRU0kDlavGSrQI95HPBZACt8FuCL16IruBVkzBeBW+CLYHvyfiDQd96IpHpOMqP++fAq9VMQ7rwrM5+6gjwG/3y/D/m8ylPYpvpAeqO7DfvwMPO9D6jnBabG56YFZx77fEjD+9AyLdYEhp8nxoNh5wmJtfY8AS+wzIZZrJNcC4h3wV8IH1p87Iyfnc6XVaAd7ICHAsebw97zgDSxZ/yvViiPuYUfTe650knM2+7Ywz9yOCklzohLOwAAAABJRU5ErkJggg==") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-zoomStop{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAzUExURUdwTP///////////////////////////////////////////////////////////////8/RimEAAAAQdFJOUwDjmTC6Y0KBVakX8s8iC3JYR1wyAAABVUlEQVRIx62V2baFIAiGcwJRS97/aU/Zbtht0VzrcJOuvl/AAabpXy1RF0F/m2h2PX5mzucEuO9gMon1MY7KlG8w4LImC1XFQmxDGVkm1DYpXi0qS1gXTEGzKoqNS1ajAxPqJDikFLcFS+aukYJffRfXnAj9kYUXFVi86wzzPjuCFRXBwS3KaC/Pt02Ww7uf1jz3BVYtX/OsyDQFDn7yswPXb+Ovs39eJJWwxrOXV4thgC+//QBf/uMAXwAa4AuRBvgdWR58CB2B+eaRG5e8QO7Jn2sIAvzhbdsDnXzev8q0BengGXv8EciH3y1CY5++yI/BRNx82g/La7lc7b0Am/tUC6n3HoZ4SbDyy5BgzSNivV6wbPXeIPOpHlOU+CjkTQKvQOpXdRdJvn+5xttWQa4EZUOzluonT6+q72X6Zb0+T/lNhQd7hg9vm8LWUhW5gT4iN7c/0ZUo8Q3AttYAAAAASUVORK5CYII=") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-zoomStop:hover{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAqUExURUdwTBKV2hGW2xKW2xKW2xKW2xGV3BGW2xGW3BGX2xKW3BKW2xCX2xKW2yDN61kAAAANdFJOUwCAVKxm3T/DmhrxKw97YQBGAAABaklEQVQ4y2NgIA6wGqCLMCqAqV4HdIm9F0Ek22UMM9hiG4AkVzQDA+cmx+YyJJnDlw8wMNQaNpfevbu0QgxJgrN3JQPD3VvhjU57kESnOZqvvXuJgcEXxVFMEkDt1w11gZYwoVgue3d5SzaQSgCydZG1TMkBU8vBuq9guBcqNBNDgj0GQrMEb0CVYEmA2ViANRQZ795tQPZduADciXcVUNSthGu4hGrAJawagBIXsWoAClzGqgEocRWrBqDIrQNQDTPRXZ8A0cB41wBNQgGiQfbubTQJAagGDB0GIA0OsnevbkCTCADiu4J374ahW34JqAEIbiXMRJOAgkvMKJYgJBx6717AKiF4F4eOu+jxgQCXGHBIKPDgkBC8JYCURJDtQHYWN4oEcvpZiyR+C9lZtkgSKKG1CyGOGrxItleixjrcLFBWRAYcMIkG9NQMiY67N7AlcxAQwMwA6SBxM2xZQ3jtVRPsRQ83sg8ACMIUxzzE8wsAAAAASUVORK5CYII=") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-close{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAeUExURUdwTM3Nzc7Ozs7Ozs3Nzc3NzcrKys3Nzc3Nzc3NzePZJxkAAAAJdFJOUwCtKdPBGAmNTt3jdDcAAADfSURBVDjL1dOxDoIwEADQgwR07GTCZtI/IGHgAzBhM9EPkMTB0Y3V0ZXIcn/rtRR6pefgSKeSu3ellyvA9lZ/5F9p/3K7PZY8oPG5BD6MpPUSgIITzdIStifAshjRQV1PCFT8TxaicTzzwEwINOEdHVmDmcTAkRhMhMAp7iQRjcMtDhCp8SA1v0ARGIIK/gnkv0p1OBTS4QRUIpE7DiYYXTBrzcld3JIrAarXrps4AVNwRSZgExoJmIyAaAdsShUMn/JF2fh4YEkpAcgvnuwYCIb6EbbbP4PsDfLD2dD6Av1qTvAQlzUTAAAAAElFTkSuQmCC") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-close:hover{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAeUExURUdwTP///////////////////////////////////8kBMKEAAAAJdFJOUwCt0igUwJdJePGbgLgAAADcSURBVDjL1ZMxEoIwFESTCaOWFDapqeicnAALTiANnaWlnVewDTMW/7b+aCAb8jkAVIHN2/lsNkrt73lf8M08nnF1pAYFR/dFmAAx7SIoi4iDbRrWDMAuQFzmmxAGbjjJgjj6dCjMCAND/o8RWQMzUgIRKYE/wsC5TJIRR74rBUZaqqXwLZEXT0WTDGwLW1aavJWQir9qadw++NgykWoMNtcykh8Q5EECgr5C+jjpGjHjPGhPU5eVzyfPJitfnUyhPg6ywMKZ7BygcYcsPCj1Kc8uXYPqpeSLs6PnC4w8S+8OJ9MLAAAAAElFTkSuQmCC") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-narrow{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAABm1JREFUaEPVWWuIVVUUXmvfYRosHzUZUUqKjkSXSe5Z+5qJhfawLELCR5ohPhKjjB4EWgkpkopRSWEPS1Mqy7Gkd0iPGaKy6ey9Z3z0opwEQytSMiS5NZ4Ve7j3dubMOfecO96buf/cx17rW+vba52919oH4RQfeIr7DxUjoLW+BhHHAsAAZh5gPwGghpl/TKVSHZ7n7T9+/Ph+ANg/atQo+1mRcUIEtNYzAWAiM09ExLPK8KgNADYw8wYp5Z9l6PUQ7RWBvON3AMClJ2Kcmb9DxAKR33qDVRYBrfUNzLwQESf0xliUDjPvR8T1RLSsXNzEBIwxc5l5fYSBnxGxxfO8bQCwN5VKHc7lcofr6+tzR44cGcTMg4UQgxDRfp8IAJdH4KwlooXlkEhEQGv9EAAsDQF+GwDWEdE75Rg1xlwFADcx83QAOCOg29SvX79ZDQ0NuSSYsQS01h8BwBUBsF45HnTIGHMBM9uFmR2Ya0bEWxzHORBHoiQBY8xmZp4RAFlNRIvigMuZN8asYOb7Azq7hBCTMpnMvlJYkQSMMUuYeblf2fO8ZdlsNiyVyvE3VNZ13XFCiGb/JCK+6DjOrLIJ2N0GAN4KKG4hIpuzVRtKqf6I+HvAwAIiWhdlNDQCSqntga3yUyK6rGqe+4Db2tqu8zzv3cJfiPiLfQYdx/k6zH4PAvlD6iWf8B7P8yZls9mO/4KAtaG1fhgAHvCReN1xnClJCXweOGFLhrAapJqamlLDhg372H9eMPNMKeXmoL1uEVBKTUXEJp+QJiJZDSfjMIOZgIibHMcJbrfdq1Gt9WMAcI8P/D9f/YJtpVQfW7n6isSDRHReyQhorXcCwMV5oWN1dXWD0un04bjVqta81to+i7bi7RpCiAmZTOYDv71iCu3cuXNQZ2env07fRkSTq+VcEtyQ7XwNEfkz5N8Ucl13khDiDR/b+ZlM5vkkhqopo5Q65Euj74loRGgElFJ3IuIThUnP8xqz2eyeajqXBFtrvR0AiuU7EXXbeIo/tNaPAMB9BVBmrpVS/l3KiDFmBjNPKbMbK0A+6zjOq3EktNavAUAxlUsR2AIA0ywgM3dIKYfFgRtjmph5apxc2Dwz/ySlHBynq7V+wV+tliLwPgBcmwdsJaLRceDGmD3MnI6Ti5j/g4j6x+lqrZ8EgGKTE0nAGPM0M9+Wj8BhKWV9HLjrukuFEPMBoMf+HKdrm3oimhcnFyy1IwkopRYj4soCYF1dXf3JPAMKfiilNiFisaSOJOC67nQhxCu+h3i0lLI1boWqPW+M6WDmoXk7+4io8L3rr+IuZIwZycztPocWEdHqajtYCl8pdSEifuOT2UhEc/w63fZUrfWvADCwixlii+M4408mAa31AgB4xufDHCLaGElAKbUZEf09cAMR/XCySGit7TXO3IJ9IcTQYI8cLKfvQsQ1BYVq9sBxi9La2jqipqbmMwA4Oy8bWtoHCTiIaBua0/JKB5hZSikPxhms9LxSah0i2i26MHoUct0eYt+2tRIRF5/MKGit7YFqD9auYU9tRBwfls49emJjzEBm3gEAxVKCmadJKbdWepWj8LTWHwLAlb75hUS0Nkw+6lbidkTspoCI6aibgUoSU0otR8QlBUxE3Oo4TleNlpiAFQwWUfa/XC7XZ8yYMccq6bAfS2v9OADcHUidqUT0RdkE8iS+BIBsQHkkEe2qNAml1HOIeGsA914isqQiR5LL3aMAcHoAYTIR2av0Ex7t7e3ne563mplvDoIh4le2xC+VurEE8pGwh1m3/sBec3ie96iUcndvWLS3t4/o7OycK4SYw8znRKZIDIlEBPIk7IrfGDB01JIAgJZsNtuShIjruplUKmWdtidsMLK2lFmFiPP8fUapSCQmYJ2L6cDsNfh7iLiXme1VjG3GOwFguOd5DYg4HAAa7O/Q3QTRXiavchxnhzHmIgCw3V6xWYoiURYBa9h13atTqdTssJxNEoEImQeJaIV/LimJsgkUjCilLrGXToho33mFrmoMod2I+LLneW9KKb8Nk01CotcE/AaVUmOFENcz8zgAGAIA54Y4dAgADiCifejtjcQnSSIWRgIAniIi+5q3cm/q/c40NzfX9e3bd4gQ4kxEPFhbW3sgnU7/lcThJJHwV8kViUBvHStHz0aCme2qe7W1tasbGxu7rkFPGQKR50Q5q/B/lP0HjgOoT/ydvaYAAAAASUVORK5CYII=") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-narrow:hover{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAABS1JREFUaEPVmgmoVVUUhr+fosKC5ogGSsqIpKQwMqjIBpsICdMGQ7ISo4wGApugJCoxLClssElpNEuaI5okKjOI5onKhEQrSiKiaKA/Vu3zOu+8c88593qvj7fgcO99e6/h33udtdda+4khThri9tM1ALaPAQ4Btso9GwNfAyuBb7JHUnzvCq0XANuTgePSs00bFr0L3BuPpF/b4BswtSMAyfDzgYPXRznweQ7ID53IaguA7ROBGcC4TpRV8IRL3SNpVrtyGwOwfVYoaaHgW2AZsBT4CliXnt+BXYBd02d8D5c7rIWc+ZJigRpTIwC2rwauKZH6NLBA0jONNQK2jwJOAU4FtijwPgpMkRTga6kWgO2XgSMKkjoyvGiN7d3SwpxZGHsVOEPSmjoElQBsPwScVhAyR9LMOsHtjNu+Hri8wPMBMF7SqipZLQHYvgq4tsA8S1KZK7Vjb+lc24cDsfJ5ul/SlLYBpGjzVIFxsaTw2Z6R7S2BnwoKpkta0Epp6Q7YfqEQKl+XdGjPLM8Jtn088GzuT9/FOyjpkzL9AwCkQ+qB3OSPki9GOrBByPZ1wBU5ZY9LOrkpgDcLJ2zlFvYCke2NgFcK58VkSRFU+lG/HbA9EYg4nNE7kkb3wsg6mSWesEhSMdz2z0Zt3wRcnBO+wVc/0217WMpesyRxraSd6nbgfWC/NOm3OP4lRVowKGQ73sXIeDMaJ+nFvDF9LmQ78pR8nr5U0oRBsTwpLQnn8yTlPeR/F7I9HngiZ/A0SXcPJoDQbftHIHOjLyTt1WoHLgBuyQ3uKylC6KBS8UyS1C/w5F3oRuDSnLWbSPqzynrbkSdFfG6nGstE3inpkbrVsf0Y0OfKVQAWA5OSwJWS9mggPEJuhN5OaLWkqBMqyfZ9QF/4rALwPHBskrZC0pgGwsPFRtbNazH+s6TIfeoA3JqqwH/nVQG4HTg3SVsnadsGwiMznQYMiM91vKmgP7tuXjHVrgJwGXBDTuC2g3kGZHbYXhQVWva7CkCkyg/nAIyRtKJuhXo9bjuSyOFJzypJ2ff/XCqHdBTwXs6gmZLm9NrAKvm29wY+zc1ZKGlqnqeYzH0PbJ8mLJM0dpABTAfuyNkwVdLCKgDFGniEpC8HC4TtaONEOyej4cUaubgDFwLzcgw9q4HrFsV2pAxvANuluaWpfRHAAUAUNJsmpmhrjJa0tk5ht8dtRx0cITqjAYlcv5c49zJHKI2QmtEG3wXbcaDGwZrRamBsmTuX1cTxEi8H8qnEJElLur3KreTZfgk4Mjc+Q9L8svmtuhLnAUWGka06A90EZjt6UdGTymiJpCxHG6CqqrHVL4lKnMMkRaXWE7J9M3BRwXUmSnqrlcK61uLbwIEF5lGSou3XVbJ9F3BOQeglkgJUS2rS3P0F2LwgYYKkaKWvN9neGYgT//QSYR9Hil/lurUAQqjtOMyK9UEkWXMlfdgJihTn45CK1GCHChmVIBoBSCBixU8qKIrdmRuXG5LigqOWbO+fjA7jizsbqcxsINLsfJ3REkRjAAlEVQUWbfDncjc0UYz/BewJjCh8lgGNZvJsSctt75MabLUg2gKQQBydSrwyn63dgRYTrpQUdwR91BRE2wAyDbYPSk2nuPOKVW6X4t15EHhS0mdlzE1AdAygsFpxwX0CEJcUuwM7lhgULhW5VRgeHYnXmiBuAeI2SXHN272b+gKgzRKQrYFIBNdI+qOJwQ13oi8/68oOdGpYO3xpJ2LV/45zI/t3hSEDoBXYIQ/gH99H3EBePlczAAAAAElFTkSuQmCC") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-expand{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAABvJJREFUaEPVWWmIXEUQrnqzZseYxGM9QBNF4hrJEDfzqieuAY/gFRXPyMYbzUHwQBQUzx+KeBAJKhrRqEhEQWMU75AYXREPlunu3bjxIDGraIwiuJpFkL26pMK84eXtm3lvZieGFAzsTtf1VVd3V9Ug7OOE+7j/0BAAnZ2d2UmTJl2cyWTaAOBA+TDzgYjYDAB/y4eZ5fNjc3Pze7NmzfqlUYEbFwBr7TUAcAEzXwAA2bROIeKnzrkNALBeKWXTysXx1QXAGHMVANwEACePxzgzjyLi057nrczn81vr0VUTAGOMRPtmRDy7HmOVZBDxL+fcyr6+vgc7OjqGatGdGoC19hZmfrKC8t9LafEWAGzLZDL9g4OD/S0tLYM7d+6cyszTPM+biojy97kAcGoFPV8ODw8vbG9v354WRCoAxpiXAUDyPUrvAcAqIno/rUHhs9aeCQALmflyAJgUlkXEf5xzp6U9G4kAjDHcKMejeqy1xzDz/QBwXYyNViL6ISkwVQEYY74AgLkRJcuJ6M4kxbWsW2sfZua7ozJNTU1HtLW1/VFNV0UAxpjlAHBHWNg590ChUJCINZyKxeLpnud1RhSvmzJlyiWtra2DFS+AuAW5bQDg3cja60QkObvHSGstj588fGVi5heVUktqAqC1Xh+5Kj8nolP2mOchxd3d3ec55z6I2JpPROvj7I9JodIj9UqIebNz7qJCodD3fwAQG8aYhwDgnpC99UQ0Py2ALyMv7DIiWvV/OS921qxZk5k+ffon4fcCEZf4vv9i1I/ddkBrfSUivhpiMkSkanXeWnsFAFwCADNHR0fX1nPwYzJhAxGdkwTgJUQM38l1Rd8Y8yYAXFoytoOIjqo1CFrriQDwCyIeEsh6nndsPp//KayrvANbt25tHhgY+AsA9i8x/JvNZqfmcrn+Wo1bazuZ+fRAjogSH8w4G8YYOYtSOAZ0GxE9EQvAGCMRk8gF9BYRLajVeeFvIIDdrnOpt3zfnxcLwFr7CDPfFdqupfl8/oW9CUBsa63/DKXRz0R0TCUAzzDzDcGic25WoVDYvLcBGGPk/i+X7wMDA/vNmzdvJPCrnJvW2leZ+cpggZknKKWGqwGw1l7IzOcg4swoX/gMyNbH6HnO9/3XkgJkjFkLAOVUzmQyM2bPnr1lDABjjJTE58sCM/cppaanUK4BgJL44taZebtSalqSrDHmpXC1ysynKKU+j9uBj5hZ6nShLiJqT1Jurd3MzLkkvgrrfxPRwUmyxpinAODmSqkdTqE3mPmy0g70K6VakpQXi8X7Pc9bCgBHJvHGrEsjtCxJLlpqDw8PTwt3bGEAzzNzuerLZrMt9bwB4lCjrtHSLbQaEa8NgGaz2cm5XO6fuDPwGADcHjrE7UqprqQIxa03EoC1to+Zjy3ZGZN25R3QWt+IiCtDDt1JRNLU1EyNAqC1PgERvws58DYRSY1VpjKA3t7eaUNDQz+Xtybm1UuLpFEAjDFyRp4N2a1cSsTlLgCkaqyjwBoIQMrnRYH+0dHR/Jw5c3pid6B0YO5GxIdDV1ZdPbC19nLn3GOIOAUA1hLR4rS7F/B1dXUd39TUJEOFQ+U7RNzo+/5ZUT3RfsBHRGloZCgrtIOZlVLqt1odGC+/1noVIsoVHdAiIpJHbTcaU+ZqrR9BxHJRtycnEZVAGmOkfVwXOo9bJk+efGLcdGIMAGvtYcz8FQCUSwlm7lBKvTHeqKaVN8ZsBIAz0qRybKMRc6VKDuZ83/82rRP18mmtH0TE+0LyHxNRUOKMUVuxU7LWlkuLQGpwcHDi3Llz/63XuSQ5Y8zjAHBrwMfM/cy8oFAoxFWzu9iSRou/xtQ5bUT0dZIzta5rrZ+XyUNYDhFv931/RTVdVQF0d3e3OufKtXdI0QIiklH6uKmnp+co59zycC8SOrzfAEBHtdRNbLaLxeIMz/O+H3N9Ia52zq1QSvXWg6Knp+f4kZGRRZ7nXc/Mh1fSgYhVQSQCEMW9vb1HDA0NyS0UHS/KLF+2+NNqeRp2rlgs5jOZjDgtL+wBEcdlEv0oIi4O9xnVQKQCIEZkTuN53uqgZ4iJmMxrPkTEbXL4AECaceldj3POtSLicVKayP9x0UZEGSY/6vv+V9ZaaVHXpAGRGkBgtFgsnpXJZK6Ly9l6Uqkkcy8RlUsY+S4tiJoBBE5qrU9CxKvlZ1YA2G3UkRJIr4wxnXPvKKXGnLG0IOoGEHZSnn5EvIiZTwKAowEgrh39U2orRJRDLxOJz9IAjdsJAHiGiORn3sb8Uh91ZNOmTQeMjIwcjYgHIeJvEyZM2JHL5Wr6+TSsMwoCEVf4vr+re2zIDqSJ5Hh5BAQzS9R/IiJpf3fRPgOg4jsx3sjsbfn/AH37LF5g3/BiAAAAAElFTkSuQmCC") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-icon-expand:hover{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAABYZJREFUaEPVmXmoVVUUxn8f0WRzVkJlIWVGUmIJWWADTVaUldFclCnSQBQYNv1RSCWGVFRSlkRh0GBS2YBmJWGJUBHNNJiYWQSZfwTRxBfrce5jv/3Ovefc++4z3oKLD/fea61v7bXXdMQQJw1x/ekKANs7AOcA44Ddkt/2wJbk9z2wTNIP3TLcgADYvhw4q/gFiLq0ClgBLJf0Ud1DZfs6AmD7UuA64JiBCAf+BR4GHpH0TSe82gJgO6x9PXBqJ8JanPktQABzJP3VDu/aAGzfADzYhPnPQLjFUuA7YHPx+xPYHxhZ/Bt/nw4c14TP+8CFkjbWBVELgO2ngfD3nJYBCyW9Wldg7LN9cigKXATsnJ39HTi+7tuoBGDb3VI852P7QOBO4MoSGaMlfVtlmJYAbL8HHJsxmSdpdhXjdtZt3wPcWnJmhKRfWvFqCsD2PODm7PBdksJiXSfbJwDvZIzfAM6VFG+plEoBFNHmlezEc5LCZweNbEcSjMSX0iJJ09sFsDwLlaslTRo0zRPGts8AXstkTZYUOvWjfjdQJKnFyc7PgCmS1m0NACHD9t3AbYm8yNiT6wKIWJxm2JmSFm4t5QsA2wBvZ/liuqRFuR59bsD2JcAzyaYPJU1oV3nbF8fjAw4DlnTy8Es8YYWk06oAPJnF5I6sb/tF4LxC2CZJ+3VghGFAVK17JmdHSVqf8uq9AdtR+kZNsmOx4Y9I/5KiLGiLbEc4jLDYQ5IqE2aZANvxFqNwbNBNkh5oBiAsFpZr0FJJU9vSvNjcRQBRPKbhfJWkE5sBuBe4JVmcIemJ/xNAyLb9a+JGGyRF+dFLqQstAK5J1g6XFCG0berWDRQA8py0raR/et2z8YftiD4RhRq0naS/W2lv+2wgIkNEm5x630BRaufrj0l6tso6tpcAqSuPkfR1GYAoic8sFtZJOqgG8w+Ao6r2NVnfKCn6hJZkO4+MkyStLgPwJhB1etBaSRNrMA8XG1u1r8n6Fkl7VJ21/VDRBTa29nHt9A28AJxf7NosaXgN5lGZzgD2rdpbsh6N0MyqcyWl9si0Y0sBPA6kVd/wTnJAKNTlR/wUcEUCdBdJ0bX1UArgPmBWsnGipLVVFipb7zKAKCJHFXL6uV0K4NpiMtDQabakaGrapm4BsH0o8GWiwEuSosbqpRRARIQNyVq/rFcXSRcBxBt5NJHbvJQo812gVmOdA+sigCifpyX8x0v6uPQGCgDRWEeD3aCOemDb0XrGm9q1KKevrnt7jX22DwFiqLBX8X8rJZ2S88n7gSOBaGiiMg3aBEyQ9FO7Cgx0v+1ooiJEN2iapEhqfaispcyLuo5uYSAAbEf7GBOJBkXpcETZdKIMwN7AGiAtJS6QFIluq5DtlcBJdVy52VglD6nBa6ykLwYbge05wB2JnLckNUqcfuJbDbbS0qJxcJik6NQGhWzfD9yYMI9ucKqkGByXUtVo8ceSOmecpE+6jcB2XsqEiFmS5reSVQVgNNBbeyeMwioxSh8w2Y6GPzJ+2os0+H4OxPtr6rqVzbbtMcBXJZpGkTVf0qedoCjifCSpq4B9WvBoCaISQDC2PQKIN5GPF6MqjCuOsqOpn6bK2R5fKB3K75QpHpPouUAkvrTPaAqiFoACRMxpwuqNniE3WsxrXk++0EQzHr3rwVGSZP+WGTymD3MlrbEdLerzdUDUBtCQaDvSeXyQKPPZTrwpztwuKS1h4tZrgWgbQALkaOCy4hNrn1FHTRTxdmKQ8LKksjdWC0THADK/jtQ/BQhQBwBl7Wi4VNRWoXhMJN6tA7TJTSyQFJ95u/OlPlfEdjzOALI7EIVgzEfb+nyaGSh3p4h+Pd1jV26gjiUHuqe4ibD6eklRqvfQkAHQzABDHsB/7aMVT352GH8AAAAASUVORK5CYII=") no-repeat 50%;background-size:100% 100%}.jb-pro-container .jb-pro-menu-icon-text,.jb-pro-container .jb-pro-quality-icon-text,.jb-pro-container .jb-pro-scale-icon-text,.jb-pro-container .jb-pro-speed-icon-text{font-size:14px;min-width:30px;height:20px;line-height:20px;cursor:pointer;text-align:center}.jb-pro-container .jb-pro-speed{box-sizing:border-box;text-align:center;font-size:14px;color:#fff;width:90px}.jb-pro-container .jb-pro-menu-list,.jb-pro-container .jb-pro-quality-menu-list,.jb-pro-container .jb-pro-scale-menu-list,.jb-pro-container .jb-pro-speed-menu-list{position:absolute;left:50%;bottom:100%;visibility:hidden;opacity:0;transform:translateX(-50%);transition:visibility .3s,opacity .3s;background-color:rgba(0,0,0,.5);border-radius:4px;overflow:hidden;width:-webkit-max-content;width:-moz-max-content;width:max-content}.jb-pro-container .jb-pro-menu-list.jb-pro-menu-shown,.jb-pro-container .jb-pro-menu-list.jb-pro-quality-menu-shown,.jb-pro-container .jb-pro-menu-list.jb-pro-scale-menu-shown,.jb-pro-container .jb-pro-menu-list.jb-pro-speed-menu-shown,.jb-pro-container .jb-pro-quality-menu-list.jb-pro-menu-shown,.jb-pro-container .jb-pro-quality-menu-list.jb-pro-quality-menu-shown,.jb-pro-container .jb-pro-quality-menu-list.jb-pro-scale-menu-shown,.jb-pro-container .jb-pro-quality-menu-list.jb-pro-speed-menu-shown,.jb-pro-container .jb-pro-scale-menu-list.jb-pro-menu-shown,.jb-pro-container .jb-pro-scale-menu-list.jb-pro-quality-menu-shown,.jb-pro-container .jb-pro-scale-menu-list.jb-pro-scale-menu-shown,.jb-pro-container .jb-pro-scale-menu-list.jb-pro-speed-menu-shown,.jb-pro-container .jb-pro-speed-menu-list.jb-pro-menu-shown,.jb-pro-container .jb-pro-speed-menu-list.jb-pro-quality-menu-shown,.jb-pro-container .jb-pro-speed-menu-list.jb-pro-scale-menu-shown,.jb-pro-container .jb-pro-speed-menu-list.jb-pro-speed-menu-shown{visibility:visible;opacity:1}.jb-pro-container .icon-title-tips{pointer-events:none;position:absolute;left:50%;bottom:100%;visibility:hidden;opacity:0;transform:translateX(-50%);transition:visibility .3s ease 0s,opacity .3s ease 0s;background-color:rgba(0,0,0,.5);border-radius:4px}.jb-pro-container .icon-title{display:inline-block;padding:5px 10px;font-size:12px;white-space:nowrap;color:#fff}.jb-pro-container .jb-pro-quality-menu{padding:8px 0}.jb-pro-container .jb-pro-menu-item,.jb-pro-container .jb-pro-quality-menu-item,.jb-pro-container .jb-pro-scale-menu-item,.jb-pro-container .jb-pro-speed-menu-item{display:block;height:25px;line-height:25px;margin:0;padding:0 10px;cursor:pointer;font-size:14px;text-align:center;width:50px;color:hsla(0,0%,100%,.5);transition:color .3s,background-color .3s}.jb-pro-container .jb-pro-menu-item:hover,.jb-pro-container .jb-pro-quality-menu-item:hover,.jb-pro-container .jb-pro-scale-menu-item:hover,.jb-pro-container .jb-pro-speed-menu-item:hover{background-color:hsla(0,0%,100%,.2)}.jb-pro-container .jb-pro-menu-item:focus,.jb-pro-container .jb-pro-quality-menu-item:focus,.jb-pro-container .jb-pro-scale-menu-item:focus,.jb-pro-container .jb-pro-speed-menu-item:focus{outline:none}.jb-pro-container .jb-pro-menu-item.jb-pro-menu-item-active,.jb-pro-container .jb-pro-menu-item.jb-pro-quality-menu-item-active,.jb-pro-container .jb-pro-menu-item.jb-pro-scale-menu-item-active,.jb-pro-container .jb-pro-menu-item.jb-pro-speed-menu-item-active,.jb-pro-container .jb-pro-quality-menu-item.jb-pro-menu-item-active,.jb-pro-container .jb-pro-quality-menu-item.jb-pro-quality-menu-item-active,.jb-pro-container .jb-pro-quality-menu-item.jb-pro-scale-menu-item-active,.jb-pro-container .jb-pro-quality-menu-item.jb-pro-speed-menu-item-active,.jb-pro-container .jb-pro-scale-menu-item.jb-pro-menu-item-active,.jb-pro-container .jb-pro-scale-menu-item.jb-pro-quality-menu-item-active,.jb-pro-container .jb-pro-scale-menu-item.jb-pro-scale-menu-item-active,.jb-pro-container .jb-pro-scale-menu-item.jb-pro-speed-menu-item-active,.jb-pro-container .jb-pro-speed-menu-item.jb-pro-menu-item-active,.jb-pro-container .jb-pro-speed-menu-item.jb-pro-quality-menu-item-active,.jb-pro-container .jb-pro-speed-menu-item.jb-pro-scale-menu-item-active,.jb-pro-container .jb-pro-speed-menu-item.jb-pro-speed-menu-item-active{color:#2298fc}.jb-pro-container .jb-pro-volume-panel-wrap{position:absolute;left:50%;bottom:100%;visibility:hidden;opacity:0;transform:translateX(-50%) translateY(22%);transition:visibility .3s,opacity .3s;background-color:rgba(0,0,0,.5);border-radius:4px;height:120px;width:50px;overflow:hidden}.jb-pro-container .jb-pro-volume-panel-wrap.jb-pro-volume-panel-wrap-show{visibility:visible;opacity:1}.jb-pro-container .jb-pro-volume-panel{cursor:pointer;position:absolute;top:21px;height:60px;width:50px;overflow:hidden}.jb-pro-container .jb-pro-volume-panel-text{position:absolute;left:0;top:0;width:50px;height:20px;line-height:20px;text-align:center;color:#fff;font-size:12px}.jb-pro-container .jb-pro-volume-panel-handle{position:absolute;top:48px;left:50%;width:12px;height:12px;border-radius:12px;margin-left:-6px;background:#fff}.jb-pro-container .jb-pro-volume-panel-handle:before{bottom:-54px;background:#fff}.jb-pro-container .jb-pro-volume-panel-handle:after{bottom:6px;background:hsla(0,0%,100%,.2)}.jb-pro-container .jb-pro-volume-panel-handle:after,.jb-pro-container .jb-pro-volume-panel-handle:before{content:"";position:absolute;display:block;left:50%;width:3px;margin-left:-1px;height:60px}.jb-pro-container.jb-pro-fullscreen-rotate .jb-pro-controls,.jb-pro-container.jb-pro-fullscreen-web .jb-pro-controls{width:100vh}.jb-pro-container.jb-pro-fullscreen-rotate .jb-pro-play-big:after,.jb-pro-container.jb-pro-fullscreen-web .jb-pro-play-big:after{transform:translate(-50%,-50%) rotate(270deg)}.jb-pro-container.jb-pro-fullscreen-rotate .jb-pro-loading,.jb-pro-container.jb-pro-fullscreen-web .jb-pro-loading{flex-direction:row}.jb-pro-container.jb-pro-fullscreen-rotate .jb-pro-loading-text,.jb-pro-container.jb-pro-fullscreen-web .jb-pro-loading-text{transform:rotate(270deg)}.jb-pro-container .jb-pro-contextmenus{display:none;flex-direction:column;position:absolute;z-index:120;left:10px;top:10px;min-width:200px;padding:5px 0;background-color:rgba(0,0,0,.9);border-radius:3px}.jb-pro-container .jb-pro-contextmenus .jb-pro-contextmenu{cursor:pointer;font-size:12px;display:block;color:#fff;padding:10px 15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-shadow:0 0 2px rgba(0,0,0,.5);border-bottom:1px solid hsla(0,0%,100%,.1)}.jb-pro-container .jb-pro-contextmenus .jb-pro-contextmenu a{color:#fff;text-decoration:none}.jb-pro-container .jb-pro-contextmenus .jb-pro-contextmenu span{display:inline-block;padding:0 7px}.jb-pro-container .jb-pro-contextmenus .jb-pro-contextmenu span.art-current,.jb-pro-container .jb-pro-contextmenus .jb-pro-contextmenu span:hover{color:var(--theme)}.jb-pro-container .jb-pro-contextmenus .jb-pro-contextmenu:hover{background-color:hsla(0,0%,100%,.1)}.jb-pro-container .jb-pro-contextmenus .jb-pro-contextmenu:last-child{border-bottom:none}.jb-pro-container.jb-pro-contextmenus-show .jb-pro-contextmenus{display:flex}.jb-pro-container .jb-pro-extend-dom{position:relative;width:100%;height:100%;display:none}.jb-pro-container-playback .jb-pro-controls{height:48px}.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center{flex:1;display:flex;box-sizing:border-box;justify-content:space-between;font-size:12px}.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center .jb-pro-controls-playback-time{box-sizing:border-box;flex:1;position:relative;height:100%}.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center .jb-pro-controls-playback-time-inner{width:300px;height:100%;overflow-y:hidden;overflow-x:auto}.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center .jb-pro-controls-playback-time-inner::-webkit-scrollbar{-webkit-appearance:none;background-color:transparent}.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center .jb-pro-controls-playback-time-inner::-webkit-scrollbar:vertical{width:2px}.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center .jb-pro-controls-playback-time-inner::-webkit-scrollbar:horizontal{height:6px}.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center .jb-pro-controls-playback-time-inner:hover::-webkit-scrollbar-thumb{border-radius:8px;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.1);border:3px solid hsla(0,0%,100%,.4);background-color:rgba(0,0,0,.3)}.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center .jb-pro-controls-playback-current-time{position:absolute;left:0;top:0;height:15px;width:1px;background-color:red;text-align:center;z-index:1}.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center .jb-pro-controls-playback-current-time-text{position:absolute;box-sizing:border-box;padding:0 5px;width:60px;left:-25px;top:15px;border:1px solid red;height:15px;line-height:15px;cursor:move;background-color:#fff;color:#000;-webkit-user-select:none;-moz-user-select:none;user-select:none}.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center .jb-pro-controls-playback-time-scroll{position:relative;width:1440px;margin:0 auto}.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center .jb-pro-controls-playback-time-scroll.one-hour{width:1440px}.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center .jb-pro-controls-playback-time-scroll.half-hour{width:2880px}.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center .jb-pro-controls-playback-time-scroll.ten-min{width:8640px}.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center .jb-pro-controls-playback-time-scroll.five-min{width:17280px}.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center .jb-pro-controls-playback-time-scroll.one-min{width:86400px}.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center .jb-pro-controls-playback-time-list{position:relative;background-color:#ccc;height:48px}.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center .jb-pro-playback-time-day{height:100%;overflow:hidden}.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center .jb-pro-playback-time-one-wrap{height:8px;z-index:1}.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center .jb-pro-playback-time-second-wrap{height:25px}.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center .jb-pro-controls-playback-btns{display:flex;align-items:center}.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center .jb-pro-playback-time-minute-one,.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center .jb-pro-playback-time-second-one{float:left;width:1px;height:8px;margin:0;cursor:default;position:relative;z-index:1}.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center .jb-pro-playback-time-minute-one.active,.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center .jb-pro-playback-time-second-one.active{background-color:orange;cursor:pointer}.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center .jb-pro-playback-time-minute-one.start,.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center .jb-pro-playback-time-second-one.start{background-color:#999}.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center .jb-pro-playback-time-minute-one:hover .jb-pro-playback-time-title-tips,.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center .jb-pro-playback-time-second-one:hover .jb-pro-playback-time-title-tips{visibility:visible;opacity:1}.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center .jb-pro-playback-time-title-tips{pointer-events:none;position:absolute;left:0;top:100%;visibility:hidden;opacity:0;transform:translateX(13%);transition:visibility .3s ease 0s,opacity .3s ease 0s;background-color:#000;border-radius:4px;z-index:1}.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center .jb-pro-playback-time-title-tips.jb-pro-playback-time-title-tips-left{transform:translateX(-100%)}.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center .jb-pro-playback-time-title-tips .jb-pro-playback-time-title{display:inline-block;padding:2px 5px;font-size:12px;white-space:nowrap;color:#fff}.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center .jb-pro-playback-time-hour,.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center .jb-pro-playback-time-minute{float:left;position:relative;width:60px;box-sizing:border-box;border-top:1px solid #999;-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:left;height:25px;line-height:25px}.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center .jb-pro-playback-time-hour:first-child,.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center .jb-pro-playback-time-minute:first-child{border-left:0}.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center .jb-pro-playback-time-hour:first-child .jb-pro-playback-time-hour-text,.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center .jb-pro-playback-time-minute:first-child .jb-pro-playback-time-hour-text{left:0}.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center .jb-pro-playback-time-hour:after,.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center .jb-pro-playback-time-minute:after{content:"";position:absolute;left:0;top:-8px;width:1px;height:14px;background-color:#999}.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center .jb-pro-playback-time-hour-text,.jb-pro-container-playback .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-center .jb-pro-playback-time-minute-text{position:absolute;left:-13px}.jb-pro-container-playback .jb-pro-playback-expand.disabled .jb-pro-icon-expand,.jb-pro-container-playback .jb-pro-playback-narrow.disabled .jb-pro-icon-narrow{cursor:no-drop}.jb-pro-container-playback .jb-pro-control-progress-simple{position:absolute;box-sizing:border-box;left:0;top:-2px;width:100%;display:flex;flex-direction:row;align-items:center;height:8px;cursor:pointer}.jb-pro-container-playback .jb-pro-control-progress-simple:hover{top:0;align-items:flex-start}.jb-pro-container-playback .jb-pro-control-progress-simple:hover .jb-pro-control-progress-inner{height:100%}.jb-pro-container-playback .jb-pro-control-progress-simple:hover .jb-pro-control-progress-inner .jb-pro-progress-indicator{transform:scale(1);visibility:visible}.jb-pro-container-playback .jb-pro-control-progress-inner{display:flex;align-items:center;position:relative;height:50%;width:100%;transition:all .2s ease;background:hsla(0,0%,100%,.5)}.jb-pro-container-playback .jb-pro-progress-hover{display:none;width:0}.jb-pro-container-playback .jb-pro-progress-played{position:absolute;left:0;top:0;right:0;bottom:0;height:100%;width:0;background-color:orange}.jb-pro-container-playback .jb-pro-progress-cache{position:absolute;height:100%;width:0;left:0;top:0;right:0;bottom:0;background-color:hsla(0,0%,100%,.5)}.jb-pro-container-playback .jb-pro-progress-indicator{visibility:hidden;align-items:center;justify-content:center;position:absolute;z-index:40;border-radius:50%;transform:scale(.1);transition:transform .1s ease-in-out}.jb-pro-container-playback .jb-pro-progress-indicator .jb-pro-icon{width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.jb-pro-container-playback .jb-pro-progress-indicator:hover{transform:scale(1.2)!important}.jb-pro-container-playback .jb-pro-progress-tip{display:none;position:absolute;z-index:50;top:-25px;left:0;height:20px;padding:0 5px;line-height:20px;color:#fff;font-size:12px;text-align:center;background:rgba(0,0,0,.7);border-radius:3px;font-weight:700;white-space:nowrap}.jb-pro-container-play-vod .jb-pro-control-progress-simple{position:absolute;box-sizing:border-box;left:0;top:-2px;width:100%;display:flex;flex-direction:row;align-items:center;height:8px;cursor:pointer}.jb-pro-container-play-vod .jb-pro-control-progress-simple:hover{top:0;align-items:flex-start}.jb-pro-container-play-vod .jb-pro-control-progress-simple:hover .jb-pro-control-progress-inner{height:100%}.jb-pro-container-play-vod .jb-pro-control-progress-simple:hover .jb-pro-control-progress-inner .jb-pro-progress-indicator{transform:scale(1);visibility:visible}.jb-pro-container-play-vod .jb-pro-control-progress-inner{display:flex;align-items:center;position:relative;height:50%;width:100%;transition:all .2s ease;background:hsla(0,0%,100%,.5)}.jb-pro-container-play-vod .jb-pro-progress-hover{display:none;width:0}.jb-pro-container-play-vod .jb-pro-progress-played{position:absolute;left:0;top:0;right:0;bottom:0;height:100%;width:0;background-color:orange}.jb-pro-container-play-vod .jb-pro-progress-cache{position:absolute;height:100%;width:0;left:0;top:0;right:0;bottom:0;background-color:hsla(0,0%,100%,.5)}.jb-pro-container-play-vod .jb-pro-progress-indicator{visibility:hidden;align-items:center;justify-content:center;position:absolute;z-index:40;border-radius:50%;transform:scale(.1);transition:transform .1s ease-in-out}.jb-pro-container-play-vod .jb-pro-progress-indicator .jb-pro-icon{width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.jb-pro-container-play-vod .jb-pro-progress-indicator:hover{transform:scale(1.2)!important}.jb-pro-container-play-vod .jb-pro-progress-tip{display:none;position:absolute;z-index:50;top:-25px;left:0;height:20px;padding:0 5px;line-height:20px;color:#fff;font-size:12px;text-align:center;background:rgba(0,0,0,.7);border-radius:3px;font-weight:700;white-space:nowrap}.jb-pro-container-playback.jb-pro-fullscreen-web .jb-pro-controls .jb-pro-controls-bottom .jb-pro-controls-playback-time-inner{overflow-y:auto}.jb-pro-zoom-control{cursor:-webkit-grab;cursor:grab}.jb-pro-performance-panel{position:absolute;box-sizing:border-box;z-index:10000;left:0;top:0;padding:5px;font-size:10px;background:rgba(0,0,0,.2);color:#fff;max-height:100%;overflow-y:auto;display:none}.jb-pro-performance-panel .jb-pro-performance-item{display:flex;align-items:center;margin-top:3px;color:#fff}.jb-pro-performance-panel .jb-pro-performance-item-block{height:10px}.jb-pro-tips-message{position:absolute;top:0;left:0;width:100%;height:100%;background:linear-gradient(180deg,rgba(0,0,0,.8),hsla(0,0%,100%,0));overflow:auto;box-sizing:content-box;z-index:10;display:none}.jb-pro-tips-message:before{color:hsla(0,0%,100%,.3);content:"X";font-family:Arial,Helvetica,sans-serif;font-size:40px;left:0;line-height:1;margin-top:-20px;position:absolute;text-shadow:2em 2em 4em #000;text-align:center;top:50%;vertical-align:middle;width:100%}.jb-pro-tips-message .jb-pro-tips-message-close{position:absolute;z-index:99999;right:0;top:0;width:40px;height:40px;display:flex;align-items:center;justify-content:center}.jb-pro-tips-message .jb-pro-tips-message-close .jb-pro-tips-message-close-icon{width:20px;height:20px;border-radius:10px;cursor:pointer;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAeUExURUdwTM3Nzc7Ozs7Ozs3Nzc3NzcrKys3Nzc3Nzc3NzePZJxkAAAAJdFJOUwCtKdPBGAmNTt3jdDcAAADfSURBVDjL1dOxDoIwEADQgwR07GTCZtI/IGHgAzBhM9EPkMTB0Y3V0ZXIcn/rtRR6pefgSKeSu3ellyvA9lZ/5F9p/3K7PZY8oPG5BD6MpPUSgIITzdIStifAshjRQV1PCFT8TxaicTzzwEwINOEdHVmDmcTAkRhMhMAp7iQRjcMtDhCp8SA1v0ARGIIK/gnkv0p1OBTS4QRUIpE7DiYYXTBrzcld3JIrAarXrps4AVNwRSZgExoJmIyAaAdsShUMn/JF2fh4YEkpAcgvnuwYCIb6EbbbP4PsDfLD2dD6Av1qTvAQlzUTAAAAAElFTkSuQmCC") no-repeat 50%;background-color:#fff;background-size:100% 100%}.jb-pro-tips-message .jb-pro-tips-message-content{overflow:auto;padding:35px;box-sizing:border-box;width:100%;height:100%;z-index:99999}.jb-pro-tips-message .jb-pro-tips-message-content .jb-pro-tips-message-content-item{font-size:14px;color:#fff;text-align:center;line-height:1.5}'),function(t,e){const s=Gm,i=t();for(;;)try{if(327695===parseInt(s(166))/1*(-parseInt(s(142))/2)+parseInt(s(139))/3*(parseInt(s(168))/4)+-parseInt(s(165))/5*(-parseInt(s(162))/6)+parseInt(s(164))/7+-parseInt(s(145))/8*(parseInt(s(170))/9)+parseInt(s(163))/10*(-parseInt(s(140))/11)+parseInt(s(156))/12)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Wm);const Hm=Qm;function Km(){const t=["vertical","1hFZRBf","$controlsLeft","$poster","split","querySelector","video","hotKey","0 0","mouseout","style","controlSize","push",".jb-pro-controls","$volumePanel",".jb-pro-play-big","debugLog",".jb-pro-icon-extend-","preventDefault","$ptzApertureNear","top","icon","transform","resizeLoadingBackground()","click","addExtendDom","removeChild","padding","autoSize"," rotateX(180deg)","_initLoadingBackgroundForRatio","px 0","$ptzWiperOpen","created",".jb-pro-control-extend-","controlsRightRect","$tipsMessage","</div>","$controlsRight","px)","_initLoadingBackgroundForCanvas",".jb-pro-tips-message","$playbackTimeInner","3736064jwqHuX","activeClick","init","getExtendDomIsShow","height","$ptzFogClose","addExtendBtn","assign","$loadingBgImage","jb-pro-controls-show-auto-hide","$close","$playbackProgressPlayed","right","\n </div>","find","$ptzBgActive","$speedMenu","controlsRect","$zoomNarrow","_validateExtendBtn","iconTitle","extendOperateBtns","$faceDetect","getShowVideoRect","activeIconTitle","$controlHtml","isFullResize","4392960ACHckS","$ptzNarrow",".jb-pro-contextmenus","background","jb-pro-controls-small","findIndex","mouseover","$speedText","call","extend button icon is required","$scaleMenuList","iconHover","$scaleText","6UrfCpV","loadingBackgroundHeight"," rotate(","$playbackTime","insertAdjacentHTML",'\n <div class="jb-pro-controls-item-wrap jb-pro-controls-item-wrap-',"$zoom","$playbackNarrow","innerText","\n </div>\n ","$volumePanelWrap","isResize","normal","extendDomConfig","flex","$activeIconWrap","$qualityMenuList","index",'<div class="jb-pro-controls-item jb-pro-control-extend-',"2021220hTobRR","$ptzControlCircular","$zoomStop2","loadingBackground","\n </div>","$controlsInner","166112mdojbf","-active","getRenderType","_initLoadingBackgroundForVideo","auto","</span></span>\n ","$volumeHandle","controlsLeftRect","isInitPlayer","none",".jb-pro-loading-bg","fill","multiIndex","toggleControlHtml","showPlayBtn","getBarIsShow","playing","loadingBackgroundWidth","$loadingBg","name","src","controlsPlaybackBtnsRect","Control","loadingIconStyle",'\n <span class="icon-title-tips"><span class="icon-title">',"debugWarn","ptzPositionConfig","beforeend","$performance","toggleExtendBtn","$objectDetect","destroy","toggleExtendDom","keys","showTipsMessage","$playbackTimeListSecond",".jb-pro-icon-loading"," rotateY(180deg)","canvas","btnIndex","beforebegin","$controlsPlaybackBtns","$ptzControl","$$playbackProgressTip","$contextmenus","calc(","92880NeaFIo","bottom","children","$volume",".jb-pro-recording","$iconWrap","default","animationTimingFunction","url(","getBtnIndex","$recording","830AsldSU","$pause","html",".jb-pro-performance-panel","objectFit","animationDuration","100% 100%","activeIcon","forEach","$playbackTimeScroll","$qualityMenu","\n </div>\n ","$tipsMessageContent","$ptzFocusFar","$playBig","$playbackTimeListOne","$zoomControls","extendBtnList","$playbackTimeList","activeIconHover","$ptzApertureFar","jb-pro-controls-show","$fullscreenExit",".jb-pro-zoom-controls",".jb-pro-ptz-controls","createdMoment","aspectRatio","player","$objectDetectActive",'">\n <i class="jb-pro-icon jb-pro-icon-extend-',".jb-pro-loading","$videoElement","0 KB/s","defineProperty","getControlHeight","length","$ptzExpand","$ptzFocusNear","animationIterationCount","$performancePanel","$container","innerHTML",".jb-pro-extend-dom","_opt","$scaleMenu","270984jYUBzg","animationName","$ptzCruisePause","$ptzCruisePlay","background-size",") no-repeat center","updatePtzPosition","$recordingStop","remove","level","7846160JhSBvZ","$loading","deg)","classList","TAG_NAME","getExtendBtnList","$playbackExpand","updateExtendDom","backgroundImage","block","100%","$ptzArrows"," is already exist","initLoadingBackground()","removeExtendDom","$logSave","resizeLoadingBackground","$occlusionDetect","$extendDom","initLoadingIconStyle","$ptzWiperClose","\n ",'\n <div class="jb-pro-extend-dom">\n ',"extend button name: ","isInMulti","initLoadingBackground","$ptzActive",'-active"></i>\n ',"$controls","$occlusionDetectActive","$performanceActive","$loadingText","left","updateControlSize","width","controlsInnerRect","$recordStop","display","videoRenderSupportScale","mirrorRotate","kbpsShow"];return(Km=function(){return t})()}function Qm(t,e){const s=Km();return(Qm=function(t,e){return s[t-=405]})(t,e)}!function(t,e){const s=Qm,i=t();for(;;)try{if(879748===parseInt(s(488))/1*(-parseInt(s(595))/2)+parseInt(s(589))/3+-parseInt(s(530))/4+-parseInt(s(446))/5*(-parseInt(s(570))/6)+-parseInt(s(436))/7+parseInt(s(557))/8+-parseInt(s(641))/9*(parseInt(s(652))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Km);class Ym{constructor(t){const e=Qm;var s,i;this.player=t,this[e(450)]=e(617),this.extendBtnList=[],bm(t,this),t[e(434)][e(551)].length>0&&t[e(434)][e(551)][e(660)]((t=>{this[e(536)](t)})),t[e(434)][e(583)]&&t[e(434)][e(583)][e(654)]&&this.addExtendDom(t[e(434)].extendDomConfig),s=this,i=Fm,Object[i(299)](s,"controlsRect",{get:()=>{var t=i;return s[t(298)]&&s[t(298)][t(313)]()||{width:0,height:0}},configurable:!0}),Object[i(299)](s,i(306),{get:()=>{var t=i;return s[t(300)]&&s[t(300)][t(313)]()||{width:0,height:0}},configurable:!0}),Object.defineProperty(s,i(309),{get:()=>{var t=i;return s[t(295)]&&s[t(295)].getBoundingClientRect()||{width:0,height:0}},configurable:!0}),Object[i(299)](s,i(297),{get:()=>{var t=i;return s[t(312)]&&s[t(312)][t(313)]()||{width:0,height:0}},configurable:!0}),Object[i(299)](s,i(304),{get:()=>{var t=i;return s[t(296)]&&s[t(296)][t(313)]()||{width:0,height:0}},configurable:!0}),Object[i(299)](s,i(308),{get:()=>{var t=i;return s.$controlsPlaybackBtns&&s[t(301)][t(313)]()||{width:0,height:0}},configurable:!0}),Mm(t,this),((t,e)=>{const s=Nm,{events:{proxy:i},debug:r}=t,n=t[s(224)],o=n[s(155)];function a(t){const i=s,{bottom:r,height:n}=e[i(253)].getBoundingClientRect(),{height:o}=e[i(314)][i(333)]();return Ve(r-t.y-o/2,0,n-o/2)/(n-o)}function h(i){const r=s;let n=arguments[r(235)]>1&&void 0!==arguments[1]&&arguments[1];i.composedPath().indexOf(t.$container)>-1?e[r(322)]=!0:e.isFocus=!1,n&&t._opt[r(330)]&&t[r(224)][r(182)]&&(e[r(322)]?(ze(e[r(325)],r(209),r(248)),d()):(u(),ze(e.$controls,r(209),"none")))}if(Xe()?i(document,[s(255),s(357)],(t=>{t.stopPropagation(),h(t)})):i(document,s(255),(t=>{t[s(311)](),h(t,!0)})),i(e[s(325)],s(255),(t=>{t[s(311)]()})),o[s(334)]&&(i(e[s(267)],"click",(e=>{const i=s;n[i(151)]===c[i(220)]&&n[i(215)][i(201)]?t[i(269)]=!0:n[i(151)]===c[i(296)]?t.playVodPause=!0:Vs(o[i(237)])?o[i(237)]():t[i(352)]()})),i(e.$play,"click",(e=>{const i=s;n[i(151)]===c.playbackTF&&t[i(269)]?t[i(269)]=!1:n[i(151)]===c[i(296)]?t[i(289)]=!1:Vs(o[i(348)])?o[i(348)]():t[i(340)]()[i(288)]((()=>{t.resumeAudioAfterPause()}))[i(249)]((t=>{}))}))),i(e[s(188)],s(255),(i=>{const r=s;n[r(151)]===c[r(220)]&&t[r(269)]?t[r(269)]=!1:n[r(151)]===c[r(296)]?t[r(289)]=!1:e[r(152)]?t[r(328)](M[r(332)]):Vs(o[r(348)])?o[r(348)]():t.playForControl()[r(288)]((()=>{t[r(300)]()}))})),o[s(265)]&&i(e[s(148)],"click",(e=>{const i=s;e.stopPropagation(),Vs(o[i(156)])?o[i(156)]():t[i(344)].screenshot()})),o[s(244)]&&(Xe()&&(i(e[s(229)],"mouseover",(()=>{const t=s;e[t(315)][t(326)][t(349)](t(173))})),i(e[s(229)],s(222),(()=>{const t=s;e.$volumePanelWrap[t(326)].remove(t(173))})),i(e.$volumePanel,"click",(e=>{const i=s;e[i(311)](),t[i(323)]=a(e)})),i(e[s(314)],s(179),(t=>{const i=s;t[i(311)](),e[i(337)]=!0})),i(e[s(314)],s(355),(i=>{const r=s;e[r(337)]&&(t[r(323)]=a(i))})),i(document,"mouseup",(()=>{const t=s;e[t(337)]&&(e[t(337)]=!1)}))),i(e[s(354)],s(255),(i=>{const r=s;i.stopPropagation(),ze(e[r(354)],"display",r(327)),ze(e[r(192)],r(209),"block");const n=t[r(323)];t.volume=0,t[r(166)]=Xe()?n:1})),i(e.$volumeOff,s(255),(i=>{const r=s;i.stopPropagation(),ze(e.$volumeOn,r(209),r(256)),ze(e.$volumeOff,r(209),r(327)),t[r(323)]=Xe()?t[r(157)]||.5:1}))),o[s(159)]&&(i(e[s(217)],s(255),(e=>{const i=s;e[i(311)](),Vs(o[i(272)])?o.recordFn():t[i(238)]=!0})),i(e[s(205)],s(255),(e=>{const i=s;e.stopPropagation(),Vs(o[i(168)])?o.recordStopFn():t[i(238)]=!1}))),i(e.$recordingStop,s(255),(e=>{const i=s;e[i(311)](),Vs(o[i(168)])?o[i(168)]():t[i(238)]=!1})),o[s(194)]&&(i(e[s(350)],"click",(e=>{const i=s;e[i(311)](),Vs(o.fullscreenFn)?o[i(170)]():t.fullscreen=!0})),i(e[s(290)],s(255),(e=>{const i=s;e[i(311)](),Vs(o[i(294)])?o.fullscreenExitFn():t.fullscreen=!1}))),o[s(335)]){i(e[s(187)],s(255),(t=>{const i=s;t[i(311)](),ze(e[i(178)],"display",i(248)),ze(e.$ptz,i(209),"none"),e.$ptzControl.classList[i(349)](i(223))})),i(e[s(178)],"click",(t=>{const i=s;t.stopPropagation(),ze(e[i(187)],i(209),i(248)),ze(e[i(178)],i(209),i(327)),e[i(304)][i(326)][i(302)](i(223))}));const p=Ai();if(e[s(299)].forEach((r=>{const o=s;if(n.ptzClickType===g[o(255)])i(r,o(255),(s=>{const i=o;s[i(311)]();const r=s[i(202)][i(239)][i(197)];e[i(211)][i(326)][i(349)]("jb-pro-ptz-bg-active-show"),e.$ptzBgActive[i(326)][i(349)](i(204)+r),e[i(310)][i(326)][i(349)](i(297)+r),t[i(328)](M.ptz,li(r)),setTimeout((()=>{const s=i;e[s(211)][s(326)].remove(s(339)),nt[s(225)]((t=>{const i=s;e[i(211)].classList[i(302)](i(204)+t),e[i(310)].classList[i(302)](i(297)+t)})),t[s(328)](M[s(335)],ot[s(158)])}),1e3*n[i(259)])}));else if(n[o(252)]===g[o(345)]){let s=!1;i(r,p[o(271)],(i=>{const r=o;i[r(311)](),s=!0;const n=i[r(202)][r(239)][r(197)];e[r(211)].classList[r(349)](r(339)),e.$ptzBgActive[r(326)][r(349)]("jb-pro-ptz-bg-active-"+n),e[r(310)][r(326)][r(349)](r(297)+n),t[r(328)](M.ptz,li(n))}));const n=()=>{const i=o;s=!1,e[i(211)][i(326)].remove(i(339)),nt[i(225)]((t=>{const s=i;e.$ptzBgActive[s(326)][s(302)](s(204)+t),e[s(310)][s(326)][s(302)](s(297)+t)})),t[i(328)](M[i(335)],ot.stop)};i(r,p.up,(t=>{t.stopPropagation(),s&&n()})),i(window,p.up,(t=>{t[o(311)](),s&&n()}))}})),n[s(172)])if(n.ptzClickType===g[s(255)])i(e[s(264)],s(255),(e=>{const i=s;e[i(311)](),t[i(328)](M[i(335)],ot[i(221)]),setTimeout((()=>{const e=i;t[e(328)](M[e(335)],ot[e(158)])}),1e3*n[i(259)])})),i(e.$ptzNarrow,"click",(e=>{const i=s;e[i(311)](),t[i(328)](M[i(335)],ot[i(285)]),setTimeout((()=>{const e=i;t[e(328)](M.ptz,ot[e(158)])}),1e3*n[i(259)])}));else if(n[s(252)]===g[s(345)]){let f=!1,m=!1;i(e[s(264)],p[s(271)],(e=>{const i=s;e[i(311)](),f=!0,t[i(328)](M[i(335)],ot[i(221)])})),i(e.$ptzNarrow,p[s(271)],(e=>{const i=s;e[i(311)](),m=!0,t[i(328)](M.ptz,ot.zoomNarrow)}));const y=()=>{const e=s;f=!1,m=!1,t.emit(M.ptz,ot[e(158)])};i(e.$ptzExpand,p.up,(t=>{t.stopPropagation(),f&&y()})),i(e.$ptzNarrow,p.up,(t=>{t[s(311)](),m&&y()})),i(window,p.up,(t=>{t.stopPropagation(),(f||m)&&y()}))}if(n[s(227)])if(n[s(252)]===g[s(255)])i(e.$ptzApertureFar,s(255),(e=>{const i=s;e[i(311)](),t[i(328)](M[i(335)],ot[i(190)]),setTimeout((()=>{t[i(328)](M.ptz,ot.fiStop)}),1e3*n[i(259)])})),i(e[s(324)],s(255),(e=>{const i=s;e[i(311)](),t[i(328)](M[i(335)],ot[i(160)]),setTimeout((()=>{t[i(328)](M.ptz,ot.fiStop)}),1e3*n[i(259)])}));else if(n.ptzClickType===g[s(345)]){let b=!1,v=!1;i(e[s(313)],p[s(271)],(e=>{const i=s;e[i(311)](),b=!0,t[i(328)](M[i(335)],ot.apertureFar)})),i(e[s(324)],p[s(271)],(e=>{const i=s;e[i(311)](),v=!0,t.emit(M[i(335)],ot[i(160)])}));const S=()=>{const e=s;b=!1,v=!1,t[e(328)](M[e(335)],ot[e(189)])};i(e.$ptzApertureFar,p.up,(t=>{t[s(311)](),b&&S()})),i(e[s(324)],p.up,(t=>{t.stopPropagation(),v&&S()})),i(window,p.up,(t=>{t[s(311)](),(b||v)&&S()}))}if(n[s(234)])if(n[s(252)]===g.click)i(e.$ptzFocusFar,s(255),(e=>{const i=s;e[i(311)](),t[i(328)](M[i(335)],ot[i(144)]),setTimeout((()=>{const e=i;t[e(328)](M[e(335)],ot.fiStop)}),1e3*n.ptzStopEmitDelay)})),i(e[s(287)],s(255),(e=>{const i=s;e[i(311)](),t[i(328)](M[i(335)],ot.focusNear),setTimeout((()=>{const e=i;t[e(328)](M[e(335)],ot[e(189)])}),1e3*n[i(259)])}));else if(n.ptzClickType===g[s(345)]){let w=!1,E=!1;i(e.$ptzFocusFar,p[s(271)],(e=>{const i=s;e[i(311)](),w=!0,t[i(328)](M[i(335)],ot[i(144)])})),i(e[s(287)],p[s(271)],(e=>{const i=s;e[i(311)](),E=!0,t[i(328)](M.ptz,ot[i(317)])}));const I=()=>{w=!1,E=!1,t.emit(M.ptz,ot.fiStop)};i(e[s(154)],p.up,(t=>{t[s(311)](),w&&I()})),i(e.$ptzFocusNear,p.up,(t=>{t[s(311)](),E&&I()})),i(window,p.up,(t=>{t.stopPropagation(),(w||E)&&I()}))}if(n[s(230)]&&(i(e.$ptzCruisePlay,s(255),(e=>{const i=s;e[i(311)](),t[i(328)](M.ptz,ot[i(196)])})),i(e[s(191)],"click",(e=>{const i=s;e[i(311)](),t[i(328)](M.ptz,ot.cruiseStop)}))),n[s(169)]&&(i(e[s(270)],s(255),(e=>{const i=s;e.stopPropagation(),t[i(328)](M[i(335)],ot[i(353)])})),i(e[s(163)],s(255),(e=>{const i=s;e[i(311)](),t[i(328)](M.ptz,ot[i(254)])}))),n.ptzWiperShow&&(i(e.$ptzWiperOpen,s(255),(e=>{const i=s;e[i(311)](),t[i(328)](M[i(335)],ot[i(305)])})),i(e[s(206)],s(255),(e=>{const i=s;e.stopPropagation(),t[i(328)](M[i(335)],ot.wiperClose)}))),n[s(207)]){function T(){const t=s;e[t(198)]&&(e[t(198)]=!1,e.$ptzControl.style[t(147)]=t(233),e.tempPtzPosition={x:0,y:0})}e[s(198)]=!1,e[s(241)]={x:0,y:0},i(e[s(304)],p[s(271)],(t=>{const i=s;t[i(311)](),e[i(198)]=!0,e[i(304)][i(167)][i(147)]=i(360);const{posX:r,posY:n}=Gs(t);e[i(241)]={x:r,y:n}})),i(e[s(304)],p[s(331)],(t=>{const i=s;if(e[i(198)]){t.stopPropagation();const{posX:s,posY:r}=Gs(t),n=e[i(241)].x-s,o=e.tempPtzPosition.y-r;e[i(304)].style[i(164)]=e[i(304)].offsetLeft-n+"px",e[i(304)].style[i(149)]=e[i(304)][i(228)]-o+"px",e[i(241)]={x:s,y:r}}})),i(e[s(304)],p.up,(t=>{t[s(311)](),T()})),i(window,p.up,(t=>{t[s(311)](),T()}))}}o[s(195)]&&(i(e[s(280)],s(255),(e=>{const i=s;e[i(311)](),t[i(347)](!0)})),i(e[s(292)],s(255),(e=>{e[s(311)](),t.togglePerformancePanel(!1)}))),o[s(321)]&&i(e.$logSave,s(255),(e=>{const i=s;e[i(311)](),t[i(308)]()})),o[s(247)]&&(i(e[s(341)],s(255),(e=>{const i=s;e[i(311)](),t[i(199)](!0)})),i(e[s(245)],s(255),(e=>{const i=s;e[i(311)](),t[i(199)](!1)}))),o[s(216)]&&(i(e.$objectDetect,s(255),(e=>{e[s(311)](),t.objectDetect(!0)})),i(e[s(257)],s(255),(e=>{e[s(311)](),t.objectDetect(!1)}))),o[s(262)]&&(i(e.$occlusionDetect,s(255),(e=>{const i=s;e.stopPropagation(),t[i(293)](!0)})),i(e[s(210)],"click",(e=>{e[s(311)](),t.occlusionDetect(!1)})));let l=null;const d=()=>{const i=s;u(),l=setTimeout((()=>{const t=Nm;ze(e[t(325)],"display",t(327))}),1e3*t[i(224)].controlAutoHideDelayTime)},u=()=>{l&&(clearTimeout(l),l=null)};if(t._opt[s(330)]&&t._opt[s(182)]&&Xe()&&(i(t[s(283)],s(150),(()=>{const i=s;!t[i(194)]&&(ze(e.$controls,i(209),"block"),d())})),i(t.$container,s(355),(()=>{const i=s;t.$container&&e[i(325)]&&(t.fullscreen?"none"===e.$controls[i(167)].display&&(ze(e[i(325)],i(209),i(256)),d()):"none"===e[i(325)][i(167)][i(209)]&&(ze(e[i(325)],i(209),"block"),d()))})),i(t.$container,s(222),(()=>{const t=s;u(),ze(e.$controls,t(209),"none")}))),t[s(224)][s(151)]===c[s(220)]){let k=t[s(224)][s(215)][s(236)];t[s(224)].playbackConfig.showRateBtn&&(i(e.$speedMenu,s(150),(()=>{const t=s;e[t(282)].classList[t(349)](t(250))})),i(e[s(171)],s(222),(()=>{const t=s;e.$speedMenuList.classList[t(302)](t(250))})),i(e.$speedMenuList,s(255),(e=>{const i=s,r=Ns(e);if(r[i(200)](i(277))){const e=r[i(239)];t[i(328)](M[i(251)],e[i(193)])}}))),k===A[s(226)]?(i(e[s(303)],s(255),(e=>{const i=s;e[i(311)](),t[i(276)]&&t[i(276)][i(203)]()})),i(e[s(320)],s(255),(e=>{const i=s;e[i(311)](),t[i(276)]&&t.playback[i(183)]()})),i(e[s(176)],"click",(e=>{const i=s,r=Ns(e);r.matches(i(356))&&t[i(276)]&&t[i(276)].seek(r[i(239)])})),t[s(224)][s(215)][s(273)]&&i(e[s(351)],s(232),(e=>{const i=s;e.preventDefault(),(e[i(295)]?e[i(295)]/120:-(e[i(284)]||0)/3)>0?t[i(276)]&&t[i(276)].expandPrecision():t[i(276)]&&t[i(276)].narrowPrecision()}))):k===A.simple&&(e.isDroging=!1,i(e[s(268)],"click",(i=>{const r=s;if(i.target!==e[r(301)]){let s=0,n=0;if(t[r(275)]())s=i[r(258)][0][r(240)]/t[r(153)],n=s*t[r(276)][r(165)];else{const o=Rm(e,t[r(276)][r(165)],i);s=o[r(231)],n=o[r(343)]}t[r(276)]&&t[r(276)][r(213)]({time:n})}})),i(e[s(268)],s(355),(i=>{const r=s;ze(e[r(298)],r(209),r(256));const{width:n,time:o}=Rm(e,t[r(276)][r(165)],i);e[r(298)][r(246)]=o;const a=e[r(298)].clientWidth;n<=a/2?ze(e[r(298)],r(164),0):n>e[r(268)][r(185)]-a/2?ze(e[r(298)],r(164),e[r(268)]-a+"px"):ze(e[r(298)],r(164),n-a/2+"px")})),i(e[s(268)],"mouseout",(()=>{const t=s;ze(e[t(298)],t(209),t(327))})),i(e.$playbackProgressIndicator,s(179),(t=>{e.isDroging=!0})),i(e[s(268)],s(355),(i=>{const r=s;if(e.isDroging){const{second:s,percentage:n}=Rm(e,t[r(276)][r(165)],i);t[r(276)]&&t[r(276)].seek({time:s})}})),i(e[s(268)],s(286),(t=>{const i=s;e.isDroging&&(e[i(329)]=!1)})))}t[s(263)]()&&(t[s(224)].playVodConfig[s(307)]&&(i(e.$speedMenu,s(150),(()=>{const t=s;e[t(282)].classList[t(349)](t(250))})),i(e[s(171)],s(222),(()=>{const t=s;e[t(282)].classList.remove(t(250))})),i(e[s(282)],s(255),(e=>{const i=s,r=Ns(e);if(r[i(200)](i(277))){const e=r[i(239)];t[i(358)](e[i(193)])}}))),e.isDroging=!1,i(e[s(268)],s(255),(i=>{const r=s;if(i[r(291)]!==e[r(301)]){let s=0,n=0;if(t[r(275)]())s=i[r(258)][0][r(240)]/t[r(153)],n=s*t[r(296)][r(165)];else{const o=Rm(e,t.playVod.totalDuration,i);s=o[r(231)],n=o[r(343)]}t[r(359)](n)}})),i(e[s(268)],s(355),(i=>{const r=s;ze(e[r(298)],r(209),"block");const{width:n,time:o}=Rm(e,t.playVod[r(165)],i);e.$playbackProgressTip[r(246)]=o;const a=e.$playbackProgressTip[r(185)];n<=a/2?ze(e[r(298)],"left",0):n>e.$playbackProgress[r(185)]-a/2?ze(e.$playbackProgressTip,r(164),e[r(268)]-a+"px"):ze(e[r(298)],r(164),n-a/2+"px")})),i(e[s(268)],s(222),(()=>{const t=s;ze(e[t(298)],t(209),t(327))})),i(e[s(301)],s(179),(t=>{e[s(329)]=!0})),i(e[s(268)],s(355),(i=>{if(e[s(329)]){const{second:s,percentage:r}=Rm(e,t.playVod.totalDuration,i);t.playVodSeek(s)}})),i(e.$playbackProgress,"mouseup",(t=>{const i=s;e[i(329)]&&(e[i(329)]=!1)}))),o[s(162)]&&(i(e[s(318)],s(150),(()=>{const t=s;e[t(261)].classList.add(t(342))})),i(e[s(318)],"mouseout",(()=>{const t=s;e[t(261)][t(326)][t(302)](t(342))})),i(e.$qualityMenuList,s(255),(e=>{const i=s,r=Ns(e);if(r[i(200)](i(281))){const e=r[i(239)];t[i(177)]=e[i(162)]}}))),o.scale&&(i(e[s(212)],s(150),(()=>{const t=s;e[t(319)][t(326)][t(349)](t(146))})),i(e[s(212)],"mouseout",(()=>{const t=s;e.$scaleMenuList[t(326)][t(302)](t(146))})),i(e[s(319)],s(255),(e=>{const i=s,r=Ns(e);if(r[i(200)](i(279))){const e=r[i(239)];t[i(243)](e[i(266)])}}))),o[s(174)]&&(i(e[s(181)],s(255),(e=>{const i=s;e[i(311)](),t[i(336)]=!0})),i(e[s(175)],s(255),(e=>{const i=s;e[i(311)](),t[i(336)]=!1}))),i(e[s(312)],s(255),(e=>{e[s(311)](),t.zoom&&t.zoom.expandPrecision()})),i(e.$zoomNarrow,s(255),(e=>{const i=s;e[i(311)](),t[i(174)]&&t[i(174)][i(203)]()})),i(e.$zoomStop2,s(255),(e=>{const i=s;e[i(311)](),t[i(336)]=!1})),o[s(346)]&&i(e[s(338)],s(255),(e=>{const i=s;e[i(311)](),t[i(242)]()})),i(e[s(214)],s(255),(t=>{const i=s;t[i(311)](),e[i(184)][i(246)]="",ze(e[i(180)],"display","none")}))})(t,this),t._opt[e(494)]&&Xe()&&((t,e)=>{const s=Gm,{events:{proxy:i}}=t;let r={};function n(t,e){r[t]?r[t].push(e):r[t]=[e]}e[s(149)]=r,n(et.esc,(()=>{const e=s;t[e(158)]&&(t[e(158)]=!1)})),n(et[s(153)],(()=>{const e=s;t[e(148)]+=t._opt[e(169)]})),n(et[s(144)],(()=>{const e=s;t[e(148)]-=t[e(157)][e(169)]})),t[s(150)]()&&(n(et.arrowLeft,(()=>{const e=s;t.playVodBackwordJumping(t[e(157)][e(143)])})),n(et[s(147)],(()=>{const e=s;t[e(171)](t._opt[e(143)])}))),i(window,s(141),(t=>{const i=s;if(e[i(154)]){const e=document[i(155)][i(159)][i(146)](),s=document[i(155)][i(138)](i(167));if("INPUT"!==e&&"TEXTAREA"!==e&&""!==s&&s!==i(160)){const e=r[t[i(161)]];e&&(t[i(151)](),e[i(152)]((t=>t())))}}}))})(t,this),this[e(634)]=0,this[e(471)](),Bs(t[e(434)][e(618)])&&this[e(465)](t[e(434)][e(618)]),Bs(t._opt.ptzPositionConfig)&&this[e(442)](t[e(434)][e(621)]),t[e(434)].initShowPlayBtn&&(this[e(603)]=!0,this[e(609)]()),this.updateControlSize(),this[e(486)]=e(423),this[e(418)][e(503)](e(617),e(532))}[Hm(626)](){const t=Hm;if(this[t(430)]){this.$performancePanel[t(432)]="";if(!Ln(this[t(430)])){const e=this.player[t(431)][t(492)](t(655));e&&this[t(418)][t(431)]&&this[t(418)][t(431)].removeChild(e)}delete this.$performancePanel}if(this[t(490)]){if(!Ln(this.$poster)){const e=this[t(418)].$container[t(492)](".jb-pro-poster");e&&this[t(418)][t(431)]&&this.player[t(431)][t(513)](e)}delete this[t(490)]}if(this.$loading){if(!Ln(this[t(447)])){const e=this[t(418)][t(431)].querySelector(t(421));e&&this.player[t(431)]&&this[t(418)][t(431)].removeChild(e)}delete this[t(447)]}if(this.$loadingBg){if(!Ln(this[t(613)])){const e=this[t(418)][t(431)][t(492)](t(605));e&&this.player[t(431)]&&this[t(418)][t(431)].removeChild(e)}delete this[t(613)]}if(this[t(474)]){if(!Ln(this[t(474)])){const e=this[t(418)][t(431)][t(492)](t(500));e&&this[t(418)].$container&&this[t(418)].$container[t(513)](e)}delete this.$controls}if(this[t(405)]){if(!Ln(this.$playBig)){const e=this.player[t(431)][t(492)](t(502));e&&this[t(418)][t(431)]&&this[t(418)].$container[t(513)](e)}delete this.$playBig}if(this[t(651)]){if(!Ln(this[t(651)])){const e=this.player[t(431)][t(492)](t(645));e&&this.player[t(431)]&&this.player[t(431)][t(513)](e)}delete this.$recording}if(this[t(637)]){if(!Ln(this[t(637)])){const e=this[t(418)][t(431)].querySelector(t(415));e&&this[t(418)].$container&&this[t(418)][t(431)].removeChild(e)}delete this.$ptzControl}if(this.$zoomControls){if(!Ln(this[t(407)])){const e=this[t(418)][t(431)][t(492)](t(414));e&&this[t(418)][t(431)]&&this[t(418)][t(431)].removeChild(e)}delete this[t(407)]}if(this.$contextmenus){this[t(639)][t(432)]="";if(!Ln(this[t(639)])){const e=this.player[t(431)][t(492)](t(559));e&&this.player.$container&&this.player[t(431)].removeChild(e)}delete this.$contextmenus}if(this[t(523)]){if(!Ln(this[t(523)])){const e=this[t(418)][t(431)][t(492)](t(528));e&&this.player[t(431)]&&this[t(418)][t(431)].removeChild(e)}delete this[t(523)]}if(this.$extendDom){if(!Ln(this[t(464)])){const e=this.player[t(431)][t(492)](t(433));e&&this[t(418)][t(431)]&&this[t(418)][t(431)][t(513)](e)}delete this[t(464)]}try{delete this[t(664)],delete this.$tipsMessageClose,delete this.$playbackProgressTime,delete this.$playbackProgressIndicator,delete this[t(541)],delete this.$playbackProgressHover,delete this[t(638)],delete this.$playbackProgress,delete this[t(461)],delete this.$speedMenuList,delete this[t(546)],delete this[t(564)],delete this.$contextmenus,delete this[t(475)],delete this[t(463)],delete this[t(419)],delete this[t(625)],delete this.$faceDetectActive,delete this[t(552)],delete this[t(476)],delete this[t(623)],delete this.$performancePanel,delete this.$zoomControls,delete this[t(540)],delete this[t(591)],delete this.$zoomExpand,delete this[t(548)],delete this.$zoomStop,delete this[t(576)],delete this[t(567)],delete this[t(435)],delete this[t(569)],delete this[t(586)],delete this[t(662)],delete this.$qualityText,delete this[t(466)],delete this[t(519)],delete this[t(535)],delete this.$ptzFogOpen,delete this[t(438)],delete this[t(439)],delete this[t(428)],delete this[t(665)],delete this[t(506)],delete this[t(411)],delete this[t(558)],delete this[t(427)],delete this[t(457)],delete this[t(590)],delete this[t(545)],delete this[t(637)],delete this[t(472)],delete this.$ptz,delete this[t(452)],delete this[t(577)],delete this[t(636)],delete this.$playbackCurrentTimeText,delete this.$playbackCurrentTime,delete this[t(630)],delete this[t(406)],delete this[t(409)],delete this[t(661)],delete this[t(529)],delete this[t(573)],delete this[t(555)],delete this.$speed,delete this.$screenshot,delete this[t(482)],delete this.$record,delete this[t(413)],delete this.$fullscreen,delete this.$volumeOff,delete this.$volumeOn,delete this[t(601)],delete this[t(501)],delete this.$volumePanelText,delete this[t(580)],delete this[t(644)],delete this[t(525)],delete this[t(489)],delete this[t(594)],delete this[t(474)],delete this[t(653)],delete this[t(443)],delete this.$recordingTime,delete this[t(651)],delete this[t(405)],delete this.$play,delete this.$loadingText,delete this.$loading,delete this.$loadingBgImage,delete this[t(613)],delete this[t(490)],delete this.$extendDom,delete this[t(547)],delete this[t(481)],delete this[t(602)],delete this[t(522)],delete this.controlsPlaybackTimeInner,delete this[t(616)]}catch(t){}this[t(628)]=null,this[t(634)]=0,this.extendBtnList=[],this.kbpsShow=t(423),this[t(418)].$container&&(this[t(418)][t(431)][t(449)][t(444)](t(539)),this.player[t(431)][t(449)][t(444)](t(412))),this[t(418)][t(503)](t(617),"destroy")}[Hm(650)](){return this[Hm(634)]++}[Hm(515)](){const t=Hm,e=this[t(418)];e[t(431)][t(497)][t(514)]=t(495);const s=e[t(480)],i=e[t(534)],r=s/i,n=e[t(493)][t(422)][t(480)]/e.video[t(422)][t(534)];if(r>n){const r=(s-i*n)/2;e[t(431)][t(497)][t(514)]="0 "+r+"px"}else{const r=(i-s/n)/2;e[t(431)][t(497)].padding=r+"px 0"}}[Hm(471)](){const t=Hm,e=this.player;e[t(434)].loadingBackground&&e._opt[t(612)]&&e._opt[t(571)]&&(e[t(503)](this.TAG_NAME,t(459)),this[t(418)]._opt[t(417)]===t(647)||Je()?e[t(597)]()===f.canvas?this[t(527)]():e[t(597)]()===f[t(493)]&&this[t(598)]():this[t(517)](),Rn(this[t(613)],t(483),t(455)),e[t(434)][t(592)]="")}[Hm(462)](){const t=Hm;this[t(538)][t(615)]&&this.$loadingBgImage[t(480)]>0&&this[t(538)].height>0&&Ge(this[t(613)],t(483),!1)!==t(604)&&(this[t(418)][t(503)](this[t(450)],t(510)),this[t(418)]._opt[t(417)]===t(647)||Je()?this[t(418)].getRenderType()===f[t(633)]?this._initLoadingBackgroundForCanvas():this[t(418)][t(597)]()===f.video&&this[t(598)]():this._initLoadingBackgroundForRatio())}initLoadingIconStyle(t){const e=Hm,s=this[e(418)][e(431)][e(492)](e(631));s&&(t[e(480)]&&Rn(s,e(480),t.width+"px"),t.height&&Rn(s,"height",t.height+"px"),t[e(560)]&&Rn(s,e(454),'url("'+t[e(560)]+'")'),!1===t.hasAnimation&&(Rn(s,e(437),e(604)),Rn(s,e(657),0),Rn(s,e(648),"ease"),Rn(s,e(429),1)))}_initLoadingBackgroundForRatio(){const t=Hm,e=this[t(418)][t(434)].aspectRatio[t(491)](":").map(Number),s=this[t(418)][t(553)](),i=this[t(418)][t(425)](),r=s[t(480)],n=s[t(534)],o={width:this.player[t(434)][t(612)],height:this[t(418)]._opt[t(571)]},a=o[t(480)]/o.height,h=e[0]/e[1];if(this[t(418)][t(434)].loadingBackground&&(this[t(538)][t(615)]=this.player._opt[t(592)]),a>h){const e=h*o[t(534)]/o[t(480)];this.$loadingBgImage[t(497)][t(480)]=100*e+"%",this[t(538)][t(497)][t(534)]="calc(100% - "+i+t(526),this[t(538)][t(497)].padding="0 "+(r-r*e)/2+"px"}else{const e=o.width/h/o[t(534)];this[t(538)][t(497)][t(480)]=t(456),this[t(538)].style[t(534)]=t(640)+100*e+"% - "+i+t(526),this[t(538)][t(497)][t(514)]=(n-n*e)/2+t(518)}}[Hm(527)](){const t=Hm,e=this[t(418)],s=e._opt,i=e[t(553)](),r=i[t(534)],n=i.width,o={width:this[t(418)][t(434)][t(612)],height:this.player._opt.loadingBackgroundHeight};let a=o[t(480)],h=o[t(534)];const c=s.rotate;let l=(n-a)/2,d=(r-h)/2;(270===c||90===c)&&(a=o[t(534)],h=o[t(480)]);const u=n/a,p=r/h;let f=u>p?p:u;ci(s[t(581)])&&u!==p&&(f=u+","+p),s[t(556)]&&(f=u>p?u:p);let m="scale("+f+")";s.mirrorRotate===t(604)&&c&&(m+=t(572)+c+t(448)),s[t(485)]===t(445)?m+=t(632):s[t(485)]===t(487)&&(m+=t(516)),this[t(538)][t(480)]=o[t(480)],this.$loadingBgImage[t(534)]=o[t(534)],e[t(434)][t(592)]&&(this[t(538)][t(615)]=e[t(434)].loadingBackground),this.$loadingBgImage[t(497)].padding="0",this[t(538)].style.transform=m,this[t(538)][t(497)][t(478)]=l+"px",this[t(538)][t(497)][t(507)]=d+"px"}[Hm(598)](){const t=Hm,e=this[t(418)],s=e._opt,i=e[t(553)](),r=i[t(480)],n=i[t(534)];let o=i[t(480)],a=i.height;const h=s.rotate;(270===h||90===h)&&(o=n,a=r),this.$loadingBgImage.width=o,this[t(538)][t(534)]=a,e[t(434)][t(592)]&&(this[t(538)][t(615)]=e[t(434)][t(592)]);let c=(r-o)/2,l=(n-a)/2,d="contain";!s.isResize&&(d=t(606)),s.isFullResize&&(d="none");let u="";s[t(485)]===t(604)&&h&&(u+=t(572)+h+t(448)),s[t(485)]===t(445)?u+=t(632):"vertical"===s[t(485)]&&(u+=t(516)),this.player._opt[t(484)]&&(this[t(538)].style[t(656)]=d),this.$loadingBgImage[t(497)][t(509)]=u,this[t(538)][t(497)][t(514)]="0",this.$loadingBgImage[t(497)][t(478)]=c+"px",this.$loadingBgImage[t(497)][t(507)]=l+"px"}[Hm(549)](t){const e=Hm;let s=!0;if(!t.name&&(this[e(418)][e(620)](e(617),"extend button name is required"),s=!1),s){-1!==this.extendBtnList[e(562)]((s=>s[e(614)]===t[e(614)]))&&(this[e(418)][e(620)](e(617),e(469)+t.name+e(458)),s=!1)}return s&&!t.icon&&(this.player.debugWarn("Control",e(566)),s=!1),s}addExtendBtn(){const t=Hm;let e=arguments[t(426)]>0&&void 0!==arguments[0]?arguments[0]:{};const s=ii(At);if(e=Object[t(537)]({},s,e),!this[t(549)](e))return;const i=e.name||"",r=this[t(525)],n=e[t(416)]||Ut[t(611)],o=e[t(659)]&&e[t(531)],a=t(575)+i+'">\n '+(e[t(508)]?t(588)+i+t(420)+i+'"></i>\n '+(e[t(550)]?'\n <span class="icon-title-tips"><span class="icon-title">'+e[t(550)]+t(600):"")+t(593):"")+t(467)+(e[t(659)]?t(588)+i+'-active">\n <i class="jb-pro-icon jb-pro-icon-extend-'+i+t(473)+(e[t(554)]?t(619)+e.activeIconTitle+t(600):"")+t(543):"")+t(663),h=Array.from(r[t(643)])[e[t(587)]];h?h[t(574)](t(635),a):_n(r,a);const c=r[t(492)](".jb-pro-controls-item-wrap-"+i),l=e[t(508)]?r[t(492)](t(504)+i):null,d=e[t(508)]?r[t(492)](t(521)+i):null,u=e.activeIcon?r[t(492)](t(504)+i+t(596)):null,p=e.activeIcon?r[t(492)](t(521)+i+t(596)):null,{events:{proxy:f},debug:m}=this[t(418)];e[t(508)]&&(Rn(l,t(560),t(649)+e[t(508)]+t(441)),Rn(l,t(440),t(658)),n===Ut[t(520)]?Rn(d,t(483),t(584)):Rn(d,t(483),t(604)),e[t(568)]&&(f(l,t(563),(()=>{const s=t;Rn(l,"background","url("+e[s(568)]+s(441)),Rn(l,"background-size","100% 100%")})),f(l,t(496),(()=>{const s=t;Rn(l,s(560),s(649)+e[s(508)]+s(441)),Rn(l,s(440),"100% 100%")})))),e[t(659)]&&(Rn(u,"background",t(649)+e[t(659)]+t(441)),Rn(u,t(440),"100% 100%"),Rn(p,t(483),"none"),e.activeIconHover&&(f(u,t(563),(()=>{const s=t;Rn(u,s(560),"url("+e[s(410)]+") no-repeat center"),Rn(u,s(440),s(658))})),f(u,t(496),(()=>{const s=t;Rn(u,s(560),s(649)+e.activeIcon+s(441)),Rn(u,"background-size","100% 100%")})))),e[t(511)]&&l&&f(l,"click",(s=>{const i=t;s[i(505)](),o&&(Rn(d,i(483),i(604)),Rn(p,i(483),"flex")),this[i(418)][i(470)]()?e[i(511)][i(565)](this.player,s,this[i(418)][i(434)][i(607)]):e.click[i(565)](this[i(418)],s)})),e.activeClick&&u&&f(u,"click",(s=>{const i=t;s[i(505)](),Rn(d,i(483),i(584)),Rn(p,i(483),i(604)),this[i(418)].isInMulti()?e[i(531)][i(565)](this.player,s,this[i(418)][i(434)][i(607)]):e.activeClick[i(565)](this[i(418)],s)})),this[t(408)][t(499)]({name:i,createdMoment:n,$iconContainer:c,$iconWrap:d,$activeIconWrap:p})}[Hm(624)](t,e){const s=Hm,i=this[s(408)].find((e=>e.name===t));i&&i.$activeIconWrap&&i[s(646)]&&(!bs(e)&&(e=Ge(i[s(585)],s(483),!1)===s(604)),e?(Rn(i[s(646)],"display",s(604)),Rn(i[s(585)],s(483),s(584))):(Rn(i.$iconWrap,s(483),s(584)),Rn(i[s(585)],s(483),"none")))}getExtendBtnActive(t){const e=Hm,s=this.extendBtnList[e(544)]((s=>s[e(614)]===t));let i=!1;return s&&s.$activeIconWrap&&(i=Ge(s.$activeIconWrap,"display",!1)!==e(604)),i}[Hm(512)](t){const e=Hm;if(t.html){const s=e(468)+t[e(654)]+e(579);this[e(418)][e(431)][e(574)](e(622),s),Object[e(424)](this,"$extendDom",{value:this[e(418)].$container[e(492)](".jb-pro-extend-dom"),configurable:!0}),t.showBeforePlay&&Rn(this[e(464)],e(483),e(455))}}[Hm(627)](t){const e=Hm;this[e(464)]&&(!bs(t)&&(t=Ge(this[e(464)],e(483),!1)===e(604)),t?Rn(this[e(464)],e(483),e(455)):Rn(this.$extendDom,e(483),e(604)))}[Hm(453)](t){const e=Hm;this[e(464)]&&(this[e(464)][e(432)]=t)}[Hm(460)](){const t=Hm;this[t(464)]&&(this[t(464)][t(432)]="")}updateLoadingText(t){const e=Hm;this[e(477)]&&(this[e(477)][e(578)]=t)}[Hm(451)](){return this.extendBtnList}[Hm(629)](t,e){const s=Hm,i=this[s(523)],r=this.$tipsMessageContent;if(i){const n='\n <div class="jb-pro-tips-message-content-item">'+t+"</div>\n "+(e?'<div class="jb-pro-tips-message-content-item">Error Type:'+e+s(524):"")+"\n ";r[s(432)]=n,Rn(i,"display",s(455))}}hideTipsMessage(){const t=Hm,e=this[t(523)],s=this[t(664)];e&&(s[t(432)]="",Rn(e,t(483),"none"))}[Hm(442)](t){const e=Hm,s=this[e(637)];if(Bs(t)&&s){let i=e(599);t[e(478)]&&(i=Number(t.left)===t[e(478)]?t.left+"px":t[e(478)]),Rn(s,"left",i);let r=e(599);t.top&&(r=Number(t[e(507)])===t[e(507)]?t[e(507)]+"px":t.top),Rn(s,e(507),r);let n=e(599);t[e(642)]&&(n=Number(t[e(642)])===t[e(642)]?t[e(642)]+"px":t[e(642)]),Rn(s,"bottom",n);let o=e(599);t[e(542)]&&(o=Number(t.right)===t[e(542)]?t[e(542)]+"px":t[e(542)]),Rn(s,e(542),o)}}[Hm(609)](){const t=Hm;Rn(this[t(405)],t(483),t(455))}toggleBar(t){const e=Hm;this[e(474)]&&(!bs(t)&&(t="none"===Ge(this.$controls,e(483),!1)),t?Rn(this[e(474)],"display","flex"):Rn(this[e(474)],e(483),"none"))}[Hm(610)](){const t=Hm;let e=!1;return this[t(474)]&&(e=Ge(this[t(474)],t(483),!1)!==t(604)),e}[Hm(608)](t){const e=Hm;this[e(555)]&&(!bs(t)&&(t=Ge(this[e(555)],e(483),!1)===e(604)),Rn(this[e(555)],e(483),t?"block":e(604)))}getControlHtmlIsShow(){const t=Hm;let e=!1;return this[t(555)]&&(e="none"!==Ge(this.$controlHtml,t(483),!1)),e}[Hm(533)](){const t=Hm;let e=!1;return this[t(464)]&&(e=Ge(this[t(464)],t(483),!1)!==t(604)),e}getExtendDom(){const t=Hm;return this.$extendDom?this[t(464)]:null}getControlHtml(){const t=Hm;return this[t(555)]?this[t(555)]:null}[Hm(479)](){const t=Hm;if(this[t(474)]){const e=this[t(418)]._opt[t(498)],s=t(561);e===y.small?ci(kn(this[t(474)],s))&&In(this[t(474)],s):e===y[t(582)]&&kn(this[t(474)],s)&&Tn(this.$controls,s)}}}function qm(t,e){const s=Jm();return(qm=function(t,e){return s[t-=108]})(t,e)}function Jm(){const t=["supportDblclickFullscreen","_isPlayingBeforePageHidden","pause","target","orientationchange","visibilityState","play","tagName","1577048FGZeYU","hiddenAutoPause is true ","contextmenu","emit","_opt","orientation","nodeName","visible","visibilitychange","3966996TWAOLz","onchange","debugLog","220329igWGlT","304ieOPGb","14NQigHX","video","toLowerCase","isFocus","262618yQfllr","12lKDKXX","preventDefault","$container","blur","playing","2865qUMrqV","click","focus","4041lGBnVl","type","visibility","INPUT","isInput","hiddenAutoPause","7460lNgkSJ","canvas","dblclick","change","resize","2391114jvgcLp"];return(Jm=function(){return t})()}Vm(".jb-pro-container{position:relative;width:100%;height:100%;overflow:hidden}.jb-pro-container.jb-pro-fullscreen-web{position:fixed;z-index:9999;left:0;top:0;right:0;bottom:0;width:100vw!important;height:100vh!important;background:#000}.jb-pro-container .jb-pro-loading-bg-for-ios{position:absolute;z-index:100;left:0;top:0;right:0;bottom:0;height:100%;width:100%;opacity:0;visibility:hidden;background-position:50%;background-repeat:no-repeat;background-size:contain;pointer-events:none}.jb-pro-container .jb-pro-loading-bg-for-ios.show{opacity:1;visibility:visible}"),function(t,e){const s=qm,i=t();for(;;)try{if(513280===-parseInt(s(137))/1+-parseInt(s(138))/2*(parseInt(s(131))/3)+-parseInt(s(132))/4*(-parseInt(s(143))/5)+parseInt(s(128))/6+parseInt(s(133))/7*(parseInt(s(119))/8)+parseInt(s(146))/9*(parseInt(s(152))/10)+-parseInt(s(110))/11)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Jm);var Xm=t=>{const e=qm,{_opt:s,events:{proxy:i}}=t;if(s[e(111)]&&i(t[e(140)],e(154),(s=>{const i=e,r=Ns(s)[i(125)][i(135)]();(r===i(153)||r===i(134))&&(t.fullscreen=!t.fullscreen)})),i(document,e(127),(()=>{const i=e;t[i(148)]=i(126)===document.visibilityState,t[i(130)](i(127),document.visibilityState),s[i(151)]&&(t[i(130)](i(127),i(120),document[i(116)],t._isPlayingBeforePageHidden),i(126)===document[i(116)]?t[i(112)]&&t[i(117)]():(t[i(112)]=t[i(142)],t.playing&&t[i(113)]()))})),Xe()&&i(document,[e(144),e(121)],(s=>{const i=e;Dn(s,t.$container)?(hi(t[i(123)].disableContextmenu)&&s[i(147)]===i(121)&&s[i(139)](),t[i(150)]=s[i(114)][i(118)]===i(149),t[i(136)]=!0,t.emit(M[i(145)])):(t[i(150)]=!1,t.isFocus=!1,t[i(122)](M[i(141)]))})),s.isCheckInView){const s=hs((()=>{const s=e;t.emit(M.inView,function(t){const e=En,s=t.getBoundingClientRect(),i=window[e(171)]||document[e(146)][e(145)],r=window[e(172)]||document[e(146)][e(173)],n=s[e(140)]<=i&&s[e(140)]+s[e(154)]>=0,o=s[e(164)]<=r&&s[e(164)]+s[e(126)]>=0;return n&&o}(t[s(140)]))}),200);i(window,"scroll",(()=>s()))}if(s.orientationChangeResize){const s=hs((()=>{const s=e;t[s(122)](M[s(109)])}),500);i(window,e(115),(()=>{s()})),screen&&screen.orientation&&screen.orientation[e(129)]&&i(screen[e(124)],e(108),(()=>{s()}))}};function Zm(t,e){const s=eg();return(Zm=function(t,e){return s[t-=204]})(t,e)}const $m=Zm;!function(t,e){const s=Zm,i=t();for(;;)try{if(347952===parseInt(s(266))/1+-parseInt(s(248))/2+-parseInt(s(264))/3*(-parseInt(s(221))/4)+parseInt(s(279))/5+-parseInt(s(280))/6+parseInt(s(263))/7+-parseInt(s(261))/8)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(eg);class tg{static[$m(228)](){const t=$m;tg[t(270)]={avc1:[],avcC:[],hvc1:[],hvcC:[],av01:[],av1C:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[],Opus:[],dOps:[],"ac-3":[],dac3:[],"ec-3":[],dec3:[]};for(let e in tg[t(270)])tg.types[t(262)](e)&&(tg[t(270)][e]=[e.charCodeAt(0),e[t(213)](1),e[t(213)](2),e[t(213)](3)]);let e=tg[t(236)]={};e[t(209)]=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),e[t(251)]=new Uint8Array([0,0,0,0,0,0,0,1]),e[t(269)]=new Uint8Array([0,0,0,0,0,0,0,0]),e.STSC=e[t(239)]=e[t(269)],e[t(258)]=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),e[t(242)]=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),e[t(207)]=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),e.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),e[t(247)]=new Uint8Array([0,0,0,0,0,0,0,0]),e.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}static[$m(274)](t){const e=$m;let s=8,i=null,r=Array.prototype[e(243)][e(252)](arguments,1),n=r[e(232)];for(let t=0;t<n;t++)s+=r[t].byteLength;i=new Uint8Array(s),i[0]=s>>>24&255,i[1]=s>>>16&255,i[2]=s>>>8&255,i[3]=255&s,i[e(231)](t,4);let o=8;for(let t=0;t<n;t++)i.set(r[t],o),o+=r[t][e(212)];return i}static[$m(271)](t){const e=$m;let s=tg[e(274)](tg[e(270)].ftyp,tg[e(236)][e(209)]),i=tg.moov(t),r=new Uint8Array(s[e(212)]+i[e(212)]);return r[e(231)](s,0),r[e(231)](i,s[e(212)]),r}static moov(t){const e=$m;let s=tg[e(260)](t[e(259)],t[e(229)]),i=tg[e(215)](t),r=tg.mvex(t);return tg[e(274)](tg.types[e(205)],s,i,r)}static[$m(260)](t,e){const s=$m;return tg[s(274)](tg[s(270)].mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,255&t,e>>>24&255,e>>>16&255,e>>>8&255,255&e,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))}static trak(t){const e=$m;return tg[e(274)](tg[e(270)][e(215)],tg.tkhd(t),tg[e(273)](t))}static tkhd(t){const e=$m;let s=t.id,i=t[e(229)],r=t[e(284)],n=t.presentHeight;return tg[e(274)](tg[e(270)][e(249)],new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,s>>>24&255,s>>>16&255,s>>>8&255,255&s,0,0,0,0,i>>>24&255,i>>>16&255,i>>>8&255,255&i,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,r>>>8&255,255&r,0,0,n>>>8&255,255&n,0,0]))}static mdia(t){const e=$m;return tg.box(tg[e(270)][e(273)],tg[e(278)](t),tg[e(265)](t),tg[e(244)](t))}static[$m(278)](t){const e=$m;let s=t.timescale,i=t[e(229)];return tg[e(274)](tg[e(270)][e(278)],new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,s>>>24&255,s>>>16&255,s>>>8&255,255&s,i>>>24&255,i>>>16&255,i>>>8&255,255&i,85,196,0,0]))}static hdlr(t){const e=$m;let s=null;return s=t[e(257)]===e(246)?tg[e(236)][e(207)]:tg[e(236)][e(242)],tg[e(274)](tg[e(270)][e(265)],s)}static minf(t){const e=$m;let s=null;return s=t.type===e(246)?tg.box(tg[e(270)].smhd,tg[e(236)].SMHD):tg[e(274)](tg[e(270)][e(217)],tg[e(236)][e(220)]),tg[e(274)](tg[e(270)][e(244)],s,tg[e(219)](),tg[e(282)](t))}static[$m(219)](){const t=$m;return tg[t(274)](tg[t(270)][t(219)],tg[t(274)](tg.types.dref,tg[t(236)][t(230)]))}static[$m(282)](t){const e=$m;return tg[e(274)](tg.types[e(282)],tg.stsd(t),tg[e(274)](tg[e(270)].stts,tg[e(236)][e(269)]),tg.box(tg.types[e(281)],tg[e(236)][e(233)]),tg[e(274)](tg[e(270)].stsz,tg[e(236)][e(258)]),tg.box(tg[e(270)].stco,tg.constants[e(239)]))}static stsd(t){const e=$m;return t[e(257)]===e(246)?t[e(276)]===e(241)?tg[e(274)](tg[e(270)][e(275)],tg[e(236)].STSD_PREFIX,tg[e(241)](t)):tg[e(274)](tg.types[e(275)],tg[e(236)].STSD_PREFIX,tg[e(211)](t)):t[e(218)]===e(214)?tg[e(274)](tg[e(270)][e(275)],tg[e(236)][e(251)],tg[e(216)](t)):tg[e(274)](tg.types[e(275)],tg[e(236)].STSD_PREFIX,tg[e(268)](t))}static[$m(241)](t){const e=$m;let s=t[e(245)],i=t[e(235)],r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,s,0,16,0,0,0,0,i>>>8&255,255&i,0,0]);return tg[e(274)](tg.types[e(208)],r)}static[$m(211)](t){const e=$m;let s=t[e(245)],i=t[e(235)],r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,s,0,16,0,0,0,0,i>>>8&255,255&i,0,0]);return tg[e(274)](tg[e(270)][e(211)],r,tg[e(223)](t))}static[$m(223)](t){const e=$m;let s=t[e(283)]||[],i=s.length,r=new Uint8Array([0,0,0,0,3,23+i,0,1,0,4,15+i,64,21,0,0,0,0,0,0,0,0,0,0,0,5][e(285)]([i]).concat(s)[e(285)]([6,1,2]));return tg[e(274)](tg[e(270)][e(223)],r)}static[$m(216)](t){const e=$m;let s=t[e(224)];const i=t[e(206)],r=t[e(277)];let n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,i>>>8&255,255&i,r>>>8&255,255&r,0,72,0,0,0,72,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return tg[e(274)](tg[e(270)][e(216)],n,tg[e(274)](tg.types.avcC,s))}static hvc1(t){const e=$m;let s=t[e(224)];const i=t[e(206)],r=t[e(277)];let n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,i>>>8&255,255&i,r>>>8&255,255&r,0,72,0,0,0,72,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return tg[e(274)](tg[e(270)][e(268)],n,tg.box(tg[e(270)].hvcC,s))}static mvex(t){const e=$m;return tg[e(274)](tg[e(270)][e(272)],tg[e(204)](t))}static[$m(204)](t){const e=$m;let s=t.id,i=new Uint8Array([0,0,0,0,s>>>24&255,s>>>16&255,s>>>8&255,255&s,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return tg[e(274)](tg.types.trex,i)}static[$m(238)](t,e){const s=$m;return tg[s(274)](tg.types.moof,tg[s(240)](t.sequenceNumber),tg[s(255)](t,e))}static[$m(240)](t){const e=$m;let s=new Uint8Array([0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,255&t]);return tg[e(274)](tg[e(270)].mfhd,s)}static[$m(255)](t,e){const s=$m;let i=t.id,r=tg[s(274)](tg.types[s(225)],new Uint8Array([0,0,0,0,i>>>24&255,i>>>16&255,i>>>8&255,255&i])),n=tg[s(274)](tg[s(270)][s(250)],new Uint8Array([0,0,0,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])),o=tg.sdtp(t),a=tg[s(267)](t,o[s(212)]+16+16+8+16+8+8);return tg[s(274)](tg[s(270)][s(255)],r,n,a,o)}static[$m(254)](t){const e=$m;let s=new Uint8Array(5),i=t.flags;return s[4]=i.isLeading<<6|i[e(256)]<<4|i[e(210)]<<2|i[e(253)],tg[e(274)](tg[e(270)].sdtp,s)}static[$m(267)](t,e){const s=$m;let i=new Uint8Array(28);e+=36,i[s(231)]([0,0,15,1,0,0,0,1,e>>>24&255,e>>>16&255,e>>>8&255,255&e],0);let r=t[s(229)],n=t.size,o=t[s(227)],a=t[s(226)];return i.set([r>>>24&255,r>>>16&255,r>>>8&255,255&r,n>>>24&255,n>>>16&255,n>>>8&255,255&n,o[s(234)]<<2|o[s(256)],o[s(210)]<<6|o[s(253)]<<4|o[s(237)],0,0,a>>>24&255,a>>>16&255,a>>>8&255,255&a],12),tg[s(274)](tg.types[s(267)],i)}static mdat(t){const e=$m;return tg[e(274)](tg[e(270)][e(222)],t)}}function eg(){const t=["hasRedundancy","sdtp","traf","dependsOn","type","STSZ","timescale","mvhd","6874304VAFmbs","hasOwnProperty","4643387cJwQjc","79671DDYwWT","hdlr","217079WQDlKN","trun","hvc1","STTS","types","generateInitSegment","mvex","mdia","box","stsd","audioType","codecHeight","mdhd","2637440wOoFIe","2978874HOTeGE","stsc","stbl","config","presentWidth","concat","trex","moov","codecWidth","HDLR_AUDIO",".mp3","FTYP","isDependedOn","mp4a","byteLength","charCodeAt","avc","trak","avc1","vmhd","videoType","dinf","VMHD","56ZOBLlv","mdat","esds","avcc","tfhd","cts","flags","init","duration","DREF","set","length","STSC","isLeading","audioSampleRate","constants","isNonSync","moof","STCO","mfhd","mp3","HDLR_VIDEO","slice","minf","channelCount","audio","SMHD","151974IcOOgs","tkhd","tfdt","STSD_PREFIX","call"];return(eg=function(){return t})()}tg[$m(228)]();const sg=ig;function ig(t,e){const s=rg();return(ig=function(t,e){return s[t-=166]})(t,e)}function rg(){const t=[" , delay buffer is more than ","isUseLocalCalculateTime","codecWidth"," and current time is ","removeSourceBuffer() audioSourceBuffer","_doRemoveRanges","isCurrentTimeInBufferEnd and currentTime is ","_handleUpdatePlaybackRate","videoMeta","isPlaybackPauseClearCache","audioMimeType","_initAudioSourceBuffer and this.isStateOpen is ","TAG_NAME","removeLoadingBgImage","warn","flags","updateVideoCurrentTimeByBufferStart current time is ","revokeObjectURL","handleRender","debugLog","destroy","hasInit","\n decodeAudio dts is less than(or equal) prev dts ,\n dts is ","appendAudioBuffer() this.mediaSourceBufferError is true","ratechange and video is paused","getVideoBufferRangeList","ratechange","src","mseWidthOrHeightChange","removeSourceBuffer","data","mediaSourceObjectURL","mseSourceClose","moof","decodeVideo first frame is not iFrame"," and diff is ","cacheAudioTrack","buffer","_doAppendSegments() sourceBuffer is null and wait init and return","ManagedMediaSource endstreaming","getMimeType","prevPayloadBufferSize","isUseHls265","init","playbackRate","end","videoInfo","_decodeVideo payload bytes is 0 and return","isInitInfo","firstRenderTime is ","emit","stop","_doRemoveRanges() sourceBuffer error","start"," ,currentTime is ","cacheAudioTrack = {} now dts is ",", height ","open","$videoElement","mediaSource","mseAutoCleanupSourceBuffer","max","hasAudio","_stopCanvasRender",", and ts is "," and this.audioMimeType is ","forEach","mseCorrectAudioTimeDuration","removeBuffer() audioSourceBuffer error","isCurrentTimeInBufferEnd","clearSourceBuffer() start is ","isDestroyedOrClosed","code is ","prevTimestamp","refSampleDuration","setLiveSeekableRange","decodeVideo has not init , isIframe is ","audioSequenceNumber","appendBuffer() player is destroyed","shift","sourceBuffer","config","URL","mediaSourceError","MP3","updateMediaSourceDuration","_decodeAudio",",\n new width is ","OPUS","21671156YBNcCC","abortSourceBuffer() abort audioSourceBuffer","width ","recordType","getVideoBufferLastTime","mediaSourceAppendBufferError","\n and current time is ","onMediaSourceSourceOpen() sourceBuffer is null and next init","eventListenList","supportVideoFrameCallbackHandle","_initSourceBuffer","size","isPlayVod"," and payload size is ","pendingAudioRemoveRanges","audioSourceBuffer updateend and hasPendingEos is true, next endOfStream()","pause"," and prev ts is ","bind","updateVideoInfo","_onMediaSourceSourceOpen","sampleRate","getDecodePlaybackRate","hasAudioInit"," , try to seek ","mediaSourceAddSourceBufferError","_decodeVideo now time is ","startstreaming","mediaTime","isWidthOrHeightChanged","hasPendingEos","catch","createObjectURL","checkSourceBufferEndLessThanCurrentTime","mseAddSourceBufferError","addSourceBuffer","mdat","mseSourceBufferError this.audioSourceBuffer"," = ",", diff time is ","endOfStream()","video canplay","_needCleanupSourceBuffer","play","firstRenderTime","pendingRemoveRanges",";codecs=","video is paused and replay error ","_initSourceBuffer() this.mediaSource.addSourceBuffer()","videoSourceBuffer updateend and hasPendingEos is true, next endOfStream()","prevDts","mseSourceBufferError","sequenceNumber","videoFrameCallback","isAAC","getLastBufferDelayEndTime","ended","_initSourceBuffer and this.isStateOpen is ","mediaSourceAppendBufferFull","visibilityChange is true and lastTime is ","code","getVideoBufferStartTime","isDecodeFirstIIframe","checkMSESourceBufferDelay and video is paused and sent isMSECurrentMoreThanBufferedPause true","video.buffered is empty","cts"," and prev time is ","videoMimeType"," and delay is ","slice"," - current is ","updateVideoCurrentTimeByBufferStart","audioSampleRate","clearUpAllSourceBuffer","removeBuffer","audioSourceNoDataCheckTimeout","mediaSourceAudioG711NotSupport","mseCorrectTimeDuration","mseUseCanvasRender","_stats","vbps","type","videoStart"," and currentTime is ","appendAudioBuffer() this.mediaSourceAddSourceBufferError is true","video canplay and requestVideoFrameCallback and use videoFrameCallback","isStateEnded","checkMSESourceBufferDelay ","_checkTsIsMaxDiff","duration"," and message is ","readyState"," and prevTs is ","audioSourceBuffer","mediaSource audio sourceBuffer error","appendAudioBuffer() this.mediaSource.addSourceBuffer()","prevTs","clearSourceBuffer","_resetInIt","decodeVideo\n local dts is < 0 , ts is "," so set currentTime to "," and buffer end is ","mseAutoCleanupMinBackwardDuration","closed","decodeAudio is max diff , ts is ","error","initVideoEvents"," to ","isMSECurrentMoreThanBufferedPause","disableRemotePlayback","getMseBufferMaxDelayTime","prevAudioDts","cacheTrack","stringify","paused"," and isIframe is ","remove","_initAudioSourceBuffer() this.mediaSource.addSourceBuffer()","69YsIqpQ","onMediaSourceSourceOpen() audioSourceBuffer is null and next init"," is ","decodeStart","_getPlaybackRate","18LFNJlQ","appendBuffer() this.mediaSourceBufferError is true","avc","handleUpdatePlaybackRate and buffered is ","generateInitSegment","firstAudioTime is ","711345gtUtcb","video waiting",", but not in render and vbps is ","getVideoBufferEndTime","playback","cacheTrack = {} now dts is ","appendAudioBuffer() this.mediaSourceAppendBufferError is true","_handleUpdateBufferDelayTime","message","sourceOpen","34772KIoxVO","isSupportVideoFrameCallback","_doAppendSegments() audioSourceBuffer is null and need init audio source buffer",",\n and emit change event","h265","video is paused and next try to replay","_doAppendSegments"," cacheAudioTrack dts is "," and prev dts is ","dts","videoFrameCallback() player is destroyed","playVod","push","prevAudioTs","1oqGiZQ","buffered","isPlaybackPauseNotClearCacheAndCacheBeforeDecode","width","_useManagedMediaSource","abortSourceBuffer() abort sourceBuffer","decodeVideo is max diff, prevTs is ","fps","getVideoBufferDelayTime","mediaSource is not attached to video or mediaSource is closed",", diff is ","video playback Rate change","decodeDiffTimestamp","isPlayer","events","playbackPause is false and _opt.checkFirstIFrame is true so set isDecodeFirstIIframe = false","_doCleanUpSourceBuffer"," cacheTrack dts is ","getDecodeDiffTimes","video",",\n firstAudioTime is ","mediaSourceBufferError","_decodeAudioConfigurationRecord","initMetaData","firstAudioTime","pendingAudioSegments","videoBuffer","mp4","abs","8750yVOctB","types","appendBuffer() this.mediaSourceAddSourceBufferError is true","updateend","mediaSourceFull","decodeAudio is max diff, prevTs is ","video loadedmetadata","audioSourceBufferCheckTimeout","loadedmetadata","audio","mediaSourceDecoderConfigurationError","appendBuffer","mseUseCanvasRender is ","timeUpdate","MediaSource","init and using ManagedMediaSource"," and\n $videoElement ts is ","videoBufferDelay","debugWarn","updateStats"," and current is ","pendingSegments","getVideoBufferTimeRange","byteLength","currentTime","mediaSourceTsIsMaxDiff","requestVideoFrameCallback","_checkVideoPlayCurrentTime","muted","removeSourceBuffer() sourceBuffer error","timescale","appendAudioBuffer","debugError"," and codecHeight is ","removeSourceBuffer() sourceBuffer","sourceClose","getPendingSegmentsLength","isPlaying","decodeAudio and has already initialized and payload is aac codec packet so drop this frame","decodeVideo is max diff , ts is ","mediaSourceBufferedIsZeroError",", old height is ","getAudioSourceBufferUpdating","config is empty object","videoType","playVodPause","isStateOpen","checkSourceBufferStore","_hasPendingRemoveRanges","timeStamp","recorder","handleUpdatePlaybackRate and delay buffer is ","mseSourceStartStreaming","isKeyframe"," and end is ","6540720yZlBVx","\n decodeVideo dts is less than(or equal) prev dts ,\n dts is ","needInitAudio"," set playbackRate is ","this.sourceBuffer.appendBuffer()","isPlayStream"," so drop this frame","appendBuffer() this.mediaSource.addSourceBuffer()","audioMeta","242209OyXTZY"," and ts is ","checkVideoPlayCurrentTime store is ","render","250pZqGGw","ManagedMediaSource","removeAttribute"," and new time is "," ms"," and emit replay"," and this.isAvc === null is ","playbackPause",",\n firstRenderTime is ","isPlayback","decodeAudio\n local dts is < 0 , ts is ","_bindMediaSourceEvents","getSourceBufferUpdating","_clearAudioSourceBufferCheckTimeout","_decodeConfigurationRecord","_hasPendingSegments"," < 0, and buffered is ","qualitychange","ManagedMediaSource qualitychange","set","player"," and new time is null and use last buffer start time","978434sGEtFB","h264"," ,\n and now ts is ","removeSourceBuffer() audioSourceBuffer error","decodeVideo() player is destroyed","endstreaming","codec","state"," ,\n and diff is ","isAvc","debug","length","emitError","_initAudioSourceBuffer","isAudioInitInfo","abortSourceBuffer",'video/mp4; codecs="',"canplay","decodeAudio","channelCount","canvasRenderInterval","endOfStream","_times","height","_decodeVideo","decodeAudio first frame is not iFrame","_clearAudioNoDataCheckTimeout","updateAudioInfo","appendAudioBuffer() this.mediaSourceAppendBufferFull is true","_opt","isStateClosed","9rmnCGL","video is paused and replay success","codecHeight","appendBuffer() this.mediaSourceAppendBufferError is true","12DyQdTW"];return(rg=function(){return t})()}!function(t,e){const s=ig,i=t();for(;;)try{if(564722===-parseInt(s(533))/1*(parseInt(s(255))/2)+-parseInt(s(498))/3*(parseInt(s(519))/4)+-parseInt(s(509))/5+-parseInt(s(503))/6*(parseInt(s(562))/7)+parseInt(s(220))/8*(-parseInt(s(286))/9)+-parseInt(s(233))/10*(-parseInt(s(229))/11)+-parseInt(s(290))/12*(-parseInt(s(380))/13))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(rg);class ng extends Bi{constructor(t){const e=ig;super(),this[e(303)]=e(179),this.player=t,this._resetInIt(),this[e(537)]=e(234)in Nt&&!(e(179)in Nt),this[e(350)]=this._useManagedMediaSource?new Nt.ManagedMediaSource:new(Nt[e(179)]),this[e(442)]=!!ci(t._opt.checkFirstIFrame),this[e(322)]=null,!this[e(537)]&&(this[e(322)]=Nt[e(373)][e(412)](this[e(350)])),this.isSupportVideoFrameCallback=fi(),this.canvasRenderInterval=null,t._opt.mseUseCanvasRender?(this[e(349)]=document.createElement(e(552)),this[e(537)]?(this[e(349)][e(489)]=!0,this[e(349)].srcObject=this[e(350)]):this.$videoElement.src=this[e(322)],this[e(486)]()):(this[e(537)]?(this.player[e(552)][e(349)][e(489)]=!0,this[e(253)][e(552)][e(349)].srcObject=this[e(350)]):this[e(253)][e(552)][e(349)].src=this[e(322)],this[e(349)]=this.player[e(552)][e(349)]),this[e(244)](),this.audioSourceBufferCheckTimeout=null,this.audioSourceNoDataCheckTimeout=null,this[e(410)]=!1,this[e(253)][e(242)]()?this[e(253)].on(M[e(240)],(s=>{const i=e;ci(s)?(t[i(284)][i(300)]&&(hi(t[i(284)].checkFirstIFrame)&&(this[i(253)].debugLog(this.TAG_NAME,i(548)),this[i(442)]=!1),this.clearUpAllSourceBuffer()),this.$videoElement[i(423)]()):(this[i(349)][i(396)](),this[i(492)]={})})):this.player.isPlayVod()&&this[e(253)].on(M[e(210)],(t=>{const s=e;ci(t)?this[s(349)][s(423)]():(this[s(349)][s(396)](),this[s(492)]={})})),this._useManagedMediaSource?this[e(253)][e(310)](this[e(303)],e(180)):this[e(253)][e(310)](this[e(303)],e(334))}[sg(311)](){const t=sg;this[t(342)](),this[t(246)](),this[t(281)](),this[t(354)](),this[t(388)][t(266)]&&(this[t(388)][t(357)]((t=>t())),this[t(388)]=[]),this[t(389)]&&this[t(349)]&&(this.$videoElement.cancelVideoFrameCallback(this.supportVideoFrameCallbackHandle),this[t(389)]=null),this[t(349)]&&(this[t(253)]._opt[t(458)]&&(this[t(349)][t(396)]&&(this[t(349)].pause(),this[t(349)][t(193)]=!0),this[t(349)].currentTime=0,this.$videoElement[t(318)]&&(this.$videoElement[t(318)]="",this.$videoElement[t(235)](t(318)))),this.$videoElement=null),this[t(322)]&&(window[t(373)][t(308)](this[t(322)]),this.mediaSourceObjectURL=null),this[t(478)](),this[t(350)]=null,this.off(),this[t(253)][t(310)](this[t(303)],t(311))}needInitAudio(){const t=sg;return this[t(253)][t(284)][t(353)]&&this[t(253)]._opt.mseDecodeAudio}[sg(478)](){const t=sg;this[t(264)]=null,this[t(434)]=null,this.isOpus=null,this[t(299)]={},this[t(228)]={},this[t(371)]=null,this[t(473)]=null,this.hasInit=!1,this[t(403)]=!1,this.isInitInfo=!1,this[t(269)]=!1,this[t(301)]="",this[t(447)]="",this[t(492)]={},this[t(327)]={},this[t(432)]=0,this[t(368)]=0,this.firstRenderTime=null,this.firstAudioTime=null,this[t(349)]=null,this[t(438)]=!1,this[t(385)]=!1,this.mediaSourceAddSourceBufferError=!1,this.mediaSourceBufferError=!1,this[t(374)]=!1,this[t(364)]=null,this[t(545)]=null,this[t(430)]=null,this[t(491)]=null,this.prevPayloadBufferSize=0,this.isWidthOrHeightChanged=!1,this[t(476)]=null,this.prevAudioTs=null,this[t(388)]=[],this[t(425)]=[],this[t(186)]=[],this[t(394)]=[],this[t(558)]=[],this.supportVideoFrameCallbackHandle=null}get state(){const t=sg;return this[t(350)]&&this.mediaSource[t(471)]}get[sg(211)](){const t=sg;return this.state===tt[t(348)]}get isStateClosed(){const t=sg;return this[t(262)]===tt[t(483)]}get[sg(466)](){const t=sg;return this[t(262)]===tt[t(436)]}get[sg(469)](){const t=sg;return this.mediaSource&&this.mediaSource[t(469)]||-1}set duration(t){this.mediaSource.duration=t}[sg(244)](){const t=sg,{events:{proxy:e}}=this[t(253)],s=e(this[t(350)],ht[t(518)],(()=>{const e=t;this[e(253)][e(310)](this.TAG_NAME,e(518)),this[e(400)](),this[e(253)][e(341)](M.mseSourceOpen)})),i=e(this[t(350)],ht.sourceClose,(()=>{const e=t;this[e(253)][e(310)](this[e(303)],e(200)),this[e(253)][e(341)](M[e(323)])})),r=e(this.mediaSource,ht.sourceended,(()=>{const e=t;this[e(253)][e(310)](this.TAG_NAME,"sourceended"),this[e(253)][e(341)](M.mseSourceended)}));this[t(388)].push(s,i,r);const n=e(this[t(349)],ct[t(178)],(e=>{const s=t;if(ci(this.isSupportVideoFrameCallback))if(this[s(253)].checkIsInRender())this[s(253)][s(309)]();else{const t=parseInt(e[s(214)],10);this.player[s(310)](this[s(303)],s(177)+this[s(253)]._opt[s(458)]+s(181)+t+s(511)+this[s(253)][s(459)][s(460)]+" and fps is "+this[s(253)][s(459)][s(540)])}}));if(this[t(388)][t(531)](n),this[t(537)]){const s=e(this.mediaSource,ht[t(407)],(()=>{const e=t;this.player.debugLog(this[e(303)],"ManagedMediaSource startstreaming"),this[e(253)].emit(M[e(217)])})),i=e(this[t(350)],ht[t(260)],(()=>{const e=t;this[e(253)][e(310)](this[e(303)],e(330)),this.player[e(341)](M.mseSourceEndStreaming)})),r=e(this[t(350)],ht[t(250)],(()=>{const e=t;this.player[e(310)](this.TAG_NAME,e(251))}));this[t(388)][t(531)](s,i,r)}}[sg(400)](){const t=sg;!this[t(371)]&&(this[t(253)][t(310)](t(179),t(387)),this[t(390)]()),!this[t(473)]&&(this[t(253)][t(310)]("MediaSource",t(499)),this[t(268)]()),this[t(248)]()&&this[t(525)]()}initVideoEvents(){const t=sg,{proxy:e}=this[t(253)][t(547)];this[t(253)].on(M.visibilityChange,(t=>{t&&setTimeout((()=>{const t=ig;if(this.player[t(202)]()&&this[t(349)]){const e=this[t(384)]();if(e-this.$videoElement[t(189)]>this[t(490)]()){const s=this[t(435)](1);this[t(253)][t(310)](this[t(303)],t(439)+e+t(463)+this[t(349)][t(189)]+t(480)+s),this.$videoElement[t(189)]=s}}}),300)}));const s=e(this.$videoElement,ct[t(272)],(()=>{const e=t;this[e(253)][e(310)](this[e(303)],e(421)),this.$videoElement[e(423)]().then((()=>{const t=e;this[t(253)][t(341)](M[t(304)]),fi()?!this.supportVideoFrameCallbackHandle&&(this[t(253)][t(310)](this[t(303)],t(465)),this[t(389)]=this[t(349)][t(191)](this[t(433)][t(398)](this))):this.player[t(333)]()&&(this.player[t(310)](this[t(303)],"video canplay and use canvas render and fps is 25"),this._stopCanvasRender(),this.canvasRenderInterval=setInterval((()=>{const e=t;this.player[e(552)][e(232)]({$video:this.$videoElement,ts:parseInt(1e3*this[e(349)][e(189)],10)||0})}),40)),this.player.debugLog(this.TAG_NAME,"video play")}))[e(411)]((t=>{const s=e;this[s(253)][s(197)](this[s(303)],"video play error ",t),this[s(253)][s(267)](U.mediaSourceUseCanvasRenderPlayFailed,s(363)+t[s(440)]+s(470)+t[s(517)])}))})),i=e(this[t(349)],ct.waiting,(()=>{const e=t;this[e(253)][e(310)](this.TAG_NAME,e(510))})),r=e(this.$videoElement,ct[t(173)],(()=>{const e=t;this[e(253)].debugLog(this[e(303)],e(171))})),n=e(this[t(349)],ct[t(178)],(e=>{const s=t;parseInt(e.timeStamp,10),this[s(349)].paused&&(this[s(253)][s(183)](this[s(303)],s(524)),this[s(349)][s(423)]().then((()=>{const t=s;this[t(253)][t(310)](this[t(303)],t(287))}))[s(411)]((t=>{const e=s;this[e(253)].debugWarn(this[e(303)],e(427),t)})))})),o=e(this[t(349)],ct[t(317)],(()=>{const e=t;this[e(253)][e(310)](this[e(303)],e(544),this[e(349)]&&this[e(349)][e(335)]),this[e(349)]&&this[e(349)][e(494)]&&this.player[e(183)](this.TAG_NAME,e(315))}));this[t(388)][t(531)](s,i,n,o,r)}[sg(433)](t){const e=sg;let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this[e(253)].isDestroyedOrClosed())return void this.player[e(310)](this[e(303)],e(529));const i=parseInt(1e3*Math[e(352)](s[e(408)],this[e(349)].currentTime),10)||0;this[e(253)][e(309)](),this[e(253)][e(552)][e(232)]({$video:this[e(349)],ts:i}),this[e(253)][e(333)]()&&this.player[e(184)]({fps:!0,ts:i}),this[e(389)]=this[e(349)][e(191)](this.videoFrameCallback.bind(this))}decodeVideo(t,e,s,i){const r=sg,n=this.player;if(n)if(this[r(253)][r(362)]())this[r(253)].debugWarn(this[r(303)],r(259));else if(this[r(312)])if(!this[r(442)]&&s&&(this[r(442)]=!0),this[r(442)]){if(s&&0===t[1]){const e=15&t[0];let s={};if(e===G[r(256)]){s=sh(t[r(449)](5))}else e===G[r(523)]&&(s=Dh(t));const i=this[r(253)].video[r(337)];i&&i.width&&i[r(278)]&&s&&s.codecWidth&&s[r(288)]&&(s[r(293)]!==i[r(536)]||s[r(288)]!==i[r(278)])&&(this[r(253)].debugWarn(this.TAG_NAME,"\n decodeVideo: video width or height is changed,\n old width is "+i[r(536)]+r(206)+i[r(278)]+r(378)+s[r(293)]+", new height is "+s[r(288)]+r(522)),this[r(409)]=!0,this.player[r(267)](U[r(319)],r(382)+i[r(536)]+"->"+s[r(293)]+r(347)+i.height+"->"+s[r(288)]))}if(this[r(409)])return void this[r(253)][r(183)](this[r(303)],"decodeVideo: video width or height is changed, and return");if(ai(t))return void this[r(253)][r(310)](this.TAG_NAME,"decodeVideo and payload is video sequence header so drop this frame");if(t.byteLength<12)return void this[r(253)].debugWarn(this[r(303)],"decodeVideo and payload is too small , payload length is "+t[r(188)]);let n=e;if(this[r(253)][r(546)]()){if(null===this.firstRenderTime&&(this.firstRenderTime=e,this[r(253)][r(310)](this[r(303)],r(340)+this[r(424)])),n=e-this[r(424)],n<0&&(this[r(253)].debugWarn(this[r(303)],r(479)+e+" and prevTs is "+this.prevTs+r(241)+this.firstRenderTime+" and mseCorrectTimeDuration is "+this[r(253)][r(284)].mseCorrectTimeDuration),n=null===this.prevDts?0:this[r(430)]+this[r(253)]._opt[r(457)],this._checkTsIsMaxDiff(e)))return this[r(253)][r(183)](this[r(303)],r(204)+e+r(472)+this[r(476)]+r(543)+(this.prevTs-e)+r(238)),void this[r(253)][r(267)](U[r(190)],r(539)+this[r(476)]+r(230)+e);if(null!==this[r(430)]&&n<=this[r(430)]){if(this[r(253)].debugWarn(this[r(303)],r(221)+n+r(527)+this[r(430)]+r(257)+e+r(397)+this[r(476)]+r(263)+(e-this[r(476)])+" and firstRenderTime is "+this[r(424)]+r(495)+s+",\n and mseCorrectTimeDuration is "+this[r(253)][r(284)][r(457)]+",\n and prevPayloadBufferSize is "+this[r(332)]+r(393)+t[r(188)]),n===this[r(430)]&&this.prevPayloadBufferSize===t[r(188)])return void this[r(253)].debugWarn(this[r(303)],"decodeVideo dts is equal to prev dts and payload size is equal to prev payload size so drop this frame");if(n=this[r(430)]+this[r(253)][r(284)][r(457)],this[r(468)](e))return this[r(253)][r(183)](this[r(303)],r(204)+e+r(472)+this.prevTs+r(543)+(this[r(476)]-e)+r(238)),void this.emit(U[r(190)],"decodeVideo is max diff, prevTs is "+this[r(476)]+r(230)+e)}}this[r(253)][r(546)]()?this[r(279)](t,n,s,i,e):this[r(253)][r(242)]()?ci(this[r(253)][r(240)])?(this[r(253)][r(513)][r(292)]&&this[r(253)][r(513)].increaseLocalTimestamp(),this._decodeVideo(t,n,s,i,e)):this[r(253)][r(513)].isPlaybackPauseNotClearCacheAndCacheBeforeDecode()&&this._decodeVideo(t,n,s,i,e):this.player[r(392)]()&&this[r(279)](t,n,s,i,e),this.prevDts=n,this[r(332)]=t[r(188)],this.prevTs=e}else this[r(253)][r(310)](this.TAG_NAME,r(325));else if(s&&t[1]===ft){const i=15&t[0];if(n[r(552)][r(399)]({encTypeCode:i}),i===G.h265&&ci(ps()))return void this.player[r(267)](U.mediaSourceH265NotSupport);!n._times[r(501)]&&(n._times[r(501)]=je()),this[r(312)]=this[r(247)](t,e,s,i)}else this[r(253)][r(183)](this[r(303)],r(367)+s+" , payload is "+t[1]+r(226))}[sg(273)](t,e){const s=sg;if(this[s(253)])if(this[s(253)][s(362)]())this[s(253)].debugWarn(this.TAG_NAME,"decodeAudio() player is destroyed");else if(ci(this[s(403)]))this[s(403)]=this[s(555)](t,e);else{let i=e;if(pe(t))return void this[s(253)].debugLog(this[s(303)],s(203));if(this[s(281)](),this[s(442)]){if(this[s(253)][s(546)]()){if(null===this.firstAudioTime&&(this.firstAudioTime=e,this.player[s(310)](this[s(303)],s(508)+this[s(557)])),i=e-this[s(557)],i<0&&(this[s(253)][s(183)](this[s(303)],s(243)+e+s(472)+this[s(532)]+s(553)+this[s(557)]),i=null===this[s(491)]?0:this.prevAudioDts+this[s(253)][s(284)][s(358)],this._checkAudioTsIsMaxDiff(e)))return this[s(253)][s(183)](this[s(303)],s(484)+e+s(472)+this[s(491)]+", diff is "+(this[s(491)]-e)+" and emit replay"),void this[s(253)][s(267)](U[s(190)],s(170)+this.prevAudioDts+" and ts is "+e);null!==this[s(532)]&&i<=this[s(491)]&&(this[s(253)][s(183)](this[s(303)],s(313)+i+s(527)+this[s(491)]+s(257)+e+s(397)+this[s(532)]+" ,\n and diff is "+(e-this[s(532)])),i=this[s(491)]+this[s(253)][s(284)][s(358)])}this[s(253)].isPlayer()?this._decodeAudio(t,i,e):this.player[s(242)]()?ci(this[s(253)][s(240)])?this[s(377)](t,i,e):this[s(253)][s(513)][s(535)]()&&this._decodeAudio(t,i,e):this[s(253)][s(392)]()&&this[s(377)](t,i,e),this[s(532)]=e,this.prevAudioDts=i}else this.player[s(310)](this[s(303)],s(280))}}[sg(468)](t){const e=sg;return this.prevTs>0&&t<this.prevTs&&this[e(476)]-t>w}_checkAudioTsIsMaxDiff(t){return this.prevAudioTs>0&&t<this.prevAudioTs&&this.prevAudioTs-t>w}[sg(247)](t,e,s,i){const r=sg;let n=t.slice(5),o={};if(i===G[r(256)]?o=sh(n):i===G[r(523)]&&(o=Lh(n)),Ps(o)||0===o[r(293)]&&0===o[r(288)]){this[r(253)][r(183)](this[r(303)],r(247),o);let t="";return t=Ps(o)?r(208):"config is not empty object and codecWidth is "+o[r(293)]+r(198)+o[r(288)],this[r(253)][r(267)](U[r(175)],t),!1}!this[r(339)]&&(this[r(253)].debugLog(this.TAG_NAME,"updateVideoInfo: "+o[r(293)]+","+o[r(288)]),this[r(253)].video[r(399)]({width:o[r(293)],height:o[r(288)]}),this.player[r(552)].initCanvasViewSize(),this[r(339)]=!0),this[r(253)].recorder&&this[r(253)][r(284)][r(383)]===l[r(560)]&&this.player[r(215)][r(556)](t,i);const a={id:Ct.video,type:r(552),timescale:1e3,duration:0,avcc:n,codecWidth:o[r(293)],codecHeight:o[r(288)],videoType:o[r(209)]},h=tg[r(507)](a);return this.isAvc=i===G[r(256)],o[r(261)]?this.videoMimeType=r(271)+o[r(261)]+'"':this[r(447)]=this.isAvc?$[r(505)]:$.hev,this[r(390)](),this[r(176)](h[r(328)]),this[r(432)]=0,this[r(492)]={},!0}[sg(555)](t,e){const s=sg,i=t[0]>>4&15,r=t[0]>>1&1,n=i===H[s(375)],o=i===H.AAC,a=i===H[s(379)];let h="";if(h=o?r?16:8:0===r?8:16,ci(o||n))return this[s(253)][s(183)](this.TAG_NAME,"_decodeAudioConfigurationRecord audio codec is not support , codecId is "+i+" ant auto wasm decode"),this[s(253)][s(341)](U[s(456)]),!1;const c={id:Ct[s(174)],type:s(174),timescale:1e3};let l={};if(pe(t)){if(l=be(t[s(449)](2)),!l)return!1;c.audioSampleRate=l[s(401)],c[s(274)]=l.channelCount,c[s(372)]=l.config,c[s(365)]=1024/c[s(452)]*c[s(195)]}else{if(!n)return!1;if(l=hm(t[s(449)](1)),!l)return!1;c[s(452)]=l[s(401)],c[s(274)]=l.channelCount,c[s(365)]=1152/c[s(452)]*c[s(195)]}c[s(261)]=l.codec,c[s(469)]=0;let d="mp4",u=l[s(261)],p=null;n&&ci($e())?(d="mpeg",u="",p=new Uint8Array):p=tg.generateInitSegment(c);let f=c[s(461)]+"/"+d;return u&&u[s(266)]>0&&(f+=s(426)+u),ci(this[s(269)])&&(this[s(253)][s(174)][s(282)]({encTypeCode:i,channels:c[s(274)],sampleRate:c[s(452)],depth:h}),this[s(269)]=!0),this[s(301)]=f,this[s(434)]=o,this.isOpus=a,this[s(268)](),this.appendAudioBuffer(p[s(328)]),!0}[sg(390)](){const t=sg,{events:{proxy:e}}=this[t(253)];if(null===this[t(371)]&&null!==this[t(350)]&&this[t(211)]&&this[t(447)]){try{this[t(371)]=this[t(350)][t(415)](this[t(447)]),this[t(253)][t(310)](this[t(303)],t(428),this[t(447)])}catch(e){return this.player.debugError(this[t(303)],t(227),e.code,e),this.player[t(267)](U.mseAddSourceBufferError,t(363)+e.code+t(470)+e.message),void(this[t(405)]=!0)}if(this[t(371)]){const s=e(this[t(371)],"error",(e=>{const s=t;this[s(554)]=!0,this[s(253)].debugError(this.TAG_NAME,"mseSourceBufferError this.sourceBuffer",e),this[s(253)][s(267)](U[s(431)],"mediaSource video sourceBuffer error")})),i=e(this[t(371)],"updateend",(()=>{const e=t;this[e(213)]()?this._doRemoveRanges():this[e(248)]()?this[e(525)]():this[e(410)]&&(this.player.debugLog(this.TAG_NAME,e(429)),this[e(276)]())}));this[t(388)][t(531)](s,i)}}else this.player[t(310)](this[t(303)],t(437)+this[t(211)]+t(239)+(null===this[t(264)]))}[sg(268)](){const t=sg,{events:{proxy:e}}=this.player;if(null===this[t(473)]&&null!==this[t(350)]&&this.isStateOpen&&this[t(301)]){try{this[t(473)]=this[t(350)][t(415)](this[t(301)]),this[t(246)](),this[t(253)][t(310)](this[t(303)],t(497),this[t(301)])}catch(e){return this[t(253)][t(197)](this[t(303)],t(475),e.code,e),this[t(253)][t(267)](U[t(414)],"code is "+e[t(440)]+t(470)+e[t(517)]),void(this.mediaSourceAddSourceBufferError=!0)}if(this.audioSourceBuffer){const s=e(this.audioSourceBuffer,t(485),(e=>{const s=t;this[s(554)]=!0,this[s(253)][s(197)](this.TAG_NAME,s(417),e),this.player[s(267)](U[s(431)],s(474))})),i=e(this[t(473)],t(168),(()=>{const e=t;this._hasPendingRemoveRanges()?this[e(296)]():this[e(248)]()?this[e(525)]():this[e(410)]&&(this[e(253)][e(310)](this.TAG_NAME,e(395)),this[e(276)]())}));this.eventListenList[t(531)](s,i),null===this[t(455)]&&(this.audioSourceNoDataCheckTimeout=setTimeout((()=>{this[t(281)](),this.player.emit(U.mediaSourceAudioNoDataTimeout)}),1e3))}}else this[t(253)][t(310)](this.TAG_NAME,t(302)+this.isStateOpen+t(356)+this.audioMimeType)}[sg(279)](t,e,s,i,r){const n=sg,o=this.player;let a=t[n(449)](5),h=a.byteLength;if(0===h)return void o[n(183)](this[n(303)],n(338));let c=(new Date).getTime(),l=!1;!this[n(364)]&&(this[n(364)]=c,l=!0);const d=c-this[n(364)];this[n(545)]=d,d>1e3&&!l&&this[n(253)][n(546)]()&&o[n(310)](this[n(303)],n(406)+c+n(446)+this[n(364)]+n(419)+d+n(237));const u=this[n(349)];if(this[n(492)].id&&e>=this.cacheTrack[n(528)]){let t=8+this[n(492)].size,s=new Uint8Array(t);s[0]=t>>>24&255,s[1]=t>>>16&255,s[2]=t>>>8&255,s[3]=255&t,s[n(252)](tg.types[n(416)],4),s.set(this.cacheTrack.data,8),this.cacheTrack[n(469)]=e-this[n(492)].dts,this[n(492)][n(469)]>1e3&&this[n(253)][n(183)](this.TAG_NAME,"cacheTrack duration is "+this[n(492)][n(469)]+n(237));let i=tg[n(324)](this[n(492)],this[n(492)][n(528)]);this[n(492)]={};let a=new Uint8Array(i[n(188)]+s.byteLength);a[n(252)](i,0),a[n(252)](s,i[n(188)]),this[n(176)](a[n(328)]),o[n(341)](M[n(178)],r),o[n(546)]()?o[n(333)]()?o[n(184)]({dfps:!0,mseTs:e}):o[n(184)]({fps:!0,dfps:!0,ts:r,mseTs:e}):o[n(242)]()?o[n(513)][n(184)]({ts:r}):o[n(392)]()&&o[n(530)][n(184)]({ts:r}),!o[n(277)][n(462)]&&(o[n(277)][n(462)]=je(),o.handlePlayToRenderTimes())}else o.debugLog(this.TAG_NAME,n(514)+e+n(355)+r+n(550)+(this[n(492)]&&this[n(492)][n(528)])),this[n(492)]={};!this[n(492)]&&(this[n(492)]={}),this[n(492)].id=Ct[n(552)],this[n(492)][n(432)]=++this.sequenceNumber,this[n(492)][n(391)]=h,this[n(492)][n(528)]=e,this[n(492)][n(445)]=i,this[n(492)][n(218)]=s,this[n(492)].data=a,this[n(492)][n(306)]={isLeading:0,dependsOn:s?2:1,isDependedOn:s?1:0,hasRedundancy:0,isNonSync:s?0:1},o[n(284)].mseUseCanvasRender&&ci(this[n(520)])&&ci(o.isUseHls265())&&o[n(552)].render({$video:u,ts:e}),this[n(364)]=(new Date).getTime()}_stopCanvasRender(){const t=sg;this[t(275)]&&(clearInterval(this[t(275)]),this[t(275)]=null)}[sg(377)](t,e,s){const i=sg,r=this[i(253)];let n=this[i(434)]?t[i(449)](2):t.slice(1),o=n[i(188)];if(this.cacheAudioTrack.id&&e>=this[i(327)][i(528)]){let t=8+this.cacheAudioTrack[i(391)],s=new Uint8Array(t);s[0]=t>>>24&255,s[1]=t>>>16&255,s[2]=t>>>8&255,s[3]=255&t,s.set(tg[i(166)][i(416)],4),s[i(252)](this[i(327)][i(321)],8),this[i(327)][i(469)]=e-this[i(327)].dts,this[i(327)].duration>1e3&&this.player[i(183)](this[i(303)],"cacheTrack duration is "+this[i(492)].duration+" ms");let r=tg[i(324)](this[i(327)],this.cacheAudioTrack[i(528)]);this[i(327)]={};let n=new Uint8Array(r[i(188)]+s[i(188)]);n.set(r,0),n.set(s,r[i(188)]),this[i(196)](n[i(328)])}else r[i(310)](this[i(303)],i(346)+e+i(526)+(this.cacheAudioTrack&&this[i(327)][i(528)])),this.cacheAudioTrack={};!this[i(327)]&&(this.cacheAudioTrack={}),this[i(327)].id=Ct[i(174)],this[i(327)][i(432)]=++this[i(368)],this[i(327)][i(391)]=o,this[i(327)][i(528)]=e,this[i(327)].cts=0,this.cacheAudioTrack.data=n,this[i(327)][i(306)]={isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}[sg(176)](t){const e=sg;this[e(253)][e(362)]()?this.player[e(183)](this[e(303)],e(369)):(this.player,this[e(405)]?this.player[e(183)](this[e(303)],e(167)):this[e(438)]?this[e(253)].debugWarn(this.TAG_NAME,"appendBuffer() this.mediaSourceAppendBufferFull is true"):this.mediaSourceAppendBufferError?this[e(253)][e(183)](this[e(303)],e(289)):this[e(554)]?this.player[e(183)](this[e(303)],e(504)):(this[e(186)].push(t),this[e(371)]&&(this[e(253)][e(546)]()&&this[e(298)](),this[e(253)].isPlayback()&&(this[e(516)](),this._checkVideoPlayCurrentTime()),this[e(253)][e(392)](),hi(this.player[e(225)]())&&this.player[e(284)][e(351)]&&this[e(422)]()&&this[e(549)](),ci(this[e(245)]())&&this[e(211)]&&ci(this[e(213)]()))?this._doAppendSegments():this[e(285)]?(this[e(554)]=!0,this[e(253)][e(267)](U.mseSourceBufferError,e(542))):this.isStateEnded&&(this[e(554)]=!0,this[e(253)].emitError(U[e(431)],"mediaSource is end"))))}appendAudioBuffer(t){const e=sg;this[e(253)].isDestroyedOrClosed()?this[e(253)].debugWarn(this[e(303)],"appendAudioBuffer() player is destroyed"):(this[e(253)],this[e(405)]?this[e(253)][e(183)](this.TAG_NAME,e(464)):this[e(438)]?this[e(253)].debugWarn(this[e(303)],e(283)):this[e(385)]?this.player[e(183)](this.TAG_NAME,e(515)):this[e(554)]?this[e(253)].debugWarn(this[e(303)],e(314)):(this[e(558)].push(t),this.audioSourceBuffer&&(this[e(253)][e(546)]()&&this[e(298)](),this[e(253)].isPlayback()&&(this[e(516)](),this._checkVideoPlayCurrentTime()),this[e(253)][e(392)](),hi(this.player[e(225)]())&&this[e(253)][e(284)].mseAutoCleanupSourceBuffer&&this[e(422)]()&&this[e(549)](),ci(this[e(207)]())&&this[e(211)]&&ci(this[e(213)]()))?this._doAppendSegments():this[e(285)]?(this[e(554)]=!0,this[e(253)][e(267)](U[e(431)],e(542))):this[e(466)]&&(this[e(554)]=!0,this[e(253)][e(267)](U[e(431)],"mediaSource is end"))))}[sg(245)](){const t=sg;return this.sourceBuffer&&this[t(371)].updating}[sg(207)](){const t=sg;return this[t(473)]&&this[t(473)].updating}[sg(342)](){const t=sg;this[t(270)](),this[t(320)](),this[t(276)]()}checkSourceBufferDelay(){const t=sg,e=this[t(349)];let s=0,i=0;return e.buffered[t(266)]>0&&(i=e[t(534)][t(336)](e[t(534)][t(266)]-1),s=i-e[t(189)]),s<0&&(this[t(253)][t(183)](this[t(303)],t(467)+s+t(249)+i+t(345)+e[t(189)]+t(404)+e.currentTime+" to "+i),e.currentTime=i,e.paused&&(this.player.debugWarn(this[t(303)],t(443)),this[t(253)][t(488)]=!0),s=0),s}[sg(212)](){const t=sg,e=this[t(349)];let s=0;return e[t(534)][t(266)]>0&&(s=e[t(189)]-e[t(534)].start(0)),s}[sg(413)](){const t=sg,e=this[t(349)];let s=0;return e[t(534)][t(266)]>0&&(s=e.buffered[t(336)](e[t(534)].length-1)-e.currentTime),s}[sg(551)](){return this[sg(545)]}[sg(454)](t,e){const s=sg,i=js();if(this.player.debugLog(this[s(303)],"removeBuffer() start is "+t+s(219)+e+" and _isMacOsFirefox is "+i),this[s(211)]&&ci(i)){if(ci(this[s(245)]()))try{this[s(371)][s(496)](t,e)}catch(t){this[s(253)][s(183)](this[s(303)],"removeBuffer() sourceBuffer error",t)}if(ci(this.getAudioSourceBufferUpdating()))try{this[s(473)][s(496)](t,e)}catch(t){this[s(253)][s(183)](this[s(303)],s(359),t)}}}[sg(477)](t,e){const s=sg;this[s(253)][s(310)](this[s(303)],s(361)+t+s(219)+e),this.sourceBuffer&&this[s(425)][s(531)]({start:t,end:e}),this[s(473)]&&this.pendingAudioRemoveRanges[s(531)]({start:t,end:e}),this[s(296)]()}[sg(453)](){const t=sg;if(this[t(371)]){const e=this[t(371)].buffered;for(let s=0;s<e[t(266)];s++){let i=e.start(s),r=e[t(336)](s);this.pendingRemoveRanges[t(531)]({start:i,end:r})}ci(this[t(245)]())&&this[t(296)]()}if(this.audioSourceBuffer){const e=this.audioSourceBuffer[t(534)];for(let s=0;s<e[t(266)];s++){let i=e[t(344)](s),r=e.end(s);this[t(394)][t(531)]({start:i,end:r})}ci(this.getAudioSourceBufferUpdating())&&this._doRemoveRanges()}}[sg(276)](){const t=sg;if(this[t(211)]&&this.$videoElement&&this[t(349)][t(471)]>=1)if(this[t(245)]()||this.getAudioSourceBufferUpdating())this[t(410)]=!0;else{this[t(410)]=!1;try{this[t(253)][t(310)](this.TAG_NAME,t(420)),this[t(350)][t(276)]()}catch(e){this[t(253)][t(183)](this.TAG_NAME,"endOfStream() error",e)}}}abortSourceBuffer(){const t=sg;if(this[t(211)]){if(this[t(371)]){try{this[t(253)][t(310)](this[t(303)],t(538)),this[t(371)].abort()}catch(t){}ci(this.getSourceBufferUpdating())&&this[t(296)]()}if(this[t(473)]){try{this[t(253)][t(310)](this[t(303)],t(381)),this.audioSourceBuffer.abort()}catch(t){}ci(this[t(207)]())&&this._doRemoveRanges()}}this[t(371)]=null,this[t(473)]=null}[sg(320)](){const t=sg;if(!this[t(285)]&&this.mediaSource){if(this[t(371)])try{this.player[t(310)](this.TAG_NAME,t(199)),this.mediaSource.removeSourceBuffer(this[t(371)])}catch(e){this[t(253)][t(197)](this[t(303)],t(194),e)}if(this[t(473)])try{this[t(253)][t(310)](this[t(303)],t(295)),this[t(350)][t(320)](this[t(473)])}catch(e){this[t(253)].debugError(this[t(303)],t(258),e)}}}[sg(248)](){const t=sg;return this[t(186)].length>0||this[t(558)][t(266)]>0}[sg(201)](){const t=sg;return this[t(186)][t(266)]}[sg(298)](){const t=sg;if(!this[t(349)])return;const e=this.$videoElement;this[t(253)][t(284)][t(559)],this.player[t(284)][t(182)];const s=e[t(534)];s[t(266)]&&s[t(344)](0);const i=s[t(266)]?s[t(336)](s[t(266)]-1):0;let r=e[t(189)];const n=i-r,o=this[t(490)]();if(this.player[t(184)]({mseVideoBufferDelayTime:n}),0===this[t(349)][t(471)])return;if(n>o){const s=this[t(435)](1);this[t(253)].debugLog(this.TAG_NAME,t(506)+i+t(185)+r+t(291)+o+t(500)+n+t(236)+s),e.currentTime=s,r=e[t(189)]}else if(n<0&&0===i)return this.player[t(183)](this[t(303)],t(216)+i+t(450)+r+t(418)+n+" < 0 and check video is paused : "+e[t(494)]+" "),void this[t(253)][t(341)](U[t(205)],t(444));const a=this[t(502)](i-r);e[t(335)]!==a&&(this.player[t(310)](this[t(303)],t(506)+i+t(294)+r+t(448)+(i-r)+t(223)+a+" "),e[t(335)]=a)}[sg(516)](){const t=sg,e=this[t(541)]();this[t(253)].updateStats({mseVideoBufferDelayTime:e})}[sg(192)](){const t=sg,e=this[t(212)]();if(e<0){const s=this.getVideoBufferStartTime();this.player.debugWarn(this[t(303)],t(231)+e+" < 0 and set currentTime "+this[t(349)].currentTime+" to "+s),this[t(349)][t(189)]=s}}[sg(451)](){const t=sg;if(!this[t(349)])return;const e=this[t(349)][t(189)],s=this[t(316)]();if(0===s[t(266)])return void this.player[t(183)](this.TAG_NAME,"updateVideoCurrentTimeByBufferStart bufferRangeList is empty and return");if(1===s[t(266)]){const i=s[0][t(336)],r=Math.abs(i-e);if(r<1)return void this[t(253)][t(310)](this[t(303)],t(307)+e+t(481)+i+" and diff is "+r+" and return")}let i=null;for(let r=0;r<s[t(266)];r++){const n=s[r];if(e<n[t(344)]){i=n.start;break}}null===i&&(this.player[t(183)](this.TAG_NAME,t(307)+e+t(254)),i=s[s[t(266)]-1][t(344)]),this.player[t(310)](this[t(303)],"updateVideoCurrentTimeByBufferStart bufferRangeList is\n "+JSON[t(493)](s)+t(386)+e+" and new time is "+i),this[t(349)].currentTime=i}[sg(525)](){const t=sg;if(this.isStateClosed||this[t(466)])this[t(253)][t(310)](this[t(303)],"_doAppendSegments() mediaSource is closed or ended and return");else if(null!==this.sourceBuffer){if(this[t(222)]()&&null===this[t(473)])return this[t(253)].debugLog(this[t(303)],t(521)),void(null===this.audioSourceBufferCheckTimeout&&(this[t(172)]=setTimeout((()=>{const e=t;this._clearAudioSourceBufferCheckTimeout(),this[e(253)].emit(U.mediaSourceAudioInitTimeout)}),1e3)));if(ci(this.getSourceBufferUpdating())&&this[t(186)][t(266)]>0){const e=this.pendingSegments[t(370)]();try{this[t(371)][t(176)](e)}catch(e){this[t(253)][t(197)](this[t(303)],t(224),e[t(440)],e),22===e[t(440)]?(this[t(342)](),this.mediaSourceAppendBufferFull=!0,this.player.emitError(U[t(169)],"code is "+e[t(440)]+t(470)+e.message)):11===e.code?(this[t(342)](),this[t(385)]=!0,this[t(253)][t(267)](U[t(385)],"code is "+e.code+t(470)+e.message)):(this[t(342)](),this[t(554)]=!0,this.player[t(267)](M.mseSourceBufferError,t(363)+e[t(440)]+" and message is "+e[t(517)]))}}if(ci(this[t(207)]())&&this[t(558)].length>0){const e=this[t(558)][t(370)]();try{this[t(473)][t(176)](e)}catch(e){this.player.debugError(this[t(303)],"this.audioSourceBuffer.appendBuffer()",e[t(440)],e),22===e[t(440)]?(this[t(342)](),this.mediaSourceAppendBufferFull=!0,this[t(253)][t(267)](U[t(169)],t(363)+e.code+" and message is "+e[t(517)])):11===e[t(440)]?(this[t(342)](),this[t(385)]=!0,this[t(253)][t(267)](U[t(385)],t(363)+e.code+t(470)+e[t(517)])):(this[t(342)](),this[t(554)]=!0,this[t(253)].emitError(M[t(431)],"code is "+e[t(440)]+t(470)+e[t(517)]))}}}else this[t(253)][t(310)](this.TAG_NAME,t(329))}[sg(549)](){const t=sg;if(!this[t(349)])return;const e=this[t(349)].currentTime;if(this[t(371)]){const s=this[t(371)][t(534)];let i=!1;for(let r=0;r<s[t(266)];r++){let n=s[t(344)](r),o=s[t(336)](r);if(n<=e&&e<o+3){if(e-n>=this[t(253)][t(284)].mseAutoCleanupMaxBackwardDuration){i=!0;let s=e-this[t(253)][t(284)][t(482)];this[t(425)][t(531)]({start:n,end:s})}}else o<e&&(i=!0,this[t(425)][t(531)]({start:n,end:o}))}i&&ci(this[t(245)]())&&this[t(296)]()}if(this[t(473)]){const s=this[t(473)].buffered;let i=!1;for(let r=0;r<s.length;r++){let n=s.start(r),o=s[t(336)](r);if(n<=e&&e<o+3){if(e-n>=this[t(253)][t(284)].mseAutoCleanupMaxBackwardDuration){i=!0;let s=e-this.player._opt[t(482)];this.pendingAudioRemoveRanges[t(531)]({start:n,end:s})}}else o<e&&(i=!0,this[t(394)][t(531)]({start:n,end:o}))}i&&ci(this.getAudioSourceBufferUpdating())&&this[t(296)]()}}[sg(213)](){const t=sg;return this[t(425)][t(266)]>0||this[t(394)][t(266)]>0}[sg(296)](){const t=sg;if(this[t(371)]&&ci(this[t(245)]())){let e=this[t(425)];for(;e[t(266)]&&ci(this[t(245)]());){let s=e[t(370)]();try{this[t(371)][t(496)](s[t(344)],s[t(336)])}catch(e){this.player[t(183)](this.TAG_NAME,t(343),e)}}}if(this.audioSourceBuffer&&ci(this[t(207)]())){let e=this[t(394)];for(;e[t(266)]&&ci(this[t(207)]());){let s=e[t(370)]();try{this[t(473)][t(496)](s[t(344)],s[t(336)])}catch(e){this[t(253)].debugWarn(this[t(303)],"_doRemoveRanges() audioSourceBuffer error",e)}}}}[sg(402)](){const t=sg;let e=0;const s=this[t(349)];return s&&(e=s[t(335)]),e}[sg(502)](t){const e=sg,s=this[e(349)];let i=this.player[e(284)].videoBufferDelay+this[e(253)]._opt[e(559)];const r=Math[e(352)](i,1e3),n=r/2;return t*=1e3,1===s[e(335)]?t>r?1.2:1:t<=n?1:s[e(335)]}[sg(422)](){const t=sg;if(ci(this[t(253)]._opt[t(351)])||!this[t(349)])return!1;const e=this[t(349)],s=e[t(534)],i=e[t(189)];return s[t(266)]>=1&&i-s[t(344)](0)>=this[t(253)][t(284)].mseAutoCleanupMaxBackwardDuration}getVideoCurrentTime(){const t=sg;let e=0;return this[t(349)]&&(e=this[t(349)][t(189)]),e}getVideoBufferLastTime(){const t=sg,e=this[t(349)];let s=0;if(e){const i=e.buffered;i.length&&i[t(344)](0);s=i[t(266)]?i[t(336)](i.length-1):0}return s}[sg(187)](){const t=sg,e=this[t(349)];let s=null;if(e){const i=e.buffered,r=i[t(266)]?i.start(0):0,n=i[t(266)]?i[t(336)](i.length-1):0;s={start:r,end:n,diff:n-r}}return s}getVideoBufferStartTime(){const t=sg,e=this[t(349)];let s=0;if(e){const i=e[t(534)];s=i[t(266)]?i[t(344)](0):0}return s}[sg(512)](){const t=sg,e=this[t(349)];let s=0;if(e){const i=e[t(534)];s=i[t(266)]?i[t(336)](i.length-1):0}return s}[sg(316)](){const t=sg,e=this[t(349)];let s=[];if(e){const i=e.buffered;for(let e=0;e<i.length;e++){let r=i[t(344)](e),n=i[t(336)](e);s.push({start:r,end:n})}}return s}[sg(541)](){const t=sg,e=this[t(349)];const s=this[t(384)]()-e.currentTime;return s>0?s:0}[sg(246)](){const t=sg;this[t(172)]&&(clearTimeout(this[t(172)]),this[t(172)]=null)}[sg(281)](){const t=sg;this[t(455)]&&(clearTimeout(this[t(455)]),this[t(455)]=null)}[sg(331)](){const t=sg;return{video:this[t(447)],audio:this[t(301)]}}[sg(490)](){const t=sg;let e=(this[t(253)][t(284)][t(559)]+this[t(253)][t(284)][t(182)])/1e3;return Math.max(5,e+3)}isVideoPlaying(){const t=sg;return this[t(349)]&&ci(this[t(349)].paused)&&ci(this.$videoElement[t(436)])&&0!==this[t(349)][t(335)]&&0!==this[t(349)][t(471)]}[sg(360)](){const t=sg;let e=!1;if(this[t(349)]){const s=this.$videoElement.currentTime,i=this[t(512)](),r=Math[t(561)](i-s);e=r<1,e&&this[t(253)][t(310)](this.TAG_NAME,t(297)+s+" and end is "+i+t(326)+r)}return e}checkVideoPlayCurrentTime(){const t=sg,e=this.checkSourceBufferStore();if(e<0){const s=this[t(441)]();this[t(253)][t(265)][t(305)](this[t(303)],t(231)+e+" < 0 and set currentTime "+this.$videoElement[t(189)]+t(487)+s),this[t(349)][t(189)]=s}}[sg(376)](t){const e=sg;this.mediaSource&&(this.mediaSource[e(469)]=t)}[sg(366)](t,e){const s=sg;if(this[s(350)]){this[s(253)][s(310)](this[s(303)],"setLiveSeekableRange start is "+t+" and end is "+e);const i=this[s(350)];if(t<0||e<t||null==i||!i.setLiveSeekableRange||i[s(471)]!==s(348))return;i[s(366)](t,e)}}getLastBufferDelayEndTime(){const t=sg;let e=arguments[t(266)]>0&&void 0!==arguments[0]?arguments[0]:1,s=this[t(349)].currentTime;const i=this[t(316)]();if(0===i.length)return s;const r=i[i[t(266)]-1];return s=r[t(336)]-r[t(344)]<1?r[t(344)]:r[t(336)]-(e||1),s}}const og=ag;function ag(t,e){const s=lg();return(ag=function(t,e){return s[t-=401]})(t,e)}!function(t,e){const s=ag,i=t();for(;;)try{if(510665===parseInt(s(423))/1+-parseInt(s(462))/2+parseInt(s(403))/3+-parseInt(s(458))/4*(parseInt(s(467))/5)+parseInt(s(468))/6+-parseInt(s(435))/7+parseInt(s(416))/8*(-parseInt(s(452))/9))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(lg);const hg=og(413),cg=()=>og(457)in navigator&&-1===window[og(412)][og(442)][og(433)](og(418))&&ci(es());function lg(){const t=["637107MAQlyg","setAttribute","NoSleep","Failed to remove noSleepVideo element.","noSleepVideo","fullscreenchange","mp4","destroy","removeEventListener","handleNoSleepVideoTimeUpdate","indexOf","addEventListener","2490474vxckuO","message","visibilitychange","noSleepVideo ","title","video/","then","userAgent","querySelector","request","src","visible","assign","_wakeLock","style","body","name","882UwevRN","catch","debugWarn","Native Wake Lock API not supported. so use video element.","video","wakeLock","18876wOCmLq","disable","noSleepVideo Wake Lock active.","No Sleep","1102446PMCsUT","createElement","parentNode","currentTime","type","165mIFwVc","3276954WWnTIZ","source","debugLog","handleVisibilityChange","enabled","1367079epnjrw","Wake Lock active.","append","player","-100%","timeupdate","release","screen","removeChild","navigator","data:video/mp4;base64,AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAAAIZnJlZQAACORtZGF03gIATGF2YzU4LjM1LjEwMAACMEAOAAACcQYF//9t3EXpvebZSLeWLNgg2SPu73gyNjQgLSBjb3JlIDE2MSByMzAyNyA0MTIxMjc3IC0gSC4yNjQvTVBFRy00IEFWQyBjb2RlYyAtIENvcHlsZWZ0IDIwMDMtMjAyMCAtIGh0dHA6Ly93d3cudmlkZW9sYW4ub3JnL3gyNjQuaHRtbCAtIG9wdGlvbnM6IGNhYmFjPTAgcmVmPTMgZGVibG9jaz0xOjA6MCBhbmFseXNlPTB4MToweDExMSBtZT1oZXggc3VibWU9NyBwc3k9MSBwc3lfcmQ9MS4wMDowLjAwIG1peGVkX3JlZj0xIG1lX3JhbmdlPTE2IGNocm9tYV9tZT0xIHRyZWxsaXM9MSA4eDhkY3Q9MCBjcW09MCBkZWFkem9uZT0yMSwxMSBmYXN0X3Bza2lwPTEgY2hyb21hX3FwX29mZnNldD0tMiB0aHJlYWRzPTcgbG9va2FoZWFkX3RocmVhZHM9MSBzbGljZWRfdGhyZWFkcz0wIG5yPTAgZGVjaW1hdGU9MSBpbnRlcmxhY2VkPTAgYmx1cmF5X2NvbXBhdD0wIGNvbnN0cmFpbmVkX2ludHJhPTAgYmZyYW1lcz0wIHdlaWdodHA9MCBrZXlpbnQ9MjUwIGtleWludF9taW49MTAgc2NlbmVjdXQ9NDAgaW50cmFfcmVmcmVzaD0wIHJjX2xvb2thaGVhZD00MCByYz1jcmYgbWJ0cmVlPTEgY3JmPTIzLjAgcWNvbXA9MC42MCBxcG1pbj0wIHFwbWF4PTY5IHFwc3RlcD00IGlwX3JhdGlvPTEuNDAgYXE9MToxLjAwAIAAAADvZYiED/JigADD7JycnJycnJycnJycnJycnJycnJ11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111114BGCAHARggBwEYIAcBGCAHARggBwAAAAdBmjgf4BLYARggBwEYIAcBGCAHARggBwAAAAdBmlQH+AS2ARggBwEYIAcBGCAHARggBwAAAAdBmmA/wCWwARggBwEYIAcBGCAHARggBwEYIAcAAAAHQZqAP8AlsAEYIAcBGCAHARggBwEYIAcAAAAHQZqgP8AlsAEYIAcBGCAHARggBwEYIAcAAAAHQZrAP8AlsAEYIAcBGCAHARggBwEYIAcBGCAHAAAAB0Ga4D/AJbABGCAHARggBwEYIAcBGCAHAAAAB0GbAD/AJbABGCAHARggBwEYIAcBGCAHAAAAB0GbID/AJbABGCAHARggBwEYIAcBGCAHARggBwAAAAdBm0A/wCWwARggBwEYIAcBGCAHAAAAB0GbYD/AJbABGCAHARggBwEYIAcAAAAHQZuAP8AlsAEYIAcBGCAHARggBwEYIAcBGCAHAAAAB0GboD/AJbABGCAHARggBwEYIAcBGCAHAAAAB0GbwD/AJbABGCAHARggBwEYIAcBGCAHAAAAB0Gb4D/AJbABGCAHARggBwEYIAcBGCAHARggBwAAAAdBmgA/wCWwARggBwEYIAcBGCAHARggBwAAAAdBmiA/wCWwARggBwEYIAcBGCAHARggBwAAAAdBmkA/wCWwARggBwEYIAcBGCAHARggBwEYIAcAAAAHQZpgP8AlsAEYIAcBGCAHARggBwEYIAcAAAAHQZqAP8AlsAEYIAcBGCAHARggBwEYIAcAAAAHQZqgP8AlsAEYIAcBGCAHARggBwAAAAdBmsA/wCWwARggBwEYIAcBGCAHARggBwAAAAdBmuA/wCWwARggBwEYIAcBGCAHARggBwAAAAdBmwA/wCWwARggBwEYIAcBGCAHARggBwEYIAcAAAAHQZsgP8AlsAEYIAcBGCAHARggBwEYIAcAAAAHQZtAP8AlsAEYIAcBGCAHARggBwEYIAcAAAAHQZtgP8AlsAEYIAcBGCAHARggBwEYIAcBGCAHAAAAB0GbgD/AJbABGCAHARggBwEYIAcBGCAHAAAAB0GboD/AJbABGCAHARggBwEYIAcBGCAHAAAAB0GbwD/AJbABGCAHARggBwEYIAcBGCAHARggBwAAAAdBm+A/wCWwARggBwEYIAcBGCAHARggBwAAAAdBmgA/wCWwARggBwEYIAcAAAAHQZogP8AlsAEYIAcBGCAHARggBwEYIAcBGCAHAAAAB0GaQD/AJbABGCAHARggBwEYIAcBGCAHAAAAB0GaYD/AJbABGCAHARggBwEYIAcBGCAHAAAAB0GagD/AJbABGCAHARggBwEYIAcBGCAHARggBwAAAAdBmqA/wCWwARggBwEYIAcBGCAHARggBwAAAAdBmsA/wCWwARggBwEYIAcBGCAHARggBwAAAAdBmuA/wCWwARggBwEYIAcBGCAHARggBwEYIAcAAAAHQZsAP8AlsAEYIAcBGCAHARggBwEYIAcAAAAHQZsgP8AlsAEYIAcBGCAHARggBwEYIAcAAAAHQZtAP8AlsAEYIAcBGCAHARggBwEYIAcBGCAHAAAAB0GbYD/AJbABGCAHARggBwAAAAdBm4A/wCWwARggBwEYIAcBGCAHARggBwAAAAdBm6A/wCWwARggBwEYIAcBGCAHARggBwEYIAcAAAAHQZvAP8AlsAEYIAcBGCAHARggBwEYIAcAAAAHQZvgP8AlsAEYIAcBGCAHARggBwEYIAcAAAAHQZoAO8AlsAEYIAcBGCAHARggBwEYIAcBGCAHAAAAB0GaIDfAJbABGCAHARggBwEYIAcBGCAHAAAMxm1vb3YAAABsbXZoZAAAAAAAAAAAAAAAAAAAA+gAABOgAAEAAAEAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAPLdHJhawAAAFx0a2hkAAAAAwAAAAAAAAAAAAAAAQAAAAAAABOIAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAQAAAAAElVVUA8AAAAAAAJGVkdHMAAAAcZWxzdAAAAAAAAAABAAATiAAAAAAAAQAAAAADQ21kaWEAAAAgbWRoZAAAAAAAAAAAAAAAAAAAKAAAAMgAVcQAAAAAAC1oZGxyAAAAAAAAAAB2aWRlAAAAAAAAAAAAAAAAVmlkZW9IYW5kbGVyAAAAAu5taW5mAAAAFHZtaGQAAAABAAAAAAAAAAAAAAAkZGluZgAAABxkcmVmAAAAAAAAAAEAAAAMdXJsIAAAAAEAAAKuc3RibAAAAKpzdHNkAAAAAAAAAAEAAACaYXZjMQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAFAAPAASAAAAEgAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABj//wAAADRhdmNDAULAC//hABxnQsAL2QFB+/8ACwAMEAAAAwAQAAADAUDxQqSAAQAFaMuDyyAAAAAQcGFzcAAAAAsAAAAMAAAAGHN0dHMAAAAAAAAAAQAAADIAAAQAAAAAFHN0c3MAAAAAAAAAAQAAAAEAAAAcc3RzYwAAAAAAAAABAAAAAQAAAAEAAAABAAAA3HN0c3oAAAAAAAAAAAAAADIAAANoAAAACwAAAAsAAAALAAAACwAAAAsAAAALAAAACwAAAAsAAAALAAAACwAAAAsAAAALAAAACwAAAAsAAAALAAAACwAAAAsAAAALAAAACwAAAAsAAAALAAAACwAAAAsAAAALAAAACwAAAAsAAAALAAAACwAAAAsAAAALAAAACwAAAAsAAAALAAAACwAAAAsAAAALAAAACwAAAAsAAAALAAAACwAAAAsAAAALAAAACwAAAAsAAAALAAAACwAAAAsAAAALAAAACwAAANhzdGNvAAAAAAAAADIAAABFAAADwQAAA9wAAAP3AAAEFgAABDEAAARMAAAEawAABIYAAAShAAAEwAAABNcAAATuAAAFDQAABSgAAAVDAAAFYgAABX0AAAWYAAAFtwAABdIAAAXtAAAGBAAABh8AAAY6AAAGWQAABnQAAAaPAAAGrgAABskAAAbkAAAHAwAABx4AAAcxAAAHUAAAB2sAAAeGAAAHpQAAB8AAAAfbAAAH+gAACBUAAAgwAAAITwAACGIAAAh9AAAInAAACLcAAAjSAAAI8QAACCV0cmFrAAAAXHRraGQAAAADAAAAAAAAAAAAAAACAAAAAAAAE6AAAAAAAAAAAAAAAAEBAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAkZWR0cwAAABxlbHN0AAAAAAAAAAEAABOIAAAEAAABAAAAAAedbWRpYQAAACBtZGhkAAAAAAAAAAAAAAAAAACsRAADYVRVxAAAAAAALWhkbHIAAAAAAAAAAHNvdW4AAAAAAAAAAAAAAABTb3VuZEhhbmRsZXIAAAAHSG1pbmYAAAAQc21oZAAAAAAAAAAAAAAAJGRpbmYAAAAcZHJlZgAAAAAAAAABAAAADHVybCAAAAABAAAHDHN0YmwAAABqc3RzZAAAAAAAAAABAAAAWm1wNGEAAAAAAAAAAQAAAAAAAAAAAAIAEAAAAACsRAAAAAAANmVzZHMAAAAAA4CAgCUAAgAEgICAF0AVAAAAAAENiAAABVQFgICABRIIVuUABoCAgAECAAAAYHN0dHMAAAAAAAAACgAAAC8AAAQAAAAAAQAACtUAAAAsAAAEAAAAAAEAAArWAAAALAAABAAAAAABAAAK1QAAACwAAAQAAAAAAQAACtUAAAAaAAAEAAAAAAEAAAH/AAABzHN0c2MAAAAAAAAAJQAAAAEAAAABAAAAAQAAAAIAAAAFAAAAAQAAAAMAAAAEAAAAAQAAAAUAAAAFAAAAAQAAAAYAAAAEAAAAAQAAAAgAAAAFAAAAAQAAAAkAAAAEAAAAAQAAAAsAAAAFAAAAAQAAAAwAAAADAAAAAQAAAA4AAAAFAAAAAQAAAA8AAAAEAAAAAQAAABEAAAAFAAAAAQAAABIAAAAEAAAAAQAAABQAAAAFAAAAAQAAABUAAAAEAAAAAQAAABcAAAADAAAAAQAAABgAAAAEAAAAAQAAABoAAAAFAAAAAQAAABsAAAAEAAAAAQAAAB0AAAAFAAAAAQAAAB4AAAAEAAAAAQAAACAAAAAFAAAAAQAAACEAAAAEAAAAAQAAACIAAAACAAAAAQAAACMAAAAFAAAAAQAAACQAAAAEAAAAAQAAACYAAAAFAAAAAQAAACcAAAAEAAAAAQAAACkAAAAFAAAAAQAAACoAAAAEAAAAAQAAACwAAAAFAAAAAQAAAC0AAAACAAAAAQAAAC4AAAAEAAAAAQAAAC8AAAAFAAAAAQAAADAAAAAEAAAAAQAAADIAAAAFAAAAAQAAADMAAAAEAAAAAQAAA1xzdHN6AAAAAAAAAAAAAADSAAAAFQAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAA3HN0Y28AAAAAAAAAMwAAADAAAAOtAAADzAAAA+cAAAQCAAAEIQAABDwAAARXAAAEdgAABJEAAASsAAAEywAABOIAAAT5AAAFGAAABTMAAAVOAAAFbQAABYgAAAWjAAAFwgAABd0AAAX4AAAGDwAABioAAAZFAAAGZAAABn8AAAaaAAAGuQAABtQAAAbvAAAHDgAABykAAAc8AAAHWwAAB3YAAAeRAAAHsAAAB8sAAAfmAAAIBQAACCAAAAg7AAAIWgAACG0AAAiIAAAIpwAACMIAAAjdAAAI/AAAABpzZ3BkAQAAAHJvbGwAAAACAAAAAf//AAAAHHNiZ3AAAAAAcm9sbAAAAAEAAADSAAAAAQAAAGJ1ZHRhAAAAWm1ldGEAAAAAAAAAIWhkbHIAAAAAAAAAAG1kaXJhcHBsAAAAAAAAAAAAAAAALWlsc3QAAAAlqXRvbwAAAB1kYXRhAAAAAQAAAABMYXZmNTguMjAuMTAw","enable","_addSourceToVideo","5352SSmEUU","webm","Samsung","play","absolute","visibilityState","Wake Lock released."];return(lg=function(){return t})()}class dg{constructor(t){const e=og;this[e(406)]=t,this[e(402)]=!1,cg()?(this.player[e(470)](e(425),"Native Wake Lock API supported."),this[e(448)]=null,this[e(401)]=()=>{const t=e;null!==this[t(448)]&&document[t(421)]===t(446)&&this[t(414)]()},document[e(434)](e(437),this[e(401)]),document[e(434)](e(428),this.handleVisibilityChange)):(this[e(406)].debugLog(e(425),e(455)),this[e(427)]=document[e(463)](e(456)),this.noSleepVideo[e(424)](e(439),e(461)),this[e(427)][e(424)]("playsinline",""),this._addSourceToVideo(this[e(427)],e(417),"data:video/webm;base64,GkXfo59ChoEBQveBAULygQRC84EIQoKEd2VibUKHgQRChYECGFOAZwEAAAAAABLfEU2bdLpNu4tTq4QVSalmU6yBoU27i1OrhBZUrmtTrIHYTbuMU6uEElTDZ1OsggGXTbuMU6uEHFO7a1OsghLJ7AEAAAAAAABZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVSalmsirXsYMPQkBNgI1MYXZmNTguNDUuMTAwV0GNTGF2ZjU4LjQ1LjEwMESJiECzmgAAAAAAFlSua0C5rgEAAAAAAABO14EBc8WI9UhIq9EDJPCcgQAitZyDdW5khoVWX1ZQOIOBASPjg4QF9eEA4AEAAAAAAAAbsIIBQLqB8FSwggElVLqB8FWwiFW3gQFVuIECrgEAAAAAAABZ14ECc8WIUEWPA9J/iJ6cgQAitZyDdW5khoZBX09QVVNWqoNjLqBWu4QExLQAg4EC4ZGfgQG1iEDncAAAAAAAYmSBIGOik09wdXNIZWFkAQE4AYC7AAAAAAASVMNnQcJzcwEAAAAAAACXY8CAZ8gBAAAAAAAAFUWji01BSk9SX0JSQU5ERIeEaXNvbWfIAQAAAAAAABZFo41NSU5PUl9WRVJTSU9ORIeDNTEyZ8gBAAAAAAAAJ0WjkUNPTVBBVElCTEVfQlJBTkRTRIeQaXNvbWlzbzJhdmMxbXA0MWfIAQAAAAAAABpFo4dFTkNPREVSRIeNTGF2ZjU4LjQ1LjEwMHNzAQAAAAAAAIZjwItjxYj1SEir0QMk8GfIAQAAAAAAAB5Fo4xIQU5ETEVSX05BTUVEh4xWaWRlb0hhbmRsZXJnyAEAAAAAAAAhRaOHRU5DT0RFUkSHlExhdmM1OC45MS4xMDAgbGlidnB4Z8iiRaOIRFVSQVRJT05Eh5QwMDowMDowNS4wMDcwMDAwMDAAAHNzAQAAAAAAAIdjwItjxYhQRY8D0n+InmfIAQAAAAAAAB5Fo4xIQU5ETEVSX05BTUVEh4xTb3VuZEhhbmRsZXJnyAEAAAAAAAAiRaOHRU5DT0RFUkSHlUxhdmM1OC45MS4xMDAgbGlib3B1c2fIokWjiERVUkFUSU9ORIeUMDA6MDA6MDUuMDE4MDAwMDAwAAAfQ7Z1T2TngQCjh4IAAID4//6jQKSBAAeAMBIAnQEqQAHwAABHCIWFiIWEiAICAAYWBPcGgWSfa9ubJzh7Jzh7Jzh7Jzh7Jzh7Jzh7Jzh7Jzh7Jzh7Jzh7Jzh7Jzh7Jzh7Jzh7Jzh7Jzh7Jzh7Jzh7Jzh7Jzh7Jzh7Jzh7Jzh7Jzh7Jzh7Jzh7Jzh7Jzh7Jzh7Jzh7Jzh7Jzh7Jzh7Jzh7Jzh7Jzh7Jzh7Jzh7Jzh7Jzh69AD+/6tQgKOHggAVgPj//qOHggApgPj//qOHggA9gPj//qOHggBRgPj//qOHggBlgPj//qOegQBrANECAAUQrAAYABhYL/QACIAEM1+tck+ccwAAo4eCAHmA+P/+o4eCAI2A+P/+o4eCAKGA+P/+o4eCALWA+P/+o4eCAMmA+P/+o56BAM8A0QIABRCsABgAGFgv9AAIgAQzX61yT5xzAACjh4IA3YD4//6jh4IA8YD4//6jh4IBBYD4//6jh4IBGYD4//6jh4IBLYD4//6jnoEBMwDRAgAFEKwAGAAYWC/0AAiABDNfrXJPnHMAAKOHggFBgPj//qOHggFVgPj//qOHggFpgPj//qOHggF9gPj//qOHggGRgPj//qOegQGXANECAAUQrAAYABhYL/QACIAEM1+tck+ccwAAo4eCAaWA+P/+o4eCAbmA+P/+o4eCAc2A+P/+o4eCAeGA+P/+o4eCAfWA+P/+o56BAfsA0QIABRCsABgAGFgv9AAIgAQzX61yT5xzAACjh4ICCYD4//6jh4ICHYD4//6jh4ICMYD4//6jh4ICRYD4//6jh4ICWYD4//6jnoECXwDRAgAFEKwAGAAYWC/0AAiABDNfrXJPnHMAAKOHggJtgPj//qOHggKBgPj//qOHggKVgPj//qOHggKpgPj//qOHggK9gPj//qOegQLDANECAAUQEBRgAGFgv9AAIgAQzX61yT5xzAAAo4eCAtGA+P/+o4eCAuWA+P/+o4eCAvmA+P/+o4eCAw2A+P/+o4eCAyGA+P/+o56BAycA0QIABRCsABgAGFgv9AAIgAQzX61yT5xzAACjh4IDNYD4//6jh4IDSYD4//6jh4IDXYD4//6jh4IDcYD4//6jh4IDhYD4//6jnoEDiwDRAgAFEKwAGAAYWC/0AAiABDNfrXJPnHMAAKOHggOZgPj//qOHggOtgPj//qOHggPBgPj//qOHggPVgPj//qOHggPpgPj//qOegQPvANECAAUQrAAYABhYL/QACIAEM1+tck+ccwAAo4eCA/2A+P/+o4eCBBGA+P/+o4eCBCWA+P/+o4eCBDmA+P/+o4eCBE2A+P/+o56BBFMA0QIABRCsABgAGFgv9AAIgAQzX61yT5xzAACjh4IEiID4//6jh4IEnID4//6jh4IEsID4//6jnoEEtwDRAgAFEKwAGAAYWC/0AAiABDNfrXJPnHMAAKOHggTEgPj//qOHggTYgPj//qOHggTsgPj//qOHggUAgPj//qOHggUUgPj//qOegQUbANECAAUQrAAYABhYL/QACIAEM1+tck+ccwAAo4eCBSiA+P/+o4eCBTyA+P/+o4eCBVCA+P/+o4eCBWSA+P/+o4eCBXiA+P/+o56BBX8A0QIABRCsABgAGFgv9AAIgAQzX61yT5xzAACjh4IFjID4//6jh4IFoID4//6jh4IFtID4//6jh4IFyID4//6jh4IF3ID4//6jnoEF4wDRAgAFEKwAGAAYWC/0AAiABDNfrXJPnHMAAKOHggXwgPj//qOHggYEgPj//qOHggYYgPj//qOHggYsgPj//qOHggZAgPj//qOegQZHANECAAUQrAAYABhYL/QACIAEM1+tck+ccwAAo4eCBlSA+P/+o4eCBmiA+P/+o4eCBnyA+P/+o4eCBpCA+P/+o4eCBqSA+P/+o56BBqsA0QIABRCsABgAGFgv9AAIgAQzX61yT5xzAACjh4IGuID4//6jh4IGzID4//6jh4IG4ID4//6jh4IG9ID4//6jh4IHCID4//6jnoEHDwDRAgAFEBAUYABhYL/QACIAEM1+tck+ccwAAKOHggccgPj//qOHggcwgPj//qOHggdEgPj//qOHggdYgPj//qOHggdsgPj//qOegQdzANECAAUQrAAYABhYL/QACIAEM1+tck+ccwAAo4eCB4CA+P/+o4eCB5SA+P/+o4eCB6iA+P/+o4eCB7yA+P/+o4eCB9CA+P/+o56BB9cA0QIABRCsABgAGFgv9AAIgAQzX61yT5xzAACjh4IH5ID4//6jh4IH+ID4//6jh4IIDID4//6jh4IIIID4//6jh4IINID4//6jnoEIOwDRAgAFEKwAGAAYWC/0AAiABDNfrXJPnHMAAKOHgghIgPj//qOHgghcgPj//qOHgghwgPj//qOHggiEgPj//qOegQifANECAAUQrAAYABhYL/QACIAEM1+tck+ccwAAo4eCCMCA+P/+o4eCCNSA+P/+o4eCCOiA+P/+o4eCCPyA+P/+o56BCQMA0QIABRCsABgAGFgv9AAIgAQzX61yT5xzAACjh4IJEID4//6jh4IJJID4//6jh4IJOID4//6jh4IJTID4//6jh4IJYID4//6jnoEJZwDRAgAFEKwAGAAYWC/0AAiABDNfrXJPnHMAAKOHggl0gPj//qOHggmIgPj//qOHggmcgPj//qOHggmwgPj//qOHggnEgPj//qOegQnLANECAAUQrAAYABhYL/QACIAEM1+tck+ccwAAo4eCCdiA+P/+o4eCCeyA+P/+o4eCCgCA+P/+o4eCChSA+P/+o4eCCiiA+P/+o56BCi8A0QIABRCsABgAGFgv9AAIgAQzX61yT5xzAACjh4IKPID4//6jh4IKUID4//6jh4IKZID4//6jh4IKeID4//6jh4IKjID4//6jnoEKkwDRAgAFEKwAGAAYWC/0AAiABDNfrXJPnHMAAKOHggqggPj//qOHggq0gPj//qOHggrIgPj//qOHggrcgPj//qOHggrwgPj//qOegQr3ANECAAUQrAAYABhYL/QACIAEM1+tck+ccwAAo4eCCwSA+P/+o4eCCxiA+P/+o4eCCyyA+P/+o4eCC0CA+P/+o4eCC1SA+P/+o56BC1sA0QIABRAQFGAAYWC/0AAiABDNfrXJPnHMAACjh4ILaID4//6jh4ILfID4//6jh4ILkID4//6jh4ILpID4//6jh4ILuID4//6jnoELvwDRAgAFEKwAGAAYWC/0AAiABDNfrXJPnHMAAKOHggvMgPj//qOHggvggPj//qOHggv0gPj//qOHggwIgPj//qOHggwcgPj//qOegQwjANECAAUQrAAYABhYL/QACIAEM1+tck+ccwAAo4eCDDCA+P/+o4eCDESA+P/+o4eCDFiA+P/+o4eCDGyA+P/+o4eCDICA+P/+o56BDIcA0QIABRCsABgAGFgv9AAIgAQzX61yT5xzAACjh4IMlID4//6jh4IMqID4//6jh4IMvID4//6jh4IM0ID4//6jnoEM6wDRAgAFEKwAGAAYWC/0AAiABDNfrXJPnHMAAKOHgg0MgPj//qOHgg0ggPj//qOHgg00gPj//qOHgg1IgPj//qOegQ1PANECAAUQrAAYABhYL/QACIAEM1+tck+ccwAAo4eCDVyA+P/+o4eCDXCA+P/+o4eCDYSA+P/+o4eCDZiA+P/+o4eCDayA+P/+o56BDbMA0QIABRCsABgAGFgv9AAIgAQzX61yT5xzAACjh4INwID4//6jh4IN1ID4//6jh4IN6ID4//6jh4IN/ID4//6jh4IOEID4//6jnoEOFwDRAgAFEKwAGAAYWC/0AAiABDNfrXJPnHMAAKOHgg4kgPj//qOHgg44gPj//qOHgg5MgPj//qOHgg5ggPj//qOHgg50gPj//qOegQ57ANECAAUQrAAYABhYL/QACIAEM1+tck+ccwAAo4eCDoiA+P/+o4eCDpyA+P/+o4eCDrCA+P/+o4eCDsSA+P/+o4eCDtiA+P/+o56BDt8A0QIABRCsABgAGFgv9AAIgAQzX61yT5xzAACjh4IO7ID4//6jh4IPAID4//6jh4IPFID4//6jh4IPKID4//6jh4IPPID4//6jnoEPQwDRAgAFEKwAGAAYWC/0AAiABDNfrXJPnHMAAKOHgg9QgPj//qOHgg9kgPj//qOHgg94gPj//qOHgg+MgPj//qOHgg+ggPj//qOegQ+nANECAAUQEBRgAGFgv9AAIgAQzX61yT5xzAAAo4eCD7SA+P/+o4eCD8iA+P/+o4eCD9yA+P/+o4eCD/CA+P/+o4eCEASA+P/+o56BEAsA0QIABRCsABgAGFgv9AAIgAQzX61yT5xzAACjh4IQGID4//6jh4IQLID4//6jh4IQQID4//6jh4IQVID4//6jh4IQaID4//6jnoEQbwDRAgAFEKwAGAAYWC/0AAiABDNfrXJPnHMAAKOHghB8gPj//qOHghCQgPj//qOHghCkgPj//qOHghC4gPj//qOHghDMgPj//qOegRDTANECAAUQrAAYABhYL/QACIAEM1+tck+ccwAAo4eCEOCA+P/+o4eCEPSA+P/+o4eCEQiA+P/+o56BETcA0QIABRCsABgAGFgv9AAIgAQzX61yT5xzAACjh4IRQ4D4//6jh4IRV4D4//6jh4IRa4D4//6jh4IRf4D4//6jh4IRk4D4//6jnoERmwDRAgAFEKwAGAAYWC/0AAiABDNfrXJPnHMAAKOHghGngPj//qOHghG7gPj//qOHghHPgPj//qOHghHjgPj//qOHghH3gPj//qOegRH/ANECAAUQrAAYABhYL/QACIAEM1+tck+ccwAAo4eCEguA+P/+o4eCEh+A+P/+o4eCEjOA+P/+o4eCEkeA+P/+o4eCEluA+P/+o56BEmMA0QIABRCsABgAGFgv9AAIgAQzX61yT5xzAACjh4ISb4D4//6jh4ISg4D4//6jh4ISl4D4//6jh4ISq4D4//6jh4ISv4D4//6jnoESxwDRAgAFEKwAGAAYWC/0AAiABDNfrXJPnHMAAKOHghLTgPj//qOHghLngPj//qOHghL7gPj//qOHghMPgPj//qOHghMjgPj//qOegRMrANECAAUQrAAYABhYL/QACIAEM1+tck+ccwAAo4eCEzeA+P/+o4eCE0uA+P/+o4eCE1+A+P/+o4eCE3OA+P/+oAEAAAAAAAAPoYeCE4cA+P/+daKDB/KBHFO7a5G7j7OBB7eK94EB8YIDX/CBDA=="),this[e(415)](this[e(427)],e(429),hg),Object[e(447)](this[e(427)][e(449)],{position:e(420),left:e(407),top:"-100%"}),document[e(443)](e(450))[e(405)](this[e(427)]),this[e(432)]=()=>{const t=e;this.noSleepVideo&&this[t(427)].currentTime>4&&(this[t(427)][t(465)]=1)},this[e(427)].addEventListener("timeupdate",this[e(432)]))}[og(430)](){const t=og;if(this[t(448)]&&(this._wakeLock[t(409)](),this._wakeLock=null),this[t(427)]){this[t(432)]&&this.noSleepVideo[t(431)](t(408),this[t(432)]);try{this[t(427)].parentNode&&this[t(427)][t(464)][t(411)](this[t(427)])}catch(e){this[t(406)][t(454)]("NoSleep",t(426))}this[t(427)]=null}this[t(401)]&&(document.removeEventListener("visibilitychange",this[t(401)]),document[t(431)]("fullscreenchange",this[t(401)]))}[og(415)](t,e,s){const i=og;var r=document[i(463)](i(469));r[i(445)]=s,r[i(466)]=i(440)+e,t.appendChild(r)}get isEnabled(){return this.enabled}[og(414)](){const t=og;if(cg())return navigator[t(457)][t(444)](t(410)).then((e=>{const s=t;this[s(448)]=e,this[s(402)]=!0,this[s(406)][s(470)]("wakeLock",s(404)),this[s(448)][s(434)](s(409),(()=>{const t=s;this.player[t(470)](t(457),t(422))}))}))[t(453)]((e=>{const s=t;throw this.enabled=!1,this[s(406)].debugWarn(s(457),e[s(451)]+", "+e[s(436)]),e}));return this.noSleepVideo[t(419)]()[t(441)]((e=>{const s=t;return this[s(406)][s(470)]("wakeLock",s(460)),this[s(402)]=!0,e}))[t(453)]((e=>{const s=t;throw this[s(406)][s(454)](s(457),s(438)+e[s(451)]+", "+e[s(436)]),this[s(402)]=!1,e}))}[og(459)](){const t=og;cg()?(this[t(448)]&&this[t(448)][t(409)](),this[t(448)]=null):this[t(427)]&&this[t(427)].pause(),this[t(402)]=!1,this[t(406)][t(470)]("wakeLock","Disabling wake lock.")}}function ug(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var pg={exports:{}};!function(t,e){var s,i,r,n,o;s=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,i=/^(?=([^\/?#]*))\1([^]*)$/,r=/(?:\/|^)\.(?=\/)/g,n=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,o={buildAbsoluteURL:function(t,e,s){if(s=s||{},t=t.trim(),!(e=e.trim())){if(!s.alwaysNormalize)return t;var r=o.parseURL(t);if(!r)throw new Error("Error trying to parse base URL.");return r.path=o.normalizePath(r.path),o.buildURLFromParts(r)}var n=o.parseURL(e);if(!n)throw new Error("Error trying to parse relative URL.");if(n.scheme)return s.alwaysNormalize?(n.path=o.normalizePath(n.path),o.buildURLFromParts(n)):e;var a=o.parseURL(t);if(!a)throw new Error("Error trying to parse base URL.");if(!a.netLoc&&a.path&&"/"!==a.path[0]){var h=i.exec(a.path);a.netLoc=h[1],a.path=h[2]}a.netLoc&&!a.path&&(a.path="/");var c={scheme:a.scheme,netLoc:n.netLoc,path:null,params:n.params,query:n.query,fragment:n.fragment};if(!n.netLoc&&(c.netLoc=a.netLoc,"/"!==n.path[0]))if(n.path){var l=a.path,d=l.substring(0,l.lastIndexOf("/")+1)+n.path;c.path=o.normalizePath(d)}else c.path=a.path,n.params||(c.params=a.params,n.query||(c.query=a.query));return null===c.path&&(c.path=s.alwaysNormalize?o.normalizePath(n.path):n.path),o.buildURLFromParts(c)},parseURL:function(t){var e=s.exec(t);return e?{scheme:e[1]||"",netLoc:e[2]||"",path:e[3]||"",params:e[4]||"",query:e[5]||"",fragment:e[6]||""}:null},normalizePath:function(t){for(t=t.split("").reverse().join("").replace(r,"");t.length!==(t=t.replace(n,"")).length;);return t.split("").reverse().join("")},buildURLFromParts:function(t){return t.scheme+t.netLoc+t.path+t.params+t.query+t.fragment}},t.exports=o}(pg);var fg=pg.exports;function mg(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,i)}return s}function gg(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?mg(Object(s),!0).forEach((function(e){yg(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):mg(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}function Ag(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var s=t[Symbol.toPrimitive];if(void 0!==s){var i=s.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}function yg(t,e,s){return(e=Ag(e))in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}function bg(){return bg=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var s=arguments[e];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(t[i]=s[i])}return t},bg.apply(this,arguments)}const vg=Number.isFinite||function(t){return"number"==typeof t&&isFinite(t)},Sg=Number.isSafeInteger||function(t){return"number"==typeof t&&Math.abs(t)<=wg},wg=Number.MAX_SAFE_INTEGER||9007199254740991;let Eg=function(t){return t.MEDIA_ATTACHING="hlsMediaAttaching",t.MEDIA_ATTACHED="hlsMediaAttached",t.MEDIA_DETACHING="hlsMediaDetaching",t.MEDIA_DETACHED="hlsMediaDetached",t.BUFFER_RESET="hlsBufferReset",t.BUFFER_CODECS="hlsBufferCodecs",t.BUFFER_CREATED="hlsBufferCreated",t.BUFFER_APPENDING="hlsBufferAppending",t.BUFFER_APPENDED="hlsBufferAppended",t.BUFFER_EOS="hlsBufferEos",t.BUFFER_FLUSHING="hlsBufferFlushing",t.BUFFER_FLUSHED="hlsBufferFlushed",t.MANIFEST_LOADING="hlsManifestLoading",t.MANIFEST_LOADED="hlsManifestLoaded",t.MANIFEST_PARSED="hlsManifestParsed",t.LEVEL_SWITCHING="hlsLevelSwitching",t.LEVEL_SWITCHED="hlsLevelSwitched",t.LEVEL_LOADING="hlsLevelLoading",t.LEVEL_LOADED="hlsLevelLoaded",t.LEVEL_UPDATED="hlsLevelUpdated",t.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",t.LEVELS_UPDATED="hlsLevelsUpdated",t.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",t.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",t.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",t.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",t.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",t.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",t.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",t.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",t.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",t.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",t.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",t.CUES_PARSED="hlsCuesParsed",t.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",t.INIT_PTS_FOUND="hlsInitPtsFound",t.FRAG_LOADING="hlsFragLoading",t.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",t.FRAG_LOADED="hlsFragLoaded",t.FRAG_DECRYPTED="hlsFragDecrypted",t.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",t.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",t.FRAG_PARSING_METADATA="hlsFragParsingMetadata",t.FRAG_PARSED="hlsFragParsed",t.FRAG_BUFFERED="hlsFragBuffered",t.FRAG_CHANGED="hlsFragChanged",t.FPS_DROP="hlsFpsDrop",t.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",t.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",t.ERROR="hlsError",t.DESTROYING="hlsDestroying",t.KEY_LOADING="hlsKeyLoading",t.KEY_LOADED="hlsKeyLoaded",t.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",t.BACK_BUFFER_REACHED="hlsBackBufferReached",t.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",t}({}),Ig=function(t){return t.NETWORK_ERROR="networkError",t.MEDIA_ERROR="mediaError",t.KEY_SYSTEM_ERROR="keySystemError",t.MUX_ERROR="muxError",t.OTHER_ERROR="otherError",t}({}),Tg=function(t){return t.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",t.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",t.KEY_SYSTEM_NO_SESSION="keySystemNoSession",t.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",t.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",t.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",t.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",t.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",t.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",t.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",t.MANIFEST_LOAD_ERROR="manifestLoadError",t.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",t.MANIFEST_PARSING_ERROR="manifestParsingError",t.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",t.LEVEL_EMPTY_ERROR="levelEmptyError",t.LEVEL_LOAD_ERROR="levelLoadError",t.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",t.LEVEL_PARSING_ERROR="levelParsingError",t.LEVEL_SWITCH_ERROR="levelSwitchError",t.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",t.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",t.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",t.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",t.FRAG_LOAD_ERROR="fragLoadError",t.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",t.FRAG_DECRYPT_ERROR="fragDecryptError",t.FRAG_PARSING_ERROR="fragParsingError",t.FRAG_GAP="fragGap",t.REMUX_ALLOC_ERROR="remuxAllocError",t.KEY_LOAD_ERROR="keyLoadError",t.KEY_LOAD_TIMEOUT="keyLoadTimeOut",t.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",t.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",t.BUFFER_APPEND_ERROR="bufferAppendError",t.BUFFER_APPENDING_ERROR="bufferAppendingError",t.BUFFER_STALLED_ERROR="bufferStalledError",t.BUFFER_FULL_ERROR="bufferFullError",t.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",t.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",t.INTERNAL_EXCEPTION="internalException",t.INTERNAL_ABORTED="aborted",t.UNKNOWN="unknown",t}({});const kg=function(){},_g={trace:kg,debug:kg,log:kg,warn:kg,info:kg,error:kg};let Cg=_g;function Rg(t,...e){e.forEach((function(e){Cg[e]=t[e]?t[e].bind(t):function(t){const e=self.console[t];return e?e.bind(self.console,`[${t}] >`):kg}(e)}))}const Dg=Cg,Lg=/^(\d+)x(\d+)$/,xg=/(.+?)=(".*?"|.*?)(?:,|$)/g;class Pg{constructor(t){"string"==typeof t&&(t=Pg.parseAttrList(t)),bg(this,t)}get clientAttrs(){return Object.keys(this).filter((t=>"X-"===t.substring(0,2)))}decimalInteger(t){const e=parseInt(this[t],10);return e>Number.MAX_SAFE_INTEGER?1/0:e}hexadecimalInteger(t){if(this[t]){let e=(this[t]||"0x").slice(2);e=(1&e.length?"0":"")+e;const s=new Uint8Array(e.length/2);for(let t=0;t<e.length/2;t++)s[t]=parseInt(e.slice(2*t,2*t+2),16);return s}return null}hexadecimalIntegerAsNumber(t){const e=parseInt(this[t],16);return e>Number.MAX_SAFE_INTEGER?1/0:e}decimalFloatingPoint(t){return parseFloat(this[t])}optionalFloat(t,e){const s=this[t];return s?parseFloat(s):e}enumeratedString(t){return this[t]}bool(t){return"YES"===this[t]}decimalResolution(t){const e=Lg.exec(this[t]);if(null!==e)return{width:parseInt(e[1],10),height:parseInt(e[2],10)}}static parseAttrList(t){let e;const s={};for(xg.lastIndex=0;null!==(e=xg.exec(t));){let t=e[2];0===t.indexOf('"')&&t.lastIndexOf('"')===t.length-1&&(t=t.slice(1,-1));s[e[1].trim()]=t}return s}}function Bg(t){return"SCTE35-OUT"===t||"SCTE35-IN"===t}class Mg{constructor(t,e){if(this.attr=void 0,this._startDate=void 0,this._endDate=void 0,this._badValueForSameId=void 0,e){const s=e.attr;for(const e in s)if(Object.prototype.hasOwnProperty.call(t,e)&&t[e]!==s[e]){Dg.warn(`DATERANGE tag attribute: "${e}" does not match for tags with ID: "${t.ID}"`),this._badValueForSameId=e;break}t=bg(new Pg({}),s,t)}if(this.attr=t,this._startDate=new Date(t["START-DATE"]),"END-DATE"in this.attr){const t=new Date(this.attr["END-DATE"]);vg(t.getTime())&&(this._endDate=t)}}get id(){return this.attr.ID}get class(){return this.attr.CLASS}get startDate(){return this._startDate}get endDate(){if(this._endDate)return this._endDate;const t=this.duration;return null!==t?new Date(this._startDate.getTime()+1e3*t):null}get duration(){if("DURATION"in this.attr){const t=this.attr.decimalFloatingPoint("DURATION");if(vg(t))return t}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}get plannedDuration(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}get endOnNext(){return this.attr.bool("END-ON-NEXT")}get isValid(){return!!this.id&&!this._badValueForSameId&&vg(this.startDate.getTime())&&(null===this.duration||this.duration>=0)&&(!this.endOnNext||!!this.class)}}class Fg{constructor(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}}}var Og="audio",Ug="video",Ng="audiovideo";class jg{constructor(t){this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams={[Og]:null,[Ug]:null,[Ng]:null},this.baseurl=t}setByteRange(t,e){const s=t.split("@",2);let i;i=1===s.length?(null==e?void 0:e.byteRangeEndOffset)||0:parseInt(s[1]),this._byteRange=[i,parseInt(s[0])+i]}get byteRange(){return this._byteRange?this._byteRange:[]}get byteRangeStartOffset(){return this.byteRange[0]}get byteRangeEndOffset(){return this.byteRange[1]}get url(){return!this._url&&this.baseurl&&this.relurl&&(this._url=fg.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(t){this._url=t}}class Vg extends jg{constructor(t,e){super(e),this._decryptdata=null,this.rawProgramDateTime=null,this.programDateTime=null,this.tagList=[],this.duration=0,this.sn=0,this.levelkeys=void 0,this.type=void 0,this.loader=null,this.keyLoader=null,this.level=-1,this.cc=0,this.startPTS=void 0,this.endPTS=void 0,this.startDTS=void 0,this.endDTS=void 0,this.start=0,this.deltaPTS=void 0,this.maxStartPTS=void 0,this.minEndPTS=void 0,this.stats=new Fg,this.data=void 0,this.bitrateTest=!1,this.title=null,this.initSegment=null,this.endList=void 0,this.gap=void 0,this.urlId=0,this.type=t}get decryptdata(){const{levelkeys:t}=this;if(!t&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkeys&&!this.levelkeys.NONE){const t=this.levelkeys.identity;if(t)this._decryptdata=t.getDecryptData(this.sn);else{const t=Object.keys(this.levelkeys);if(1===t.length)return this._decryptdata=this.levelkeys[t[0]].getDecryptData(this.sn)}}return this._decryptdata}get end(){return this.start+this.duration}get endProgramDateTime(){if(null===this.programDateTime)return null;if(!vg(this.programDateTime))return null;const t=vg(this.duration)?this.duration:0;return this.programDateTime+1e3*t}get encrypted(){var t;if(null!=(t=this._decryptdata)&&t.encrypted)return!0;if(this.levelkeys){const t=Object.keys(this.levelkeys),e=t.length;if(e>1||1===e&&this.levelkeys[t[0]].encrypted)return!0}return!1}setKeyFormat(t){if(this.levelkeys){const e=this.levelkeys[t];e&&!this._decryptdata&&(this._decryptdata=e.getDecryptData(this.sn))}}abortRequests(){var t,e;null==(t=this.loader)||t.abort(),null==(e=this.keyLoader)||e.abort()}setElementaryStreamInfo(t,e,s,i,r,n=!1){const{elementaryStreams:o}=this,a=o[t];a?(a.startPTS=Math.min(a.startPTS,e),a.endPTS=Math.max(a.endPTS,s),a.startDTS=Math.min(a.startDTS,i),a.endDTS=Math.max(a.endDTS,r)):o[t]={startPTS:e,endPTS:s,startDTS:i,endDTS:r,partial:n}}clearElementaryStreamInfo(){const{elementaryStreams:t}=this;t[Og]=null,t[Ug]=null,t[Ng]=null}}class zg extends jg{constructor(t,e,s,i,r){super(s),this.fragOffset=0,this.duration=0,this.gap=!1,this.independent=!1,this.relurl=void 0,this.fragment=void 0,this.index=void 0,this.stats=new Fg,this.duration=t.decimalFloatingPoint("DURATION"),this.gap=t.bool("GAP"),this.independent=t.bool("INDEPENDENT"),this.relurl=t.enumeratedString("URI"),this.fragment=e,this.index=i;const n=t.enumeratedString("BYTERANGE");n&&this.setByteRange(n,r),r&&(this.fragOffset=r.fragOffset+r.duration)}get start(){return this.fragment.start+this.fragOffset}get end(){return this.start+this.duration}get loaded(){const{elementaryStreams:t}=this;return!!(t.audio||t.video||t.audiovideo)}}class Gg{constructor(t){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=t}reloaded(t){if(!t)return this.advanced=!0,void(this.updated=!0);const e=this.lastPartSn-t.lastPartSn,s=this.lastPartIndex-t.lastPartIndex;this.updated=this.endSN!==t.endSN||!!s||!!e||!this.live,this.advanced=this.endSN>t.endSN||e>0||0===e&&s>0,this.updated||this.advanced?this.misses=Math.floor(.6*t.misses):this.misses=t.misses+1,this.availabilityDelay=t.availabilityDelay}get hasProgramDateTime(){return!!this.fragments.length&&vg(this.fragments[this.fragments.length-1].programDateTime)}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||10}get drift(){const t=this.driftEndTime-this.driftStartTime;if(t>0){return 1e3*(this.driftEnd-this.driftStart)/t}return 1}get edge(){return this.partEnd||this.fragmentEnd}get partEnd(){var t;return null!=(t=this.partList)&&t.length?this.partList[this.partList.length-1].end:this.fragmentEnd}get fragmentEnd(){var t;return null!=(t=this.fragments)&&t.length?this.fragments[this.fragments.length-1].end:0}get age(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}get lastPartIndex(){var t;return null!=(t=this.partList)&&t.length?this.partList[this.partList.length-1].index:-1}get lastPartSn(){var t;return null!=(t=this.partList)&&t.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}function Wg(t){return Uint8Array.from(atob(t),(t=>t.charCodeAt(0)))}function Hg(t){const e=t.split(":");let s=null;if("data"===e[0]&&2===e.length){const t=e[1].split(";"),i=t[t.length-1].split(",");if(2===i.length){const e="base64"===i[0],r=i[1];e?(t.splice(-1,1),s=Wg(r)):s=function(t){const e=Kg(t).subarray(0,16),s=new Uint8Array(16);return s.set(e,16-e.length),s}(r)}}return s}function Kg(t){return Uint8Array.from(unescape(encodeURIComponent(t)),(t=>t.charCodeAt(0)))}const Qg="undefined"!=typeof self?self:void 0;var Yg={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},qg="org.w3.clearkey",Jg="com.apple.streamingkeydelivery",Xg="com.microsoft.playready",Zg="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed";function $g(t){switch(t){case Jg:return Yg.FAIRPLAY;case Xg:return Yg.PLAYREADY;case Zg:return Yg.WIDEVINE;case qg:return Yg.CLEARKEY}}var tA="edef8ba979d64acea3c827dcd51d21ed";function eA(t){switch(t){case Yg.FAIRPLAY:return Jg;case Yg.PLAYREADY:return Xg;case Yg.WIDEVINE:return Zg;case Yg.CLEARKEY:return qg}}function sA(t){const{drmSystems:e,widevineLicenseUrl:s}=t,i=e?[Yg.FAIRPLAY,Yg.WIDEVINE,Yg.PLAYREADY,Yg.CLEARKEY].filter((t=>!!e[t])):[];return!i[Yg.WIDEVINE]&&s&&i.push(Yg.WIDEVINE),i}const iA=null!=Qg&&null!=(rA=Qg.navigator)&&rA.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null;var rA;function nA(t,e,s){return Uint8Array.prototype.slice?t.slice(e,s):new Uint8Array(Array.prototype.slice.call(t,e,s))}const oA=(t,e)=>e+10<=t.length&&73===t[e]&&68===t[e+1]&&51===t[e+2]&&t[e+3]<255&&t[e+4]<255&&t[e+6]<128&&t[e+7]<128&&t[e+8]<128&&t[e+9]<128,aA=(t,e)=>e+10<=t.length&&51===t[e]&&68===t[e+1]&&73===t[e+2]&&t[e+3]<255&&t[e+4]<255&&t[e+6]<128&&t[e+7]<128&&t[e+8]<128&&t[e+9]<128,hA=(t,e)=>{const s=e;let i=0;for(;oA(t,e);){i+=10;i+=cA(t,e+6),aA(t,e+10)&&(i+=10),e+=i}if(i>0)return t.subarray(s,s+i)},cA=(t,e)=>{let s=0;return s=(127&t[e])<<21,s|=(127&t[e+1])<<14,s|=(127&t[e+2])<<7,s|=127&t[e+3],s},lA=(t,e)=>oA(t,e)&&cA(t,e+6)+10<=t.length-e,dA=t=>{const e=fA(t);for(let t=0;t<e.length;t++){const s=e[t];if(uA(s))return bA(s)}},uA=t=>t&&"PRIV"===t.key&&"com.apple.streaming.transportStreamTimestamp"===t.info,pA=t=>{const e=String.fromCharCode(t[0],t[1],t[2],t[3]),s=cA(t,4);return{type:e,size:s,data:t.subarray(10,10+s)}},fA=t=>{let e=0;const s=[];for(;oA(t,e);){const i=cA(t,e+6);e+=10;const r=e+i;for(;e+8<r;){const i=pA(t.subarray(e)),r=mA(i);r&&s.push(r),e+=i.size+10}aA(t,e)&&(e+=10)}return s},mA=t=>"PRIV"===t.type?gA(t):"W"===t.type[0]?yA(t):AA(t),gA=t=>{if(t.size<2)return;const e=vA(t.data,!0),s=new Uint8Array(t.data.subarray(e.length+1));return{key:t.type,info:e,data:s.buffer}},AA=t=>{if(t.size<2)return;if("TXXX"===t.type){let e=1;const s=vA(t.data.subarray(e),!0);e+=s.length+1;const i=vA(t.data.subarray(e));return{key:t.type,info:s,data:i}}const e=vA(t.data.subarray(1));return{key:t.type,data:e}},yA=t=>{if("WXXX"===t.type){if(t.size<2)return;let e=1;const s=vA(t.data.subarray(e),!0);e+=s.length+1;const i=vA(t.data.subarray(e));return{key:t.type,info:s,data:i}}const e=vA(t.data);return{key:t.type,data:e}},bA=t=>{if(8===t.data.byteLength){const e=new Uint8Array(t.data),s=1&e[3];let i=(e[4]<<23)+(e[5]<<15)+(e[6]<<7)+e[7];return i/=45,s&&(i+=47721858.84),Math.round(i)}},vA=(t,e=!1)=>{const s=wA();if(s){const i=s.decode(t);if(e){const t=i.indexOf("\0");return-1!==t?i.substring(0,t):i}return i.replace(/\0/g,"")}const i=t.length;let r,n,o,a="",h=0;for(;h<i;){if(r=t[h++],0===r&&e)return a;if(0!==r&&3!==r)switch(r>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:a+=String.fromCharCode(r);break;case 12:case 13:n=t[h++],a+=String.fromCharCode((31&r)<<6|63&n);break;case 14:n=t[h++],o=t[h++],a+=String.fromCharCode((15&r)<<12|(63&n)<<6|(63&o)<<0)}}return a};let SA;function wA(){if(!navigator.userAgent.includes("PlayStation 4"))return SA||void 0===self.TextDecoder||(SA=new self.TextDecoder("utf-8")),SA}const EA=function(t){let e="";for(let s=0;s<t.length;s++){let i=t[s].toString(16);i.length<2&&(i="0"+i),e+=i}return e},IA=Math.pow(2,32)-1,TA=[].push,kA={video:1,audio:2,id3:3,text:4};function _A(t){return String.fromCharCode.apply(null,t)}function CA(t,e){const s=t[e]<<8|t[e+1];return s<0?65536+s:s}function RA(t,e){const s=LA(t,e);return s<0?4294967296+s:s}function DA(t,e){let s=RA(t,e);return s*=Math.pow(2,32),s+=RA(t,e+4),s}function LA(t,e){return t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3]}function xA(t,e,s){t[e]=s>>24,t[e+1]=s>>16&255,t[e+2]=s>>8&255,t[e+3]=255&s}function PA(t,e){const s=[];if(!e.length)return s;const i=t.byteLength;for(let r=0;r<i;){const n=RA(t,r),o=n>1?r+n:i;if(_A(t.subarray(r+4,r+8))===e[0])if(1===e.length)s.push(t.subarray(r+8,o));else{const i=PA(t.subarray(r+8,o),e.slice(1));i.length&&TA.apply(s,i)}r=o}return s}function BA(t){const e=[],s=t[0];let i=8;const r=RA(t,i);i+=4;let n=0,o=0;0===s?(n=RA(t,i),o=RA(t,i+4),i+=8):(n=DA(t,i),o=DA(t,i+8),i+=16),i+=2;let a=t.length+o;const h=CA(t,i);i+=2;for(let s=0;s<h;s++){let s=i;const n=RA(t,s);s+=4;const o=2147483647&n;if(1===(2147483648&n)>>>31)return Dg.warn("SIDX has hierarchical references (not supported)"),null;const h=RA(t,s);s+=4,e.push({referenceSize:o,subsegmentDuration:h,info:{duration:h/r,start:a,end:a+o-1}}),a+=o,s+=4,i=s}return{earliestPresentationTime:n,timescale:r,version:s,referencesCount:h,references:e}}function MA(t){const e=[],s=PA(t,["moov","trak"]);for(let t=0;t<s.length;t++){const i=s[t],r=PA(i,["tkhd"])[0];if(r){let t=r[0];const s=RA(r,0===t?12:20),n=PA(i,["mdia","mdhd"])[0];if(n){t=n[0];const r=RA(n,0===t?12:20),o=PA(i,["mdia","hdlr"])[0];if(o){const t=_A(o.subarray(8,12)),n={soun:Og,vide:Ug}[t];if(n){const t=FA(PA(i,["mdia","minf","stbl","stsd"])[0]);e[s]={timescale:r,type:n},e[n]=gg({timescale:r,id:s},t)}}}}}return PA(t,["moov","mvex","trex"]).forEach((t=>{const s=RA(t,4),i=e[s];i&&(i.default={duration:RA(t,12),flags:RA(t,20)})})),e}function FA(t){const e=t.subarray(8),s=e.subarray(86),i=_A(e.subarray(4,8));let r=i;const n="enca"===i||"encv"===i;if(n){const t=PA(e,[i])[0];PA(t.subarray("enca"===i?28:78),["sinf"]).forEach((t=>{const e=PA(t,["schm"])[0];if(e){const s=_A(e.subarray(4,8));if("cbcs"===s||"cenc"===s){const e=PA(t,["frma"])[0];e&&(r=_A(e))}}}))}switch(r){case"avc1":case"avc2":case"avc3":case"avc4":{const t=PA(s,["avcC"])[0];r+="."+UA(t[1])+UA(t[2])+UA(t[3]);break}case"mp4a":{const t=PA(e,[i])[0],s=PA(t.subarray(28),["esds"])[0];if(s&&s.length>12){let t=4;if(3!==s[t++])break;t=OA(s,t),t+=2;const e=s[t++];if(128&e&&(t+=2),64&e&&(t+=s[t++]),4!==s[t++])break;t=OA(s,t);const i=s[t++];if(64!==i)break;if(r+="."+UA(i),t+=12,5!==s[t++])break;t=OA(s,t);const n=s[t++];let o=(248&n)>>3;31===o&&(o+=1+((7&n)<<3)+((224&s[t])>>5)),r+="."+o}break}case"hvc1":case"hev1":{const t=PA(s,["hvcC"])[0],e=t[1],i=["","A","B","C"][e>>6],n=31&e,o=RA(t,2),a=(32&e)>>5?"H":"L",h=t[12],c=t.subarray(6,12);r+="."+i+n,r+="."+o.toString(16).toUpperCase(),r+="."+a+h;let l="";for(let t=c.length;t--;){const e=c[t];if(e||l){l="."+e.toString(16).toUpperCase()+l}}r+=l;break}case"dvh1":case"dvhe":{const t=PA(s,["dvcC"])[0],e=t[2]>>1&127,i=t[2]<<5&32|t[3]>>3&31;r+="."+NA(e)+"."+NA(i);break}case"vp09":{const t=PA(s,["vpcC"])[0],e=t[4],i=t[5],n=t[6]>>4&15;r+="."+NA(e)+"."+NA(i)+"."+NA(n);break}case"av01":{const t=PA(s,["av1C"])[0],e=t[1]>>>5,i=31&t[1],n=t[2]>>>7?"H":"M",o=(64&t[2])>>6,a=(32&t[2])>>5,h=2===e&&o?a?12:10:o?10:8,c=(16&t[2])>>4,l=(8&t[2])>>3,d=(4&t[2])>>2,u=3&t[2],p=1,f=1,m=1,g=0;r+="."+e+"."+NA(i)+n+"."+NA(h)+"."+c+"."+l+d+u+"."+NA(p)+"."+NA(f)+"."+NA(m)+"."+g;break}}return{codec:r,encrypted:n}}function OA(t,e){const s=e+5;for(;128&t[e++]&&e<s;);return e}function UA(t){return("0"+t.toString(16).toUpperCase()).slice(-2)}function NA(t){return(t<10?"0":"")+t}function jA(t){const e=PA(t,["schm"])[0];if(e){const s=_A(e.subarray(4,8));if("cbcs"===s||"cenc"===s)return PA(t,["schi","tenc"])[0]}return Dg.error("[eme] missing 'schm' box"),null}function VA(t){const e=RA(t,0);let s=8;1&e&&(s+=4),4&e&&(s+=4);let i=0;const r=RA(t,4);for(let n=0;n<r;n++){if(256&e){i+=RA(t,s),s+=4}512&e&&(s+=4),1024&e&&(s+=4),2048&e&&(s+=4)}return i}function zA(t,e){const s=new Uint8Array(t.length+e.length);return s.set(t),s.set(e,t.length),s}function GA(t,e){const s=[],i=e.samples,r=e.timescale,n=e.id;let o=!1;return PA(i,["moof"]).map((a=>{const h=a.byteOffset-8;PA(a,["traf"]).map((a=>{const c=PA(a,["tfdt"]).map((t=>{const e=t[0];let s=RA(t,4);return 1===e&&(s*=Math.pow(2,32),s+=RA(t,8)),s/r}))[0];return void 0!==c&&(t=c),PA(a,["tfhd"]).map((c=>{const l=RA(c,4),d=16777215&RA(c,0);let u=0;const p=0!=(16&d);let f=0;const m=0!=(32&d);let g=8;l===n&&(0!=(1&d)&&(g+=8),0!=(2&d)&&(g+=4),0!=(8&d)&&(u=RA(c,g),g+=4),p&&(f=RA(c,g),g+=4),m&&(g+=4),"video"===e.type&&(o=function(t){if(!t)return!1;const e=t.indexOf("."),s=e<0?t:t.substring(0,e);return"hvc1"===s||"hev1"===s||"dvh1"===s||"dvhe"===s}(e.codec)),PA(a,["trun"]).map((n=>{const a=n[0],c=16777215&RA(n,0),l=0!=(1&c);let d=0;const p=0!=(4&c),m=0!=(256&c);let g=0;const A=0!=(512&c);let y=0;const b=0!=(1024&c),v=0!=(2048&c);let S=0;const w=RA(n,4);let E=8;l&&(d=RA(n,E),E+=4),p&&(E+=4);let I=d+h;for(let h=0;h<w;h++){if(m?(g=RA(n,E),E+=4):g=u,A?(y=RA(n,E),E+=4):y=f,b&&(E+=4),v&&(S=0===a?RA(n,E):LA(n,E),E+=4),e.type===Ug){let e=0;for(;e<y;){const n=RA(i,I);if(I+=4,WA(o,i[I])){HA(i.subarray(I,I+n),o?2:1,t+S/r,s)}I+=n,e+=n+4}}t+=g/r}})))}))}))})),s}function WA(t,e){if(t){const t=e>>1&63;return 39===t||40===t}return 6===(31&e)}function HA(t,e,s,i){const r=KA(t);let n=0;n+=e;let o=0,a=0,h=0;for(;n<r.length;){o=0;do{if(n>=r.length)break;h=r[n++],o+=h}while(255===h);a=0;do{if(n>=r.length)break;h=r[n++],a+=h}while(255===h);const t=r.length-n;let e=n;if(a<t)n+=a;else if(a>t){Dg.error(`Malformed SEI payload. ${a} is too small, only ${t} bytes left to parse.`);break}if(4===o){if(181===r[e++]){const t=CA(r,e);if(e+=2,49===t){const t=RA(r,e);if(e+=4,1195456820===t){const t=r[e++];if(3===t){const n=r[e++],a=31&n,h=64&n,c=h?2+3*a:0,l=new Uint8Array(c);if(h){l[0]=n;for(let t=1;t<c;t++)l[t]=r[e++]}i.push({type:t,payloadType:o,pts:s,bytes:l})}}}}}else if(5===o&&a>16){const t=[];for(let s=0;s<16;s++){const i=r[e++].toString(16);t.push(1==i.length?"0"+i:i),3!==s&&5!==s&&7!==s&&9!==s||t.push("-")}const n=a-16,h=new Uint8Array(n);for(let t=0;t<n;t++)h[t]=r[e++];i.push({payloadType:o,pts:s,uuid:t.join(""),userData:vA(h),userDataBytes:h})}}}function KA(t){const e=t.byteLength,s=[];let i=1;for(;i<e-2;)0===t[i]&&0===t[i+1]&&3===t[i+2]?(s.push(i+2),i+=2):i++;if(0===s.length)return t;const r=e-s.length,n=new Uint8Array(r);let o=0;for(i=0;i<r;o++,i++)o===s[0]&&(o++,s.shift()),n[i]=t[o];return n}function QA(t,e,s){if(16!==t.byteLength)throw new RangeError("Invalid system id");let i,r,n;if(e){i=1,r=new Uint8Array(16*e.length);for(let t=0;t<e.length;t++){const s=e[t];if(16!==s.byteLength)throw new RangeError("Invalid key");r.set(s,16*t)}}else i=0,r=new Uint8Array;i>0?(n=new Uint8Array(4),e.length>0&&new DataView(n.buffer).setUint32(0,e.length,!1)):n=new Uint8Array;const o=new Uint8Array(4);return s&&s.byteLength>0&&new DataView(o.buffer).setUint32(0,s.byteLength,!1),function(t,...e){const s=e.length;let i=8,r=s;for(;r--;)i+=e[r].byteLength;const n=new Uint8Array(i);for(n[0]=i>>24&255,n[1]=i>>16&255,n[2]=i>>8&255,n[3]=255&i,n.set(t,4),r=0,i=8;r<s;r++)n.set(e[r],i),i+=e[r].byteLength;return n}([112,115,115,104],new Uint8Array([i,0,0,0]),t,n,r,o,s||new Uint8Array)}let YA={};class qA{static clearKeyUriToKeyIdMap(){YA={}}constructor(t,e,s,i=[1],r=null){this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.method=t,this.uri=e,this.keyFormat=s,this.keyFormatVersions=i,this.iv=r,this.encrypted=!!t&&"NONE"!==t,this.isCommonEncryption=this.encrypted&&"AES-128"!==t}isSupported(){if(this.method){if("AES-128"===this.method||"NONE"===this.method)return!0;if("identity"===this.keyFormat)return"SAMPLE-AES"===this.method;switch(this.keyFormat){case Jg:case Zg:case Xg:case qg:return-1!==["ISO-23001-7","SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)}}return!1}getDecryptData(t){if(!this.encrypted||!this.uri)return null;if("AES-128"===this.method&&this.uri&&!this.iv){"number"!=typeof t&&("AES-128"!==this.method||this.iv||Dg.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),t=0);const e=function(t){const e=new Uint8Array(16);for(let s=12;s<16;s++)e[s]=t>>8*(15-s)&255;return e}(t);return new qA(this.method,this.uri,"identity",this.keyFormatVersions,e)}const e=Hg(this.uri);if(e)switch(this.keyFormat){case Zg:this.pssh=e,e.length>=22&&(this.keyId=e.subarray(e.length-22,e.length-6));break;case Xg:{const t=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=QA(t,null,e);const s=new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2),i=String.fromCharCode.apply(null,Array.from(s)),r=i.substring(i.indexOf("<"),i.length),n=(new DOMParser).parseFromString(r,"text/xml").getElementsByTagName("KID")[0];if(n){const t=n.childNodes[0]?n.childNodes[0].nodeValue:n.getAttribute("VALUE");if(t){const e=Wg(t).subarray(0,16);!function(t){const e=function(t,e,s){const i=t[e];t[e]=t[s],t[s]=i};e(t,0,3),e(t,1,2),e(t,4,5),e(t,6,7)}(e),this.keyId=e}}break}default:{let t=e.subarray(0,16);if(16!==t.length){const e=new Uint8Array(16);e.set(t,16-t.length),t=e}this.keyId=t;break}}if(!this.keyId||16!==this.keyId.byteLength){let t=YA[this.uri];if(!t){const e=Object.keys(YA).length%Number.MAX_SAFE_INTEGER;t=new Uint8Array(16);new DataView(t.buffer,12,4).setUint32(0,e),YA[this.uri]=t}this.keyId=t}return this}}const JA=/\{\$([a-zA-Z0-9-_]+)\}/g;function XA(t){return JA.test(t)}function ZA(t,e,s){if(null!==t.variableList||t.hasVariableRefs)for(let i=s.length;i--;){const r=s[i],n=e[r];n&&(e[r]=$A(t,n))}}function $A(t,e){if(null!==t.variableList||t.hasVariableRefs){const s=t.variableList;return e.replace(JA,(e=>{const i=e.substring(2,e.length-1),r=null==s?void 0:s[i];return void 0===r?(t.playlistParsingError||(t.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${i}"`)),e):r}))}return e}function ty(t,e,s){let i,r,n=t.variableList;if(n||(t.variableList=n={}),"QUERYPARAM"in e){i=e.QUERYPARAM;try{const t=new self.URL(s).searchParams;if(!t.has(i))throw new Error(`"${i}" does not match any query parameter in URI: "${s}"`);r=t.get(i)}catch(e){t.playlistParsingError||(t.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${e.message}`))}}else i=e.NAME,r=e.VALUE;i in n?t.playlistParsingError||(t.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${i}"`)):n[i]=r||""}function ey(t,e,s){const i=e.IMPORT;if(s&&i in s){let e=t.variableList;e||(t.variableList=e={}),e[i]=s[i]}else t.playlistParsingError||(t.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${i}"`))}function sy(t=!0){if("undefined"==typeof self)return;return(t||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}const iy={audio:{a3ds:1,"ac-3":.95,"ac-4":1,alac:.9,alaw:1,dra1:1,"dts+":1,"dts-":1,dtsc:1,dtse:1,dtsh:1,"ec-3":.9,enca:1,fLaC:.9,flac:.9,FLAC:.9,g719:1,g726:1,m4ae:1,mha1:1,mha2:1,mhm1:1,mhm2:1,mlpa:1,mp4a:1,"raw ":1,Opus:1,opus:1,samr:1,sawb:1,sawp:1,sevc:1,sqcp:1,ssmv:1,twos:1,ulaw:1},video:{avc1:1,avc2:1,avc3:1,avc4:1,avcp:1,av01:.8,drac:1,dva1:1,dvav:1,dvh1:.7,dvhe:.7,encv:1,hev1:.75,hvc1:.75,mjp2:1,mp4v:1,mvc1:1,mvc2:1,mvc3:1,mvc4:1,resv:1,rv60:1,s263:1,svc1:1,svc2:1,"vc-1":1,vp08:1,vp09:.9},text:{stpp:1,wvtt:1}};function ry(t,e,s=!0){return!t.split(",").some((t=>!ny(t,e,s)))}function ny(t,e,s=!0){var i;const r=sy(s);return null!=(i=null==r?void 0:r.isTypeSupported(oy(t,e)))&&i}function oy(t,e){return`${e}/mp4;codecs="${t}"`}function ay(t){if(t){const e=t.substring(0,4);return iy.video[e]}return 2}function hy(t){return t.split(",").reduce(((t,e)=>{const s=iy.video[e];return s?(2*s+t)/(t?3:2):(iy.audio[e]+t)/(t?2:1)}),0)}const cy={};const ly=/flac|opus/i;function dy(t,e=!0){return t.replace(ly,(t=>function(t,e=!0){if(cy[t])return cy[t];const s={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"]}[t];for(let i=0;i<s.length;i++)if(ny(s[i],"audio",e))return cy[t]=s[i],s[i];return t}(t.toLowerCase(),e)))}function uy(t,e){return t&&"mp4a"!==t?t:e?e.split(",")[0]:e}const py=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-(SESSION-DATA|SESSION-KEY|DEFINE|CONTENT-STEERING|START):([^\r\n]*)[\r\n]+/g,fy=/#EXT-X-MEDIA:(.*)/g,my=/^#EXT(?:INF|-X-TARGETDURATION):/m,gy=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),Ay=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP|INDEPENDENT-SEGMENTS)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|"));class yy{static findGroup(t,e){for(let s=0;s<t.length;s++){const i=t[s];if(i.id===e)return i}}static resolve(t,e){return fg.buildAbsoluteURL(e,t,{alwaysNormalize:!0})}static isMediaPlaylist(t){return my.test(t)}static parseMasterPlaylist(t,e){const s={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:XA(t)},i=[];let r;for(py.lastIndex=0;null!=(r=py.exec(t));)if(r[1]){var n;const t=new Pg(r[1]);ZA(s,t,["CODECS","SUPPLEMENTAL-CODECS","ALLOWED-CPC","PATHWAY-ID","STABLE-VARIANT-ID","AUDIO","VIDEO","SUBTITLES","CLOSED-CAPTIONS","NAME"]);const o=$A(s,r[2]),a={attrs:t,bitrate:t.decimalInteger("BANDWIDTH")||t.decimalInteger("AVERAGE-BANDWIDTH"),name:t.NAME,url:yy.resolve(o,e)},h=t.decimalResolution("RESOLUTION");h&&(a.width=h.width,a.height=h.height),Sy(t.CODECS,a),null!=(n=a.unknownCodecs)&&n.length||i.push(a),s.levels.push(a)}else if(r[3]){const t=r[3],i=r[4];switch(t){case"SESSION-DATA":{const t=new Pg(i);ZA(s,t,["DATA-ID","LANGUAGE","VALUE","URI"]);const e=t["DATA-ID"];e&&(null===s.sessionData&&(s.sessionData={}),s.sessionData[e]=t);break}case"SESSION-KEY":{const t=by(i,e,s);t.encrypted&&t.isSupported()?(null===s.sessionKeys&&(s.sessionKeys=[]),s.sessionKeys.push(t)):Dg.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${i}"`);break}case"DEFINE":{const t=new Pg(i);ZA(s,t,["NAME","VALUE","QUERYPARAM"]),ty(s,t,e)}break;case"CONTENT-STEERING":{const t=new Pg(i);ZA(s,t,["SERVER-URI","PATHWAY-ID"]),s.contentSteering={uri:yy.resolve(t["SERVER-URI"],e),pathwayId:t["PATHWAY-ID"]||"."};break}case"START":s.startTimeOffset=vy(i)}}const o=i.length>0&&i.length<s.levels.length;return s.levels=o?i:s.levels,0===s.levels.length&&(s.playlistParsingError=new Error("no levels found in manifest")),s}static parseMasterPlaylistMedia(t,e,s){let i;const r={},n=s.levels,o={AUDIO:n.map((t=>({id:t.attrs.AUDIO,audioCodec:t.audioCodec}))),SUBTITLES:n.map((t=>({id:t.attrs.SUBTITLES,textCodec:t.textCodec}))),"CLOSED-CAPTIONS":[]};let a=0;for(fy.lastIndex=0;null!==(i=fy.exec(t));){const t=new Pg(i[1]),n=t.TYPE;if(n){const i=o[n],h=r[n]||[];r[n]=h,ZA(s,t,["URI","GROUP-ID","LANGUAGE","ASSOC-LANGUAGE","STABLE-RENDITION-ID","NAME","INSTREAM-ID","CHARACTERISTICS","CHANNELS"]);const c=t.LANGUAGE,l=t["ASSOC-LANGUAGE"],d=t.CHANNELS,u=t.CHARACTERISTICS,p=t["INSTREAM-ID"],f={attrs:t,bitrate:0,id:a++,groupId:t["GROUP-ID"]||"",name:t.NAME||c||"",type:n,default:t.bool("DEFAULT"),autoselect:t.bool("AUTOSELECT"),forced:t.bool("FORCED"),lang:c,url:t.URI?yy.resolve(t.URI,e):""};if(l&&(f.assocLang=l),d&&(f.channels=d),u&&(f.characteristics=u),p&&(f.instreamId=p),null!=i&&i.length){const t=yy.findGroup(i,f.groupId)||i[0];wy(f,t,"audioCodec"),wy(f,t,"textCodec")}h.push(f)}}return r}static parseLevelPlaylist(t,e,s,i,r,n){const o=new Gg(e),a=o.fragments;let h,c,l,d=null,u=0,p=0,f=0,m=0,g=null,A=new Vg(i,e),y=-1,b=!1,v=null;for(gy.lastIndex=0,o.m3u8=t,o.hasVariableRefs=XA(t);null!==(h=gy.exec(t));){b&&(b=!1,A=new Vg(i,e),A.start=f,A.sn=u,A.cc=m,A.level=s,d&&(A.initSegment=d,A.rawProgramDateTime=d.rawProgramDateTime,d.rawProgramDateTime=null,v&&(A.setByteRange(v),v=null)));const t=h[1];if(t){A.duration=parseFloat(t);const e=(" "+h[2]).slice(1);A.title=e||null,A.tagList.push(e?["INF",t,e]:["INF",t])}else if(h[3]){if(vg(A.duration)){A.start=f,l&&Ty(A,l,o),A.sn=u,A.level=s,A.cc=m,a.push(A);const t=(" "+h[3]).slice(1);A.relurl=$A(o,t),Ey(A,g),g=A,f+=A.duration,u++,p=0,b=!0}}else if(h[4]){const t=(" "+h[4]).slice(1);g?A.setByteRange(t,g):A.setByteRange(t)}else if(h[5])A.rawProgramDateTime=(" "+h[5]).slice(1),A.tagList.push(["PROGRAM-DATE-TIME",A.rawProgramDateTime]),-1===y&&(y=a.length);else{if(h=h[0].match(Ay),!h){Dg.warn("No matches on slow regex match for level playlist!");continue}for(c=1;c<h.length&&void 0===h[c];c++);const t=(" "+h[c]).slice(1),r=(" "+h[c+1]).slice(1),f=h[c+2]?(" "+h[c+2]).slice(1):"";switch(t){case"PLAYLIST-TYPE":o.type=r.toUpperCase();break;case"MEDIA-SEQUENCE":u=o.startSN=parseInt(r);break;case"SKIP":{const t=new Pg(r);ZA(o,t,["RECENTLY-REMOVED-DATERANGES"]);const e=t.decimalInteger("SKIPPED-SEGMENTS");if(vg(e)){o.skippedSegments=e;for(let t=e;t--;)a.unshift(null);u+=e}const s=t.enumeratedString("RECENTLY-REMOVED-DATERANGES");s&&(o.recentlyRemovedDateranges=s.split("\t"));break}case"TARGETDURATION":o.targetduration=Math.max(parseInt(r),1);break;case"VERSION":o.version=parseInt(r);break;case"INDEPENDENT-SEGMENTS":case"EXTM3U":break;case"ENDLIST":o.live=!1;break;case"#":(r||f)&&A.tagList.push(f?[r,f]:[r]);break;case"DISCONTINUITY":m++,A.tagList.push(["DIS"]);break;case"GAP":A.gap=!0,A.tagList.push([t]);break;case"BITRATE":A.tagList.push([t,r]);break;case"DATERANGE":{const t=new Pg(r);ZA(o,t,["ID","CLASS","START-DATE","END-DATE","SCTE35-CMD","SCTE35-OUT","SCTE35-IN"]),ZA(o,t,t.clientAttrs);const e=new Mg(t,o.dateRanges[t.ID]);e.isValid||o.skippedSegments?o.dateRanges[e.id]=e:Dg.warn(`Ignoring invalid DATERANGE tag: "${r}"`),A.tagList.push(["EXT-X-DATERANGE",r]);break}case"DEFINE":{const t=new Pg(r);ZA(o,t,["NAME","VALUE","IMPORT","QUERYPARAM"]),"IMPORT"in t?ey(o,t,n):ty(o,t,e)}break;case"DISCONTINUITY-SEQUENCE":m=parseInt(r);break;case"KEY":{const t=by(r,e,o);if(t.isSupported()){if("NONE"===t.method){l=void 0;break}l||(l={}),l[t.keyFormat]&&(l=bg({},l)),l[t.keyFormat]=t}else Dg.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${r}"`);break}case"START":o.startTimeOffset=vy(r);break;case"MAP":{const t=new Pg(r);if(ZA(o,t,["BYTERANGE","URI"]),A.duration){const r=new Vg(i,e);Iy(r,t,s,l),d=r,A.initSegment=d,d.rawProgramDateTime&&!A.rawProgramDateTime&&(A.rawProgramDateTime=d.rawProgramDateTime)}else{const e=A.byteRangeEndOffset;if(e){const t=A.byteRangeStartOffset;v=`${e-t}@${t}`}else v=null;Iy(A,t,s,l),d=A,b=!0}break}case"SERVER-CONTROL":{const t=new Pg(r);o.canBlockReload=t.bool("CAN-BLOCK-RELOAD"),o.canSkipUntil=t.optionalFloat("CAN-SKIP-UNTIL",0),o.canSkipDateRanges=o.canSkipUntil>0&&t.bool("CAN-SKIP-DATERANGES"),o.partHoldBack=t.optionalFloat("PART-HOLD-BACK",0),o.holdBack=t.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{const t=new Pg(r);o.partTarget=t.decimalFloatingPoint("PART-TARGET");break}case"PART":{let t=o.partList;t||(t=o.partList=[]);const s=p>0?t[t.length-1]:void 0,i=p++,n=new Pg(r);ZA(o,n,["BYTERANGE","URI"]);const a=new zg(n,A,e,i,s);t.push(a),A.duration+=a.duration;break}case"PRELOAD-HINT":{const t=new Pg(r);ZA(o,t,["URI"]),o.preloadHint=t;break}case"RENDITION-REPORT":{const t=new Pg(r);ZA(o,t,["URI"]),o.renditionReports=o.renditionReports||[],o.renditionReports.push(t);break}default:Dg.warn(`line parsed but not handled: ${h}`)}}}g&&!g.relurl?(a.pop(),f-=g.duration,o.partList&&(o.fragmentHint=g)):o.partList&&(Ey(A,g),A.cc=m,o.fragmentHint=A,l&&Ty(A,l,o));const S=a.length,w=a[0],E=a[S-1];if(f+=o.skippedSegments*o.targetduration,f>0&&S&&E){o.averagetargetduration=f/S;const t=E.sn;o.endSN="initSegment"!==t?t:0,o.live||(E.endList=!0),w&&(o.startCC=w.cc)}else o.endSN=0,o.startCC=0;return o.fragmentHint&&(f+=o.fragmentHint.duration),o.totalduration=f,o.endCC=m,y>0&&function(t,e){let s=t[e];for(let i=e;i--;){const e=t[i];if(!e)return;e.programDateTime=s.programDateTime-1e3*e.duration,s=e}}(a,y),o}}function by(t,e,s){var i,r;const n=new Pg(t);ZA(s,n,["KEYFORMAT","KEYFORMATVERSIONS","URI","IV","URI"]);const o=null!=(i=n.METHOD)?i:"",a=n.URI,h=n.hexadecimalInteger("IV"),c=n.KEYFORMATVERSIONS,l=null!=(r=n.KEYFORMAT)?r:"identity";a&&n.IV&&!h&&Dg.error(`Invalid IV: ${n.IV}`);const d=a?yy.resolve(a,e):"",u=(c||"1").split("/").map(Number).filter(Number.isFinite);return new qA(o,d,l,u,h)}function vy(t){const e=new Pg(t).decimalFloatingPoint("TIME-OFFSET");return vg(e)?e:null}function Sy(t,e){let s=(t||"").split(/[ ,]+/).filter((t=>t));["video","audio","text"].forEach((t=>{const i=s.filter((e=>function(t,e){const s=iy[e];return!!s&&!!s[t.slice(0,4)]}(e,t)));i.length&&(e[`${t}Codec`]=i.join(","),s=s.filter((t=>-1===i.indexOf(t))))})),e.unknownCodecs=s}function wy(t,e,s){const i=e[s];i&&(t[s]=i)}function Ey(t,e){t.rawProgramDateTime?t.programDateTime=Date.parse(t.rawProgramDateTime):null!=e&&e.programDateTime&&(t.programDateTime=e.endProgramDateTime),vg(t.programDateTime)||(t.programDateTime=null,t.rawProgramDateTime=null)}function Iy(t,e,s,i){t.relurl=e.URI,e.BYTERANGE&&t.setByteRange(e.BYTERANGE),t.level=s,t.sn="initSegment",i&&(t.levelkeys=i),t.initSegment=null}function Ty(t,e,s){t.levelkeys=e;const{encryptedFragments:i}=s;i.length&&i[i.length-1].levelkeys===e||!Object.keys(e).some((t=>e[t].isCommonEncryption))||i.push(t)}var ky="manifest",_y="level",Cy="audioTrack",Ry="subtitleTrack",Dy="main",Ly="audio",xy="subtitle";function Py(t){const{type:e}=t;switch(e){case Cy:return Ly;case Ry:return xy;default:return Dy}}function By(t,e){let s=t.url;return void 0!==s&&0!==s.indexOf("data:")||(s=e.url),s}class My{constructor(t){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.hls=t,this.registerListeners()}startLoad(t){}stopLoad(){this.destroyInternalLoaders()}registerListeners(){const{hls:t}=this;t.on(Eg.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Eg.LEVEL_LOADING,this.onLevelLoading,this),t.on(Eg.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.on(Eg.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}unregisterListeners(){const{hls:t}=this;t.off(Eg.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Eg.LEVEL_LOADING,this.onLevelLoading,this),t.off(Eg.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.off(Eg.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}createInternalLoader(t){const e=this.hls.config,s=e.pLoader,i=e.loader,r=new(s||i)(e);return this.loaders[t.type]=r,r}getInternalLoader(t){return this.loaders[t.type]}resetInternalLoader(t){this.loaders[t]&&delete this.loaders[t]}destroyInternalLoaders(){for(const t in this.loaders){const e=this.loaders[t];e&&e.destroy(),this.resetInternalLoader(t)}}destroy(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}onManifestLoading(t,e){const{url:s}=e;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:ky,url:s,deliveryDirectives:null})}onLevelLoading(t,e){const{id:s,level:i,pathwayId:r,url:n,deliveryDirectives:o}=e;this.load({id:s,level:i,pathwayId:r,responseType:"text",type:_y,url:n,deliveryDirectives:o})}onAudioTrackLoading(t,e){const{id:s,groupId:i,url:r,deliveryDirectives:n}=e;this.load({id:s,groupId:i,level:null,responseType:"text",type:Cy,url:r,deliveryDirectives:n})}onSubtitleTrackLoading(t,e){const{id:s,groupId:i,url:r,deliveryDirectives:n}=e;this.load({id:s,groupId:i,level:null,responseType:"text",type:Ry,url:r,deliveryDirectives:n})}load(t){var e;const s=this.hls.config;let i,r=this.getInternalLoader(t);if(r){const e=r.context;if(e&&e.url===t.url&&e.level===t.level)return void Dg.trace("[playlist-loader]: playlist request ongoing");Dg.log(`[playlist-loader]: aborting previous loader for type: ${t.type}`),r.abort()}if(i=t.type===ky?s.manifestLoadPolicy.default:bg({},s.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),r=this.createInternalLoader(t),vg(null==(e=t.deliveryDirectives)?void 0:e.part)){let e;if(t.type===_y&&null!==t.level?e=this.hls.levels[t.level].details:t.type===Cy&&null!==t.id?e=this.hls.audioTracks[t.id].details:t.type===Ry&&null!==t.id&&(e=this.hls.subtitleTracks[t.id].details),e){const t=e.partTarget,s=e.targetduration;if(t&&s){const e=1e3*Math.max(3*t,.8*s);i=bg({},i,{maxTimeToFirstByteMs:Math.min(e,i.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(e,i.maxTimeToFirstByteMs)})}}}const n=i.errorRetry||i.timeoutRetry||{},o={loadPolicy:i,timeout:i.maxLoadTimeMs,maxRetry:n.maxNumRetry||0,retryDelay:n.retryDelayMs||0,maxRetryDelay:n.maxRetryDelayMs||0},a={onSuccess:(t,e,s,i)=>{const r=this.getInternalLoader(s);this.resetInternalLoader(s.type);const n=t.data;0===n.indexOf("#EXTM3U")?(e.parsing.start=performance.now(),yy.isMediaPlaylist(n)?this.handleTrackOrLevelPlaylist(t,e,s,i||null,r):this.handleMasterPlaylist(t,e,s,i)):this.handleManifestParsingError(t,s,new Error("no EXTM3U delimiter"),i||null,e)},onError:(t,e,s,i)=>{this.handleNetworkError(e,s,!1,t,i)},onTimeout:(t,e,s)=>{this.handleNetworkError(e,s,!0,void 0,t)}};r.load(t,o,a)}handleMasterPlaylist(t,e,s,i){const r=this.hls,n=t.data,o=By(t,s),a=yy.parseMasterPlaylist(n,o);if(a.playlistParsingError)return void this.handleManifestParsingError(t,s,a.playlistParsingError,i,e);const{contentSteering:h,levels:c,sessionData:l,sessionKeys:d,startTimeOffset:u,variableList:p}=a;this.variableList=p;const{AUDIO:f=[],SUBTITLES:m,"CLOSED-CAPTIONS":g}=yy.parseMasterPlaylistMedia(n,o,a);if(f.length){f.some((t=>!t.url))||!c[0].audioCodec||c[0].attrs.AUDIO||(Dg.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),f.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new Pg({}),bitrate:0,url:""}))}r.trigger(Eg.MANIFEST_LOADED,{levels:c,audioTracks:f,subtitles:m,captions:g,contentSteering:h,url:o,stats:e,networkDetails:i,sessionData:l,sessionKeys:d,startTimeOffset:u,variableList:p})}handleTrackOrLevelPlaylist(t,e,s,i,r){const n=this.hls,{id:o,level:a,type:h}=s,c=By(t,s),l=vg(a)?a:vg(o)?o:0,d=Py(s),u=yy.parseLevelPlaylist(t.data,c,l,d,0,this.variableList);if(h===ky){const t={attrs:new Pg({}),bitrate:0,details:u,name:"",url:c};n.trigger(Eg.MANIFEST_LOADED,{levels:[t],audioTracks:[],url:c,stats:e,networkDetails:i,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}e.parsing.end=performance.now(),s.levelDetails=u,this.handlePlaylistLoaded(u,t,e,s,i,r)}handleManifestParsingError(t,e,s,i,r){this.hls.trigger(Eg.ERROR,{type:Ig.NETWORK_ERROR,details:Tg.MANIFEST_PARSING_ERROR,fatal:e.type===ky,url:t.url,err:s,error:s,reason:s.message,response:t,context:e,networkDetails:i,stats:r})}handleNetworkError(t,e,s=!1,i,r){let n=`A network ${s?"timeout":"error"+(i?" (status "+i.code+")":"")} occurred while loading ${t.type}`;t.type===_y?n+=`: ${t.level} id: ${t.id}`:t.type!==Cy&&t.type!==Ry||(n+=` id: ${t.id} group-id: "${t.groupId}"`);const o=new Error(n);Dg.warn(`[playlist-loader]: ${n}`);let a=Tg.UNKNOWN,h=!1;const c=this.getInternalLoader(t);switch(t.type){case ky:a=s?Tg.MANIFEST_LOAD_TIMEOUT:Tg.MANIFEST_LOAD_ERROR,h=!0;break;case _y:a=s?Tg.LEVEL_LOAD_TIMEOUT:Tg.LEVEL_LOAD_ERROR,h=!1;break;case Cy:a=s?Tg.AUDIO_TRACK_LOAD_TIMEOUT:Tg.AUDIO_TRACK_LOAD_ERROR,h=!1;break;case Ry:a=s?Tg.SUBTITLE_TRACK_LOAD_TIMEOUT:Tg.SUBTITLE_LOAD_ERROR,h=!1}c&&this.resetInternalLoader(t.type);const l={type:Ig.NETWORK_ERROR,details:a,fatal:h,url:t.url,loader:c,context:t,error:o,networkDetails:e,stats:r};if(i){const s=(null==e?void 0:e.url)||t.url;l.response=gg({url:s,data:void 0},i)}this.hls.trigger(Eg.ERROR,l)}handlePlaylistLoaded(t,e,s,i,r,n){const o=this.hls,{type:a,level:h,id:c,groupId:l,deliveryDirectives:d}=i,u=By(e,i),p=Py(i),f="number"==typeof i.level&&p===Dy?h:void 0;if(!t.fragments.length){const t=new Error("No Segments found in Playlist");return void o.trigger(Eg.ERROR,{type:Ig.NETWORK_ERROR,details:Tg.LEVEL_EMPTY_ERROR,fatal:!1,url:u,error:t,reason:t.message,response:e,context:i,level:f,parent:p,networkDetails:r,stats:s})}t.targetduration||(t.playlistParsingError=new Error("Missing Target Duration"));const m=t.playlistParsingError;if(m)o.trigger(Eg.ERROR,{type:Ig.NETWORK_ERROR,details:Tg.LEVEL_PARSING_ERROR,fatal:!1,url:u,error:m,reason:m.message,response:e,context:i,level:f,parent:p,networkDetails:r,stats:s});else switch(t.live&&n&&(n.getCacheAge&&(t.ageHeader=n.getCacheAge()||0),n.getCacheAge&&!isNaN(t.ageHeader)||(t.ageHeader=0)),a){case ky:case _y:o.trigger(Eg.LEVEL_LOADED,{details:t,level:f||0,id:c||0,stats:s,networkDetails:r,deliveryDirectives:d});break;case Cy:o.trigger(Eg.AUDIO_TRACK_LOADED,{details:t,id:c||0,groupId:l||"",stats:s,networkDetails:r,deliveryDirectives:d});break;case Ry:o.trigger(Eg.SUBTITLE_TRACK_LOADED,{details:t,id:c||0,groupId:l||"",stats:s,networkDetails:r,deliveryDirectives:d})}}}function Fy(t,e){let s;try{s=new Event("addtrack")}catch(t){s=document.createEvent("Event"),s.initEvent("addtrack",!1,!1)}s.track=t,e.dispatchEvent(s)}function Oy(t,e){const s=t.mode;if("disabled"===s&&(t.mode="hidden"),t.cues&&!t.cues.getCueById(e.id))try{if(t.addCue(e),!t.cues.getCueById(e.id))throw new Error(`addCue is failed for: ${e}`)}catch(s){Dg.debug(`[texttrack-utils]: ${s}`);try{const s=new self.TextTrackCue(e.startTime,e.endTime,e.text);s.id=e.id,t.addCue(s)}catch(t){Dg.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${t}`)}}"disabled"===s&&(t.mode=s)}function Uy(t){const e=t.mode;if("disabled"===e&&(t.mode="hidden"),t.cues)for(let e=t.cues.length;e--;)t.removeCue(t.cues[e]);"disabled"===e&&(t.mode=e)}function Ny(t,e,s,i){const r=t.mode;if("disabled"===r&&(t.mode="hidden"),t.cues&&t.cues.length>0){const r=function(t,e,s){const i=[],r=function(t,e){if(e<t[0].startTime)return 0;const s=t.length-1;if(e>t[s].endTime)return-1;let i=0,r=s;for(;i<=r;){const n=Math.floor((r+i)/2);if(e<t[n].startTime)r=n-1;else{if(!(e>t[n].startTime&&i<s))return n;i=n+1}}return t[i].startTime-e<e-t[r].startTime?i:r}(t,e);if(r>-1)for(let n=r,o=t.length;n<o;n++){const r=t[n];if(r.startTime>=e&&r.endTime<=s)i.push(r);else if(r.startTime>s)return i}return i}(t.cues,e,s);for(let e=0;e<r.length;e++)i&&!i(r[e])||t.removeCue(r[e])}"disabled"===r&&(t.mode=r)}function jy(t){const e=[];for(let s=0;s<t.length;s++){const i=t[s];"subtitles"!==i.kind&&"captions"!==i.kind||!i.label||e.push(t[s])}return e}var Vy="org.id3",zy="com.apple.quicktime.HLS",Gy="https://aomedia.org/emsg/ID3";function Wy(){if("undefined"!=typeof self)return self.VTTCue||self.TextTrackCue}function Hy(t,e,s,i,r){let n=new t(e,s,"");try{n.value=i,r&&(n.type=r)}catch(o){n=new t(e,s,JSON.stringify(r?gg({type:r},i):i))}return n}const Ky=(()=>{const t=Wy();try{t&&new t(0,Number.POSITIVE_INFINITY,"")}catch(t){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();function Qy(t,e){return t.getTime()/1e3-e}function Yy(t){return Uint8Array.from(t.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}class qy{constructor(t){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=t,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=null}_registerListeners(){const{hls:t}=this;t.on(Eg.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Eg.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Eg.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Eg.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.on(Eg.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(Eg.LEVEL_UPDATED,this.onLevelUpdated,this)}_unregisterListeners(){const{hls:t}=this;t.off(Eg.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Eg.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Eg.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Eg.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.off(Eg.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(Eg.LEVEL_UPDATED,this.onLevelUpdated,this)}onMediaAttached(t,e){this.media=e.media}onMediaDetaching(){this.id3Track&&(Uy(this.id3Track),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={})}onManifestLoading(){this.dateRangeCuesAppended={}}createTrack(t){const e=this.getID3Track(t.textTracks);return e.mode="hidden",e}getID3Track(t){if(this.media){for(let e=0;e<t.length;e++){const s=t[e];if("metadata"===s.kind&&"id3"===s.label)return Fy(s,this.media),s}return this.media.addTextTrack("metadata","id3")}}onFragParsingMetadata(t,e){if(!this.media)return;const{hls:{config:{enableEmsgMetadataCues:s,enableID3MetadataCues:i}}}=this;if(!s&&!i)return;const{samples:r}=e;this.id3Track||(this.id3Track=this.createTrack(this.media));const n=Wy();if(n)for(let t=0;t<r.length;t++){const e=r[t].type;if(e===Gy&&!s||!i)continue;const o=fA(r[t].data);if(o){const s=r[t].pts;let i=s+r[t].duration;i>Ky&&(i=Ky);i-s<=0&&(i=s+.25);for(let t=0;t<o.length;t++){const r=o[t];if(!uA(r)){this.updateId3CueEnds(s,e);const t=Hy(n,s,i,r,e);t&&this.id3Track.addCue(t)}}}}}updateId3CueEnds(t,e){var s;const i=null==(s=this.id3Track)?void 0:s.cues;if(i)for(let s=i.length;s--;){const r=i[s];r.type===e&&r.startTime<t&&r.endTime===Ky&&(r.endTime=t)}}onBufferFlushing(t,{startOffset:e,endOffset:s,type:i}){const{id3Track:r,hls:n}=this;if(!n)return;const{config:{enableEmsgMetadataCues:o,enableID3MetadataCues:a}}=n;if(r&&(o||a)){let t;t="audio"===i?t=>t.type===Vy&&a:"video"===i?t=>t.type===Gy&&o:t=>t.type===Vy&&a||t.type===Gy&&o,Ny(r,e,s,t)}}onLevelUpdated(t,{details:e}){if(!this.media||!e.hasProgramDateTime||!this.hls.config.enableDateRangeMetadataCues)return;const{dateRangeCuesAppended:s,id3Track:i}=this,{dateRanges:r}=e,n=Object.keys(r);if(i){const t=Object.keys(s).filter((t=>!n.includes(t)));for(let e=t.length;e--;){const r=t[e];Object.keys(s[r].cues).forEach((t=>{i.removeCue(s[r].cues[t])})),delete s[r]}}const o=e.fragments[e.fragments.length-1];if(0===n.length||!vg(null==o?void 0:o.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));const a=o.programDateTime/1e3-o.start,h=Wy();for(let t=0;t<n.length;t++){const e=n[t],i=r[e],o=Qy(i.startDate,a),l=s[e],d=(null==l?void 0:l.cues)||{};let u=(null==l?void 0:l.durationKnown)||!1,p=Ky;const f=i.endDate;if(f)p=Qy(f,a),u=!0;else if(i.endOnNext&&!u){const t=n.reduce(((t,e)=>{if(e!==i.id){const s=r[e];if(s.class===i.class&&s.startDate>i.startDate&&(!t||i.startDate<t.startDate))return s}return t}),null);t&&(p=Qy(t.startDate,a),u=!0)}const m=Object.keys(i.attr);for(let t=0;t<m.length;t++){const s=m[t];if("ID"===(c=s)||"CLASS"===c||"START-DATE"===c||"DURATION"===c||"END-DATE"===c||"END-ON-NEXT"===c)continue;const r=d[s];if(r)u&&!l.durationKnown&&(r.endTime=p);else if(h){let t=i.attr[s];Bg(s)&&(t=Yy(t));const r=Hy(h,o,p,{key:s,data:t},zy);r&&(r.id=e,this.id3Track.addCue(r),d[s]=r)}}s[e]={cues:d,dateRange:i,durationKnown:u}}var c}}class Jy{constructor(t){this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=()=>this.timeupdate(),this.hls=t,this.config=t.config,this.registerListeners()}get latency(){return this._latency||0}get maxLatency(){const{config:t,levelDetails:e}=this;return void 0!==t.liveMaxLatencyDuration?t.liveMaxLatencyDuration:e?t.liveMaxLatencyDurationCount*e.targetduration:0}get targetLatency(){const{levelDetails:t}=this;if(null===t)return null;const{holdBack:e,partHoldBack:s,targetduration:i}=t,{liveSyncDuration:r,liveSyncDurationCount:n,lowLatencyMode:o}=this.config,a=this.hls.userConfig;let h=o&&s||e;(a.liveSyncDuration||a.liveSyncDurationCount||0===h)&&(h=void 0!==r?r:n*i);const c=i;return h+Math.min(1*this.stallCount,c)}get liveSyncPosition(){const t=this.estimateLiveEdge(),e=this.targetLatency,s=this.levelDetails;if(null===t||null===e||null===s)return null;const i=s.edge,r=t-e-this.edgeStalled,n=i-s.totalduration,o=i-(this.config.lowLatencyMode&&s.partTarget||s.targetduration);return Math.min(Math.max(n,r),o)}get drift(){const{levelDetails:t}=this;return null===t?1:t.drift}get edgeStalled(){const{levelDetails:t}=this;if(null===t)return 0;const e=3*(this.config.lowLatencyMode&&t.partTarget||t.targetduration);return Math.max(t.age-e,0)}get forwardBufferLength(){const{media:t,levelDetails:e}=this;if(!t||!e)return 0;const s=t.buffered.length;return(s?t.buffered.end(s-1):e.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null}registerListeners(){this.hls.on(Eg.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(Eg.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(Eg.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(Eg.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(Eg.ERROR,this.onError,this)}unregisterListeners(){this.hls.off(Eg.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(Eg.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.off(Eg.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(Eg.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.off(Eg.ERROR,this.onError,this)}onMediaAttached(t,e){this.media=e.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)}onManifestLoading(){this.levelDetails=null,this._latency=null,this.stallCount=0}onLevelUpdated(t,{details:e}){this.levelDetails=e,e.advanced&&this.timeupdate(),!e.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)}onError(t,e){var s;e.details===Tg.BUFFER_STALLED_ERROR&&(this.stallCount++,null!=(s=this.levelDetails)&&s.live&&Dg.warn("[playback-rate-controller]: Stall detected, adjusting target latency"))}timeupdate(){const{media:t,levelDetails:e}=this;if(!t||!e)return;this.currentTime=t.currentTime;const s=this.computeLatency();if(null===s)return;this._latency=s;const{lowLatencyMode:i,maxLiveSyncPlaybackRate:r}=this.config;if(!i||1===r||!e.live)return;const n=this.targetLatency;if(null===n)return;const o=s-n;if(o<Math.min(this.maxLatency,n+e.targetduration)&&o>.05&&this.forwardBufferLength>1){const e=Math.min(2,Math.max(1,r)),s=Math.round(2/(1+Math.exp(-.75*o-this.edgeStalled))*20)/20;t.playbackRate=Math.min(e,Math.max(1,s))}else 1!==t.playbackRate&&0!==t.playbackRate&&(t.playbackRate=1)}estimateLiveEdge(){const{levelDetails:t}=this;return null===t?null:t.edge+t.age}computeLatency(){const t=this.estimateLiveEdge();return null===t?null:t-this.currentTime}}const Xy=["NONE","TYPE-0","TYPE-1",null];const Zy=["SDR","PQ","HLG"];var $y="",tb="YES",eb="v2";function sb(t){const{canSkipUntil:e,canSkipDateRanges:s,age:i}=t;return e&&i<e/2?s?eb:tb:$y}class ib{constructor(t,e,s){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=t,this.part=e,this.skip=s}addDirectives(t){const e=new self.URL(t);return void 0!==this.msn&&e.searchParams.set("_HLS_msn",this.msn.toString()),void 0!==this.part&&e.searchParams.set("_HLS_part",this.part.toString()),this.skip&&e.searchParams.set("_HLS_skip",this.skip),e.href}}class rb{constructor(t){this._attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.url=void 0,this.frameRate=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.videoCodec=void 0,this.width=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.supportedPromise=void 0,this.supportedResult=void 0,this._avgBitrate=0,this._audioGroups=void 0,this._subtitleGroups=void 0,this._urlId=0,this.url=[t.url],this._attrs=[t.attrs],this.bitrate=t.bitrate,t.details&&(this.details=t.details),this.id=t.id||0,this.name=t.name,this.width=t.width||0,this.height=t.height||0,this.frameRate=t.attrs.optionalFloat("FRAME-RATE",0),this._avgBitrate=t.attrs.decimalInteger("AVERAGE-BANDWIDTH"),this.audioCodec=t.audioCodec,this.videoCodec=t.videoCodec,this.codecSet=[t.videoCodec,t.audioCodec].filter((t=>!!t)).map((t=>t.substring(0,4))).join(","),this.addGroupId("audio",t.attrs.AUDIO),this.addGroupId("text",t.attrs.SUBTITLES)}get maxBitrate(){return Math.max(this.realBitrate,this.bitrate)}get averageBitrate(){return this._avgBitrate||this.realBitrate||this.bitrate}get attrs(){return this._attrs[0]}get codecs(){return this.attrs.CODECS||""}get pathwayId(){return this.attrs["PATHWAY-ID"]||"."}get videoRange(){return this.attrs["VIDEO-RANGE"]||"SDR"}get score(){return this.attrs.optionalFloat("SCORE",0)}get uri(){return this.url[0]||""}hasAudioGroup(t){return nb(this._audioGroups,t)}hasSubtitleGroup(t){return nb(this._subtitleGroups,t)}get audioGroups(){return this._audioGroups}get subtitleGroups(){return this._subtitleGroups}addGroupId(t,e){if(e)if("audio"===t){let t=this._audioGroups;t||(t=this._audioGroups=[]),-1===t.indexOf(e)&&t.push(e)}else if("text"===t){let t=this._subtitleGroups;t||(t=this._subtitleGroups=[]),-1===t.indexOf(e)&&t.push(e)}}get urlId(){return 0}set urlId(t){}get audioGroupIds(){return this.audioGroups?[this.audioGroupId]:void 0}get textGroupIds(){return this.subtitleGroups?[this.textGroupId]:void 0}get audioGroupId(){var t;return null==(t=this.audioGroups)?void 0:t[0]}get textGroupId(){var t;return null==(t=this.subtitleGroups)?void 0:t[0]}addFallback(){}}function nb(t,e){return!(!e||!t)&&-1!==t.indexOf(e)}function ob(t,e){const s=e.startPTS;if(vg(s)){let i,r=0;e.sn>t.sn?(r=s-t.start,i=t):(r=t.start-s,i=e),i.duration!==r&&(i.duration=r)}else if(e.sn>t.sn){t.cc===e.cc&&t.minEndPTS?e.start=t.start+(t.minEndPTS-t.start):e.start=t.start+t.duration}else e.start=Math.max(t.start-e.duration,0)}function ab(t,e,s,i,r,n){i-s<=0&&(Dg.warn("Fragment should have a positive duration",e),i=s+e.duration,n=r+e.duration);let o=s,a=i;const h=e.startPTS,c=e.endPTS;if(vg(h)){const t=Math.abs(h-s);vg(e.deltaPTS)?e.deltaPTS=Math.max(t,e.deltaPTS):e.deltaPTS=t,o=Math.max(s,h),s=Math.min(s,h),r=Math.min(r,e.startDTS),a=Math.min(i,c),i=Math.max(i,c),n=Math.max(n,e.endDTS)}const l=s-e.start;0!==e.start&&(e.start=s),e.duration=i-e.start,e.startPTS=s,e.maxStartPTS=o,e.startDTS=r,e.endPTS=i,e.minEndPTS=a,e.endDTS=n;const d=e.sn;if(!t||d<t.startSN||d>t.endSN)return 0;let u;const p=d-t.startSN,f=t.fragments;for(f[p]=e,u=p;u>0;u--)ob(f[u],f[u-1]);for(u=p;u<f.length-1;u++)ob(f[u],f[u+1]);return t.fragmentHint&&ob(f[f.length-1],t.fragmentHint),t.PTSKnown=t.alignedSliding=!0,l}function hb(t,e){let s=null;const i=t.fragments;for(let t=i.length-1;t>=0;t--){const e=i[t].initSegment;if(e){s=e;break}}t.fragmentHint&&delete t.fragmentHint.endPTS;let r,n=0;if(function(t,e,s){const i=e.skippedSegments,r=Math.max(t.startSN,e.startSN)-e.startSN,n=(t.fragmentHint?1:0)+(i?e.endSN:Math.min(t.endSN,e.endSN))-e.startSN,o=e.startSN-t.startSN,a=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,h=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments;for(let t=r;t<=n;t++){const r=h[o+t];let n=a[t];i&&!n&&t<i&&(n=e.fragments[t]=r),r&&n&&s(r,n)}}(t,e,((t,i)=>{t.relurl&&(n=t.cc-i.cc),vg(t.startPTS)&&vg(t.endPTS)&&(i.start=i.startPTS=t.startPTS,i.startDTS=t.startDTS,i.maxStartPTS=t.maxStartPTS,i.endPTS=t.endPTS,i.endDTS=t.endDTS,i.minEndPTS=t.minEndPTS,i.duration=t.endPTS-t.startPTS,i.duration&&(r=i),e.PTSKnown=e.alignedSliding=!0),i.elementaryStreams=t.elementaryStreams,i.loader=t.loader,i.stats=t.stats,t.initSegment&&(i.initSegment=t.initSegment,s=t.initSegment)})),s){(e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments).forEach((t=>{var e;!t||t.initSegment&&t.initSegment.relurl!==(null==(e=s)?void 0:e.relurl)||(t.initSegment=s)}))}if(e.skippedSegments)if(e.deltaUpdateFailed=e.fragments.some((t=>!t)),e.deltaUpdateFailed){Dg.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let t=e.skippedSegments;t--;)e.fragments.shift();e.startSN=e.fragments[0].sn,e.startCC=e.fragments[0].cc}else e.canSkipDateRanges&&(e.dateRanges=function(t,e,s){const i=bg({},t);s&&s.forEach((t=>{delete i[t]}));return Object.keys(e).forEach((t=>{const s=new Mg(e[t].attr,i[t]);s.isValid?i[t]=s:Dg.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${JSON.stringify(e[t].attr)}"`)})),i}(t.dateRanges,e.dateRanges,e.recentlyRemovedDateranges));const o=e.fragments;if(n){Dg.warn("discontinuity sliding from playlist, take drift into account");for(let t=0;t<o.length;t++)o[t].cc+=n}e.skippedSegments&&(e.startCC=e.fragments[0].cc),function(t,e,s){if(t&&e){let i=0;for(let r=0,n=t.length;r<=n;r++){const n=t[r],o=e[r+i];n&&o&&n.index===o.index&&n.fragment.sn===o.fragment.sn?s(n,o):i--}}}(t.partList,e.partList,((t,e)=>{e.elementaryStreams=t.elementaryStreams,e.stats=t.stats})),r?ab(e,r,r.startPTS,r.endPTS,r.startDTS,r.endDTS):cb(t,e),o.length&&(e.totalduration=e.edge-o[0].start),e.driftStartTime=t.driftStartTime,e.driftStart=t.driftStart;const a=e.advancedDateTime;if(e.advanced&&a){const t=e.edge;e.driftStart||(e.driftStartTime=a,e.driftStart=t),e.driftEndTime=a,e.driftEnd=t}else e.driftEndTime=t.driftEndTime,e.driftEnd=t.driftEnd,e.advancedDateTime=t.advancedDateTime}function cb(t,e){const s=e.startSN+e.skippedSegments-t.startSN,i=t.fragments;s<0||s>=i.length||lb(e,i[s].start)}function lb(t,e){if(e){const s=t.fragments;for(let i=t.skippedSegments;i<s.length;i++)s[i].start+=e;t.fragmentHint&&(t.fragmentHint.start+=e)}}function db(t,e,s){var i;return null!=t&&t.details?ub(null==(i=t.details)?void 0:i.partList,e,s):null}function ub(t,e,s){if(t)for(let i=t.length;i--;){const r=t[i];if(r.index===s&&r.fragment.sn===e)return r}return null}function pb(t){t.forEach(((t,e)=>{const{details:s}=t;null!=s&&s.fragments&&s.fragments.forEach((t=>{t.level=e}))}))}function fb(t){switch(t.details){case Tg.FRAG_LOAD_TIMEOUT:case Tg.KEY_LOAD_TIMEOUT:case Tg.LEVEL_LOAD_TIMEOUT:case Tg.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function mb(t,e){const s=fb(e);return t.default[(s?"timeout":"error")+"Retry"]}function gb(t,e){const s="linear"===t.backoff?1:Math.pow(2,e);return Math.min(s*t.retryDelayMs,t.maxRetryDelayMs)}function Ab(t){return gg(gg({},t),{errorRetry:null,timeoutRetry:null})}function yb(t,e,s,i){if(!t)return!1;const r=null==i?void 0:i.code,n=e<t.maxNumRetry&&(function(t){return 0===t&&!1===navigator.onLine||!!t&&(t<400||t>499)}(r)||!!s);return t.shouldRetry?t.shouldRetry(t,e,s,i,n):n}const bb=function(t,e){let s=0,i=t.length-1,r=null,n=null;for(;s<=i;){r=(s+i)/2|0,n=t[r];const o=e(n);if(o>0)s=r+1;else{if(!(o<0))return n;i=r-1}}return null};function vb(t,e,s=0,i=0,r=.005){let n=null;if(t){n=e[t.sn-e[0].sn+1]||null;const i=t.endDTS-s;i>0&&i<15e-7&&(s+=15e-7)}else 0===s&&0===e[0].start&&(n=e[0]);if(n&&((!t||t.level===n.level)&&0===Sb(s,i,n)||function(t,e,s){if(e&&0===e.start&&e.level<t.level&&(e.endPTS||0)>0){const i=e.tagList.reduce(((t,e)=>("INF"===e[0]&&(t+=parseFloat(e[1])),t)),s);return t.start<=i}return!1}(n,t,Math.min(r,i))))return n;const o=bb(e,Sb.bind(null,s,i));return!o||o===t&&n?n:o}function Sb(t=0,e=0,s){if(s.start<=t&&s.start+s.duration>t)return 0;const i=Math.min(e,s.duration+(s.deltaPTS?s.deltaPTS:0));return s.start+s.duration-i<=t?1:s.start-i>t&&s.start?-1:0}function wb(t,e,s){const i=1e3*Math.min(e,s.duration+(s.deltaPTS?s.deltaPTS:0));return(s.endProgramDateTime||0)-i>t}var Eb=0,Ib=2,Tb=3,kb=5,_b=0,Cb=1,Rb=2;class Db{constructor(t,e){this.hls=void 0,this.timer=-1,this.requestScheduled=-1,this.canLoad=!1,this.log=void 0,this.warn=void 0,this.log=Dg.log.bind(Dg,`${e}:`),this.warn=Dg.warn.bind(Dg,`${e}:`),this.hls=t}destroy(){this.clearTimer(),this.hls=this.log=this.warn=null}clearTimer(){-1!==this.timer&&(self.clearTimeout(this.timer),this.timer=-1)}startLoad(){this.canLoad=!0,this.requestScheduled=-1,this.loadPlaylist()}stopLoad(){this.canLoad=!1,this.clearTimer()}switchParams(t,e,s){const i=null==e?void 0:e.renditionReports;if(i){let r=-1;for(let s=0;s<i.length;s++){const n=i[s];let o;try{o=new self.URL(n.URI,e.url).href}catch(t){Dg.warn(`Could not construct new URL for Rendition Report: ${t}`),o=n.URI||""}if(o===t){r=s;break}o===t.substring(0,o.length)&&(r=s)}if(-1!==r){const t=i[r],n=parseInt(t["LAST-MSN"])||(null==e?void 0:e.lastPartSn);let o=parseInt(t["LAST-PART"])||(null==e?void 0:e.lastPartIndex);if(this.hls.config.lowLatencyMode){const t=Math.min(e.age-e.partTarget,e.targetduration);o>=0&&t>e.partTarget&&(o+=1)}const a=s&&sb(s);return new ib(n,o>=0?o:void 0,a)}}}loadPlaylist(t){-1===this.requestScheduled&&(this.requestScheduled=self.performance.now())}shouldLoadPlaylist(t){return this.canLoad&&!!t&&!!t.url&&(!t.details||t.details.live)}shouldReloadPlaylist(t){return-1===this.timer&&-1===this.requestScheduled&&this.shouldLoadPlaylist(t)}playlistLoaded(t,e,s){const{details:i,stats:r}=e,n=self.performance.now(),o=r.loading.first?Math.max(0,n-r.loading.first):0;if(i.advancedDateTime=Date.now()-o,i.live||null!=s&&s.live){if(i.reloaded(s),s&&this.log(`live playlist ${t} ${i.advanced?"REFRESHED "+i.lastPartSn+"-"+i.lastPartIndex:i.updated?"UPDATED":"MISSED"}`),s&&i.fragments.length>0&&hb(s,i),!this.canLoad||!i.live)return;let o,a,h;if(i.canBlockReload&&i.endSN&&i.advanced){const t=this.hls.config.lowLatencyMode,r=i.lastPartSn,n=i.endSN,c=i.lastPartIndex,l=r===n,d=t?0:c;-1!==c?(a=l?n+1:r,h=l?d:c+1):a=n+1;const u=i.age,p=u+i.ageHeader;let f=Math.min(p-i.partTarget,1.5*i.targetduration);if(f>0){if(s&&f>s.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${s.tuneInGoal} to: ${f} with playlist age: ${i.age}`),f=0;else{const t=Math.floor(f/i.targetduration);if(a+=t,void 0!==h){h+=Math.round(f%i.targetduration/i.partTarget)}this.log(`CDN Tune-in age: ${i.ageHeader}s last advanced ${u.toFixed(2)}s goal: ${f} skip sn ${t} to part ${h}`)}i.tuneInGoal=f}if(o=this.getDeliveryDirectives(i,e.deliveryDirectives,a,h),t||!l)return void this.loadPlaylist(o)}else(i.canBlockReload||i.canSkipUntil)&&(o=this.getDeliveryDirectives(i,e.deliveryDirectives,a,h));const c=this.hls.mainForwardBufferInfo,l=c?c.end-c.len:0,d=function(t,e=1/0){let s=1e3*t.targetduration;if(t.updated){const i=t.fragments,r=4;if(i.length&&s*r>e){const t=1e3*i[i.length-1].duration;t<s&&(s=t)}}else s/=2;return Math.round(s)}(i,1e3*(i.edge-l));i.updated&&n>this.requestScheduled+d&&(this.requestScheduled=r.loading.start),void 0!==a&&i.canBlockReload?this.requestScheduled=r.loading.first+d-(1e3*i.partTarget||1e3):-1===this.requestScheduled||this.requestScheduled+d<n?this.requestScheduled=n:this.requestScheduled-n<=0&&(this.requestScheduled+=d);let u=this.requestScheduled-n;u=Math.max(0,u),this.log(`reload live playlist ${t} in ${Math.round(u)} ms`),this.timer=self.setTimeout((()=>this.loadPlaylist(o)),u)}else this.clearTimer()}getDeliveryDirectives(t,e,s,i){let r=sb(t);return null!=e&&e.skip&&t.deltaUpdateFailed&&(s=e.msn,i=e.part,r=$y),new ib(s,i,r)}checkRetry(t){const e=t.details,s=fb(t),i=t.errorAction,{action:r,retryCount:n=0,retryConfig:o}=i||{},a=!!i&&!!o&&(r===kb||!i.resolved&&r===Ib);if(a){var h;if(this.requestScheduled=-1,n>=o.maxNumRetry)return!1;if(s&&null!=(h=t.context)&&h.deliveryDirectives)this.warn(`Retrying playlist loading ${n+1}/${o.maxNumRetry} after "${e}" without delivery-directives`),this.loadPlaylist();else{const t=gb(o,n);this.timer=self.setTimeout((()=>this.loadPlaylist()),t),this.warn(`Retrying playlist loading ${n+1}/${o.maxNumRetry} after "${e}" in ${t}ms`)}t.levelRetry=!0,i.resolved=!0}return a}}class Lb{constructor(t,e=0,s=0){this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=t,this.alpha_=t?Math.exp(Math.log(.5)/t):0,this.estimate_=e,this.totalWeight_=s}sample(t,e){const s=Math.pow(this.alpha_,t);this.estimate_=e*(1-s)+s*this.estimate_,this.totalWeight_+=t}getTotalWeight(){return this.totalWeight_}getEstimate(){if(this.alpha_){const t=1-Math.pow(this.alpha_,this.totalWeight_);if(t)return this.estimate_/t}return this.estimate_}}class xb{constructor(t,e,s,i=100){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=s,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new Lb(t),this.fast_=new Lb(e),this.defaultTTFB_=i,this.ttfb_=new Lb(t)}update(t,e){const{slow_:s,fast_:i,ttfb_:r}=this;s.halfLife!==t&&(this.slow_=new Lb(t,s.getEstimate(),s.getTotalWeight())),i.halfLife!==e&&(this.fast_=new Lb(e,i.getEstimate(),i.getTotalWeight())),r.halfLife!==t&&(this.ttfb_=new Lb(t,r.getEstimate(),r.getTotalWeight()))}sample(t,e){const s=(t=Math.max(t,this.minDelayMs_))/1e3,i=8*e/s;this.fast_.sample(s,i),this.slow_.sample(s,i)}sampleTTFB(t){const e=t/1e3,s=Math.sqrt(2)*Math.exp(-Math.pow(e,2)/2);this.ttfb_.sample(s,Math.max(t,5))}canEstimate(){return this.fast_.getTotalWeight()>=this.minWeight_}getEstimate(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}getEstimateTTFB(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_}destroy(){}}const Pb={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]},Bb={};function Mb(t,e,s,i,r,n){const o=t.audioCodec?t.audioGroups:null,a=null==n?void 0:n.audioCodec,h=null==n?void 0:n.channels,c=h?parseInt(h):a?1/0:2;let l=null;if(null!=o&&o.length)try{l=1===o.length&&o[0]?e.groups[o[0]].channels:o.reduce(((t,s)=>{if(s){const i=e.groups[s];if(!i)throw new Error(`Audio track group ${s} not found`);Object.keys(i.channels).forEach((e=>{t[e]=(t[e]||0)+i.channels[e]}))}return t}),{2:0})}catch(t){return!0}return void 0!==t.videoCodec&&(t.width>1920&&t.height>1088||t.height>1920&&t.width>1088||t.frameRate>Math.max(i,30)||"SDR"!==t.videoRange&&t.videoRange!==s||t.bitrate>Math.max(r,8e6))||!!l&&vg(c)&&Object.keys(l).some((t=>parseInt(t)>c))}function Fb(t,e,s){const i=t.videoCodec,r=t.audioCodec;if(!i||!r||!s)return Promise.resolve(Pb);const n={width:t.width,height:t.height,bitrate:Math.ceil(Math.max(.9*t.bitrate,t.averageBitrate)),framerate:t.frameRate||30},o=t.videoRange;"SDR"!==o&&(n.transferFunction=o.toLowerCase());const a=i.split(",").map((t=>({type:"media-source",video:gg(gg({},n),{},{contentType:oy(t,"video")})})));return r&&t.audioGroups&&t.audioGroups.forEach((t=>{var s;t&&(null==(s=e.groups[t])||s.tracks.forEach((e=>{if(e.groupId===t){const t=e.channels||"",s=parseFloat(t);vg(s)&&s>2&&a.push.apply(a,r.split(",").map((t=>({type:"media-source",audio:{contentType:oy(t,"audio"),channels:""+s}}))))}})))})),Promise.all(a.map((t=>{const e=function(t){const{audio:e,video:s}=t,i=s||e;if(i){const t=i.contentType.split('"')[1];if(s)return`r${s.height}x${s.width}f${Math.ceil(s.framerate)}${s.transferFunction||"sd"}_${t}_${Math.ceil(s.bitrate/1e5)}`;if(e)return`c${e.channels}${e.spatialRendering?"s":"n"}_${t}`}return""}(t);return Bb[e]||(Bb[e]=s.decodingInfo(t))}))).then((t=>({supported:!t.some((t=>!t.supported)),configurations:a,decodingInfoResults:t}))).catch((t=>({supported:!1,configurations:a,decodingInfoResults:[],error:t})))}function Ob(t,e){let s=!1,i=[];return t&&(s="SDR"!==t,i=[t]),e&&(i=e.allowedVideoRanges||Zy.slice(0),s=void 0!==e.preferHDR?e.preferHDR:function(){if("function"==typeof matchMedia){const t=matchMedia("(dynamic-range: high)"),e=matchMedia("bad query");if(t.media!==e.media)return!0===t.matches}return!1}(),i=s?i.filter((t=>"SDR"!==t)):["SDR"]),{preferHDR:s,allowedVideoRanges:i}}function Ub(t,e){Dg.log(`[abr] start candidates with "${t}" ignored because ${e}`)}function Nb(t,e,s){if("attrs"in t){const s=e.indexOf(t);if(-1!==s)return s}for(let i=0;i<e.length;i++){if(jb(t,e[i],s))return i}return-1}function jb(t,e,s){const{groupId:i,name:r,lang:n,assocLang:o,characteristics:a,default:h}=t,c=t.forced;return(void 0===i||e.groupId===i)&&(void 0===r||e.name===r)&&(void 0===n||e.lang===n)&&(void 0===n||e.assocLang===o)&&(void 0===h||e.default===h)&&(void 0===c||e.forced===c)&&(void 0===a||function(t,e=""){const s=t.split(","),i=e.split(",");return s.length===i.length&&!s.some((t=>-1===i.indexOf(t)))}(a,e.characteristics))&&(void 0===s||s(t,e))}function Vb(t,e){const{audioCodec:s,channels:i}=t;return!(void 0!==s&&(e.audioCodec||"").substring(0,4)!==s.substring(0,4)||void 0!==i&&i!==(e.channels||"2"))}function zb(t,e,s){for(let i=e;i;i--)if(s(t[i]))return i;for(let i=e+1;i<t.length;i++)if(s(t[i]))return i;return-1}var Gb="NOT_LOADED",Wb="APPENDING",Hb="PARTIAL",Kb="OK";class Qb{constructor(t){this.activePartLists=Object.create(null),this.endListFragments=Object.create(null),this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hasGaps=!1,this.hls=t,this._registerListeners()}_registerListeners(){const{hls:t}=this;t.on(Eg.BUFFER_APPENDED,this.onBufferAppended,this),t.on(Eg.FRAG_BUFFERED,this.onFragBuffered,this),t.on(Eg.FRAG_LOADED,this.onFragLoaded,this)}_unregisterListeners(){const{hls:t}=this;t.off(Eg.BUFFER_APPENDED,this.onBufferAppended,this),t.off(Eg.FRAG_BUFFERED,this.onFragBuffered,this),t.off(Eg.FRAG_LOADED,this.onFragLoaded,this)}destroy(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}getAppendedFrag(t,e){const s=this.activePartLists[e];if(s)for(let e=s.length;e--;){const i=s[e];if(!i)break;const r=i.end;if(i.start<=t&&null!==r&&t<=r)return i}return this.getBufferedFrag(t,e)}getBufferedFrag(t,e){const{fragments:s}=this,i=Object.keys(s);for(let r=i.length;r--;){const n=s[i[r]];if((null==n?void 0:n.body.type)===e&&n.buffered){const e=n.body;if(e.start<=t&&t<=e.end)return e}}return null}detectEvictedFragments(t,e,s,i){this.timeRanges&&(this.timeRanges[t]=e);const r=(null==i?void 0:i.fragment.sn)||-1;Object.keys(this.fragments).forEach((i=>{const n=this.fragments[i];if(!n)return;if(r>=n.body.sn)return;if(!n.buffered&&!n.loaded)return void(n.body.type===s&&this.removeFragment(n.body));const o=n.range[t];o&&o.time.some((t=>{const s=!this.isTimeBuffered(t.startPTS,t.endPTS,e);return s&&this.removeFragment(n.body),s}))}))}detectPartialFragments(t){const e=this.timeRanges,{frag:s,part:i}=t;if(!e||"initSegment"===s.sn)return;const r=qb(s),n=this.fragments[r];if(!n||n.buffered&&s.gap)return;const o=!s.relurl;if(Object.keys(e).forEach((t=>{const r=s.elementaryStreams[t];if(!r)return;const a=e[t],h=o||!0===r.partial;n.range[t]=this.getBufferedTimes(s,i,h,a)})),n.loaded=null,Object.keys(n.range).length){n.buffered=!0;(n.body.endList=s.endList||n.body.endList)&&(this.endListFragments[n.body.type]=n),Yb(n)||this.removeParts(s.sn-1,s.type)}else this.removeFragment(n.body)}removeParts(t,e){const s=this.activePartLists[e];s&&(this.activePartLists[e]=s.filter((e=>e.fragment.sn>=t)))}fragBuffered(t,e){const s=qb(t);let i=this.fragments[s];!i&&e&&(i=this.fragments[s]={body:t,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},t.gap&&(this.hasGaps=!0)),i&&(i.loaded=null,i.buffered=!0)}getBufferedTimes(t,e,s,i){const r={time:[],partial:s},n=t.start,o=t.end,a=t.minEndPTS||o,h=t.maxStartPTS||n;for(let t=0;t<i.length;t++){const e=i.start(t)-this.bufferPadding,s=i.end(t)+this.bufferPadding;if(h>=e&&a<=s){r.time.push({startPTS:Math.max(n,i.start(t)),endPTS:Math.min(o,i.end(t))});break}if(n<s&&o>e){const e=Math.max(n,i.start(t)),s=Math.min(o,i.end(t));s>e&&(r.partial=!0,r.time.push({startPTS:e,endPTS:s}))}else if(o<=e)break}return r}getPartialFragment(t){let e,s,i,r=null,n=0;const{bufferPadding:o,fragments:a}=this;return Object.keys(a).forEach((h=>{const c=a[h];c&&Yb(c)&&(s=c.body.start-o,i=c.body.end+o,t>=s&&t<=i&&(e=Math.min(t-s,i-t),n<=e&&(r=c.body,n=e)))})),r}isEndListAppended(t){const e=this.endListFragments[t];return void 0!==e&&(e.buffered||Yb(e))}getState(t){const e=qb(t),s=this.fragments[e];return s?s.buffered?Yb(s)?Hb:Kb:Wb:Gb}isTimeBuffered(t,e,s){let i,r;for(let n=0;n<s.length;n++){if(i=s.start(n)-this.bufferPadding,r=s.end(n)+this.bufferPadding,t>=i&&e<=r)return!0;if(e<=i)return!1}return!1}onFragLoaded(t,e){const{frag:s,part:i}=e;if("initSegment"===s.sn||s.bitrateTest)return;const r=i?null:e,n=qb(s);this.fragments[n]={body:s,appendedPTS:null,loaded:r,buffered:!1,range:Object.create(null)}}onBufferAppended(t,e){const{frag:s,part:i,timeRanges:r}=e;if("initSegment"===s.sn)return;const n=s.type;if(i){let t=this.activePartLists[n];t||(this.activePartLists[n]=t=[]),t.push(i)}this.timeRanges=r,Object.keys(r).forEach((t=>{const e=r[t];this.detectEvictedFragments(t,e,n,i)}))}onFragBuffered(t,e){this.detectPartialFragments(e)}hasFragment(t){const e=qb(t);return!!this.fragments[e]}hasParts(t){var e;return!(null==(e=this.activePartLists[t])||!e.length)}removeFragmentsInRange(t,e,s,i,r){i&&!this.hasGaps||Object.keys(this.fragments).forEach((n=>{const o=this.fragments[n];if(!o)return;const a=o.body;a.type!==s||i&&!a.gap||a.start<e&&a.end>t&&(o.buffered||r)&&this.removeFragment(a)}))}removeFragment(t){const e=qb(t);t.stats.loaded=0,t.clearElementaryStreamInfo();const s=this.activePartLists[t.type];if(s){const e=t.sn;this.activePartLists[t.type]=s.filter((t=>t.fragment.sn!==e))}delete this.fragments[e],t.endList&&delete this.endListFragments[t.type]}removeAllFragments(){this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1}}function Yb(t){var e,s,i;return t.buffered&&(t.body.gap||(null==(e=t.range.video)?void 0:e.partial)||(null==(s=t.range.audio)?void 0:s.partial)||(null==(i=t.range.audiovideo)?void 0:i.partial))}function qb(t){return`${t.type}_${t.level}_${t.sn}`}const Jb={length:0,start:()=>0,end:()=>0};class Xb{static isBuffered(t,e){try{if(t){const s=Xb.getBuffered(t);for(let t=0;t<s.length;t++)if(e>=s.start(t)&&e<=s.end(t))return!0}}catch(t){}return!1}static bufferInfo(t,e,s){try{if(t){const i=Xb.getBuffered(t),r=[];let n;for(n=0;n<i.length;n++)r.push({start:i.start(n),end:i.end(n)});return this.bufferedInfo(r,e,s)}}catch(t){}return{len:0,start:e,end:e,nextStart:void 0}}static bufferedInfo(t,e,s){e=Math.max(0,e),t.sort((function(t,e){const s=t.start-e.start;return s||e.end-t.end}));let i=[];if(s)for(let e=0;e<t.length;e++){const r=i.length;if(r){const n=i[r-1].end;t[e].start-n<s?t[e].end>n&&(i[r-1].end=t[e].end):i.push(t[e])}else i.push(t[e])}else i=t;let r,n=0,o=e,a=e;for(let t=0;t<i.length;t++){const h=i[t].start,c=i[t].end;if(e+s>=h&&e<c)o=h,a=c,n=a-e;else if(e+s<h){r=h;break}}return{len:n,start:o||0,end:a||0,nextStart:r}}static getBuffered(t){try{return t.buffered}catch(t){return Dg.log("failed to get media.buffered",t),Jb}}}class Zb{constructor(t,e,s,i=0,r=-1,n=!1){this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing={start:0,executeStart:0,executeEnd:0,end:0},this.buffering={audio:{start:0,executeStart:0,executeEnd:0,end:0},video:{start:0,executeStart:0,executeEnd:0,end:0},audiovideo:{start:0,executeStart:0,executeEnd:0,end:0}},this.level=t,this.sn=e,this.id=s,this.size=i,this.part=r,this.partial=n}}function $b(t,e){for(let i=0,r=t.length;i<r;i++){var s;if((null==(s=t[i])?void 0:s.cc)===e)return t[i]}return null}function tv(t,e){if(t){const s=t.start+e;t.start=t.startPTS=s,t.endPTS=s+t.duration}}function ev(t,e){const s=e.fragments;for(let e=0,i=s.length;e<i;e++)tv(s[e],t);e.fragmentHint&&tv(e.fragmentHint,t),e.alignedSliding=!0}function sv(t,e,s){e&&(!function(t,e,s){if(function(t,e,s){return!(!e||!(s.endCC>s.startCC||t&&t.cc<s.startCC))}(t,s,e)){const t=function(t,e){const s=t.fragments,i=e.fragments;if(!i.length||!s.length)return void Dg.log("No fragments to align");const r=$b(s,i[0].cc);if(r&&(!r||r.startPTS))return r;Dg.log("No frag in previous level to align on")}(s,e);t&&vg(t.start)&&(Dg.log(`Adjusting PTS using last level due to CC increase within current level ${e.url}`),ev(t.start,e))}}(t,s,e),!s.alignedSliding&&e&&iv(s,e),s.alignedSliding||!e||s.skippedSegments||cb(e,s))}function iv(t,e){if(!t.hasProgramDateTime||!e.hasProgramDateTime)return;const s=t.fragments,i=e.fragments;if(!s.length||!i.length)return;let r,n;const o=Math.min(e.endCC,t.endCC);e.startCC<o&&t.startCC<o&&(r=$b(i,o),n=$b(s,o)),r&&n||(r=i[Math.floor(i.length/2)],n=$b(s,r.cc)||s[Math.floor(s.length/2)]);const a=r.programDateTime,h=n.programDateTime;if(!a||!h)return;ev((h-a)/1e3-(n.start-r.start),t)}const rv=Math.pow(2,17);class nv{constructor(t){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=t}destroy(){this.loader&&(this.loader.destroy(),this.loader=null)}abort(){this.loader&&this.loader.abort()}load(t,e){const s=t.url;if(!s)return Promise.reject(new hv({type:Ig.NETWORK_ERROR,details:Tg.FRAG_LOAD_ERROR,fatal:!1,frag:t,error:new Error("Fragment does not have a "+(s?"part list":"url")),networkDetails:null}));this.abort();const i=this.config,r=i.fLoader,n=i.loader;return new Promise(((o,a)=>{if(this.loader&&this.loader.destroy(),t.gap){if(t.tagList.some((t=>"GAP"===t[0])))return void a(av(t));t.gap=!1}const h=this.loader=t.loader=r?new r(i):new n(i),c=ov(t),l=Ab(i.fragLoadPolicy.default),d={loadPolicy:l,timeout:l.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:"initSegment"===t.sn?1/0:rv};t.stats=h.stats,h.load(c,d,{onSuccess:(e,s,i,r)=>{this.resetLoader(t,h);let n=e.data;i.resetIV&&t.decryptdata&&(t.decryptdata.iv=new Uint8Array(n.slice(0,16)),n=n.slice(16)),o({frag:t,part:null,payload:n,networkDetails:r})},onError:(e,i,r,n)=>{this.resetLoader(t,h),a(new hv({type:Ig.NETWORK_ERROR,details:Tg.FRAG_LOAD_ERROR,fatal:!1,frag:t,response:gg({url:s,data:void 0},e),error:new Error(`HTTP Error ${e.code} ${e.text}`),networkDetails:r,stats:n}))},onAbort:(e,s,i)=>{this.resetLoader(t,h),a(new hv({type:Ig.NETWORK_ERROR,details:Tg.INTERNAL_ABORTED,fatal:!1,frag:t,error:new Error("Aborted"),networkDetails:i,stats:e}))},onTimeout:(e,s,i)=>{this.resetLoader(t,h),a(new hv({type:Ig.NETWORK_ERROR,details:Tg.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,error:new Error(`Timeout after ${d.timeout}ms`),networkDetails:i,stats:e}))},onProgress:(s,i,r,n)=>{e&&e({frag:t,part:null,payload:r,networkDetails:n})}})}))}loadPart(t,e,s){this.abort();const i=this.config,r=i.fLoader,n=i.loader;return new Promise(((o,a)=>{if(this.loader&&this.loader.destroy(),t.gap||e.gap)return void a(av(t,e));const h=this.loader=t.loader=r?new r(i):new n(i),c=ov(t,e),l=Ab(i.fragLoadPolicy.default),d={loadPolicy:l,timeout:l.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:rv};e.stats=h.stats,h.load(c,d,{onSuccess:(i,r,n,a)=>{this.resetLoader(t,h),this.updateStatsFromPart(t,e);const c={frag:t,part:e,payload:i.data,networkDetails:a};s(c),o(c)},onError:(s,i,r,n)=>{this.resetLoader(t,h),a(new hv({type:Ig.NETWORK_ERROR,details:Tg.FRAG_LOAD_ERROR,fatal:!1,frag:t,part:e,response:gg({url:c.url,data:void 0},s),error:new Error(`HTTP Error ${s.code} ${s.text}`),networkDetails:r,stats:n}))},onAbort:(s,i,r)=>{t.stats.aborted=e.stats.aborted,this.resetLoader(t,h),a(new hv({type:Ig.NETWORK_ERROR,details:Tg.INTERNAL_ABORTED,fatal:!1,frag:t,part:e,error:new Error("Aborted"),networkDetails:r,stats:s}))},onTimeout:(s,i,r)=>{this.resetLoader(t,h),a(new hv({type:Ig.NETWORK_ERROR,details:Tg.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,part:e,error:new Error(`Timeout after ${d.timeout}ms`),networkDetails:r,stats:s}))}})}))}updateStatsFromPart(t,e){const s=t.stats,i=e.stats,r=i.total;if(s.loaded+=i.loaded,r){const i=Math.round(t.duration/e.duration),n=Math.min(Math.round(s.loaded/r),i),o=(i-n)*Math.round(s.loaded/n);s.total=s.loaded+o}else s.total=Math.max(s.loaded,s.total);const n=s.loading,o=i.loading;n.start?n.first+=o.first-o.start:(n.start=o.start,n.first=o.first),n.end=o.end}resetLoader(t,e){t.loader=null,this.loader===e&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),e.destroy()}}function ov(t,e=null){const s=e||t,i={frag:t,part:e,responseType:"arraybuffer",url:s.url,headers:{},rangeStart:0,rangeEnd:0},r=s.byteRangeStartOffset,n=s.byteRangeEndOffset;if(vg(r)&&vg(n)){var o;let e=r,s=n;if("initSegment"===t.sn&&"AES-128"===(null==(o=t.decryptdata)?void 0:o.method)){const t=n-r;t%16&&(s=n+(16-t%16)),0!==r&&(i.resetIV=!0,e=r-16)}i.rangeStart=e,i.rangeEnd=s}return i}function av(t,e){const s=new Error(`GAP ${t.gap?"tag":"attribute"} found`),i={type:Ig.MEDIA_ERROR,details:Tg.FRAG_GAP,fatal:!1,frag:t,error:s,networkDetails:null};return e&&(i.part=e),(e||t).stats.aborted=!0,new hv(i)}class hv extends Error{constructor(t){super(t.error.message),this.data=void 0,this.data=t}}class cv{constructor(t,e){this.subtle=void 0,this.aesIV=void 0,this.subtle=t,this.aesIV=e}decrypt(t,e){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},e,t)}}class lv{constructor(t,e){this.subtle=void 0,this.key=void 0,this.subtle=t,this.key=e}expandKey(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])}}class dv{constructor(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}uint8ArrayToUint32Array_(t){const e=new DataView(t),s=new Uint32Array(4);for(let t=0;t<4;t++)s[t]=e.getUint32(4*t);return s}initTable(){const t=this.sBox,e=this.invSBox,s=this.subMix,i=s[0],r=s[1],n=s[2],o=s[3],a=this.invSubMix,h=a[0],c=a[1],l=a[2],d=a[3],u=new Uint32Array(256);let p=0,f=0,m=0;for(m=0;m<256;m++)u[m]=m<128?m<<1:m<<1^283;for(m=0;m<256;m++){let s=f^f<<1^f<<2^f<<3^f<<4;s=s>>>8^255&s^99,t[p]=s,e[s]=p;const a=u[p],m=u[a],g=u[m];let A=257*u[s]^16843008*s;i[p]=A<<24|A>>>8,r[p]=A<<16|A>>>16,n[p]=A<<8|A>>>24,o[p]=A,A=16843009*g^65537*m^257*a^16843008*p,h[s]=A<<24|A>>>8,c[s]=A<<16|A>>>16,l[s]=A<<8|A>>>24,d[s]=A,p?(p=a^u[u[u[g^a]]],f^=u[u[f]]):p=f=1}}expandKey(t){const e=this.uint8ArrayToUint32Array_(t);let s=!0,i=0;for(;i<e.length&&s;)s=e[i]===this.key[i],i++;if(s)return;this.key=e;const r=this.keySize=e.length;if(4!==r&&6!==r&&8!==r)throw new Error("Invalid aes key size="+r);const n=this.ksRows=4*(r+6+1);let o,a;const h=this.keySchedule=new Uint32Array(n),c=this.invKeySchedule=new Uint32Array(n),l=this.sBox,d=this.rcon,u=this.invSubMix,p=u[0],f=u[1],m=u[2],g=u[3];let A,y;for(o=0;o<n;o++)o<r?A=h[o]=e[o]:(y=A,o%r==0?(y=y<<8|y>>>24,y=l[y>>>24]<<24|l[y>>>16&255]<<16|l[y>>>8&255]<<8|l[255&y],y^=d[o/r|0]<<24):r>6&&o%r==4&&(y=l[y>>>24]<<24|l[y>>>16&255]<<16|l[y>>>8&255]<<8|l[255&y]),h[o]=A=(h[o-r]^y)>>>0);for(a=0;a<n;a++)o=n-a,y=3&a?h[o]:h[o-4],c[a]=a<4||o<=4?y:p[l[y>>>24]]^f[l[y>>>16&255]]^m[l[y>>>8&255]]^g[l[255&y]],c[a]=c[a]>>>0}networkToHostOrderSwap(t){return t<<24|(65280&t)<<8|(16711680&t)>>8|t>>>24}decrypt(t,e,s){const i=this.keySize+6,r=this.invKeySchedule,n=this.invSBox,o=this.invSubMix,a=o[0],h=o[1],c=o[2],l=o[3],d=this.uint8ArrayToUint32Array_(s);let u=d[0],p=d[1],f=d[2],m=d[3];const g=new Int32Array(t),A=new Int32Array(g.length);let y,b,v,S,w,E,I,T,k,_,C,R,D,L;const x=this.networkToHostOrderSwap;for(;e<g.length;){for(k=x(g[e]),_=x(g[e+1]),C=x(g[e+2]),R=x(g[e+3]),w=k^r[0],E=R^r[1],I=C^r[2],T=_^r[3],D=4,L=1;L<i;L++)y=a[w>>>24]^h[E>>16&255]^c[I>>8&255]^l[255&T]^r[D],b=a[E>>>24]^h[I>>16&255]^c[T>>8&255]^l[255&w]^r[D+1],v=a[I>>>24]^h[T>>16&255]^c[w>>8&255]^l[255&E]^r[D+2],S=a[T>>>24]^h[w>>16&255]^c[E>>8&255]^l[255&I]^r[D+3],w=y,E=b,I=v,T=S,D+=4;y=n[w>>>24]<<24^n[E>>16&255]<<16^n[I>>8&255]<<8^n[255&T]^r[D],b=n[E>>>24]<<24^n[I>>16&255]<<16^n[T>>8&255]<<8^n[255&w]^r[D+1],v=n[I>>>24]<<24^n[T>>16&255]<<16^n[w>>8&255]<<8^n[255&E]^r[D+2],S=n[T>>>24]<<24^n[w>>16&255]<<16^n[E>>8&255]<<8^n[255&I]^r[D+3],A[e]=x(y^u),A[e+1]=x(S^p),A[e+2]=x(v^f),A[e+3]=x(b^m),u=k,p=_,f=C,m=R,e+=4}return A.buffer}}class uv{constructor(t,{removePKCS7Padding:e=!0}={}){if(this.logEnabled=!0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.useSoftware=void 0,this.useSoftware=t.enableSoftwareAES,this.removePKCS7Padding=e,e)try{const t=self.crypto;t&&(this.subtle=t.subtle||t.webkitSubtle)}catch(t){}this.useSoftware=!this.subtle}destroy(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null}isSync(){return this.useSoftware}flush(){const{currentResult:t,remainderData:e}=this;if(!t||e)return this.reset(),null;const s=new Uint8Array(t);return this.reset(),this.removePKCS7Padding?function(t){const e=t.byteLength,s=e&&new DataView(t.buffer).getUint8(e-1);return s?nA(t,0,e-s):t}(s):s}reset(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}decrypt(t,e,s){return this.useSoftware?new Promise(((i,r)=>{this.softwareDecrypt(new Uint8Array(t),e,s);const n=this.flush();n?i(n.buffer):r(new Error("[softwareDecrypt] Failed to decrypt data"))})):this.webCryptoDecrypt(new Uint8Array(t),e,s)}softwareDecrypt(t,e,s){const{currentIV:i,currentResult:r,remainderData:n}=this;this.logOnce("JS AES decrypt"),n&&(t=zA(n,t),this.remainderData=null);const o=this.getValidChunk(t);if(!o.length)return null;i&&(s=i);let a=this.softwareDecrypter;a||(a=this.softwareDecrypter=new dv),a.expandKey(e);const h=r;return this.currentResult=a.decrypt(o.buffer,0,s),this.currentIV=nA(o,-16).buffer,h||null}webCryptoDecrypt(t,e,s){if(this.key!==e||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(t,e,s));this.key=e,this.fastAesKey=new lv(this.subtle,e)}return this.fastAesKey.expandKey().then((e=>{if(!this.subtle)return Promise.reject(new Error("web crypto not initialized"));this.logOnce("WebCrypto AES decrypt");return new cv(this.subtle,new Uint8Array(s)).decrypt(t.buffer,e)})).catch((i=>(Dg.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${i.name}: ${i.message}`),this.onWebCryptoError(t,e,s))))}onWebCryptoError(t,e,s){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(t,e,s);const i=this.flush();if(i)return i.buffer;throw new Error("WebCrypto and softwareDecrypt: failed to decrypt data")}getValidChunk(t){let e=t;const s=t.length-t.length%16;return s!==t.length&&(e=nA(t,0,s),this.remainderData=nA(t,s)),e}logOnce(t){this.logEnabled&&(Dg.log(`[decrypter]: ${t}`),this.logEnabled=!1)}}const pv=function(t){let e="";const s=t.length;for(let i=0;i<s;i++)e+=`[${t.start(i).toFixed(3)}-${t.end(i).toFixed(3)}]`;return e},fv="STOPPED",mv="IDLE",gv="KEY_LOADING",Av="FRAG_LOADING",yv="FRAG_LOADING_WAITING_RETRY",bv="WAITING_TRACK",vv="PARSING",Sv="PARSED",wv="ENDED",Ev="ERROR",Iv="WAITING_INIT_PTS",Tv="WAITING_LEVEL";class kv extends class{constructor(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}destroy(){this.onHandlerDestroying(),this.onHandlerDestroyed()}onHandlerDestroying(){this.clearNextTick(),this.clearInterval()}onHandlerDestroyed(){}hasInterval(){return!!this._tickInterval}hasNextTick(){return!!this._tickTimer}setInterval(t){return!this._tickInterval&&(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,t),!0)}clearInterval(){return!!this._tickInterval&&(self.clearInterval(this._tickInterval),this._tickInterval=null,!0)}clearNextTick(){return!!this._tickTimer&&(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0)}tick(){this._tickCallCount++,1===this._tickCallCount&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}tickImmediate(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}doTick(){}}{constructor(t,e,s,i,r){super(),this.hls=void 0,this.fragPrevious=null,this.fragCurrent=null,this.fragmentTracker=void 0,this.transmuxer=null,this._state=fv,this.playlistType=void 0,this.media=null,this.mediaBuffer=null,this.config=void 0,this.bitrateTest=!1,this.lastCurrentTime=0,this.nextLoadPosition=0,this.startPosition=0,this.startTimeOffset=null,this.loadedmetadata=!1,this.retryDate=0,this.levels=null,this.fragmentLoader=void 0,this.keyLoader=void 0,this.levelLastLoaded=null,this.startFragRequested=!1,this.decrypter=void 0,this.initPTS=[],this.onvseeking=null,this.onvended=null,this.logPrefix="",this.log=void 0,this.warn=void 0,this.playlistType=r,this.logPrefix=i,this.log=Dg.log.bind(Dg,`${i}:`),this.warn=Dg.warn.bind(Dg,`${i}:`),this.hls=t,this.fragmentLoader=new nv(t.config),this.keyLoader=s,this.fragmentTracker=e,this.config=t.config,this.decrypter=new uv(t.config),t.on(Eg.MANIFEST_LOADED,this.onManifestLoaded,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(t){}stopLoad(){this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);const t=this.fragCurrent;null!=t&&t.loader&&(t.abortRequests(),this.fragmentTracker.removeFragment(t)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=fv}_streamEnded(t,e){if(e.live||t.nextStart||!t.end||!this.media)return!1;const s=e.partList;if(null!=s&&s.length){const t=s[s.length-1];return Xb.isBuffered(this.media,t.start+t.duration/2)}const i=e.fragments[e.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(i)}getLevelDetails(){var t;if(this.levels&&null!==this.levelLastLoaded)return null==(t=this.levelLastLoaded)?void 0:t.details}onMediaAttached(t,e){const s=this.media=this.mediaBuffer=e.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),s.addEventListener("seeking",this.onvseeking),s.addEventListener("ended",this.onvended);const i=this.config;this.levels&&i.autoStartLoad&&this.state===fv&&this.startLoad(i.startPosition)}onMediaDetaching(){const t=this.media;null!=t&&t.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),t&&this.onvseeking&&this.onvended&&(t.removeEventListener("seeking",this.onvseeking),t.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.keyLoader&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()}onMediaSeeking(){const{config:t,fragCurrent:e,media:s,mediaBuffer:i,state:r}=this,n=s?s.currentTime:0,o=Xb.bufferInfo(i||s,n,t.maxBufferHole);if(this.log(`media seeking to ${vg(n)?n.toFixed(3):n}, state: ${r}`),this.state===wv)this.resetLoadingState();else if(e){const s=t.maxFragLookUpTolerance,i=e.start-s,r=e.start+e.duration+s;if(!o.len||r<o.start||i>o.end){const t=n>r;(n<i||t)&&(t&&e.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),e.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}s&&(this.fragmentTracker.removeFragmentsInRange(n,1/0,this.playlistType,!0),this.lastCurrentTime=n),this.loadedmetadata||o.len||(this.nextLoadPosition=this.startPosition=n),this.tickImmediate()}onMediaEnded(){this.startPosition=this.lastCurrentTime=0}onManifestLoaded(t,e){this.startTimeOffset=e.startTimeOffset,this.initPTS=[]}onHandlerDestroying(){this.hls.off(Eg.MANIFEST_LOADED,this.onManifestLoaded,this),this.stopLoad(),super.onHandlerDestroying(),this.hls=null}onHandlerDestroyed(){this.state=fv,this.fragmentLoader&&this.fragmentLoader.destroy(),this.keyLoader&&this.keyLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.keyLoader=this.fragmentLoader=this.fragmentTracker=null,super.onHandlerDestroyed()}loadFragment(t,e,s){this._loadFragForPlayback(t,e,s)}_loadFragForPlayback(t,e,s){this._doFragLoad(t,e,s,(e=>{if(this.fragContextChanged(t))return this.warn(`Fragment ${t.sn}${e.part?" p: "+e.part.index:""} of level ${t.level} was dropped during download.`),void this.fragmentTracker.removeFragment(t);t.stats.chunkCount++,this._handleFragmentLoadProgress(e)})).then((e=>{if(!e)return;const s=this.state;this.fragContextChanged(t)?(s===Av||!this.fragCurrent&&s===vv)&&(this.fragmentTracker.removeFragment(t),this.state=mv):("payload"in e&&(this.log(`Loaded fragment ${t.sn} of level ${t.level}`),this.hls.trigger(Eg.FRAG_LOADED,e)),this._handleFragmentLoadComplete(e))})).catch((e=>{this.state!==fv&&this.state!==Ev&&(this.warn(`Frag error: ${(null==e?void 0:e.message)||e}`),this.resetFragmentLoading(t))}))}clearTrackerIfNeeded(t){var e;const{fragmentTracker:s}=this;if(s.getState(t)===Wb){const e=t.type,i=this.getFwdBufferInfo(this.mediaBuffer,e),r=Math.max(t.duration,i?i.len:this.config.maxBufferLength),n=this.backtrackFragment;(1===(n?t.sn-n.sn:0)||this.reduceMaxBufferLength(r,t.duration))&&s.removeFragment(t)}else 0===(null==(e=this.mediaBuffer)?void 0:e.buffered.length)?s.removeAllFragments():s.hasParts(t.type)&&(s.detectPartialFragments({frag:t,part:null,stats:t.stats,id:t.type}),s.getState(t)===Hb&&s.removeFragment(t))}checkLiveUpdate(t){if(t.updated&&!t.live){const e=t.fragments[t.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:e,part:null,stats:e.stats,id:e.type})}t.fragments[0]||(t.deltaUpdateFailed=!0)}flushMainBuffer(t,e,s=null){if(!(t-e))return;const i={startOffset:t,endOffset:e,type:s};this.hls.trigger(Eg.BUFFER_FLUSHING,i)}_loadInitSegment(t,e){this._doFragLoad(t,e).then((e=>{if(!e||this.fragContextChanged(t)||!this.levels)throw new Error("init load aborted");return e})).then((e=>{const{hls:s}=this,{payload:i}=e,r=t.decryptdata;if(i&&i.byteLength>0&&null!=r&&r.key&&r.iv&&"AES-128"===r.method){const n=self.performance.now();return this.decrypter.decrypt(new Uint8Array(i),r.key.buffer,r.iv.buffer).catch((e=>{throw s.trigger(Eg.ERROR,{type:Ig.MEDIA_ERROR,details:Tg.FRAG_DECRYPT_ERROR,fatal:!1,error:e,reason:e.message,frag:t}),e})).then((i=>{const r=self.performance.now();return s.trigger(Eg.FRAG_DECRYPTED,{frag:t,payload:i,stats:{tstart:n,tdecrypt:r}}),e.payload=i,this.completeInitSegmentLoad(e)}))}return this.completeInitSegmentLoad(e)})).catch((e=>{this.state!==fv&&this.state!==Ev&&(this.warn(e),this.resetFragmentLoading(t))}))}completeInitSegmentLoad(t){const{levels:e}=this;if(!e)throw new Error("init load aborted, missing levels");const s=t.frag.stats;this.state=mv,t.frag.data=new Uint8Array(t.payload),s.parsing.start=s.buffering.start=self.performance.now(),s.parsing.end=s.buffering.end=self.performance.now(),this.tick()}fragContextChanged(t){const{fragCurrent:e}=this;return!t||!e||t.sn!==e.sn||t.level!==e.level}fragBufferedComplete(t,e){var s,i,r,n;const o=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log(`Buffered ${t.type} sn: ${t.sn}${e?" part: "+e.index:""} of ${this.playlistType===Dy?"level":"track"} ${t.level} (frag:[${(null!=(s=t.startPTS)?s:NaN).toFixed(3)}-${(null!=(i=t.endPTS)?i:NaN).toFixed(3)}] > buffer:${o?pv(Xb.getBuffered(o)):"(detached)"})`),"initSegment"!==t.sn){var a;if(t.type!==xy){const e=t.elementaryStreams;if(!Object.keys(e).some((t=>!!e[t])))return void(this.state=mv)}const e=null==(a=this.levels)?void 0:a[t.level];null!=e&&e.fragmentError&&(this.log(`Resetting level fragment error count of ${e.fragmentError} on frag buffered`),e.fragmentError=0)}this.state=mv,o&&(!this.loadedmetadata&&t.type==Dy&&o.buffered.length&&(null==(r=this.fragCurrent)?void 0:r.sn)===(null==(n=this.fragPrevious)?void 0:n.sn)&&(this.loadedmetadata=!0,this.seekToStartPos()),this.tick())}seekToStartPos(){}_handleFragmentLoadComplete(t){const{transmuxer:e}=this;if(!e)return;const{frag:s,part:i,partsLoaded:r}=t,n=!r||0===r.length||r.some((t=>!t)),o=new Zb(s.level,s.sn,s.stats.chunkCount+1,0,i?i.index:-1,!n);e.flush(o)}_handleFragmentLoadProgress(t){}_doFragLoad(t,e,s=null,i){var r;const n=null==e?void 0:e.details;if(!this.levels||!n)throw new Error(`frag load aborted, missing level${n?"":" detail"}s`);let o=null;if(!t.encrypted||null!=(r=t.decryptdata)&&r.key?!t.encrypted&&n.encryptedFragments.length&&this.keyLoader.loadClear(t,n.encryptedFragments):(this.log(`Loading key for ${t.sn} of [${n.startSN}-${n.endSN}], ${"[stream-controller]"===this.logPrefix?"level":"track"} ${t.level}`),this.state=gv,this.fragCurrent=t,o=this.keyLoader.load(t).then((t=>{if(!this.fragContextChanged(t.frag))return this.hls.trigger(Eg.KEY_LOADED,t),this.state===gv&&(this.state=mv),t})),this.hls.trigger(Eg.KEY_LOADING,{frag:t}),null===this.fragCurrent&&(o=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING")))),s=Math.max(t.start,s||0),this.config.lowLatencyMode&&"initSegment"!==t.sn){const r=n.partList;if(r&&i){s>t.end&&n.fragmentHint&&(t=n.fragmentHint);const a=this.getNextPart(r,t,s);if(a>-1){const h=r[a];let c;return this.log(`Loading part sn: ${t.sn} p: ${h.index} cc: ${t.cc} of playlist [${n.startSN}-${n.endSN}] parts [0-${a}-${r.length-1}] ${"[stream-controller]"===this.logPrefix?"level":"track"}: ${t.level}, target: ${parseFloat(s.toFixed(3))}`),this.nextLoadPosition=h.start+h.duration,this.state=Av,c=o?o.then((s=>!s||this.fragContextChanged(s.frag)?null:this.doFragPartsLoad(t,h,e,i))).catch((t=>this.handleFragLoadError(t))):this.doFragPartsLoad(t,h,e,i).catch((t=>this.handleFragLoadError(t))),this.hls.trigger(Eg.FRAG_LOADING,{frag:t,part:h,targetBufferTime:s}),null===this.fragCurrent?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):c}if(!t.url||this.loadedEndOfParts(r,s))return Promise.resolve(null)}}this.log(`Loading fragment ${t.sn} cc: ${t.cc} ${n?"of ["+n.startSN+"-"+n.endSN+"] ":""}${"[stream-controller]"===this.logPrefix?"level":"track"}: ${t.level}, target: ${parseFloat(s.toFixed(3))}`),vg(t.sn)&&!this.bitrateTest&&(this.nextLoadPosition=t.start+t.duration),this.state=Av;const a=this.config.progressive;let h;return h=a&&o?o.then((e=>!e||this.fragContextChanged(null==e?void 0:e.frag)?null:this.fragmentLoader.load(t,i))).catch((t=>this.handleFragLoadError(t))):Promise.all([this.fragmentLoader.load(t,a?i:void 0),o]).then((([t])=>(!a&&t&&i&&i(t),t))).catch((t=>this.handleFragLoadError(t))),this.hls.trigger(Eg.FRAG_LOADING,{frag:t,targetBufferTime:s}),null===this.fragCurrent?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):h}doFragPartsLoad(t,e,s,i){return new Promise(((r,n)=>{var o;const a=[],h=null==(o=s.details)?void 0:o.partList,c=e=>{this.fragmentLoader.loadPart(t,e,i).then((i=>{a[e.index]=i;const n=i.part;this.hls.trigger(Eg.FRAG_LOADED,i);const o=db(s,t.sn,e.index+1)||ub(h,t.sn,e.index+1);if(!o)return r({frag:t,part:n,partsLoaded:a});c(o)})).catch(n)};c(e)}))}handleFragLoadError(t){if("data"in t){const e=t.data;t.data&&e.details===Tg.INTERNAL_ABORTED?this.handleFragLoadAborted(e.frag,e.part):this.hls.trigger(Eg.ERROR,e)}else this.hls.trigger(Eg.ERROR,{type:Ig.OTHER_ERROR,details:Tg.INTERNAL_EXCEPTION,err:t,error:t,fatal:!0});return null}_handleTransmuxerFlush(t){const e=this.getCurrentContext(t);if(!e||this.state!==vv)return void(this.fragCurrent||this.state===fv||this.state===Ev||(this.state=mv));const{frag:s,part:i,level:r}=e,n=self.performance.now();s.stats.parsing.end=n,i&&(i.stats.parsing.end=n),this.updateLevelTiming(s,i,r,t.partial)}getCurrentContext(t){const{levels:e,fragCurrent:s}=this,{level:i,sn:r,part:n}=t;if(null==e||!e[i])return this.warn(`Levels object was unset while buffering fragment ${r} of level ${i}. The current chunk will not be buffered.`),null;const o=e[i],a=n>-1?db(o,r,n):null,h=a?a.fragment:function(t,e,s){if(null==t||!t.details)return null;const i=t.details;let r=i.fragments[e-i.startSN];return r||(r=i.fragmentHint,r&&r.sn===e?r:e<i.startSN&&s&&s.sn===e?s:null)}(o,r,s);return h?(s&&s!==h&&(h.stats=s.stats),{frag:h,part:a,level:o}):null}bufferFragmentData(t,e,s,i,r){var n;if(!t||this.state!==vv)return;const{data1:o,data2:a}=t;let h=o;if(o&&a&&(h=zA(o,a)),null==(n=h)||!n.length)return;const c={type:t.type,frag:e,part:s,chunkMeta:i,parent:e.type,data:h};if(this.hls.trigger(Eg.BUFFER_APPENDING,c),t.dropped&&t.independent&&!s){if(r)return;this.flushBufferGap(e)}}flushBufferGap(t){const e=this.media;if(!e)return;if(!Xb.isBuffered(e,e.currentTime))return void this.flushMainBuffer(0,t.start);const s=e.currentTime,i=Xb.bufferInfo(e,s,0),r=t.duration,n=Math.min(2*this.config.maxFragLookUpTolerance,.25*r),o=Math.max(Math.min(t.start-n,i.end-n),s+n);t.start-o>n&&this.flushMainBuffer(o,t.start)}getFwdBufferInfo(t,e){const s=this.getLoadPosition();return vg(s)?this.getFwdBufferInfoAtPos(t,s,e):null}getFwdBufferInfoAtPos(t,e,s){const{config:{maxBufferHole:i}}=this,r=Xb.bufferInfo(t,e,i);if(0===r.len&&void 0!==r.nextStart){const n=this.fragmentTracker.getBufferedFrag(e,s);if(n&&r.nextStart<n.end)return Xb.bufferInfo(t,e,Math.max(r.nextStart,i))}return r}getMaxBufferLength(t){const{config:e}=this;let s;return s=t?Math.max(8*e.maxBufferSize/t,e.maxBufferLength):e.maxBufferLength,Math.min(s,e.maxMaxBufferLength)}reduceMaxBufferLength(t,e){const s=this.config,i=Math.max(Math.min(t-e,s.maxBufferLength),e),r=Math.max(t-3*e,s.maxMaxBufferLength/2,i);return r>=i&&(s.maxMaxBufferLength=r,this.warn(`Reduce max buffer length to ${r}s`),!0)}getAppendedFrag(t,e=Dy){const s=this.fragmentTracker.getAppendedFrag(t,Dy);return s&&"fragment"in s?s.fragment:s}getNextFragment(t,e){const s=e.fragments,i=s.length;if(!i)return null;const{config:r}=this,n=s[0].start;let o;if(e.live){const a=r.initialLiveManifestSize;if(i<a)return this.warn(`Not enough fragments to start playback (have: ${i}, need: ${a})`),null;(!e.PTSKnown&&!this.startFragRequested&&-1===this.startPosition||t<n)&&(o=this.getInitialLiveFragment(e,s),this.startPosition=this.nextLoadPosition=o?this.hls.liveSyncPosition||o.start:t)}else t<=n&&(o=s[0]);if(!o){const s=r.lowLatencyMode?e.partEnd:e.fragmentEnd;o=this.getFragmentAtPosition(t,s,e)}return this.mapToInitFragWhenRequired(o)}isLoopLoading(t,e){const s=this.fragmentTracker.getState(t);return(s===Kb||s===Hb&&!!t.gap)&&this.nextLoadPosition>e}getNextFragmentLoopLoading(t,e,s,i,r){const n=t.gap,o=this.getNextFragment(this.nextLoadPosition,e);if(null===o)return o;if(t=o,n&&t&&!t.gap&&s.nextStart){const e=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,s.nextStart,i);if(null!==e&&s.len+e.len>=r)return this.log(`buffer full after gaps in "${i}" playlist starting at sn: ${t.sn}`),null}return t}mapToInitFragWhenRequired(t){return null==t||!t.initSegment||null!=t&&t.initSegment.data||this.bitrateTest?t:t.initSegment}getNextPart(t,e,s){let i=-1,r=!1,n=!0;for(let o=0,a=t.length;o<a;o++){const a=t[o];if(n=n&&!a.independent,i>-1&&s<a.start)break;const h=a.loaded;h?i=-1:(r||a.independent||n)&&a.fragment===e&&(i=o),r=h}return i}loadedEndOfParts(t,e){const s=t[t.length-1];return s&&e>s.start&&s.loaded}getInitialLiveFragment(t,e){const s=this.fragPrevious;let i=null;if(s){if(t.hasProgramDateTime&&(this.log(`Live playlist, switching playlist, load frag with same PDT: ${s.programDateTime}`),i=function(t,e,s){if(null===e||!Array.isArray(t)||!t.length||!vg(e))return null;if(e<(t[0].programDateTime||0))return null;if(e>=(t[t.length-1].endProgramDateTime||0))return null;s=s||0;for(let i=0;i<t.length;++i){const r=t[i];if(wb(e,s,r))return r}return null}(e,s.endProgramDateTime,this.config.maxFragLookUpTolerance)),!i){const r=s.sn+1;if(r>=t.startSN&&r<=t.endSN){const n=e[r-t.startSN];s.cc===n.cc&&(i=n,this.log(`Live playlist, switching playlist, load frag with next SN: ${i.sn}`))}i||(i=function(t,e){return bb(t,(t=>t.cc<e?1:t.cc>e?-1:0))}(e,s.cc),i&&this.log(`Live playlist, switching playlist, load frag with same CC: ${i.sn}`))}}else{const e=this.hls.liveSyncPosition;null!==e&&(i=this.getFragmentAtPosition(e,this.bitrateTest?t.fragmentEnd:t.edge,t))}return i}getFragmentAtPosition(t,e,s){const{config:i}=this;let{fragPrevious:r}=this,{fragments:n,endSN:o}=s;const{fragmentHint:a}=s,{maxFragLookUpTolerance:h}=i,c=s.partList,l=!!(i.lowLatencyMode&&null!=c&&c.length&&a);let d;if(l&&a&&!this.bitrateTest&&(n=n.concat(a),o=a.sn),t<e){d=vb(r,n,t,t>e-h?0:h)}else d=n[n.length-1];if(d){const t=d.sn-s.startSN,e=this.fragmentTracker.getState(d);if((e===Kb||e===Hb&&d.gap)&&(r=d),r&&d.sn===r.sn&&(!l||c[0].fragment.sn>d.sn)){if(r&&d.level===r.level){const e=n[t+1];d=d.sn<o&&this.fragmentTracker.getState(e)!==Kb?e:null}}}return d}synchronizeToLiveEdge(t){const{config:e,media:s}=this;if(!s)return;const i=this.hls.liveSyncPosition,r=s.currentTime,n=t.fragments[0].start,o=t.edge,a=r>=n-e.maxFragLookUpTolerance&&r<=o;if(null!==i&&s.duration>i&&(r<i||!a)){const n=void 0!==e.liveMaxLatencyDuration?e.liveMaxLatencyDuration:e.liveMaxLatencyDurationCount*t.targetduration;(!a&&s.readyState<4||r<o-n)&&(this.loadedmetadata||(this.nextLoadPosition=i),s.readyState&&(this.warn(`Playback: ${r.toFixed(3)} is located too far from the end of live sliding playlist: ${o}, reset currentTime to : ${i.toFixed(3)}`),s.currentTime=i))}}alignPlaylists(t,e,s){const i=t.fragments.length;if(!i)return this.warn("No fragments in live playlist"),0;const r=t.fragments[0].start,n=!e,o=t.alignedSliding&&vg(r);if(n||!o&&!r){const{fragPrevious:r}=this;sv(r,s,t);const n=t.fragments[0].start;return this.log(`Live playlist sliding: ${n.toFixed(2)} start-sn: ${e?e.startSN:"na"}->${t.startSN} prev-sn: ${r?r.sn:"na"} fragments: ${i}`),n}return r}waitForCdnTuneIn(t){return t.live&&t.canBlockReload&&t.partTarget&&t.tuneInGoal>Math.max(t.partHoldBack,3*t.partTarget)}setStartPosition(t,e){let s=this.startPosition;if(s<e&&(s=-1),-1===s||-1===this.lastCurrentTime){const i=null!==this.startTimeOffset,r=i?this.startTimeOffset:t.startTimeOffset;null!==r&&vg(r)?(s=e+r,r<0&&(s+=t.totalduration),s=Math.min(Math.max(e,s),e+t.totalduration),this.log(`Start time offset ${r} found in ${i?"multivariant":"media"} playlist, adjust startPosition to ${s}`),this.startPosition=s):t.live?s=this.hls.liveSyncPosition||e:this.startPosition=s=0,this.lastCurrentTime=s}this.nextLoadPosition=s}getLoadPosition(){const{media:t}=this;let e=0;return this.loadedmetadata&&t?e=t.currentTime:this.nextLoadPosition&&(e=this.nextLoadPosition),e}handleFragLoadAborted(t,e){this.transmuxer&&"initSegment"!==t.sn&&t.stats.aborted&&(this.warn(`Fragment ${t.sn}${e?" part "+e.index:""} of level ${t.level} was aborted`),this.resetFragmentLoading(t))}resetFragmentLoading(t){this.fragCurrent&&(this.fragContextChanged(t)||this.state===yv)||(this.state=mv)}onFragmentOrKeyLoadError(t,e){if(e.chunkMeta&&!e.frag){const t=this.getCurrentContext(e.chunkMeta);t&&(e.frag=t.frag)}const s=e.frag;if(!s||s.type!==t||!this.levels)return;var i;if(this.fragContextChanged(s))return void this.warn(`Frag load error must match current frag to retry ${s.url} > ${null==(i=this.fragCurrent)?void 0:i.url}`);const r=e.details===Tg.FRAG_GAP;r&&this.fragmentTracker.fragBuffered(s,!0);const n=e.errorAction,{action:o,retryCount:a=0,retryConfig:h}=n||{};if(n&&o===kb&&h){this.resetStartWhenNotLoaded(this.levelLastLoaded);const i=gb(h,a);this.warn(`Fragment ${s.sn} of ${t} ${s.level} errored with ${e.details}, retrying loading ${a+1}/${h.maxNumRetry} in ${i}ms`),n.resolved=!0,this.retryDate=self.performance.now()+i,this.state=yv}else if(h&&n){if(this.resetFragmentErrors(t),!(a<h.maxNumRetry))return void Dg.warn(`${e.details} reached or exceeded max retry (${a})`);r||o===Tb||(n.resolved=!0)}else(null==n?void 0:n.action)===Ib?this.state=Tv:this.state=Ev;this.tickImmediate()}reduceLengthAndFlushBuffer(t){if(this.state===vv||this.state===Sv){const e=t.frag,s=t.parent,i=this.getFwdBufferInfo(this.mediaBuffer,s),r=i&&i.len>.5;r&&this.reduceMaxBufferLength(i.len,(null==e?void 0:e.duration)||10);const n=!r;return n&&this.warn(`Buffer full error while media.currentTime is not buffered, flush ${s} buffer`),e&&(this.fragmentTracker.removeFragment(e),this.nextLoadPosition=e.start),this.resetLoadingState(),n}return!1}resetFragmentErrors(t){t===Ly&&(this.fragCurrent=null),this.loadedmetadata||(this.startFragRequested=!1),this.state!==fv&&(this.state=mv)}afterBufferFlushed(t,e,s){if(!t)return;const i=Xb.getBuffered(t);this.fragmentTracker.detectEvictedFragments(e,i,s),this.state===wv&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state=mv}resetStartWhenNotLoaded(t){if(!this.loadedmetadata){this.startFragRequested=!1;const e=t?t.details:null;null!=e&&e.live?(this.startPosition=-1,this.setStartPosition(e,0),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}resetWhenMissingContext(t){this.warn(`The loading context changed while buffering fragment ${t.sn} of level ${t.level}. This chunk will not be buffered.`),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState()}removeUnbufferedFrags(t=0){this.fragmentTracker.removeFragmentsInRange(t,1/0,this.playlistType,!1,!0)}updateLevelTiming(t,e,s,i){var r;const n=s.details;if(!n)return void this.warn("level.details undefined");if(!Object.keys(t.elementaryStreams).reduce(((e,r)=>{const o=t.elementaryStreams[r];if(o){const a=o.endPTS-o.startPTS;if(a<=0)return this.warn(`Could not parse fragment ${t.sn} ${r} duration reliably (${a})`),e||!1;const h=i?0:ab(n,t,o.startPTS,o.endPTS,o.startDTS,o.endDTS);return this.hls.trigger(Eg.LEVEL_PTS_UPDATED,{details:n,level:s,drift:h,type:r,frag:t,start:o.startPTS,end:o.endPTS}),!0}return e}),!1)&&null===(null==(r=this.transmuxer)?void 0:r.error)){const e=new Error(`Found no media in fragment ${t.sn} of level ${t.level} resetting transmuxer to fallback to playlist timing`);if(0===s.fragmentError&&(s.fragmentError++,t.gap=!0,this.fragmentTracker.removeFragment(t),this.fragmentTracker.fragBuffered(t,!0)),this.warn(e.message),this.hls.trigger(Eg.ERROR,{type:Ig.MEDIA_ERROR,details:Tg.FRAG_PARSING_ERROR,fatal:!1,error:e,frag:t,reason:`Found no media in msn ${t.sn} of level "${s.url}"`}),!this.hls)return;this.resetTransmuxer()}this.state=Sv,this.hls.trigger(Eg.FRAG_PARSED,{frag:t,part:e})}resetTransmuxer(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)}recoverWorkerError(t){"demuxerWorker"===t.event&&(this.fragmentTracker.removeAllFragments(),this.resetTransmuxer(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState())}set state(t){const e=this._state;e!==t&&(this._state=t,this.log(`${e}->${t}`))}get state(){return this._state}}class _v{constructor(){this.chunks=[],this.dataLength=0}push(t){this.chunks.push(t),this.dataLength+=t.length}flush(){const{chunks:t,dataLength:e}=this;let s;return t.length?(s=1===t.length?t[0]:function(t,e){const s=new Uint8Array(e);let i=0;for(let e=0;e<t.length;e++){const r=t[e];s.set(r,i),i+=r.length}return s}(t,e),this.reset(),s):new Uint8Array(0)}reset(){this.chunks.length=0,this.dataLength=0}}function Cv(t="",e=9e4){return{type:t,id:-1,pid:-1,inputTimeScale:e,sequenceNumber:-1,samples:[],dropped:0}}class Rv{constructor(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.basePTS=null,this.initPTS=null,this.lastPTS=null}resetInitSegment(t,e,s,i){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}}resetTimeStamp(t){this.initPTS=t,this.resetContiguity()}resetContiguity(){this.basePTS=null,this.lastPTS=null,this.frameIndex=0}canParse(t,e){return!1}appendFrame(t,e,s){}demux(t,e){this.cachedData&&(t=zA(this.cachedData,t),this.cachedData=null);let s,i=hA(t,0),r=i?i.length:0;const n=this._audioTrack,o=this._id3Track,a=i?dA(i):void 0,h=t.length;for((null===this.basePTS||0===this.frameIndex&&vg(a))&&(this.basePTS=Dv(a,e,this.initPTS),this.lastPTS=this.basePTS),null===this.lastPTS&&(this.lastPTS=this.basePTS),i&&i.length>0&&o.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:i,type:Vy,duration:Number.POSITIVE_INFINITY});r<h;){if(this.canParse(t,r)){const e=this.appendFrame(n,t,r);e?(this.frameIndex++,this.lastPTS=e.sample.pts,r+=e.length,s=r):r=h}else lA(t,r)?(i=hA(t,r),o.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:i,type:Vy,duration:Number.POSITIVE_INFINITY}),r+=i.length,s=r):r++;if(r===h&&s!==h){const e=nA(t,s);this.cachedData?this.cachedData=zA(this.cachedData,e):this.cachedData=e}}return{audioTrack:n,videoTrack:Cv(),id3Track:o,textTrack:Cv()}}demuxSampleAes(t,e,s){return Promise.reject(new Error(`[${this}] This demuxer does not support Sample-AES decryption`))}flush(t){const e=this.cachedData;return e&&(this.cachedData=null,this.demux(e,0)),{audioTrack:this._audioTrack,videoTrack:Cv(),id3Track:this._id3Track,textTrack:Cv()}}destroy(){}}const Dv=(t,e,s)=>{if(vg(t))return 90*t;return 9e4*e+(s?9e4*s.baseTime/s.timescale:0)};function Lv(t,e){return 255===t[e]&&240==(246&t[e+1])}function xv(t,e){return 1&t[e+1]?7:9}function Pv(t,e){return(3&t[e+3])<<11|t[e+4]<<3|(224&t[e+5])>>>5}function Bv(t,e){return e+1<t.length&&Lv(t,e)}function Mv(t,e){if(Bv(t,e)){const s=xv(t,e);if(e+s>=t.length)return!1;const i=Pv(t,e);if(i<=s)return!1;const r=e+i;return r===t.length||Bv(t,r)}return!1}function Fv(t,e,s,i,r){if(!t.samplerate){const n=function(t,e,s,i){let r,n,o,a;const h=navigator.userAgent.toLowerCase(),c=i,l=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];r=1+((192&e[s+2])>>>6);const d=(60&e[s+2])>>>2;if(!(d>l.length-1))return o=(1&e[s+2])<<2,o|=(192&e[s+3])>>>6,Dg.log(`manifest codec:${i}, ADTS type:${r}, samplingIndex:${d}`),/firefox/i.test(h)?d>=6?(r=5,a=new Array(4),n=d-3):(r=2,a=new Array(2),n=d):-1!==h.indexOf("android")?(r=2,a=new Array(2),n=d):(r=5,a=new Array(4),i&&(-1!==i.indexOf("mp4a.40.29")||-1!==i.indexOf("mp4a.40.5"))||!i&&d>=6?n=d-3:((i&&-1!==i.indexOf("mp4a.40.2")&&(d>=6&&1===o||/vivaldi/i.test(h))||!i&&1===o)&&(r=2,a=new Array(2)),n=d)),a[0]=r<<3,a[0]|=(14&d)>>1,a[1]|=(1&d)<<7,a[1]|=o<<3,5===r&&(a[1]|=(14&n)>>1,a[2]=(1&n)<<7,a[2]|=8,a[3]=0),{config:a,samplerate:l[d],channelCount:o,codec:"mp4a.40."+r,manifestCodec:c};{const e=new Error(`invalid ADTS sampling index:${d}`);t.emit(Eg.ERROR,Eg.ERROR,{type:Ig.MEDIA_ERROR,details:Tg.FRAG_PARSING_ERROR,fatal:!0,error:e,reason:e.message})}}(e,s,i,r);if(!n)return;t.config=n.config,t.samplerate=n.samplerate,t.channelCount=n.channelCount,t.codec=n.codec,t.manifestCodec=n.manifestCodec,Dg.log(`parsed codec:${t.codec}, rate:${n.samplerate}, channels:${n.channelCount}`)}}function Ov(t){return 9216e4/t}function Uv(t,e,s,i,r){const n=i+r*Ov(t.samplerate),o=function(t,e){const s=xv(t,e);if(e+s<=t.length){const i=Pv(t,e)-s;if(i>0)return{headerLength:s,frameLength:i}}}(e,s);let a;if(o){const{frameLength:i,headerLength:r}=o,h=r+i,c=Math.max(0,s+h-e.length);c?(a=new Uint8Array(h-r),a.set(e.subarray(s+r,e.length),0)):a=e.subarray(s+r,s+h);const l={unit:a,pts:n};return c||t.samples.push(l),{sample:l,length:h,missing:c}}const h=e.length-s;a=new Uint8Array(h),a.set(e.subarray(s,e.length),0);return{sample:{unit:a,pts:n},length:h,missing:-1}}let Nv=null;const jv=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],Vv=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],zv=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],Gv=[0,1,1,4];function Wv(t,e,s,i,r){if(s+24>e.length)return;const n=Hv(e,s);if(n&&s+n.frameLength<=e.length){const o=i+r*(9e4*n.samplesPerFrame/n.sampleRate),a={unit:e.subarray(s,s+n.frameLength),pts:o,dts:o};return t.config=[],t.channelCount=n.channelCount,t.samplerate=n.sampleRate,t.samples.push(a),{sample:a,length:n.frameLength,missing:0}}}function Hv(t,e){const s=t[e+1]>>3&3,i=t[e+1]>>1&3,r=t[e+2]>>4&15,n=t[e+2]>>2&3;if(1!==s&&0!==r&&15!==r&&3!==n){const o=t[e+2]>>1&1,a=t[e+3]>>6,h=1e3*jv[14*(3===s?3-i:3===i?3:4)+r-1],c=Vv[3*(3===s?0:2===s?1:2)+n],l=3===a?1:2,d=zv[s][i],u=Gv[i],p=8*d*u,f=Math.floor(d*h/c+o)*u;if(null===Nv){const t=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Nv=t?parseInt(t[1]):0}return!!Nv&&Nv<=87&&2===i&&h>=224e3&&0===a&&(t[e+3]=128|t[e+3]),{sampleRate:c,channelCount:l,frameLength:f,samplesPerFrame:p}}}function Kv(t,e){return 255===t[e]&&224==(224&t[e+1])&&0!=(6&t[e+1])}function Qv(t,e){return e+1<t.length&&Kv(t,e)}function Yv(t,e){if(e+1<t.length&&Kv(t,e)){const s=4,i=Hv(t,e);let r=s;null!=i&&i.frameLength&&(r=i.frameLength);const n=e+r;return n===t.length||Qv(t,n)}return!1}const qv=/\/emsg[-/]ID3/i;const Jv=(t,e)=>{let s=0,i=5;e+=i;const r=new Uint32Array(1),n=new Uint32Array(1),o=new Uint8Array(1);for(;i>0;){o[0]=t[e];const a=Math.min(i,8),h=8-a;n[0]=4278190080>>>24+h<<h,r[0]=(o[0]&n[0])>>h,s=s?s<<a|r[0]:r[0],e+=1,i-=a}return s};class Xv extends Rv{constructor(t){super(),this.observer=void 0,this.observer=t}resetInitSegment(t,e,s,i){super.resetInitSegment(t,e,s,i),this._audioTrack={container:"audio/ac-3",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"ac3",samples:[],manifestCodec:e,duration:i,inputTimeScale:9e4,dropped:0}}canParse(t,e){return e+64<t.length}appendFrame(t,e,s){const i=Zv(t,e,s,this.basePTS,this.frameIndex);if(-1!==i){return{sample:t.samples[t.samples.length-1],length:i,missing:0}}}static probe(t){if(!t)return!1;const e=hA(t,0);if(!e)return!1;const s=e.length;return 11===t[s]&&119===t[s+1]&&void 0!==dA(e)&&Jv(t,s)<16}}function Zv(t,e,s,i,r){if(s+8>e.length)return-1;if(11!==e[s]||119!==e[s+1])return-1;const n=e[s+4]>>6;if(n>=3)return-1;const o=[48e3,44100,32e3][n],a=63&e[s+4],h=2*[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][3*a+n];if(s+h>e.length)return-1;const c=e[s+6]>>5;let l=0;2===c?l+=2:(1&c&&1!==c&&(l+=2),4&c&&(l+=2));const d=(e[s+6]<<8|e[s+7])>>12-l&1,u=[2,1,2,3,3,4,4,5][c]+d,p=e[s+5]>>3,f=7&e[s+5],m=new Uint8Array([n<<6|p<<1|f>>2,(3&f)<<6|c<<3|d<<2|a>>4,a<<4&224]),g=i+r*(1536/o*9e4),A=e.subarray(s,s+h);return t.config=m,t.channelCount=u,t.samplerate=o,t.samples.push({unit:A,pts:g}),h}class $v{constructor(t){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=t,this.bytesAvailable=t.byteLength,this.word=0,this.bitsAvailable=0}loadWord(){const t=this.data,e=this.bytesAvailable,s=t.byteLength-e,i=new Uint8Array(4),r=Math.min(4,e);if(0===r)throw new Error("no bytes available");i.set(t.subarray(s,s+r)),this.word=new DataView(i.buffer).getUint32(0),this.bitsAvailable=8*r,this.bytesAvailable-=r}skipBits(t){let e;t=Math.min(t,8*this.bytesAvailable+this.bitsAvailable),this.bitsAvailable>t?(this.word<<=t,this.bitsAvailable-=t):(e=(t-=this.bitsAvailable)>>3,t-=e<<3,this.bytesAvailable-=e,this.loadWord(),this.word<<=t,this.bitsAvailable-=t)}readBits(t){let e=Math.min(this.bitsAvailable,t);const s=this.word>>>32-e;if(t>32&&Dg.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=e,this.bitsAvailable>0)this.word<<=e;else{if(!(this.bytesAvailable>0))throw new Error("no bits available");this.loadWord()}return e=t-e,e>0&&this.bitsAvailable?s<<e|this.readBits(e):s}skipLZ(){let t;for(t=0;t<this.bitsAvailable;++t)if(0!=(this.word&2147483648>>>t))return this.word<<=t,this.bitsAvailable-=t,t;return this.loadWord(),t+this.skipLZ()}skipUEG(){this.skipBits(1+this.skipLZ())}skipEG(){this.skipBits(1+this.skipLZ())}readUEG(){const t=this.skipLZ();return this.readBits(t+1)-1}readEG(){const t=this.readUEG();return 1&t?1+t>>>1:-1*(t>>>1)}readBoolean(){return 1===this.readBits(1)}readUByte(){return this.readBits(8)}readUShort(){return this.readBits(16)}readUInt(){return this.readBits(32)}skipScalingList(t){let e,s=8,i=8;for(let r=0;r<t;r++)0!==i&&(e=this.readEG(),i=(s+e+256)%256),s=0===i?s:i}readSPS(){let t,e,s,i=0,r=0,n=0,o=0;const a=this.readUByte.bind(this),h=this.readBits.bind(this),c=this.readUEG.bind(this),l=this.readBoolean.bind(this),d=this.skipBits.bind(this),u=this.skipEG.bind(this),p=this.skipUEG.bind(this),f=this.skipScalingList.bind(this);a();const m=a();if(h(5),d(3),a(),p(),100===m||110===m||122===m||244===m||44===m||83===m||86===m||118===m||128===m){const t=c();if(3===t&&d(1),p(),p(),d(1),l())for(e=3!==t?8:12,s=0;s<e;s++)l()&&f(s<6?16:64)}p();const g=c();if(0===g)c();else if(1===g)for(d(1),u(),u(),t=c(),s=0;s<t;s++)u();p(),d(1);const A=c(),y=c(),b=h(1);0===b&&d(1),d(1),l()&&(i=c(),r=c(),n=c(),o=c());let v=[1,1];if(l()&&l()){switch(a()){case 1:v=[1,1];break;case 2:v=[12,11];break;case 3:v=[10,11];break;case 4:v=[16,11];break;case 5:v=[40,33];break;case 6:v=[24,11];break;case 7:v=[20,11];break;case 8:v=[32,11];break;case 9:v=[80,33];break;case 10:v=[18,11];break;case 11:v=[15,11];break;case 12:v=[64,33];break;case 13:v=[160,99];break;case 14:v=[4,3];break;case 15:v=[3,2];break;case 16:v=[2,1];break;case 255:v=[a()<<8|a(),a()<<8|a()]}}return{width:Math.ceil(16*(A+1)-2*i-2*r),height:(2-b)*(y+1)*16-(b?2:4)*(n+o),pixelRatio:v}}readSliceType(){return this.readUByte(),this.readUEG(),this.readUEG()}}class tS extends class{constructor(){this.VideoSample=null}createVideoSample(t,e,s,i){return{key:t,frame:!1,pts:e,dts:s,units:[],debug:i,length:0}}getLastNalUnit(t){var e;let s,i=this.VideoSample;if(i&&0!==i.units.length||(i=t[t.length-1]),null!=(e=i)&&e.units){const t=i.units;s=t[t.length-1]}return s}pushAccessUnit(t,e){if(t.units.length&&t.frame){if(void 0===t.pts){const s=e.samples,i=s.length;if(!i)return void e.dropped++;{const e=s[i-1];t.pts=e.pts,t.dts=e.dts}}e.samples.push(t)}t.debug.length&&Dg.log(t.pts+"/"+t.dts+":"+t.debug)}}{parseAVCPES(t,e,s,i,r){const n=this.parseAVCNALu(t,s.data);let o,a=this.VideoSample,h=!1;s.data=null,a&&n.length&&!t.audFound&&(this.pushAccessUnit(a,t),a=this.VideoSample=this.createVideoSample(!1,s.pts,s.dts,"")),n.forEach((i=>{var n;switch(i.type){case 1:{let e=!1;o=!0;const r=i.data;if(h&&r.length>4){const t=new $v(r).readSliceType();2!==t&&4!==t&&7!==t&&9!==t||(e=!0)}var c;if(e)null!=(c=a)&&c.frame&&!a.key&&(this.pushAccessUnit(a,t),a=this.VideoSample=null);a||(a=this.VideoSample=this.createVideoSample(!0,s.pts,s.dts,"")),a.frame=!0,a.key=e;break}case 5:o=!0,null!=(n=a)&&n.frame&&!a.key&&(this.pushAccessUnit(a,t),a=this.VideoSample=null),a||(a=this.VideoSample=this.createVideoSample(!0,s.pts,s.dts,"")),a.key=!0,a.frame=!0;break;case 6:o=!0,HA(i.data,1,s.pts,e.samples);break;case 7:{var l,d;o=!0,h=!0;const e=i.data,s=new $v(e).readSPS();if(!t.sps||t.width!==s.width||t.height!==s.height||(null==(l=t.pixelRatio)?void 0:l[0])!==s.pixelRatio[0]||(null==(d=t.pixelRatio)?void 0:d[1])!==s.pixelRatio[1]){t.width=s.width,t.height=s.height,t.pixelRatio=s.pixelRatio,t.sps=[e],t.duration=r;const i=e.subarray(1,4);let n="avc1.";for(let t=0;t<3;t++){let e=i[t].toString(16);e.length<2&&(e="0"+e),n+=e}t.codec=n}break}case 8:o=!0,t.pps=[i.data];break;case 9:o=!0,t.audFound=!0,a&&this.pushAccessUnit(a,t),a=this.VideoSample=this.createVideoSample(!1,s.pts,s.dts,"");break;case 12:o=!0;break;default:o=!1,a&&(a.debug+="unknown NAL "+i.type+" ")}if(a&&o){a.units.push(i)}})),i&&a&&(this.pushAccessUnit(a,t),this.VideoSample=null)}parseAVCNALu(t,e){const s=e.byteLength;let i=t.naluState||0;const r=i,n=[];let o,a,h,c=0,l=-1,d=0;for(-1===i&&(l=0,d=31&e[0],i=0,c=1);c<s;)if(o=e[c++],i)if(1!==i)if(o)if(1===o){if(a=c-i-1,l>=0){const t={data:e.subarray(l,a),type:d};n.push(t)}else{const s=this.getLastNalUnit(t.samples);s&&(r&&c<=4-r&&s.state&&(s.data=s.data.subarray(0,s.data.byteLength-r)),a>0&&(s.data=zA(s.data,e.subarray(0,a)),s.state=0))}c<s?(h=31&e[c],l=c,d=h,i=0):i=-1}else i=0;else i=3;else i=o?0:2;else i=o?0:1;if(l>=0&&i>=0){const t={data:e.subarray(l,s),type:d,state:i};n.push(t)}if(0===n.length){const s=this.getLastNalUnit(t.samples);s&&(s.data=zA(s.data,e))}return t.naluState=i,n}}class eS{constructor(t,e,s){this.keyData=void 0,this.decrypter=void 0,this.keyData=s,this.decrypter=new uv(e,{removePKCS7Padding:!1})}decryptBuffer(t){return this.decrypter.decrypt(t,this.keyData.key.buffer,this.keyData.iv.buffer)}decryptAacSample(t,e,s){const i=t[e].unit;if(i.length<=16)return;const r=i.subarray(16,i.length-i.length%16),n=r.buffer.slice(r.byteOffset,r.byteOffset+r.length);this.decryptBuffer(n).then((r=>{const n=new Uint8Array(r);i.set(n,16),this.decrypter.isSync()||this.decryptAacSamples(t,e+1,s)}))}decryptAacSamples(t,e,s){for(;;e++){if(e>=t.length)return void s();if(!(t[e].unit.length<32)&&(this.decryptAacSample(t,e,s),!this.decrypter.isSync()))return}}getAvcEncryptedData(t){const e=16*Math.floor((t.length-48)/160)+16,s=new Int8Array(e);let i=0;for(let e=32;e<t.length-16;e+=160,i+=16)s.set(t.subarray(e,e+16),i);return s}getAvcDecryptedUnit(t,e){const s=new Uint8Array(e);let i=0;for(let e=32;e<t.length-16;e+=160,i+=16)t.set(s.subarray(i,i+16),e);return t}decryptAvcSample(t,e,s,i,r){const n=KA(r.data),o=this.getAvcEncryptedData(n);this.decryptBuffer(o.buffer).then((o=>{r.data=this.getAvcDecryptedUnit(n,o),this.decrypter.isSync()||this.decryptAvcSamples(t,e,s+1,i)}))}decryptAvcSamples(t,e,s,i){if(t instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;e++,s=0){if(e>=t.length)return void i();const r=t[e].units;for(;!(s>=r.length);s++){const n=r[s];if(!(n.data.length<=48||1!==n.type&&5!==n.type||(this.decryptAvcSample(t,e,s,i,n),this.decrypter.isSync())))return}}}}const sS=188;class iS{constructor(t,e,s){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this._pmtId=-1,this._videoTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.remainderData=null,this.videoParser=void 0,this.observer=t,this.config=e,this.typeSupported=s,this.videoParser=new tS}static probe(t){const e=iS.syncOffset(t);return e>0&&Dg.warn(`MPEG2-TS detected but first sync word found @ offset ${e}`),-1!==e}static syncOffset(t){const e=t.length;let s=Math.min(940,e-sS)+1,i=0;for(;i<s;){let r=!1,n=-1,o=0;for(let a=i;a<e;a+=sS){if(71!==t[a]||e-a!==sS&&71!==t[a+sS]){if(o)return-1;break}if(o++,-1===n&&(n=a,0!==n&&(s=Math.min(n+18612,t.length-sS)+1)),r||(r=0===rS(t,a)),r&&o>1&&(0===n&&o>2||a+sS>s))return n}i++}return-1}static createTrack(t,e){return{container:"video"===t||"audio"===t?"video/mp2t":void 0,type:t,id:kA[t],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:"audio"===t?e:void 0}}resetInitSegment(t,e,s,i){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=iS.createTrack("video"),this._audioTrack=iS.createTrack("audio",i),this._id3Track=iS.createTrack("id3"),this._txtTrack=iS.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.remainderData=null,this.audioCodec=e,this.videoCodec=s,this._duration=i}resetTimeStamp(){}resetContiguity(){const{_audioTrack:t,_videoTrack:e,_id3Track:s}=this;t&&(t.pesData=null),e&&(e.pesData=null),s&&(s.pesData=null),this.aacOverFlow=null,this.remainderData=null}demux(t,e,s=!1,i=!1){let r;s||(this.sampleAes=null);const n=this._videoTrack,o=this._audioTrack,a=this._id3Track,h=this._txtTrack;let c=n.pid,l=n.pesData,d=o.pid,u=a.pid,p=o.pesData,f=a.pesData,m=null,g=this.pmtParsed,A=this._pmtId,y=t.length;if(this.remainderData&&(y=(t=zA(this.remainderData,t)).length,this.remainderData=null),y<sS&&!i)return this.remainderData=t,{audioTrack:o,videoTrack:n,id3Track:a,textTrack:h};const b=Math.max(0,iS.syncOffset(t));y-=(y-b)%sS,y<t.byteLength&&!i&&(this.remainderData=new Uint8Array(t.buffer,y,t.buffer.byteLength-y));let v=0;for(let e=b;e<y;e+=sS)if(71===t[e]){const i=!!(64&t[e+1]),y=rS(t,e);let v;if((48&t[e+3])>>4>1){if(v=e+5+t[e+4],v===e+sS)continue}else v=e+4;switch(y){case c:i&&(l&&(r=cS(l))&&this.videoParser.parseAVCPES(n,h,r,!1,this._duration),l={data:[],size:0}),l&&(l.data.push(t.subarray(v,e+sS)),l.size+=e+sS-v);break;case d:if(i){if(p&&(r=cS(p)))switch(o.segmentCodec){case"aac":this.parseAACPES(o,r);break;case"mp3":this.parseMPEGPES(o,r);break;case"ac3":this.parseAC3PES(o,r)}p={data:[],size:0}}p&&(p.data.push(t.subarray(v,e+sS)),p.size+=e+sS-v);break;case u:i&&(f&&(r=cS(f))&&this.parseID3PES(a,r),f={data:[],size:0}),f&&(f.data.push(t.subarray(v,e+sS)),f.size+=e+sS-v);break;case 0:i&&(v+=t[v]+1),A=this._pmtId=nS(t,v);break;case A:{i&&(v+=t[v]+1);const r=oS(t,v,this.typeSupported,s,this.observer);c=r.videoPid,c>0&&(n.pid=c,n.segmentCodec=r.segmentVideoCodec),d=r.audioPid,d>0&&(o.pid=d,o.segmentCodec=r.segmentAudioCodec),u=r.id3Pid,u>0&&(a.pid=u),null===m||g||(Dg.warn(`MPEG-TS PMT found at ${e} after unknown PID '${m}'. Backtracking to sync byte @${b} to parse all TS packets.`),m=null,e=b-188),g=this.pmtParsed=!0;break}case 17:case 8191:break;default:m=y}}else v++;v>0&&aS(this.observer,new Error(`Found ${v} TS packet/s that do not start with 0x47`)),n.pesData=l,o.pesData=p,a.pesData=f;const S={audioTrack:o,videoTrack:n,id3Track:a,textTrack:h};return i&&this.extractRemainingSamples(S),S}flush(){const{remainderData:t}=this;let e;return this.remainderData=null,e=t?this.demux(t,-1,!1,!0):{videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(e),this.sampleAes?this.decrypt(e,this.sampleAes):e}extractRemainingSamples(t){const{audioTrack:e,videoTrack:s,id3Track:i,textTrack:r}=t,n=s.pesData,o=e.pesData,a=i.pesData;let h;if(n&&(h=cS(n))?(this.videoParser.parseAVCPES(s,r,h,!0,this._duration),s.pesData=null):s.pesData=n,o&&(h=cS(o))){switch(e.segmentCodec){case"aac":this.parseAACPES(e,h);break;case"mp3":this.parseMPEGPES(e,h);break;case"ac3":this.parseAC3PES(e,h)}e.pesData=null}else null!=o&&o.size&&Dg.log("last AAC PES packet truncated,might overlap between fragments"),e.pesData=o;a&&(h=cS(a))?(this.parseID3PES(i,h),i.pesData=null):i.pesData=a}demuxSampleAes(t,e,s){const i=this.demux(t,s,!0,!this.config.progressive),r=this.sampleAes=new eS(this.observer,this.config,e);return this.decrypt(i,r)}decrypt(t,e){return new Promise((s=>{const{audioTrack:i,videoTrack:r}=t;i.samples&&"aac"===i.segmentCodec?e.decryptAacSamples(i.samples,0,(()=>{r.samples?e.decryptAvcSamples(r.samples,0,0,(()=>{s(t)})):s(t)})):r.samples&&e.decryptAvcSamples(r.samples,0,0,(()=>{s(t)}))}))}destroy(){this._duration=0}parseAACPES(t,e){let s=0;const i=this.aacOverFlow;let r,n,o,a=e.data;if(i){this.aacOverFlow=null;const e=i.missing,r=i.sample.unit.byteLength;if(-1===e)a=zA(i.sample.unit,a);else{const n=r-e;i.sample.unit.set(a.subarray(0,e),n),t.samples.push(i.sample),s=i.missing}}for(r=s,n=a.length;r<n-1&&!Bv(a,r);r++);if(r!==s){let t;const e=r<n-1;if(t=e?`AAC PES did not start with ADTS header,offset:${r}`:"No ADTS header found in AAC PES",aS(this.observer,new Error(t),e),!e)return}if(Fv(t,this.observer,a,r,this.audioCodec),void 0!==e.pts)o=e.pts;else{if(!i)return void Dg.warn("[tsdemuxer]: AAC PES unknown PTS");{const e=Ov(t.samplerate);o=i.sample.pts+e}}let h,c=0;for(;r<n;){if(h=Uv(t,a,r,o,c),r+=h.length,h.missing){this.aacOverFlow=h;break}for(c++;r<n-1&&!Bv(a,r);r++);}}parseMPEGPES(t,e){const s=e.data,i=s.length;let r=0,n=0;const o=e.pts;if(void 0!==o)for(;n<i;)if(Qv(s,n)){const e=Wv(t,s,n,o,r);if(!e)break;n+=e.length,r++}else n++;else Dg.warn("[tsdemuxer]: MPEG PES unknown PTS")}parseAC3PES(t,e){{const s=e.data,i=e.pts;if(void 0===i)return void Dg.warn("[tsdemuxer]: AC3 PES unknown PTS");const r=s.length;let n,o=0,a=0;for(;a<r&&(n=Zv(t,s,a,i,o++))>0;)a+=n}}parseID3PES(t,e){if(void 0===e.pts)return void Dg.warn("[tsdemuxer]: ID3 PES unknown PTS");const s=bg({},e,{type:this._videoTrack?Gy:Vy,duration:Number.POSITIVE_INFINITY});t.samples.push(s)}}function rS(t,e){return((31&t[e+1])<<8)+t[e+2]}function nS(t,e){return(31&t[e+10])<<8|t[e+11]}function oS(t,e,s,i,r){const n={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},o=e+3+((15&t[e+1])<<8|t[e+2])-4;for(e+=12+((15&t[e+10])<<8|t[e+11]);e<o;){const o=rS(t,e),a=(15&t[e+3])<<8|t[e+4];switch(t[e]){case 207:if(!i){hS("ADTS AAC");break}case 15:-1===n.audioPid&&(n.audioPid=o);break;case 21:-1===n.id3Pid&&(n.id3Pid=o);break;case 219:if(!i){hS("H.264");break}case 27:-1===n.videoPid&&(n.videoPid=o,n.segmentVideoCodec="avc");break;case 3:case 4:s.mpeg||s.mp3?-1===n.audioPid&&(n.audioPid=o,n.segmentAudioCodec="mp3"):Dg.log("MPEG audio found, not supported in this browser");break;case 193:if(!i){hS("AC-3");break}case 129:s.ac3?-1===n.audioPid&&(n.audioPid=o,n.segmentAudioCodec="ac3"):Dg.log("AC-3 audio found, not supported in this browser");break;case 6:if(-1===n.audioPid&&a>0){let i=e+5,r=a;for(;r>2;){if(106===t[i])!0!==s.ac3?Dg.log("AC-3 audio found, not supported in this browser for now"):(n.audioPid=o,n.segmentAudioCodec="ac3");const e=t[i+1]+2;i+=e,r-=e}}break;case 194:case 135:return aS(r,new Error("Unsupported EC-3 in M2TS found")),n;case 36:return aS(r,new Error("Unsupported HEVC in M2TS found")),n}e+=a+5}return n}function aS(t,e,s){Dg.warn(`parsing error: ${e.message}`),t.emit(Eg.ERROR,Eg.ERROR,{type:Ig.MEDIA_ERROR,details:Tg.FRAG_PARSING_ERROR,fatal:!1,levelRetry:s,error:e,reason:e.message})}function hS(t){Dg.log(`${t} with AES-128-CBC encryption found in unencrypted stream`)}function cS(t){let e,s,i,r,n,o=0;const a=t.data;if(!t||0===t.size)return null;for(;a[0].length<19&&a.length>1;)a[0]=zA(a[0],a[1]),a.splice(1,1);e=a[0];if(1===(e[0]<<16)+(e[1]<<8)+e[2]){if(s=(e[4]<<8)+e[5],s&&s>t.size-6)return null;const h=e[7];192&h&&(r=536870912*(14&e[9])+4194304*(255&e[10])+16384*(254&e[11])+128*(255&e[12])+(254&e[13])/2,64&h?(n=536870912*(14&e[14])+4194304*(255&e[15])+16384*(254&e[16])+128*(255&e[17])+(254&e[18])/2,r-n>54e5&&(Dg.warn(`${Math.round((r-n)/9e4)}s delta between PTS and DTS, align them`),r=n)):n=r),i=e[8];let c=i+9;if(t.size<=c)return null;t.size-=c;const l=new Uint8Array(t.size);for(let t=0,s=a.length;t<s;t++){e=a[t];let s=e.byteLength;if(c){if(c>s){c-=s;continue}e=e.subarray(c),s-=c,c=0}l.set(e,o),o+=s}return s&&(s-=i+3),{data:l,pts:r,dts:n,len:s}}return null}class lS{static getSilentFrame(t,e){if("mp4a.40.2"===t){if(1===e)return new Uint8Array([0,200,0,128,35,128]);if(2===e)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(1===e)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===e)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===e)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}}}const dS=Math.pow(2,32)-1;class uS{static init(){let t;for(t in uS.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],dac3:[],"ac-3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]},uS.types)uS.types.hasOwnProperty(t)&&(uS.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);const e=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),s=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);uS.HDLR_TYPES={video:e,audio:s};const i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),r=new Uint8Array([0,0,0,0,0,0,0,0]);uS.STTS=uS.STSC=uS.STCO=r,uS.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),uS.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),uS.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),uS.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);const n=new Uint8Array([105,115,111,109]),o=new Uint8Array([97,118,99,49]),a=new Uint8Array([0,0,0,1]);uS.FTYP=uS.box(uS.types.ftyp,n,a,n,o),uS.DINF=uS.box(uS.types.dinf,uS.box(uS.types.dref,i))}static box(t,...e){let s=8,i=e.length;const r=i;for(;i--;)s+=e[i].byteLength;const n=new Uint8Array(s);for(n[0]=s>>24&255,n[1]=s>>16&255,n[2]=s>>8&255,n[3]=255&s,n.set(t,4),i=0,s=8;i<r;i++)n.set(e[i],s),s+=e[i].byteLength;return n}static hdlr(t){return uS.box(uS.types.hdlr,uS.HDLR_TYPES[t])}static mdat(t){return uS.box(uS.types.mdat,t)}static mdhd(t,e){e*=t;const s=Math.floor(e/(dS+1)),i=Math.floor(e%(dS+1));return uS.box(uS.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,255&t,s>>24,s>>16&255,s>>8&255,255&s,i>>24,i>>16&255,i>>8&255,255&i,85,196,0,0]))}static mdia(t){return uS.box(uS.types.mdia,uS.mdhd(t.timescale,t.duration),uS.hdlr(t.type),uS.minf(t))}static mfhd(t){return uS.box(uS.types.mfhd,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t]))}static minf(t){return"audio"===t.type?uS.box(uS.types.minf,uS.box(uS.types.smhd,uS.SMHD),uS.DINF,uS.stbl(t)):uS.box(uS.types.minf,uS.box(uS.types.vmhd,uS.VMHD),uS.DINF,uS.stbl(t))}static moof(t,e,s){return uS.box(uS.types.moof,uS.mfhd(t),uS.traf(s,e))}static moov(t){let e=t.length;const s=[];for(;e--;)s[e]=uS.trak(t[e]);return uS.box.apply(null,[uS.types.moov,uS.mvhd(t[0].timescale,t[0].duration)].concat(s).concat(uS.mvex(t)))}static mvex(t){let e=t.length;const s=[];for(;e--;)s[e]=uS.trex(t[e]);return uS.box.apply(null,[uS.types.mvex,...s])}static mvhd(t,e){e*=t;const s=Math.floor(e/(dS+1)),i=Math.floor(e%(dS+1)),r=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,255&t,s>>24,s>>16&255,s>>8&255,255&s,i>>24,i>>16&255,i>>8&255,255&i,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return uS.box(uS.types.mvhd,r)}static sdtp(t){const e=t.samples||[],s=new Uint8Array(4+e.length);let i,r;for(i=0;i<e.length;i++)r=e[i].flags,s[i+4]=r.dependsOn<<4|r.isDependedOn<<2|r.hasRedundancy;return uS.box(uS.types.sdtp,s)}static stbl(t){return uS.box(uS.types.stbl,uS.stsd(t),uS.box(uS.types.stts,uS.STTS),uS.box(uS.types.stsc,uS.STSC),uS.box(uS.types.stsz,uS.STSZ),uS.box(uS.types.stco,uS.STCO))}static avc1(t){let e,s,i,r=[],n=[];for(e=0;e<t.sps.length;e++)s=t.sps[e],i=s.byteLength,r.push(i>>>8&255),r.push(255&i),r=r.concat(Array.prototype.slice.call(s));for(e=0;e<t.pps.length;e++)s=t.pps[e],i=s.byteLength,n.push(i>>>8&255),n.push(255&i),n=n.concat(Array.prototype.slice.call(s));const o=uS.box(uS.types.avcC,new Uint8Array([1,r[3],r[4],r[5],255,224|t.sps.length].concat(r).concat([t.pps.length]).concat(n))),a=t.width,h=t.height,c=t.pixelRatio[0],l=t.pixelRatio[1];return uS.box(uS.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,a>>8&255,255&a,h>>8&255,255&h,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),o,uS.box(uS.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),uS.box(uS.types.pasp,new Uint8Array([c>>24,c>>16&255,c>>8&255,255&c,l>>24,l>>16&255,l>>8&255,255&l])))}static esds(t){const e=t.config.length;return new Uint8Array([0,0,0,0,3,23+e,0,1,0,4,15+e,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([e]).concat(t.config).concat([6,1,2]))}static audioStsd(t){const e=t.samplerate;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t.channelCount,0,16,0,0,0,0,e>>8&255,255&e,0,0])}static mp4a(t){return uS.box(uS.types.mp4a,uS.audioStsd(t),uS.box(uS.types.esds,uS.esds(t)))}static mp3(t){return uS.box(uS.types[".mp3"],uS.audioStsd(t))}static ac3(t){return uS.box(uS.types["ac-3"],uS.audioStsd(t),uS.box(uS.types.dac3,t.config))}static stsd(t){return"audio"===t.type?"mp3"===t.segmentCodec&&"mp3"===t.codec?uS.box(uS.types.stsd,uS.STSD,uS.mp3(t)):"ac3"===t.segmentCodec?uS.box(uS.types.stsd,uS.STSD,uS.ac3(t)):uS.box(uS.types.stsd,uS.STSD,uS.mp4a(t)):uS.box(uS.types.stsd,uS.STSD,uS.avc1(t))}static tkhd(t){const e=t.id,s=t.duration*t.timescale,i=t.width,r=t.height,n=Math.floor(s/(dS+1)),o=Math.floor(s%(dS+1));return uS.box(uS.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,255&e,0,0,0,0,n>>24,n>>16&255,n>>8&255,255&n,o>>24,o>>16&255,o>>8&255,255&o,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,i>>8&255,255&i,0,0,r>>8&255,255&r,0,0]))}static traf(t,e){const s=uS.sdtp(t),i=t.id,r=Math.floor(e/(dS+1)),n=Math.floor(e%(dS+1));return uS.box(uS.types.traf,uS.box(uS.types.tfhd,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,255&i])),uS.box(uS.types.tfdt,new Uint8Array([1,0,0,0,r>>24,r>>16&255,r>>8&255,255&r,n>>24,n>>16&255,n>>8&255,255&n])),uS.trun(t,s.length+16+20+8+16+8+8),s)}static trak(t){return t.duration=t.duration||4294967295,uS.box(uS.types.trak,uS.tkhd(t),uS.mdia(t))}static trex(t){const e=t.id;return uS.box(uS.types.trex,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,255&e,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}static trun(t,e){const s=t.samples||[],i=s.length,r=12+16*i,n=new Uint8Array(r);let o,a,h,c,l,d;for(e+=8+r,n.set(["video"===t.type?1:0,0,15,1,i>>>24&255,i>>>16&255,i>>>8&255,255&i,e>>>24&255,e>>>16&255,e>>>8&255,255&e],0),o=0;o<i;o++)a=s[o],h=a.duration,c=a.size,l=a.flags,d=a.cts,n.set([h>>>24&255,h>>>16&255,h>>>8&255,255&h,c>>>24&255,c>>>16&255,c>>>8&255,255&c,l.isLeading<<2|l.dependsOn,l.isDependedOn<<6|l.hasRedundancy<<4|l.paddingValue<<1|l.isNonSync,61440&l.degradPrio,15&l.degradPrio,d>>>24&255,d>>>16&255,d>>>8&255,255&d],12+16*o);return uS.box(uS.types.trun,n)}static initSegment(t){uS.types||uS.init();const e=uS.moov(t);return zA(uS.FTYP,e)}}uS.types=void 0,uS.HDLR_TYPES=void 0,uS.STTS=void 0,uS.STSC=void 0,uS.STCO=void 0,uS.STSZ=void 0,uS.VMHD=void 0,uS.SMHD=void 0,uS.STSD=void 0,uS.FTYP=void 0,uS.DINF=void 0;function pS(t,e,s=1,i=!1){const r=t*e*s;return i?Math.round(r):r}function fS(t,e=!1){return pS(t,1e3,1/9e4,e)}let mS,gS=null,AS=null;class yS{constructor(t,e,s,i=""){if(this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextAvcDts=null,this.nextAudioPts=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=t,this.config=e,this.typeSupported=s,this.ISGenerated=!1,null===gS){const t=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);gS=t?parseInt(t[1]):0}if(null===AS){const t=navigator.userAgent.match(/Safari\/(\d+)/i);AS=t?parseInt(t[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(t){Dg.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=t}resetNextTimestamp(){Dg.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){Dg.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0}getVideoStartPts(t){let e=!1;const s=t.reduce(((t,s)=>{const i=s.pts-t;return i<-4294967296?(e=!0,bS(t,s.pts)):i>0?t:s.pts}),t[0].pts);return e&&Dg.debug("PTS rollover detected"),s}remux(t,e,s,i,r,n,o,a){let h,c,l,d,u,p,f=r,m=r;const g=t.pid>-1,A=e.pid>-1,y=e.samples.length,b=t.samples.length>0,v=o&&y>0||y>1;if((!g||b)&&(!A||v)||this.ISGenerated||o){if(this.ISGenerated){var S,w,E,I;const t=this.videoTrackConfig;!t||e.width===t.width&&e.height===t.height&&(null==(S=e.pixelRatio)?void 0:S[0])===(null==(w=t.pixelRatio)?void 0:w[0])&&(null==(E=e.pixelRatio)?void 0:E[1])===(null==(I=t.pixelRatio)?void 0:I[1])||this.resetInitSegment()}else l=this.generateIS(t,e,r,n);const s=this.isVideoContiguous;let i,o=-1;if(v&&(o=function(t){for(let e=0;e<t.length;e++)if(t[e].key)return e;return-1}(e.samples),!s&&this.config.forceKeyFrameOnDiscontinuity))if(p=!0,o>0){Dg.warn(`[mp4-remuxer]: Dropped ${o} out of ${y} video samples due to a missing keyframe`);const t=this.getVideoStartPts(e.samples);e.samples=e.samples.slice(o),e.dropped+=o,m+=(e.samples[0].pts-t)/e.inputTimeScale,i=m}else-1===o&&(Dg.warn(`[mp4-remuxer]: No keyframe found out of ${y} video samples`),p=!1);if(this.ISGenerated){if(b&&v){const s=this.getVideoStartPts(e.samples),i=(bS(t.samples[0].pts,s)-s)/e.inputTimeScale;f+=Math.max(0,i),m+=Math.max(0,-i)}if(b){if(t.samplerate||(Dg.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),l=this.generateIS(t,e,r,n)),c=this.remuxAudio(t,f,this.isAudioContiguous,n,A||v||a===Ly?m:void 0),v){const i=c?c.endPTS-c.startPTS:0;e.inputTimeScale||(Dg.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),l=this.generateIS(t,e,r,n)),h=this.remuxVideo(e,m,s,i)}}else v&&(h=this.remuxVideo(e,m,s,0));h&&(h.firstKeyFrame=o,h.independent=-1!==o,h.firstKeyFramePTS=i)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(s.samples.length&&(u=vS(s,r,this._initPTS,this._initDTS)),i.samples.length&&(d=SS(i,r,this._initPTS))),{audio:c,video:h,initSegment:l,independent:p,text:d,id3:u}}generateIS(t,e,s,i){const r=t.samples,n=e.samples,o=this.typeSupported,a={},h=this._initPTS;let c,l,d,u=!h||i,p="audio/mp4";if(u&&(c=l=1/0),t.config&&r.length){switch(t.timescale=t.samplerate,t.segmentCodec){case"mp3":o.mpeg?(p="audio/mpeg",t.codec=""):o.mp3&&(t.codec="mp3");break;case"ac3":t.codec="ac-3"}a.audio={id:"audio",container:p,codec:t.codec,initSegment:"mp3"===t.segmentCodec&&o.mpeg?new Uint8Array(0):uS.initSegment([t]),metadata:{channelCount:t.channelCount}},u&&(d=t.inputTimeScale,h&&d===h.timescale?u=!1:c=l=r[0].pts-Math.round(d*s))}if(e.sps&&e.pps&&n.length){if(e.timescale=e.inputTimeScale,a.video={id:"main",container:"video/mp4",codec:e.codec,initSegment:uS.initSegment([e]),metadata:{width:e.width,height:e.height}},u)if(d=e.inputTimeScale,h&&d===h.timescale)u=!1;else{const t=this.getVideoStartPts(n),e=Math.round(d*s);l=Math.min(l,bS(n[0].dts,t)-e),c=Math.min(c,t-e)}this.videoTrackConfig={width:e.width,height:e.height,pixelRatio:e.pixelRatio}}if(Object.keys(a).length)return this.ISGenerated=!0,u?(this._initPTS={baseTime:c,timescale:d},this._initDTS={baseTime:l,timescale:d}):c=d=void 0,{tracks:a,initPTS:c,timescale:d}}remuxVideo(t,e,s,i){const r=t.inputTimeScale,n=t.samples,o=[],a=n.length,h=this._initPTS;let c,l,d=this.nextAvcDts,u=8,p=this.videoSampleDuration,f=Number.POSITIVE_INFINITY,m=Number.NEGATIVE_INFINITY,g=!1;if(!s||null===d){const t=e*r,i=n[0].pts-bS(n[0].dts,n[0].pts);gS&&null!==d&&Math.abs(t-i-d)<15e3?s=!0:d=t-i}const A=h.baseTime*r/h.timescale;for(let t=0;t<a;t++){const e=n[t];e.pts=bS(e.pts-A,d),e.dts=bS(e.dts-A,d),e.dts<n[t>0?t-1:t].dts&&(g=!0)}g&&n.sort((function(t,e){const s=t.dts-e.dts,i=t.pts-e.pts;return s||i})),c=n[0].dts,l=n[n.length-1].dts;const y=l-c,b=y?Math.round(y/(a-1)):p||t.inputTimeScale/30;if(s){const t=c-d,s=t>b,i=t<-1;if((s||i)&&(s?Dg.warn(`AVC: ${fS(t,!0)} ms (${t}dts) hole between fragments detected at ${e.toFixed(3)}`):Dg.warn(`AVC: ${fS(-t,!0)} ms (${t}dts) overlapping between fragments detected at ${e.toFixed(3)}`),!i||d>=n[0].pts||gS)){c=d;const e=n[0].pts-t;if(s)n[0].dts=c,n[0].pts=e;else for(let s=0;s<n.length&&!(n[s].dts>e);s++)n[s].dts-=t,n[s].pts-=t;Dg.log(`Video: Initial PTS/DTS adjusted: ${fS(e,!0)}/${fS(c,!0)}, delta: ${fS(t,!0)} ms`)}}c=Math.max(0,c);let v=0,S=0,w=c;for(let t=0;t<a;t++){const e=n[t],s=e.units,i=s.length;let r=0;for(let t=0;t<i;t++)r+=s[t].data.length;S+=r,v+=i,e.length=r,e.dts<w?(e.dts=w,w+=b/4|0||1):w=e.dts,f=Math.min(e.pts,f),m=Math.max(e.pts,m)}l=n[a-1].dts;const E=S+4*v+8;let I;try{I=new Uint8Array(E)}catch(t){return void this.observer.emit(Eg.ERROR,Eg.ERROR,{type:Ig.MUX_ERROR,details:Tg.REMUX_ALLOC_ERROR,fatal:!1,error:t,bytes:E,reason:`fail allocating video mdat ${E}`})}const T=new DataView(I.buffer);T.setUint32(0,E),I.set(uS.types.mdat,4);let k=!1,_=Number.POSITIVE_INFINITY,C=Number.POSITIVE_INFINITY,R=Number.NEGATIVE_INFINITY,D=Number.NEGATIVE_INFINITY;for(let t=0;t<a;t++){const e=n[t],s=e.units;let h,c=0;for(let t=0,e=s.length;t<e;t++){const e=s[t],i=e.data,r=e.data.byteLength;T.setUint32(u,r),u+=4,I.set(i,u),u+=r,c+=4+r}if(t<a-1)p=n[t+1].dts-e.dts,h=n[t+1].pts-e.pts;else{const s=this.config,o=t>0?e.dts-n[t-1].dts:b;if(h=t>0?e.pts-n[t-1].pts:b,s.stretchShortVideoTrack&&null!==this.nextAudioPts){const t=Math.floor(s.maxBufferHole*r),n=(i?f+i*r:this.nextAudioPts)-e.pts;n>t?(p=n-o,p<0?p=o:k=!0,Dg.log(`[mp4-remuxer]: It is approximately ${n/90} ms to the next segment; using duration ${p/90} ms for the last video frame.`)):p=o}else p=o}const l=Math.round(e.pts-e.dts);_=Math.min(_,p),R=Math.max(R,p),C=Math.min(C,h),D=Math.max(D,h),o.push(new wS(e.key,p,c,l))}if(o.length)if(gS){if(gS<70){const t=o[0].flags;t.dependsOn=2,t.isNonSync=0}}else if(AS&&D-C<R-_&&b/R<.025&&0===o[0].cts){Dg.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let t=c;for(let e=0,s=o.length;e<s;e++){const i=t+o[e].duration,r=t+o[e].cts;if(e<s-1){const t=i+o[e+1].cts;o[e].duration=t-r}else o[e].duration=e?o[e-1].duration:b;o[e].cts=0,t=i}}p=k||!p?b:p,this.nextAvcDts=d=l+p,this.videoSampleDuration=p,this.isVideoContiguous=!0;const L={data1:uS.moof(t.sequenceNumber++,c,bg({},t,{samples:o})),data2:I,startPTS:f/r,endPTS:(m+p)/r,startDTS:c/r,endDTS:d/r,type:"video",hasAudio:!1,hasVideo:!0,nb:o.length,dropped:t.dropped};return t.samples=[],t.dropped=0,L}getSamplesPerFrame(t){switch(t.segmentCodec){case"mp3":return 1152;case"ac3":return 1536;default:return 1024}}remuxAudio(t,e,s,i,r){const n=t.inputTimeScale,o=n/(t.samplerate?t.samplerate:n),a=this.getSamplesPerFrame(t),h=a*o,c=this._initPTS,l="mp3"===t.segmentCodec&&this.typeSupported.mpeg,d=[],u=void 0!==r;let p=t.samples,f=l?0:8,m=this.nextAudioPts||-1;const g=e*n,A=c.baseTime*n/c.timescale;if(this.isAudioContiguous=s=s||p.length&&m>0&&(i&&Math.abs(g-m)<9e3||Math.abs(bS(p[0].pts-A,g)-m)<20*h),p.forEach((function(t){t.pts=bS(t.pts-A,g)})),!s||m<0){if(p=p.filter((t=>t.pts>=0)),!p.length)return;m=0===r?0:i&&!u?Math.max(0,g):p[0].pts}if("aac"===t.segmentCodec){const e=this.config.maxAudioFramesDrift;for(let s=0,i=m;s<p.length;s++){const r=p[s],o=r.pts,a=o-i,c=Math.abs(1e3*a/n);if(a<=-e*h&&u)0===s&&(Dg.warn(`Audio frame @ ${(o/n).toFixed(3)}s overlaps nextAudioPts by ${Math.round(1e3*a/n)} ms.`),this.nextAudioPts=m=i=o);else if(a>=e*h&&c<1e4&&u){let e=Math.round(a/h);i=o-e*h,i<0&&(e--,i+=h),0===s&&(this.nextAudioPts=m=i),Dg.warn(`[mp4-remuxer]: Injecting ${e} audio frame @ ${(i/n).toFixed(3)}s due to ${Math.round(1e3*a/n)} ms gap.`);for(let n=0;n<e;n++){const e=Math.max(i,0);let n=lS.getSilentFrame(t.manifestCodec||t.codec,t.channelCount);n||(Dg.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),n=r.unit.subarray()),p.splice(s,0,{unit:n,pts:e}),i+=h,s++}}r.pts=i,i+=h}}let y,b=null,v=null,S=0,w=p.length;for(;w--;)S+=p[w].unit.byteLength;for(let e=0,i=p.length;e<i;e++){const i=p[e],r=i.unit;let n=i.pts;if(null!==v){d[e-1].duration=Math.round((n-v)/o)}else{if(s&&"aac"===t.segmentCodec&&(n=m),b=n,!(S>0))return;S+=f;try{y=new Uint8Array(S)}catch(t){return void this.observer.emit(Eg.ERROR,Eg.ERROR,{type:Ig.MUX_ERROR,details:Tg.REMUX_ALLOC_ERROR,fatal:!1,error:t,bytes:S,reason:`fail allocating audio mdat ${S}`})}if(!l){new DataView(y.buffer).setUint32(0,S),y.set(uS.types.mdat,4)}}y.set(r,f);const h=r.byteLength;f+=h,d.push(new wS(!0,a,h,0)),v=n}const E=d.length;if(!E)return;const I=d[d.length-1];this.nextAudioPts=m=v+o*I.duration;const T=l?new Uint8Array(0):uS.moof(t.sequenceNumber++,b/o,bg({},t,{samples:d}));t.samples=[];const k=b/n,_=m/n,C={data1:T,data2:y,startPTS:k,endPTS:_,startDTS:k,endDTS:_,type:"audio",hasAudio:!0,hasVideo:!1,nb:E};return this.isAudioContiguous=!0,C}remuxEmptyAudio(t,e,s,i){const r=t.inputTimeScale,n=r/(t.samplerate?t.samplerate:r),o=this.nextAudioPts,a=this._initDTS,h=9e4*a.baseTime/a.timescale,c=(null!==o?o:i.startDTS*r)+h,l=i.endDTS*r+h,d=1024*n,u=Math.ceil((l-c)/d),p=lS.getSilentFrame(t.manifestCodec||t.codec,t.channelCount);if(Dg.warn("[mp4-remuxer]: remux empty Audio"),!p)return void Dg.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");const f=[];for(let t=0;t<u;t++){const e=c+t*d;f.push({unit:p,pts:e,dts:e})}return t.samples=f,this.remuxAudio(t,e,s,!1)}}function bS(t,e){let s;if(null===e)return t;for(s=e<t?-8589934592:8589934592;Math.abs(t-e)>4294967296;)t+=s;return t}function vS(t,e,s,i){const r=t.samples.length;if(!r)return;const n=t.inputTimeScale;for(let o=0;o<r;o++){const r=t.samples[o];r.pts=bS(r.pts-s.baseTime*n/s.timescale,e*n)/n,r.dts=bS(r.dts-i.baseTime*n/i.timescale,e*n)/n}const o=t.samples;return t.samples=[],{samples:o}}function SS(t,e,s){const i=t.samples.length;if(!i)return;const r=t.inputTimeScale;for(let n=0;n<i;n++){const i=t.samples[n];i.pts=bS(i.pts-s.baseTime*r/s.timescale,e*r)/r}t.samples.sort(((t,e)=>t.pts-e.pts));const n=t.samples;return t.samples=[],{samples:n}}class wS{constructor(t,e,s,i){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=e,this.size=s,this.cts=i,this.flags={isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:t?2:1,isNonSync:t?0:1}}}function ES(t,e){const s=null==t?void 0:t.codec;if(s&&s.length>4)return s;if(e===Og){if("ec-3"===s||"ac-3"===s||"alac"===s)return s;if("fLaC"===s||"Opus"===s){return dy(s,!1)}const t="mp4a.40.5";return Dg.info(`Parsed audio codec "${s}" or audio object type not handled. Using "${t}"`),t}return Dg.warn(`Unhandled video codec "${s}"`),"hvc1"===s||"hev1"===s?"hvc1.1.6.L120.90":"av01"===s?"av01.0.04M.08":"avc1.42e01e"}try{mS=self.performance.now.bind(self.performance)}catch(t){Dg.debug("Unable to use Performance API on this environment"),mS=null==Qg?void 0:Qg.Date.now}const IS=[{demux:class{constructor(t,e){this.remainderData=null,this.timeOffset=0,this.config=void 0,this.videoTrack=void 0,this.audioTrack=void 0,this.id3Track=void 0,this.txtTrack=void 0,this.config=e}resetTimeStamp(){}resetInitSegment(t,e,s,i){const r=this.videoTrack=Cv("video",1),n=this.audioTrack=Cv("audio",1),o=this.txtTrack=Cv("text",1);if(this.id3Track=Cv("id3",1),this.timeOffset=0,null==t||!t.byteLength)return;const a=MA(t);if(a.video){const{id:t,timescale:e,codec:s}=a.video;r.id=t,r.timescale=o.timescale=e,r.codec=s}if(a.audio){const{id:t,timescale:e,codec:s}=a.audio;n.id=t,n.timescale=e,n.codec=s}o.id=kA.text,r.sampleDuration=0,r.duration=n.duration=i}resetContiguity(){this.remainderData=null}static probe(t){return function(t){const e=t.byteLength;for(let s=0;s<e;){const i=RA(t,s);if(i>8&&109===t[s+4]&&111===t[s+5]&&111===t[s+6]&&102===t[s+7])return!0;s=i>1?s+i:e}return!1}(t)}demux(t,e){this.timeOffset=e;let s=t;const i=this.videoTrack,r=this.txtTrack;if(this.config.progressive){this.remainderData&&(s=zA(this.remainderData,t));const e=function(t){const e={valid:null,remainder:null},s=PA(t,["moof"]);if(s.length<2)return e.remainder=t,e;const i=s[s.length-1];return e.valid=nA(t,0,i.byteOffset-8),e.remainder=nA(t,i.byteOffset-8),e}(s);this.remainderData=e.remainder,i.samples=e.valid||new Uint8Array}else i.samples=s;const n=this.extractID3Track(i,e);return r.samples=GA(e,i),{videoTrack:i,audioTrack:this.audioTrack,id3Track:n,textTrack:this.txtTrack}}flush(){const t=this.timeOffset,e=this.videoTrack,s=this.txtTrack;e.samples=this.remainderData||new Uint8Array,this.remainderData=null;const i=this.extractID3Track(e,this.timeOffset);return s.samples=GA(t,e),{videoTrack:e,audioTrack:Cv(),id3Track:i,textTrack:Cv()}}extractID3Track(t,e){const s=this.id3Track;if(t.samples.length){const i=PA(t.samples,["emsg"]);i&&i.forEach((t=>{const i=function(t){const e=t[0];let s="",i="",r=0,n=0,o=0,a=0,h=0,c=0;if(0===e){for(;"\0"!==_A(t.subarray(c,c+1));)s+=_A(t.subarray(c,c+1)),c+=1;for(s+=_A(t.subarray(c,c+1)),c+=1;"\0"!==_A(t.subarray(c,c+1));)i+=_A(t.subarray(c,c+1)),c+=1;i+=_A(t.subarray(c,c+1)),c+=1,r=RA(t,12),n=RA(t,16),a=RA(t,20),h=RA(t,24),c=28}else if(1===e){c+=4,r=RA(t,c),c+=4;const e=RA(t,c);c+=4;const n=RA(t,c);for(c+=4,o=2**32*e+n,Sg(o)||(o=Number.MAX_SAFE_INTEGER,Dg.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),a=RA(t,c),c+=4,h=RA(t,c),c+=4;"\0"!==_A(t.subarray(c,c+1));)s+=_A(t.subarray(c,c+1)),c+=1;for(s+=_A(t.subarray(c,c+1)),c+=1;"\0"!==_A(t.subarray(c,c+1));)i+=_A(t.subarray(c,c+1)),c+=1;i+=_A(t.subarray(c,c+1)),c+=1}return{schemeIdUri:s,value:i,timeScale:r,presentationTime:o,presentationTimeDelta:n,eventDuration:a,id:h,payload:t.subarray(c,t.byteLength)}}(t);if(qv.test(i.schemeIdUri)){const t=vg(i.presentationTime)?i.presentationTime/i.timeScale:e+i.presentationTimeDelta/i.timeScale;let r=4294967295===i.eventDuration?Number.POSITIVE_INFINITY:i.eventDuration/i.timeScale;r<=.001&&(r=Number.POSITIVE_INFINITY);const n=i.payload;s.samples.push({data:n,len:n.byteLength,dts:t,pts:t,type:Gy,duration:r})}}))}return s}demuxSampleAes(t,e,s){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){}},remux:class{constructor(){this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null}destroy(){}resetTimeStamp(t){this.initPTS=t,this.lastEndTime=null}resetNextTimestamp(){this.lastEndTime=null}resetInitSegment(t,e,s,i){this.audioCodec=e,this.videoCodec=s,this.generateInitSegment(function(t,e){if(!t||!e)return t;const s=e.keyId;s&&e.isCommonEncryption&&PA(t,["moov","trak"]).forEach((t=>{const e=PA(t,["mdia","minf","stbl","stsd"])[0].subarray(8);let i=PA(e,["enca"]);const r=i.length>0;r||(i=PA(e,["encv"])),i.forEach((t=>{PA(r?t.subarray(28):t.subarray(78),["sinf"]).forEach((t=>{const e=jA(t);if(e){const t=e.subarray(8,24);t.some((t=>0!==t))||(Dg.log(`[eme] Patching keyId in 'enc${r?"a":"v"}>sinf>>tenc' box: ${EA(t)} -> ${EA(s)}`),e.set(s,8))}}))}))}));return t}(t,i)),this.emitInitSegment=!0}generateInitSegment(t){let{audioCodec:e,videoCodec:s}=this;if(null==t||!t.byteLength)return this.initTracks=void 0,void(this.initData=void 0);const i=this.initData=MA(t);i.audio&&(e=ES(i.audio,Og)),i.video&&(s=ES(i.video,Ug));const r={};i.audio&&i.video?r.audiovideo={container:"video/mp4",codec:e+","+s,initSegment:t,id:"main"}:i.audio?r.audio={container:"audio/mp4",codec:e,initSegment:t,id:"audio"}:i.video?r.video={container:"video/mp4",codec:s,initSegment:t,id:"main"}:Dg.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=r}remux(t,e,s,i,r,n){var o,a;let{initPTS:h,lastEndTime:c}=this;const l={audio:void 0,video:void 0,text:i,id3:s,initSegment:void 0};vg(c)||(c=this.lastEndTime=r||0);const d=e.samples;if(null==d||!d.length)return l;const u={initPTS:void 0,timescale:1};let p=this.initData;if(null!=(o=p)&&o.length||(this.generateInitSegment(d),p=this.initData),null==(a=p)||!a.length)return Dg.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),l;this.emitInitSegment&&(u.tracks=this.initTracks,this.emitInitSegment=!1);const f=function(t,e){let s=0,i=0,r=0;const n=PA(t,["moof","traf"]);for(let t=0;t<n.length;t++){const o=n[t],a=PA(o,["tfhd"])[0],h=e[RA(a,4)];if(!h)continue;const c=h.default,l=RA(a,0)|(null==c?void 0:c.flags);let d=null==c?void 0:c.duration;8&l&&(d=RA(a,2&l?12:8));const u=h.timescale||9e4,p=PA(o,["trun"]);for(let t=0;t<p.length;t++)s=VA(p[t]),!s&&d&&(s=d*RA(p[t],4)),h.type===Ug?i+=s/u:h.type===Og&&(r+=s/u)}if(0===i&&0===r){let e=1/0,s=0,i=0;const r=PA(t,["sidx"]);for(let t=0;t<r.length;t++){const n=BA(r[t]);if(null!=n&&n.references){e=Math.min(e,n.earliestPresentationTime/n.timescale);const t=n.references.reduce(((t,e)=>t+e.info.duration||0),0);s=Math.max(s,t+n.earliestPresentationTime/n.timescale),i=s-e}}if(i&&vg(i))return i}return i||r}(d,p),m=function(t,e){return PA(e,["moof","traf"]).reduce(((e,s)=>{const i=PA(s,["tfdt"])[0],r=i[0],n=PA(s,["tfhd"]).reduce(((e,s)=>{const n=RA(s,4),o=t[n];if(o){let t=RA(i,4);if(1===r){if(t===IA)return Dg.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),e;t*=IA+1,t+=RA(i,8)}const s=t/(o.timescale||9e4);if(vg(s)&&(null===e||s<e))return s}return e}),null);return null!==n&&vg(n)&&(null===e||n<e)?n:e}),null)}(p,d),g=null===m?r:m;(function(t,e,s,i){if(null===t)return!0;const r=Math.max(i,1),n=e-t.baseTime/t.timescale;return Math.abs(n-s)>r}(h,g,r,f)||u.timescale!==h.timescale&&n)&&(u.initPTS=g-r,h&&1===h.timescale&&Dg.warn("Adjusting initPTS by "+(u.initPTS-h.baseTime)),this.initPTS=h={baseTime:u.initPTS,timescale:1});const A=t?g-h.baseTime/h.timescale:c,y=A+f;!function(t,e,s){PA(e,["moof","traf"]).forEach((e=>{PA(e,["tfhd"]).forEach((i=>{const r=RA(i,4),n=t[r];if(!n)return;const o=n.timescale||9e4;PA(e,["tfdt"]).forEach((t=>{const e=t[0],i=s*o;if(i){let s=RA(t,4);if(0===e)s-=i,s=Math.max(s,0),xA(t,4,s);else{s*=Math.pow(2,32),s+=RA(t,8),s-=i,s=Math.max(s,0);const e=Math.floor(s/(IA+1)),r=Math.floor(s%(IA+1));xA(t,4,e),xA(t,8,r)}}}))}))}))}(p,d,h.baseTime/h.timescale),f>0?this.lastEndTime=y:(Dg.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const b=!!p.audio,v=!!p.video;let S="";b&&(S+="audio"),v&&(S+="video");const w={data1:d,startPTS:A,startDTS:A,endPTS:y,endDTS:y,type:S,hasAudio:b,hasVideo:v,nb:1,dropped:0};return l.audio="audio"===w.type?w:void 0,l.video="audio"!==w.type?w:void 0,l.initSegment=u,l.id3=vS(s,r,h,h),i.samples.length&&(l.text=SS(i,r,h)),l}}},{demux:iS,remux:yS},{demux:class extends Rv{constructor(t,e){super(),this.observer=void 0,this.config=void 0,this.observer=t,this.config=e}resetInitSegment(t,e,s,i){super.resetInitSegment(t,e,s,i),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:e,duration:i,inputTimeScale:9e4,dropped:0}}static probe(t){if(!t)return!1;const e=hA(t,0);let s=(null==e?void 0:e.length)||0;if(Yv(t,s))return!1;for(let e=t.length;s<e;s++)if(Mv(t,s))return Dg.log("ADTS sync word found !"),!0;return!1}canParse(t,e){return function(t,e){return function(t,e){return e+5<t.length}(t,e)&&Lv(t,e)&&Pv(t,e)<=t.length-e}(t,e)}appendFrame(t,e,s){Fv(t,this.observer,e,s,t.manifestCodec);const i=Uv(t,e,s,this.basePTS,this.frameIndex);if(i&&0===i.missing)return i}},remux:yS},{demux:class extends Rv{resetInitSegment(t,e,s,i){super.resetInitSegment(t,e,s,i),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:e,duration:i,inputTimeScale:9e4,dropped:0}}static probe(t){if(!t)return!1;const e=hA(t,0);let s=(null==e?void 0:e.length)||0;if(e&&11===t[s]&&119===t[s+1]&&void 0!==dA(e)&&Jv(t,s)<=16)return!1;for(let e=t.length;s<e;s++)if(Yv(t,s))return Dg.log("MPEG Audio sync word found !"),!0;return!1}canParse(t,e){return function(t,e){return Kv(t,e)&&4<=t.length-e}(t,e)}appendFrame(t,e,s){if(null!==this.basePTS)return Wv(t,e,s,this.basePTS,this.frameIndex)}},remux:yS}];IS.splice(2,0,{demux:Xv,remux:yS});class TS{constructor(t,e,s,i,r){this.async=!1,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=t,this.typeSupported=e,this.config=s,this.vendor=i,this.id=r}configure(t){this.transmuxConfig=t,this.decrypter&&this.decrypter.reset()}push(t,e,s,i){const r=s.transmuxing;r.executeStart=mS();let n=new Uint8Array(t);const{currentTransmuxState:o,transmuxConfig:a}=this;i&&(this.currentTransmuxState=i);const{contiguous:h,discontinuity:c,trackSwitch:l,accurateTimeOffset:d,timeOffset:u,initSegmentChange:p}=i||o,{audioCodec:f,videoCodec:m,defaultInitPts:g,duration:A,initSegmentData:y}=a,b=function(t,e){let s=null;t.byteLength>0&&null!=(null==e?void 0:e.key)&&null!==e.iv&&null!=e.method&&(s=e);return s}(n,e);if(b&&"AES-128"===b.method){const t=this.getDecrypter();if(!t.isSync())return this.decryptionPromise=t.webCryptoDecrypt(n,b.key.buffer,b.iv.buffer).then((t=>{const e=this.push(t,null,s);return this.decryptionPromise=null,e})),this.decryptionPromise;{let e=t.softwareDecrypt(n,b.key.buffer,b.iv.buffer);if(s.part>-1&&(e=t.flush()),!e)return r.executeEnd=mS(),kS(s);n=new Uint8Array(e)}}const v=this.needsProbing(c,l);if(v){const t=this.configureTransmuxer(n);if(t)return Dg.warn(`[transmuxer] ${t.message}`),this.observer.emit(Eg.ERROR,Eg.ERROR,{type:Ig.MEDIA_ERROR,details:Tg.FRAG_PARSING_ERROR,fatal:!1,error:t,reason:t.message}),r.executeEnd=mS(),kS(s)}(c||l||p||v)&&this.resetInitSegment(y,f,m,A,e),(c||p||v)&&this.resetInitialTimestamp(g),h||this.resetContiguity();const S=this.transmux(n,b,u,d,s),w=this.currentTransmuxState;return w.contiguous=!0,w.discontinuity=!1,w.trackSwitch=!1,r.executeEnd=mS(),S}flush(t){const e=t.transmuxing;e.executeStart=mS();const{decrypter:s,currentTransmuxState:i,decryptionPromise:r}=this;if(r)return r.then((()=>this.flush(t)));const n=[],{timeOffset:o}=i;if(s){const e=s.flush();e&&n.push(this.push(e,null,t))}const{demuxer:a,remuxer:h}=this;if(!a||!h)return e.executeEnd=mS(),[kS(t)];const c=a.flush(o);return _S(c)?c.then((e=>(this.flushRemux(n,e,t),n))):(this.flushRemux(n,c,t),n)}flushRemux(t,e,s){const{audioTrack:i,videoTrack:r,id3Track:n,textTrack:o}=e,{accurateTimeOffset:a,timeOffset:h}=this.currentTransmuxState;Dg.log(`[transmuxer.ts]: Flushed fragment ${s.sn}${s.part>-1?" p: "+s.part:""} of level ${s.level}`);const c=this.remuxer.remux(i,r,n,o,h,a,!0,this.id);t.push({remuxResult:c,chunkMeta:s}),s.transmuxing.executeEnd=mS()}resetInitialTimestamp(t){const{demuxer:e,remuxer:s}=this;e&&s&&(e.resetTimeStamp(t),s.resetTimeStamp(t))}resetContiguity(){const{demuxer:t,remuxer:e}=this;t&&e&&(t.resetContiguity(),e.resetNextTimestamp())}resetInitSegment(t,e,s,i,r){const{demuxer:n,remuxer:o}=this;n&&o&&(n.resetInitSegment(t,e,s,i),o.resetInitSegment(t,e,s,r))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(t,e,s,i,r){let n;return n=e&&"SAMPLE-AES"===e.method?this.transmuxSampleAes(t,e,s,i,r):this.transmuxUnencrypted(t,s,i,r),n}transmuxUnencrypted(t,e,s,i){const{audioTrack:r,videoTrack:n,id3Track:o,textTrack:a}=this.demuxer.demux(t,e,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(r,n,o,a,e,s,!1,this.id),chunkMeta:i}}transmuxSampleAes(t,e,s,i,r){return this.demuxer.demuxSampleAes(t,e,s).then((t=>({remuxResult:this.remuxer.remux(t.audioTrack,t.videoTrack,t.id3Track,t.textTrack,s,i,!1,this.id),chunkMeta:r})))}configureTransmuxer(t){const{config:e,observer:s,typeSupported:i,vendor:r}=this;let n;for(let e=0,s=IS.length;e<s;e++){var o;if(null!=(o=IS[e].demux)&&o.probe(t)){n=IS[e];break}}if(!n)return new Error("Failed to find demuxer by probing fragment data");const a=this.demuxer,h=this.remuxer,c=n.remux,l=n.demux;h&&h instanceof c||(this.remuxer=new c(s,e,i,r)),a&&a instanceof l||(this.demuxer=new l(s,e,i),this.probe=l.probe)}needsProbing(t,e){return!this.demuxer||!this.remuxer||t||e}getDecrypter(){let t=this.decrypter;return t||(t=this.decrypter=new uv(this.config)),t}}const kS=t=>({remuxResult:{},chunkMeta:t});function _S(t){return"then"in t&&t.then instanceof Function}class CS{constructor(t,e,s,i,r){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=t,this.videoCodec=e,this.initSegmentData=s,this.duration=i,this.defaultInitPts=r||null}}class RS{constructor(t,e,s,i,r,n){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=t,this.contiguous=e,this.accurateTimeOffset=s,this.trackSwitch=i,this.timeOffset=r,this.initSegmentChange=n}}var DS={exports:{}};!function(t){var e=Object.prototype.hasOwnProperty,s="~";function i(){}function r(t,e,s){this.fn=t,this.context=e,this.once=s||!1}function n(t,e,i,n,o){if("function"!=typeof i)throw new TypeError("The listener must be a function");var a=new r(i,n||t,o),h=s?s+e:e;return t._events[h]?t._events[h].fn?t._events[h]=[t._events[h],a]:t._events[h].push(a):(t._events[h]=a,t._eventsCount++),t}function o(t,e){0==--t._eventsCount?t._events=new i:delete t._events[e]}function a(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(s=!1)),a.prototype.eventNames=function(){var t,i,r=[];if(0===this._eventsCount)return r;for(i in t=this._events)e.call(t,i)&&r.push(s?i.slice(1):i);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(t)):r},a.prototype.listeners=function(t){var e=s?s+t:t,i=this._events[e];if(!i)return[];if(i.fn)return[i.fn];for(var r=0,n=i.length,o=new Array(n);r<n;r++)o[r]=i[r].fn;return o},a.prototype.listenerCount=function(t){var e=s?s+t:t,i=this._events[e];return i?i.fn?1:i.length:0},a.prototype.emit=function(t,e,i,r,n,o){var a=s?s+t:t;if(!this._events[a])return!1;var h,c,l=this._events[a],d=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),d){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,i),!0;case 4:return l.fn.call(l.context,e,i,r),!0;case 5:return l.fn.call(l.context,e,i,r,n),!0;case 6:return l.fn.call(l.context,e,i,r,n,o),!0}for(c=1,h=new Array(d-1);c<d;c++)h[c-1]=arguments[c];l.fn.apply(l.context,h)}else{var u,p=l.length;for(c=0;c<p;c++)switch(l[c].once&&this.removeListener(t,l[c].fn,void 0,!0),d){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,e);break;case 3:l[c].fn.call(l[c].context,e,i);break;case 4:l[c].fn.call(l[c].context,e,i,r);break;default:if(!h)for(u=1,h=new Array(d-1);u<d;u++)h[u-1]=arguments[u];l[c].fn.apply(l[c].context,h)}}return!0},a.prototype.on=function(t,e,s){return n(this,t,e,s,!1)},a.prototype.once=function(t,e,s){return n(this,t,e,s,!0)},a.prototype.removeListener=function(t,e,i,r){var n=s?s+t:t;if(!this._events[n])return this;if(!e)return o(this,n),this;var a=this._events[n];if(a.fn)a.fn!==e||r&&!a.once||i&&a.context!==i||o(this,n);else{for(var h=0,c=[],l=a.length;h<l;h++)(a[h].fn!==e||r&&!a[h].once||i&&a[h].context!==i)&&c.push(a[h]);c.length?this._events[n]=1===c.length?c[0]:c:o(this,n)}return this},a.prototype.removeAllListeners=function(t){var e;return t?(e=s?s+t:t,this._events[e]&&o(this,e)):(this._events=new i,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=s,a.EventEmitter=a,t.exports=a}(DS);var LS=ug(DS.exports);class xS{constructor(t,e,s,i){this.error=null,this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0;const r=t.config;this.hls=t,this.id=e,this.useWorker=!!r.enableWorker,this.onTransmuxComplete=s,this.onFlush=i;const n=(t,e)=>{(e=e||{}).frag=this.frag,e.id=this.id,t===Eg.ERROR&&(this.error=e.error),this.hls.trigger(t,e)};this.observer=new LS,this.observer.on(Eg.FRAG_DECRYPTED,n),this.observer.on(Eg.ERROR,n);const o=sy(r.preferManagedMediaSource)||{isTypeSupported:()=>!1},a={mpeg:o.isTypeSupported("audio/mpeg"),mp3:o.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:o.isTypeSupported('audio/mp4; codecs="ac-3"')};if(this.useWorker&&"undefined"!=typeof Worker){if(r.workerPath||"function"==typeof __HLS_WORKER_BUNDLE__){try{r.workerPath?(Dg.log(`loading Web Worker ${r.workerPath} for "${e}"`),this.workerContext=function(t){const e=new self.URL(t,self.location.href).href;return{worker:new self.Worker(e),scriptURL:e}}(r.workerPath)):(Dg.log(`injecting Web Worker for "${e}"`),this.workerContext=function(){const t=new self.Blob([`var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(${__HLS_WORKER_BUNDLE__.toString()})(true);`],{type:"text/javascript"}),e=self.URL.createObjectURL(t);return{worker:new self.Worker(e),objectURL:e}}()),this.onwmsg=t=>this.onWorkerMessage(t);const{worker:t}=this.workerContext;t.addEventListener("message",this.onwmsg),t.onerror=t=>{const s=new Error(`${t.message} (${t.filename}:${t.lineno})`);r.enableWorker=!1,Dg.warn(`Error in "${e}" Web Worker, fallback to inline`),this.hls.trigger(Eg.ERROR,{type:Ig.OTHER_ERROR,details:Tg.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:s})},t.postMessage({cmd:"init",typeSupported:a,vendor:"",id:e,config:JSON.stringify(r)})}catch(t){Dg.warn(`Error setting up "${e}" Web Worker, fallback to inline`,t),this.resetWorker(),this.error=null,this.transmuxer=new TS(this.observer,a,r,"",e)}return}}this.transmuxer=new TS(this.observer,a,r,"",e)}resetWorker(){if(this.workerContext){const{worker:t,objectURL:e}=this.workerContext;e&&self.URL.revokeObjectURL(e),t.removeEventListener("message",this.onwmsg),t.onerror=null,t.terminate(),this.workerContext=null}}destroy(){if(this.workerContext)this.resetWorker(),this.onwmsg=void 0;else{const t=this.transmuxer;t&&(t.destroy(),this.transmuxer=null)}const t=this.observer;t&&t.removeAllListeners(),this.frag=null,this.observer=null,this.hls=null}push(t,e,s,i,r,n,o,a,h,c){var l,d;h.transmuxing.start=self.performance.now();const{transmuxer:u}=this,p=n?n.start:r.start,f=r.decryptdata,m=this.frag,g=!(m&&r.cc===m.cc),A=!(m&&h.level===m.level),y=m?h.sn-m.sn:-1,b=this.part?h.part-this.part.index:-1,v=0===y&&h.id>1&&h.id===(null==m?void 0:m.stats.chunkCount),S=!A&&(1===y||0===y&&(1===b||v&&b<=0)),w=self.performance.now();(A||y||0===r.stats.parsing.start)&&(r.stats.parsing.start=w),!n||!b&&S||(n.stats.parsing.start=w);const E=!(m&&(null==(l=r.initSegment)?void 0:l.url)===(null==(d=m.initSegment)?void 0:d.url)),I=new RS(g,S,a,A,p,E);if(!S||g||E){Dg.log(`[transmuxer-interface, ${r.type}]: Starting new transmux session for sn: ${h.sn} p: ${h.part} level: ${h.level} id: ${h.id}\n discontinuity: ${g}\n trackSwitch: ${A}\n contiguous: ${S}\n accurateTimeOffset: ${a}\n timeOffset: ${p}\n initSegmentChange: ${E}`);const t=new CS(s,i,e,o,c);this.configureTransmuxer(t)}if(this.frag=r,this.part=n,this.workerContext)this.workerContext.worker.postMessage({cmd:"demux",data:t,decryptdata:f,chunkMeta:h,state:I},t instanceof ArrayBuffer?[t]:[]);else if(u){const e=u.push(t,f,h,I);_S(e)?(u.async=!0,e.then((t=>{this.handleTransmuxComplete(t)})).catch((t=>{this.transmuxerError(t,h,"transmuxer-interface push error")}))):(u.async=!1,this.handleTransmuxComplete(e))}}flush(t){t.transmuxing.start=self.performance.now();const{transmuxer:e}=this;if(this.workerContext)this.workerContext.worker.postMessage({cmd:"flush",chunkMeta:t});else if(e){let s=e.flush(t);_S(s)||e.async?(_S(s)||(s=Promise.resolve(s)),s.then((e=>{this.handleFlushResult(e,t)})).catch((e=>{this.transmuxerError(e,t,"transmuxer-interface flush error")}))):this.handleFlushResult(s,t)}}transmuxerError(t,e,s){this.hls&&(this.error=t,this.hls.trigger(Eg.ERROR,{type:Ig.MEDIA_ERROR,details:Tg.FRAG_PARSING_ERROR,chunkMeta:e,frag:this.frag||void 0,fatal:!1,error:t,err:t,reason:s}))}handleFlushResult(t,e){t.forEach((t=>{this.handleTransmuxComplete(t)})),this.onFlush(e)}onWorkerMessage(t){const e=t.data;if(null==e||!e.event)return void Dg.warn("worker message received with no "+(e?"event name":"data"));const s=this.hls;if(this.hls)switch(e.event){case"init":{var i;const t=null==(i=this.workerContext)?void 0:i.objectURL;t&&self.URL.revokeObjectURL(t);break}case"transmuxComplete":this.handleTransmuxComplete(e.data);break;case"flush":this.onFlush(e.data);break;case"workerLog":Dg[e.data.logType]&&Dg[e.data.logType](e.data.message);break;default:e.data=e.data||{},e.data.frag=this.frag,e.data.id=this.id,s.trigger(e.event,e.data)}}configureTransmuxer(t){const{transmuxer:e}=this;this.workerContext?this.workerContext.worker.postMessage({cmd:"configure",config:t}):e&&e.configure(t)}handleTransmuxComplete(t){t.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(t)}}function PS(t,e){if(t.length!==e.length)return!1;for(let s=0;s<t.length;s++)if(!BS(t[s].attrs,e[s].attrs))return!1;return!0}function BS(t,e,s){const i=t["STABLE-RENDITION-ID"];return i&&!s?i===e["STABLE-RENDITION-ID"]:!(s||["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED","ASSOC-LANGUAGE"]).some((s=>t[s]!==e[s]))}function MS(t,e){return e.label.toLowerCase()===t.name.toLowerCase()&&(!e.language||e.language.toLowerCase()===(t.lang||"").toLowerCase())}class FS{constructor(t){this.buffered=void 0;const e=(e,s,i)=>{if((s>>>=0)>i-1)throw new DOMException(`Failed to execute '${e}' on 'TimeRanges': The index provided (${s}) is greater than the maximum bound (${i})`);return t[s][e]};this.buffered={get length(){return t.length},end:s=>e("end",s,t.length),start:s=>e("start",s,t.length)}}}class OS{constructor(t){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=t}append(t,e,s){const i=this.queues[e];i.push(t),1!==i.length||s||this.executeNext(e)}insertAbort(t,e){this.queues[e].unshift(t),this.executeNext(e)}appendBlocker(t){let e;const s=new Promise((t=>{e=t})),i={execute:e,onStart:()=>{},onComplete:()=>{},onError:()=>{}};return this.append(i,t),s}executeNext(t){const e=this.queues[t];if(e.length){const s=e[0];try{s.execute()}catch(e){Dg.warn(`[buffer-operation-queue]: Exception executing "${t}" SourceBuffer operation: ${e}`),s.onError(e);const i=this.buffers[t];null!=i&&i.updating||this.shiftAndExecuteNext(t)}}}shiftAndExecuteNext(t){this.queues[t].shift(),this.executeNext(t)}current(t){return this.queues[t][0]}}const US=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/;function NS(t){const e=t.querySelectorAll("source");[].slice.call(e).forEach((e=>{t.removeChild(e)}))}const jS={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},VS=t=>String.fromCharCode(jS[t]||t),zS=15,GS=100,WS={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},HS={17:2,18:4,21:6,22:8,23:10,19:13,20:15},KS={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},QS={25:2,26:4,29:6,30:8,31:10,27:13,28:15},YS=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class qS{constructor(){this.time=null,this.verboseLevel=0}log(t,e){if(this.verboseLevel>=t){const s="function"==typeof e?e():e;Dg.log(`${this.time} [${t}] ${s}`)}}}const JS=function(t){const e=[];for(let s=0;s<t.length;s++)e.push(t[s].toString(16));return e};class XS{constructor(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}reset(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}setStyles(t){const e=["foreground","underline","italics","background","flash"];for(let s=0;s<e.length;s++){const i=e[s];t.hasOwnProperty(i)&&(this[i]=t[i])}}isDefault(){return"white"===this.foreground&&!this.underline&&!this.italics&&"black"===this.background&&!this.flash}equals(t){return this.foreground===t.foreground&&this.underline===t.underline&&this.italics===t.italics&&this.background===t.background&&this.flash===t.flash}copy(t){this.foreground=t.foreground,this.underline=t.underline,this.italics=t.italics,this.background=t.background,this.flash=t.flash}toString(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}}class ZS{constructor(){this.uchar=" ",this.penState=new XS}reset(){this.uchar=" ",this.penState.reset()}setChar(t,e){this.uchar=t,this.penState.copy(e)}setPenState(t){this.penState.copy(t)}equals(t){return this.uchar===t.uchar&&this.penState.equals(t.penState)}copy(t){this.uchar=t.uchar,this.penState.copy(t.penState)}isEmpty(){return" "===this.uchar&&this.penState.isDefault()}}class $S{constructor(t){this.chars=[],this.pos=0,this.currPenState=new XS,this.cueStartTime=null,this.logger=void 0;for(let t=0;t<GS;t++)this.chars.push(new ZS);this.logger=t}equals(t){for(let e=0;e<GS;e++)if(!this.chars[e].equals(t.chars[e]))return!1;return!0}copy(t){for(let e=0;e<GS;e++)this.chars[e].copy(t.chars[e])}isEmpty(){let t=!0;for(let e=0;e<GS;e++)if(!this.chars[e].isEmpty()){t=!1;break}return t}setCursor(t){this.pos!==t&&(this.pos=t),this.pos<0?(this.logger.log(3,"Negative cursor position "+this.pos),this.pos=0):this.pos>GS&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=GS)}moveCursor(t){const e=this.pos+t;if(t>1)for(let t=this.pos+1;t<e+1;t++)this.chars[t].setPenState(this.currPenState);this.setCursor(e)}backSpace(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)}insertChar(t){t>=144&&this.backSpace();const e=VS(t);this.pos>=GS?this.logger.log(0,(()=>"Cannot insert "+t.toString(16)+" ("+e+") at position "+this.pos+". Skipping it!")):(this.chars[this.pos].setChar(e,this.currPenState),this.moveCursor(1))}clearFromPos(t){let e;for(e=t;e<GS;e++)this.chars[e].reset()}clear(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()}clearToEndOfRow(){this.clearFromPos(this.pos)}getTextString(){const t=[];let e=!0;for(let s=0;s<GS;s++){const i=this.chars[s].uchar;" "!==i&&(e=!1),t.push(i)}return e?"":t.join("")}setPenStyles(t){this.currPenState.setStyles(t);this.chars[this.pos].setPenState(this.currPenState)}}class tw{constructor(t){this.rows=[],this.currRow=14,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let e=0;e<zS;e++)this.rows.push(new $S(t));this.logger=t}reset(){for(let t=0;t<zS;t++)this.rows[t].clear();this.currRow=14}equals(t){let e=!0;for(let s=0;s<zS;s++)if(!this.rows[s].equals(t.rows[s])){e=!1;break}return e}copy(t){for(let e=0;e<zS;e++)this.rows[e].copy(t.rows[e])}isEmpty(){let t=!0;for(let e=0;e<zS;e++)if(!this.rows[e].isEmpty()){t=!1;break}return t}backSpace(){this.rows[this.currRow].backSpace()}clearToEndOfRow(){this.rows[this.currRow].clearToEndOfRow()}insertChar(t){this.rows[this.currRow].insertChar(t)}setPen(t){this.rows[this.currRow].setPenStyles(t)}moveCursor(t){this.rows[this.currRow].moveCursor(t)}setCursor(t){this.logger.log(2,"setCursor: "+t);this.rows[this.currRow].setCursor(t)}setPAC(t){this.logger.log(2,(()=>"pacData = "+JSON.stringify(t)));let e=t.row-1;if(this.nrRollUpRows&&e<this.nrRollUpRows-1&&(e=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==e){for(let t=0;t<zS;t++)this.rows[t].clear();const t=this.currRow+1-this.nrRollUpRows,s=this.lastOutputScreen;if(s){const i=s.rows[t].cueStartTime,r=this.logger.time;if(null!==i&&null!==r&&i<r)for(let i=0;i<this.nrRollUpRows;i++)this.rows[e-this.nrRollUpRows+i+1].copy(s.rows[t+i])}}this.currRow=e;const s=this.rows[this.currRow];if(null!==t.indent){const e=t.indent,i=Math.max(e-1,0);s.setCursor(t.indent),t.color=s.chars[i].penState.foreground}const i={foreground:t.color,underline:t.underline,italics:t.italics,background:"black",flash:!1};this.setPen(i)}setBkgData(t){this.logger.log(2,(()=>"bkgData = "+JSON.stringify(t))),this.backSpace(),this.setPen(t),this.insertChar(32)}setRollUpRows(t){this.nrRollUpRows=t}rollUp(){if(null===this.nrRollUpRows)return void this.logger.log(3,"roll_up but nrRollUpRows not set yet");this.logger.log(1,(()=>this.getDisplayText()));const t=this.currRow+1-this.nrRollUpRows,e=this.rows.splice(t,1)[0];e.clear(),this.rows.splice(this.currRow,0,e),this.logger.log(2,"Rolling up")}getDisplayText(t){t=t||!1;const e=[];let s="",i=-1;for(let s=0;s<zS;s++){const r=this.rows[s].getTextString();r&&(i=s+1,t?e.push("Row "+i+": '"+r+"'"):e.push(r.trim()))}return e.length>0&&(s=t?"["+e.join(" | ")+"]":e.join("\n")),s}getTextAndFormat(){return this.rows}}class ew{constructor(t,e,s){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=t,this.outputFilter=e,this.mode=null,this.verbose=0,this.displayedMemory=new tw(s),this.nonDisplayedMemory=new tw(s),this.lastOutputScreen=new tw(s),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=s}reset(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}getHandler(){return this.outputFilter}setHandler(t){this.outputFilter=t}setPAC(t){this.writeScreen.setPAC(t)}setBkgData(t){this.writeScreen.setBkgData(t)}setMode(t){t!==this.mode&&(this.mode=t,this.logger.log(2,(()=>"MODE="+t)),"MODE_POP-ON"===this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=t)}insertChars(t){for(let e=0;e<t.length;e++)this.writeScreen.insertChar(t[e]);const e=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(2,(()=>e+": "+this.writeScreen.getDisplayText(!0))),"MODE_PAINT-ON"!==this.mode&&"MODE_ROLL-UP"!==this.mode||(this.logger.log(1,(()=>"DISPLAYED: "+this.displayedMemory.getDisplayText(!0))),this.outputDataUpdate())}ccRCL(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")}ccBS(){this.logger.log(2,"BS - BackSpace"),"MODE_TEXT"!==this.mode&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())}ccAOF(){}ccAON(){}ccDER(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()}ccRU(t){this.logger.log(2,"RU("+t+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(t)}ccFON(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})}ccRDC(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")}ccTR(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")}ccRTD(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")}ccEDM(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)}ccCR(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)}ccENM(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()}ccEOC(){if(this.logger.log(2,"EOC - End Of Caption"),"MODE_POP-ON"===this.mode){const t=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=t,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,(()=>"DISP: "+this.displayedMemory.getDisplayText()))}this.outputDataUpdate(!0)}ccTO(t){this.logger.log(2,"TO("+t+") - Tab Offset"),this.writeScreen.moveCursor(t)}ccMIDROW(t){const e={flash:!1};if(e.underline=t%2==1,e.italics=t>=46,e.italics)e.foreground="white";else{const s=Math.floor(t/2)-16,i=["white","green","blue","cyan","red","yellow","magenta"];e.foreground=i[s]}this.logger.log(2,"MIDROW: "+JSON.stringify(e)),this.writeScreen.setPen(e)}outputDataUpdate(t=!1){const e=this.logger.time;null!==e&&this.outputFilter&&(null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,e,this.lastOutputScreen),t&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:e):this.cueStartTime=e,this.lastOutputScreen.copy(this.displayedMemory))}cueSplitAtTime(t){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,t,this.displayedMemory),this.cueStartTime=t))}}class sw{constructor(t,e,s){this.channels=void 0,this.currentChannel=0,this.cmdHistory={a:null,b:null},this.logger=void 0;const i=this.logger=new qS;this.channels=[null,new ew(t,e,i),new ew(t+1,s,i)]}getHandler(t){return this.channels[t].getHandler()}setHandler(t,e){this.channels[t].setHandler(e)}addData(t,e){this.logger.time=t;for(let t=0;t<e.length;t+=2){const s=127&e[t],i=127&e[t+1];let r=!1,n=null;if(0===s&&0===i)continue;this.logger.log(3,(()=>"["+JS([e[t],e[t+1]])+"] -> ("+JS([s,i])+")"));const o=this.cmdHistory;if(s>=16&&s<=31){if(rw(s,i,o)){iw(null,null,o),this.logger.log(3,(()=>"Repeated command ("+JS([s,i])+") is dropped"));continue}iw(s,i,this.cmdHistory),r=this.parseCmd(s,i),r||(r=this.parseMidrow(s,i)),r||(r=this.parsePAC(s,i)),r||(r=this.parseBackgroundAttributes(s,i))}else iw(null,null,o);if(!r&&(n=this.parseChars(s,i),n)){const t=this.currentChannel;if(t&&t>0){this.channels[t].insertChars(n)}else this.logger.log(2,"No channel found yet. TEXT-MODE?")}r||n||this.logger.log(2,(()=>"Couldn't parse cleaned data "+JS([s,i])+" orig: "+JS([e[t],e[t+1]])))}}parseCmd(t,e){if(!((20===t||28===t||21===t||29===t)&&e>=32&&e<=47)&&!((23===t||31===t)&&e>=33&&e<=35))return!1;const s=20===t||21===t||23===t?1:2,i=this.channels[s];return 20===t||21===t||28===t||29===t?32===e?i.ccRCL():33===e?i.ccBS():34===e?i.ccAOF():35===e?i.ccAON():36===e?i.ccDER():37===e?i.ccRU(2):38===e?i.ccRU(3):39===e?i.ccRU(4):40===e?i.ccFON():41===e?i.ccRDC():42===e?i.ccTR():43===e?i.ccRTD():44===e?i.ccEDM():45===e?i.ccCR():46===e?i.ccENM():47===e&&i.ccEOC():i.ccTO(e-32),this.currentChannel=s,!0}parseMidrow(t,e){let s=0;if((17===t||25===t)&&e>=32&&e<=47){if(s=17===t?1:2,s!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;const i=this.channels[s];return!!i&&(i.ccMIDROW(e),this.logger.log(3,(()=>"MIDROW ("+JS([t,e])+")")),!0)}return!1}parsePAC(t,e){let s;if(!((t>=17&&t<=23||t>=25&&t<=31)&&e>=64&&e<=127)&&!((16===t||24===t)&&e>=64&&e<=95))return!1;const i=t<=23?1:2;s=e>=64&&e<=95?1===i?WS[t]:KS[t]:1===i?HS[t]:QS[t];const r=this.channels[i];return!!r&&(r.setPAC(this.interpretPAC(s,e)),this.currentChannel=i,!0)}interpretPAC(t,e){let s;const i={color:null,italics:!1,indent:null,underline:!1,row:t};return s=e>95?e-96:e-64,i.underline=1==(1&s),s<=13?i.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(s/2)]:s<=15?(i.italics=!0,i.color="white"):i.indent=4*Math.floor((s-16)/2),i}parseChars(t,e){let s,i=null,r=null;if(t>=25?(s=2,r=t-8):(s=1,r=t),r>=17&&r<=19){let t;t=17===r?e+80:18===r?e+112:e+144,this.logger.log(2,(()=>"Special char '"+VS(t)+"' in channel "+s)),i=[t]}else t>=32&&t<=127&&(i=0===e?[t]:[t,e]);return i&&this.logger.log(3,(()=>"Char codes = "+JS(i).join(","))),i}parseBackgroundAttributes(t,e){if(!((16===t||24===t)&&e>=32&&e<=47)&&!((23===t||31===t)&&e>=45&&e<=47))return!1;let s;const i={};16===t||24===t?(s=Math.floor((e-32)/2),i.background=YS[s],e%2==1&&(i.background=i.background+"_semi")):45===e?i.background="transparent":(i.foreground="black",47===e&&(i.underline=!0));const r=t<=23?1:2;return this.channels[r].setBkgData(i),!0}reset(){for(let t=0;t<Object.keys(this.channels).length;t++){const e=this.channels[t];e&&e.reset()}iw(null,null,this.cmdHistory)}cueSplitAtTime(t){for(let e=0;e<this.channels.length;e++){const s=this.channels[e];s&&s.cueSplitAtTime(t)}}}function iw(t,e,s){s.a=t,s.b=e}function rw(t,e,s){return s.a===t&&s.b===e}class nw{constructor(t,e){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=t,this.trackName=e}dispatchCue(){null!==this.startTime&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)}newCue(t,e,s){(null===this.startTime||this.startTime>t)&&(this.startTime=t),this.endTime=e,this.screen=s,this.timelineController.createCaptionsTrack(this.trackName)}reset(){this.cueRanges=[],this.startTime=null}}var ow=function(){if(null!=Qg&&Qg.VTTCue)return self.VTTCue;const t=["","lr","rl"],e=["start","middle","end","left","right"];function s(t,e){if("string"!=typeof e)return!1;if(!Array.isArray(t))return!1;const s=e.toLowerCase();return!!~t.indexOf(s)&&s}function i(t){return s(e,t)}function r(t,...e){let s=1;for(;s<arguments.length;s++){const e=arguments[s];for(const s in e)t[s]=e[s]}return t}function n(e,n,o){const a=this,h={enumerable:!0};a.hasBeenReset=!1;let c="",l=!1,d=e,u=n,p=o,f=null,m="",g=!0,A="auto",y="start",b=50,v="middle",S=50,w="middle";Object.defineProperty(a,"id",r({},h,{get:function(){return c},set:function(t){c=""+t}})),Object.defineProperty(a,"pauseOnExit",r({},h,{get:function(){return l},set:function(t){l=!!t}})),Object.defineProperty(a,"startTime",r({},h,{get:function(){return d},set:function(t){if("number"!=typeof t)throw new TypeError("Start time must be set to a number.");d=t,this.hasBeenReset=!0}})),Object.defineProperty(a,"endTime",r({},h,{get:function(){return u},set:function(t){if("number"!=typeof t)throw new TypeError("End time must be set to a number.");u=t,this.hasBeenReset=!0}})),Object.defineProperty(a,"text",r({},h,{get:function(){return p},set:function(t){p=""+t,this.hasBeenReset=!0}})),Object.defineProperty(a,"region",r({},h,{get:function(){return f},set:function(t){f=t,this.hasBeenReset=!0}})),Object.defineProperty(a,"vertical",r({},h,{get:function(){return m},set:function(e){const i=function(e){return s(t,e)}(e);if(!1===i)throw new SyntaxError("An invalid or illegal string was specified.");m=i,this.hasBeenReset=!0}})),Object.defineProperty(a,"snapToLines",r({},h,{get:function(){return g},set:function(t){g=!!t,this.hasBeenReset=!0}})),Object.defineProperty(a,"line",r({},h,{get:function(){return A},set:function(t){if("number"!=typeof t&&"auto"!==t)throw new SyntaxError("An invalid number or illegal string was specified.");A=t,this.hasBeenReset=!0}})),Object.defineProperty(a,"lineAlign",r({},h,{get:function(){return y},set:function(t){const e=i(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");y=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"position",r({},h,{get:function(){return b},set:function(t){if(t<0||t>100)throw new Error("Position must be between 0 and 100.");b=t,this.hasBeenReset=!0}})),Object.defineProperty(a,"positionAlign",r({},h,{get:function(){return v},set:function(t){const e=i(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");v=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"size",r({},h,{get:function(){return S},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");S=t,this.hasBeenReset=!0}})),Object.defineProperty(a,"align",r({},h,{get:function(){return w},set:function(t){const e=i(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");w=e,this.hasBeenReset=!0}})),a.displayState=void 0}return n.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},n}();class aw{decode(t,e){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}function hw(t){function e(t,e,s,i){return 3600*(0|t)+60*(0|e)+(0|s)+parseFloat(i||0)}const s=t.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return s?parseFloat(s[2])>59?e(s[2],s[3],0,s[4]):e(s[1],s[2],s[3],s[4]):null}class cw{constructor(){this.values=Object.create(null)}set(t,e){this.get(t)||""===e||(this.values[t]=e)}get(t,e,s){return s?this.has(t)?this.values[t]:e[s]:this.has(t)?this.values[t]:e}has(t){return t in this.values}alt(t,e,s){for(let i=0;i<s.length;++i)if(e===s[i]){this.set(t,e);break}}integer(t,e){/^-?\d+$/.test(e)&&this.set(t,parseInt(e,10))}percent(t,e){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(e)){const s=parseFloat(e);if(s>=0&&s<=100)return this.set(t,s),!0}return!1}}function lw(t,e,s,i){const r=i?t.split(i):[t];for(const t in r){if("string"!=typeof r[t])continue;const i=r[t].split(s);if(2!==i.length)continue;e(i[0],i[1])}}const dw=new ow(0,0,""),uw="middle"===dw.align?"middle":"center";function pw(t,e,s){const i=t;function r(){const e=hw(t);if(null===e)throw new Error("Malformed timestamp: "+i);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function n(){t=t.replace(/^\s+/,"")}if(n(),e.startTime=r(),n(),"--\x3e"!==t.slice(0,3))throw new Error("Malformed time stamp (time stamps must be separated by '--\x3e'): "+i);t=t.slice(3),n(),e.endTime=r(),n(),function(t,e){const i=new cw;lw(t,(function(t,e){let r;switch(t){case"region":for(let r=s.length-1;r>=0;r--)if(s[r].id===e){i.set(t,s[r].region);break}break;case"vertical":i.alt(t,e,["rl","lr"]);break;case"line":r=e.split(","),i.integer(t,r[0]),i.percent(t,r[0])&&i.set("snapToLines",!1),i.alt(t,r[0],["auto"]),2===r.length&&i.alt("lineAlign",r[1],["start",uw,"end"]);break;case"position":r=e.split(","),i.percent(t,r[0]),2===r.length&&i.alt("positionAlign",r[1],["start",uw,"end","line-left","line-right","auto"]);break;case"size":i.percent(t,e);break;case"align":i.alt(t,e,["start",uw,"end","left","right"])}}),/:/,/\s/),e.region=i.get("region",null),e.vertical=i.get("vertical","");let r=i.get("line","auto");"auto"===r&&-1===dw.line&&(r=-1),e.line=r,e.lineAlign=i.get("lineAlign","start"),e.snapToLines=i.get("snapToLines",!0),e.size=i.get("size",100),e.align=i.get("align",uw);let n=i.get("position","auto");"auto"===n&&50===dw.position&&(n="start"===e.align||"left"===e.align?0:"end"===e.align||"right"===e.align?100:50),e.position=n}(t,e)}function fw(t){return t.replace(/<br(?: \/)?>/gi,"\n")}class mw{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new aw,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}parse(t){const e=this;function s(){let t=e.buffer,s=0;for(t=fw(t);s<t.length&&"\r"!==t[s]&&"\n"!==t[s];)++s;const i=t.slice(0,s);return"\r"===t[s]&&++s,"\n"===t[s]&&++s,e.buffer=t.slice(s),i}t&&(e.buffer+=e.decoder.decode(t,{stream:!0}));try{let t="";if("INITIAL"===e.state){if(!/\r\n|\n/.test(e.buffer))return this;t=s();const i=t.match(/^()?WEBVTT([ \t].*)?$/);if(null==i||!i[0])throw new Error("Malformed WebVTT signature.");e.state="HEADER"}let i=!1;for(;e.buffer;){if(!/\r\n|\n/.test(e.buffer))return this;switch(i?i=!1:t=s(),e.state){case"HEADER":/:/.test(t)?lw(t,(function(t,e){}),/:/):t||(e.state="ID");continue;case"NOTE":t||(e.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(t)){e.state="NOTE";break}if(!t)continue;if(e.cue=new ow(0,0,""),e.state="CUE",-1===t.indexOf("--\x3e")){e.cue.id=t;continue}case"CUE":if(!e.cue){e.state="BADCUE";continue}try{pw(t,e.cue,e.regionList)}catch(t){e.cue=null,e.state="BADCUE";continue}e.state="CUETEXT";continue;case"CUETEXT":{const s=-1!==t.indexOf("--\x3e");if(!t||s&&(i=!0)){e.oncue&&e.cue&&e.oncue(e.cue),e.cue=null,e.state="ID";continue}if(null===e.cue)continue;e.cue.text&&(e.cue.text+="\n"),e.cue.text+=t}continue;case"BADCUE":t||(e.state="ID")}}}catch(t){"CUETEXT"===e.state&&e.cue&&e.oncue&&e.oncue(e.cue),e.cue=null,e.state="INITIAL"===e.state?"BADWEBVTT":"BADCUE"}return this}flush(){const t=this;try{if((t.cue||"HEADER"===t.state)&&(t.buffer+="\n\n",t.parse()),"INITIAL"===t.state||"BADWEBVTT"===t.state)throw new Error("Malformed WebVTT signature.")}catch(e){t.onparsingerror&&t.onparsingerror(e)}return t.onflush&&t.onflush(),this}}const gw=/\r\n|\n\r|\n|\r/g,Aw=function(t,e,s=0){return t.slice(s,s+e.length)===e},yw=function(t){let e=5381,s=t.length;for(;s;)e=33*e^t.charCodeAt(--s);return(e>>>0).toString()};function bw(t,e,s){return yw(t.toString())+yw(e.toString())+yw(s)}function vw(t,e,s,i,r,n,o){const a=new mw,h=vA(new Uint8Array(t)).trim().replace(gw,"\n").split("\n"),c=[],l=e?function(t,e=1){return pS(t,9e4,1/e)}(e.baseTime,e.timescale):0;let d,u="00:00.000",p=0,f=0,m=!0;a.oncue=function(t){const n=s[i];let o=s.ccOffset;const a=(p-l)/9e4;if(null!=n&&n.new&&(void 0!==f?o=s.ccOffset=n.start:function(t,e,s){let i=t[e],r=t[i.prevCC];if(!r||!r.new&&i.new)return t.ccOffset=t.presentationOffset=i.start,void(i.new=!1);for(;null!=(n=r)&&n.new;){var n;t.ccOffset+=i.start-r.start,i.new=!1,i=r,r=t[i.prevCC]}t.presentationOffset=s}(s,i,a)),a){if(!e)return void(d=new Error("Missing initPTS for VTT MPEGTS"));o=a-s.presentationOffset}const h=t.endTime-t.startTime,u=bS(9e4*(t.startTime+o-f),9e4*r)/9e4;t.startTime=Math.max(u,0),t.endTime=Math.max(u+h,0);const m=t.text.trim();t.text=decodeURIComponent(encodeURIComponent(m)),t.id||(t.id=bw(t.startTime,t.endTime,m)),t.endTime>0&&c.push(t)},a.onparsingerror=function(t){d=t},a.onflush=function(){d?o(d):n(c)},h.forEach((t=>{if(m){if(Aw(t,"X-TIMESTAMP-MAP=")){m=!1,t.slice(16).split(",").forEach((t=>{Aw(t,"LOCAL:")?u=t.slice(6):Aw(t,"MPEGTS:")&&(p=parseInt(t.slice(7)))}));try{f=function(t){let e=parseInt(t.slice(-3));const s=parseInt(t.slice(-6,-4)),i=parseInt(t.slice(-9,-7)),r=t.length>9?parseInt(t.substring(0,t.indexOf(":"))):0;if(!(vg(e)&&vg(s)&&vg(i)&&vg(r)))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${t}`);return e+=1e3*s,e+=6e4*i,e+=36e5*r,e}(u)/1e3}catch(t){d=t}return}""===t&&(m=!1)}a.parse(t+"\n")})),a.flush()}const Sw="stpp.ttml.im1t",ww=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Ew=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,Iw={left:"start",center:"center",right:"end",start:"start",end:"end"};function Tw(t,e,s,i){const r=PA(new Uint8Array(t),["mdat"]);if(0===r.length)return void i(new Error("Could not parse IMSC1 mdat"));const n=r.map((t=>vA(t))),o=function(t,e,s=1,i=!1){return pS(t,e,1/s,i)}(e.baseTime,1,e.timescale);try{n.forEach((t=>s(function(t,e){const s=new DOMParser,i=s.parseFromString(t,"text/xml").getElementsByTagName("tt")[0];if(!i)throw new Error("Invalid ttml");const r={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},n=Object.keys(r).reduce(((t,e)=>(t[e]=i.getAttribute(`ttp:${e}`)||r[e],t)),{}),o="preserve"!==i.getAttribute("xml:space"),a=_w(kw(i,"styling","style")),h=_w(kw(i,"layout","region")),c=kw(i,"body","[begin]");return[].map.call(c,(t=>{const s=Cw(t,o);if(!s||!t.hasAttribute("begin"))return null;const i=Lw(t.getAttribute("begin"),n),r=Lw(t.getAttribute("dur"),n);let c=Lw(t.getAttribute("end"),n);if(null===i)throw Dw(t);if(null===c){if(null===r)throw Dw(t);c=i+r}const l=new ow(i-e,c-e,s);l.id=bw(l.startTime,l.endTime,l.text);const d=function(t,e,s){const i="http://www.w3.org/ns/ttml#styling";let r=null;const n=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],o=null!=t&&t.hasAttribute("style")?t.getAttribute("style"):null;o&&s.hasOwnProperty(o)&&(r=s[o]);return n.reduce(((s,n)=>{const o=Rw(e,i,n)||Rw(t,i,n)||Rw(r,i,n);return o&&(s[n]=o),s}),{})}(h[t.getAttribute("region")],a[t.getAttribute("style")],a),{textAlign:u}=d;if(u){const t=Iw[u];t&&(l.lineAlign=t),l.align=u}return bg(l,d),l})).filter((t=>null!==t))}(t,o))))}catch(t){i(t)}}function kw(t,e,s){const i=t.getElementsByTagName(e)[0];return i?[].slice.call(i.querySelectorAll(s)):[]}function _w(t){return t.reduce(((t,e)=>{const s=e.getAttribute("xml:id");return s&&(t[s]=e),t}),{})}function Cw(t,e){return[].slice.call(t.childNodes).reduce(((t,s,i)=>{var r;return"br"===s.nodeName&&i?t+"\n":null!=(r=s.childNodes)&&r.length?Cw(s,e):e?t+s.textContent.trim().replace(/\s+/g," "):t+s.textContent}),"")}function Rw(t,e,s){return t&&t.hasAttributeNS(e,s)?t.getAttributeNS(e,s):null}function Dw(t){return new Error(`Could not parse ttml timestamp ${t}`)}function Lw(t,e){if(!t)return null;let s=hw(t);return null===s&&(ww.test(t)?s=function(t,e){const s=ww.exec(t),i=(0|s[4])+(0|s[5])/e.subFrameRate;return 3600*(0|s[1])+60*(0|s[2])+(0|s[3])+i/e.frameRate}(t,e):Ew.test(t)&&(s=function(t,e){const s=Ew.exec(t),i=Number(s[1]);switch(s[2]){case"h":return 3600*i;case"m":return 60*i;case"ms":return 1e3*i;case"f":return i/e.frameRate;case"t":return i/e.tickRate}return i}(t,e))),s}function xw(t){return t.characteristics&&/transcribes-spoken-dialog/gi.test(t.characteristics)&&/describes-music-and-sound/gi.test(t.characteristics)?"captions":"subtitles"}function Pw(t,e){return!!t&&t.kind===xw(e)&&MS(e,t)}class Bw{constructor(t){this.hls=void 0,this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=t,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}setStreamController(t){this.streamController=t}destroy(){this.hls&&this.unregisterListener(),this.timer&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null}registerListeners(){const{hls:t}=this;t.on(Eg.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.on(Eg.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Eg.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Eg.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(Eg.BUFFER_CODECS,this.onBufferCodecs,this),t.on(Eg.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:t}=this;t.off(Eg.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.off(Eg.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Eg.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Eg.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(Eg.BUFFER_CODECS,this.onBufferCodecs,this),t.off(Eg.MEDIA_DETACHING,this.onMediaDetaching,this)}onFpsDropLevelCapping(t,e){const s=this.hls.levels[e.droppedLevel];this.isLevelAllowed(s)&&this.restrictedLevels.push({bitrate:s.bitrate,height:s.height,width:s.width})}onMediaAttaching(t,e){this.media=e.media instanceof HTMLVideoElement?e.media:null,this.clientRect=null,this.timer&&this.hls.levels.length&&this.detectPlayerSize()}onManifestParsed(t,e){const s=this.hls;this.restrictedLevels=[],this.firstLevel=e.firstLevel,s.config.capLevelToPlayerSize&&e.video&&this.startCapping()}onLevelsUpdated(t,e){this.timer&&vg(this.autoLevelCapping)&&this.detectPlayerSize()}onBufferCodecs(t,e){this.hls.config.capLevelToPlayerSize&&e.video&&this.startCapping()}onMediaDetaching(){this.stopCapping()}detectPlayerSize(){if(this.media){if(this.mediaHeight<=0||this.mediaWidth<=0)return void(this.clientRect=null);const t=this.hls.levels;if(t.length){const e=this.hls,s=this.getMaxLevel(t.length-1);s!==this.autoLevelCapping&&Dg.log(`Setting autoLevelCapping to ${s}: ${t[s].height}p@${t[s].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),e.autoLevelCapping=s,e.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=e.autoLevelCapping}}}getMaxLevel(t){const e=this.hls.levels;if(!e.length)return-1;const s=e.filter(((e,s)=>this.isLevelAllowed(e)&&s<=t));return this.clientRect=null,Bw.getMaxLevelByMediaSize(s,this.mediaWidth,this.mediaHeight)}startCapping(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())}stopCapping(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)}getDimensions(){if(this.clientRect)return this.clientRect;const t=this.media,e={width:0,height:0};if(t){const s=t.getBoundingClientRect();e.width=s.width,e.height=s.height,e.width||e.height||(e.width=s.right-s.left||t.width||0,e.height=s.bottom-s.top||t.height||0)}return this.clientRect=e,e}get mediaWidth(){return this.getDimensions().width*this.contentScaleFactor}get mediaHeight(){return this.getDimensions().height*this.contentScaleFactor}get contentScaleFactor(){let t=1;if(!this.hls.config.ignoreDevicePixelRatio)try{t=self.devicePixelRatio}catch(t){}return t}isLevelAllowed(t){return!this.restrictedLevels.some((e=>t.bitrate===e.bitrate&&t.width===e.width&&t.height===e.height))}static getMaxLevelByMediaSize(t,e,s){if(null==t||!t.length)return-1;let i=t.length-1;const r=Math.max(e,s);for(let e=0;e<t.length;e+=1){const s=t[e];if((s.width>=r||s.height>=r)&&(n=s,!(o=t[e+1])||n.width!==o.width||n.height!==o.height)){i=e;break}}var n,o;return i}}const Mw="[eme]";class Fw{constructor(t){this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.setMediaKeysQueue=Fw.CDMCleanupPromise?[Fw.CDMCleanupPromise]:[],this.onMediaEncrypted=this._onMediaEncrypted.bind(this),this.onWaitingForKey=this._onWaitingForKey.bind(this),this.debug=Dg.debug.bind(Dg,Mw),this.log=Dg.log.bind(Dg,Mw),this.warn=Dg.warn.bind(Dg,Mw),this.error=Dg.error.bind(Dg,Mw),this.hls=t,this.config=t.config,this.registerListeners()}destroy(){this.unregisterListeners(),this.onMediaDetached();const t=this.config;t.requestMediaKeySystemAccessFunc=null,t.licenseXhrSetup=t.licenseResponseCallback=void 0,t.drmSystems=t.drmSystemOptions={},this.hls=this.onMediaEncrypted=this.onWaitingForKey=this.keyIdToKeySessionPromise=null,this.config=null}registerListeners(){this.hls.on(Eg.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(Eg.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(Eg.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(Eg.MANIFEST_LOADED,this.onManifestLoaded,this)}unregisterListeners(){this.hls.off(Eg.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(Eg.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(Eg.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(Eg.MANIFEST_LOADED,this.onManifestLoaded,this)}getLicenseServerUrl(t){const{drmSystems:e,widevineLicenseUrl:s}=this.config,i=e[t];if(i)return i.licenseUrl;if(t===Yg.WIDEVINE&&s)return s;throw new Error(`no license server URL configured for key-system "${t}"`)}getServerCertificateUrl(t){const{drmSystems:e}=this.config,s=e[t];if(s)return s.serverCertificateUrl;this.log(`No Server Certificate in config.drmSystems["${t}"]`)}attemptKeySystemAccess(t){const e=this.hls.levels,s=(t,e,s)=>!!t&&s.indexOf(t)===e,i=e.map((t=>t.audioCodec)).filter(s),r=e.map((t=>t.videoCodec)).filter(s);return i.length+r.length===0&&r.push("avc1.42e01e"),new Promise(((e,s)=>{const n=t=>{const o=t.shift();this.getMediaKeysPromise(o,i,r).then((t=>e({keySystem:o,mediaKeys:t}))).catch((e=>{t.length?n(t):s(e instanceof Ow?e:new Ow({type:Ig.KEY_SYSTEM_ERROR,details:Tg.KEY_SYSTEM_NO_ACCESS,error:e,fatal:!0},e.message))}))};n(t)}))}requestMediaKeySystemAccess(t,e){const{requestMediaKeySystemAccessFunc:s}=this.config;if("function"!=typeof s){let t=`Configured requestMediaKeySystemAccess is not a function ${s}`;return null===iA&&"http:"===self.location.protocol&&(t=`navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`),Promise.reject(new Error(t))}return s(t,e)}getMediaKeysPromise(t,e,s){const i=function(t,e,s,i){let r;switch(t){case Yg.FAIRPLAY:r=["cenc","sinf"];break;case Yg.WIDEVINE:case Yg.PLAYREADY:r=["cenc"];break;case Yg.CLEARKEY:r=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${t}`)}return function(t,e,s,i){return[{initDataTypes:t,persistentState:i.persistentState||"optional",distinctiveIdentifier:i.distinctiveIdentifier||"optional",sessionTypes:i.sessionTypes||[i.sessionType||"temporary"],audioCapabilities:e.map((t=>({contentType:`audio/mp4; codecs="${t}"`,robustness:i.audioRobustness||"",encryptionScheme:i.audioEncryptionScheme||null}))),videoCapabilities:s.map((t=>({contentType:`video/mp4; codecs="${t}"`,robustness:i.videoRobustness||"",encryptionScheme:i.videoEncryptionScheme||null})))}]}(r,e,s,i)}(t,e,s,this.config.drmSystemOptions),r=this.keySystemAccessPromises[t];let n=null==r?void 0:r.keySystemAccess;if(!n){this.log(`Requesting encrypted media "${t}" key-system access with config: ${JSON.stringify(i)}`),n=this.requestMediaKeySystemAccess(t,i);const e=this.keySystemAccessPromises[t]={keySystemAccess:n};return n.catch((e=>{this.log(`Failed to obtain access to key-system "${t}": ${e}`)})),n.then((s=>{this.log(`Access for key-system "${s.keySystem}" obtained`);const i=this.fetchServerCertificate(t);return this.log(`Create media-keys for "${t}"`),e.mediaKeys=s.createMediaKeys().then((e=>(this.log(`Media-keys created for "${t}"`),i.then((s=>s?this.setMediaKeysServerCertificate(e,t,s):e))))),e.mediaKeys.catch((e=>{this.error(`Failed to create media-keys for "${t}"}: ${e}`)})),e.mediaKeys}))}return n.then((()=>r.mediaKeys))}createMediaKeySessionContext({decryptdata:t,keySystem:e,mediaKeys:s}){this.log(`Creating key-system session "${e}" keyId: ${EA(t.keyId||[])}`);const i=s.createSession(),r={decryptdata:t,keySystem:e,mediaKeys:s,mediaKeysSession:i,keyStatus:"status-pending"};return this.mediaKeySessions.push(r),r}renewKeySession(t){const e=t.decryptdata;if(e.pssh){const s=this.createMediaKeySessionContext(t),i=this.getKeyIdString(e),r="cenc";this.keyIdToKeySessionPromise[i]=this.generateRequestWithPreferredKeySession(s,r,e.pssh,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(t)}getKeyIdString(t){if(!t)throw new Error("Could not read keyId of undefined decryptdata");if(null===t.keyId)throw new Error("keyId is null");return EA(t.keyId)}updateKeySession(t,e){var s;const i=t.mediaKeysSession;return this.log(`Updating key-session "${i.sessionId}" for keyID ${EA((null==(s=t.decryptdata)?void 0:s.keyId)||[])}\n } (data length: ${e?e.byteLength:e})`),i.update(e)}selectKeySystemFormat(t){const e=Object.keys(t.levelkeys||{});return this.keyFormatPromise||(this.log(`Selecting key-system from fragment (sn: ${t.sn} ${t.type}: ${t.level}) key formats ${e.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(e)),this.keyFormatPromise}getKeyFormatPromise(t){return new Promise(((e,s)=>{const i=sA(this.config),r=t.map($g).filter((t=>!!t&&-1!==i.indexOf(t)));return this.getKeySystemSelectionPromise(r).then((({keySystem:t})=>{const i=eA(t);i?e(i):s(new Error(`Unable to find format for key-system "${t}"`))})).catch(s)}))}loadKey(t){const e=t.keyInfo.decryptdata,s=this.getKeyIdString(e),i=`(keyId: ${s} format: "${e.keyFormat}" method: ${e.method} uri: ${e.uri})`;this.log(`Starting session for key ${i}`);let r=this.keyIdToKeySessionPromise[s];return r||(r=this.keyIdToKeySessionPromise[s]=this.getKeySystemForKeyPromise(e).then((({keySystem:s,mediaKeys:r})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${t.frag.sn} ${t.frag.type}: ${t.frag.level} using key ${i}`),this.attemptSetMediaKeys(s,r).then((()=>{this.throwIfDestroyed();const t=this.createMediaKeySessionContext({keySystem:s,mediaKeys:r,decryptdata:e});return this.generateRequestWithPreferredKeySession(t,"cenc",e.pssh,"playlist-key")}))))),r.catch((t=>this.handleError(t)))),r}throwIfDestroyed(t="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(t){this.hls&&(this.error(t.message),t instanceof Ow?this.hls.trigger(Eg.ERROR,t.data):this.hls.trigger(Eg.ERROR,{type:Ig.KEY_SYSTEM_ERROR,details:Tg.KEY_SYSTEM_NO_KEYS,error:t,fatal:!0}))}getKeySystemForKeyPromise(t){const e=this.getKeyIdString(t),s=this.keyIdToKeySessionPromise[e];if(!s){const e=$g(t.keyFormat),s=e?[e]:sA(this.config);return this.attemptKeySystemAccess(s)}return s}getKeySystemSelectionPromise(t){if(t.length||(t=sA(this.config)),0===t.length)throw new Ow({type:Ig.KEY_SYSTEM_ERROR,details:Tg.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${JSON.stringify({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(t)}_onMediaEncrypted(t){const{initDataType:e,initData:s}=t;if(this.debug(`"${t.type}" event: init data type: "${e}"`),null===s)return;let i,r;if("sinf"===e&&this.config.drmSystems[Yg.FAIRPLAY]){const t=_A(new Uint8Array(s));try{const e=Wg(JSON.parse(t).sinf),s=jA(new Uint8Array(e));if(!s)return;i=s.subarray(8,24),r=Yg.FAIRPLAY}catch(t){return void this.warn('Failed to parse sinf "encrypted" event message initData')}}else{const t=function(t){if(!(t instanceof ArrayBuffer)||t.byteLength<32)return null;const e={version:0,systemId:"",kids:null,data:null},s=new DataView(t),i=s.getUint32(0);if(t.byteLength!==i&&i>44)return null;if(1886614376!==s.getUint32(4))return null;if(e.version=s.getUint32(8)>>>24,e.version>1)return null;e.systemId=EA(new Uint8Array(t,12,16));const r=s.getUint32(28);if(0===e.version){if(i-32<r)return null;e.data=new Uint8Array(t,32,r)}else if(1===e.version){e.kids=[];for(let s=0;s<r;s++)e.kids.push(new Uint8Array(t,32+16*s,16))}return e}(s);if(null===t)return;0===t.version&&t.systemId===tA&&t.data&&(i=t.data.subarray(8,24)),r=function(t){if(t===tA)return Yg.WIDEVINE}(t.systemId)}if(!r||!i)return;const n=EA(i),{keyIdToKeySessionPromise:o,mediaKeySessions:a}=this;let h=o[n];for(let t=0;t<a.length;t++){const r=a[t],c=r.decryptdata;if(c.pssh||!c.keyId)continue;const l=EA(c.keyId);if(n===l||-1!==c.uri.replace(/-/g,"").indexOf(n)){h=o[l],delete o[l],c.pssh=new Uint8Array(s),c.keyId=i,h=o[n]=h.then((()=>this.generateRequestWithPreferredKeySession(r,e,s,"encrypted-event-key-match")));break}}h||(h=o[n]=this.getKeySystemSelectionPromise([r]).then((({keySystem:t,mediaKeys:r})=>{var o;this.throwIfDestroyed();const a=new qA("ISO-23001-7",n,null!=(o=eA(t))?o:"");return a.pssh=new Uint8Array(s),a.keyId=i,this.attemptSetMediaKeys(t,r).then((()=>{this.throwIfDestroyed();const i=this.createMediaKeySessionContext({decryptdata:a,keySystem:t,mediaKeys:r});return this.generateRequestWithPreferredKeySession(i,e,s,"encrypted-event-no-match")}))}))),h.catch((t=>this.handleError(t)))}_onWaitingForKey(t){this.log(`"${t.type}" event`)}attemptSetMediaKeys(t,e){const s=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${t}"`);const i=Promise.all(s).then((()=>{if(!this.media)throw new Error("Attempted to set mediaKeys without media element attached");return this.media.setMediaKeys(e)}));return this.setMediaKeysQueue.push(i),i.then((()=>{this.log(`Media-keys set for "${t}"`),s.push(i),this.setMediaKeysQueue=this.setMediaKeysQueue.filter((t=>-1===s.indexOf(t)))}))}generateRequestWithPreferredKeySession(t,e,s,i){var r,n;const o=null==(r=this.config.drmSystems)||null==(n=r[t.keySystem])?void 0:n.generateRequest;if(o)try{const i=o.call(this.hls,e,s,t);if(!i)throw new Error("Invalid response from configured generateRequest filter");e=i.initDataType,s=t.decryptdata.pssh=i.initData?new Uint8Array(i.initData):null}catch(t){var a;if(this.warn(t.message),null!=(a=this.hls)&&a.config.debug)throw t}if(null===s)return this.log(`Skipping key-session request for "${i}" (no initData)`),Promise.resolve(t);const h=this.getKeyIdString(t.decryptdata);this.log(`Generating key-session request for "${i}": ${h} (init data type: ${e} length: ${s?s.byteLength:null})`);const c=new LS,l=t._onmessage=e=>{const s=t.mediaKeysSession;if(!s)return void c.emit("error",new Error("invalid state"));const{messageType:i,message:r}=e;this.log(`"${i}" message event for session "${s.sessionId}" message size: ${r.byteLength}`),"license-request"===i||"license-renewal"===i?this.renewLicense(t,r).catch((t=>{this.handleError(t),c.emit("error",t)})):"license-release"===i?t.keySystem===Yg.FAIRPLAY&&(this.updateKeySession(t,Kg("acknowledged")),this.removeSession(t)):this.warn(`unhandled media key message type "${i}"`)},d=t._onkeystatuseschange=e=>{if(!t.mediaKeysSession)return void c.emit("error",new Error("invalid state"));this.onKeyStatusChange(t);const s=t.keyStatus;c.emit("keyStatus",s),"expired"===s&&(this.warn(`${t.keySystem} expired for key ${h}`),this.renewKeySession(t))};t.mediaKeysSession.addEventListener("message",l),t.mediaKeysSession.addEventListener("keystatuseschange",d);const u=new Promise(((t,e)=>{c.on("error",e),c.on("keyStatus",(s=>{s.startsWith("usable")?t():"output-restricted"===s?e(new Ow({type:Ig.KEY_SYSTEM_ERROR,details:Tg.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):"internal-error"===s?e(new Ow({type:Ig.KEY_SYSTEM_ERROR,details:Tg.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},`key status changed to "${s}"`)):"expired"===s?e(new Error("key expired while generating request")):this.warn(`unhandled key status change "${s}"`)}))}));return t.mediaKeysSession.generateRequest(e,s).then((()=>{var e;this.log(`Request generated for key-session "${null==(e=t.mediaKeysSession)?void 0:e.sessionId}" keyId: ${h}`)})).catch((t=>{throw new Ow({type:Ig.KEY_SYSTEM_ERROR,details:Tg.KEY_SYSTEM_NO_SESSION,error:t,fatal:!1},`Error generating key-session request: ${t}`)})).then((()=>u)).catch((e=>{throw c.removeAllListeners(),this.removeSession(t),e})).then((()=>(c.removeAllListeners(),t)))}onKeyStatusChange(t){t.mediaKeysSession.keyStatuses.forEach(((e,s)=>{this.log(`key status change "${e}" for keyStatuses keyId: ${EA("buffer"in s?new Uint8Array(s.buffer,s.byteOffset,s.byteLength):new Uint8Array(s))} session keyId: ${EA(new Uint8Array(t.decryptdata.keyId||[]))} uri: ${t.decryptdata.uri}`),t.keyStatus=e}))}fetchServerCertificate(t){const e=this.config,s=new(0,e.loader)(e),i=this.getServerCertificateUrl(t);return i?(this.log(`Fetching server certificate for "${t}"`),new Promise(((r,n)=>{const o={responseType:"arraybuffer",url:i},a=e.certLoadPolicy.default,h={loadPolicy:a,timeout:a.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},c={onSuccess:(t,e,s,i)=>{r(t.data)},onError:(e,s,r,a)=>{n(new Ow({type:Ig.KEY_SYSTEM_ERROR,details:Tg.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:r,response:gg({url:o.url,data:void 0},e)},`"${t}" certificate request failed (${i}). Status: ${e.code} (${e.text})`))},onTimeout:(e,s,r)=>{n(new Ow({type:Ig.KEY_SYSTEM_ERROR,details:Tg.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:r,response:{url:o.url,data:void 0}},`"${t}" certificate request timed out (${i})`))},onAbort:(t,e,s)=>{n(new Error("aborted"))}};s.load(o,h,c)}))):Promise.resolve()}setMediaKeysServerCertificate(t,e,s){return new Promise(((i,r)=>{t.setServerCertificate(s).then((r=>{this.log(`setServerCertificate ${r?"success":"not supported by CDM"} (${null==s?void 0:s.byteLength}) on "${e}"`),i(t)})).catch((t=>{r(new Ow({type:Ig.KEY_SYSTEM_ERROR,details:Tg.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:t,fatal:!0},t.message))}))}))}renewLicense(t,e){return this.requestLicense(t,new Uint8Array(e)).then((e=>this.updateKeySession(t,new Uint8Array(e)).catch((t=>{throw new Ow({type:Ig.KEY_SYSTEM_ERROR,details:Tg.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:t,fatal:!0},t.message)}))))}unpackPlayReadyKeyMessage(t,e){const s=String.fromCharCode.apply(null,new Uint16Array(e.buffer));if(!s.includes("PlayReadyKeyMessage"))return t.setRequestHeader("Content-Type","text/xml; charset=utf-8"),e;const i=(new DOMParser).parseFromString(s,"application/xml"),r=i.querySelectorAll("HttpHeader");if(r.length>0){let e;for(let s=0,i=r.length;s<i;s++){var n,o;e=r[s];const i=null==(n=e.querySelector("name"))?void 0:n.textContent,a=null==(o=e.querySelector("value"))?void 0:o.textContent;i&&a&&t.setRequestHeader(i,a)}}const a=i.querySelector("Challenge"),h=null==a?void 0:a.textContent;if(!h)throw new Error("Cannot find <Challenge> in key message");return Kg(atob(h))}setupLicenseXHR(t,e,s,i){const r=this.config.licenseXhrSetup;return r?Promise.resolve().then((()=>{if(!s.decryptdata)throw new Error("Key removed");return r.call(this.hls,t,e,s,i)})).catch((n=>{if(!s.decryptdata)throw n;return t.open("POST",e,!0),r.call(this.hls,t,e,s,i)})).then((s=>{t.readyState||t.open("POST",e,!0);return{xhr:t,licenseChallenge:s||i}})):(t.open("POST",e,!0),Promise.resolve({xhr:t,licenseChallenge:i}))}requestLicense(t,e){const s=this.config.keyLoadPolicy.default;return new Promise(((i,r)=>{const n=this.getLicenseServerUrl(t.keySystem);this.log(`Sending license request to URL: ${n}`);const o=new XMLHttpRequest;o.responseType="arraybuffer",o.onreadystatechange=()=>{if(!this.hls||!t.mediaKeysSession)return r(new Error("invalid state"));if(4===o.readyState)if(200===o.status){this._requestLicenseFailureCount=0;let e=o.response;this.log(`License received ${e instanceof ArrayBuffer?e.byteLength:e}`);const s=this.config.licenseResponseCallback;if(s)try{e=s.call(this.hls,o,n,t)}catch(t){this.error(t)}i(e)}else{const a=s.errorRetry,h=a?a.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>h||o.status>=400&&o.status<500)r(new Ow({type:Ig.KEY_SYSTEM_ERROR,details:Tg.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:o,response:{url:n,data:void 0,code:o.status,text:o.statusText}},`License Request XHR failed (${n}). Status: ${o.status} (${o.statusText})`));else{const s=h-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${s} attempts left`),this.requestLicense(t,e).then(i,r)}}},t.licenseXhr&&t.licenseXhr.readyState!==XMLHttpRequest.DONE&&t.licenseXhr.abort(),t.licenseXhr=o,this.setupLicenseXHR(o,n,t,e).then((({xhr:e,licenseChallenge:s})=>{t.keySystem==Yg.PLAYREADY&&(s=this.unpackPlayReadyKeyMessage(e,s)),e.send(s)}))}))}onMediaAttached(t,e){if(!this.config.emeEnabled)return;const s=e.media;this.media=s,s.addEventListener("encrypted",this.onMediaEncrypted),s.addEventListener("waitingforkey",this.onWaitingForKey)}onMediaDetached(){const t=this.media,e=this.mediaKeySessions;t&&(t.removeEventListener("encrypted",this.onMediaEncrypted),t.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null),this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},qA.clearKeyUriToKeyIdMap();const s=e.length;Fw.CDMCleanupPromise=Promise.all(e.map((t=>this.removeSession(t))).concat(null==t?void 0:t.setMediaKeys(null).catch((t=>{this.log(`Could not clear media keys: ${t}`)})))).then((()=>{s&&(this.log("finished closing key sessions and clearing media keys"),e.length=0)})).catch((t=>{this.log(`Could not close sessions and clear media keys: ${t}`)}))}onManifestLoading(){this.keyFormatPromise=null}onManifestLoaded(t,{sessionKeys:e}){if(e&&this.config.emeEnabled&&!this.keyFormatPromise){const t=e.reduce(((t,e)=>(-1===t.indexOf(e.keyFormat)&&t.push(e.keyFormat),t)),[]);this.log(`Selecting key-system from session-keys ${t.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(t)}}removeSession(t){const{mediaKeysSession:e,licenseXhr:s}=t;if(e){this.log(`Remove licenses and keys and close session ${e.sessionId}`),t._onmessage&&(e.removeEventListener("message",t._onmessage),t._onmessage=void 0),t._onkeystatuseschange&&(e.removeEventListener("keystatuseschange",t._onkeystatuseschange),t._onkeystatuseschange=void 0),s&&s.readyState!==XMLHttpRequest.DONE&&s.abort(),t.mediaKeysSession=t.decryptdata=t.licenseXhr=void 0;const i=this.mediaKeySessions.indexOf(t);return i>-1&&this.mediaKeySessions.splice(i,1),e.remove().catch((t=>{this.log(`Could not remove session: ${t}`)})).then((()=>e.close())).catch((t=>{this.log(`Could not close session: ${t}`)}))}}}Fw.CDMCleanupPromise=void 0;class Ow extends Error{constructor(t,e){super(e),this.data=void 0,t.error||(t.error=new Error(e)),this.data=t,t.err=t.error}}var Uw,Nw,jw;!function(t){t.MANIFEST="m",t.AUDIO="a",t.VIDEO="v",t.MUXED="av",t.INIT="i",t.CAPTION="c",t.TIMED_TEXT="tt",t.KEY="k",t.OTHER="o"}(Uw||(Uw={})),function(t){t.DASH="d",t.HLS="h",t.SMOOTH="s",t.OTHER="o"}(Nw||(Nw={})),function(t){t.OBJECT="CMCD-Object",t.REQUEST="CMCD-Request",t.SESSION="CMCD-Session",t.STATUS="CMCD-Status"}(jw||(jw={}));const Vw={[jw.OBJECT]:["br","d","ot","tb"],[jw.REQUEST]:["bl","dl","mtp","nor","nrr","su"],[jw.SESSION]:["cid","pr","sf","sid","st","v"],[jw.STATUS]:["bs","rtp"]};class zw{constructor(t,e){this.value=void 0,this.params=void 0,Array.isArray(t)&&(t=t.map((t=>t instanceof zw?t:new zw(t)))),this.value=t,this.params=e}}class Gw{constructor(t){this.description=void 0,this.description=t}}function Ww(t,e,s,i){return new Error(`failed to ${t} "${r=e,Array.isArray(r)?JSON.stringify(r):r instanceof Map?"Map{}":r instanceof Set?"Set{}":"object"==typeof r?JSON.stringify(r):String(r)}" as ${s}`,{cause:i});var r}const Hw="Bare Item";const Kw=/[\x00-\x1f\x7f]+/;function Qw(t,e,s){return Ww("serialize",t,e,s)}function Yw(t){if(!1===ArrayBuffer.isView(t))throw Qw(t,"Byte Sequence");return`:${e=t,btoa(String.fromCharCode(...e))}:`;var e}function qw(t){if(function(t){return t<-999999999999999||999999999999999<t}(t))throw Qw(t,"Integer");return t.toString()}function Jw(t,e){if(t<0)return-Jw(-t,e);const s=Math.pow(10,e);if(Math.abs(t*s%1-.5)<Number.EPSILON){const e=Math.floor(t*s);return(e%2==0?e:e+1)/s}return Math.round(t*s)/s}function Xw(t){const e=Jw(t,3);if(Math.floor(Math.abs(e)).toString().length>12)throw Qw(t,"Decimal");const s=e.toString();return s.includes(".")?s:`${s}.0`}function Zw(t){const e=(s=t).description||s.toString().slice(7,-1);var s;if(!1===/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(e))throw Qw(e,"Token");return e}function $w(t){switch(typeof t){case"number":if(!vg(t))throw Qw(t,Hw);return Number.isInteger(t)?qw(t):Xw(t);case"string":return function(t){if(Kw.test(t))throw Qw(t,"String");return`"${t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}(t);case"symbol":return Zw(t);case"boolean":return function(t){if("boolean"!=typeof t)throw Qw(t,"Boolean");return t?"?1":"?0"}(t);case"object":if(t instanceof Date)return function(t){return`@${qw(t.getTime()/1e3)}`}(t);if(t instanceof Uint8Array)return Yw(t);if(t instanceof Gw)return Zw(t);default:throw Qw(t,Hw)}}function tE(t){if(!1===/^[a-z*][a-z0-9\-_.*]*$/.test(t))throw Qw(t,"Key");return t}function eE(t){return null==t?"":Object.entries(t).map((([t,e])=>!0===e?`;${tE(t)}`:`;${tE(t)}=${$w(e)}`)).join("")}function sE(t){return t instanceof zw?`${$w(t.value)}${eE(t.params)}`:$w(t)}function iE(t,e={whitespace:!0}){if("object"!=typeof t)throw Qw(t,"Dict");const s=t instanceof Map?t.entries():Object.entries(t),i=null!=e&&e.whitespace?" ":"";return Array.from(s).map((([t,e])=>{e instanceof zw==!1&&(e=new zw(e));let s=tE(t);var i;return!0===e.value?s+=eE(e.params):(s+="=",Array.isArray(e.value)?s+=`(${(i=e).value.map(sE).join(" ")})${eE(i.params)}`:s+=sE(e)),s})).join(`,${i}`)}const rE=t=>Math.round(t),nE=t=>100*rE(t/100),oE={br:rE,d:rE,bl:nE,dl:nE,mtp:nE,nor:(t,e)=>(null!=e&&e.baseUrl&&(t=function(t,e){const s=new URL(t),i=new URL(e);if(s.origin!==i.origin)return t;const r=s.pathname.split("/").slice(1),n=i.pathname.split("/").slice(1,-1);for(;r[0]===n[0];)r.shift(),n.shift();for(;n.length;)n.shift(),r.unshift("..");return r.join("/")}(t,e.baseUrl)),encodeURIComponent(t)),rtp:nE,tb:rE};function aE(t,e){const s={};if(null==t||"object"!=typeof t)return s;const i=Object.keys(t).sort(),r=bg({},oE,null==e?void 0:e.formatters),n=null==e?void 0:e.filter;return i.forEach((i=>{if(null!=n&&n(i))return;let o=t[i];const a=r[i];a&&(o=a(o,e)),"v"===i&&1===o||"pr"==i&&1===o||(t=>"number"==typeof t?vg(t):null!=t&&""!==t&&!1!==t)(o)&&((t=>"ot"===t||"sf"===t||"st"===t)(i)&&"string"==typeof o&&(o=new Gw(o)),s[i]=o)})),s}function hE(t,e={}){return t?function(t,e){return iE(t,e)}(aE(t,e),bg({whitespace:!1},e)):""}function cE(t,e,s){return bg(t,function(t,e={}){if(!t)return{};const s=Object.entries(t),i=Object.entries(Vw).concat(Object.entries((null==e?void 0:e.customHeaderMap)||{})),r=s.reduce(((t,e)=>{var s;const[r,n]=e,o=(null==(s=i.find((t=>t[1].includes(r))))?void 0:s[0])||jw.REQUEST;return null!=t[o]||(t[o]={}),t[o][r]=n,t}),{});return Object.entries(r).reduce(((t,[s,i])=>(t[s]=hE(i,e),t)),{})}(e,s))}const lE=/CMCD=[^&#]+/;function dE(t,e,s){const i=function(t,e={}){if(!t)return"";const s=hE(t,e);return`CMCD=${encodeURIComponent(s)}`}(e,s);if(!i)return t;if(lE.test(t))return t.replace(lE,i);const r=t.includes("?")?"&":"?";return`${t}${r}${i}`}function uE(t,e,s,i){t&&Object.keys(e).forEach((r=>{const n=t.filter((t=>t.groupId===r)).map((t=>{const n=bg({},t);return n.details=void 0,n.attrs=new Pg(n.attrs),n.url=n.attrs.URI=pE(t.url,t.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",s),n.groupId=n.attrs["GROUP-ID"]=e[r],n.attrs["PATHWAY-ID"]=i,n}));t.push(...n)}))}function pE(t,e,s,i){const{HOST:r,PARAMS:n,[s]:o}=i;let a;e&&(a=null==o?void 0:o[e],a&&(t=a));const h=new self.URL(t);return r&&!a&&(h.host=r),n&&Object.keys(n).sort().forEach((t=>{t&&h.searchParams.set(t,n[t])})),h.href}const fE=/^age:\s*[\d.]+\s*$/im;class mE{constructor(t){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=null,this.loader=null,this.stats=void 0,this.xhrSetup=t&&t.xhrSetup||null,this.stats=new Fg,this.retryDelay=0}destroy(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null}abortInternal(){const t=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),t&&(t.onreadystatechange=null,t.onprogress=null,4!==t.readyState&&(this.stats.aborted=!0,t.abort()))}abort(){var t;this.abortInternal(),null!=(t=this.callbacks)&&t.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}load(t,e,s){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=t,this.config=e,this.callbacks=s,this.loadInternal()}loadInternal(){const{config:t,context:e}=this;if(!t||!e)return;const s=this.loader=new self.XMLHttpRequest,i=this.stats;i.loading.first=0,i.loaded=0,i.aborted=!1;const r=this.xhrSetup;r?Promise.resolve().then((()=>{if(this.loader===s&&!this.stats.aborted)return r(s,e.url)})).catch((t=>{if(this.loader===s&&!this.stats.aborted)return s.open("GET",e.url,!0),r(s,e.url)})).then((()=>{this.loader!==s||this.stats.aborted||this.openAndSendXhr(s,e,t)})).catch((t=>{this.callbacks.onError({code:s.status,text:t.message},e,s,i)})):this.openAndSendXhr(s,e,t)}openAndSendXhr(t,e,s){t.readyState||t.open("GET",e.url,!0);const i=e.headers,{maxTimeToFirstByteMs:r,maxLoadTimeMs:n}=s.loadPolicy;if(i)for(const e in i)t.setRequestHeader(e,i[e]);e.rangeEnd&&t.setRequestHeader("Range","bytes="+e.rangeStart+"-"+(e.rangeEnd-1)),t.onreadystatechange=this.readystatechange.bind(this),t.onprogress=this.loadprogress.bind(this),t.responseType=e.responseType,self.clearTimeout(this.requestTimeout),s.timeout=r&&vg(r)?r:n,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),s.timeout),t.send()}readystatechange(){const{context:t,loader:e,stats:s}=this;if(!t||!e)return;const i=e.readyState,r=this.config;if(!s.aborted&&i>=2&&(0===s.loading.first&&(s.loading.first=Math.max(self.performance.now(),s.loading.start),r.timeout!==r.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),r.timeout=r.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.loadPolicy.maxLoadTimeMs-(s.loading.first-s.loading.start)))),4===i)){self.clearTimeout(this.requestTimeout),e.onreadystatechange=null,e.onprogress=null;const i=e.status,n="text"!==e.responseType;if(i>=200&&i<300&&(n&&e.response||null!==e.responseText)){s.loading.end=Math.max(self.performance.now(),s.loading.first);const r=n?e.response:e.responseText,o="arraybuffer"===e.responseType?r.byteLength:r.length;if(s.loaded=s.total=o,s.bwEstimate=8e3*s.total/(s.loading.end-s.loading.first),!this.callbacks)return;const a=this.callbacks.onProgress;if(a&&a(s,t,r,e),!this.callbacks)return;const h={url:e.responseURL,data:r,code:i};this.callbacks.onSuccess(h,s,t,e)}else{const n=r.loadPolicy.errorRetry;yb(n,s.retry,!1,{url:t.url,data:void 0,code:i})?this.retry(n):(Dg.error(`${i} while loading ${t.url}`),this.callbacks.onError({code:i,text:e.statusText},t,e,s))}}}loadtimeout(){if(!this.config)return;const t=this.config.loadPolicy.timeoutRetry;if(yb(t,this.stats.retry,!0))this.retry(t);else{var e;Dg.warn(`timeout while loading ${null==(e=this.context)?void 0:e.url}`);const t=this.callbacks;t&&(this.abortInternal(),t.onTimeout(this.stats,this.context,this.loader))}}retry(t){const{context:e,stats:s}=this;this.retryDelay=gb(t,s.retry),s.retry++,Dg.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${null==e?void 0:e.url}, retrying ${s.retry}/${t.maxNumRetry} in ${this.retryDelay}ms`),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)}loadprogress(t){const e=this.stats;e.loaded=t.loaded,t.lengthComputable&&(e.total=t.total)}getCacheAge(){let t=null;if(this.loader&&fE.test(this.loader.getAllResponseHeaders())){const e=this.loader.getResponseHeader("age");t=e?parseFloat(e):null}return t}getResponseHeader(t){return this.loader&&new RegExp(`^${t}:\\s*[\\d.]+\\s*$`,"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(t):null}}const gE=/(\d+)-(\d+)\/(\d+)/;class AE{constructor(t){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=null,this.response=null,this.controller=void 0,this.context=null,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=t.fetchSetup||yE,this.controller=new self.AbortController,this.stats=new Fg}destroy(){this.loader=this.callbacks=this.context=this.config=this.request=null,this.abortInternal(),this.response=null,this.fetchSetup=this.controller=this.stats=null}abortInternal(){this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())}abort(){var t;this.abortInternal(),null!=(t=this.callbacks)&&t.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}load(t,e,s){const i=this.stats;if(i.loading.start)throw new Error("Loader can only be used once.");i.loading.start=self.performance.now();const r=function(t,e){const s={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(bg({},t.headers))};t.rangeEnd&&s.headers.set("Range","bytes="+t.rangeStart+"-"+String(t.rangeEnd-1));return s}(t,this.controller.signal),n=s.onProgress,o="arraybuffer"===t.responseType,a=o?"byteLength":"length",{maxTimeToFirstByteMs:h,maxLoadTimeMs:c}=e.loadPolicy;this.context=t,this.config=e,this.callbacks=s,this.request=this.fetchSetup(t,r),self.clearTimeout(this.requestTimeout),e.timeout=h&&vg(h)?h:c,this.requestTimeout=self.setTimeout((()=>{this.abortInternal(),s.onTimeout(i,t,this.response)}),e.timeout),self.fetch(this.request).then((r=>{this.response=this.loader=r;const a=Math.max(self.performance.now(),i.loading.start);if(self.clearTimeout(this.requestTimeout),e.timeout=c,this.requestTimeout=self.setTimeout((()=>{this.abortInternal(),s.onTimeout(i,t,this.response)}),c-(a-i.loading.start)),!r.ok){const{status:t,statusText:e}=r;throw new bE(e||"fetch, bad network response",t,r)}return i.loading.first=a,i.total=function(t){const e=t.get("Content-Range");if(e){const t=function(t){const e=gE.exec(t);if(e)return parseInt(e[2])-parseInt(e[1])+1}(e);if(vg(t))return t}const s=t.get("Content-Length");if(s)return parseInt(s)}(r.headers)||i.total,n&&vg(e.highWaterMark)?this.loadProgressively(r,i,t,e.highWaterMark,n):o?r.arrayBuffer():"json"===t.responseType?r.json():r.text()})).then((r=>{const o=this.response;if(!o)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),i.loading.end=Math.max(self.performance.now(),i.loading.first);const h=r[a];h&&(i.loaded=i.total=h);const c={url:o.url,data:r,code:o.status};n&&!vg(e.highWaterMark)&&n(i,t,r,o),s.onSuccess(c,i,t,o)})).catch((e=>{if(self.clearTimeout(this.requestTimeout),i.aborted)return;const r=e&&e.code||0,n=e?e.message:null;s.onError({code:r,text:n},t,e?e.details:null,i)}))}getCacheAge(){let t=null;if(this.response){const e=this.response.headers.get("age");t=e?parseFloat(e):null}return t}getResponseHeader(t){return this.response?this.response.headers.get(t):null}loadProgressively(t,e,s,i=0,r){const n=new _v,o=t.body.getReader(),a=()=>o.read().then((o=>{if(o.done)return n.dataLength&&r(e,s,n.flush(),t),Promise.resolve(new ArrayBuffer(0));const h=o.value,c=h.length;return e.loaded+=c,c<i||n.dataLength?(n.push(h),n.dataLength>=i&&r(e,s,n.flush(),t)):r(e,s,h,t),a()})).catch((()=>Promise.reject()));return a()}}function yE(t,e){return new self.Request(t.url,e)}class bE extends Error{constructor(t,e,s){super(t),this.code=void 0,this.details=void 0,this.code=e,this.details=s}}const vE=/\s/,SE={newCue(t,e,s,i){const r=[];let n,o,a,h,c;const l=self.VTTCue||self.TextTrackCue;for(let u=0;u<i.rows.length;u++)if(n=i.rows[u],a=!0,h=0,c="",!n.isEmpty()){var d;for(let t=0;t<n.chars.length;t++)vE.test(n.chars[t].uchar)&&a?h++:(c+=n.chars[t].uchar,a=!1);n.cueStartTime=e,e===s&&(s+=1e-4),h>=16?h--:h++;const i=fw(c.trim()),p=bw(e,s,i);null!=t&&null!=(d=t.cues)&&d.getCueById(p)||(o=new l(e,s,i),o.id=p,o.line=u+1,o.align="left",o.position=10+Math.min(80,10*Math.floor(8*h/32)),r.push(o))}return t&&r.length&&(r.sort(((t,e)=>"auto"===t.line||"auto"===e.line?0:t.line>8&&e.line>8?e.line-t.line:t.line-e.line)),r.forEach((e=>Oy(t,e)))),r}},wE=gg(gg({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,maxBufferSize:6e7,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:mE,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:class{constructor(t){this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=-1,this.firstSelection=-1,this._nextAutoLevel=-1,this.nextAutoLevelKey="",this.audioTracksByGroup=null,this.codecTiers=null,this.timer=-1,this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.bwEstimator=void 0,this._abandonRulesCheck=()=>{const{fragCurrent:t,partCurrent:e,hls:s}=this,{autoLevelEnabled:i,media:r}=s;if(!t||!r)return;const n=performance.now(),o=e?e.stats:t.stats,a=e?e.duration:t.duration,h=n-o.loading.start,c=s.minAutoLevel;if(o.aborted||o.loaded&&o.loaded===o.total||t.level<=c)return this.clearTimer(),void(this._nextAutoLevel=-1);if(!i||r.paused||!r.playbackRate||!r.readyState)return;const l=s.mainForwardBufferInfo;if(null===l)return;const d=this.bwEstimator.getEstimateTTFB(),u=Math.abs(r.playbackRate);if(h<=Math.max(d,a/(2*u)*1e3))return;const p=l.len/u,f=o.loading.first?o.loading.first-o.loading.start:-1,m=o.loaded&&f>-1,g=this.getBwEstimate(),A=s.levels,y=A[t.level],b=o.total||Math.max(o.loaded,Math.round(a*y.averageBitrate/8));let v=m?h-f:h;v<1&&m&&(v=Math.min(h,8*o.loaded/g));const S=m?1e3*o.loaded/v:0,w=S?(b-o.loaded)/S:8*b/g+d/1e3;if(w<=p)return;const E=S?8*S:g;let I,T=Number.POSITIVE_INFINITY;for(I=t.level-1;I>c;I--){const t=A[I].maxBitrate;if(T=this.getTimeToLoadFrag(d/1e3,E,a*t,!A[I].details),T<p)break}if(T>=w)return;if(T>10*a)return;s.nextLoadLevel=s.nextAutoLevel=I,m?this.bwEstimator.sample(h-Math.min(d,f),o.loaded):this.bwEstimator.sampleTTFB(h);const k=A[I].maxBitrate;this.getBwEstimate()*this.hls.config.abrBandWidthUpFactor>k&&this.resetEstimator(k),this.clearTimer(),Dg.warn(`[abr] Fragment ${t.sn}${e?" part "+e.index:""} of level ${t.level} is loading too slowly;\n Time to underbuffer: ${p.toFixed(3)} s\n Estimated load time for current fragment: ${w.toFixed(3)} s\n Estimated load time for down switch fragment: ${T.toFixed(3)} s\n TTFB estimate: ${0|f} ms\n Current BW estimate: ${vg(g)?0|g:"Unknown"} bps\n New BW estimate: ${0|this.getBwEstimate()} bps\n Switching to level ${I} @ ${0|k} bps`),s.trigger(Eg.FRAG_LOAD_EMERGENCY_ABORTED,{frag:t,part:e,stats:o})},this.hls=t,this.bwEstimator=this.initEstimator(),this.registerListeners()}resetEstimator(t){t&&(Dg.log(`setting initial bwe to ${t}`),this.hls.config.abrEwmaDefaultEstimate=t),this.firstSelection=-1,this.bwEstimator=this.initEstimator()}initEstimator(){const t=this.hls.config;return new xb(t.abrEwmaSlowVoD,t.abrEwmaFastVoD,t.abrEwmaDefaultEstimate)}registerListeners(){const{hls:t}=this;t.on(Eg.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Eg.FRAG_LOADING,this.onFragLoading,this),t.on(Eg.FRAG_LOADED,this.onFragLoaded,this),t.on(Eg.FRAG_BUFFERED,this.onFragBuffered,this),t.on(Eg.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(Eg.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Eg.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(Eg.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),t.on(Eg.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t&&(t.off(Eg.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Eg.FRAG_LOADING,this.onFragLoading,this),t.off(Eg.FRAG_LOADED,this.onFragLoaded,this),t.off(Eg.FRAG_BUFFERED,this.onFragBuffered,this),t.off(Eg.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(Eg.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Eg.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(Eg.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),t.off(Eg.ERROR,this.onError,this))}destroy(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=null,this.fragCurrent=this.partCurrent=null}onManifestLoading(t,e){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.lastLevelLoadSec=0,this.fragCurrent=this.partCurrent=null,this.onLevelsUpdated(),this.clearTimer()}onLevelsUpdated(){this.lastLoadedFragLevel>-1&&this.fragCurrent&&(this.lastLoadedFragLevel=this.fragCurrent.level),this._nextAutoLevel=-1,this.onMaxAutoLevelUpdated(),this.codecTiers=null,this.audioTracksByGroup=null}onMaxAutoLevelUpdated(){this.firstSelection=-1,this.nextAutoLevelKey=""}onFragLoading(t,e){const s=e.frag;if(!this.ignoreFragment(s)){var i;if(!s.bitrateTest)this.fragCurrent=s,this.partCurrent=null!=(i=e.part)?i:null;this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100)}}onLevelSwitching(t,e){this.clearTimer()}onError(t,e){if(!e.fatal)switch(e.details){case Tg.BUFFER_ADD_CODEC_ERROR:case Tg.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case Tg.FRAG_LOAD_TIMEOUT:{const t=e.frag,{fragCurrent:s,partCurrent:i}=this;if(t&&s&&t.sn===s.sn&&t.level===s.level){const e=performance.now(),s=i?i.stats:t.stats,r=e-s.loading.start,n=s.loading.first?s.loading.first-s.loading.start:-1;if(s.loaded&&n>-1){const t=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(r-Math.min(t,n),s.loaded)}else this.bwEstimator.sampleTTFB(r)}break}}}getTimeToLoadFrag(t,e,s,i){return t+s/e+(i?this.lastLevelLoadSec:0)}onLevelLoaded(t,e){const s=this.hls.config,{loading:i}=e.stats,r=i.end-i.start;vg(r)&&(this.lastLevelLoadSec=r/1e3),e.details.live?this.bwEstimator.update(s.abrEwmaSlowLive,s.abrEwmaFastLive):this.bwEstimator.update(s.abrEwmaSlowVoD,s.abrEwmaFastVoD)}onFragLoaded(t,{frag:e,part:s}){const i=s?s.stats:e.stats;if(e.type===Dy&&this.bwEstimator.sampleTTFB(i.loading.first-i.loading.start),!this.ignoreFragment(e)){if(this.clearTimer(),e.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){const t=s?s.duration:e.duration,r=this.hls.levels[e.level],n=(r.loaded?r.loaded.bytes:0)+i.loaded,o=(r.loaded?r.loaded.duration:0)+t;r.loaded={bytes:n,duration:o},r.realBitrate=Math.round(8*n/o)}if(e.bitrateTest){const t={stats:i,frag:e,part:s,id:e.type};this.onFragBuffered(Eg.FRAG_BUFFERED,t),e.bitrateTest=!1}else this.lastLoadedFragLevel=e.level}}onFragBuffered(t,e){const{frag:s,part:i}=e,r=null!=i&&i.stats.loaded?i.stats:s.stats;if(r.aborted)return;if(this.ignoreFragment(s))return;const n=r.parsing.end-r.loading.start-Math.min(r.loading.first-r.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(n,r.loaded),r.bwEstimate=this.getBwEstimate(),s.bitrateTest?this.bitrateTestDelay=n/1e3:this.bitrateTestDelay=0}ignoreFragment(t){return t.type!==Dy||"initSegment"===t.sn}clearTimer(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)}get firstAutoLevel(){const{maxAutoLevel:t,minAutoLevel:e}=this.hls,s=this.getBwEstimate(),i=this.hls.config.maxStarvationDelay,r=this.findBestLevel(s,e,t,0,i,1,1);if(r>-1)return r;const n=this.hls.firstLevel,o=Math.min(Math.max(n,e),t);return Dg.warn(`[abr] Could not find best starting auto level. Defaulting to first in playlist ${n} clamped to ${o}`),o}get forcedAutoLevel(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}get nextAutoLevel(){const t=this.forcedAutoLevel,e=this.bwEstimator.canEstimate(),s=this.lastLoadedFragLevel>-1;if(!(-1===t||e&&s&&this.nextAutoLevelKey!==this.getAutoLevelKey()))return t;const i=e&&s?this.getNextABRAutoLevel():this.firstAutoLevel;if(-1!==t){const e=this.hls.levels;if(e.length>Math.max(t,i)&&e[t].loadError<=e[i].loadError)return t}return this._nextAutoLevel=i,this.nextAutoLevelKey=this.getAutoLevelKey(),i}getAutoLevelKey(){return`${this.getBwEstimate()}_${this.getStarvationDelay().toFixed(2)}`}getNextABRAutoLevel(){const{fragCurrent:t,partCurrent:e,hls:s}=this,{maxAutoLevel:i,config:r,minAutoLevel:n}=s,o=e?e.duration:t?t.duration:0,a=this.getBwEstimate(),h=this.getStarvationDelay();let c=r.abrBandWidthFactor,l=r.abrBandWidthUpFactor;if(h){const t=this.findBestLevel(a,n,i,h,0,c,l);if(t>=0)return t}let d=o?Math.min(o,r.maxStarvationDelay):r.maxStarvationDelay;if(!h){const t=this.bitrateTestDelay;if(t){d=(o?Math.min(o,r.maxLoadingDelay):r.maxLoadingDelay)-t,Dg.info(`[abr] bitrate test took ${Math.round(1e3*t)}ms, set first fragment max fetchDuration to ${Math.round(1e3*d)} ms`),c=l=1}}const u=this.findBestLevel(a,n,i,h,d,c,l);if(Dg.info(`[abr] ${h?"rebuffering expected":"buffer is empty"}, optimal quality level ${u}`),u>-1)return u;const p=s.levels[n],f=s.levels[s.loadLevel];return(null==p?void 0:p.bitrate)<(null==f?void 0:f.bitrate)?n:s.loadLevel}getStarvationDelay(){const t=this.hls,e=t.media;if(!e)return 1/0;const s=e&&0!==e.playbackRate?Math.abs(e.playbackRate):1,i=t.mainForwardBufferInfo;return(i?i.len:0)/s}getBwEstimate(){return this.bwEstimator.canEstimate()?this.bwEstimator.getEstimate():this.hls.config.abrEwmaDefaultEstimate}findBestLevel(t,e,s,i,r,n,o){var a;const h=i+r,c=this.lastLoadedFragLevel,l=-1===c?this.hls.firstLevel:c,{fragCurrent:d,partCurrent:u}=this,{levels:p,allAudioTracks:f,loadLevel:m,config:g}=this.hls;if(1===p.length)return 0;const A=p[l],y=!(null==A||null==(a=A.details)||!a.live),b=-1===m||-1===c;let v,S="SDR",w=(null==A?void 0:A.frameRate)||0;const{audioPreference:E,videoPreference:I}=g,T=this.audioTracksByGroup||(this.audioTracksByGroup=function(t){return t.reduce(((t,e)=>{let s=t.groups[e.groupId];s||(s=t.groups[e.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),s.tracks.push(e);const i=e.channels||"2";return s.channels[i]=(s.channels[i]||0)+1,s.hasDefault=s.hasDefault||e.default,s.hasAutoSelect=s.hasAutoSelect||e.autoselect,s.hasDefault&&(t.hasDefaultAudio=!0),s.hasAutoSelect&&(t.hasAutoSelectAudio=!0),t}),{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}(f));if(b){if(-1!==this.firstSelection)return this.firstSelection;const i=this.codecTiers||(this.codecTiers=function(t,e,s,i){return t.slice(s,i+1).reduce(((t,s)=>{if(!s.codecSet)return t;const i=s.audioGroups;let r=t[s.codecSet];r||(t[s.codecSet]=r={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!i,fragmentError:0}),r.minBitrate=Math.min(r.minBitrate,s.bitrate);const n=Math.min(s.height,s.width);return r.minHeight=Math.min(r.minHeight,n),r.minFramerate=Math.min(r.minFramerate,s.frameRate),r.maxScore=Math.max(r.maxScore,s.score),r.fragmentError+=s.fragmentError,r.videoRanges[s.videoRange]=(r.videoRanges[s.videoRange]||0)+1,i&&i.forEach((t=>{if(!t)return;const s=e.groups[t];s&&(r.hasDefaultAudio=r.hasDefaultAudio||e.hasDefaultAudio?s.hasDefault:s.hasAutoSelect||!e.hasDefaultAudio&&!e.hasAutoSelectAudio,Object.keys(s.channels).forEach((t=>{r.channels[t]=(r.channels[t]||0)+s.channels[t]})))})),t}),{})}(p,T,e,s)),r=function(t,e,s,i,r){const n=Object.keys(t),o=null==i?void 0:i.channels,a=null==i?void 0:i.audioCodec,h=o&&2===parseInt(o);let c=!0,l=!1,d=1/0,u=1/0,p=1/0,f=0,m=[];const{preferHDR:g,allowedVideoRanges:A}=Ob(e,r);for(let e=n.length;e--;){const s=t[n[e]];c=s.channels[2]>0,d=Math.min(d,s.minHeight),u=Math.min(u,s.minFramerate),p=Math.min(p,s.minBitrate);const i=A.filter((t=>s.videoRanges[t]>0));i.length>0&&(l=!0,m=i)}d=vg(d)?d:0,u=vg(u)?u:0;const y=Math.max(1080,d),b=Math.max(30,u);p=vg(p)?p:s,s=Math.max(p,s),l||(e=void 0,m=[]);const v=n.reduce(((e,i)=>{const r=t[i];if(i===e)return e;if(r.minBitrate>s)return Ub(i,`min bitrate of ${r.minBitrate} > current estimate of ${s}`),e;if(!r.hasDefaultAudio)return Ub(i,"no renditions with default or auto-select sound found"),e;if(a&&i.indexOf(a.substring(0,4))%5!=0)return Ub(i,`audio codec preference "${a}" not found`),e;if(o&&!h){if(!r.channels[o])return Ub(i,`no renditions with ${o} channel sound found (channels options: ${Object.keys(r.channels)})`),e}else if((!a||h)&&c&&0===r.channels[2])return Ub(i,"no renditions with stereo sound found"),e;return r.minHeight>y?(Ub(i,`min resolution of ${r.minHeight} > maximum of ${y}`),e):r.minFramerate>b?(Ub(i,`min framerate of ${r.minFramerate} > maximum of ${b}`),e):m.some((t=>r.videoRanges[t]>0))?r.maxScore<f?(Ub(i,`max score of ${r.maxScore} < selected max of ${f}`),e):e&&(hy(i)>=hy(e)||r.fragmentError>t[e].fragmentError)?e:(f=r.maxScore,i):(Ub(i,`no variants with VIDEO-RANGE of ${JSON.stringify(m)} found`),e)}),void 0);return{codecSet:v,videoRanges:m,preferHDR:g,minFramerate:u,minBitrate:p}}(i,S,t,E,I),{codecSet:n,videoRanges:o,minFramerate:a,minBitrate:h,preferHDR:c}=r;v=n,S=c?o[o.length-1]:o[0],w=a,t=Math.max(t,h),Dg.log(`[abr] picked start tier ${JSON.stringify(r)}`)}else v=null==A?void 0:A.codecSet,S=null==A?void 0:A.videoRange;const k=u?u.duration:d?d.duration:0,_=this.bwEstimator.getEstimateTTFB()/1e3,C=[];for(let a=s;a>=e;a--){var R;const e=p[a],d=a>l;if(!e)continue;if(g.useMediaCapabilities&&!e.supportedResult&&!e.supportedPromise){const s=navigator.mediaCapabilities;"function"==typeof(null==s?void 0:s.decodingInfo)&&Mb(e,T,S,w,t,E)?(e.supportedPromise=Fb(e,T,s),e.supportedPromise.then((t=>{if(!this.hls)return;e.supportedResult=t;const s=this.hls.levels,i=s.indexOf(e);t.error?Dg.warn(`[abr] MediaCapabilities decodingInfo error: "${t.error}" for level ${i} ${JSON.stringify(t)}`):t.supported||(Dg.warn(`[abr] Unsupported MediaCapabilities decodingInfo result for level ${i} ${JSON.stringify(t)}`),i>-1&&s.length>1&&(Dg.log(`[abr] Removing unsupported level ${i}`),this.hls.removeLevel(i)))}))):e.supportedResult=Pb}if(v&&e.codecSet!==v||S&&e.videoRange!==S||d&&w>e.frameRate||!d&&w>0&&w<e.frameRate||e.supportedResult&&(null==(R=e.supportedResult.decodingInfoResults)||!R[0].smooth)){C.push(a);continue}const f=e.details,I=(u?null==f?void 0:f.partTarget:null==f?void 0:f.averagetargetduration)||k;let D;D=d?o*t:n*t;const L=k&&i>=2*k&&0===r?p[a].averageBitrate:p[a].maxBitrate,x=this.getTimeToLoadFrag(_,D,L*I,void 0===f);if(D>=L&&(a===c||0===e.loadError&&0===e.fragmentError)&&(x<=_||!vg(x)||y&&!this.bitrateTestDelay||x<h)){const t=this.forcedAutoLevel;return a===m||-1!==t&&t===m||(C.length&&Dg.trace(`[abr] Skipped level(s) ${C.join(",")} of ${s} max with CODECS and VIDEO-RANGE:"${p[C[0]].codecs}" ${p[C[0]].videoRange}; not compatible with "${A.codecs}" ${S}`),Dg.info(`[abr] switch candidate:${l}->${a} adjustedbw(${Math.round(D)})-bitrate=${Math.round(D-L)} ttfb:${_.toFixed(1)} avgDuration:${I.toFixed(1)} maxFetchDuration:${h.toFixed(1)} fetchDuration:${x.toFixed(1)} firstSelection:${b} codecSet:${v} videoRange:${S} hls.loadLevel:${m}`)),b&&(this.firstSelection=a),a}}return-1}set nextAutoLevel(t){const{maxAutoLevel:e,minAutoLevel:s}=this.hls,i=Math.min(Math.max(t,s),e);this._nextAutoLevel!==i&&(this.nextAutoLevelKey="",this._nextAutoLevel=i)}},bufferController:class{constructor(t){this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.appendSource=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this.log=void 0,this.warn=void 0,this.error=void 0,this._onEndStreaming=t=>{this.hls&&this.hls.pauseBuffering()},this._onStartStreaming=t=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=()=>{const{media:t,mediaSource:e}=this;this.log("Media source opened"),t&&(t.removeEventListener("emptied",this._onMediaEmptied),this.updateMediaElementDuration(),this.hls.trigger(Eg.MEDIA_ATTACHED,{media:t,mediaSource:e})),e&&e.removeEventListener("sourceopen",this._onMediaSourceOpen),this.checkPendingTracks()},this._onMediaSourceClose=()=>{this.log("Media source closed")},this._onMediaSourceEnded=()=>{this.log("Media source ended")},this._onMediaEmptied=()=>{const{mediaSrc:t,_objectUrl:e}=this;t!==e&&Dg.error(`Media element src was set while attaching MediaSource (${e} > ${t})`)},this.hls=t;const e="[buffer-controller]";var s;this.appendSource=(s=sy(t.config.preferManagedMediaSource),"undefined"!=typeof self&&s===self.ManagedMediaSource),this.log=Dg.log.bind(Dg,e),this.warn=Dg.warn.bind(Dg,e),this.error=Dg.error.bind(Dg,e),this._initSourceBuffer(),this.registerListeners()}hasSourceTypes(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0}destroy(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=null,this.hls=null}registerListeners(){const{hls:t}=this;t.on(Eg.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Eg.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Eg.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Eg.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Eg.BUFFER_RESET,this.onBufferReset,this),t.on(Eg.BUFFER_APPENDING,this.onBufferAppending,this),t.on(Eg.BUFFER_CODECS,this.onBufferCodecs,this),t.on(Eg.BUFFER_EOS,this.onBufferEos,this),t.on(Eg.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(Eg.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(Eg.FRAG_PARSED,this.onFragParsed,this),t.on(Eg.FRAG_CHANGED,this.onFragChanged,this)}unregisterListeners(){const{hls:t}=this;t.off(Eg.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Eg.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Eg.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Eg.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Eg.BUFFER_RESET,this.onBufferReset,this),t.off(Eg.BUFFER_APPENDING,this.onBufferAppending,this),t.off(Eg.BUFFER_CODECS,this.onBufferCodecs,this),t.off(Eg.BUFFER_EOS,this.onBufferEos,this),t.off(Eg.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(Eg.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(Eg.FRAG_PARSED,this.onFragParsed,this),t.off(Eg.FRAG_CHANGED,this.onFragChanged,this)}_initSourceBuffer(){this.sourceBuffer={},this.operationQueue=new OS(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]},this.appendErrors={audio:0,video:0,audiovideo:0},this.lastMpegAudioChunk=null}onManifestLoading(){this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=0,this.details=null}onManifestParsed(t,e){let s=2;(e.audio&&!e.video||!e.altAudio)&&(s=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=s,this.log(`${this.bufferCodecEventsExpected} bufferCodec event(s) expected`)}onMediaAttaching(t,e){const s=this.media=e.media,i=sy(this.appendSource);if(s&&i){var r;const t=this.mediaSource=new i;this.log(`created media source: ${null==(r=t.constructor)?void 0:r.name}`),t.addEventListener("sourceopen",this._onMediaSourceOpen),t.addEventListener("sourceended",this._onMediaSourceEnded),t.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(t.addEventListener("startstreaming",this._onStartStreaming),t.addEventListener("endstreaming",this._onEndStreaming));const e=this._objectUrl=self.URL.createObjectURL(t);if(this.appendSource)try{s.removeAttribute("src");const i=self.ManagedMediaSource;s.disableRemotePlayback=s.disableRemotePlayback||i&&t instanceof i,NS(s),function(t,e){const s=self.document.createElement("source");s.type="video/mp4",s.src=e,t.appendChild(s)}(s,e),s.load()}catch(t){s.src=e}else s.src=e;s.addEventListener("emptied",this._onMediaEmptied)}}onMediaDetaching(){const{media:t,mediaSource:e,_objectUrl:s}=this;if(e){if(this.log("media source detaching"),"open"===e.readyState)try{e.endOfStream()}catch(t){this.warn(`onMediaDetaching: ${t.message} while calling endOfStream`)}this.onBufferReset(),e.removeEventListener("sourceopen",this._onMediaSourceOpen),e.removeEventListener("sourceended",this._onMediaSourceEnded),e.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(e.removeEventListener("startstreaming",this._onStartStreaming),e.removeEventListener("endstreaming",this._onEndStreaming)),t&&(t.removeEventListener("emptied",this._onMediaEmptied),s&&self.URL.revokeObjectURL(s),this.mediaSrc===s?(t.removeAttribute("src"),this.appendSource&&NS(t),t.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(Eg.MEDIA_DETACHED,void 0)}onBufferReset(){this.getSourceBufferTypes().forEach((t=>{this.resetBuffer(t)})),this._initSourceBuffer()}resetBuffer(t){const e=this.sourceBuffer[t];try{var s;if(e)this.removeBufferListeners(t),this.sourceBuffer[t]=void 0,null!=(s=this.mediaSource)&&s.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(e)}catch(e){this.warn(`onBufferReset ${t}`,e)}}onBufferCodecs(t,e){const s=this.getSourceBufferTypes().length,i=Object.keys(e);if(i.forEach((t=>{if(s){const s=this.tracks[t];if(s&&"function"==typeof s.buffer.changeType){var i;const{id:r,codec:n,levelCodec:o,container:a,metadata:h}=e[t],c=uy(s.codec,s.levelCodec),l=null==c?void 0:c.replace(US,"$1");let d=uy(n,o);const u=null==(i=d)?void 0:i.replace(US,"$1");if(d&&l!==u){"audio"===t.slice(0,5)&&(d=dy(d,this.appendSource));const e=`${a};codecs=${d}`;this.appendChangeType(t,e),this.log(`switching codec ${c} to ${d}`),this.tracks[t]={buffer:s.buffer,codec:n,container:a,levelCodec:o,metadata:h,id:r}}}}else this.pendingTracks[t]=e[t]})),s)return;const r=Math.max(this.bufferCodecEventsExpected-1,0);this.bufferCodecEventsExpected!==r&&(this.log(`${r} bufferCodec event(s) expected ${i.join(",")}`),this.bufferCodecEventsExpected=r),this.mediaSource&&"open"===this.mediaSource.readyState&&this.checkPendingTracks()}appendChangeType(t,e){const{operationQueue:s}=this,i={execute:()=>{const i=this.sourceBuffer[t];i&&(this.log(`changing ${t} sourceBuffer type to ${e}`),i.changeType(e)),s.shiftAndExecuteNext(t)},onStart:()=>{},onComplete:()=>{},onError:e=>{this.warn(`Failed to change ${t} SourceBuffer type`,e)}};s.append(i,t,!!this.pendingTracks[t])}onBufferAppending(t,e){const{hls:s,operationQueue:i,tracks:r}=this,{data:n,type:o,frag:a,part:h,chunkMeta:c}=e,l=c.buffering[o],d=self.performance.now();l.start=d;const u=a.stats.buffering,p=h?h.stats.buffering:null;0===u.start&&(u.start=d),p&&0===p.start&&(p.start=d);const f=r.audio;let m=!1;"audio"===o&&"audio/mpeg"===(null==f?void 0:f.container)&&(m=!this.lastMpegAudioChunk||1===c.id||this.lastMpegAudioChunk.sn!==c.sn,this.lastMpegAudioChunk=c);const g=a.start,A={execute:()=>{if(l.executeStart=self.performance.now(),m){const t=this.sourceBuffer[o];if(t){const e=g-t.timestampOffset;Math.abs(e)>=.1&&(this.log(`Updating audio SourceBuffer timestampOffset to ${g} (delta: ${e}) sn: ${a.sn})`),t.timestampOffset=g)}}this.appendExecutor(n,o)},onStart:()=>{},onComplete:()=>{const t=self.performance.now();l.executeEnd=l.end=t,0===u.first&&(u.first=t),p&&0===p.first&&(p.first=t);const{sourceBuffer:e}=this,s={};for(const t in e)s[t]=Xb.getBuffered(e[t]);this.appendErrors[o]=0,"audio"===o||"video"===o?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(Eg.BUFFER_APPENDED,{type:o,frag:a,part:h,chunkMeta:c,parent:a.type,timeRanges:s})},onError:t=>{const e={type:Ig.MEDIA_ERROR,parent:a.type,details:Tg.BUFFER_APPEND_ERROR,sourceBufferName:o,frag:a,part:h,chunkMeta:c,error:t,err:t,fatal:!1};if(t.code===DOMException.QUOTA_EXCEEDED_ERR)e.details=Tg.BUFFER_FULL_ERROR;else{const t=++this.appendErrors[o];e.details=Tg.BUFFER_APPEND_ERROR,this.warn(`Failed ${t}/${s.config.appendErrorMaxRetry} times to append segment in "${o}" sourceBuffer`),t>=s.config.appendErrorMaxRetry&&(e.fatal=!0)}s.trigger(Eg.ERROR,e)}};i.append(A,o,!!this.pendingTracks[o])}onBufferFlushing(t,e){const{operationQueue:s}=this,i=t=>({execute:this.removeExecutor.bind(this,t,e.startOffset,e.endOffset),onStart:()=>{},onComplete:()=>{this.hls.trigger(Eg.BUFFER_FLUSHED,{type:t})},onError:e=>{this.warn(`Failed to remove from ${t} SourceBuffer`,e)}});e.type?s.append(i(e.type),e.type):this.getSourceBufferTypes().forEach((t=>{s.append(i(t),t)}))}onFragParsed(t,e){const{frag:s,part:i}=e,r=[],n=i?i.elementaryStreams:s.elementaryStreams;n[Ng]?r.push("audiovideo"):(n[Og]&&r.push("audio"),n[Ug]&&r.push("video"));0===r.length&&this.warn(`Fragments must have at least one ElementaryStreamType set. type: ${s.type} level: ${s.level} sn: ${s.sn}`),this.blockBuffers((()=>{const t=self.performance.now();s.stats.buffering.end=t,i&&(i.stats.buffering.end=t);const e=i?i.stats:s.stats;this.hls.trigger(Eg.FRAG_BUFFERED,{frag:s,part:i,stats:e,id:s.type})}),r)}onFragChanged(t,e){this.trimBuffers()}onBufferEos(t,e){this.getSourceBufferTypes().reduce(((t,s)=>{const i=this.sourceBuffer[s];return!i||e.type&&e.type!==s||(i.ending=!0,i.ended||(i.ended=!0,this.log(`${s} sourceBuffer now EOS`))),t&&!(i&&!i.ended)}),!0)&&(this.log("Queueing mediaSource.endOfStream()"),this.blockBuffers((()=>{this.getSourceBufferTypes().forEach((t=>{const e=this.sourceBuffer[t];e&&(e.ending=!1)}));const{mediaSource:t}=this;t&&"open"===t.readyState?(this.log("Calling mediaSource.endOfStream()"),t.endOfStream()):t&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${t.readyState}`)})))}onLevelUpdated(t,{details:e}){e.fragments.length&&(this.details=e,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration())}trimBuffers(){const{hls:t,details:e,media:s}=this;if(!s||null===e)return;if(!this.getSourceBufferTypes().length)return;const i=t.config,r=s.currentTime,n=e.levelTargetDuration,o=e.live&&null!==i.liveBackBufferLength?i.liveBackBufferLength:i.backBufferLength;if(vg(o)&&o>0){const t=Math.max(o,n),e=Math.floor(r/n)*n-t;this.flushBackBuffer(r,n,e)}if(vg(i.frontBufferFlushThreshold)&&i.frontBufferFlushThreshold>0){const t=Math.max(i.maxBufferLength,i.frontBufferFlushThreshold),e=Math.max(t,n),s=Math.floor(r/n)*n+e;this.flushFrontBuffer(r,n,s)}}flushBackBuffer(t,e,s){const{details:i,sourceBuffer:r}=this;this.getSourceBufferTypes().forEach((n=>{const o=r[n];if(o){const r=Xb.getBuffered(o);if(r.length>0&&s>r.start(0)){if(this.hls.trigger(Eg.BACK_BUFFER_REACHED,{bufferEnd:s}),null!=i&&i.live)this.hls.trigger(Eg.LIVE_BACK_BUFFER_REACHED,{bufferEnd:s});else if(o.ended&&r.end(r.length-1)-t<2*e)return void this.log(`Cannot flush ${n} back buffer while SourceBuffer is in ended state`);this.hls.trigger(Eg.BUFFER_FLUSHING,{startOffset:0,endOffset:s,type:n})}}}))}flushFrontBuffer(t,e,s){const{sourceBuffer:i}=this;this.getSourceBufferTypes().forEach((r=>{const n=i[r];if(n){const i=Xb.getBuffered(n),o=i.length;if(o<2)return;const a=i.start(o-1),h=i.end(o-1);if(s>a||t>=a&&t<=h)return;if(n.ended&&t-h<2*e)return void this.log(`Cannot flush ${r} front buffer while SourceBuffer is in ended state`);this.hls.trigger(Eg.BUFFER_FLUSHING,{startOffset:a,endOffset:1/0,type:r})}}))}updateMediaElementDuration(){if(!this.details||!this.media||!this.mediaSource||"open"!==this.mediaSource.readyState)return;const{details:t,hls:e,media:s,mediaSource:i}=this,r=t.fragments[0].start+t.totalduration,n=s.duration,o=vg(i.duration)?i.duration:0;t.live&&e.config.liveDurationInfinity?(i.duration=1/0,this.updateSeekableRange(t)):(r>o&&r>n||!vg(n))&&(this.log(`Updating Media Source duration to ${r.toFixed(3)}`),i.duration=r)}updateSeekableRange(t){const e=this.mediaSource,s=t.fragments;if(s.length&&t.live&&null!=e&&e.setLiveSeekableRange){const i=Math.max(0,s[0].start),r=Math.max(i,i+t.totalduration);this.log(`Media Source duration is set to ${e.duration}. Setting seekable range to ${i}-${r}.`),e.setLiveSeekableRange(i,r)}}checkPendingTracks(){const{bufferCodecEventsExpected:t,operationQueue:e,pendingTracks:s}=this,i=Object.keys(s).length;if(i&&(!t||2===i||"audiovideo"in s)){this.createSourceBuffers(s),this.pendingTracks={};const t=this.getSourceBufferTypes();if(t.length)this.hls.trigger(Eg.BUFFER_CREATED,{tracks:this.tracks}),t.forEach((t=>{e.executeNext(t)}));else{const t=new Error("could not create source buffer for media codec(s)");this.hls.trigger(Eg.ERROR,{type:Ig.MEDIA_ERROR,details:Tg.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:t,reason:t.message})}}}createSourceBuffers(t){const{sourceBuffer:e,mediaSource:s}=this;if(!s)throw Error("createSourceBuffers called when mediaSource was null");for(const r in t)if(!e[r]){var i;const n=t[r];if(!n)throw Error(`source buffer exists for track ${r}, however track does not`);let o=-1===(null==(i=n.levelCodec)?void 0:i.indexOf(","))?n.levelCodec:n.codec;o&&"audio"===r.slice(0,5)&&(o=dy(o,this.appendSource));const a=`${n.container};codecs=${o}`;this.log(`creating sourceBuffer(${a})`);try{const t=e[r]=s.addSourceBuffer(a),i=r;this.addBufferListener(i,"updatestart",this._onSBUpdateStart),this.addBufferListener(i,"updateend",this._onSBUpdateEnd),this.addBufferListener(i,"error",this._onSBUpdateError),this.appendSource&&this.addBufferListener(i,"bufferedchange",((t,e)=>{const s=e.removedRanges;null!=s&&s.length&&this.hls.trigger(Eg.BUFFER_FLUSHED,{type:r})})),this.tracks[r]={buffer:t,codec:o,container:n.container,levelCodec:n.levelCodec,metadata:n.metadata,id:n.id}}catch(t){this.error(`error while trying to add sourceBuffer: ${t.message}`),this.hls.trigger(Eg.ERROR,{type:Ig.MEDIA_ERROR,details:Tg.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:t,sourceBufferName:r,mimeType:a})}}}get mediaSrc(){var t;const e=(null==(t=this.media)?void 0:t.firstChild)||this.media;return null==e?void 0:e.src}_onSBUpdateStart(t){const{operationQueue:e}=this;e.current(t).onStart()}_onSBUpdateEnd(t){var e;if("closed"===(null==(e=this.mediaSource)?void 0:e.readyState))return void this.resetBuffer(t);const{operationQueue:s}=this;s.current(t).onComplete(),s.shiftAndExecuteNext(t)}_onSBUpdateError(t,e){var s;const i=new Error(`${t} SourceBuffer error. MediaSource readyState: ${null==(s=this.mediaSource)?void 0:s.readyState}`);this.error(`${i}`,e),this.hls.trigger(Eg.ERROR,{type:Ig.MEDIA_ERROR,details:Tg.BUFFER_APPENDING_ERROR,sourceBufferName:t,error:i,fatal:!1});const r=this.operationQueue.current(t);r&&r.onError(i)}removeExecutor(t,e,s){const{media:i,mediaSource:r,operationQueue:n,sourceBuffer:o}=this,a=o[t];if(!i||!r||!a)return this.warn(`Attempting to remove from the ${t} SourceBuffer, but it does not exist`),void n.shiftAndExecuteNext(t);const h=vg(i.duration)?i.duration:1/0,c=vg(r.duration)?r.duration:1/0,l=Math.max(0,e),d=Math.min(s,h,c);d>l&&(!a.ending||a.ended)?(a.ended=!1,this.log(`Removing [${l},${d}] from the ${t} SourceBuffer`),a.remove(l,d)):n.shiftAndExecuteNext(t)}appendExecutor(t,e){const s=this.sourceBuffer[e];if(s)s.ended=!1,s.appendBuffer(t);else if(!this.pendingTracks[e])throw new Error(`Attempting to append to the ${e} SourceBuffer, but it does not exist`)}blockBuffers(t,e=this.getSourceBufferTypes()){if(!e.length)return this.log("Blocking operation requested, but no SourceBuffers exist"),void Promise.resolve().then(t);const{operationQueue:s}=this,i=e.map((t=>s.appendBlocker(t)));Promise.all(i).then((()=>{t(),e.forEach((t=>{const e=this.sourceBuffer[t];null!=e&&e.updating||s.shiftAndExecuteNext(t)}))}))}getSourceBufferTypes(){return Object.keys(this.sourceBuffer)}addBufferListener(t,e,s){const i=this.sourceBuffer[t];if(!i)return;const r=s.bind(this,t);this.listeners[t].push({event:e,listener:r}),i.addEventListener(e,r)}removeBufferListeners(t){const e=this.sourceBuffer[t];e&&this.listeners[t].forEach((t=>{e.removeEventListener(t.event,t.listener)}))}},capLevelController:Bw,errorController:class{constructor(t){this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.log=void 0,this.warn=void 0,this.error=void 0,this.hls=t,this.log=Dg.log.bind(Dg,"[info]:"),this.warn=Dg.warn.bind(Dg,"[warning]:"),this.error=Dg.error.bind(Dg,"[error]:"),this.registerListeners()}registerListeners(){const t=this.hls;t.on(Eg.ERROR,this.onError,this),t.on(Eg.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Eg.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const t=this.hls;t&&(t.off(Eg.ERROR,this.onError,this),t.off(Eg.ERROR,this.onErrorOut,this),t.off(Eg.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Eg.LEVEL_UPDATED,this.onLevelUpdated,this))}destroy(){this.unregisterListeners(),this.hls=null,this.penalizedRenditions={}}startLoad(t){}stopLoad(){this.playlistError=0}getVariantLevelIndex(t){return(null==t?void 0:t.type)===Dy?t.level:this.hls.loadLevel}onManifestLoading(){this.playlistError=0,this.penalizedRenditions={}}onLevelUpdated(){this.playlistError=0}onError(t,e){var s,i;if(e.fatal)return;const r=this.hls,n=e.context;switch(e.details){case Tg.FRAG_LOAD_ERROR:case Tg.FRAG_LOAD_TIMEOUT:case Tg.KEY_LOAD_ERROR:case Tg.KEY_LOAD_TIMEOUT:return void(e.errorAction=this.getFragRetryOrSwitchAction(e));case Tg.FRAG_PARSING_ERROR:if(null!=(s=e.frag)&&s.gap)return void(e.errorAction={action:Eb,flags:_b});case Tg.FRAG_GAP:case Tg.FRAG_DECRYPT_ERROR:return e.errorAction=this.getFragRetryOrSwitchAction(e),void(e.errorAction.action=Ib);case Tg.LEVEL_EMPTY_ERROR:case Tg.LEVEL_PARSING_ERROR:{var o,a;const t=e.parent===Dy?e.level:r.loadLevel;e.details===Tg.LEVEL_EMPTY_ERROR&&null!=(o=e.context)&&null!=(a=o.levelDetails)&&a.live?e.errorAction=this.getPlaylistRetryOrSwitchAction(e,t):(e.levelRetry=!1,e.errorAction=this.getLevelSwitchAction(e,t))}return;case Tg.LEVEL_LOAD_ERROR:case Tg.LEVEL_LOAD_TIMEOUT:return void("number"==typeof(null==n?void 0:n.level)&&(e.errorAction=this.getPlaylistRetryOrSwitchAction(e,n.level)));case Tg.AUDIO_TRACK_LOAD_ERROR:case Tg.AUDIO_TRACK_LOAD_TIMEOUT:case Tg.SUBTITLE_LOAD_ERROR:case Tg.SUBTITLE_TRACK_LOAD_TIMEOUT:if(n){const t=r.levels[r.loadLevel];if(t&&(n.type===Cy&&t.hasAudioGroup(n.groupId)||n.type===Ry&&t.hasSubtitleGroup(n.groupId)))return e.errorAction=this.getPlaylistRetryOrSwitchAction(e,r.loadLevel),e.errorAction.action=Ib,void(e.errorAction.flags=Cb)}return;case Tg.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{const t=r.levels[r.loadLevel],s=null==t?void 0:t.attrs["HDCP-LEVEL"];s?e.errorAction={action:Ib,flags:Rb,hdcpLevel:s}:this.keySystemError(e)}return;case Tg.BUFFER_ADD_CODEC_ERROR:case Tg.REMUX_ALLOC_ERROR:case Tg.BUFFER_APPEND_ERROR:return void(e.errorAction=this.getLevelSwitchAction(e,null!=(i=e.level)?i:r.loadLevel));case Tg.INTERNAL_EXCEPTION:case Tg.BUFFER_APPENDING_ERROR:case Tg.BUFFER_FULL_ERROR:case Tg.LEVEL_SWITCH_ERROR:case Tg.BUFFER_STALLED_ERROR:case Tg.BUFFER_SEEK_OVER_HOLE:case Tg.BUFFER_NUDGE_ON_STALL:return void(e.errorAction={action:Eb,flags:_b})}e.type===Ig.KEY_SYSTEM_ERROR&&this.keySystemError(e)}keySystemError(t){const e=this.getVariantLevelIndex(t.frag);t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,e)}getPlaylistRetryOrSwitchAction(t,e){const s=mb(this.hls.config.playlistLoadPolicy,t),i=this.playlistError++;if(yb(s,i,fb(t),t.response))return{action:kb,flags:_b,retryConfig:s,retryCount:i};const r=this.getLevelSwitchAction(t,e);return s&&(r.retryConfig=s,r.retryCount=i),r}getFragRetryOrSwitchAction(t){const e=this.hls,s=this.getVariantLevelIndex(t.frag),i=e.levels[s],{fragLoadPolicy:r,keyLoadPolicy:n}=e.config,o=mb(t.details.startsWith("key")?n:r,t),a=e.levels.reduce(((t,e)=>t+e.fragmentError),0);if(i){t.details!==Tg.FRAG_GAP&&i.fragmentError++;if(yb(o,a,fb(t),t.response))return{action:kb,flags:_b,retryConfig:o,retryCount:a}}const h=this.getLevelSwitchAction(t,s);return o&&(h.retryConfig=o,h.retryCount=a),h}getLevelSwitchAction(t,e){const s=this.hls;null==e&&(e=s.loadLevel);const i=this.hls.levels[e];if(i){var r,n;const e=t.details;i.loadError++,e===Tg.BUFFER_APPEND_ERROR&&i.fragmentError++;let h=-1;const{levels:c,loadLevel:l,minAutoLevel:d,maxAutoLevel:u}=s;s.autoLevelEnabled||(s.loadLevel=-1);const p=null==(r=t.frag)?void 0:r.type,f=(p===Ly&&e===Tg.FRAG_PARSING_ERROR||"audio"===t.sourceBufferName&&(e===Tg.BUFFER_ADD_CODEC_ERROR||e===Tg.BUFFER_APPEND_ERROR))&&c.some((({audioCodec:t})=>i.audioCodec!==t)),m="video"===t.sourceBufferName&&(e===Tg.BUFFER_ADD_CODEC_ERROR||e===Tg.BUFFER_APPEND_ERROR)&&c.some((({codecSet:t,audioCodec:e})=>i.codecSet!==t&&i.audioCodec===e)),{type:g,groupId:A}=null!=(n=t.context)?n:{};for(let s=c.length;s--;){const r=(s+l)%c.length;if(r!==l&&r>=d&&r<=u&&0===c[r].loadError){var o,a;const s=c[r];if(e===Tg.FRAG_GAP&&p===Dy&&t.frag){const e=c[r].details;if(e){const s=vb(t.frag,e.fragments,t.frag.start);if(null!=s&&s.gap)continue}}else{if(g===Cy&&s.hasAudioGroup(A)||g===Ry&&s.hasSubtitleGroup(A))continue;if(p===Ly&&null!=(o=i.audioGroups)&&o.some((t=>s.hasAudioGroup(t)))||p===xy&&null!=(a=i.subtitleGroups)&&a.some((t=>s.hasSubtitleGroup(t)))||f&&i.audioCodec===s.audioCodec||!f&&i.audioCodec!==s.audioCodec||m&&i.codecSet===s.codecSet)continue}h=r;break}}if(h>-1&&s.loadLevel!==h)return t.levelRetry=!0,this.playlistError=0,{action:Ib,flags:_b,nextAutoLevel:h}}return{action:Ib,flags:Cb}}onErrorOut(t,e){var s;switch(null==(s=e.errorAction)?void 0:s.action){case Eb:break;case Ib:this.sendAlternateToPenaltyBox(e),e.errorAction.resolved||e.details===Tg.FRAG_GAP?/MediaSource readyState: ended/.test(e.error.message)&&(this.warn(`MediaSource ended after "${e.sourceBufferName}" sourceBuffer append error. Attempting to recover from media error.`),this.hls.recoverMediaError()):e.fatal=!0}e.fatal&&this.hls.stopLoad()}sendAlternateToPenaltyBox(t){const e=this.hls,s=t.errorAction;if(!s)return;const{flags:i,hdcpLevel:r,nextAutoLevel:n}=s;switch(i){case _b:this.switchLevel(t,n);break;case Rb:r&&(e.maxHdcpLevel=Xy[Xy.indexOf(r)-1],s.resolved=!0),this.warn(`Restricting playback to HDCP-LEVEL of "${e.maxHdcpLevel}" or lower`)}s.resolved||this.switchLevel(t,n)}switchLevel(t,e){void 0!==e&&t.errorAction&&(this.warn(`switching to level ${e} after ${t.details}`),this.hls.nextAutoLevel=e,t.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel)}},fpsController:class{constructor(t){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=t,this.registerListeners()}setStreamController(t){this.streamController=t}registerListeners(){this.hls.on(Eg.MEDIA_ATTACHING,this.onMediaAttaching,this)}unregisterListeners(){this.hls.off(Eg.MEDIA_ATTACHING,this.onMediaAttaching,this)}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}onMediaAttaching(t,e){const s=this.hls.config;if(s.capLevelOnFPSDrop){const t=e.media instanceof self.HTMLVideoElement?e.media:null;this.media=t,t&&"function"==typeof t.getVideoPlaybackQuality&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),s.fpsDroppedMonitoringPeriod)}}checkFPS(t,e,s){const i=performance.now();if(e){if(this.lastTime){const t=i-this.lastTime,r=s-this.lastDroppedFrames,n=e-this.lastDecodedFrames,o=1e3*r/t,a=this.hls;if(a.trigger(Eg.FPS_DROP,{currentDropped:r,currentDecoded:n,totalDroppedFrames:s}),o>0&&r>a.config.fpsDroppedMonitoringThreshold*n){let t=a.currentLevel;Dg.warn("drop FPS ratio greater than max allowed value for currentLevel: "+t),t>0&&(-1===a.autoLevelCapping||a.autoLevelCapping>=t)&&(t-=1,a.trigger(Eg.FPS_DROP_LEVEL_CAPPING,{level:t,droppedLevel:a.currentLevel}),a.autoLevelCapping=t,this.streamController.nextLevelSwitch())}}this.lastTime=i,this.lastDroppedFrames=s,this.lastDecodedFrames=e}}checkFPSInterval(){const t=this.media;if(t)if(this.isVideoPlaybackQualityAvailable){const e=t.getVideoPlaybackQuality();this.checkFPS(t,e.totalVideoFrames,e.droppedVideoFrames)}else this.checkFPS(t,t.webkitDecodedFrameCount,t.webkitDroppedFrameCount)}},stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrEwmaDefaultEstimateMax:5e6,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:iA,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableID3MetadataCues:!0,useMediaCapabilities:!0,certLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null}},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},{cueHandler:SE,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}),{},{subtitleStreamController:class extends kv{constructor(t,e,s){super(t,e,s,"[subtitle-stream-controller]",xy),this.currentTrackId=-1,this.tracksBuffered=[],this.mainDetails=null,this._registerListeners()}onHandlerDestroying(){this._unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null}_registerListeners(){const{hls:t}=this;t.on(Eg.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Eg.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Eg.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Eg.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Eg.ERROR,this.onError,this),t.on(Eg.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(Eg.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.on(Eg.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(Eg.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.on(Eg.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(Eg.FRAG_BUFFERED,this.onFragBuffered,this)}_unregisterListeners(){const{hls:t}=this;t.off(Eg.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Eg.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Eg.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Eg.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Eg.ERROR,this.onError,this),t.off(Eg.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(Eg.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.off(Eg.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(Eg.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.off(Eg.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(Eg.FRAG_BUFFERED,this.onFragBuffered,this)}startLoad(t){this.stopLoad(),this.state=mv,this.setInterval(500),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=t,this.tick()}onManifestLoading(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()}onMediaDetaching(){this.tracksBuffered=[],super.onMediaDetaching()}onLevelLoaded(t,e){this.mainDetails=e.details}onSubtitleFragProcessed(t,e){const{frag:s,success:i}=e;if(this.fragPrevious=s,this.state=mv,!i)return;const r=this.tracksBuffered[this.currentTrackId];if(!r)return;let n;const o=s.start;for(let t=0;t<r.length;t++)if(o>=r[t].start&&o<=r[t].end){n=r[t];break}const a=s.start+s.duration;n?n.end=a:(n={start:o,end:a},r.push(n)),this.fragmentTracker.fragBuffered(s),this.fragBufferedComplete(s,null)}onBufferFlushing(t,e){const{startOffset:s,endOffset:i}=e;if(0===s&&i!==Number.POSITIVE_INFINITY){const t=i-1;if(t<=0)return;e.endOffsetSubtitles=Math.max(0,t),this.tracksBuffered.forEach((e=>{for(let s=0;s<e.length;)if(e[s].end<=t)e.shift();else{if(!(e[s].start<t))break;e[s].start=t,s++}})),this.fragmentTracker.removeFragmentsInRange(s,t,xy)}}onFragBuffered(t,e){var s;this.loadedmetadata||e.frag.type!==Dy||null!=(s=this.media)&&s.buffered.length&&(this.loadedmetadata=!0)}onError(t,e){const s=e.frag;(null==s?void 0:s.type)===xy&&(e.details===Tg.FRAG_GAP&&this.fragmentTracker.fragBuffered(s,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==fv&&(this.state=mv))}onSubtitleTracksUpdated(t,{subtitleTracks:e}){this.levels&&PS(this.levels,e)?this.levels=e.map((t=>new rb(t))):(this.tracksBuffered=[],this.levels=e.map((t=>{const e=new rb(t);return this.tracksBuffered[e.id]=[],e})),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,xy),this.fragPrevious=null,this.mediaBuffer=null)}onSubtitleTrackSwitch(t,e){var s;if(this.currentTrackId=e.id,null==(s=this.levels)||!s.length||-1===this.currentTrackId)return void this.clearInterval();const i=this.levels[this.currentTrackId];null!=i&&i.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,i&&this.setInterval(500)}onSubtitleTrackLoaded(t,e){var s;const{currentTrackId:i,levels:r}=this,{details:n,id:o}=e;if(!r)return void this.warn(`Subtitle tracks were reset while loading level ${o}`);const a=r[o];if(o>=r.length||!a)return;this.log(`Subtitle track ${o} loaded [${n.startSN},${n.endSN}]${n.lastPartSn?`[part-${n.lastPartSn}-${n.lastPartIndex}]`:""},duration:${n.totalduration}`),this.mediaBuffer=this.mediaBufferTimeRanges;let h=0;if(n.live||null!=(s=a.details)&&s.live){const t=this.mainDetails;if(n.deltaUpdateFailed||!t)return;const e=t.fragments[0];var c;if(a.details)h=this.alignPlaylists(n,a.details,null==(c=this.levelLastLoaded)?void 0:c.details),0===h&&e&&(h=e.start,lb(n,h));else n.hasProgramDateTime&&t.hasProgramDateTime?(iv(n,t),h=n.fragments[0].start):e&&(h=e.start,lb(n,h))}if(a.details=n,this.levelLastLoaded=a,o===i&&(this.startFragRequested||!this.mainDetails&&n.live||this.setStartPosition(this.mainDetails||n,h),this.tick(),n.live&&!this.fragCurrent&&this.media&&this.state===mv)){vb(null,n.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),a.details=void 0)}}_handleFragmentLoadComplete(t){const{frag:e,payload:s}=t,i=e.decryptdata,r=this.hls;if(!this.fragContextChanged(e)&&s&&s.byteLength>0&&null!=i&&i.key&&i.iv&&"AES-128"===i.method){const t=performance.now();this.decrypter.decrypt(new Uint8Array(s),i.key.buffer,i.iv.buffer).catch((t=>{throw r.trigger(Eg.ERROR,{type:Ig.MEDIA_ERROR,details:Tg.FRAG_DECRYPT_ERROR,fatal:!1,error:t,reason:t.message,frag:e}),t})).then((s=>{const i=performance.now();r.trigger(Eg.FRAG_DECRYPTED,{frag:e,payload:s,stats:{tstart:t,tdecrypt:i}})})).catch((t=>{this.warn(`${t.name}: ${t.message}`),this.state=mv}))}}doTick(){if(this.media){if(this.state===mv){const{currentTrackId:t,levels:e}=this,s=null==e?void 0:e[t];if(!s||!e.length||!s.details)return;const{config:i}=this,r=this.getLoadPosition(),n=Xb.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],r,i.maxBufferHole),{end:o,len:a}=n,h=this.getFwdBufferInfo(this.media,Dy),c=s.details;if(a>this.getMaxBufferLength(null==h?void 0:h.len)+c.levelTargetDuration)return;const l=c.fragments,d=l.length,u=c.edge;let p=null;const f=this.fragPrevious;if(o<u){const t=i.maxFragLookUpTolerance,e=o>u-t?0:t;p=vb(f,l,Math.max(l[0].start,o),e),!p&&f&&f.start<l[0].start&&(p=l[0])}else p=l[d-1];if(!p)return;if(p=this.mapToInitFragWhenRequired(p),"initSegment"!==p.sn){const t=l[p.sn-c.startSN-1];t&&t.cc===p.cc&&this.fragmentTracker.getState(t)===Gb&&(p=t)}this.fragmentTracker.getState(p)===Gb&&this.loadFragment(p,s,o)}}else this.state=mv}getMaxBufferLength(t){const e=super.getMaxBufferLength();return t?Math.max(e,t):e}loadFragment(t,e,s){this.fragCurrent=t,"initSegment"===t.sn?this._loadInitSegment(t,e):(this.startFragRequested=!0,super.loadFragment(t,e,s))}get mediaBufferTimeRanges(){return new FS(this.tracksBuffered[this.currentTrackId]||[])}},subtitleTrackController:class extends Db{constructor(t){super(t,"[subtitle-track-controller]"),this.media=null,this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.queuedDefaultTrack=-1,this.asyncPollTrackChange=()=>this.pollTrackChange(0),this.useTextTrackPolling=!1,this.subtitlePollingInterval=-1,this._subtitleDisplay=!0,this.onTextTracksChanged=()=>{if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;let t=null;const e=jy(this.media.textTracks);for(let s=0;s<e.length;s++)if("hidden"===e[s].mode)t=e[s];else if("showing"===e[s].mode){t=e[s];break}const s=this.findTrackForTextTrack(t);this.subtitleTrack!==s&&this.setSubtitleTrack(s)},this.registerListeners()}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,this.onTextTracksChanged=this.asyncPollTrackChange=null,super.destroy()}get subtitleDisplay(){return this._subtitleDisplay}set subtitleDisplay(t){this._subtitleDisplay=t,this.trackId>-1&&this.toggleTrackModes()}registerListeners(){const{hls:t}=this;t.on(Eg.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Eg.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Eg.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Eg.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Eg.LEVEL_LOADING,this.onLevelLoading,this),t.on(Eg.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(Eg.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(Eg.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(Eg.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Eg.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Eg.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Eg.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Eg.LEVEL_LOADING,this.onLevelLoading,this),t.off(Eg.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(Eg.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(Eg.ERROR,this.onError,this)}onMediaAttached(t,e){this.media=e.media,this.media&&(this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange))}pollTrackChange(t){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.onTextTracksChanged,t)}onMediaDetaching(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId);jy(this.media.textTracks).forEach((t=>{Uy(t)})),this.subtitleTrack=-1,this.media=null}onManifestLoading(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0}onManifestParsed(t,e){this.tracks=e.subtitleTracks}onSubtitleTrackLoaded(t,e){const{id:s,groupId:i,details:r}=e,n=this.tracksInGroup[s];if(!n||n.groupId!==i)return void this.warn(`Subtitle track with id:${s} and group:${i} not found in active group ${null==n?void 0:n.groupId}`);const o=n.details;n.details=e.details,this.log(`Subtitle track ${s} "${n.name}" lang:${n.lang} group:${i} loaded [${r.startSN}-${r.endSN}]`),s===this.trackId&&this.playlistLoaded(s,e,o)}onLevelLoading(t,e){this.switchLevel(e.level)}onLevelSwitching(t,e){this.switchLevel(e.level)}switchLevel(t){const e=this.hls.levels[t];if(!e)return;const s=e.subtitleGroups||null,i=this.groupIds;let r=this.currentTrack;if(!s||(null==i?void 0:i.length)!==(null==s?void 0:s.length)||null!=s&&s.some((t=>-1===(null==i?void 0:i.indexOf(t))))){this.groupIds=s,this.trackId=-1,this.currentTrack=null;const t=this.tracks.filter((t=>!s||-1!==s.indexOf(t.groupId)));if(t.length)this.selectDefaultTrack&&!t.some((t=>t.default))&&(this.selectDefaultTrack=!1),t.forEach(((t,e)=>{t.id=e}));else if(!r&&!this.tracksInGroup.length)return;this.tracksInGroup=t;const e=this.hls.config.subtitlePreference;if(!r&&e){this.selectDefaultTrack=!1;const s=Nb(e,t);if(s>-1)r=t[s];else{const t=Nb(e,this.tracks);r=this.tracks[t]}}let i=this.findTrackId(r);-1===i&&r&&(i=this.findTrackId(null));const n={subtitleTracks:t};this.log(`Updating subtitle tracks, ${t.length} track(s) found in "${null==s?void 0:s.join(",")}" group-id`),this.hls.trigger(Eg.SUBTITLE_TRACKS_UPDATED,n),-1!==i&&-1===this.trackId&&this.setSubtitleTrack(i)}else this.shouldReloadPlaylist(r)&&this.setSubtitleTrack(this.trackId)}findTrackId(t){const e=this.tracksInGroup,s=this.selectDefaultTrack;for(let i=0;i<e.length;i++){const r=e[i];if((!s||r.default)&&(s||t)&&(!t||jb(r,t)))return i}if(t){for(let s=0;s<e.length;s++){const i=e[s];if(BS(t.attrs,i.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return s}for(let s=0;s<e.length;s++){const i=e[s];if(BS(t.attrs,i.attrs,["LANGUAGE"]))return s}}return-1}findTrackForTextTrack(t){if(t){const e=this.tracksInGroup;for(let s=0;s<e.length;s++){if(MS(e[s],t))return s}}return-1}onError(t,e){!e.fatal&&e.context&&(e.context.type!==Ry||e.context.id!==this.trackId||this.groupIds&&-1===this.groupIds.indexOf(e.context.groupId)||this.checkRetry(e))}get allSubtitleTracks(){return this.tracks}get subtitleTracks(){return this.tracksInGroup}get subtitleTrack(){return this.trackId}set subtitleTrack(t){this.selectDefaultTrack=!1,this.setSubtitleTrack(t)}setSubtitleOption(t){if(this.hls.config.subtitlePreference=t,t){const e=this.allSubtitleTracks;if(this.selectDefaultTrack=!1,e.length){const s=this.currentTrack;if(s&&jb(t,s))return s;const i=Nb(t,this.tracksInGroup);if(i>-1){const t=this.tracksInGroup[i];return this.setSubtitleTrack(i),t}if(s)return null;{const s=Nb(t,e);if(s>-1)return e[s]}}}return null}loadPlaylist(t){super.loadPlaylist();const e=this.currentTrack;if(this.shouldLoadPlaylist(e)&&e){const s=e.id,i=e.groupId;let r=e.url;if(t)try{r=t.addDirectives(r)}catch(t){this.warn(`Could not construct new URL with HLS Delivery Directives: ${t}`)}this.log(`Loading subtitle playlist for id ${s}`),this.hls.trigger(Eg.SUBTITLE_TRACK_LOADING,{url:r,id:s,groupId:i,deliveryDirectives:t||null})}}toggleTrackModes(){const{media:t}=this;if(!t)return;const e=jy(t.textTracks),s=this.currentTrack;let i;if(s&&(i=e.filter((t=>MS(s,t)))[0],i||this.warn(`Unable to find subtitle TextTrack with name "${s.name}" and language "${s.lang}"`)),[].slice.call(e).forEach((t=>{"disabled"!==t.mode&&t!==i&&(t.mode="disabled")})),i){const t=this.subtitleDisplay?"showing":"hidden";i.mode!==t&&(i.mode=t)}}setSubtitleTrack(t){const e=this.tracksInGroup;if(!this.media)return void(this.queuedDefaultTrack=t);if(t<-1||t>=e.length||!vg(t))return void this.warn(`Invalid subtitle track id: ${t}`);this.clearTimer(),this.selectDefaultTrack=!1;const s=this.currentTrack,i=e[t]||null;if(this.trackId=t,this.currentTrack=i,this.toggleTrackModes(),!i)return void this.hls.trigger(Eg.SUBTITLE_TRACK_SWITCH,{id:t});const r=!!i.details&&!i.details.live;if(t===this.trackId&&i===s&&r)return;this.log(`Switching to subtitle-track ${t}`+(i?` "${i.name}" lang:${i.lang} group:${i.groupId}`:""));const{id:n,groupId:o="",name:a,type:h,url:c}=i;this.hls.trigger(Eg.SUBTITLE_TRACK_SWITCH,{id:n,groupId:o,name:a,type:h,url:c});const l=this.switchParams(i.url,null==s?void 0:s.details,i.details);this.loadPlaylist(l)}},timelineController:class{constructor(t){this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}},this.captionsProperties=void 0,this.hls=t,this.config=t.config,this.Cues=t.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},t.on(Eg.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Eg.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Eg.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Eg.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(Eg.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(Eg.FRAG_LOADING,this.onFragLoading,this),t.on(Eg.FRAG_LOADED,this.onFragLoaded,this),t.on(Eg.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.on(Eg.FRAG_DECRYPTED,this.onFragDecrypted,this),t.on(Eg.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(Eg.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.on(Eg.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:t}=this;t.off(Eg.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Eg.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Eg.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Eg.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(Eg.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(Eg.FRAG_LOADING,this.onFragLoading,this),t.off(Eg.FRAG_LOADED,this.onFragLoaded,this),t.off(Eg.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.off(Eg.FRAG_DECRYPTED,this.onFragDecrypted,this),t.off(Eg.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(Eg.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.off(Eg.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){if(this.config.enableCEA708Captions&&(!this.cea608Parser1||!this.cea608Parser2)){const t=new nw(this,"textTrack1"),e=new nw(this,"textTrack2"),s=new nw(this,"textTrack3"),i=new nw(this,"textTrack4");this.cea608Parser1=new sw(1,t,e),this.cea608Parser2=new sw(3,s,i)}}addCues(t,e,s,i,r){let n=!1;for(let t=r.length;t--;){const i=r[t],l=(o=i[0],a=i[1],h=e,c=s,Math.min(a,c)-Math.max(o,h));if(l>=0&&(i[0]=Math.min(i[0],e),i[1]=Math.max(i[1],s),n=!0,l/(s-e)>.5))return}var o,a,h,c;if(n||r.push([e,s]),this.config.renderTextTracksNatively){const r=this.captionsTracks[t];this.Cues.newCue(r,e,s,i)}else{const r=this.Cues.newCue(null,e,s,i);this.hls.trigger(Eg.CUES_PARSED,{type:"captions",cues:r,track:t})}}onInitPtsFound(t,{frag:e,id:s,initPTS:i,timescale:r}){const{unparsedVttFrags:n}=this;"main"===s&&(this.initPTS[e.cc]={baseTime:i,timescale:r}),n.length&&(this.unparsedVttFrags=[],n.forEach((t=>{this.onFragLoaded(Eg.FRAG_LOADED,t)})))}getExistingTrack(t,e){const{media:s}=this;if(s)for(let i=0;i<s.textTracks.length;i++){const r=s.textTracks[i];if(Pw(r,{name:t,lang:e,attrs:{}}))return r}return null}createCaptionsTrack(t){this.config.renderTextTracksNatively?this.createNativeTrack(t):this.createNonNativeTrack(t)}createNativeTrack(t){if(this.captionsTracks[t])return;const{captionsProperties:e,captionsTracks:s,media:i}=this,{label:r,languageCode:n}=e[t],o=this.getExistingTrack(r,n);if(o)s[t]=o,Uy(s[t]),Fy(s[t],i);else{const e=this.createTextTrack("captions",r,n);e&&(e[t]=!0,s[t]=e)}}createNonNativeTrack(t){if(this.nonNativeCaptionsTracks[t])return;const e=this.captionsProperties[t];if(!e)return;const s={_id:t,label:e.label,kind:"captions",default:!!e.media&&!!e.media.default,closedCaptions:e.media};this.nonNativeCaptionsTracks[t]=s,this.hls.trigger(Eg.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[s]})}createTextTrack(t,e,s){const i=this.media;if(i)return i.addTextTrack(t,e,s)}onMediaAttaching(t,e){this.media=e.media,this._cleanTracks()}onMediaDetaching(){const{captionsTracks:t}=this;Object.keys(t).forEach((e=>{Uy(t[e]),delete t[e]})),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}},this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())}_cleanTracks(){const{media:t}=this;if(!t)return;const e=t.textTracks;if(e)for(let t=0;t<e.length;t++)Uy(e[t])}onSubtitleTracksUpdated(t,e){const s=e.subtitleTracks||[],i=s.some((t=>t.textCodec===Sw));if(this.config.enableWebVTT||i&&this.config.enableIMSC1){if(PS(this.tracks,s))return void(this.tracks=s);if(this.textTracks=[],this.tracks=s,this.config.renderTextTracksNatively){const t=this.media,e=t?jy(t.textTracks):null;if(this.tracks.forEach(((t,s)=>{let i;if(e){let s=null;for(let i=0;i<e.length;i++)if(e[i]&&Pw(e[i],t)){s=e[i],e[i]=null;break}s&&(i=s)}if(i)Uy(i);else{const e=xw(t);i=this.createTextTrack(e,t.name,t.lang),i&&(i.mode="disabled")}i&&this.textTracks.push(i)})),null!=e&&e.length){const t=e.filter((t=>null!==t)).map((t=>t.label));t.length&&Dg.warn(`Media element contains unused subtitle tracks: ${t.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`)}}else if(this.tracks.length){const t=this.tracks.map((t=>({label:t.name,kind:t.type.toLowerCase(),default:t.default,subtitleTrack:t})));this.hls.trigger(Eg.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:t})}}}onManifestLoaded(t,e){this.config.enableCEA708Captions&&e.captions&&e.captions.forEach((t=>{const e=/(?:CC|SERVICE)([1-4])/.exec(t.instreamId);if(!e)return;const s=`textTrack${e[1]}`,i=this.captionsProperties[s];i&&(i.label=t.name,t.lang&&(i.languageCode=t.lang),i.media=t)}))}closedCaptionsForLevel(t){const e=this.hls.levels[t.level];return null==e?void 0:e.attrs["CLOSED-CAPTIONS"]}onFragLoading(t,e){if(this.enabled&&e.frag.type===Dy){var s,i;const{cea608Parser1:t,cea608Parser2:r,lastSn:n}=this,{cc:o,sn:a}=e.frag,h=null!=(s=null==(i=e.part)?void 0:i.index)?s:-1;t&&r&&(a!==n+1||a===n&&h!==this.lastPartIndex+1||o!==this.lastCc)&&(t.reset(),r.reset()),this.lastCc=o,this.lastSn=a,this.lastPartIndex=h}}onFragLoaded(t,e){const{frag:s,payload:i}=e;if(s.type===xy)if(i.byteLength){const t=s.decryptdata,r="stats"in e;if(null==t||!t.encrypted||r){const t=this.tracks[s.level],r=this.vttCCs;r[s.cc]||(r[s.cc]={start:s.start,prevCC:this.prevCC,new:!0},this.prevCC=s.cc),t&&t.textCodec===Sw?this._parseIMSC1(s,i):this._parseVTTs(e)}}else this.hls.trigger(Eg.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:s,error:new Error("Empty subtitle payload")})}_parseIMSC1(t,e){const s=this.hls;Tw(e,this.initPTS[t.cc],(e=>{this._appendCues(e,t.level),s.trigger(Eg.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:t})}),(e=>{Dg.log(`Failed to parse IMSC1: ${e}`),s.trigger(Eg.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t,error:e})}))}_parseVTTs(t){var e;const{frag:s,payload:i}=t,{initPTS:r,unparsedVttFrags:n}=this,o=r.length-1;if(!r[s.cc]&&-1===o)return void n.push(t);const a=this.hls;vw(null!=(e=s.initSegment)&&e.data?zA(s.initSegment.data,new Uint8Array(i)):i,this.initPTS[s.cc],this.vttCCs,s.cc,s.start,(t=>{this._appendCues(t,s.level),a.trigger(Eg.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:s})}),(e=>{const r="Missing initPTS for VTT MPEGTS"===e.message;r?n.push(t):this._fallbackToIMSC1(s,i),Dg.log(`Failed to parse VTT cue: ${e}`),r&&o>s.cc||a.trigger(Eg.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:s,error:e})}))}_fallbackToIMSC1(t,e){const s=this.tracks[t.level];s.textCodec||Tw(e,this.initPTS[t.cc],(()=>{s.textCodec=Sw,this._parseIMSC1(t,e)}),(()=>{s.textCodec="wvtt"}))}_appendCues(t,e){const s=this.hls;if(this.config.renderTextTracksNatively){const s=this.textTracks[e];if(!s||"disabled"===s.mode)return;t.forEach((t=>Oy(s,t)))}else{const i=this.tracks[e];if(!i)return;const r=i.default?"default":"subtitles"+e;s.trigger(Eg.CUES_PARSED,{type:"subtitles",cues:t,track:r})}}onFragDecrypted(t,e){const{frag:s}=e;s.type===xy&&this.onFragLoaded(Eg.FRAG_LOADED,e)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(t,e){this.initCea608Parsers();const{cea608Parser1:s,cea608Parser2:i}=this;if(!this.enabled||!s||!i)return;const{frag:r,samples:n}=e;if(r.type!==Dy||"NONE"!==this.closedCaptionsForLevel(r))for(let t=0;t<n.length;t++){const e=n[t].bytes;if(e){const r=this.extractCea608Data(e);s.addData(n[t].pts,r[0]),i.addData(n[t].pts,r[1])}}}onBufferFlushing(t,{startOffset:e,endOffset:s,endOffsetSubtitles:i,type:r}){const{media:n}=this;if(n&&!(n.currentTime<s)){if(!r||"video"===r){const{captionsTracks:t}=this;Object.keys(t).forEach((i=>Ny(t[i],e,s)))}if(this.config.renderTextTracksNatively&&0===e&&void 0!==i){const{textTracks:t}=this;Object.keys(t).forEach((s=>Ny(t[s],e,i)))}}}extractCea608Data(t){const e=[[],[]],s=31&t[0];let i=2;for(let r=0;r<s;r++){const s=t[i++],r=127&t[i++],n=127&t[i++];if(0===r&&0===n)continue;if(0!=(4&s)){const t=3&s;0!==t&&1!==t||(e[t].push(r),e[t].push(n))}}return e}},audioStreamController:class extends kv{constructor(t,e,s){super(t,e,s,"[audio-stream-controller]",Ly),this.videoBuffer=null,this.videoTrackCC=-1,this.waitingVideoCC=-1,this.bufferedTrack=null,this.switchingTrack=null,this.trackId=-1,this.waitingData=null,this.mainDetails=null,this.flushing=!1,this.bufferFlushed=!1,this.cachedTrackLoadedData=null,this._registerListeners()}onHandlerDestroying(){this._unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null,this.bufferedTrack=null,this.switchingTrack=null}_registerListeners(){const{hls:t}=this;t.on(Eg.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Eg.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Eg.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Eg.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Eg.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.on(Eg.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(Eg.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(Eg.ERROR,this.onError,this),t.on(Eg.BUFFER_RESET,this.onBufferReset,this),t.on(Eg.BUFFER_CREATED,this.onBufferCreated,this),t.on(Eg.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(Eg.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(Eg.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(Eg.FRAG_BUFFERED,this.onFragBuffered,this)}_unregisterListeners(){const{hls:t}=this;t.off(Eg.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Eg.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Eg.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Eg.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Eg.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.off(Eg.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(Eg.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(Eg.ERROR,this.onError,this),t.off(Eg.BUFFER_RESET,this.onBufferReset,this),t.off(Eg.BUFFER_CREATED,this.onBufferCreated,this),t.off(Eg.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(Eg.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(Eg.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(Eg.FRAG_BUFFERED,this.onFragBuffered,this)}onInitPtsFound(t,{frag:e,id:s,initPTS:i,timescale:r}){if("main"===s){const t=e.cc;this.initPTS[e.cc]={baseTime:i,timescale:r},this.log(`InitPTS for cc: ${t} found from main: ${i}`),this.videoTrackCC=t,this.state===Iv&&this.tick()}}startLoad(t){if(!this.levels)return this.startPosition=t,void(this.state=fv);const e=this.lastCurrentTime;this.stopLoad(),this.setInterval(100),e>0&&-1===t?(this.log(`Override startPosition with lastCurrentTime @${e.toFixed(3)}`),t=e,this.state=mv):(this.loadedmetadata=!1,this.state=bv),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=t,this.tick()}doTick(){switch(this.state){case mv:this.doTickIdle();break;case bv:{var t;const{levels:e,trackId:s}=this,i=null==e||null==(t=e[s])?void 0:t.details;if(i){if(this.waitForCdnTuneIn(i))break;this.state=Iv}break}case yv:{var e;const t=performance.now(),s=this.retryDate;if(!s||t>=s||null!=(e=this.media)&&e.seeking){const{levels:t,trackId:e}=this;this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded((null==t?void 0:t[e])||null),this.state=mv}break}case Iv:{const t=this.waitingData;if(t){const{frag:e,part:s,cache:i,complete:r}=t;if(void 0!==this.initPTS[e.cc]){this.waitingData=null,this.waitingVideoCC=-1,this.state=Av;const t={frag:e,part:s,payload:i.flush(),networkDetails:null};this._handleFragmentLoadProgress(t),r&&super._handleFragmentLoadComplete(t)}else if(this.videoTrackCC!==this.waitingVideoCC)this.log(`Waiting fragment cc (${e.cc}) cancelled because video is at cc ${this.videoTrackCC}`),this.clearWaitingFragment();else{const t=this.getLoadPosition(),s=Xb.bufferInfo(this.mediaBuffer,t,this.config.maxBufferHole);Sb(s.end,this.config.maxFragLookUpTolerance,e)<0&&(this.log(`Waiting fragment cc (${e.cc}) @ ${e.start} cancelled because another fragment at ${s.end} is needed`),this.clearWaitingFragment())}}else this.state=mv}}this.onTickEnd()}clearWaitingFragment(){const t=this.waitingData;t&&(this.fragmentTracker.removeFragment(t.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=mv)}resetLoadingState(){this.clearWaitingFragment(),super.resetLoadingState()}onTickEnd(){const{media:t}=this;null!=t&&t.readyState&&(this.lastCurrentTime=t.currentTime)}doTickIdle(){const{hls:t,levels:e,media:s,trackId:i}=this,r=t.config;if(!s&&(this.startFragRequested||!r.startFragPrefetch)||null==e||!e[i])return;const n=e[i],o=n.details;if(!o||o.live&&this.levelLastLoaded!==n||this.waitForCdnTuneIn(o))return void(this.state=bv);const a=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&a&&(this.bufferFlushed=!1,this.afterBufferFlushed(a,Og,Ly));const h=this.getFwdBufferInfo(a,Ly);if(null===h)return;const{bufferedTrack:c,switchingTrack:l}=this;if(!l&&this._streamEnded(h,o))return t.trigger(Eg.BUFFER_EOS,{type:"audio"}),void(this.state=wv);const d=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,Dy),u=h.len,p=this.getMaxBufferLength(null==d?void 0:d.len),f=o.fragments,m=f[0].start;let g=this.flushing?this.getLoadPosition():h.end;if(l&&s){const t=this.getLoadPosition();c&&!BS(l.attrs,c.attrs)&&(g=t),o.PTSKnown&&t<m&&(h.end>m||h.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),s.currentTime=m+.05)}if(u>=p&&!l&&g<f[f.length-1].start)return;let A=this.getNextFragment(g,o),y=!1;if(A&&this.isLoopLoading(A,g)&&(y=!!A.gap,A=this.getNextFragmentLoopLoading(A,o,h,Dy,p)),!A)return void(this.bufferFlushed=!0);const b=d&&A.start>d.end+o.targetduration;if(b||(null==d||!d.len)&&h.len){const t=this.getAppendedFrag(A.start,Dy);if(null===t)return;if(y||(y=!!t.gap||!!b&&0===d.len),b&&!y||y&&h.nextStart&&h.nextStart<t.end)return}this.loadFragment(A,n,g)}getMaxBufferLength(t){const e=super.getMaxBufferLength();return t?Math.min(Math.max(e,t),this.config.maxMaxBufferLength):e}onMediaDetaching(){this.videoBuffer=null,this.bufferFlushed=this.flushing=!1,super.onMediaDetaching()}onAudioTracksUpdated(t,{audioTracks:e}){this.resetTransmuxer(),this.levels=e.map((t=>new rb(t)))}onAudioTrackSwitching(t,e){const s=!!e.url;this.trackId=e.id;const{fragCurrent:i}=this;i&&(i.abortRequests(),this.removeUnbufferedFrags(i.start)),this.resetLoadingState(),s?this.setInterval(100):this.resetTransmuxer(),s?(this.switchingTrack=e,this.state=mv,this.flushAudioIfNeeded(e)):(this.switchingTrack=null,this.bufferedTrack=e,this.state=fv),this.tick()}onManifestLoading(){this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=this.flushing=!1,this.levels=this.mainDetails=this.waitingData=this.bufferedTrack=this.cachedTrackLoadedData=this.switchingTrack=null,this.startFragRequested=!1,this.trackId=this.videoTrackCC=this.waitingVideoCC=-1}onLevelLoaded(t,e){this.mainDetails=e.details,null!==this.cachedTrackLoadedData&&(this.hls.trigger(Eg.AUDIO_TRACK_LOADED,this.cachedTrackLoadedData),this.cachedTrackLoadedData=null)}onAudioTrackLoaded(t,e){var s;if(null==this.mainDetails)return void(this.cachedTrackLoadedData=e);const{levels:i}=this,{details:r,id:n}=e;if(!i)return void this.warn(`Audio tracks were reset while loading level ${n}`);this.log(`Audio track ${n} loaded [${r.startSN},${r.endSN}]${r.lastPartSn?`[part-${r.lastPartSn}-${r.lastPartIndex}]`:""},duration:${r.totalduration}`);const o=i[n];let a=0;if(r.live||null!=(s=o.details)&&s.live){this.checkLiveUpdate(r);const t=this.mainDetails;if(r.deltaUpdateFailed||!t)return;var h;if(!o.details&&r.hasProgramDateTime&&t.hasProgramDateTime)iv(r,t),a=r.fragments[0].start;else a=this.alignPlaylists(r,o.details,null==(h=this.levelLastLoaded)?void 0:h.details)}o.details=r,this.levelLastLoaded=o,this.startFragRequested||!this.mainDetails&&r.live||this.setStartPosition(this.mainDetails||r,a),this.state!==bv||this.waitForCdnTuneIn(r)||(this.state=mv),this.tick()}_handleFragmentLoadProgress(t){var e;const{frag:s,part:i,payload:r}=t,{config:n,trackId:o,levels:a}=this;if(!a)return void this.warn(`Audio tracks were reset while fragment load was in progress. Fragment ${s.sn} of level ${s.level} will not be buffered`);const h=a[o];if(!h)return void this.warn("Audio track is undefined on fragment load progress");const c=h.details;if(!c)return this.warn("Audio track details undefined on fragment load progress"),void this.removeUnbufferedFrags(s.start);const l=n.defaultAudioCodec||h.audioCodec||"mp4a.40.2";let d=this.transmuxer;d||(d=this.transmuxer=new xS(this.hls,Ly,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const u=this.initPTS[s.cc],p=null==(e=s.initSegment)?void 0:e.data;if(void 0!==u){const t=!1,e=i?i.index:-1,n=-1!==e,o=new Zb(s.level,s.sn,s.stats.chunkCount,r.byteLength,e,n);d.push(r,p,l,"",s,i,c.totalduration,t,o,u)}else{this.log(`Unknown video PTS for cc ${s.cc}, waiting for video PTS before demuxing audio frag ${s.sn} of [${c.startSN} ,${c.endSN}],track ${o}`);const{cache:t}=this.waitingData=this.waitingData||{frag:s,part:i,cache:new _v,complete:!1};t.push(new Uint8Array(r)),this.waitingVideoCC=this.videoTrackCC,this.state=Iv}}_handleFragmentLoadComplete(t){this.waitingData?this.waitingData.complete=!0:super._handleFragmentLoadComplete(t)}onBufferReset(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1}onBufferCreated(t,e){const s=e.tracks.audio;s&&(this.mediaBuffer=s.buffer||null),e.tracks.video&&(this.videoBuffer=e.tracks.video.buffer||null)}onFragBuffered(t,e){const{frag:s,part:i}=e;if(s.type===Ly)if(this.fragContextChanged(s))this.warn(`Fragment ${s.sn}${i?" p: "+i.index:""} of level ${s.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack?this.switchingTrack.name:"false"}`);else{if("initSegment"!==s.sn){this.fragPrevious=s;const t=this.switchingTrack;t&&(this.bufferedTrack=t,this.switchingTrack=null,this.hls.trigger(Eg.AUDIO_TRACK_SWITCHED,gg({},t)))}this.fragBufferedComplete(s,i)}else if(!this.loadedmetadata&&s.type===Dy){const t=this.videoBuffer||this.media;if(t){Xb.getBuffered(t).length&&(this.loadedmetadata=!0)}}}onError(t,e){var s;if(e.fatal)this.state=Ev;else switch(e.details){case Tg.FRAG_GAP:case Tg.FRAG_PARSING_ERROR:case Tg.FRAG_DECRYPT_ERROR:case Tg.FRAG_LOAD_ERROR:case Tg.FRAG_LOAD_TIMEOUT:case Tg.KEY_LOAD_ERROR:case Tg.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Ly,e);break;case Tg.AUDIO_TRACK_LOAD_ERROR:case Tg.AUDIO_TRACK_LOAD_TIMEOUT:case Tg.LEVEL_PARSING_ERROR:e.levelRetry||this.state!==bv||(null==(s=e.context)?void 0:s.type)!==Cy||(this.state=mv);break;case Tg.BUFFER_APPEND_ERROR:case Tg.BUFFER_FULL_ERROR:if(!e.parent||"audio"!==e.parent)return;if(e.details===Tg.BUFFER_APPEND_ERROR)return void this.resetLoadingState();this.reduceLengthAndFlushBuffer(e)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case Tg.INTERNAL_EXCEPTION:this.recoverWorkerError(e)}}onBufferFlushing(t,{type:e}){e!==Ug&&(this.flushing=!0)}onBufferFlushed(t,{type:e}){if(e!==Ug){this.flushing=!1,this.bufferFlushed=!0,this.state===wv&&(this.state=mv);const t=this.mediaBuffer||this.media;t&&(this.afterBufferFlushed(t,e,Ly),this.tick())}}_handleTransmuxComplete(t){var e;const s="audio",{hls:i}=this,{remuxResult:r,chunkMeta:n}=t,o=this.getCurrentContext(n);if(!o)return void this.resetWhenMissingContext(n);const{frag:a,part:h,level:c}=o,{details:l}=c,{audio:d,text:u,id3:p,initSegment:f}=r;if(!this.fragContextChanged(a)&&l){if(this.state=vv,this.switchingTrack&&d&&this.completeAudioSwitch(this.switchingTrack),null!=f&&f.tracks){const t=a.initSegment||a;this._bufferInitSegment(c,f.tracks,t,n),i.trigger(Eg.FRAG_PARSING_INIT_SEGMENT,{frag:t,id:s,tracks:f.tracks})}if(d){const{startPTS:t,endPTS:e,startDTS:s,endDTS:i}=d;h&&(h.elementaryStreams[Og]={startPTS:t,endPTS:e,startDTS:s,endDTS:i}),a.setElementaryStreamInfo(Og,t,e,s,i),this.bufferFragmentData(d,a,h,n)}if(null!=p&&null!=(e=p.samples)&&e.length){const t=bg({id:s,frag:a,details:l},p);i.trigger(Eg.FRAG_PARSING_METADATA,t)}if(u){const t=bg({id:s,frag:a,details:l},u);i.trigger(Eg.FRAG_PARSING_USERDATA,t)}}else this.fragmentTracker.removeFragment(a)}_bufferInitSegment(t,e,s,i){if(this.state!==vv)return;e.video&&delete e.video;const r=e.audio;if(!r)return;r.id="audio";const n=t.audioCodec;this.log(`Init audio buffer, container:${r.container}, codecs[level/parsed]=[${n}/${r.codec}]`),n&&1===n.split(",").length&&(r.levelCodec=n),this.hls.trigger(Eg.BUFFER_CODECS,e);const o=r.initSegment;if(null!=o&&o.byteLength){const t={type:"audio",frag:s,part:null,chunkMeta:i,parent:s.type,data:o};this.hls.trigger(Eg.BUFFER_APPENDING,t)}this.tickImmediate()}loadFragment(t,e,s){const i=this.fragmentTracker.getState(t);var r;if(this.fragCurrent=t,this.switchingTrack||i===Gb||i===Hb)if("initSegment"===t.sn)this._loadInitSegment(t,e);else if(null!=(r=e.details)&&r.live&&!this.initPTS[t.cc]){this.log(`Waiting for video PTS in continuity counter ${t.cc} of live stream before loading audio fragment ${t.sn} of level ${this.trackId}`),this.state=Iv;const s=this.mainDetails;s&&s.fragments[0].start!==e.details.fragments[0].start&&iv(e.details,s)}else this.startFragRequested=!0,super.loadFragment(t,e,s);else this.clearTrackerIfNeeded(t)}flushAudioIfNeeded(t){const{media:e,bufferedTrack:s}=this,i=null==s?void 0:s.attrs,r=t.attrs;e&&i&&(i.CHANNELS!==r.CHANNELS||s.name!==t.name||s.lang!==t.lang)&&(this.log("Switching audio track : flushing all audio"),super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null)}completeAudioSwitch(t){const{hls:e}=this;this.flushAudioIfNeeded(t),this.bufferedTrack=t,this.switchingTrack=null,e.trigger(Eg.AUDIO_TRACK_SWITCHED,gg({},t))}},audioTrackController:class extends Db{constructor(t){super(t,"[audio-track-controller]"),this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.registerListeners()}registerListeners(){const{hls:t}=this;t.on(Eg.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Eg.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Eg.LEVEL_LOADING,this.onLevelLoading,this),t.on(Eg.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(Eg.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(Eg.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(Eg.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Eg.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Eg.LEVEL_LOADING,this.onLevelLoading,this),t.off(Eg.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(Eg.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(Eg.ERROR,this.onError,this)}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,super.destroy()}onManifestLoading(){this.tracks=[],this.tracksInGroup=[],this.groupIds=null,this.currentTrack=null,this.trackId=-1,this.selectDefaultTrack=!0}onManifestParsed(t,e){this.tracks=e.audioTracks||[]}onAudioTrackLoaded(t,e){const{id:s,groupId:i,details:r}=e,n=this.tracksInGroup[s];if(!n||n.groupId!==i)return void this.warn(`Audio track with id:${s} and group:${i} not found in active group ${null==n?void 0:n.groupId}`);const o=n.details;n.details=e.details,this.log(`Audio track ${s} "${n.name}" lang:${n.lang} group:${i} loaded [${r.startSN}-${r.endSN}]`),s===this.trackId&&this.playlistLoaded(s,e,o)}onLevelLoading(t,e){this.switchLevel(e.level)}onLevelSwitching(t,e){this.switchLevel(e.level)}switchLevel(t){const e=this.hls.levels[t];if(!e)return;const s=e.audioGroups||null,i=this.groupIds;let r=this.currentTrack;if(!s||(null==i?void 0:i.length)!==(null==s?void 0:s.length)||null!=s&&s.some((t=>-1===(null==i?void 0:i.indexOf(t))))){this.groupIds=s,this.trackId=-1,this.currentTrack=null;const t=this.tracks.filter((t=>!s||-1!==s.indexOf(t.groupId)));if(t.length)this.selectDefaultTrack&&!t.some((t=>t.default))&&(this.selectDefaultTrack=!1),t.forEach(((t,e)=>{t.id=e}));else if(!r&&!this.tracksInGroup.length)return;this.tracksInGroup=t;const e=this.hls.config.audioPreference;if(!r&&e){const s=Nb(e,t,Vb);if(s>-1)r=t[s];else{const t=Nb(e,this.tracks);r=this.tracks[t]}}let i=this.findTrackId(r);-1===i&&r&&(i=this.findTrackId(null));const o={audioTracks:t};this.log(`Updating audio tracks, ${t.length} track(s) found in group(s): ${null==s?void 0:s.join(",")}`),this.hls.trigger(Eg.AUDIO_TRACKS_UPDATED,o);const a=this.trackId;if(-1!==i&&-1===a)this.setAudioTrack(i);else if(t.length&&-1===a){var n;const e=new Error(`No audio track selected for current audio group-ID(s): ${null==(n=this.groupIds)?void 0:n.join(",")} track count: ${t.length}`);this.warn(e.message),this.hls.trigger(Eg.ERROR,{type:Ig.MEDIA_ERROR,details:Tg.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:e})}}else this.shouldReloadPlaylist(r)&&this.setAudioTrack(this.trackId)}onError(t,e){!e.fatal&&e.context&&(e.context.type!==Cy||e.context.id!==this.trackId||this.groupIds&&-1===this.groupIds.indexOf(e.context.groupId)||(this.requestScheduled=-1,this.checkRetry(e)))}get allAudioTracks(){return this.tracks}get audioTracks(){return this.tracksInGroup}get audioTrack(){return this.trackId}set audioTrack(t){this.selectDefaultTrack=!1,this.setAudioTrack(t)}setAudioOption(t){const e=this.hls;if(e.config.audioPreference=t,t){const s=this.allAudioTracks;if(this.selectDefaultTrack=!1,s.length){const i=this.currentTrack;if(i&&jb(t,i,Vb))return i;const r=Nb(t,this.tracksInGroup,Vb);if(r>-1){const t=this.tracksInGroup[r];return this.setAudioTrack(r),t}if(i){let i=e.loadLevel;-1===i&&(i=e.firstAutoLevel);const r=function(t,e,s,i,r){const n=e[i],o=e.reduce(((t,e,s)=>{const i=e.uri;return(t[i]||(t[i]=[])).push(s),t}),{})[n.uri];o.length>1&&(i=Math.max.apply(Math,o));const a=n.videoRange,h=n.frameRate,c=n.codecSet.substring(0,4),l=zb(e,i,(e=>{if(e.videoRange!==a||e.frameRate!==h||e.codecSet.substring(0,4)!==c)return!1;const i=e.audioGroups,n=s.filter((t=>!i||-1!==i.indexOf(t.groupId)));return Nb(t,n,r)>-1}));return l>-1?l:zb(e,i,(e=>{const i=e.audioGroups,n=s.filter((t=>!i||-1!==i.indexOf(t.groupId)));return Nb(t,n,r)>-1}))}(t,e.levels,s,i,Vb);if(-1===r)return null;e.nextLoadLevel=r}if(t.channels||t.audioCodec){const e=Nb(t,s);if(e>-1)return s[e]}}}return null}setAudioTrack(t){const e=this.tracksInGroup;if(t<0||t>=e.length)return void this.warn(`Invalid audio track id: ${t}`);this.clearTimer(),this.selectDefaultTrack=!1;const s=this.currentTrack,i=e[t],r=i.details&&!i.details.live;if(t===this.trackId&&i===s&&r)return;if(this.log(`Switching to audio-track ${t} "${i.name}" lang:${i.lang} group:${i.groupId} channels:${i.channels}`),this.trackId=t,this.currentTrack=i,this.hls.trigger(Eg.AUDIO_TRACK_SWITCHING,gg({},i)),r)return;const n=this.switchParams(i.url,null==s?void 0:s.details,i.details);this.loadPlaylist(n)}findTrackId(t){const e=this.tracksInGroup;for(let s=0;s<e.length;s++){const i=e[s];if((!this.selectDefaultTrack||i.default)&&(!t||jb(t,i,Vb)))return s}if(t){const{name:s,lang:i,assocLang:r,characteristics:n,audioCodec:o,channels:a}=t;for(let t=0;t<e.length;t++){if(jb({name:s,lang:i,assocLang:r,characteristics:n,audioCodec:o,channels:a},e[t],Vb))return t}for(let s=0;s<e.length;s++){const i=e[s];if(BS(t.attrs,i.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return s}for(let s=0;s<e.length;s++){const i=e[s];if(BS(t.attrs,i.attrs,["LANGUAGE"]))return s}}return-1}loadPlaylist(t){const e=this.currentTrack;if(this.shouldLoadPlaylist(e)&&e){super.loadPlaylist();const s=e.id,i=e.groupId;let r=e.url;if(t)try{r=t.addDirectives(r)}catch(t){this.warn(`Could not construct new URL with HLS Delivery Directives: ${t}`)}this.log(`loading audio-track playlist ${s} "${e.name}" lang:${e.lang} group:${i}`),this.clearTimer(),this.hls.trigger(Eg.AUDIO_TRACK_LOADING,{url:r,id:s,groupId:i,deliveryDirectives:t||null})}}},emeController:Fw,cmcdController:class{constructor(t){this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.includeKeys=void 0,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=()=>{this.initialized&&(this.starved=!0),this.buffering=!0},this.onPlaying=()=>{this.initialized||(this.initialized=!0),this.buffering=!1},this.applyPlaylistData=t=>{try{this.apply(t,{ot:Uw.MANIFEST,su:!this.initialized})}catch(t){Dg.warn("Could not generate manifest CMCD data.",t)}},this.applyFragmentData=t=>{try{const e=t.frag,s=this.hls.levels[e.level],i=this.getObjectType(e),r={d:1e3*e.duration,ot:i};i!==Uw.VIDEO&&i!==Uw.AUDIO&&i!=Uw.MUXED||(r.br=s.bitrate/1e3,r.tb=this.getTopBandwidth(i)/1e3,r.bl=this.getBufferLength(i)),this.apply(t,r)}catch(t){Dg.warn("Could not generate segment CMCD data.",t)}},this.hls=t;const e=this.config=t.config,{cmcd:s}=e;null!=s&&(e.pLoader=this.createPlaylistLoader(),e.fLoader=this.createFragmentLoader(),this.sid=s.sessionId||function(){try{return crypto.randomUUID()}catch(t){try{const t=URL.createObjectURL(new Blob),e=t.toString();return URL.revokeObjectURL(t),e.slice(e.lastIndexOf("/")+1)}catch(t){let e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(t=>{const s=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?s:3&s|8).toString(16)}))}}}(),this.cid=s.contentId,this.useHeaders=!0===s.useHeaders,this.includeKeys=s.includeKeys,this.registerListeners())}registerListeners(){const t=this.hls;t.on(Eg.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Eg.MEDIA_DETACHED,this.onMediaDetached,this),t.on(Eg.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const t=this.hls;t.off(Eg.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Eg.MEDIA_DETACHED,this.onMediaDetached,this),t.off(Eg.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=null}onMediaAttached(t,e){this.media=e.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}onMediaDetached(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)}onBufferCreated(t,e){var s,i;this.audioBuffer=null==(s=e.tracks.audio)?void 0:s.buffer,this.videoBuffer=null==(i=e.tracks.video)?void 0:i.buffer}createData(){var t;return{v:1,sf:Nw.HLS,sid:this.sid,cid:this.cid,pr:null==(t=this.media)?void 0:t.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(t,e={}){bg(e,this.createData());const s=e.ot===Uw.INIT||e.ot===Uw.VIDEO||e.ot===Uw.MUXED;this.starved&&s&&(e.bs=!0,e.su=!0,this.starved=!1),null==e.su&&(e.su=this.buffering);const{includeKeys:i}=this;i&&(e=Object.keys(e).reduce(((t,s)=>(i.includes(s)&&(t[s]=e[s]),t)),{})),this.useHeaders?(t.headers||(t.headers={}),cE(t.headers,e)):t.url=dE(t.url,e)}getObjectType(t){const{type:e}=t;return"subtitle"===e?Uw.TIMED_TEXT:"initSegment"===t.sn?Uw.INIT:"audio"===e?Uw.AUDIO:"main"===e?this.hls.audioTracks.length?Uw.VIDEO:Uw.MUXED:void 0}getTopBandwidth(t){let e,s=0;const i=this.hls;if(t===Uw.AUDIO)e=i.audioTracks;else{const t=i.maxAutoLevel,s=t>-1?t+1:i.levels.length;e=i.levels.slice(0,s)}for(const t of e)t.bitrate>s&&(s=t.bitrate);return s>0?s:NaN}getBufferLength(t){const e=this.hls.media,s=t===Uw.AUDIO?this.audioBuffer:this.videoBuffer;if(!s||!e)return NaN;return 1e3*Xb.bufferInfo(s,e.currentTime,this.config.maxBufferHole).len}createPlaylistLoader(){const{pLoader:t}=this.config,e=this.applyPlaylistData,s=t||this.config.loader;return class{constructor(t){this.loader=void 0,this.loader=new s(t)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(t,s,i){e(t),this.loader.load(t,s,i)}}}createFragmentLoader(){const{fLoader:t}=this.config,e=this.applyFragmentData,s=t||this.config.loader;return class{constructor(t){this.loader=void 0,this.loader=new s(t)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(t,s,i){e(t),this.loader.load(t,s,i)}}}},contentSteeringController:class{constructor(t){this.hls=void 0,this.log=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this.pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=t,this.log=Dg.log.bind(Dg,"[content-steering]:"),this.registerListeners()}registerListeners(){const t=this.hls;t.on(Eg.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Eg.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(Eg.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Eg.ERROR,this.onError,this)}unregisterListeners(){const t=this.hls;t&&(t.off(Eg.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Eg.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(Eg.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Eg.ERROR,this.onError,this))}startLoad(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){const t=1e3*this.timeToLoad-(performance.now()-this.updated);if(t>0)return void this.scheduleRefresh(this.uri,t)}this.loadSteeringManifest(this.uri)}}stopLoad(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()}clearTimeout(){-1!==this.reloadTimer&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)}destroy(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}removeLevel(t){const e=this.levels;e&&(this.levels=e.filter((e=>e!==t)))}onManifestLoading(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}onManifestLoaded(t,e){const{contentSteering:s}=e;null!==s&&(this.pathwayId=s.pathwayId,this.uri=s.uri,this.started&&this.startLoad())}onManifestParsed(t,e){this.audioTracks=e.audioTracks,this.subtitleTracks=e.subtitleTracks}onError(t,e){const{errorAction:s}=e;if((null==s?void 0:s.action)===Ib&&s.flags===Cb){const t=this.levels;let i=this.pathwayPriority,r=this.pathwayId;if(e.context){const{groupId:s,pathwayId:i,type:n}=e.context;s&&t?r=this.getPathwayForGroupId(s,n,r):i&&(r=i)}r in this.penalizedPathways||(this.penalizedPathways[r]=performance.now()),!i&&t&&(i=t.reduce(((t,e)=>(-1===t.indexOf(e.pathwayId)&&t.push(e.pathwayId),t)),[])),i&&i.length>1&&(this.updatePathwayPriority(i),s.resolved=this.pathwayId!==r),s.resolved||Dg.warn(`Could not resolve ${e.details} ("${e.error.message}") with content-steering for Pathway: ${r} levels: ${t?t.length:t} priorities: ${JSON.stringify(i)} penalized: ${JSON.stringify(this.penalizedPathways)}`)}}filterParsedLevels(t){this.levels=t;let e=this.getLevelsForPathway(this.pathwayId);if(0===e.length){const s=t[0].pathwayId;this.log(`No levels found in Pathway ${this.pathwayId}. Setting initial Pathway to "${s}"`),e=this.getLevelsForPathway(s),this.pathwayId=s}return e.length!==t.length?(this.log(`Found ${e.length}/${t.length} levels in Pathway "${this.pathwayId}"`),e):t}getLevelsForPathway(t){return null===this.levels?[]:this.levels.filter((e=>t===e.pathwayId))}updatePathwayPriority(t){let e;this.pathwayPriority=t;const s=this.penalizedPathways,i=performance.now();Object.keys(s).forEach((t=>{i-s[t]>3e5&&delete s[t]}));for(let i=0;i<t.length;i++){const r=t[i];if(r in s)continue;if(r===this.pathwayId)return;const n=this.hls.nextLoadLevel,o=this.hls.levels[n];if(e=this.getLevelsForPathway(r),e.length>0){this.log(`Setting Pathway to "${r}"`),this.pathwayId=r,pb(e),this.hls.trigger(Eg.LEVELS_UPDATED,{levels:e});const t=this.hls.levels[n];o&&t&&this.levels&&(t.attrs["STABLE-VARIANT-ID"]!==o.attrs["STABLE-VARIANT-ID"]&&t.bitrate!==o.bitrate&&this.log(`Unstable Pathways change from bitrate ${o.bitrate} to ${t.bitrate}`),this.hls.nextLoadLevel=n);break}}}getPathwayForGroupId(t,e,s){const i=this.getLevelsForPathway(s).concat(this.levels||[]);for(let s=0;s<i.length;s++)if(e===Cy&&i[s].hasAudioGroup(t)||e===Ry&&i[s].hasSubtitleGroup(t))return i[s].pathwayId;return s}clonePathways(t){const e=this.levels;if(!e)return;const s={},i={};t.forEach((t=>{const{ID:r,"BASE-ID":n,"URI-REPLACEMENT":o}=t;if(e.some((t=>t.pathwayId===r)))return;const a=this.getLevelsForPathway(n).map((t=>{const e=new Pg(t.attrs);e["PATHWAY-ID"]=r;const n=e.AUDIO&&`${e.AUDIO}_clone_${r}`,a=e.SUBTITLES&&`${e.SUBTITLES}_clone_${r}`;n&&(s[e.AUDIO]=n,e.AUDIO=n),a&&(i[e.SUBTITLES]=a,e.SUBTITLES=a);const h=pE(t.uri,e["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",o),c=new rb({attrs:e,audioCodec:t.audioCodec,bitrate:t.bitrate,height:t.height,name:t.name,url:h,videoCodec:t.videoCodec,width:t.width});if(t.audioGroups)for(let e=1;e<t.audioGroups.length;e++)c.addGroupId("audio",`${t.audioGroups[e]}_clone_${r}`);if(t.subtitleGroups)for(let e=1;e<t.subtitleGroups.length;e++)c.addGroupId("text",`${t.subtitleGroups[e]}_clone_${r}`);return c}));e.push(...a),uE(this.audioTracks,s,o,r),uE(this.subtitleTracks,i,o,r)}))}loadSteeringManifest(t){const e=this.hls.config,s=e.loader;let i;this.loader&&this.loader.destroy(),this.loader=new s(e);try{i=new self.URL(t)}catch(e){return this.enabled=!1,void this.log(`Failed to parse Steering Manifest URI: ${t}`)}if("data:"!==i.protocol){const t=0|(this.hls.bandwidthEstimate||e.abrEwmaDefaultEstimate);i.searchParams.set("_HLS_pathway",this.pathwayId),i.searchParams.set("_HLS_throughput",""+t)}const r={responseType:"json",url:i.href},n=e.steeringManifestLoadPolicy.default,o=n.errorRetry||n.timeoutRetry||{},a={loadPolicy:n,timeout:n.maxLoadTimeMs,maxRetry:o.maxNumRetry||0,retryDelay:o.retryDelayMs||0,maxRetryDelay:o.maxRetryDelayMs||0},h={onSuccess:(t,e,s,r)=>{this.log(`Loaded steering manifest: "${i}"`);const n=t.data;if(1!==n.VERSION)return void this.log(`Steering VERSION ${n.VERSION} not supported!`);this.updated=performance.now(),this.timeToLoad=n.TTL;const{"RELOAD-URI":o,"PATHWAY-CLONES":a,"PATHWAY-PRIORITY":h}=n;if(o)try{this.uri=new self.URL(o,i).href}catch(t){return this.enabled=!1,void this.log(`Failed to parse Steering Manifest RELOAD-URI: ${o}`)}this.scheduleRefresh(this.uri||s.url),a&&this.clonePathways(a);const c={steeringManifest:n,url:i.toString()};this.hls.trigger(Eg.STEERING_MANIFEST_LOADED,c),h&&this.updatePathwayPriority(h)},onError:(t,e,s,i)=>{if(this.log(`Error loading steering manifest: ${t.code} ${t.text} (${e.url})`),this.stopLoad(),410===t.code)return this.enabled=!1,void this.log(`Steering manifest ${e.url} no longer available`);let r=1e3*this.timeToLoad;if(429!==t.code)this.scheduleRefresh(this.uri||e.url,r);else{const t=this.loader;if("function"==typeof(null==t?void 0:t.getResponseHeader)){const e=t.getResponseHeader("Retry-After");e&&(r=1e3*parseFloat(e))}this.log(`Steering manifest ${e.url} rate limited`)}},onTimeout:(t,e,s)=>{this.log(`Timeout loading steering manifest (${e.url})`),this.scheduleRefresh(this.uri||e.url)}};this.log(`Requesting steering manifest: ${i}`),this.loader.load(r,a,h)}scheduleRefresh(t,e=1e3*this.timeToLoad){this.clearTimeout(),this.reloadTimer=self.setTimeout((()=>{var e;const s=null==(e=this.hls)?void 0:e.media;!s||s.ended?this.scheduleRefresh(t,1e3*this.timeToLoad):this.loadSteeringManifest(t)}),e)}}});function EE(t){return t&&"object"==typeof t?Array.isArray(t)?t.map(EE):Object.keys(t).reduce(((e,s)=>(e[s]=EE(t[s]),e)),{}):t}function IE(t){const e=t.loader;if(e!==AE&&e!==mE)Dg.log("[config]: Custom loader detected, cannot enable progressive streaming"),t.progressive=!1;else{(function(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(t){}return!1})()&&(t.loader=AE,t.progressive=!0,t.enableSoftwareAES=!0,Dg.log("[config]: Progressive streaming enabled, using FetchLoader"))}}let TE;class kE extends Db{constructor(t,e){super(t,"[level-controller]"),this._levels=[],this._firstLevel=-1,this._maxAutoLevel=-1,this._startLevel=void 0,this.currentLevel=null,this.currentLevelIndex=-1,this.manualLevelIndex=-1,this.steering=void 0,this.onParsedComplete=void 0,this.steering=e,this._registerListeners()}_registerListeners(){const{hls:t}=this;t.on(Eg.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Eg.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(Eg.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Eg.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(Eg.FRAG_BUFFERED,this.onFragBuffered,this),t.on(Eg.ERROR,this.onError,this)}_unregisterListeners(){const{hls:t}=this;t.off(Eg.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Eg.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(Eg.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Eg.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(Eg.FRAG_BUFFERED,this.onFragBuffered,this),t.off(Eg.ERROR,this.onError,this)}destroy(){this._unregisterListeners(),this.steering=null,this.resetLevels(),super.destroy()}stopLoad(){this._levels.forEach((t=>{t.loadError=0,t.fragmentError=0})),super.stopLoad()}resetLevels(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1}onManifestLoading(t,e){this.resetLevels()}onManifestLoaded(t,e){const s=this.hls.config.preferManagedMediaSource,i=[],r={},n={};let o=!1,a=!1,h=!1;e.levels.forEach((t=>{var e,c;const l=t.attrs;let{audioCodec:d,videoCodec:u}=t;-1!==(null==(e=d)?void 0:e.indexOf("mp4a.40.34"))&&(TE||(TE=/chrome|firefox/i.test(navigator.userAgent)),TE&&(t.audioCodec=d=void 0)),d&&(t.audioCodec=d=dy(d,s)),0===(null==(c=u)?void 0:c.indexOf("avc1"))&&(u=t.videoCodec=function(t){const e=t.split(",");for(let t=0;t<e.length;t++){const s=e[t].split(".");if(s.length>2){let i=s.shift()+".";i+=parseInt(s.shift()).toString(16),i+=("000"+parseInt(s.shift()).toString(16)).slice(-4),e[t]=i}}return e.join(",")}(u));const{width:p,height:f,unknownCodecs:m}=t;if(o||(o=!(!p||!f)),a||(a=!!u),h||(h=!!d),null!=m&&m.length||d&&!ry(d,"audio",s)||u&&!ry(u,"video",s))return;const{CODECS:g,"FRAME-RATE":A,"HDCP-LEVEL":y,"PATHWAY-ID":b,RESOLUTION:v,"VIDEO-RANGE":S}=l,w=`${`${b||"."}-`}${t.bitrate}-${v}-${A}-${g}-${S}-${y}`;if(r[w])if(r[w].uri===t.url||t.attrs["PATHWAY-ID"])r[w].addGroupId("audio",l.AUDIO),r[w].addGroupId("text",l.SUBTITLES);else{const e=n[w]+=1;t.attrs["PATHWAY-ID"]=new Array(e+1).join(".");const s=new rb(t);r[w]=s,i.push(s)}else{const e=new rb(t);r[w]=e,n[w]=1,i.push(e)}})),this.filterAndSortMediaOptions(i,e,o,a,h)}filterAndSortMediaOptions(t,e,s,i,r){let n=[],o=[],a=t;if((s||i)&&r&&(a=a.filter((({videoCodec:t,videoRange:e,width:s,height:i})=>{return(!!t||!(!s||!i))&&(!!(r=e)&&Zy.indexOf(r)>-1);var r}))),0===a.length)return void Promise.resolve().then((()=>{if(this.hls){e.levels.length&&this.warn(`One or more CODECS in variant not supported: ${JSON.stringify(e.levels[0].attrs)}`);const t=new Error("no level with compatible codecs found in manifest");this.hls.trigger(Eg.ERROR,{type:Ig.MEDIA_ERROR,details:Tg.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:e.url,error:t,reason:t.message})}}));if(e.audioTracks){const{preferManagedMediaSource:t}=this.hls.config;n=e.audioTracks.filter((e=>!e.audioCodec||ry(e.audioCodec,"audio",t))),_E(n)}e.subtitles&&(o=e.subtitles,_E(o));const h=a.slice(0);a.sort(((t,e)=>{if(t.attrs["HDCP-LEVEL"]!==e.attrs["HDCP-LEVEL"])return(t.attrs["HDCP-LEVEL"]||"")>(e.attrs["HDCP-LEVEL"]||"")?1:-1;if(s&&t.height!==e.height)return t.height-e.height;if(t.frameRate!==e.frameRate)return t.frameRate-e.frameRate;if(t.videoRange!==e.videoRange)return Zy.indexOf(t.videoRange)-Zy.indexOf(e.videoRange);if(t.videoCodec!==e.videoCodec){const s=ay(t.videoCodec),i=ay(e.videoCodec);if(s!==i)return i-s}if(t.uri===e.uri&&t.codecSet!==e.codecSet){const s=hy(t.codecSet),i=hy(e.codecSet);if(s!==i)return i-s}return t.averageBitrate!==e.averageBitrate?t.averageBitrate-e.averageBitrate:0}));let c=h[0];if(this.steering&&(a=this.steering.filterParsedLevels(a),a.length!==h.length))for(let t=0;t<h.length;t++)if(h[t].pathwayId===a[0].pathwayId){c=h[t];break}this._levels=a;for(let t=0;t<a.length;t++)if(a[t]===c){var l;this._firstLevel=t;const e=c.bitrate,s=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${a.length} level(s) found, first bitrate: ${e}`),void 0===(null==(l=this.hls.userConfig)?void 0:l.abrEwmaDefaultEstimate)){const t=Math.min(e,this.hls.config.abrEwmaDefaultEstimateMax);t>s&&s===wE.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=t)}break}const d=r&&!i,u={levels:a,audioTracks:n,subtitleTracks:o,sessionData:e.sessionData,sessionKeys:e.sessionKeys,firstLevel:this._firstLevel,stats:e.stats,audio:r,video:i,altAudio:!d&&n.some((t=>!!t.url))};this.hls.trigger(Eg.MANIFEST_PARSED,u),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}get levels(){return 0===this._levels.length?null:this._levels}get level(){return this.currentLevelIndex}set level(t){const e=this._levels;if(0===e.length)return;if(t<0||t>=e.length){const s=new Error("invalid level idx"),i=t<0;if(this.hls.trigger(Eg.ERROR,{type:Ig.OTHER_ERROR,details:Tg.LEVEL_SWITCH_ERROR,level:t,fatal:i,error:s,reason:s.message}),i)return;t=Math.min(t,e.length-1)}const s=this.currentLevelIndex,i=this.currentLevel,r=i?i.attrs["PATHWAY-ID"]:void 0,n=e[t],o=n.attrs["PATHWAY-ID"];if(this.currentLevelIndex=t,this.currentLevel=n,s===t&&n.details&&i&&r===o)return;this.log(`Switching to level ${t} (${n.height?n.height+"p ":""}${n.videoRange?n.videoRange+" ":""}${n.codecSet?n.codecSet+" ":""}@${n.bitrate})${o?" with Pathway "+o:""} from level ${s}${r?" with Pathway "+r:""}`);const a={level:t,attrs:n.attrs,details:n.details,bitrate:n.bitrate,averageBitrate:n.averageBitrate,maxBitrate:n.maxBitrate,realBitrate:n.realBitrate,width:n.width,height:n.height,codecSet:n.codecSet,audioCodec:n.audioCodec,videoCodec:n.videoCodec,audioGroups:n.audioGroups,subtitleGroups:n.subtitleGroups,loaded:n.loaded,loadError:n.loadError,fragmentError:n.fragmentError,name:n.name,id:n.id,uri:n.uri,url:n.url,urlId:0,audioGroupIds:n.audioGroupIds,textGroupIds:n.textGroupIds};this.hls.trigger(Eg.LEVEL_SWITCHING,a);const h=n.details;if(!h||h.live){const t=this.switchParams(n.uri,null==i?void 0:i.details,h);this.loadPlaylist(t)}}get manualLevel(){return this.manualLevelIndex}set manualLevel(t){this.manualLevelIndex=t,void 0===this._startLevel&&(this._startLevel=t),-1!==t&&(this.level=t)}get firstLevel(){return this._firstLevel}set firstLevel(t){this._firstLevel=t}get startLevel(){if(void 0===this._startLevel){const t=this.hls.config.startLevel;return void 0!==t?t:this.hls.firstAutoLevel}return this._startLevel}set startLevel(t){this._startLevel=t}onError(t,e){!e.fatal&&e.context&&e.context.type===_y&&e.context.level===this.level&&this.checkRetry(e)}onFragBuffered(t,{frag:e}){if(void 0!==e&&e.type===Dy){const t=e.elementaryStreams;if(!Object.keys(t).some((e=>!!t[e])))return;const s=this._levels[e.level];null!=s&&s.loadError&&(this.log(`Resetting level error count of ${s.loadError} on frag buffered`),s.loadError=0)}}onLevelLoaded(t,e){var s;const{level:i,details:r}=e,n=this._levels[i];var o;if(!n)return this.warn(`Invalid level index ${i}`),void(null!=(o=e.deliveryDirectives)&&o.skip&&(r.deltaUpdateFailed=!0));i===this.currentLevelIndex?(0===n.fragmentError&&(n.loadError=0),this.playlistLoaded(i,e,n.details)):null!=(s=e.deliveryDirectives)&&s.skip&&(r.deltaUpdateFailed=!0)}loadPlaylist(t){super.loadPlaylist();const e=this.currentLevelIndex,s=this.currentLevel;if(s&&this.shouldLoadPlaylist(s)){let i=s.uri;if(t)try{i=t.addDirectives(i)}catch(t){this.warn(`Could not construct new URL with HLS Delivery Directives: ${t}`)}const r=s.attrs["PATHWAY-ID"];this.log(`Loading level index ${e}${void 0!==(null==t?void 0:t.msn)?" at sn "+t.msn+" part "+t.part:""} with${r?" Pathway "+r:""} ${i}`),this.clearTimer(),this.hls.trigger(Eg.LEVEL_LOADING,{url:i,level:e,pathwayId:s.attrs["PATHWAY-ID"],id:0,deliveryDirectives:t||null})}}get nextLoadLevel(){return-1!==this.manualLevelIndex?this.manualLevelIndex:this.hls.nextAutoLevel}set nextLoadLevel(t){this.level=t,-1===this.manualLevelIndex&&(this.hls.nextAutoLevel=t)}removeLevel(t){var e;const s=this._levels.filter(((e,s)=>s!==t||(this.steering&&this.steering.removeLevel(e),e===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,e.details&&e.details.fragments.forEach((t=>t.level=-1))),!1)));pb(s),this._levels=s,this.currentLevelIndex>-1&&null!=(e=this.currentLevel)&&e.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.hls.trigger(Eg.LEVELS_UPDATED,{levels:s})}onLevelsUpdated(t,{levels:e}){this._levels=e}checkMaxAutoUpdated(){const{autoLevelCapping:t,maxAutoLevel:e,maxHdcpLevel:s}=this.hls;this._maxAutoLevel!==e&&(this._maxAutoLevel=e,this.hls.trigger(Eg.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:t,levels:this.levels,maxAutoLevel:e,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:s}))}}function _E(t){const e={};t.forEach((t=>{const s=t.groupId||"";t.id=e[s]=e[s]||0,e[s]++}))}class CE{constructor(t){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=t}abort(t){for(const s in this.keyUriToKeyInfo){const i=this.keyUriToKeyInfo[s].loader;if(i){var e;if(t&&t!==(null==(e=i.context)?void 0:e.frag.type))return;i.abort()}}}detach(){for(const t in this.keyUriToKeyInfo){const e=this.keyUriToKeyInfo[t];(e.mediaKeySessionContext||e.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[t]}}destroy(){this.detach();for(const t in this.keyUriToKeyInfo){const e=this.keyUriToKeyInfo[t].loader;e&&e.destroy()}this.keyUriToKeyInfo={}}createKeyLoadError(t,e=Tg.KEY_LOAD_ERROR,s,i,r){return new hv({type:Ig.NETWORK_ERROR,details:e,fatal:!1,frag:t,response:r,error:s,networkDetails:i})}loadClear(t,e){if(this.emeController&&this.config.emeEnabled){const{sn:s,cc:i}=t;for(let t=0;t<e.length;t++){const r=e[t];if(i<=r.cc&&("initSegment"===s||"initSegment"===r.sn||s<r.sn)){this.emeController.selectKeySystemFormat(r).then((t=>{r.setKeyFormat(t)}));break}}}}load(t){return!t.decryptdata&&t.encrypted&&this.emeController?this.emeController.selectKeySystemFormat(t).then((e=>this.loadInternal(t,e))):this.loadInternal(t)}loadInternal(t,e){var s,i;e&&t.setKeyFormat(e);const r=t.decryptdata;if(!r){const s=new Error(e?`Expected frag.decryptdata to be defined after setting format ${e}`:"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(t,Tg.KEY_LOAD_ERROR,s))}const n=r.uri;if(!n)return Promise.reject(this.createKeyLoadError(t,Tg.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${n}"`)));let o=this.keyUriToKeyInfo[n];if(null!=(s=o)&&s.decryptdata.key)return r.key=o.decryptdata.key,Promise.resolve({frag:t,keyInfo:o});var a;if(null!=(i=o)&&i.keyLoadPromise)switch(null==(a=o.mediaKeySessionContext)?void 0:a.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return o.keyLoadPromise.then((e=>(r.key=e.keyInfo.decryptdata.key,{frag:t,keyInfo:o})))}switch(o=this.keyUriToKeyInfo[n]={decryptdata:r,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},r.method){case"ISO-23001-7":case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return"identity"===r.keyFormat?this.loadKeyHTTP(o,t):this.loadKeyEME(o,t);case"AES-128":return this.loadKeyHTTP(o,t);default:return Promise.reject(this.createKeyLoadError(t,Tg.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${r.method}"`)))}}loadKeyEME(t,e){const s={frag:e,keyInfo:t};if(this.emeController&&this.config.emeEnabled){const e=this.emeController.loadKey(s);if(e)return(t.keyLoadPromise=e.then((e=>(t.mediaKeySessionContext=e,s)))).catch((e=>{throw t.keyLoadPromise=null,e}))}return Promise.resolve(s)}loadKeyHTTP(t,e){const s=this.config,i=new(0,s.loader)(s);return e.keyLoader=t.loader=i,t.keyLoadPromise=new Promise(((r,n)=>{const o={keyInfo:t,frag:e,responseType:"arraybuffer",url:t.decryptdata.uri},a=s.keyLoadPolicy.default,h={loadPolicy:a,timeout:a.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},c={onSuccess:(t,e,s,i)=>{const{frag:o,keyInfo:a,url:h}=s;if(!o.decryptdata||a!==this.keyUriToKeyInfo[h])return n(this.createKeyLoadError(o,Tg.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),i));a.decryptdata.key=o.decryptdata.key=new Uint8Array(t.data),o.keyLoader=null,a.loader=null,r({frag:o,keyInfo:a})},onError:(t,s,i,r)=>{this.resetLoader(s),n(this.createKeyLoadError(e,Tg.KEY_LOAD_ERROR,new Error(`HTTP Error ${t.code} loading key ${t.text}`),i,gg({url:o.url,data:void 0},t)))},onTimeout:(t,s,i)=>{this.resetLoader(s),n(this.createKeyLoadError(e,Tg.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),i))},onAbort:(t,s,i)=>{this.resetLoader(s),n(this.createKeyLoadError(e,Tg.INTERNAL_ABORTED,new Error("key loading aborted"),i))}};i.load(o,h,c)}))}resetLoader(t){const{frag:e,keyInfo:s,url:i}=t,r=s.loader;e.keyLoader===r&&(e.keyLoader=null,s.loader=null),delete this.keyUriToKeyInfo[i],r&&r.destroy()}}function RE(){return self.SourceBuffer||self.WebKitSourceBuffer}function DE(){if(!sy())return!1;const t=RE();return!t||t.prototype&&"function"==typeof t.prototype.appendBuffer&&"function"==typeof t.prototype.remove}class LE{constructor(t,e,s,i){this.config=void 0,this.media=null,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=t,this.media=e,this.fragmentTracker=s,this.hls=i}destroy(){this.media=null,this.hls=this.fragmentTracker=null}poll(t,e){const{config:s,media:i,stalled:r}=this;if(null===i)return;const{currentTime:n,seeking:o}=i,a=this.seeking&&!o,h=!this.seeking&&o;if(this.seeking=o,n!==t){if(this.moved=!0,o||(this.nudgeRetry=0),null!==r){if(this.stallReported){const t=self.performance.now()-r;Dg.warn(`playback not stuck anymore @${n}, after ${Math.round(t)}ms`),this.stallReported=!1}this.stalled=null}return}if(h||a)return void(this.stalled=null);if(i.paused&&!o||i.ended||0===i.playbackRate||!Xb.getBuffered(i).length)return void(this.nudgeRetry=0);const c=Xb.bufferInfo(i,n,0),l=c.nextStart||0;if(o){const t=c.len>2,s=!l||e&&e.start<=n||l-n>2&&!this.fragmentTracker.getPartialFragment(n);if(t||s)return;this.moved=!1}if(!this.moved&&null!==this.stalled){var d;if(!(c.len>0)&&!l)return;const t=Math.max(l,c.start||0)-n,e=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,s=(null==e||null==(d=e.details)?void 0:d.live)?2*e.details.targetduration:2,r=this.fragmentTracker.getPartialFragment(n);if(t>0&&(t<=s||r))return void(i.paused||this._trySkipBufferHole(r))}const u=self.performance.now();if(null===r)return void(this.stalled=u);const p=u-r;if(!o&&p>=250&&(this._reportStall(c),!this.media))return;const f=Xb.bufferInfo(i,n,s.maxBufferHole);this._tryFixBufferStall(f,p)}_tryFixBufferStall(t,e){const{config:s,fragmentTracker:i,media:r}=this;if(null===r)return;const n=r.currentTime,o=i.getPartialFragment(n);if(o){if(this._trySkipBufferHole(o)||!this.media)return}(t.len>s.maxBufferHole||t.nextStart&&t.nextStart-n<s.maxBufferHole)&&e>1e3*s.highBufferWatchdogPeriod&&(Dg.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())}_reportStall(t){const{hls:e,media:s,stallReported:i}=this;if(!i&&s){this.stallReported=!0;const i=new Error(`Playback stalling at @${s.currentTime} due to low buffer (${JSON.stringify(t)})`);Dg.warn(i.message),e.trigger(Eg.ERROR,{type:Ig.MEDIA_ERROR,details:Tg.BUFFER_STALLED_ERROR,fatal:!1,error:i,buffer:t.len})}}_trySkipBufferHole(t){const{config:e,hls:s,media:i}=this;if(null===i)return 0;const r=i.currentTime,n=Xb.bufferInfo(i,r,0),o=r<n.start?n.start:n.nextStart;if(o){const a=n.len<=e.maxBufferHole,h=n.len>0&&n.len<1&&i.readyState<3,c=o-r;if(c>0&&(a||h)){if(c>e.maxBufferHole){const{fragmentTracker:e}=this;let s=!1;if(0===r){const t=e.getAppendedFrag(0,Dy);t&&o<t.end&&(s=!0)}if(!s){const s=t||e.getAppendedFrag(r,Dy);if(s){let t=!1,i=s.end;for(;i<o;){const s=e.getPartialFragment(i);if(!s){t=!0;break}i+=s.duration}if(t)return 0}}}const n=Math.max(o+.05,r+.1);if(Dg.warn(`skipping hole, adjusting currentTime from ${r} to ${n}`),this.moved=!0,this.stalled=null,i.currentTime=n,t&&!t.gap){const e=new Error(`fragment loaded with buffer holes, seeking from ${r} to ${n}`);s.trigger(Eg.ERROR,{type:Ig.MEDIA_ERROR,details:Tg.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:e,reason:e.message,frag:t})}return n}}return 0}_tryNudgeBuffer(){const{config:t,hls:e,media:s,nudgeRetry:i}=this;if(null===s)return;const r=s.currentTime;if(this.nudgeRetry++,i<t.nudgeMaxRetry){const n=r+(i+1)*t.nudgeOffset,o=new Error(`Nudging 'currentTime' from ${r} to ${n}`);Dg.warn(o.message),s.currentTime=n,e.trigger(Eg.ERROR,{type:Ig.MEDIA_ERROR,details:Tg.BUFFER_NUDGE_ON_STALL,error:o,fatal:!1})}else{const s=new Error(`Playhead still not moving while enough data buffered @${r} after ${t.nudgeMaxRetry} nudges`);Dg.error(s.message),e.trigger(Eg.ERROR,{type:Ig.MEDIA_ERROR,details:Tg.BUFFER_STALLED_ERROR,error:s,fatal:!0})}}}class xE extends kv{constructor(t,e,s){super(t,e,s,"[stream-controller]",Dy),this.audioCodecSwap=!1,this.gapController=null,this.level=-1,this._forceStartLoad=!1,this.altAudio=!1,this.audioOnly=!1,this.fragPlaying=null,this.onvplaying=null,this.onvseeked=null,this.fragLastKbps=0,this.couldBacktrack=!1,this.backtrackFragment=null,this.audioCodecSwitch=!1,this.videoBuffer=null,this._registerListeners()}_registerListeners(){const{hls:t}=this;t.on(Eg.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Eg.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Eg.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Eg.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Eg.LEVEL_LOADING,this.onLevelLoading,this),t.on(Eg.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Eg.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.on(Eg.ERROR,this.onError,this),t.on(Eg.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(Eg.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.on(Eg.BUFFER_CREATED,this.onBufferCreated,this),t.on(Eg.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(Eg.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(Eg.FRAG_BUFFERED,this.onFragBuffered,this)}_unregisterListeners(){const{hls:t}=this;t.off(Eg.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Eg.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Eg.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Eg.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Eg.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Eg.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.off(Eg.ERROR,this.onError,this),t.off(Eg.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(Eg.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.off(Eg.BUFFER_CREATED,this.onBufferCreated,this),t.off(Eg.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(Eg.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(Eg.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this._unregisterListeners(),super.onHandlerDestroying()}startLoad(t){if(this.levels){const{lastCurrentTime:e,hls:s}=this;if(this.stopLoad(),this.setInterval(100),this.level=-1,!this.startFragRequested){let t=s.startLevel;-1===t&&(s.config.testBandwidth&&this.levels.length>1?(t=0,this.bitrateTest=!0):t=s.firstAutoLevel),s.nextLoadLevel=t,this.level=s.loadLevel,this.loadedmetadata=!1}e>0&&-1===t&&(this.log(`Override startPosition with lastCurrentTime @${e.toFixed(3)}`),t=e),this.state=mv,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=t,this.tick()}else this._forceStartLoad=!0,this.state=fv}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case Tv:{const{levels:t,level:e}=this,s=null==t?void 0:t[e],i=null==s?void 0:s.details;if(i&&(!i.live||this.levelLastLoaded===s)){if(this.waitForCdnTuneIn(i))break;this.state=mv;break}if(this.hls.nextLoadLevel!==this.level){this.state=mv;break}break}case yv:{var t;const e=self.performance.now(),s=this.retryDate;if(!s||e>=s||null!=(t=this.media)&&t.seeking){const{levels:t,level:e}=this,s=null==t?void 0:t[e];this.resetStartWhenNotLoaded(s||null),this.state=mv}}}this.state===mv&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){super.onTickEnd(),this.checkBuffer(),this.checkFragmentChanged()}doTickIdle(){const{hls:t,levelLastLoaded:e,levels:s,media:i}=this;if(null===e||!i&&(this.startFragRequested||!t.config.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;const r=t.nextLoadLevel;if(null==s||!s[r])return;const n=s[r],o=this.getMainFwdBufferInfo();if(null===o)return;const a=this.getLevelDetails();if(a&&this._streamEnded(o,a)){const t={};return this.altAudio&&(t.type="video"),this.hls.trigger(Eg.BUFFER_EOS,t),void(this.state=wv)}t.loadLevel!==r&&-1===t.manualLevel&&this.log(`Adapting to level ${r} from level ${this.level}`),this.level=t.nextLoadLevel=r;const h=n.details;if(!h||this.state===Tv||h.live&&this.levelLastLoaded!==n)return this.level=r,void(this.state=Tv);const c=o.len,l=this.getMaxBufferLength(n.maxBitrate);if(c>=l)return;this.backtrackFragment&&this.backtrackFragment.start>o.end&&(this.backtrackFragment=null);const d=this.backtrackFragment?this.backtrackFragment.start:o.end;let u=this.getNextFragment(d,h);if(this.couldBacktrack&&!this.fragPrevious&&u&&"initSegment"!==u.sn&&this.fragmentTracker.getState(u)!==Kb){var p;const t=(null!=(p=this.backtrackFragment)?p:u).sn-h.startSN,e=h.fragments[t-1];e&&u.cc===e.cc&&(u=e,this.fragmentTracker.removeFragment(e))}else this.backtrackFragment&&o.len&&(this.backtrackFragment=null);if(u&&this.isLoopLoading(u,d)){if(!u.gap){const t=this.audioOnly&&!this.altAudio?Og:Ug,e=(t===Ug?this.videoBuffer:this.mediaBuffer)||this.media;e&&this.afterBufferFlushed(e,t,Dy)}u=this.getNextFragmentLoopLoading(u,h,o,Dy,l)}u&&(!u.initSegment||u.initSegment.data||this.bitrateTest||(u=u.initSegment),this.loadFragment(u,n,d))}loadFragment(t,e,s){const i=this.fragmentTracker.getState(t);this.fragCurrent=t,i===Gb||i===Hb?"initSegment"===t.sn?this._loadInitSegment(t,e):this.bitrateTest?(this.log(`Fragment ${t.sn} of level ${t.level} is being downloaded to test bitrate and will not be buffered`),this._loadBitrateTestFrag(t,e)):(this.startFragRequested=!0,super.loadFragment(t,e,s)):this.clearTrackerIfNeeded(t)}getBufferedFrag(t){return this.fragmentTracker.getBufferedFrag(t,Dy)}followingBufferedFrag(t){return t?this.getBufferedFrag(t.end+.5):null}immediateLevelSwitch(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}nextLevelSwitch(){const{levels:t,media:e}=this;if(null!=e&&e.readyState){let s;const i=this.getAppendedFrag(e.currentTime);i&&i.start>1&&this.flushMainBuffer(0,i.start-1);const r=this.getLevelDetails();if(null!=r&&r.live){const t=this.getMainFwdBufferInfo();if(!t||t.len<2*r.targetduration)return}if(!e.paused&&t){const e=t[this.hls.nextLoadLevel],i=this.fragLastKbps;s=i&&this.fragCurrent?this.fragCurrent.duration*e.maxBitrate/(1e3*i)+1:0}else s=0;const n=this.getBufferedFrag(e.currentTime+s);if(n){const t=this.followingBufferedFrag(n);if(t){this.abortCurrentFrag();const e=t.maxStartPTS?t.maxStartPTS:t.start,s=t.duration,i=Math.max(n.end,e+Math.min(Math.max(s-this.config.maxFragLookUpTolerance,s*(this.couldBacktrack?.5:.125)),s*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(i,Number.POSITIVE_INFINITY)}}}}abortCurrentFrag(){const t=this.fragCurrent;switch(this.fragCurrent=null,this.backtrackFragment=null,t&&(t.abortRequests(),this.fragmentTracker.removeFragment(t)),this.state){case gv:case Av:case yv:case vv:case Sv:this.state=mv}this.nextLoadPosition=this.getLoadPosition()}flushMainBuffer(t,e){super.flushMainBuffer(t,e,this.altAudio?"video":null)}onMediaAttached(t,e){super.onMediaAttached(t,e);const s=e.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),s.addEventListener("playing",this.onvplaying),s.addEventListener("seeked",this.onvseeked),this.gapController=new LE(this.config,s,this.fragmentTracker,this.hls)}onMediaDetaching(){const{media:t}=this;t&&this.onvplaying&&this.onvseeked&&(t.removeEventListener("playing",this.onvplaying),t.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),super.onMediaDetaching()}onMediaPlaying(){this.tick()}onMediaSeeked(){const t=this.media,e=t?t.currentTime:null;vg(e)&&this.log(`Media seeked to ${e.toFixed(3)}`);const s=this.getMainFwdBufferInfo();null!==s&&0!==s.len?this.tick():this.warn(`Main forward buffer length on "seeked" event ${s?s.len:"empty"})`)}onManifestLoading(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(Eg.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=!1,this.startPosition=this.lastCurrentTime=this.fragLastKbps=0,this.levels=this.fragPlaying=this.backtrackFragment=this.levelLastLoaded=null,this.altAudio=this.audioOnly=this.startFragRequested=!1}onManifestParsed(t,e){let s=!1,i=!1;e.levels.forEach((t=>{const e=t.audioCodec;e&&(s=s||-1!==e.indexOf("mp4a.40.2"),i=i||-1!==e.indexOf("mp4a.40.5"))})),this.audioCodecSwitch=s&&i&&!function(){var t;const e=RE();return"function"==typeof(null==e||null==(t=e.prototype)?void 0:t.changeType)}(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=e.levels,this.startFragRequested=!1}onLevelLoading(t,e){const{levels:s}=this;if(!s||this.state!==mv)return;const i=s[e.level];(!i.details||i.details.live&&this.levelLastLoaded!==i||this.waitForCdnTuneIn(i.details))&&(this.state=Tv)}onLevelLoaded(t,e){var s;const{levels:i}=this,r=e.level,n=e.details,o=n.totalduration;if(!i)return void this.warn(`Levels were reset while loading level ${r}`);this.log(`Level ${r} loaded [${n.startSN},${n.endSN}]${n.lastPartSn?`[part-${n.lastPartSn}-${n.lastPartIndex}]`:""}, cc [${n.startCC}, ${n.endCC}] duration:${o}`);const a=i[r],h=this.fragCurrent;!h||this.state!==Av&&this.state!==yv||h.level!==e.level&&h.loader&&this.abortCurrentFrag();let c=0;if(n.live||null!=(s=a.details)&&s.live){var l;if(this.checkLiveUpdate(n),n.deltaUpdateFailed)return;c=this.alignPlaylists(n,a.details,null==(l=this.levelLastLoaded)?void 0:l.details)}if(a.details=n,this.levelLastLoaded=a,this.hls.trigger(Eg.LEVEL_UPDATED,{details:n,level:r}),this.state===Tv){if(this.waitForCdnTuneIn(n))return;this.state=mv}this.startFragRequested?n.live&&this.synchronizeToLiveEdge(n):this.setStartPosition(n,c),this.tick()}_handleFragmentLoadProgress(t){var e;const{frag:s,part:i,payload:r}=t,{levels:n}=this;if(!n)return void this.warn(`Levels were reset while fragment load was in progress. Fragment ${s.sn} of level ${s.level} will not be buffered`);const o=n[s.level],a=o.details;if(!a)return this.warn(`Dropping fragment ${s.sn} of level ${s.level} after level details were reset`),void this.fragmentTracker.removeFragment(s);const h=o.videoCodec,c=a.PTSKnown||!a.live,l=null==(e=s.initSegment)?void 0:e.data,d=this._getAudioCodec(o),u=this.transmuxer=this.transmuxer||new xS(this.hls,Dy,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),p=i?i.index:-1,f=-1!==p,m=new Zb(s.level,s.sn,s.stats.chunkCount,r.byteLength,p,f),g=this.initPTS[s.cc];u.push(r,l,d,h,s,i,a.totalduration,c,m,g)}onAudioTrackSwitching(t,e){const s=this.altAudio;if(!!!e.url){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;const t=this.fragCurrent;t&&(this.log("Switching to main audio track, cancel main fragment load"),t.abortRequests(),this.fragmentTracker.removeFragment(t)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();const t=this.hls;s&&(t.trigger(Eg.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null}),this.fragmentTracker.removeAllFragments()),t.trigger(Eg.AUDIO_TRACK_SWITCHED,e)}}onAudioTrackSwitched(t,e){const s=e.id,i=!!this.hls.audioTracks[s].url;if(i){const t=this.videoBuffer;t&&this.mediaBuffer!==t&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=t)}this.altAudio=i,this.tick()}onBufferCreated(t,e){const s=e.tracks;let i,r,n=!1;for(const t in s){const e=s[t];if("main"===e.id){if(r=t,i=e,"video"===t){const e=s[t];e&&(this.videoBuffer=e.buffer)}}else n=!0}n&&i?(this.log(`Alternate track found, use ${r}.buffered to schedule main fragment loading`),this.mediaBuffer=i.buffer):this.mediaBuffer=this.media}onFragBuffered(t,e){const{frag:s,part:i}=e;if(s&&s.type!==Dy)return;if(this.fragContextChanged(s))return this.warn(`Fragment ${s.sn}${i?" p: "+i.index:""} of level ${s.level} finished buffering, but was aborted. state: ${this.state}`),void(this.state===Sv&&(this.state=mv));const r=i?i.stats:s.stats;this.fragLastKbps=Math.round(8*r.total/(r.buffering.end-r.loading.first)),"initSegment"!==s.sn&&(this.fragPrevious=s),this.fragBufferedComplete(s,i)}onError(t,e){var s;if(e.fatal)this.state=Ev;else switch(e.details){case Tg.FRAG_GAP:case Tg.FRAG_PARSING_ERROR:case Tg.FRAG_DECRYPT_ERROR:case Tg.FRAG_LOAD_ERROR:case Tg.FRAG_LOAD_TIMEOUT:case Tg.KEY_LOAD_ERROR:case Tg.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Dy,e);break;case Tg.LEVEL_LOAD_ERROR:case Tg.LEVEL_LOAD_TIMEOUT:case Tg.LEVEL_PARSING_ERROR:e.levelRetry||this.state!==Tv||(null==(s=e.context)?void 0:s.type)!==_y||(this.state=mv);break;case Tg.BUFFER_APPEND_ERROR:case Tg.BUFFER_FULL_ERROR:if(!e.parent||"main"!==e.parent)return;if(e.details===Tg.BUFFER_APPEND_ERROR)return void this.resetLoadingState();this.reduceLengthAndFlushBuffer(e)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case Tg.INTERNAL_EXCEPTION:this.recoverWorkerError(e)}}checkBuffer(){const{media:t,gapController:e}=this;if(t&&e&&t.readyState){if(this.loadedmetadata||!Xb.getBuffered(t).length){const t=this.state!==mv?this.fragCurrent:null;e.poll(this.lastCurrentTime,t)}this.lastCurrentTime=t.currentTime}}onFragLoadEmergencyAborted(){this.state=mv,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()}onBufferFlushed(t,{type:e}){if(e!==Og||this.audioOnly&&!this.altAudio){const t=(e===Ug?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(t,e,Dy),this.tick()}}onLevelsUpdated(t,e){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level),this.levels=e.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){const{media:t}=this;if(!t)return;const e=t.currentTime;let s=this.startPosition;if(s>=0&&e<s){if(t.seeking)return void this.log(`could not seek to ${s}, already seeking at ${e}`);const i=Xb.getBuffered(t),r=(i.length?i.start(0):0)-s;r>0&&(r<this.config.maxBufferHole||r<this.config.maxFragLookUpTolerance)&&(this.log(`adjusting start position by ${r} to match buffer start`),s+=r,this.startPosition=s),this.log(`seek to target start position ${s} from current time ${e}`),t.currentTime=s}}_getAudioCodec(t){let e=this.config.defaultAudioCodec||t.audioCodec;return this.audioCodecSwap&&e&&(this.log("Swapping audio codec"),e=-1!==e.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5"),e}_loadBitrateTestFrag(t,e){t.bitrateTest=!0,this._doFragLoad(t,e).then((s=>{const{hls:i}=this;if(!s||this.fragContextChanged(t))return;e.fragmentError=0,this.state=mv,this.startFragRequested=!1,this.bitrateTest=!1;const r=t.stats;r.parsing.start=r.parsing.end=r.buffering.start=r.buffering.end=self.performance.now(),i.trigger(Eg.FRAG_LOADED,s),t.bitrateTest=!1}))}_handleTransmuxComplete(t){var e;const s="main",{hls:i}=this,{remuxResult:r,chunkMeta:n}=t,o=this.getCurrentContext(n);if(!o)return void this.resetWhenMissingContext(n);const{frag:a,part:h,level:c}=o,{video:l,text:d,id3:u,initSegment:p}=r,{details:f}=c,m=this.altAudio?void 0:r.audio;if(this.fragContextChanged(a))this.fragmentTracker.removeFragment(a);else{if(this.state=vv,p){if(null!=p&&p.tracks){const t=a.initSegment||a;this._bufferInitSegment(c,p.tracks,t,n),i.trigger(Eg.FRAG_PARSING_INIT_SEGMENT,{frag:t,id:s,tracks:p.tracks})}const t=p.initPTS,e=p.timescale;vg(t)&&(this.initPTS[a.cc]={baseTime:t,timescale:e},i.trigger(Eg.INIT_PTS_FOUND,{frag:a,id:s,initPTS:t,timescale:e}))}if(l&&f&&"initSegment"!==a.sn){const t=f.fragments[a.sn-1-f.startSN],e=a.sn===f.startSN,s=!t||a.cc>t.cc;if(!1!==r.independent){const{startPTS:t,endPTS:i,startDTS:r,endDTS:o}=l;if(h)h.elementaryStreams[l.type]={startPTS:t,endPTS:i,startDTS:r,endDTS:o};else if(l.firstKeyFrame&&l.independent&&1===n.id&&!s&&(this.couldBacktrack=!0),l.dropped&&l.independent){const r=this.getMainFwdBufferInfo(),n=(r?r.end:this.getLoadPosition())+this.config.maxBufferHole,h=l.firstKeyFramePTS?l.firstKeyFramePTS:t;if(!e&&n<h-this.config.maxBufferHole&&!s)return void this.backtrack(a);s&&(a.gap=!0),a.setElementaryStreamInfo(l.type,a.start,i,a.start,o,!0)}else e&&t>2&&(a.gap=!0);a.setElementaryStreamInfo(l.type,t,i,r,o),this.backtrackFragment&&(this.backtrackFragment=a),this.bufferFragmentData(l,a,h,n,e||s)}else{if(!e&&!s)return void this.backtrack(a);a.gap=!0}}if(m){const{startPTS:t,endPTS:e,startDTS:s,endDTS:i}=m;h&&(h.elementaryStreams[Og]={startPTS:t,endPTS:e,startDTS:s,endDTS:i}),a.setElementaryStreamInfo(Og,t,e,s,i),this.bufferFragmentData(m,a,h,n)}if(f&&null!=u&&null!=(e=u.samples)&&e.length){const t={id:s,frag:a,details:f,samples:u.samples};i.trigger(Eg.FRAG_PARSING_METADATA,t)}if(f&&d){const t={id:s,frag:a,details:f,samples:d.samples};i.trigger(Eg.FRAG_PARSING_USERDATA,t)}}}_bufferInitSegment(t,e,s,i){if(this.state!==vv)return;this.audioOnly=!!e.audio&&!e.video,this.altAudio&&!this.audioOnly&&delete e.audio;const{audio:r,video:n,audiovideo:o}=e;if(r){let e=t.audioCodec;const s=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){e&&(e=-1!==e.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5");const t=r.metadata;t&&"channelCount"in t&&1!==(t.channelCount||1)&&-1===s.indexOf("firefox")&&(e="mp4a.40.5")}e&&-1!==e.indexOf("mp4a.40.5")&&-1!==s.indexOf("android")&&"audio/mpeg"!==r.container&&(e="mp4a.40.2",this.log(`Android: force audio codec to ${e}`)),t.audioCodec&&t.audioCodec!==e&&this.log(`Swapping manifest audio codec "${t.audioCodec}" for "${e}"`),r.levelCodec=e,r.id="main",this.log(`Init audio buffer, container:${r.container}, codecs[selected/level/parsed]=[${e||""}/${t.audioCodec||""}/${r.codec}]`)}n&&(n.levelCodec=t.videoCodec,n.id="main",this.log(`Init video buffer, container:${n.container}, codecs[level/parsed]=[${t.videoCodec||""}/${n.codec}]`)),o&&this.log(`Init audiovideo buffer, container:${o.container}, codecs[level/parsed]=[${t.codecs}/${o.codec}]`),this.hls.trigger(Eg.BUFFER_CODECS,e),Object.keys(e).forEach((t=>{const r=e[t].initSegment;null!=r&&r.byteLength&&this.hls.trigger(Eg.BUFFER_APPENDING,{type:t,data:r,frag:s,part:null,chunkMeta:i,parent:s.type})})),this.tickImmediate()}getMainFwdBufferInfo(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,Dy)}backtrack(t){this.couldBacktrack=!0,this.backtrackFragment=t,this.resetTransmuxer(),this.flushBufferGap(t),this.fragmentTracker.removeFragment(t),this.fragPrevious=null,this.nextLoadPosition=t.start,this.state=mv}checkFragmentChanged(){const t=this.media;let e=null;if(t&&t.readyState>1&&!1===t.seeking){const s=t.currentTime;if(Xb.isBuffered(t,s)?e=this.getAppendedFrag(s):Xb.isBuffered(t,s+.1)&&(e=this.getAppendedFrag(s+.1)),e){this.backtrackFragment=null;const t=this.fragPlaying,s=e.level;t&&e.sn===t.sn&&t.level===s||(this.fragPlaying=e,this.hls.trigger(Eg.FRAG_CHANGED,{frag:e}),t&&t.level===s||this.hls.trigger(Eg.LEVEL_SWITCHED,{level:s}))}}}get nextLevel(){const t=this.nextBufferedFrag;return t?t.level:-1}get currentFrag(){const t=this.media;return t?this.fragPlaying||this.getAppendedFrag(t.currentTime):null}get currentProgramDateTime(){const t=this.media;if(t){const e=t.currentTime,s=this.currentFrag;if(s&&vg(e)&&vg(s.programDateTime)){const t=s.programDateTime+1e3*(e-s.start);return new Date(t)}}return null}get currentLevel(){const t=this.currentFrag;return t?t.level:-1}get nextBufferedFrag(){const t=this.currentFrag;return t?this.followingBufferedFrag(t):null}get forceStartLoad(){return this._forceStartLoad}}class PE{static get version(){return"1.5.13"}static isMSESupported(){return DE()}static isSupported(){return function(){if(!DE())return!1;const t=sy();return"function"==typeof(null==t?void 0:t.isTypeSupported)&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some((e=>t.isTypeSupported(oy(e,"video"))))||["mp4a.40.2","fLaC"].some((e=>t.isTypeSupported(oy(e,"audio")))))}()}static getMediaSource(){return sy()}static get Events(){return Eg}static get ErrorTypes(){return Ig}static get ErrorDetails(){return Tg}static get DefaultConfig(){return PE.defaultConfig?PE.defaultConfig:wE}static set DefaultConfig(t){PE.defaultConfig=t}constructor(t={}){this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this.started=!1,this._emitter=new LS,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null,this.triggeringException=void 0,function(t,e){if("object"==typeof console&&!0===t||"object"==typeof t){Rg(t,"debug","log","info","warn","error");try{Cg.log(`Debug logs enabled for "${e}" in hls.js version 1.5.13`)}catch(t){Cg=_g}}else Cg=_g}(t.debug||!1,"Hls instance");const e=this.config=function(t,e){if((e.liveSyncDurationCount||e.liveMaxLatencyDurationCount)&&(e.liveSyncDuration||e.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(void 0!==e.liveMaxLatencyDurationCount&&(void 0===e.liveSyncDurationCount||e.liveMaxLatencyDurationCount<=e.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(void 0!==e.liveMaxLatencyDuration&&(void 0===e.liveSyncDuration||e.liveMaxLatencyDuration<=e.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');const s=EE(t),i=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return["manifest","level","frag"].forEach((t=>{const r=`${"level"===t?"playlist":t}LoadPolicy`,n=void 0===e[r],o=[];i.forEach((i=>{const a=`${t}Loading${i}`,h=e[a];if(void 0!==h&&n){o.push(a);const t=s[r].default;switch(e[r]={default:t},i){case"TimeOut":t.maxLoadTimeMs=h,t.maxTimeToFirstByteMs=h;break;case"MaxRetry":t.errorRetry.maxNumRetry=h,t.timeoutRetry.maxNumRetry=h;break;case"RetryDelay":t.errorRetry.retryDelayMs=h,t.timeoutRetry.retryDelayMs=h;break;case"MaxRetryTimeout":t.errorRetry.maxRetryDelayMs=h,t.timeoutRetry.maxRetryDelayMs=h}}})),o.length&&Dg.warn(`hls.js config: "${o.join('", "')}" setting(s) are deprecated, use "${r}": ${JSON.stringify(e[r])}`)})),gg(gg({},s),e)}(PE.DefaultConfig,t);this.userConfig=t,e.progressive&&IE(e);const{abrController:s,bufferController:i,capLevelController:r,errorController:n,fpsController:o}=e,a=new n(this),h=this.abrController=new s(this),c=this.bufferController=new i(this),l=this.capLevelController=new r(this),d=new o(this),u=new My(this),p=new qy(this),f=e.contentSteeringController,m=f?new f(this):null,g=this.levelController=new kE(this,m),A=new Qb(this),y=new CE(this.config),b=this.streamController=new xE(this,A,y);l.setStreamController(b),d.setStreamController(b);const v=[u,g,b];m&&v.splice(1,0,m),this.networkControllers=v;const S=[h,c,l,d,p,A];this.audioTrackController=this.createController(e.audioTrackController,v);const w=e.audioStreamController;w&&v.push(new w(this,A,y)),this.subtitleTrackController=this.createController(e.subtitleTrackController,v);const E=e.subtitleStreamController;E&&v.push(new E(this,A,y)),this.createController(e.timelineController,S),y.emeController=this.emeController=this.createController(e.emeController,S),this.cmcdController=this.createController(e.cmcdController,S),this.latencyController=this.createController(Jy,S),this.coreComponents=S,v.push(a);const I=a.onErrorOut;"function"==typeof I&&this.on(Eg.ERROR,I,a)}createController(t,e){if(t){const s=new t(this);return e&&e.push(s),s}return null}on(t,e,s=this){this._emitter.on(t,e,s)}once(t,e,s=this){this._emitter.once(t,e,s)}removeAllListeners(t){this._emitter.removeAllListeners(t)}off(t,e,s=this,i){this._emitter.off(t,e,s,i)}listeners(t){return this._emitter.listeners(t)}emit(t,e,s){return this._emitter.emit(t,e,s)}trigger(t,e){if(this.config.debug)return this.emit(t,t,e);try{return this.emit(t,t,e)}catch(e){if(Dg.error("An internal error happened while handling event "+t+'. Error message: "'+e.message+'". Here is a stacktrace:',e),!this.triggeringException){this.triggeringException=!0;const s=t===Eg.ERROR;this.trigger(Eg.ERROR,{type:Ig.OTHER_ERROR,details:Tg.INTERNAL_EXCEPTION,fatal:s,event:t,error:e}),this.triggeringException=!1}}return!1}listenerCount(t){return this._emitter.listenerCount(t)}destroy(){Dg.log("destroy"),this.trigger(Eg.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach((t=>t.destroy())),this.networkControllers.length=0,this.coreComponents.forEach((t=>t.destroy())),this.coreComponents.length=0;const t=this.config;t.xhrSetup=t.fetchSetup=void 0,this.userConfig=null}attachMedia(t){Dg.log("attachMedia"),this._media=t,this.trigger(Eg.MEDIA_ATTACHING,{media:t})}detachMedia(){Dg.log("detachMedia"),this.trigger(Eg.MEDIA_DETACHING,void 0),this._media=null}loadSource(t){this.stopLoad();const e=this.media,s=this.url,i=this.url=fg.buildAbsoluteURL(self.location.href,t,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,Dg.log(`loadSource:${i}`),e&&s&&(s!==i||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(e)),this.trigger(Eg.MANIFEST_LOADING,{url:t})}startLoad(t=-1){Dg.log(`startLoad(${t})`),this.started=!0,this.networkControllers.forEach((e=>{e.startLoad(t)}))}stopLoad(){Dg.log("stopLoad"),this.started=!1,this.networkControllers.forEach((t=>{t.stopLoad()}))}resumeBuffering(){this.started&&this.networkControllers.forEach((t=>{"fragmentLoader"in t&&t.startLoad(-1)}))}pauseBuffering(){this.networkControllers.forEach((t=>{"fragmentLoader"in t&&t.stopLoad()}))}swapAudioCodec(){Dg.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){Dg.log("recoverMediaError");const t=this._media;this.detachMedia(),t&&this.attachMedia(t)}removeLevel(t){this.levelController.removeLevel(t)}get levels(){const t=this.levelController.levels;return t||[]}get currentLevel(){return this.streamController.currentLevel}set currentLevel(t){Dg.log(`set currentLevel:${t}`),this.levelController.manualLevel=t,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(t){Dg.log(`set nextLevel:${t}`),this.levelController.manualLevel=t,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(t){Dg.log(`set loadLevel:${t}`),this.levelController.manualLevel=t}get nextLoadLevel(){return this.levelController.nextLoadLevel}set nextLoadLevel(t){this.levelController.nextLoadLevel=t}get firstLevel(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)}set firstLevel(t){Dg.log(`set firstLevel:${t}`),this.levelController.firstLevel=t}get startLevel(){const t=this.levelController.startLevel;return-1===t&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:t}set startLevel(t){Dg.log(`set startLevel:${t}`),-1!==t&&(t=Math.max(t,this.minAutoLevel)),this.levelController.startLevel=t}get capLevelToPlayerSize(){return this.config.capLevelToPlayerSize}set capLevelToPlayerSize(t){const e=!!t;e!==this.config.capLevelToPlayerSize&&(e?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=e)}get autoLevelCapping(){return this._autoLevelCapping}get bandwidthEstimate(){const{bwEstimator:t}=this.abrController;return t?t.getEstimate():NaN}set bandwidthEstimate(t){this.abrController.resetEstimator(t)}get ttfbEstimate(){const{bwEstimator:t}=this.abrController;return t?t.getEstimateTTFB():NaN}set autoLevelCapping(t){this._autoLevelCapping!==t&&(Dg.log(`set autoLevelCapping:${t}`),this._autoLevelCapping=t,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(t){(function(t){return Xy.indexOf(t)>-1})(t)&&this._maxHdcpLevel!==t&&(this._maxHdcpLevel=t,this.levelController.checkMaxAutoUpdated())}get autoLevelEnabled(){return-1===this.levelController.manualLevel}get manualLevel(){return this.levelController.manualLevel}get minAutoLevel(){const{levels:t,config:{minAutoBitrate:e}}=this;if(!t)return 0;const s=t.length;for(let i=0;i<s;i++)if(t[i].maxBitrate>=e)return i;return 0}get maxAutoLevel(){const{levels:t,autoLevelCapping:e,maxHdcpLevel:s}=this;let i;if(i=-1===e&&null!=t&&t.length?t.length-1:e,s)for(let e=i;e--;){const i=t[e].attrs["HDCP-LEVEL"];if(i&&i<=s)return e}return i}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(t){this.abrController.nextAutoLevel=t}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}setAudioOption(t){var e;return null==(e=this.audioTrackController)?void 0:e.setAudioOption(t)}setSubtitleOption(t){var e;return null==(e=this.subtitleTrackController)||e.setSubtitleOption(t),null}get allAudioTracks(){const t=this.audioTrackController;return t?t.allAudioTracks:[]}get audioTracks(){const t=this.audioTrackController;return t?t.audioTracks:[]}get audioTrack(){const t=this.audioTrackController;return t?t.audioTrack:-1}set audioTrack(t){const e=this.audioTrackController;e&&(e.audioTrack=t)}get allSubtitleTracks(){const t=this.subtitleTrackController;return t?t.allSubtitleTracks:[]}get subtitleTracks(){const t=this.subtitleTrackController;return t?t.subtitleTracks:[]}get subtitleTrack(){const t=this.subtitleTrackController;return t?t.subtitleTrack:-1}get media(){return this._media}set subtitleTrack(t){const e=this.subtitleTrackController;e&&(e.subtitleTrack=t)}get subtitleDisplay(){const t=this.subtitleTrackController;return!!t&&t.subtitleDisplay}set subtitleDisplay(t){const e=this.subtitleTrackController;e&&(e.subtitleDisplay=t)}get lowLatencyMode(){return this.config.lowLatencyMode}set lowLatencyMode(t){this.config.lowLatencyMode=t}get liveSyncPosition(){return this.latencyController.liveSyncPosition}get latency(){return this.latencyController.latency}get maxLatency(){return this.latencyController.maxLatency}get targetLatency(){return this.latencyController.targetLatency}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}}PE.defaultConfig=void 0;const BE=FE;function ME(){const t=["demuxStart","canVideoPlay","events","900600PaeXBE","BUFFER_APPENDED","BUFFER_APPENDING","pause","fpsInterval","timeUpdate","9PDWSKm","then","MANIFEST_LOADED","metadata","938156iaOCRm","2941602dUhMDG","TAG_NAME","updateVideoInfo","paused","currentTime","Events","11764260tIFLbu","244730ailnXP","timeStamp","_bindEvents","ErrorTypes","_startFpsInterval","eventsDestroy","_stopCanvasRender","player","MEDIA_DETACHED"," to ","MEDIA_ATTACHED","getVideoPlaybackQuality","position","bandwidthEstimate","hlsPrevFrams","play","isInitInfo","video play","MANIFEST_LOADING","totalVideoFrames","_stopFpsInterval","mediaTime","FRAG_PARSING_INIT_SEGMENT","isDestroyedOrClosed","videoFrameCallback","end","muted","channelCount","updateStats","bandwidthEstimateInterval","destroy","audio","_stopBandwidthEstimateInterval","MEDIA_ERROR","FPS_DROP","_initRenderSize","handleRender","hlsFps","BUFFER_FLUSHING","useCanvasRender","BUFFER_FLUSHED","video canplay","kBps","codec","url","initCanvasViewSize","4313024uTAsYz","fatal","video play error ","loadSource"," , try to seek ","7uVTAWa","width","isSupported","tracks","MEDIA_ATTACHING","NETWORK_ERROR","hls","catch","_times","debugLog","style","handlePlayToRenderTimes","video playback Rate change","FRAG_LOADED","HlsDecoder","debugWarn","fatal media error encountered, try to recover","BUFFER_CODECS","length","video","push","_startBandwidthEstimateInterval","1292949AopZsE","_initHls","video is paused and replay error ","ratechange","removeAttribute","FRAG_LOADING","supportVideoFrameCallbackHandle","canplay","canvasRenderInterval","decodeStart","startLoad","bind","forEach","initVideoEvents","video waiting","src","absolute","LEVEL_LOADED","recoverMediaError","checkHlsBufferedDelay","init"," ,currentTime is ","3MLgWIL","render","createElement","h264","height","requestVideoFrameCallback","MANIFEST_PARSED","cancelVideoFrameCallback","_opt","type","$videoElement","videoStart","toFixed","_startCanvasRender","updateAudioInfo","videoFrameCallback() player is destroyed","FPS_DROP_LEVEL_CAPPING","videoWidth","MEDIA_DETACHING"];return(ME=function(){return t})()}function FE(t,e){const s=ME();return(FE=function(t,e){return s[t-=261]})(t,e)}!function(t,e){const s=FE,i=t();for(;;)try{if(275068===parseInt(s(346))/1*(-parseInt(s(386))/2)+-parseInt(s(324))/3+-parseInt(s(378))/4+parseInt(s(368))/5+parseInt(s(379))/6*(parseInt(s(302))/7)+-parseInt(s(297))/8*(parseInt(s(374))/9)+parseInt(s(385))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(ME);class OE extends Bi{constructor(t){const e=FE;super(),this[e(393)]=t,this[e(380)]=e(316),t[e(354)],this.canVideoPlay=!1,this[e(356)]=null,this[e(332)]=null,this[e(280)]=null,this[e(372)]=null,this[e(288)]=0,this[e(265)]=0,this[e(267)]=!1,this.eventsDestroy=[],this[e(330)]=null,this[e(393)].isHlsCanVideoPlay()?(this.$videoElement=this[e(393)][e(321)][e(356)],this[e(366)]=!0):PE[e(304)]()?(this[e(356)]=this[e(393)][e(321)].$videoElement,this[e(308)]=new PE({}),this[e(325)](),this[e(388)]()):this[e(393)].debugError(this[e(380)],"init hls error ,not support "),this[e(393)][e(311)](this[e(380)],e(344))}[BE(281)](){return new Promise(((t,e)=>{const s=FE;if(this[s(330)]&&this[s(356)]&&(this[s(356)][s(353)](this[s(330)]),this[s(330)]=null),this[s(308)]&&(this[s(308)][s(281)](),this.hls=null),this.eventsDestroy[s(320)]&&(this.eventsDestroy[s(336)]((t=>t())),this.eventsDestroy=[]),this.isInitInfo=!1,this[s(392)](),this[s(283)](),this._stopFpsInterval(),this[s(393)][s(354)].useCanvasRender&&this[s(356)]){this[s(356)][s(371)]&&(this[s(356)].pause(),this[s(356)][s(277)]=!0),this[s(356)][s(383)]=0,this[s(356)][s(339)]&&(this.$videoElement[s(339)]="",this.$videoElement[s(328)](s(339)));try{this[s(356)].load()}catch(t){}}this[s(356)]=null,this[s(288)]=0,this.player[s(311)](this[s(380)],s(281)),setTimeout((()=>{t()}),0)}))}[BE(343)](){const t=BE,e=this[t(356)];let s=0;const i=e.buffered,r=i[t(320)]?i[t(276)](i[t(320)]-1):0;return s=r-e[t(383)],s<0&&(this[t(393)][t(317)](this[t(380)],"checkHlsBufferedDelay "+s+" < 0, and buffered is "+r+t(345)+e[t(383)]+t(301)+e[t(383)]+t(395)+r),e.currentTime=r,s=0),s}getFps(){return this.hlsFps}[BE(359)](){const t=BE;fi()?this[t(330)]=this[t(356)][t(351)](this[t(275)][t(335)](this)):(this[t(392)](),this.canvasRenderInterval=setInterval((()=>{const e=t;this[e(393)][e(321)].render({$video:this[e(356)],ts:parseInt(1e3*this.$videoElement[e(383)],10)||0})}),40))}[BE(392)](){const t=BE;this.canvasRenderInterval&&(clearInterval(this[t(332)]),this[t(332)]=null)}[BE(275)](t){const e=BE;let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this[e(393)][e(274)]())return void this[e(393)].debugLog(this[e(380)],e(361));const i=parseInt(1e3*Math.max(s[e(272)],this.$videoElement[e(383)]),10)||0;this[e(393)][e(321)][e(347)]({$video:this[e(356)],ts:i}),this[e(393)].handleRender(),this[e(393)].updateStats({dts:i}),this[e(330)]=this[e(356)][e(351)](this[e(275)][e(335)](this))}[BE(323)](){const t=BE;this[t(283)](),this[t(280)]=setInterval((()=>{const e=t;let s=0;this[e(308)][e(264)]&&(s=this[e(308)][e(264)]),this[e(393)].emit(M[e(293)],(s/1024/8/10)[e(358)](2))}),1e3)}[BE(283)](){const t=BE;this[t(280)]&&(clearInterval(this[t(280)]),this[t(280)]=null)}[BE(390)](){const t=BE;this[t(392)](),this[t(372)]=setInterval((()=>{const e=t;if(this[e(356)])if(Vs(this[e(356)].getVideoPlaybackQuality)){const t=this[e(356)][e(262)]();this[e(288)]=t[e(270)]-this[e(265)],this[e(265)]=t[e(270)]}else{const t=this[e(356)].webkitDecodedFrameCount||0;this[e(288)]=t-this.hlsPrevFrams,this[e(265)]=t}}),1e3)}[BE(271)](){const t=BE;this[t(372)]&&(clearInterval(this[t(372)]),this[t(372)]=null)}[BE(325)](){const t=BE;this.player[t(354)][t(290)]&&(this[t(356)]=document[t(348)]("video"),this[t(356)][t(277)]=!0,ss()&&(this.$videoElement[t(312)][t(263)]=t(340)),this.initVideoEvents()),this[t(308)].attachMedia(this[t(356)])}[BE(388)](){const t=BE,e=this.player,{proxy:s}=this[t(393)].events;this[t(308)];const i=this[t(356)],r=fi(),n=s(i,ct[t(373)],(s=>{const i=t;if(this[i(308)]){const t=parseInt(s[i(387)],10);this[i(393)][i(354)][i(290)]&&ci(r)&&e[i(279)]({ts:t,dts:t})}}));this[t(391)][t(322)](n),this[t(308)].on(PE[t(384)].ERROR,((e,s)=>{const i=t;if(s[i(298)])switch(s[i(355)]){case PE[i(389)][i(307)]:this[i(393)][i(317)](this[i(380)],"fatal network error encountered, try to recover"),this.hls[i(334)]();break;case PE[i(389)][i(284)]:this[i(393)][i(317)](this.TAG_NAME,i(318)),this.hls[i(342)]()}})),this[t(308)].on(PE[t(384)][t(306)],(()=>{})),this[t(308)].on(PE[t(384)][t(261)],(()=>{})),this[t(308)].on(PE[t(384)][t(364)],(()=>{})),this[t(308)].on(PE[t(384)][t(394)],(()=>{})),this[t(308)].on(PE[t(384)].BUFFER_RESET,(()=>{})),this[t(308)].on(PE.Events[t(319)],(()=>{})),this[t(308)].on(PE[t(384)].BUFFER_CREATED,(()=>{})),this[t(308)].on(PE[t(384)][t(370)],((e,s)=>{const i=t;this[i(393)].debugLog(this[i(380)],"BUFFER_APPENDING",s.type)})),this[t(308)].on(PE[t(384)][t(369)],(()=>{})),this[t(308)].on(PE[t(384)].BUFFER_EOS,(()=>{})),this[t(308)].on(PE[t(384)][t(289)],(()=>{})),this.hls.on(PE[t(384)][t(291)],(()=>{})),this[t(308)].on(PE[t(384)][t(269)],(()=>{const e=t;this.player[e(311)](this[e(380)],"MANIFEST_LOADING 开始加载playlist m3u8资源")})),this[t(308)].on(PE[t(384)][t(376)],((e,s)=>{const i=t;this[i(393)][i(311)](this[i(380)],"MANIFEST_LOADED playlist m3u8文件加载完成",s[i(295)])})),this.hls.on(PE[t(384)][t(352)],(()=>{const s=t;this[s(393)][s(311)](this[s(380)],"MANIFEST_PARSED playlist m3u8解析完成"),!e._times[s(365)]&&(e[s(310)][s(365)]=je())})),this[t(308)].on(PE.Events.LEVEL_LOADING,(()=>{})),this[t(308)].on(PE.Events[t(341)],((t,e)=>{})),this.hls.on(PE[t(384)][t(329)],(()=>{})),this[t(308)].on(PE[t(384)][t(315)],((s,i)=>{const r=t;!e[r(310)][r(333)]&&(e[r(310)].decodeStart=je())})),this.hls.on(PE[t(384)][t(370)],(()=>{const s=t;!e._times[s(357)]&&(e[s(310)].videoStart=je(),e[s(313)]())})),this[t(308)].on(PE[t(384)].FRAG_DECRYPTED,(()=>{})),this[t(308)].on(PE.Events.KEY_LOADING,(()=>{})),this[t(308)].on(PE[t(384)].KEY_LOADING,(()=>{})),this[t(308)].on(PE[t(384)][t(285)],(t=>{})),this.hls.on(PE.Events[t(362)],(t=>{})),this[t(308)].on(PE[t(384)][t(273)],((e,s)=>{const i=t;this[i(393)][i(311)](this[i(380)],i(273),s);const r=!!(s&&s[i(305)]&&s.tracks[i(282)]),n=!!(s&&s[i(305)]&&s[i(305)][i(321)]);if(r&&s[i(305)].audio){let t=s.tracks.audio;const e=t[i(377)]&&t[i(377)][i(278)]?t[i(377)].channelCount:0,r=t[i(294)];this[i(393)].audio&&this[i(393)][i(282)][i(360)]({encType:r,channels:e,sampleRate:44100})}if(n&&s[i(305)].video){let t=s.tracks[i(321)];const e={encTypeCode:-1!==t[i(294)].indexOf("avc")?G[i(349)]:G.h265};t[i(377)]&&(e.width=t[i(377)][i(303)],e[i(350)]=t.metadata[i(350)]),this[i(393)][i(321)]&&this[i(393)][i(321)][i(381)](e)}}))}initVideoPlay(t){const e=BE;this[e(393)][e(354)][e(290)]&&(this.$videoElement=document[e(348)](e(321)),this.initVideoEvents()),this.$videoElement.autoplay=!0,this[e(356)][e(277)]=!0,this[e(356)][e(339)]=t}[BE(286)](){const t=BE;!this[t(267)]&&(this[t(393)].video.updateVideoInfo({width:this[t(356)][t(363)],height:this[t(356)].videoHeight}),this[t(393)][t(321)][t(296)](),this[t(267)]=!0)}[BE(337)](){const t=BE,{proxy:e}=this[t(393)][t(367)],s=e(this[t(356)],ct[t(331)],(()=>{const e=t;this.player[e(311)](this[e(380)],e(292)),this[e(356)].play()[e(375)]((()=>{const t=e;this.player[t(311)](this[t(380)],t(268)),this[t(359)](),this._initRenderSize()})).catch((t=>{const s=e;this[s(393)][s(317)](this[s(380)],s(299),t)}))})),i=e(this[t(356)],ct.waiting,(()=>{const e=t;this.player[e(311)](this[e(380)],e(338))})),r=e(this[t(356)],ct[t(373)],(e=>{const s=t,i=parseInt(e[s(387)],10);this[s(393)][s(287)](),this.player[s(279)]({ts:i}),this[s(356)][s(382)]&&(this.player[s(317)](this[s(380)],"video is paused and next try to replay"),this[s(356)][s(266)]()[s(375)]((()=>{const t=s;this[t(393)].debugLog(this[t(380)],"video is paused and replay success")}))[s(309)]((t=>{const e=s;this[e(393)].debugWarn(this[e(380)],e(326),t)})))})),n=e(this[t(356)],ct[t(327)],(()=>{const e=t;this[e(393)][e(311)](this[e(380)],e(314),this[e(356)]&&this.$videoElement.playbackRate)}));this.eventsDestroy[t(322)](s,i,r,n)}[BE(300)](t){return new Promise(((e,s)=>{const i=FE;this[i(366)]?(this.initVideoPlay(t),this[i(323)](),this[i(390)](),e()):this.hls.on(PE.Events.MEDIA_ATTACHED,(()=>{const s=i;this[s(308)][s(300)](t),this[s(323)](),this[s(390)](),e()}))}))}}function UE(t,e){var s=NE();return(UE=function(t,e){return s[t-=477]})(t,e)}function NE(){var t=["1138122yCxPFB","20487XdFxrX","49NtBQuu","123208epsoVw","4014120eSbqSF","268XWHVYw","168229JvQvmC","5fGgECZ","3137322doagLR","434712LNvCHc"];return(NE=function(){return t})()}!function(t,e){for(var s=UE,i=t();;)try{if(283782===parseInt(s(478))/1+parseInt(s(481))/2+-parseInt(s(483))/3*(parseInt(s(477))/4)+parseInt(s(479))/5*(parseInt(s(480))/6)+parseInt(s(484))/7*(parseInt(s(485))/8)+parseInt(s(482))/9+-parseInt(s(486))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(NE);const jE=YE;!function(t,e){const s=YE,i=t();for(;;)try{if(487347===parseInt(s(415))/1+-parseInt(s(487))/2+-parseInt(s(486))/3+parseInt(s(482))/4+parseInt(s(499))/5*(parseInt(s(409))/6)+parseInt(s(373))/7*(parseInt(s(363))/8)+-parseInt(s(388))/9)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(ZE);const VE=2097152,zE={FETCH:jE(395),XHR:"xhr"},GE={ARRAY_BUFFER:jE(478),TEXT:jE(392),JSON:jE(305)},WE={REAL_TIME_SPEED:jE(441)},HE=Object[jE(301)][jE(312)];function KE(t){const e=jE;if(HE.call(t)!==e(413))return!1;const s=Object.getPrototypeOf(t);return null===s||s===Object[e(301)]}function QE(t){const e=jE;if(!t||null===t[0]||void 0===t[0]||0===t[0]&&(null===t[1]||void 0===t[1]))return;let s=e(341)+t[0]+"-";return t[1]&&(s+=t[1]),s}function YE(t,e){const s=ZE();return(YE=function(t,e){return s[t-=297]})(t,e)}function qE(t){const e=jE;return encodeURIComponent(t)[e(314)](/%3A/gi,":")[e(314)](/%24/g,"$").replace(/%2C/gi,",")[e(314)](/%20/g,"+")[e(314)](/%5B/gi,"[")[e(314)](/%5D/gi,"]")}function JE(t,e){const s=jE;if(!t)return;if(!e)return t;let i;const r=Object[s(475)](e)[s(461)]((t=>{const r=s;if(i=e[t],null!=i)return Array[r(428)](i)?t+="[]":i=[i],i.map((e=>{const s=r;var i,n;return n=e,"[object Date]"===HE[jE(324)](n)?e=e[s(334)]():null!==(i=e)&&typeof i===jE(494)&&(e=JSON[s(433)](e)),qE(t)+"="+qE(e)}))[r(356)]("&")})).filter(Boolean)[s(356)]("&");if(r){const e=t.indexOf("#");-1!==e&&(t=t[s(302)](0,e)),t+=(-1===t[s(446)]("?")?"?":"&")+r}return t}function XE(t,e,s,i,r,n,o,a,h,c,l){const d=jE;r=null!=r?parseFloat(r):null,i=parseInt(i||"0",10),Number[d(298)](i)&&(i=0);return{data:t,done:e,options:{range:h,vid:c,index:a,contentLength:i,age:r,startTime:n,firstByteTime:o,endTime:Date[d(342)](),priOptions:l},response:s}}function ZE(){const t=["TAG_NAME","isFetchSupport","target","signal","_response","_currentTask",", datalen,",",len,","_currentChunkSizeKB","_onProgress","_index","emit","13934286GbVTje","resolve","include","_onLoad","text","_onReadyStatechange","request","fetch","get","receiveLen","byteLength","timeout","_loadChunk","onTimeout","message","_url","_loadCompleteReject","function","then","player","read","2148aTbMTU","age","vid","alive","[object Object]","XhrLoader","556628DNxTQC","type","concat","toLowerCase","url","finally","_retryCheckFunc","running","string",",receivedLength","_retryCount","responseType","status","isArray","statusText","[xhr_loader->],tast :","_priOptions","_onTimeout","stringify","_firstRtt","_onProcessMinLen","_onCancel","split","_config","all","_startTime","real_time_speed","credentials","xhr.onerror.status:","[task request setTimeout],retry","[xhr load done->], tast :","indexOf","_vid","【fetchLoader,onProgress call】,task,","_aborted","_credentials","trim","_withCredentials","_timeoutTimer","bad response,status:","_loader","isTimeout","_canceled","onProgress","setRequestHeader","options","map","_receivedLength","reject","_startLoad","round",", SubRange, ","used","_loadCompleteResolve","_responseType","open","_getHeaders","content-length","exec","_range","keys",",load sub range, ","_body","arraybuffer","_alive","_reader","_running","2515892pVFDSM","onreadystatechange","done","set","176202nWzXuo","1810796mDLmLz",", writeIdx,","【fetchLoader,onProgress extra end】,len,","length","_transformResponse","ontimeout","readyState","object","_cache","cancel","currentTarget","promise","11785HJYDzK","[xhr.send->] tast,","load","REAL_TIME_SPEED","isNaN","debugLog","index","prototype","slice","params","getReader","json","XHR","【fetchLoader,onProgress enough】,done,","onCancel","isSupported","loaderType","_xhr","toString","Content-Length","replace","value","endTime","body","method","transformRequest","isFetch","onProgress of bad response.body.getReader","_request","_queue","call","Range","retryCheckFunc",",done,","_retryTimer","onerror","_runing",",dataLen,","_writeIdx","range","toISOString",", start,","same-origin","【fetchLoader,onProgress cache】,len,","_internalOpen","responseURL","destroy","bytes=","now","assign",",index,","startTime","_abortController",", done,","TEXT","response","_timeout","_method","number","bind","_processTask","push","join","GET","bad network response","ARRAY_BUFFER",", allRange, ","undefined","_headers","432cWhssq","[task request catch err]","end ","headers","catch","removeAllListeners","JSON","priOptions","[fetchLoader onProgress end],task,","FETCH","125783UFymgr","_loaderType","abort"];return(ZE=function(){return t})()}function $E(t,e){return Math[jE(465)](8*t*1e3/e/1024)}class tI extends Error{constructor(t,e,s,i){const r=jE;super(i),$f(this,"retryCount",0),$f(this,r(456),!1),$f(this,r(310),zE[r(372)]),$f(this,r(345),0),$f(this,"endTime",0),$f(this,r(460),{}),this.url=t,this[r(394)]=e,this[r(349)]=s}}class eI extends Bi{constructor(t){const e=jE;super(),$f(this,e(346),null),$f(this,e(453),null),$f(this,e(480),null),$f(this,e(380),null),$f(this,"_aborted",!1),$f(this,e(386),-1),$f(this,"_range",null),$f(this,e(462),0),$f(this,"_running",!1),$f(this,"_logger",null),$f(this,e(447),""),$f(this,e(435),0),$f(this,e(436),null),$f(this,e(431),null),$f(this,e(376),"FetchLoader"),this[e(407)]=t}[jE(501)](t){const e=jE;var s;let{url:i,vid:r,timeout:n,responseType:o,onProgress:a,index:h,onTimeout:c,onCancel:l,range:d,transformResponse:u,request:p,params:f,logger:m,method:g,headers:A,body:y,mode:b,credentials:v,cache:S,redirect:w,referrer:E,referrerPolicy:I,onProcessMinLen:T,priOptions:k}=t;this[e(449)]=!1,this[e(435)]=T,this._onCancel=l,this._abortController=typeof AbortController!==e(361)&&new AbortController,this[e(481)]=!0,this[e(386)]=h,this[e(474)]=d||[0,0],this[e(447)]=r||i,this[e(431)]=k||{};const _={method:g,headers:A,body:y,mode:b,credentials:v,cache:S,redirect:w,referrer:E,referrerPolicy:I,signal:null===(s=this[e(346)])||void 0===s?void 0:s[e(379)]};let C=!1;clearTimeout(this[e(453)]),i=JE(i,f);const R=QE(d);R&&(A=p?p.headers:_.headers=_[e(366)]||(Headers?new Headers:{}),Headers&&A instanceof Headers?A.append(e(325),R):A.Range=R),n&&(this[e(453)]=setTimeout((()=>{const t=e;if(C=!0,this[t(496)](),c){const e=new tI(i,_,null,t(399));e.isTimeout=!0,c(e,{index:this[t(386)],range:this[t(474)],vid:this[t(447)],priOptions:this._priOptions})}}),n));const D=Date[e(342)]();return new Promise(((t,s)=>{const r=e;fetch(p||i,p?void 0:_)[r(406)]((async e=>{const n=r;if(clearTimeout(this[n(453)]),this[n(380)]=e,this[n(449)]||!this._running)return;if(u&&(e=u(e,i)||e),!e.ok)throw new tI(i,_,e,n(358));const c=Date[n(342)]();let l;if(o===GE[n(348)])l=await e[n(392)](),this[n(481)]=!1;else if(o===GE[n(369)])l=await e[n(305)](),this[n(481)]=!1;else{if(a)return this[n(389)]=t,this.reject=s,void this[n(400)](e,a,D,c);{l=await e.arrayBuffer(),l=new Uint8Array(l),this[n(481)]=!1;const t=Date[n(342)]()-D,s=$E(l[n(398)],t);this.emit(WE[n(297)],{speed:s,len:l[n(398)],time:t,vid:this[n(447)],index:this._index,range:this._range,priOptions:this[n(431)]})}}t(XE(l,!0,e,e[n(366)][n(396)](n(313)),e[n(366)].get(n(410)),D,c,h,d,this._vid,this._priOptions))}))[r(367)]((t=>{const e=r;var n;clearTimeout(this[e(453)]),this._running=!1,this[e(449)]&&!C||((t=t instanceof tI?t:new tI(i,_,null,null===(n=t)||void 0===n?void 0:n[e(402)])).startTime=D,t[e(316)]=Date[e(342)](),t[e(456)]=C,t[e(460)]={index:this[e(386)],range:this[e(474)],vid:this[e(447)],priOptions:this._priOptions},s(t))}))}))}async[jE(496)](){const t=jE;if(!this[t(449)]){if(this[t(449)]=!0,this[t(481)]=!1,this[t(380)]){try{this._reader&&await this[t(480)].cancel()}catch(t){}this[t(380)]=this._reader=null}if(this[t(346)]){try{this._abortController[t(375)]()}catch(t){}this[t(346)]=null}this[t(436)]&&this._onCancel({index:this[t(386)],range:this._range,vid:this[t(447)],priOptions:this[t(431)]})}}[jE(400)](t,e,s,i){const r=jE;if(!t.body||!t[r(317)].getReader){this._running=!1;const e=new tI(t[r(419)],"",t,r(321));return e[r(460)]={index:this[r(386)],range:this[r(474)],vid:this[r(447)],priOptions:this[r(431)]},void this[r(463)](e)}this[r(435)]>0&&(this[r(495)]=new Uint8Array(VE),this._writeIdx=0);const n=this[r(480)]=t[r(317)][r(304)]();let o,a,h;const c=async()=>{const l=r;var d;a=Date.now();try{o=await n[l(408)](),h=Date[l(342)]()}catch(t){return h=Date[l(342)](),void(!this._aborted&&(this[l(481)]=!1,t[l(460)]={index:this[l(386)],range:this[l(474)],vid:this[l(447)],priOptions:this[l(431)]},this[l(463)](t)))}const u=(null===(d=this[l(474)])||void 0===d?void 0:d[l(490)])>0?this[l(474)][0]:0,p=u+this._receivedLength;if(this._aborted)return this[l(481)]=!1,void e(void 0,!1,{range:[p,p],vid:this[l(447)],index:this[l(386)],startTime:a,endTime:h,st:s,firstByteTime:i,priOptions:this[l(431)]},t);const f=o.value?o[l(315)][l(398)]:0;let m;if(this[l(462)]+=f,this[l(407)].debugLog(this[l(376)],l(448),this[l(474)],l(335),p,", end,",u+this[l(462)],", done,",o[l(484)]),this[l(435)]>0){if(this._writeIdx+f>=this[l(435)]||o[l(484)])m=new Uint8Array(this[l(332)]+f),m[l(485)](this[l(495)].slice(0,this[l(332)]),0),f>0&&m[l(485)](o[l(315)],this[l(332)]),this[l(332)]=0,this[l(407)].debugLog(this[l(376)],l(307),o[l(484)],l(383),m.byteLength,l(488),this[l(332)]);else if(f>0&&this[l(332)]+f<VE)this[l(495)][l(485)](o[l(315)],this._writeIdx),this[l(332)]+=f,this.player[l(299)](this[l(376)],l(337),f,l(488),this[l(332)]);else if(f>0){const t=new Uint8Array(this[l(332)]+f+2048);this[l(407)][l(299)](this[l(376)],"【fetchLoader,onProgress extra start】,size,",this[l(332)]+f+2048,l(382),f,l(488),this[l(332)]),t[l(485)](this[l(495)][l(302)](0,this[l(332)]),0),f>0&&t[l(485)](o.value,this[l(332)]),this[l(332)]+=f,delete this[l(495)],this._cache=t,this[l(407)][l(299)](this[l(376)],l(489),f,l(488),this._writeIdx)}}else m=o[l(315)];if((m&&m[l(398)]>0||o.done)&&e(m,o.done,{range:[this[l(474)][0]+this[l(462)]-(m?m[l(398)]:0),this[l(474)][0]+this[l(462)]],vid:this[l(447)],index:this[l(386)],startTime:a,endTime:h,st:s,firstByteTime:i,priOptions:this[l(431)]},t),o.done){const e=Date[l(342)]()-s,r=$E(this[l(462)],e);this[l(387)](WE[l(297)],{speed:r,len:this[l(462)],time:e,vid:this[l(447)],index:this[l(386)],range:this[l(474)],priOptions:this[l(431)]}),this[l(481)]=!1,this[l(407)].debugLog(this[l(376)],l(371),this[l(474)],l(327),o[l(484)]),this.resolve(XE(o,!0,t,t[l(366)][l(396)](l(313)),t[l(366)][l(396)](l(410)),s,i,this[l(386)],this[l(474)],this[l(447)],this[l(431)]))}else c()};c()}get[jE(397)](){return this[jE(462)]}get running(){return this[jE(481)]}set[jE(422)](t){this[jE(481)]=t}static[jE(309)](){return!(typeof fetch===jE(361))}}class sI{constructor(t,e,s){const i=jE;$f(this,i(376),"Task"),this[i(498)]=function(){const t=jE;let e,s;const i=new Promise(((t,i)=>{e=t,s=i}));return i[t(467)]=!1,i[t(389)]=function(){return i[t(467)]=!0,e(...arguments)},i[t(463)]=function(){return i[t(467)]=!0,s(...arguments)},i}(),this[i(412)]=!!e[i(458)],this[i(374)]=t,this[i(407)]=s,this[i(455)]=t===zE[i(372)]&&window[i(395)]?new eI(s):new iI(s),this[i(438)]=e,this[i(425)]=0,this[i(328)]=null,this[i(457)]=!1,this[i(421)]=e[i(326)]}[jE(473)](){const t=jE,{retry:e,retryDelay:s,onRetryError:i,transformError:r,...n}=this[t(438)],o=async()=>{const a=t;try{const t=await this[a(455)][a(501)](n);this.promise.resolve(t)}catch(t){if(this._loader[a(422)]=!1,this[a(407)][a(299)](this[a(376)],a(364),t),this[a(457)])return;t[a(310)]=this[a(374)],t.retryCount=this._retryCount;let h=t;r&&(h=r(h)||h),i&&this._retryCount>0&&i(h,this[a(425)],{index:n.index,vid:n[a(411)],range:n[a(333)],priOptions:n.priOptions}),this[a(425)]++;let c=!0;if(this._retryCheckFunc&&(c=this[a(421)](t)),c&&this[a(425)]<=e)return clearTimeout(this[a(328)]),this.player[a(299)](this[a(376)],a(444),this[a(425)],",retry range,",n[a(333)]),void(this[a(328)]=setTimeout(o,s));this[a(498)][a(463)](h)}};return o(),this[t(498)]}async cancel(){const t=jE;return clearTimeout(this[t(328)]),this[t(457)]=!0,this[t(455)][t(422)]=!1,this[t(455)][t(496)]()}get running(){const t=jE;return this._loader&&this[t(455)][t(422)]}get loader(){return this[jE(455)]}}class iI extends Bi{constructor(t){const e=jE;super(),$f(this,"_xhr",null),$f(this,e(449),!1),$f(this,e(453),null),$f(this,e(474),null),$f(this,e(462),0),$f(this,e(403),null),$f(this,"_onProgress",null),$f(this,"_index",-1),$f(this,e(362),null),$f(this,e(384),384),$f(this,"_timeout",null),$f(this,e(311),null),$f(this,e(452),null),$f(this,e(440),-1),$f(this,e(468),null),$f(this,"_loadCompleteReject",null),$f(this,"_runing",!1),$f(this,"_logger",!1),$f(this,e(447),""),$f(this,e(469),void 0),$f(this,e(450),void 0),$f(this,"_method",void 0),$f(this,"_transformResponse",void 0),$f(this,e(434),void 0),$f(this,e(436),null),$f(this,"_priOptions",null),$f(this,e(376),e(414)),this[e(407)]=t}[jE(501)](t){const e=jE;clearTimeout(this[e(453)]),this[e(474)]=t[e(333)],this[e(385)]=t[e(458)],this[e(386)]=t[e(300)],this[e(362)]=t.headers,this[e(452)]=t[e(442)]===e(390)||t[e(442)]===e(336),this._body=t[e(317)]||null,t.method&&(this[e(351)]=t[e(318)]),this[e(350)]=t[e(399)]||null,this[e(330)]=!0,this._vid=t[e(411)]||t[e(419)],this[e(469)]=t[e(426)],this[e(434)]=-1,this[e(432)]=t[e(401)],this[e(436)]=t[e(308)],this[e(322)]=t[e(394)],this[e(431)]=t[e(370)]||{},this[e(407)][e(299)](this.TAG_NAME,"【xhrLoader task】, range",this[e(474)]),this._url=JE(t.url,t[e(303)]);const s=Date[e(342)]();return new Promise(((t,s)=>{const i=e;this[i(468)]=t,this[i(404)]=s,this[i(464)]()}))[e(367)]((t=>{const i=e;if(clearTimeout(this[i(453)]),this[i(330)]=!1,!this[i(449)])throw(t=t instanceof tI?t:new tI(this._url,this[i(322)])).startTime=s,t.endTime=Date.now(),t[i(460)]={index:this[i(386)],vid:this[i(447)],priOptions:this[i(431)]},t}))}[jE(464)](){const t=jE;let e=null;if(this._responseType===GE[t(359)]&&this[t(474)]&&this[t(474)][t(490)]>1)if(this[t(385)]){this[t(434)]=-1;const s=1024*this._currentChunkSizeKB,i=this[t(474)][0]+this[t(462)];let r=this[t(474)][1];s<this._range[1]-i&&(r=i+s),e=[i,r],this[t(407)][t(299)](this[t(376)],t(430),this[t(474)],t(466),e)}else e=this[t(474)],this[t(407)][t(299)](this[t(376)],t(430),this._range,t(360),e);this[t(338)](e)}[jE(338)](t){const e=jE;try{this[e(440)]=Date[e(342)]();const s=this._xhr=new XMLHttpRequest;s[e(470)](this._method||e(357),this[e(403)],!0),s[e(426)]=this[e(469)],this._timeout&&(s.timeout=this[e(350)]),s.withCredentials=this[e(452)],s.onload=this[e(391)][e(353)](this),s[e(483)]=this[e(393)][e(353)](this),s[e(329)]=t=>{const s=e;var i,r,n;this[s(481)]=!1;const o=new tI(this._url,this[s(322)],null==t||null===(i=t[s(497)])||void 0===i?void 0:i[s(349)],s(443)+(null==t||null===(r=t.currentTarget)||void 0===r?void 0:r[s(427)])+",statusText,"+(null==t||null===(n=t.currentTarget)||void 0===n?void 0:n[s(429)]));o[s(460)]={index:this[s(386)],range:this[s(474)],vid:this[s(447)],priOptions:this[s(431)]},this._loadCompleteReject(o)},s[e(492)]=t=>{const s=e;this[s(496)]();const i=new tI(this[s(403)],this[s(322)],{status:408},s(399));this[s(432)]&&(i[s(456)]=!0,this[s(432)](i,{index:this[s(386)],range:this[s(474)],vid:this[s(447)],priOptions:this._priOptions})),i[s(460)]={index:this[s(386)],range:this[s(474)],vid:this._vid,priOptions:this[s(431)]},this[s(404)](i)};const i=this._headers||{},r=QE(t);r&&(i.Range=r),i&&Object[e(475)](i).forEach((t=>{s[e(459)](t,i[t])})),this[e(407)][e(299)](this.TAG_NAME,e(500),this[e(474)],e(476),t),s.send(this[e(477)])}catch(s){s[e(460)]={index:this._index,range:t,vid:this[e(447)],priOptions:this[e(431)]},this[e(404)](s)}}_onReadyStatechange(t){const e=jE;2===t.target[e(493)]&&this[e(434)]<0&&(this[e(434)]=Date[e(342)]())}_onLoad(t){const e=jE;var s;const i=t[e(378)][e(427)];if(i<200||i>299){const s=new tI(this[e(403)],null,{...t[e(378)].response,status:i},e(454)+i);return s[e(460)]={index:this[e(386)],range:this[e(474)],vid:this[e(447)],priOptions:this[e(431)]},this[e(404)](s)}let r,n=null,o=!1;const a=(null===(s=this[e(474)])||void 0===s?void 0:s.length)>0?this[e(474)][0]:0;if(this[e(469)]===GE[e(359)]){var h;const s=new Uint8Array(t[e(378)][e(349)]);if(r=a+this[e(462)],s&&s.byteLength>0){this[e(462)]+=s[e(398)];const t=Date[e(342)]()-this[e(440)],i=$E(this[e(462)],t);this[e(387)](WE[e(297)],{speed:i,len:this[e(462)],time:t,vid:this[e(447)],index:this[e(386)],range:[r,a+this[e(462)]],priOptions:this[e(431)]})}n=s,o=!((null===(h=this._range)||void 0===h?void 0:h[e(490)])>1&&this[e(474)][1]&&this[e(462)]<this._range[1]-this._range[0]),this[e(407)][e(299)](this[e(376)],e(445),this[e(474)],", start",r,e(365),a+this[e(462)],e(331),s?s[e(398)]:0,e(424),this[e(462)],e(344),this[e(386)],e(347),o)}else o=!0,n=t[e(378)].response;let c={ok:i>=200&&i<300,status:i,statusText:this[e(311)][e(429)],url:this[e(311)][e(339)],headers:this[e(471)](this[e(311)]),body:this[e(311)].response};this[e(491)]&&(c=this[e(491)](c,this[e(403)])||c),this._onProgress&&this[e(385)](n,o,{index:this[e(386)],vid:this[e(447)],range:[r,a+this[e(462)]],startTime:this[e(440)],endTime:Date[e(342)](),priOptions:this[e(431)]},c),o?(this[e(330)]=!1,this[e(468)]&&this[e(468)](XE(this[e(385)]?null:n,o,c,c[e(366)][e(472)],c.headers[e(410)],this[e(440)],this[e(434)],this[e(386)],this[e(474)],this[e(447)],this._priOptions))):this[e(464)]()}cancel(){const t=jE;if(!this[t(449)])return this[t(449)]=!0,this[t(330)]=!1,super[t(368)](),this._onCancel&&this[t(436)]({index:this[t(386)],range:this._range,vid:this[t(447)],priOptions:this[t(431)]}),this._xhr?this[t(311)][t(375)]():void 0}static[jE(309)](){return typeof XMLHttpRequest!==jE(361)}get[jE(397)](){return this._receivedLength}get running(){return this[jE(481)]}set[jE(422)](t){this._running=t}[jE(471)](t){const e=jE,s=t.getAllResponseHeaders()[e(451)]().split("\r\n"),i={};for(const t of s){const s=t[e(437)](": ");i[s[0][e(418)]()]=s[e(302)](1).join(": ")}return i}}class rI extends Bi{constructor(t,e){const s=jE;super(),$f(this,s(416),zE[s(372)]),$f(this,s(323),[]),$f(this,s(479),[]),$f(this,s(381),null),$f(this,"_config",void 0),this.player=e,this[s(438)]=function(t){const e=jE;return{loaderType:zE[e(372)],retry:0,retryDelay:0,timeout:0,request:null,onTimeout:void 0,onProgress:void 0,onRetryError:void 0,transformRequest:void 0,transformResponse:void 0,transformError:void 0,responseType:GE[e(348)],range:void 0,url:"",params:void 0,method:e(357),headers:{},body:void 0,mode:void 0,credentials:void 0,cache:void 0,redirect:void 0,referrer:void 0,referrerPolicy:void 0,integrity:void 0,onProcessMinLen:0,...t}}(t),(this[s(438)][s(310)]===zE.XHR||!eI[s(309)]())&&(this[s(416)]=zE[s(306)])}[jE(340)](){const t=jE;this[t(323)]=[],this._alive=[],this[t(381)]=null}[jE(320)](){const t=jE;return this[t(416)]===zE[t(372)]}static[jE(377)](){return eI[jE(309)]()}[jE(501)](t){const e=jE;let s=arguments[e(490)]>1&&void 0!==arguments[1]?arguments[1]:{};typeof t!==e(423)&&t?s=t:s[e(419)]=t||s[e(419)]||this[e(438)][e(419)],s=Object.assign({},this[e(438)],s),s[e(303)]&&(s[e(303)]=Object[e(343)]({},s[e(303)])),s[e(366)]&&KE(s[e(366)])&&(s[e(366)]=Object.assign({},s[e(366)])),s[e(317)]&&KE(s.body)&&(s[e(317)]=Object[e(343)]({},s.body)),s[e(319)]&&(s=s[e(319)](s)||s);const i=new sI(this[e(416)],s,this[e(407)]);return i.loader.on(WE.REAL_TIME_SPEED,(t=>{this[e(387)](WE.REAL_TIME_SPEED,t)})),this._queue[e(355)](i),1===this[e(323)][e(490)]&&(!this[e(381)]||!this[e(381)].running)&&this._processTask(),i.promise}async[jE(496)](){const t=jE,e=this._queue[t(461)]((e=>e[t(496)]()))[t(417)](this[t(479)][t(461)]((e=>e[t(496)]())));this[t(381)]&&e.push(this[t(381)].cancel()),this._queue=[],this[t(479)]=[],await Promise[t(439)](e),await function(){let t=arguments[Me(641)]>0&&void 0!==arguments[0]?arguments[0]:0;return new Promise((e=>setTimeout(e,t)))}()}_processTask(){const t=jE;if(this[t(381)]=this[t(323)].shift(),!this._currentTask)return;this._currentTask[t(412)]&&this[t(479)][t(355)](this[t(381)]);const e=this._currentTask.exec().catch((t=>{}));e&&typeof e[t(420)]===t(405)&&e.finally((()=>{const e=t;var s,i;null!==(s=this[e(381)])&&void 0!==s&&s[e(412)]&&(null===(i=this._alive)||void 0===i?void 0:i[e(490)])>0&&(this[e(479)]=this._alive.filter((t=>t&&t!==this[e(381)]))),this[e(354)]()}))}}const nI=aI;!function(t,e){const s=aI,i=t();for(;;)try{if(822443===-parseInt(s(448))/1+parseInt(s(465))/2*(parseInt(s(452))/3)+parseInt(s(454))/4*(-parseInt(s(461))/5)+-parseInt(s(460))/6+-parseInt(s(455))/7*(-parseInt(s(468))/8)+-parseInt(s(466))/9+parseInt(s(473))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(hI);const oI={NETWORK:nI(446),NETWORK_TIMEOUT:nI(462),NETWORK_FORBIDDEN:nI(464),OTHER:nI(472),MANIFEST:nI(449),HLS:nI(445),DEMUX:nI(471)};function aI(t,e){const s=hI();return(aI=function(t,e){return s[t-=445]})(t,e)}function hI(){const t=["344LrKhvU","11199951isqlxH","NETWORK","OTHER","originError","ext","1900596nIuiDV","37685rCQARn","network_timeout","response","network_forbidden","1745132gPGloL","7157421nawNSX","NETWORK_TIMEOUT","8FKXlxS","message","status","demux","other","10381730RTBFWR","hls","network","isTimeout","928072ZElWEb","manifest","create","url","3KUVrIR","errorMessage"];return(hI=function(){return t})()}class cI extends Error{constructor(t,e,s,i,r){const n=nI;super(r||(null==s?void 0:s[n(469)])),this.errorType=t===oI[n(467)]?oI.NETWORK:t,this[n(458)]=s,this[n(459)]=i,this[n(453)]=this[n(469)]}static[nI(450)](t,e,s,i,r){return t instanceof cI?t:(t instanceof Error&&(s=t,t=""),t||(t=oI[nI(457)]),new cI(t,e,s,i,r))}static[nI(446)](t){const e=nI;var s;return new cI(null!=t&&t[e(447)]?oI[e(467)]:oI[e(456)],null,t instanceof Error?t:null,{url:null==t?void 0:t[e(451)],response:null==t?void 0:t[e(463)],httpCode:null==t||null===(s=t[e(463)])||void 0===s?void 0:s[e(470)]})}}const lI=bI;function dI(){const t=["isSegmentEncrypted","4082035SpxLGq","hasAudio","isArray","start","8rwCXSL","length","com.microsoft.playready","endPartIndex","PLAYREADY","URL","344450KkXmCH","Audio","urn:uuid:94ce86fb-07ff-4f43-adb8-93d2fa968ca2","partHoldBack","videoCodec","212569EGNbjw","isValidKeySystem","height","channels","com.widevine.alpha","initSegment","url","skippedSegments","5280651UoAvTB","targetDuration","independent","118nzrcES","partIndex","concat","type","name","setIVFromSN","4bfVtOo","segments","isSupported","com.apple.streamingkeydelivery","version","_HLS_skip","end","subtitleStreams","isInitSegment","forced","dataTime","width","VIDEO","clone","startCC","msn","SubTitle","_HLS_msn","endCC","audioCodec","audioGroup","bitrate","SAMPLE-AES-CTR","5089721ooBarn","org.w3.clearkey","endSN","mediaType","Video","textCodec","canBlockReload","lowLatency","indexOf","skip","CLEAR_KEY","totalDuration","SUBTITLE","byteRange","autoSelect","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","isMaster","AES-128","keyFormat","11823nuSslD","set","default","startSN","toString","canSkipDateRanges","198rFRjyd","closedCaptionsStream","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95","searchParams","parentUrl","part","2984982qMNKBq","duration","keyFormatVersions","FAIRPLAY","streams","hasVideo","method","setByteRange","WIDEVINE"];return(dI=function(){return t})()}!function(t,e){const s=bI,i=t();for(;;)try{if(573480===-parseInt(s(290))/1+-parseInt(s(301))/2*(-parseInt(s(253))/3)+parseInt(s(211))/4*(parseInt(s(275))/5)+parseInt(s(265))/6+-parseInt(s(234))/7+-parseInt(s(279))/8*(-parseInt(s(298))/9)+parseInt(s(285))/10*(-parseInt(s(259))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(dI);class uI{constructor(){const t=bI;$f(this,t(215),0),$f(this,t(269),[]),$f(this,t(250),!0)}}const pI={Audio:"AUDIO",Video:lI(223),SubTitle:lI(246),ClosedCaptions:"CLOSED-CAPTIONS"},fI={CLEAR_KEY:lI(235),FAIRPLAY:[lI(287),lI(214)],WIDEVINE:[lI(249),lI(294),"com.widevine"],PLAYREADY:[lI(261),lI(281)]};function mI(t){const e=lI;let s=[];for(let i=0;i<t[e(280)];i++)Array[e(277)](t[i])?s=s[e(303)](mI(t[i])):s.push(t[i]);return s}class gI{constructor(){const t=lI;$f(this,"id",0),$f(this,t(296),""),$f(this,t(255),!1),$f(this,t(248),!1),$f(this,t(220),!1),$f(this,"group",""),$f(this,t(305),""),$f(this,"lang",""),$f(this,t(212),[]),$f(this,t(236),0)}}class AI extends gI{constructor(){const t=lI;super(...arguments),$f(this,t(237),pI[t(286)]),$f(this,t(293),0)}}class yI extends gI{constructor(){const t=lI;super(...arguments),$f(this,t(237),pI[t(227)])}}function bI(t,e){const s=dI();return(bI=function(t,e){return s[t-=211]})(t,e)}class vI{constructor(){const t=lI;$f(this,"id",0),$f(this,t(232),0),$f(this,t(222),0),$f(this,t(292),0),$f(this,t(305),""),$f(this,t(296),""),$f(this,t(230),""),$f(this,t(289),""),$f(this,t(239),""),$f(this,t(231),""),$f(this,"audioStreams",[]),$f(this,t(218),[]),$f(this,t(260),[])}}class SI{constructor(){const t=lI;$f(this,t(215),0),$f(this,t(296),""),$f(this,t(304),""),$f(this,t(225),0),$f(this,t(229),0),$f(this,t(256),0),$f(this,t(236),0),$f(this,t(245),0),$f(this,t(299),0),$f(this,"partTargetDuration",0),$f(this,"canSkipUntil",0),$f(this,t(258),!1),$f(this,t(297),0),$f(this,t(240),!1),$f(this,t(288),0),$f(this,"live",!0),$f(this,t(241),!1),$f(this,t(282),0),$f(this,t(212),[]),$f(this,"dateRanges",{}),$f(this,t(297),0)}}class wI{constructor(t){const e=lI;$f(this,"sn",0),$f(this,"cc",0),$f(this,"url",""),$f(this,e(263),""),$f(this,"title",""),$f(this,"start",0),$f(this,e(266),0),$f(this,e(221),""),$f(this,"key",null),$f(this,e(247),null),$f(this,e(219),!1),$f(this,e(295),null),$f(this,"isLast",!1),$f(this,e(276),!1),$f(this,"hasVideo",!1),$f(this,e(300),!1),$f(this,e(302),0),this[e(263)]=t}get[lI(217)](){const t=lI;return this[t(278)]+this[t(266)]}setTrackExist(t,e){const s=lI;this[s(270)]=t,this[s(276)]=e}[lI(272)](t,e){const s=lI;this[s(247)]=[0];const i=t.split("@");1===i[s(280)]&&e&&e[s(247)]?(this[s(247)][0]=e[s(247)][1]||0,this[s(247)][0]&&(this[s(247)][0]+=1)):this[s(247)][0]=parseInt(i[1]),this[s(247)][1]=this.byteRange[0]+parseInt(i[0])-1}}class EI{constructor(t){const e=lI;$f(this,e(271),""),$f(this,e(296),""),$f(this,"iv",null),$f(this,e(252),""),$f(this,e(267),""),t instanceof EI&&(this.method=t[e(271)],this[e(296)]=t[e(296)],this[e(252)]=t[e(252)],this[e(267)]=t[e(267)],t.iv&&(this.iv=new Uint8Array(t.iv)))}[lI(224)](t){const e=lI,s=new EI(this);return null!=t&&s[e(306)](t),s}[lI(306)](t){const e=lI;if(!this.iv&&this[e(271)]===e(251)&&"number"==typeof t&&this[e(296)]){this.iv=new Uint8Array(16);for(let e=12;e<16;e++)this.iv[e]=t>>8*(15-e)&255}}isSegmentEncrypted(){const t=lI,{method:e}=this;return e===t(251)}[lI(291)](){const t=lI;if(!(mI([fI[t(244)],fI[t(268)],fI[t(273)],fI[t(283)]])[t(242)](this[t(252)])>-1))return!1;return!!(["SAMPLE-AES","SAMPLE-AES-CENC",t(233)].indexOf(this.method)>-1)}[lI(213)](){const t=lI;return!!this[t(271)]&&(!!this[t(274)]()||!!this[t(291)]())}}class II{constructor(t,e,s){const i=lI;this[i(226)]=t,this[i(264)]=e,this[i(243)]=s}addDirectives(t){const e=lI,s=new(self[e(284)])(t);return void 0!==this[e(226)]&&s.searchParams[e(254)](e(228),this[e(226)].toString()),this[e(264)]&&s[e(262)][e(254)]("_HLS_part",this[e(264)][e(257)]()),this[e(243)]&&s[e(262)].set(e(216),this.skip),s.href}}function TI(t,e){const s=kI();return(TI=function(t,e){return s[t-=420]})(t,e)}function kI(){const t=["trim","2440VughAz","4353727oiVzUM","CLASS","call","getTime","test","5226345NZuOMw","filter","replace","pre","X-ASSET-LIST","CUE","_endDate","toLowerCase","post","3816956vwvnDB","length","reduce","DURATION","X-ASSET-URI","split","7776CVLpLV","hasOwnProperty","EXT-X-","END_ON_NEXT","prototype","isFinite","12455130iuRgxA","YES","1718712LcmkCh","8OxDfHa","92aOlpCf","9929MiIpYS","exec","11UrAhnL","_startDate"];return(kI=function(){return t})()}!function(t,e){const s=TI,i=t();for(;;)try{if(514202===-parseInt(s(427))/1*(parseInt(s(426))/2)+-parseInt(s(424))/3+parseInt(s(447))/4+parseInt(s(432))/5*(parseInt(s(453))/6)+parseInt(s(433))/7*(parseInt(s(425))/8)+parseInt(s(438))/9+-parseInt(s(422))/10*(parseInt(s(429))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(kI);const _I=/^#(EXT[^:]*)(?::(.*))?$/,CI=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g,RI=/^(?:[a-zA-Z0-9+\-.]+:)?\/\//,DI=/^((?:[a-zA-Z0-9+\-.]+:)?\/\/[^/?#]*)?([^?#]*\/)?/;function LI(t){const e=TI,s=t.match(_I);if(s&&s[1])return[s[1][e(440)](e(455),""),s[2]]}function xI(t){const e=TI,s={};let i=CI.exec(t);for(;i;)s[i[1]]=i[2]||i[3],i=CI[e(428)](t);return s}function PI(t,e){const s=TI;if(!e||!t||RI[s(437)](t))return t;const i=DI[s(428)](e);return i?"/"===t[0]?i[1]+t:i[1]+i[2]+t:t}const BI={audio:[/^mp4a/,/^vorbis$/,/^opus$/,/^flac$/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av1$/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function MI(t,e){const s=TI,i=BI[t];if(i&&e&&e[s(448)])for(let t=0;t<i.length;t++)for(let r=0;r<e[s(448)];r++)if(i[t].test(e[r]))return e[r]}function FI(t,e){const s=TI;let i;if(e)for(const r in e)if(Object[s(420)][s(454)][s(435)](e,r)&&t[r]!==e[r]){i=r;break}let r=null;t[s(450)]&&(r=parseFloat(t.DURATION),Number[s(421)](r)?t[s(444)]&&(r=(t._endDate[s(436)]()-t[s(430)][s(436)]())/1e3):r=null);const n=function(t,e){const s=TI;return(t?t[s(452)](/[ ,]+/):[])[s(449)](((t,e)=>(t[e[s(445)]()]=!0,t)),e)}(t[s(443)]||t["X-CUE"],{pre:!1,post:!1,once:!1});return!!t.ID&&!i&&Number.isFinite(t[s(430)].getTime())&&(null===r||r>=0)&&(!(t[s(456)]===s(423))||!!t[s(434)])&&(!t[s(443)]||!n[s(441)]&&!n[s(446)]||n[s(441)]!==n.post)&&(!("com.apple.hls.interstitial"===t.CLASS)||s(451)in t||s(442)in t)}function OI(){const t=["push","205LdxqBt","height","LANGUAGE","AUDIO","MEDIA","audioStreams","forEach","lang","26097973VTQkIw","URI","2129155yIoqcL","1075788HGHeHD","isNaN","GROUP-ID","name","10JmzctU","AVERAGE-BANDWIDTH","2362923puBZIt","AUTOSELECT","STREAM-INF","RESOLUTION","subtitleGroup","CHANNELS","default","textCodec","version","76338qCoiin","DEFAULT","bitrate","1841910CHvhIL","TYPE","CODECS","audioGroup","SUBTITLES","autoSelect","streams","url","split","YES","length","511IJNpaP","8BUSSZt","subtitleStreams","channels","NAME","BANDWIDTH","filter","group","1874CMyODF","audioCodec"];return(OI=function(){return t})()}function UI(t,e){const s=OI();return(UI=function(t,e){return s[t-=449]})(t,e)}function NI(t,e){const s=jI();return(NI=function(t,e){return s[t-=252]})(t,e)}function jI(){const t=["toUpperCase","duration","146893jceyeI","154517UKPgbL","50ZsjGtB",".ts","38475oUgfwk","KEYFORMAT","DISCONTINUITY-SEQUENCE","partIndex","preloadHint","version","key","31396qvTKsU","partTargetDuration","SKIPPED-SEGMENTS","CAN-SKIP-UNTIL","live","11372DIxWbR","dataTime","685rsWhkr","canBlockReload","PROGRAM-DATE-TIME","75wzIuvE","independent","partHoldBack","dateRanges","397760Pqxrgm","DATERANGE","push","YES","PART","CAN-SKIP-DATERANGES","isLast","ENDLIST","filter","126QsEMOF","END_DATE","test","clone","type","DURATION","PRELOAD-HINT","isSupported","targetDuration","URI","skippedSegments","setByteRange","_endDate","EXTINF","CAN-BLOCK-RELOAD","segments","KEY","start","split","initSegment","method","_startDate","METHOD","BYTERANGE","startCC","START-DATE","endCC","title","PART-TARGET","SKIP","41964ORoTxf","MEDIA-SEQUENCE","lowLatency"," is not supported","url","totalDuration","TARGETDURATION","nextSN","length","TYPE"];return(jI=function(){return t})()}!function(t,e){const s=UI,i=t();for(;;)try{if(530794===parseInt(s(468))/1*(-parseInt(s(476))/2)+-parseInt(s(457))/3+-parseInt(s(490))/4+-parseInt(s(479))/5*(parseInt(s(454))/6)+-parseInt(s(489))/7*(-parseInt(s(469))/8)+-parseInt(s(496))/9+-parseInt(s(494))/10*(-parseInt(s(487))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(OI),function(t,e){const s=NI,i=t();for(;;)try{if(227434===parseInt(s(299))/1+-parseInt(s(310))/2*(parseInt(s(320))/3)+parseInt(s(315))/4*(parseInt(s(317))/5)+-parseInt(s(287))/6*(-parseInt(s(257))/7)+-parseInt(s(324))/8+-parseInt(s(303))/9*(-parseInt(s(301))/10)+-parseInt(s(300))/11)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(jI);const VI=GI;function zI(){const t=["70101XeUkod","6cTBeoH","includes","256UmAtyT","isMediaPlaylist","55zQpmTz","366737hwFlSM","184mrXmeE","48993ElUbhS","381948CCdxjd","692610FYeEIR","#EXTINF:","#EXTM3U","parse","length","#EXT-X-TARGETDURATION:","1918560VdtwAU","1145505qmdarC"];return(zI=function(){return t})()}function GI(t,e){const s=zI();return(GI=function(t,e){return s[t-=345]})(t,e)}!function(t,e){const s=GI,i=t();for(;;)try{if(552443===parseInt(s(362))/1+-parseInt(s(351))/2+-parseInt(s(361))/3*(-parseInt(s(360))/4)+-parseInt(s(352))/5*(-parseInt(s(354))/6)+parseInt(s(359))/7+-parseInt(s(356))/8*(parseInt(s(353))/9)+parseInt(s(345))/10*(parseInt(s(358))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(zI);class WI{static[VI(348)](){const t=VI;let e=arguments[t(349)]>0&&void 0!==arguments[0]?arguments[0]:"",s=arguments[t(349)]>1?arguments[1]:void 0,i=arguments[t(349)]>2?arguments[2]:void 0;if(!e.includes(t(347)))throw new Error("Invalid m3u8 file");const r=function(t){const e=TI;return t.split(/[\r\n]/).map((t=>t[e(431)]()))[e(439)](Boolean)}(e);return WI[t(357)](e)?function(t,e,s){const i=NI,r=new SI;r[i(291)]=e;let n,o=new wI(e),a=null,h=null,c=0,l=0,d=0,u=0,p=!1,f=0;for(;n=t[u++];){if("#"!==n[0]){if(r[i(289)]){l++;continue}o.sn=l,o.cc=d,o.url=PI(n,e),h&&(o[i(309)]=h[i(260)](l)),a&&(o[i(276)]=a),r.segments[i(326)](o),o=new wI(e),l++;continue}const t=LI(n);if(!t)continue;const[u,m]=t;switch(u){case"VERSION":r[i(308)]=parseInt(m);break;case"PLAYLIST-TYPE":r[i(261)]=null==m?void 0:m[i(297)]();break;case i(293):r[i(265)]=parseFloat(m);break;case"PART-INF":{s&&(r[i(289)]=!0);const t=xI(m);t["PART-TARGET"]&&(r[i(311)]=parseFloat(t[i(285)]))}break;case"SERVER-CONTROL":{const t=xI(m);r[i(318)]="YES"===t[i(271)],r[i(322)]=parseFloat(t["PART-HOLD-BACK"]||0),r.canSkipUntil=parseFloat(t[i(313)]||0),r.canSkipDateRanges=r.canSkipUntil>0&&t[i(253)]===i(327)}break;case i(255):p=!0;break;case i(288):l=r.startSN=parseInt(m);break;case i(305):d=r[i(281)]=parseInt(m);break;case"DISCONTINUITY":d++;break;case i(280):o.setByteRange(m,r[i(272)][r[i(272)][i(295)]-1]);break;case i(252):{if(!r[i(289)])break;const t=xI(m);o.duration=parseFloat(t[i(262)]),o[i(321)]="YES"===t.INDEPENDENT,o.sn=l,o.cc=d,o[i(306)]=f,o[i(274)]=c,o[i(298)]=parseFloat(t.DURATION),c+=o[i(298)],o[i(291)]=PI(t.URI,e),h&&(o[i(309)]=h[i(260)](l)),a&&(o[i(276)]=a),r[i(272)][i(326)](o),o=new wI(e),f++}break;case i(263):{const t=xI(m);if(r[i(307)]=t,t[i(296)]===i(252)&&t.URI){const e=t[i(266)].split(i(302))[0][i(275)]("-");r[i(294)]=e[3],r.nextIndex=e[e[i(295)]-1]}}break;case i(319):o[i(316)]=m;break;case i(270):{if(r.lowLatency){f=0;break}const[t,e]=m[i(275)](",");o.start=c,o.duration=parseFloat(t),c+=o[i(298)],o[i(284)]=e}break;case i(273):{const t=xI(m);if("NONE"===t[i(279)]){h=null;break}if(h=new EI,h[i(277)]=t[i(279)],h[i(291)]=/^blob:/[i(259)](t.URI)?t.URI:PI(t.URI,e),h.keyFormat=t[i(304)]||"identity",h.keyFormatVersions=t.KEYFORMATVERSIONS,!h[i(264)]())throw new Error("encrypt "+t[i(279)]+"/"+t[i(304)]+i(290));if(t.IV){let e=t.IV.slice(2);e=(1&e[i(295)]?"0":"")+e,h.iv=new Uint8Array(e[i(295)]/2);for(let t=0,s=e[i(295)]/2;t<s;t++)h.iv[t]=parseInt(e.slice(2*t,2*t+2),16)}}break;case"MAP":{const t=xI(m);o[i(291)]=PI(t.URI,e),t[i(280)]&&o[i(268)](t[i(280)]),o.isInitSegment=!0,o.sn=0,h&&(o[i(309)]=h[i(260)](0)),a=o,o=new wI(e)}break;case i(286):{const t=xI(m),e=parseInt(t[i(312)],10);e<=Number.MAX_SAFE_INTEGER&&(r[i(267)]+=e,l+=e)}break;case i(325):{const t=xI(m),e=r[i(323)][t.ID];t[i(278)]=e?e[i(278)]:new Date(t[i(282)]);const s=(null==e?void 0:e[i(269)])||new Date(t[i(258)]);Number.isFinite(s)&&(t._endDate=s),(FI(t,e)||r[i(267)])&&(r[i(323)][t.ID]=t)}}}r.segments=r[i(272)][i(256)]((t=>0!==t[i(298)]));const m=r[i(272)][r[i(272)][i(295)]-1];return m&&(p&&(m[i(254)]=!0),r.endSN=m.sn,r.endPartIndex=m[i(306)]),p&&(r[i(314)]=!1),r[i(292)]=c,r[i(283)]=d,r}(r,s,i):function(t,e){const s=UI,i=new uI;let r,n=0;const o=[],a=[];for(;r=t[n++];){const h=LI(r);if(!h)continue;const[c,l]=h;if("VERSION"===c)i[s(453)]=parseInt(l);else if(c===s(483)&&l){const t=xI(l);let i;switch(t[s(458)]){case s(482):i=new AI;break;case"SUBTITLES":i=new yI;break;default:i=new gI}i[s(464)]=PI(t[s(488)],e),i[s(451)]=t[s(455)]===s(466),i[s(462)]=t[s(497)]===s(466),i[s(475)]=t[s(492)],i[s(493)]=t[s(472)],i[s(486)]=t[s(481)],t.CHANNELS&&(i.channels=Number(t[s(450)].split("/")[0]),Number[s(491)](i[s(471)])&&(i[s(471)]=0)),t[s(458)]===s(482)&&t.URI&&o[s(478)](i),t[s(458)]===s(461)&&a.push(i)}else if(c===s(498)&&l){const r=new vI,o=xI(l);if(r[s(456)]=parseInt(o[s(495)]||o[s(473)]),r[s(493)]=o.NAME,r[s(464)]=PI(t[n++],e),o[s(499)]){const[t,e]=o[s(499)][s(465)]("x");r.width=parseInt(t),r[s(480)]=parseInt(e)}if(o[s(459)]){const t=o.CODECS.split(/[ ,]+/)[s(474)](Boolean);r.videoCodec=MI("video",t),r[s(477)]=MI("audio",t),r[s(452)]=MI("text",t)}r[s(460)]=o[s(482)],r.subtitleGroup=o[s(461)],i.streams[s(478)](r)}}return i.streams[s(485)](((t,e)=>{t.id=e})),o[s(467)]&&(o.forEach(((t,e)=>{t.id=e})),i[s(463)][s(485)]((t=>{const e=s;t[e(460)]&&(t[e(484)]=o[e(474)]((s=>s[e(475)]===t.audioGroup)))}))),a[s(467)]&&(a[s(485)](((t,e)=>{t.id=e})),i[s(463)][s(485)]((t=>{const e=s;t[e(449)]&&(t[e(470)]=a[e(474)]((s=>s[e(475)]===t[e(449)])))}))),i}(r,s)}static[VI(357)](t){const e=VI;return t[e(355)](e(346))||t[e(355)](e(350))}}const HI=KI;function KI(t,e){const s=YI();return(KI=function(t,e){return s[t-=255]})(t,e)}!function(t,e){const s=KI,i=t();for(;;)try{if(894390===parseInt(s(278))/1+-parseInt(s(257))/2+parseInt(s(269))/3+-parseInt(s(280))/4+-parseInt(s(268))/5*(parseInt(s(260))/6)+parseInt(s(264))/7*(parseInt(s(299))/8)+parseInt(s(288))/9)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(YI);class QI{constructor(t){const e=KI;$f(this,e(287),((t,s)=>{const i=e,{response:r,options:n}=t,{firstByteTime:o,startTime:a,endTime:h,contentLength:c}=n||{},l=h-a;this[i(308)][i(261)](vt[i(297)],{time:l,byteLength:c,url:s}),this[i(308)][i(261)](vt[i(272)],{url:s,elapsed:l||0}),this[i(308)].emit(vt.TTFB,{url:s,responseUrl:r[i(289)],elapsed:o-a}),this[i(308)][i(261)](vt.LOAD_RESPONSE_HEADERS,{headers:r[i(291)],url:s})})),$f(this,"_onLoaderRetry",((t,s)=>{const i=e;this[i(308)][i(261)](vt.LOAD_RETRY,{error:cI[i(273)](t),retryTime:s})})),this.hls=t,this[e(265)]=t[e(265)],this[e(305)]="HlsManifestLoader",this._useLowLatency=t[e(284)][e(307)],this[e(298)]=null;const{retryCount:s,retryDelay:i,manifestLoadTimeout:r,fetchOptions:n}=this.hls[e(284)];this._loader=new rI({...n,responseType:e(286),retry:s,retryDelay:i,timeout:r,onRetryError:this._onLoaderRetry},this[e(265)]),this[e(292)]=new rI({...n,responseType:e(286),retry:s,retryDelay:i,timeout:r,onRetryError:this[e(275)]},this[e(265)]),this[e(290)]=new rI({...n,responseType:e(286),retry:s,retryDelay:i,timeout:r,onRetryError:this._onLoaderRetry},this[e(265)])}async destroy(){const t=KI;await this[t(285)](),this[t(292)]&&(this[t(292)][t(283)](),this._audioLoader=null),this[t(290)]&&(this[t(290)].destroy(),this[t(290)]=null),this[t(274)]&&(this[t(274)][t(283)](),this._loader=null)}async[HI(259)](t,e,s){const i=HI;this[i(265)].debugLog(this[i(305)],"load()",t,e,s);const r=[this[i(274)][i(259)](t)];let n,o,a,h,c,l;e&&r[i(296)](this[i(292)][i(259)](e)),s&&r[i(296)](this._subtitleLoader[i(259)](s));try{const[f,m,g]=await Promise.all(r);if(!f)return[];var d,u,p;if(this[i(287)](f,t),n=f[i(293)],h=f.response[i(289)]||t,e)o=null==m?void 0:m.data,a=null==g?void 0:g[i(293)],c=(null==m||null===(d=m[i(255)])||void 0===d?void 0:d[i(289)])||e,l=(null==g||null===(u=g[i(255)])||void 0===u?void 0:u[i(289)])||s,o&&this._emitOnLoaded(m,e),a&&this[i(287)](g,s);else a=null==m?void 0:m.data,l=(null==m||null===(p=m.response)||void 0===p?void 0:p.url)||s,a&&this[i(287)](m,s)}catch(t){throw cI[i(273)](t)}const{onPreM3U8Parse:f}=this[i(308)][i(284)];let m,g,A;try{var y;if(f&&(n=f(n)||n,o&&(o=f(o,!0)||o),a&&(a=f(a,!0)||a)),m=WI[i(270)](n,h,this[i(300)]),!1===(null===(y=m)||void 0===y?void 0:y[i(303)])&&m[i(277)]&&!m[i(277)][i(282)])throw new Error("empty segments list");o&&(g=WI[i(270)](o,c,this[i(300)])),a&&(A=WI.parse(a,l,this[i(300)]))}catch(t){throw new cI(oI[i(294)],oI[i(262)],t)}return m&&(m[i(302)]?this[i(308)][i(261)](vt[i(258)],{playlist:m}):(this[i(300)]&&(m[i(281)]?this[i(266)]=new II(m[i(304)],m[i(263)],""):this.deliveryDirectives=null),this[i(308)][i(261)](vt[i(306)],{playlist:m}))),[m,g,A]}[HI(301)](t,e){const s=HI,{onPreM3U8Parse:i}=this[s(308)].config;let r;try{var n;if(i&&(t=i(t)||t),r=WI[s(270)](t,e,this._useLowLatency),!1===(null===(n=r)||void 0===n?void 0:n[s(303)])&&r.segments&&!r[s(277)][s(282)])throw new Error(s(279))}catch(t){throw new cI(oI.MANIFEST,oI.HLS,t)}return r&&r[s(302)],[r]}[HI(256)](t,e,s,i,r,n){const o=HI;clearTimeout(this[o(298)]),n=n||3e3;let a=this[o(308)][o(284)][o(276)];const h=async()=>{const c=o;clearTimeout(this[c(298)]);let l=t;try{this.deliveryDirectives&&(l=this[c(266)][c(267)](t));const r=await this[c(259)](l,e,s);if(!r[0])return;a=this.hls[c(284)][c(276)],i(r[0],r[1],r[2])}catch(t){a--,a<=0&&r(t)}this._timer=setTimeout(h,n)};this[o(298)]=setTimeout(h,n)}stopPoll(){const t=HI;return clearTimeout(this[t(298)]),this[t(295)]()}[HI(295)](){const t=HI;return Promise[t(271)]([this[t(274)][t(295)](),this._audioLoader[t(295)]()])}}function YI(){const t=["parse","all","LOAD_COMPLETE","network","_loader","_onLoaderRetry","pollRetryCount","segments","1364039oBRgKU","empty segments list","6677320DhUdFo","canBlockReload","length","destroy","config","stopPoll","text","_emitOnLoaded","1712331DNZhEB","url","_subtitleLoader","headers","_audioLoader","data","MANIFEST","cancel","push","SPEED","_timer","7075952QEhttY","_useLowLatency","parseText","isMaster","live","nextSN","TAG_NAME","HLS_LEVEL_LOADED","useLowLatency","hls","response","poll","349886nLXQxD","HLS_MANIFEST_LOADED","load","5100YviqBF","emit","HLS","nextIndex","14FDqCNK","player","deliveryDirectives","addDirectives","3860yubidR","214731tyLprW"];return(YI=function(){return t})()}var qI=JI;function JI(t,e){var s=ZI();return(JI=function(t,e){return s[t-=399]})(t,e)}!function(t,e){for(var s=JI,i=t();;)try{if(571184===-parseInt(s(420))/1*(-parseInt(s(419))/2)+-parseInt(s(406))/3*(parseInt(s(407))/4)+-parseInt(s(411))/5*(-parseInt(s(414))/6)+parseInt(s(410))/7*(parseInt(s(413))/8)+-parseInt(s(405))/9*(parseInt(s(402))/10)+-parseInt(s(416))/11*(-parseInt(s(399))/12)+-parseInt(s(400))/13)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(ZI);class XI{constructor(){var t=JI;$f(this,t(418),[]),$f(this,t(421),[])}[qI(401)](t,e){var s=qI;t&&e&&(this[s(421)][s(403)](8e3*t/e),this[s(421)]=this[s(421)].slice(-3))}[qI(408)](t,e){var s=qI;t&&e&&(this[s(418)][s(403)](8e3*t/e),this._chunkSpeeds=this[s(418)][s(417)](-100))}[qI(412)](){var t=qI;return this[t(418)][t(409)]||this._speeds.length?this[t(421)][t(409)]?this[t(421)][t(415)](((t,e)=>t+e))/this[t(421)][t(409)]:this[t(418)].reduce(((t,e)=>t+e))/this[t(418)][t(409)]:0}[qI(422)](){var t=qI;return this[t(418)][t(409)]||this._speeds[t(409)]?this[t(421)][t(409)]?this[t(421)][this[t(421)].length-1]:this[t(418)][this[t(418)][t(409)]-1]:0}[qI(404)](){var t=qI;this[t(418)]=[],this[t(421)]=[]}}function ZI(){var t=["addChunkRecord","length","14rQLmXE","1281365mISwBp","getAvgSpeed","3836440FgUaNB","6myGBDD","reduce","14157elafYX","slice","_chunkSpeeds","2212674tUVlyL","1mCHfdq","_speeds","getLatestSpeed","5196qQMtfI","17477759DjQtHw","addRecord","1343620ZNfBBH","push","reset","63MpEamE","9ujOJNL","30440RmeejC"];return(ZI=function(){return t})()}const $I=tT;function tT(t,e){const s=sT();return(tT=function(t,e){return s[t-=376]})(t,e)}!function(t,e){const s=tT,i=t();for(;;)try{if(446575===parseInt(s(414))/1*(-parseInt(s(423))/2)+parseInt(s(403))/3+parseInt(s(412))/4*(parseInt(s(384))/5)+parseInt(s(411))/6+parseInt(s(420))/7*(parseInt(s(382))/8)+parseInt(s(383))/9+parseInt(s(389))/10*(-parseInt(s(405))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(sT);class eT{constructor(t){const e=tT;$f(this,e(393),((t,s)=>{const i=e,{data:r,response:n,options:o}=t,{firstByteTime:a,startTime:h,endTime:c,contentLength:l}=o||{},d=c-h;this._bandwidthService.addRecord(l||r[i(376)],d),this[i(379)][i(404)](vt[i(396)],{time:d,byteLength:l,url:s}),this[i(379)][i(404)](vt[i(421)],{url:s,elapsed:d||0}),this[i(379)].emit(vt[i(402)],{url:s,responseUrl:n[i(388)],elapsed:a-h}),this[i(379)].emit(vt.LOAD_RESPONSE_HEADERS,{headers:n.headers,url:s})})),$f(this,"_onLoaderRetry",((t,s)=>{const i=e;this.hls.emit(vt[i(409)],{error:cI.network(t),retryTime:s})})),this.hls=t,this.player=t.player,this[e(387)]=null,this[e(406)]={},this._keyCache={},this[e(385)]=new XI;const{retryCount:s,retryDelay:i,loadTimeout:r,fetchOptions:n}=this[e(379)].config;this._segmentLoader=new rI({...n,responseType:e(408),retry:s,retryDelay:i,timeout:r,onRetryError:this._onLoaderRetry},this[e(415)]),this[e(380)]=new rI({...n,responseType:e(408),retry:s,retryDelay:i,timeout:r,onRetryError:this[e(407)]},this[e(415)]),this[e(378)]=new rI({...n,responseType:e(408),retry:s,retryDelay:i,timeout:r,onRetryError:this[e(407)]},this.player)}[$I(417)](){const t=$I;this.reset(),this[t(378)]&&(this[t(378)][t(417)](),this[t(378)]=null),this[t(380)]&&(this[t(380)][t(417)](),this[t(380)]=null),this._segmentLoader&&(this._segmentLoader.destroy(),this[t(386)]=null)}speedInfo(){const t=$I;return{speed:this[t(385)][t(390)](),avgSpeed:this[t(385)][t(392)]()}}[$I(400)](){this[$I(399)]()}load(t,e,s){const i=$I;let r=arguments[i(397)]>3&&void 0!==arguments[3]?arguments[3]:s;const n=[];return t&&(n[0]=this[i(377)](t,s)),e&&(n[1]=this.loadAudioSegment(e,r)),Promise[i(410)](n)}[$I(377)](t,e){const s=$I;return this[s(394)](this[s(386)],t,e)}loadAudioSegment(t,e){return this[$I(394)](this._audioSegmentLoader,t,e)}async[$I(394)](t,e,s){const i=$I;var r;let n,o,a,h,c;const l=[];this.hls[i(404)](vt.LOAD_START,{url:e[i(388)]});const d={};if(Array.isArray(e[i(395)])&&2===e[i(395)].length&&(d.range=e[i(395)]),l[0]=t.load(e.url,d),s&&e[i(419)]){var u;const s=e.initSegment[i(388)];n=this[i(406)][s],!n&&(this.hls.emit(vt[i(418)],{url:s}),l[1]=t[i(413)](s)[i(416)]((t=>{const e=i;if(t){Object.keys(this[e(406)])>30&&(this[e(406)]={}),n=this[e(406)][s]=t.data,this[e(393)](t,s)}})));const r=null===(u=e[i(419)][i(381)])||void 0===u?void 0:u.url;r&&(c=e[i(419)][i(381)].iv,h=this[i(401)][r],!h&&(this[i(379)][i(404)](vt.LOAD_START,{url:r}),l[2]=this[i(378)][i(413)](r)[i(416)]((t=>{const e=i;t&&(h=this[e(401)][r]=t[e(398)],this._emitOnLoaded(t,r))}))))}const p=null===(r=e.key)||void 0===r?void 0:r.url;p&&e.key[i(422)]()&&(a=e.key.iv,o=this._keyCache[p],!o&&(this[i(379)][i(404)](vt[i(418)],{url:p}),l[3]=this[i(378)][i(413)](p)[i(416)]((t=>{const e=i;t&&(o=this[e(401)][p]=t[e(398)],this[e(393)](t,p))}))));const[f]=await Promise.all(l);if(!f)return;const m=f.data;return this[i(393)](f,e[i(388)]),{data:m,map:n,key:o,mapKey:h,keyIv:a,mapKeyIv:c}}[$I(399)](){const t=$I;this.error=null,this[t(406)]={},this._keyCache={},this[t(385)].reset()}async[$I(391)](){const t=$I;await Promise.all([this[t(378)][t(391)](),this[t(386)][t(391)](),this[t(380)][t(391)]()])}}function sT(){const t=["key","5242192hBqgKi","4645908XlglFz","2345ugWOyp","_bandwidthService","_segmentLoader","error","url","230lWczYx","getLatestSpeed","cancel","getAvgSpeed","_emitOnLoaded","_loadSegment","byteRange","SPEED","length","data","reset","resetBandwidth","_keyCache","TTFB","2284644ZReOal","emit","841577MOIVQa","_mapCache","_onLoaderRetry","arraybuffer","LOAD_RETRY","all","2160810dukhqq","276ARlWEn","load","59647EhdFkC","player","then","destroy","LOAD_START","initSegment","7oZPYCl","LOAD_COMPLETE","isSegmentEncrypted","4gffDPx","byteLength","loadVideoSegment","_keyLoader","hls","_audioSegmentLoader"];return(sT=function(){return t})()}const iT=nT;!function(t,e){const s=nT,i=t();for(;;)try{if(587078===parseInt(s(353))/1*(-parseInt(s(334))/2)+parseInt(s(358))/3*(parseInt(s(365))/4)+parseInt(s(340))/5*(parseInt(s(317))/6)+-parseInt(s(363))/7+-parseInt(s(322))/8*(-parseInt(s(344))/9)+parseInt(s(342))/10*(-parseInt(s(346))/11)+-parseInt(s(328))/12)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(oT);class rT{constructor(t,e,s){const i=nT;this[i(321)]=void 0,this.id=0,this[i(364)]=0,this[i(337)]=0,this[i(372)]=0,this[i(383)]="",this.url="",this[i(350)]="",this[i(382)]="",this[i(366)]="",this[i(336)]=0,this[i(375)]=0,this[i(357)]=0,this[i(348)]=-1,this[i(368)]=0,this[i(355)]=0,this[i(333)]=0,this[i(325)]=0,this[i(359)]=!1,this[i(374)]=0,this[i(332)]=!1,this[i(360)]=0,this[i(379)]=!1,this[i(369)]=0,this[i(329)]=null,this.segments=[],this[i(384)]=[],this[i(347)]=[],this.closedCaptions=[],this[i(320)]=null,this.currentSubtitleStream=null,this.TAG_NAME=i(361),this.update(t,e,s)}get lastSegment(){const t=nT;return this[t(324)][t(323)]?this[t(324)][this[t(324)][t(323)]-1]:null}get[iT(370)](){const t=iT;var e;return this.targetDuration||(null===(e=this[t(324)][0])||void 0===e?void 0:e[t(354)])||0}get[iT(319)](){return this[iT(376)]}set[iT(319)](t){this[iT(376)]=t}get[iT(376)](){const t=iT;var e;return(null===(e=this.lastSegment)||void 0===e?void 0:e[t(338)])||0}set endTime(t){const e=iT,s=this.lastSegment;s&&(s[e(354)]=t-s.start)}get[iT(349)](){var t;return(null===(t=this[iT(345)])||void 0===t?void 0:t.endSN)||0}[iT(356)](t,e){const s=iT;return this[s(320)]&&this[s(327)](t,e),this[s(327)](t,e)}[iT(371)](t){const e=iT;if(!t||!this[e(320)])return;const s=t.sn-this.snDiff;return this[e(320)][e(324)][e(335)]((t=>t.sn===s))}[iT(351)](t,e){const s=iT;this[s(339)]=t[s(339)],Array[s(352)](t[s(324)])?((null===this.live||void 0===this[s(321)])&&(this.live=t[s(321)]),this._updateSegments(t,this),this.startCC=t[s(336)],this[s(375)]=t[s(375)],this[s(357)]=t[s(357)],this[s(348)]=t[s(348)]||-1,this[s(368)]=t[s(368)],this.targetDuration=t.targetDuration,this[s(321)]=t[s(321)],this[s(379)]=t[s(379)],this[s(332)]=t[s(332)],this[s(359)]=t[s(359)],this[s(325)]=t.canSkipUntil,this.partHoldBack=t[s(360)],this[s(333)]=t[s(333)],this[s(374)]=t[s(374)],this.endPartIndex=t.endPartIndex,e&&this[s(320)]&&Array[s(352)](e.segments)&&(this[s(378)](e,this[s(320)]),(null===this[s(329)]||void 0===this[s(329)])&&t[s(324)].length&&e[s(324)][s(323)]&&(this[s(329)]=t.segments[0].sn-e[s(324)][0].sn))):(this.id=t.id,this[s(364)]=t.bitrate,this[s(337)]=t[s(337)],this.height=t[s(372)],this.name=t[s(383)],this.audioCodec=t[s(350)],this[s(382)]=t.videoCodec,this[s(366)]=t[s(366)],this[s(384)]=t[s(384)],this[s(347)]=t[s(347)],!this[s(320)]&&this[s(384)].length&&(this[s(320)]=this[s(384)].find((t=>t[s(331)]))||this[s(384)][0]),!this[s(345)]&&this[s(347)][s(323)]&&(this[s(345)]=this.subtitleStreams[s(335)]((t=>t[s(331)]))||this[s(347)][0]))}[iT(330)](t){const e=iT;if(!(t&&this[e(345)]&&Array[e(352)](t.segments)))return;const s=this[e(378)](t,this.currentSubtitleStream),i=this.currentSubtitleStream[e(324)];return i.length>100&&(this.currentSubtitleStream.segments=i[e(326)](100)),s?s[e(343)]((t=>{const s=e;return{sn:t.sn,url:t[s(339)],duration:t[s(354)],start:t[s(318)],end:t.end,lang:this[s(345)][s(362)]}})):void 0}[iT(373)](t){const e=iT,s=this.subtitleStreams[e(335)]((s=>s[e(362)]===t)),i=this[e(345)];s&&(this[e(345)]=s,i.segments=[])}[iT(377)](t){const e=iT;if(!t[e(379)]||!t[e(324)][e(323)])return t;const s=t[e(368)]-t[e(360)],i=t[e(324)];let r=0;for(let t=0,n=i[e(323)];t<n;t++)i[t][e(318)]<=s&&i[t][e(381)]&&(r=t);const n=i.slice(r);let o=0;return n[e(380)]((t=>{const s=e;t[s(318)]=o,o=t[s(338)]})),t.segments=n,t[e(368)]=o,t[e(357)]=n[0].sn,t[e(336)]=n[0].cc,t}_clearSegments(t,e){const s=iT;let i=0;const r=this[s(324)];for(let e=0,s=r.length;e<s;e++)if(r[e].end>=t){i=e;break}return i>e&&(i=e),i&&(this[s(324)]=this[s(324)][s(326)](i),this[s(320)]&&(this[s(320)][s(324)]=this[s(320)][s(324)][s(326)](i))),e-i}[iT(378)](t,e){const s=iT,i=e[s(324)];if(this.live){const r=t.lowLatency,n=i[i[s(323)]-1],o=(null==n?void 0:n.sn)??-1,a=(null==n?void 0:n.partIndex)||0;let h=o<t[s(348)]&&t[s(324)][s(323)];if(r&&(h=h||a<t[s(369)]),h){const r=t[s(324)][s(367)]((t=>t.sn===o&&t[s(341)]===a)),h=r<0?t[s(324)]:t[s(324)][s(326)](r+1);if(i[s(323)]&&h.length){let t=n[s(338)];h[s(380)]((e=>{const i=s;e[i(318)]=t,t=e[i(338)]}));const e=(null==n?void 0:n.cc)||-1;e>h[0].cc&&h[s(380)]((t=>t.cc+=e))}return e.endSN=t[s(348)],e[s(324)]=i.concat(h),h}}else e.segments=t[s(324)]}}function nT(t,e){const s=oT();return(nT=function(t,e){return s[t-=317]})(t,e)}function oT(){const t=["duration","targetDuration","clearOldSegment","startSN","25425ZDMaEe","canSkipDateRanges","partHoldBack","HlsStream","lang","2203593yITfGK","bitrate","40dOYHjL","textCodec","findIndex","totalDuration","endPartIndex","segmentDuration","getAudioSegment","height","switchSubtitle","skippedSegments","endCC","endTime","_setLLPlaybackPoint","_updateSegments","lowLatency","forEach","independent","videoCodec","name","audioStreams","114ZQNyzg","start","liveEdge","currentAudioStream","live","8DpqFfk","length","segments","canSkipUntil","slice","_clearSegments","5462244aSCtbW","snDiff","updateSubtitle","default","canBlockReload","partTargetDuration","2Pufdmo","find","startCC","width","end","url","171310Ussurr","partIndex","88440gtBQus","map","7809309BvlZml","currentSubtitleStream","132XhSxPr","subtitleStreams","endSN","currentSubtitleEndSn","audioCodec","update","isArray","140237bhFSlY"];return(oT=function(){return t})()}var aT=hT;function hT(t,e){var s=cT();return(hT=function(t,e){return s[t-=238]})(t,e)}function cT(){var t=["isLive","updateSubtitle","7355488DXTomu","feedbackLiveEdge","currentStream","switchSubtitle","setNextSegmentByIndex"," startTime <= 0","590010QOYyCA","78uqUKaF","seekRange","player","duration","reduce","nbSegments","debugLog","liveEdge","clearOldSegment() segments.length:","updateSegmentsRanges","hls"," and clamp result is ","clearOldSegment() stream.endTime:","checkSegmentTrackChange","upsertPlaylist","hasVideo","maxPlaylistSize","nextSegment","totalDuration","update","start","getSegmentByIndex","lastSegment","SUBTITLE_SEGMENTS","setNextSegmentByIndex()","_segmentPointer","TAG_NAME","6966204UYbjqo","forEach","abs","streams","getAudioSegment","endTime","1121704tPSFgZ","segments","setNextSegmentBySN","isMaster","reset","isArray"," <= maxPlaylistSize:","lowLatency","destroy","currentSubtitleStream","url","clearOldSegment","17067fpnHMC","moveSegmentPointer","1696952vGtGyY","HlsPlaylist","currentSubtitleEndSn","9gFlGAN","187csxinv",", this.dvrWindow:","length","currentSegments","dvrWindow","emit","hasAudio","hadSegmentLoaded","119674wJXRSU","findSegmentIndexByTime","5kvCxJR","end"];return(cT=function(){return t})()}!function(t,e){for(var s=hT,i=t();;)try{if(727045===parseInt(s(286))/1+parseInt(s(299))/2*(-parseInt(s(272))/3)+-parseInt(s(274))/4*(parseInt(s(288))/5)+parseInt(s(254))/6+-parseInt(s(292))/7+parseInt(s(260))/8*(parseInt(s(277))/9)+parseInt(s(298))/10*(parseInt(s(278))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(cT);class lT{constructor(t){var e=hT;this[e(309)]=t,this[e(301)]=t[e(301)],this[e(257)]=[],this[e(294)]=null,this.dvrWindow=0,this[e(252)]=-1,this[e(253)]=e(275)}[aT(268)](){this[aT(264)]()}get lowLatency(){var t,e=aT;return null===(t=this[e(294)])||void 0===t?void 0:t[e(267)]}get[aT(249)](){var t,e=aT;return null===(t=this.currentStream)||void 0===t?void 0:t[e(249)]}get currentSegment(){var t,e=aT;return null===(t=this[e(281)])||void 0===t?void 0:t[this[e(252)]]}get[aT(244)](){var t,e=aT;return null===(t=this.currentSegments)||void 0===t?void 0:t[this[e(252)]+1]}get currentSegments(){var t,e=aT;return null===(t=this[e(294)])||void 0===t?void 0:t[e(261)]}get[aT(276)](){var t,e=aT;return null===(t=this[e(294)])||void 0===t?void 0:t[e(276)]}get[aT(306)](){var t,e=aT;return null===(t=this.currentStream)||void 0===t?void 0:t[e(306)]}set liveEdge(t){var e=aT;this[e(294)]&&(this.currentStream[e(306)]=t)}get[aT(245)](){var t,e=aT;return(null===(t=this[e(294)])||void 0===t?void 0:t[e(245)])||0}get[aT(300)](){var t=aT;const e=this[t(281)];if(e&&e[t(280)])return[e[0].start,e[e[t(280)]-1][t(289)]]}get[aT(304)](){var t,e=aT;return(null===(t=this.currentSegments)||void 0===t?void 0:t[e(280)])||0}get isEmpty(){var t,e=aT;return!(null!==(t=this[e(281)])&&void 0!==t&&t[e(280)])}get[aT(290)](){var t;return null===(t=this[aT(294)])||void 0===t?void 0:t.live}get[aT(285)](){return-1!==this._segmentPointer}get hasSubtitle(){var t,e=aT;return!(null===(t=this.currentStream)||void 0===t||!t[e(269)])}[aT(258)](t){var e,s=aT;return null===(e=this[s(294)])||void 0===e?void 0:e[s(258)](t)}[aT(273)](t){var e,s=aT;null==t&&(t=this[s(252)]+1),this[s(252)]=Ve(t,-1,null===(e=this[s(281)])||void 0===e?void 0:e[s(280)]),this.player[s(305)](this.TAG_NAME,"moveSegmentPointer() and param pos is "+t+s(238)+this[s(252)])}[aT(264)](){var t=aT;this[t(257)]=[],this[t(294)]=null,this[t(282)]=0,this[t(252)]=-1}getSegmentByIndex(t){var e;return null===(e=this[aT(281)])||void 0===e?void 0:e[t]}setNextSegmentByIndex(){var t=aT;let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._segmentPointer=e-1,this[t(301)].debugLog(this[t(253)],t(251),e,this[t(252)])}[aT(262)](){var t,e=aT;let s=arguments[e(280)]>0&&void 0!==arguments[0]?arguments[0]:0;const i=null===(t=this[e(281)])||void 0===t?void 0:t.findIndex((t=>t.sn===s));return-1!==i&&this[e(296)](i+1),i}[aT(287)](t){var e=aT;const s=this[e(281)];if(s){for(let i,r=0,n=s[e(280)];r<n;r++)if(i=s[r],t>=i[e(247)]&&t<i[e(289)])return r;const i=s[s[e(280)]-1];if(Math[e(256)](t-(null==i?void 0:i[e(289)]))<.2)return s[e(280)]-1}}[aT(241)](t,e,s){var i=aT;if(!t)return void this[i(301)].debugWarn(this[i(253)],"upsertPlaylist() playlist is null");if(t[i(263)])this[i(257)][i(280)]=t[i(257)].length,t[i(257)].filter((t=>t[i(270)]))[i(255)](((t,e)=>{var s=i;this[s(257)][e]?this.streams[e][s(246)](t):this.streams[e]=new rT(t)})),this[i(294)]=this.streams[0];else if(Array[i(265)](t[i(261)])){const r=this[i(294)];if(r){r.update(t,e,s);const n=r[i(291)](s);n&&this[i(309)][i(283)](vt[i(250)],{list:n})}else this[i(264)](),this[i(294)]=this[i(257)][0]=new rT(t,e,s)}this.currentStream&&this[i(309)][i(290)]&&!this[i(282)]&&(this[i(282)]=this.currentSegments[i(303)](((t,e)=>t+=e[i(302)]),0))}[aT(308)](t,e){var s,i=aT;(null===(s=this[i(281)])||void 0===s?void 0:s.filter((e=>e.sn>=t)))[i(255)]((t=>{var s=i;t.start=e,e=t[s(289)]}))}[aT(295)](t){var e;null===(e=this[aT(294)])||void 0===e||e.switchSubtitle(t)}clearOldSegment(){var t=aT;let e=arguments[t(280)]>0&&void 0!==arguments[0]?arguments[0]:this[t(309)].config[t(243)]||50;const s=this[t(294)];if(!this[t(282)]||!s)return;const i=s[t(259)]-this[t(282)];if(i<=0)return void this[t(301)][t(305)](this[t(253)],t(239)+s[t(259)]+t(279)+this[t(282)]+t(297));const r=s[t(261)];if(r.length<=e)return void this[t(301)][t(305)](this.TAG_NAME,t(307)+r[t(280)]+t(266)+e);const n=this[t(252)];this[t(252)]=s[t(271)](i,n),this[t(301)].debugLog(this.TAG_NAME,"clearOldSegment() update _segmentPointer: old -> new",n,this[t(252)])}[aT(240)](t,e){var s=aT;const i=this[s(287)](t),r=this.getSegmentByIndex(i);if(!r)return;if(!r.hasAudio&&!r[s(242)])return;if(2!==e&&r[s(284)]&&r[s(242)])return r;if(r[s(289)]-t>.3)return;const n=this[s(248)](i+1);return n&&(n[s(284)]||n[s(242)])&&(n[s(284)]!==r[s(284)]||n[s(242)]!==r[s(242)])?n:void 0}[aT(293)](t,e){var s;if(!this[aT(281)])return;(null===(s=this.lastSegment)||void 0===s?void 0:s.sn)===t.sn?this.liveEdge=e:this.updateSegmentsRanges(t.sn+1,e)}}function dT(t,e){const s=pT();return(dT=function(t,e){return s[t-=441]})(t,e)}const uT=dT;function pT(){const t=["importKey","CBC","4084290fANceR","_decryptData","622062WjEPTC","keyIv","AES","player","15956myFPwH","359419fZQdgM","destroy","2wyGekH","74136pcNWTM","32SlfQoV","AES-CBC","all","25hwGlBF","map","key","data","303737UJjBdu","encrypt","raw","_decryptSegment","externalDecryptor","subtle","949vbIhXl","207ocEnSJ","decrypt","3399EhJLXJ","6470NSFisf"];return(pT=function(){return t})()}!function(t,e){const s=dT,i=t();for(;;)try{if(275882===parseInt(s(464))/1*(-parseInt(s(466))/2)+-parseInt(s(451))/3*(-parseInt(s(463))/4)+parseInt(s(471))/5*(-parseInt(s(459))/6)+-parseInt(s(444))/7*(-parseInt(s(468))/8)+parseInt(s(457))/9+-parseInt(s(454))/10*(parseInt(s(453))/11)+parseInt(s(467))/12*(parseInt(s(450))/13))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(pT);class fT{constructor(t,e){const s=dT;this.hls=t,this[s(462)]=e;const i=window.crypto||window.msCrypto;this[s(449)]=i&&(i[s(449)]||i.webkitSubtle),this[s(448)]=null}[uT(465)](){const t=uT;var e;null!==(e=this[t(448)])&&void 0!==e&&e[t(465)]&&this[t(448)].destroy()}[uT(452)](t,e){const s=uT;if(!t&&!e)return;const i=[];return t&&(i[0]=this[s(447)](t)),e&&(i[1]=this[s(447)](e)),Promise[s(470)](i)}async _decryptSegment(t){const e=uT;let s=t[e(443)];return t[e(442)]&&(s=await this[e(458)](t[e(443)],t[e(442)],t[e(460)])),t.map?Df(t[e(441)],s):s}async _decryptData(t,e,s){const i=uT;if(this.externalDecryptor)return await this[i(448)].decrypt(t,e,s);if(this[i(449)]){const r=await this[i(449)][i(455)](i(446),e,{name:i(469)},!1,[i(445),i(452)]),n=await this[i(449)].decrypt({name:i(469),iv:s},r,t);return new Uint8Array(n)}t=Ku(t),e=Ku(e),s=Ku(s);return function(t){const{words:e}=t,{sigBytes:s}=t,i=new Uint8Array(s);for(let t=0;t<s;t+=1)i[t]=e[t>>>2]>>>24-t%4*8&255;return i}(zu[i(461)][i(452)]({ciphertext:t},e,{iv:s,mode:zu.mode[i(456)]}))}}function mT(){const t=1,e=2,s="hlsTs";class i{constructor(t){this.type=t.type,this.baseFps=0,this.playRate=1,this.fpsInterval=null,this.calcSampleInterval=null,this.preLoopTimestamp=null,this.seekingTime=null,this.seekingMaxDiff=t.seekingMaxDiff||1e4,this.allSampleList=[],this.isDebug=t.debug||!1,this.TAG_NAME=t.type+"LoopWorker",this.debugUuid=t.debugUuid||"xxxx",this.debugLevel=t.debugLevel||"warn",this._startCalcSampleInterval(),this.debugLog(this.TAG_NAME,"init",t)}destroy(){this._clearInterval(),this._clearCalcSampleInterval(),this.baseFps=0,this.playRate=1,this.allSampleList=[],this.preLoopTimestamp=null,this.seekingTime=null}updateBaseFps(t){this.debugLog(this.TAG_NAME,`updateBaseFps() baseFps is ${t}`),this.baseFps=t,this._clearInterval(),this._startInterval()}updatePlayRate(t){this.debugLog(this.TAG_NAME,`updatePlayRate() rate is ${t}`),this.playRate=t}seekSampleRange(t){this.debugLog(this.TAG_NAME,`seekSampleRange() time is ${t}`);const s=1e3*t;let i=0,r=-1;for(let t=0;t<this.allSampleList.length;t++){const n=this.allSampleList[t];if(n.type===e&&n.isIFrame){const e=Math.abs(s-n.dts);(-1===r||e<r)&&(r=e,i=t)}}this.allSampleList=this.allSampleList.slice(i)}cleanSampleList(){this.debugLog(this.TAG_NAME,"cleanSampleList()"),this.allSampleList=[]}setSeekingTime(t){this.seekingTime=1e3*t,this.debugLog(this.TAG_NAME,`setSeekingTime() time is ${this.seekingTime}`)}pause(){this.debugLog(this.TAG_NAME,"pause()"),this._clearInterval()}resume(){this.debugLog(this.TAG_NAME,"resume()"),this._clearInterval(),this._startInterval()}pushSample(t){if(delete t.cmd,null!==this.seekingTime){const s=Math.abs(t.dts-this.seekingTime);if(!(t.type===e&&t.isIFrame&&s<=this.seekingMaxDiff))return;this.debugLog(this.TAG_NAME,`pushSample() seekingTime is ${this.seekingTime}, sample dts is ${t.dts}, diff is ${s}ms and set this.seekingTime = null`),this.seekingTime=null}this.allSampleList.push(t)}_startInterval(){const t=Math.ceil(1e3/this.baseFps);this.debugLog(this.TAG_NAME,`_startInterval() fragDuration is ${t}ms and baseFps is ${this.baseFps}`);for(let t=0;t<this.playRate;t++)this._loop();this.fpsInterval=setInterval((()=>{let e=(new Date).getTime();for(let t=0;t<this.playRate;t++)this._loop();this.preLoopTimestamp||(this.preLoopTimestamp=e);const s=e-this.preLoopTimestamp,i=parseInt(s/t,10);i>1&&this.allSampleList.length>0&&this.debugWarn(this.TAG_NAME,`loop interval is ${s}ms, and fragDuration is ${t}ms, diffFps is ${i}, and allSampleList length is ${this.allSampleList.length}`),this.preLoopTimestamp=(new Date).getTime()}),t)}_clearInterval(){this.fpsInterval&&(clearInterval(this.fpsInterval),this.fpsInterval=null),this.preLoopTimestamp=null}_startCalcSampleInterval(){this.debugLog(this.TAG_NAME,"_startCalcSampleInterval()"),this._clearCalcSampleInterval(),this.calcSampleInterval=setInterval((()=>{this._calcSampleList()}),1e3)}_clearCalcSampleInterval(){this.calcSampleInterval&&(clearInterval(this.calcSampleInterval),this.calcSampleInterval=null)}_calcSampleList(){const i={buferredDuration:0,allListLength:this.allSampleList.length,start:this.allSampleList[0]?this.allSampleList[0].dts:0,end:this.allSampleList[this.allSampleList.length-1]?this.allSampleList[this.allSampleList.length-1].dts:0,audioListLength:0,videoListLength:0};this.allSampleList.forEach((r=>{r.type===e?(i.videoListLength++,r.duration&&(this.type===s?i.buferredDuration+=Math.round(r.duration/90):i.buferredDuration+=r.duration)):r.type===t&&i.audioListLength++})),postMessage({cmd:"sampleListInfo",...i})}_loop(){let s=null;if(this.allSampleList.length)if(s=this.allSampleList.shift(),s.type===e){postMessage({cmd:"decodeVideo",...s},[s.payload.buffer]);let e=this.allSampleList[0];for(;e&&e.type===t;)s=this.allSampleList.shift(),postMessage({cmd:"decodeAudio",...s},[s.payload.buffer]),e=this.allSampleList[0]}else if(s.type===t){postMessage({cmd:"decodeAudio",...s},[s.payload.buffer]);let i=this.allSampleList[0];for(;i;){if(s=this.allSampleList.shift(),s.type===e){postMessage({cmd:"decodeVideo",...s},[s.payload.buffer]),i=null;break}s.type===t&&(postMessage({cmd:"decodeAudio",...s},[s.payload.buffer]),i=this.allSampleList[0])}}}debugLog(t){if(this.isDebug&&"debug"==this.debugLevel){for(var e=arguments.length,s=new Array(e>1?e-1:0),i=1;i<e;i++)s[i-1]=arguments[i];console.log(`JbPro[${this.debugUuid}][✅✅✅][${t}]`,...s)}}debugWarn(t){if(this.isDebug&&("debug"==this.debugLevel||"warn"==this.debugLevel)){for(var e=arguments.length,s=new Array(e>1?e-1:0),i=1;i<e;i++)s[i-1]=arguments[i];console.log(`JbPro[${this.debugUuid}][❗❗❗][${t}]`,...s)}}debugError(t){for(var e=arguments.length,s=new Array(e>1?e-1:0),i=1;i<e;i++)s[i-1]=arguments[i];console.log(`JbPro[${this.debugUuid}][❌❌❌][${t}]`,...s)}}let r=null;self.onmessage=t=>{const e=t.data;switch(e.cmd){case"init":r=new i(e.options);break;case"updateBaseFps":r.updateBaseFps(e.baseFps);break;case"updatePlayRate":r.updatePlayRate(e.rate);break;case"seekSampleRange":r.seekSampleRange(e.time);break;case"cleanSampleList":r.cleanSampleList();break;case"setSeekingTime":r.setSeekingTime(e.time);break;case"pause":r.pause();break;case"resume":r.resume();break;case"sample":r.pushSample(e);break;case"destroy":r.destroy(),r=null}}}!function(t,e){const s=wT,i=t();for(;;)try{if(890208===-parseInt(s(323))/1+parseInt(s(331))/2+-parseInt(s(330))/3+-parseInt(s(329))/4+-parseInt(s(327))/5*(-parseInt(s(326))/6)+-parseInt(s(320))/7*(-parseInt(s(324))/8)+-parseInt(s(325))/9*(-parseInt(s(321))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(vT);const gT=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],AT=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],yT=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],bT=[0,1,1,4];function vT(){const t=["5343364epqwSO","2135883cxqojU","1747874IovTyP","length","14lFGzoB","15140BlkCaJ","floor","116532lIDEUV","1999728nFraAc","4014HgGRuz","1314DgXcXb","22955KuDACu","match"];return(vT=function(){return t})()}let ST=null;function wT(t,e){const s=vT();return(wT=function(t,e){return s[t-=319]})(t,e)}function ET(t,e){const s=wT,i=t[e+1]>>3&3,r=t[e+1]>>1&3,n=t[e+2]>>4&15,o=t[e+2]>>2&3;if(1!==i&&0!==n&&15!==n&&3!==o){const a=t[e+2]>>1&1,h=t[e+3]>>6,c=1e3*gT[14*(3===i?3-r:3===r?3:4)+n-1],l=AT[3*(3===i?0:2===i?1:2)+o],d=3===h?1:2,u=yT[i][r],p=bT[r],f=8*u*p,m=Math[s(322)](u*c/l+a)*p;if(null===ST){const t=(navigator.userAgent||"")[s(328)](/Chrome\/(\d+)/i);ST=t?parseInt(t[1]):0}return!!ST&&ST<=87&&2===r&&c>=224e3&&0===h&&(t[e+3]=128|t[e+3]),{sampleRate:l,channelCount:d,frameLength:m,samplesPerFrame:f}}}function IT(t,e){const s=kT();return(IT=function(t,e){return s[t-=277]})(t,e)}const TT=IT;function kT(){const t=["getInputByteLength","572448qrQSPu","length",",\n next dts is ","large video gap between frames,\n time is ","Unsupported stream. type: ",", sampleRate:","_basefps","onmessage",",\n ref sample duration is ","isEmitSEI","_opt","video","_initLoopWorker()","round",",sampleRateIndex: ","_initLoopWorker",",\n detect is: ","subarray","allListLength","loop worker is not init, can not post message","forEach","1183986FsIqWi","setSeekingTime","isPlayVodNotUseMSE","channelCount",",\n origin dts is ","_needForceFixLargeGap","_doDecodeVideo","large av first frame gap,\n video pts: ","_fixVideo","_baseDtsInited","decodeAudio","debug","_audioNextPts","seekSampleRange","videoListLength",",\n duration is ","set","workerClearTimeout","playVodTimeCache","_doFixAudioInternal","audio gap detected, silent frame is not support, count is ",", channel: ","correctSamplePts","isPlayVod"," < frameLength ","isUseMSE","sort",",\n next dts is ","large video gap between chunk,\n next dts is ","hlsTs","frameLength","large audio gap detected,\n time is ","_doDecodeAudio","decodeVideo","_calcDecodeFps","_isUseWorker","_resetBaseDtsWhenStreamBreaked","startPrefixError","_calculateBaseDts",",\n base dts: ","updatePlayRate","_hasCalcFps"," > ","h264","_hasVideo","_fixAudio","aac seq header","_parseAudioData() G711 PES unknown PTS","Cannot parse avc units","_audioPesData","_videoPid","originPts","_parsePES","buffer","emit","demuxStart","\n pts is ","profile: ","sampleDuration","init","cryptoPayload","_hasAudio","_demux","metadataTrack","debugLevel","workerUrl","cleanSampleList","getSampleRange","_pmtId","player","destroy","hasAudio","88246IPZQKF","initAudioTrack"," < 0,\n ref Sample DurationInt is ","_createVideoSample","HlsTsDemux","h265","_postMessageToLoopWorker","_parseVideoData","debugUuid",",\n sample duration is ","isIFrame","cts","_largeGapThreshold",",\n dts is ","aac seq header not send","floor","seiSamples",", pid: ","audio","_codecType","codec","buferredDuration","samples","sps","concat","originalPts","_fix","min","audioListLength","_videoLastSample","_remainingPacketData","listen playVodRateChange","URL","TAG_NAME","debugWarn","push","start","isSeeking","sampleListInfo",",\n count is ",",\n sample Duration is ","fpsDen","_lastAudioExceptionOverlapDot",",\n audio pts: ","4223994DUQoRm","resume","_baseVideoDts","getPlayVodDuration","terminate","tempSampleListInfo","getSampleListLength","debugLog","audio gap detected,\n pts is "," || ",",\n originPts is ","aac parseADTS error","baseMediaDecodeTime","_videoPesData","6799205UXHTLY",",\n first dts is ","_baseAudioDts","sampleRate",",\n nextPts is ",",\n ref sample duration is ","_videoTimestampBreak","fpsNum","_times","error","pps","_audioTimestampBreak","type","calcIframeIntervalTimestamp","pause","samplesPerFrame","MP3","loopWorker","updateStats","_prevPlayVodTimeCache","pts","probe","audio overlap detected,\n pts is ","G711U","revokeObjectURL","data","frames","initMetadataTrack","_gopId","abs","demuxAndFix","sample","isFinite","initVideoTrack","cleanSampleListAndSetSeekTime","vps","byteLength","dts","clearBuffer","map","audioTrack","_parseAudioData() MPEG PES unknown PTS","G711A",",\n nextPts is ","_parsePES startPrefix should be 1 but with value ","geVodLoadedTime","timescale","originalDts","_audioCodecType","_baseDts","videoTrack","_lastAudioExceptionLargeGapDot","end","_audioLastSample","_audioPid","pid is 0x1fff and ignore","G711 frameData.length ","_videoNextDts","samplingFrequencyIndex","3753310aBuhks","4rgxChF","TS packet did not start with 0x47","_lastAudioExceptionGapDot","cryptoPayloadAudio","payload","_isSendAACSeqHeader","baseDts","postMessage","formatTimescale","_parseAudioData","no video pes data","9474008mRvMRK","_doDecodeByHls","_pps","playVod","objectType","pid is 17 and ignore","playVodRateChange"];return(kT=function(){return t})()}!function(t,e){const s=IT,i=t();for(;;)try{if(504221===-parseInt(s(348))/1+parseInt(s(485))/2+-parseInt(s(506))/3*(parseInt(s(466))/4)+-parseInt(s(465))/5+-parseInt(s(392))/6+parseInt(s(406))/7+parseInt(s(477))/8)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(kT);class _T extends Dp{constructor(t){const e=IT;super(t),this[e(345)]=t,this[e(344)]=-1,this[e(378)]=null,this._videoPesData=[],this[e(325)]=[],this[e(434)]=0,this[e(326)]=-1,this._audioPid=-1,this[e(367)]=G[e(319)],this[e(454)]=H.AAC,this._vps=null,this._sps=null,this[e(479)]=null,this[e(381)]=e(352),this[e(456)]=_T.initVideoTrack(),this[e(446)]=_T.initAudioTrack(),this[e(339)]=_T[e(433)](),this._baseDts=-1,this[e(394)]=-1,this[e(408)]=-1,this[e(285)]=!1,this[e(491)]=25,this._prevPlayVodTimeCache=0,this[e(337)]=!1,this[e(320)]=!1,this[e(288)]=void 0,this[e(463)]=void 0,this[e(417)]=!1,this[e(412)]=!1,this[e(468)]=0,this[e(390)]=0,this[e(457)]=0,this._needForceFixLargeGap=!0,this[e(360)]=45e4,this[e(471)]=!1,this[e(293)]=null,this[e(341)]=null,this[e(423)]=null,this[e(397)]={},this[e(441)]=null,this[e(371)]=null,this.pps=null,this._isUseWorker()&&this[e(500)](),this[e(345)].isPlayVod()&&this[e(311)]()&&this[e(345)].on(M[e(483)],(t=>{const s=e;this[s(345)][s(399)](this.TAG_NAME,s(379),t),this[s(354)](s(316),{rate:t})})),this[e(345)][e(399)](this.TAG_NAME,e(335))}[TT(346)](){const t=TT;super.destroy(),this.workerUrl&&(URL[t(430)](this.workerUrl),this[t(341)]=null),this.workerClearTimeout&&(clearTimeout(this[t(293)]),this.workerClearTimeout=null),this[t(423)]&&(this[t(423)].postMessage({cmd:t(346)}),this[t(423)][t(396)](),this[t(423)]=null),this[t(456)]=null,this[t(446)]=null,this[t(339)]=null,this[t(397)]={},this[t(455)]=-1,this[t(285)]=!1,this[t(491)]=25,this[t(317)]=!1,this[t(425)]=0,this._audioNextPts=void 0,this._videoNextDts=void 0,this[t(417)]=!1,this[t(412)]=!1,this._lastAudioExceptionGapDot=0,this._lastAudioExceptionOverlapDot=0,this[t(457)]=0,this[t(471)]=!1,this[t(345)][t(399)](this[t(381)],t(346))}static[TT(439)](){return{samples:[]}}static[TT(349)](){return{samples:[]}}static[TT(433)](){return{flvScriptSamples:[],seiSamples:[]}}static[TT(427)](t){return!!t.length&&(71===t[0]&&71===t[188]&&71===t[376])}_parsePES(t){const e=TT,s=t[8];if(null==s||t.length<s+9)return;const i=t[0]<<16|t[1]<<8|t[2];if(1!==i)return this[e(345)][e(382)](this[e(381)],e(450)+i),{error:!0,code:e(313)};const r=(t[4]<<8)+t[5];if(r&&r>t[e(486)]-6)return;let n,o;const a=t[7];return 192&a&&(n=536870912*(14&t[9])+4194304*(255&t[10])+16384*(254&t[11])+128*(255&t[12])+(254&t[13])/2,64&a?(o=536870912*(14&t[14])+4194304*(255&t[15])+16384*(254&t[16])+128*(255&t[17])+(254&t[18])/2,n-o>54e5&&(n=o)):o=n),{data:t[e(502)](9+s),pts:n,dts:o,originalPts:n,originalDts:o}}_demux(t){const e=TT;let s=arguments[e(486)]>1&&void 0!==arguments[1]&&arguments[1],i=!(arguments[e(486)]>2&&void 0!==arguments[2])||arguments[2];s&&(this[e(344)]=-1,this[e(456)]=_T[e(439)](),this[e(446)]=_T[e(349)](),this.metadataTrack=_T[e(433)]()),!i||s?(this._remainingPacketData=null,this._videoPesData=[],this._audioPesData=[],this[e(345)][e(299)]()&&this.player[e(480)][e(385)]()&&(this[e(456)][e(370)]=[],this[e(446)].samples=[],this[e(339)].seiSamples=[])):(this[e(456)].samples=[],this.audioTrack[e(370)]=[],this[e(339)][e(364)]=[],this[e(378)]&&(t=Df(this[e(378)],t),this[e(378)]=null));let r=t.length;const n=r%188;n&&(this._remainingPacketData=t.subarray(r-n),r-=n);for(let s=0;s<r;s+=188){if(71!==t[s])throw new Error(e(467));const i=!!(64&t[s+1]),r=((31&t[s+1])<<8)+t[s+2];let n;if((48&t[s+3])>>4>1){if(n=s+5+t[s+4],n===s+188)continue}else n=s+4;switch(r){case 0:i&&(n+=t[n]+1),this[e(344)]=(31&t[n+10])<<8|t[n+11];break;case this[e(344)]:{i&&(n+=t[n]+1);const s=n+3+((15&t[n+1])<<8|t[n+2])-4;for(n+=12+((15&t[n+10])<<8|t[n+11]);n<s;){const s=(31&t[n+1])<<8|t[n+2],i=t[n];switch(i){case 15:this[e(460)]=s,this._audioCodecType=H.AAC;break;case 3:case 4:this[e(460)]=s,this[e(454)]=H[e(422)];break;case 27:if(-1!==this[e(326)])break;this._videoPid=s,this[e(367)]=G.h264;break;case 36:if(-1!==this[e(326)])break;this._videoPid=s,this._codecType=G[e(353)];break;case 144:this._audioPid=s,this[e(454)]=H[e(448)];break;case 145:this._audioPid=s,this._audioCodecType=H[e(429)];break;default:this.player[e(382)](this[e(381)],e(489)+i+e(365)+s)}n+=5+((15&t[n+3])<<8|t[n+4])}}break;case this._videoPid:i&&this[e(405)].length&&this._parseVideoData(),this[e(405)][e(383)](t[e(502)](n,s+188));break;case this[e(460)]:i&&this[e(325)][e(486)]&&this[e(475)](),this[e(325)][e(383)](t[e(502)](n,s+188));break;case 17:this[e(345)][e(399)](this[e(381)],e(482));break;case 8191:this.player.debugLog(this[e(381)],e(461));break;default:this[e(345)][e(399)](this.TAG_NAME,"Unknown pid: "+r)}}this[e(355)](),this._parseAudioData(),this[e(446)][e(474)]=this[e(456)].formatTimescale=this[e(456)][e(452)]=9e4,this[e(446)].timescale=this[e(446)][e(409)]||0}[TT(436)](t,e,s,i){const r=TT;!this[r(345)][r(414)][r(331)]&&(this[r(345)][r(414)].demuxStart=je()),this[r(338)](t,e,s,i),this[r(374)](i,e,s)}[TT(355)](){const t=TT;if(!this[t(405)][t(486)])return void this[t(345)][t(399)](this.TAG_NAME,t(355),t(476));const e=this[t(328)](Df(...this[t(405)]));if(!e||e[t(415)])return void(e&&"startPrefixError"===e.code&&(this[t(405)]=[]));const s=De(e.data);s?this._createVideoSample(s,e[t(426)],e[t(443)]):this[t(345)].debugWarn(this.TAG_NAME,t(324),e),this._videoPesData=[]}[TT(351)](t,e,s){const i=TT;if(!t[i(486)])return;const r=this._codecType===G.h265,n={isIFrame:!1,type:D[i(496)],isHevc:r,vps:null,sps:null,pps:null,pts:e,dts:s,payload:null};t[i(505)]((t=>{const s=i,o=r?t[0]>>>1&63:31&t[0];switch(o){case 5:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:if(!r&&5!==o||r&&5===o)break;n.isIFrame=!0,this[s(434)]++;break;case 6:case 39:case 40:if(!r&&6!==o||r&&6===o)break;const i=xe(function(t){const e=Ce,s=t[e(214)],i=[];let r=1;for(;r<s-2;)0===t[r]&&0===t[r+1]&&3===t[r+2]?(i[e(210)](r+2),r+=2):r++;if(!i.length)return t;const n=s-i[e(202)],o=new Uint8Array(n);let a=0;for(r=0;r<n;a++,r++)a===i[0]&&(a++,i.shift()),o[r]=t[a];return o}(t),r);return void this[s(339)].seiSamples[s(383)]({data:i[s(470)],originPts:e});case 32:if(!r)break;!n.vps&&(n[s(441)]=t,this.vps=t);break;case 7:case 33:if(!r&&7!==o||r&&7===o)break;!n[s(371)]&&(n[s(371)]=t,this[s(371)]=t);break;case 8:case 34:if(!r&&8!==o||r&&8===o)break;!n[s(416)]&&(n[s(416)]=t,this.pps=t)}if(r&&Uh(o)||!r&&ch(o)){const e=Pe(t);if(n[s(470)]){const t=new Uint8Array(n[s(470)][s(442)]+e[s(442)]);t[s(292)](n[s(470)],0),t[s(292)](e,n[s(470)][s(442)]),n[s(470)]=t}else n.payload=e}}));let o=null;r?n.sps&&n[i(441)]&&n.pps?(o=Ph({vps:n[i(441)],sps:n[i(371)],pps:n[i(416)]}),this[i(441)]=null,this.sps=null,this[i(416)]=null):this.vps&&this.sps&&this.pps&&(o=Ph({vps:this[i(441)],sps:this[i(371)],pps:this[i(416)]}),this[i(441)]=null,this[i(371)]=null,this.pps=null):n[i(371)]&&n[i(416)]?(o=nh({sps:n[i(371)],pps:n.pps}),this[i(371)]=null,this[i(416)]=null):this.sps&&this[i(416)]&&(o=nh({sps:this[i(371)],pps:this[i(416)]}),this.sps=null,this[i(416)]=null),o&&(this[i(345)][i(399)](this[i(381)],i(351),"seqHeader"),this._doDecodeByHls(o,D[i(496)],Math[i(498)](n.pts/90),!0,0)),n[i(358)]&&this[i(419)](Math[i(498)](n[i(443)]/90)),this[i(456)].samples=this[i(456)][i(370)].concat(n)}[TT(475)](){const t=TT;if(!this._audioPesData[t(486)])return;if(!this[t(345)][t(495)][t(347)])return;const e=this._parsePES(Df(...this._audioPesData));if(e&&!e[t(415)]){if(this._audioCodecType===H.AAC){const s=function(t,e){const s=ke,i=t[s(496)];let r=0;for(;r+2<i&&(255!==t[r]||240!=(246&t[r+1]));)r++;if(r>=i)return;const n=r,o=[],a=(60&t[r+2])>>>2,h=ce[a];if(!h)throw new Error("Invalid sampling index: "+a);const c=1+((192&t[r+2])>>>6),l=(1&t[r+2])<<2|(192&t[r+3])>>>6;let d,u,p=0;const f=Ae(h);for(;r+7<i;)if(255===t[r]&&240==(246&t[r+1])){if(u=(3&t[r+3])<<11|t[r+4]<<3|(224&t[r+5])>>5,i-r<u)break;d=2*(1&~t[r+1]),o.push({pts:e+p*f,data:t[s(515)](r+7+d,r+u)}),p++,r+=u}else r++;return{skip:n,remaining:r>=i?void 0:t[s(515)](r),frames:o,samplingFrequencyIndex:a,sampleRate:h,objectType:c,channelCount:l,originCodec:"mp4a.40."+c}}(e[t(431)],e[t(373)]);if(s){if(this[t(446)][t(368)]=s[t(368)],this.audioTrack[t(409)]=s[t(409)],this.audioTrack[t(279)]=s[t(279)],!this[t(471)]){const e=ue({profile:s.objectType,sampleRate:s[t(464)],channel:s.channelCount});this[t(471)]=!0,this[t(345)][t(399)](this[t(381)],t(322),t(333)+s[t(481)]+t(490)+s[t(409)]+t(499)+s[t(464)]+t(297)+s.channelCount),this[t(478)](e,D.audio,0,!1,0)}if(this._isSendAACSeqHeader){const e=[];s[t(432)].forEach((s=>{const i=t,r=s[i(426)],n=new Uint8Array(s[i(431)][i(486)]+2);n[i(292)]([175,1],0),n[i(292)](s[i(431)],2);const o={type:D[i(366)],pts:r,dts:r,payload:n};e.push(o)})),this[t(446)][t(370)]=this[t(446)][t(370)][t(372)](e)}else this[t(345)][t(382)](this.TAG_NAME,t(362))}else this[t(345)][t(382)](this[t(381)],t(403))}else if(this._audioCodecType===H.MP3){const r=e.data,n=r[t(486)];let o=0,a=0;const h=e[t(426)];if(void 0===h)return void this[t(345)][t(382)](this[t(381)],t(447));const c=[];for(;a<n;)if((i=a)+1<(s=r)[wT(319)]&&255===s[i]&&224==(224&s[i+1])&&0!=(6&s[i+1])){if(a+24>r[t(486)])return;const e=ET(r,a);if(!(e&&a+e.frameLength<=r[t(486)]))break;{const s=h+o*(9e4*e[t(421)]/e[t(409)]),i=r[t(502)](a,a+e[t(306)]);this[t(446)].channelCount=e[t(279)],this.audioTrack[t(409)]=e[t(409)];const n=new Uint8Array(i+1);n[t(292)]([32],0),n.set(i,1);const l={type:D.audio,pts:s,dts:s,payload:n};c[t(383)](l),a+=e.frameLength,o++}}else a++;this[t(446)][t(370)]=this[t(446)][t(370)][t(372)](c)}else if(this[t(454)]===H[t(448)]||this[t(454)]===H.G711U){const s=[];this[t(446)][t(279)]=1,this.audioTrack[t(409)]=8e3;const i=320,r=9e4*i/8e3,n=e[t(426)];if(void 0===n)return void this[t(345)][t(382)](this[t(381)],t(323));const o=this[t(454)]===H.G711A;for(let a=0;a<e.data[t(486)];a+=i){const h=e[t(431)][t(502)](a,a+i);if(h[t(486)]<i){this[t(345)].debugLog(this.TAG_NAME,t(462)+h[t(486)]+t(300)+i);break}const c=n+a/i*r,l=new Uint8Array(h[t(486)]+1),d=o?[114]:[130];l[t(292)](d,0),l[t(292)](h,1);const u={type:D.audio,pts:c,dts:c,payload:l};s.push(u)}this.audioTrack[t(370)]=this[t(446)].samples[t(372)](s)}var s,i;this[t(325)]=[]}else e&&e.code===t(313)&&(this[t(325)]=[])}_fix(){const t=TT;let e=arguments[t(486)]>0&&void 0!==arguments[0]?arguments[0]:0,s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=!(arguments[t(486)]>2&&void 0!==arguments[2])||arguments[2];e=Math[t(498)](9e4*e);const r=this[t(456)],n=this[t(446)],o=r[t(370)],a=n[t(370)];if(!o[t(486)]&&!a.length)return;const h=o[0],c=a[0];let l=0;if(o.length&&a[t(486)]&&(l=h[t(443)]-c[t(426)]),!this[t(285)]&&this._calculateBaseDts(),s&&(this._calculateBaseDts(),this[t(455)]-=e,this[t(408)]-=e,this._baseVideoDts-=e),!i){this[t(463)]=l>0?e+l:e,this[t(288)]=l>0?e:e-l,this[t(281)]&&(this[t(463)]=0,this[t(288)]=0);const s=h?h[t(443)]-this._baseDts-this[t(463)]:0,i=c?c[t(426)]-this[t(455)]-this._audioNextPts:0;Math[t(435)](s||i)>Bt&&(this[t(314)](this[t(446)],this.videoTrack),this[t(455)]-=e)}this[t(312)](),this[t(321)](n),this[t(284)](r),this[t(339)][t(364)].length&&this[t(345)][t(495)][t(494)]&&this[t(339)][t(364)][t(505)]((e=>{const s=t;this.player.emitVideoSei({ts:(e[s(327)]-this._baseDts)/90,data:e[s(431)]})})),r[t(370)][t(486)]&&(r[t(404)]=r[t(370)][0][t(443)]),n[t(370)].length&&(n.baseMediaDecodeTime=n[t(370)][0][t(426)]*n[t(452)]/9e4),this[t(298)](r,450),this[t(298)](n,450);let d=r[t(370)].concat(n[t(370)]);d=d[t(445)]((e=>{const s=t;return e[s(443)]=Math.round(e[s(443)]/90),e[s(426)]=Math[s(498)](e[s(426)]/90),e[s(359)]=e.pts-e[s(443)],e}))[t(302)](((e,s)=>{const i=t;return e[i(443)]-s[i(443)]})),d.forEach((e=>{const s=t,i=new Uint8Array(e[s(470)]);delete e[s(470)],this[s(311)]()?this[s(423)].postMessage({...e,payload:i,cmd:s(437)},[i[s(329)]]):e[s(418)]===D[s(496)]?this[s(282)]({...e,payload:i}):e[s(418)]===D[s(366)]&&this[s(308)]({...e,payload:i})})),ci(this[t(317)])&&this[t(311)]()&&(this[t(317)]=this[t(310)](d))}_calculateBaseDts(){const t=TT,e=this[t(446)],s=this[t(456)],i=e[t(370)],r=s.samples;if(!i[t(486)]&&!r[t(486)])return!1;let n=1/0,o=1/0;i.length&&(e[t(472)]=n=i[0].pts),r.length&&(s[t(472)]=o=r[0][t(443)]),this[t(455)]=Math[t(375)](n,o);const a=o-n;let h=!1;return Number[t(438)](a)&&Math[t(435)](a)>45e3&&this[t(345)][t(382)](this.TAG_NAME,t(283)+o+t(391)+n+t(315)+this[t(455)]+t(501)+a),Number[t(438)](a)&&Math[t(435)](a)>this._largeGapThreshold*xt&&(h=!0),!this[t(285)]&&(h&&this[t(281)]?this[t(281)]=!0:this[t(281)]=!1),this._baseDtsInited=!0,!0}_resetBaseDtsWhenStreamBreaked(){const t=TT;if(this[t(285)]&&this[t(412)]&&this[t(417)]){if(!this[t(314)](this[t(446)],this[t(456)]))return;this._baseDts-=Math.min(this[t(288)],this._videoNextDts),this[t(459)]=null,this[t(377)]=null,this[t(412)]=!1,this[t(417)]=!1}}_fixAudio(t){const e=TT,s=t[e(370)];s[e(486)]&&(s[e(505)]((t=>{const s=e;t.pts-=this[s(281)]?this[s(408)]:this[s(455)],t.dts=t[s(426)]})),this[e(295)](t,s,9e4))}[TT(284)](t){const e=TT,s=t[e(370)];if(!s[e(486)])return;if(s[e(505)]((t=>{const s=e;t.dts-=this._needForceFixLargeGap?this[s(394)]:this[s(455)],t.pts-=this[s(281)]?this[s(394)]:this[s(455)]})),void 0===this[e(463)]){const t=s[0];this[e(463)]=t[e(443)]}const i=s.length;let r=0;const n=s[0],o=s[1],a=this[e(463)]-n[e(443)];if(Math.abs(a)>45e3)if(n[e(443)]+=a,n[e(426)]+=a,this[e(345)][e(382)](this.TAG_NAME,e(304)+this[e(463)]/90+e(407)+n.dts/90+e(487)+(o&&o[e(443)]||0)/90+e(291)+a/90+e(318)+45e3),n[e(443)]+=a,n.pts+=a,o&&Math[e(435)](o[e(443)]-n.dts)>Bt)this[e(412)]=!0,s[e(505)](((t,s)=>{const i=e;0!==s&&(t[i(443)]+=a,t[i(426)]+=a)}));else for(let t=1;t<i-1;t++){var h;const i=null===(h=s[t])||void 0===h?void 0:h[e(443)],r=s[t-1].dts;i&&i-r<0&&(s[t][e(443)]+=a,s[t].pts+=a)}let c;if(t[e(413)]&&t[e(389)]&&(c=t.timescale*(t[e(389)]/t[e(413)])),c<900&&(c=0),!c){const s=t[e(370)][0],r=t[e(370)][1];c=1===i?9e3:Math[e(363)](r[e(443)]-s[e(443)])}for(let n=0;n<i;n++){const o=s[n][e(443)],a=s[n+1];if(r=n<i-1?a[e(443)]-o:s[n-1]?Math[e(375)](o-s[n-1][e(443)],c):c,r>Bt||r<0){this[e(412)]=!0,r=this[e(417)]?c:Math.max(r,2700);const i=this[e(288)]||0;a&&a[e(443)]>i&&(r=c),this.player[e(382)](this[e(381)],e(488)+o/t[e(452)]+e(361)+o+e(280)+s[n][e(453)]+e(303)+this[e(463)]+e(388)+r+e(318)+Bt+e(401)+r+e(350)+c)}s[n].duration=r,this[e(463)]+=r}}[TT(295)](t,e,s){const i=TT;!t[i(334)]&&(t[i(334)]=Ae(t[i(452)],s));const r=t[i(334)];if(void 0===this._audioNextPts){const t=e[0];this[i(288)]=t[i(426)]}for(let s=0;s<e[i(486)];s++){const n=this[i(288)],o=e[s],a=o[i(426)]-n;if(!this._audioTimestampBreak&&a>=3*r&&a<=xt&&!ss()){me(t.codec,t[i(279)])||e[0].data[i(502)]();const h=Math[i(363)](a/r);Math.abs(o.pts-this._lastAudioExceptionGapDot)>Pt&&(this._lastAudioExceptionGapDot=o[i(426)]),this.player[i(382)](this[i(381)],i(400)+e[i(426)]/90+",\n originPts is "+e[i(373)]+i(387)+h+i(410)+n/90+i(493)+r);for(let t=0;t<h;t++)this[i(345)][i(382)](this[i(381)],i(296)+h),this[i(288)]+=r,s++;s--}else a<=-3*r&&a>=-9e4?(Math[i(435)](o[i(426)]-this[i(390)])>Pt&&(this[i(390)]=o[i(426)],this[i(345)][i(382)](this[i(381)],i(428)+o.pts/90+i(402)+o[i(373)]+i(449)+n/90+i(411)+r)),e.splice(s,1),s--):(Math.abs(a)>=xt&&(this._audioTimestampBreak=!0,Math[i(435)](o.pts-this[i(457)])>Pt&&(this[i(457)]=o[i(426)],this[i(345)][i(382)](this[i(381)],i(307)+o.pts/1e3+i(332)+o.pts/90+",\n originPts is "+o[i(373)]+",\n nextPts is "+n/90+i(357)+a+"\n ref sample duration is "+r))),o.dts=o[i(426)]=n,this[i(288)]+=r)}}[TT(311)](){const t=TT;return!this[t(345)][t(301)]()}[TT(500)](){const t=TT;this[t(345)][t(399)](this[t(381)],t(497));const e=Ys(mT);let s=new Worker(e);this[t(341)]=e,this[t(293)]=setTimeout((()=>{const e=t;window[e(380)].revokeObjectURL(this.workerUrl),this[e(341)]=null,this.workerClearTimeout=null}),T),s[t(473)]({cmd:t(335),options:{type:t(305),seekingMaxDiff:1e4,debug:this[t(345)]._opt[t(287)],debugUuid:this[t(345)][t(495)][t(356)],debugLevel:this[t(345)][t(495)][t(340)]}}),s[t(492)]=e=>{const s=t,i=e[s(431)];switch(i.cmd){case s(309):this[s(282)](i);break;case s(286):this[s(308)](i);break;case s(386):if(this[s(397)]=i,this.player[s(278)]()){const t=this[s(451)](),e=this[s(345)][s(395)]();if(t&&e){let i=t/(1e3*e);i!==this._prevPlayVodTimeCache&&this.player[s(330)](M[s(294)],i),this[s(425)]=i}}}},this[t(423)]=s}[TT(354)](t,e){const s=TT;this._isUseWorker()&&(this[s(423)]?this[s(423)][s(473)]({cmd:t,...e}):this.player[s(382)](this[s(381)],s(504)))}[TT(308)](t){const e=TT,s=new Uint8Array(t[e(470)]);this[e(345)][e(424)]({abps:s[e(442)]});let i=this[e(469)](s);this._doDecodeByHls(i,D.audio,t[e(443)],!1,0)}[TT(282)](t){const e=TT,s=new Uint8Array(t.payload);let i=null;i=t.isHevc?Bh(s,t.isIFrame):oh(s,t[e(358)]),this[e(345)].updateStats({dts:t[e(443)],vbps:i.byteLength});const r=t.pts-t.dts;let n=this[e(336)](i,t.isIFrame);this[e(478)](n,D.video,t[e(443)],t.isIFrame,r)}getBuferredDuration(){const t=TT;return this[t(397)][t(369)]||0}[TT(398)](){const t=TT;return this[t(397)][t(503)]||0}getSampleAudioListLength(){const t=TT;return this.tempSampleListInfo[t(376)]||0}getSampleVideoListLength(){const t=TT;return this[t(397)][t(290)]||0}[TT(484)](){const t=TT;return this[t(378)]&&this[t(378)][t(442)]||0}[TT(343)](){const t=TT;return{start:this[t(397)][t(384)]||0,end:this[t(397)][t(458)]||0}}[TT(289)](t){const e=TT;this[e(354)](e(289),{time:t})}[TT(440)](t){const e=TT;ci(this[e(345)].isUseMSE())&&(this[e(444)](!0),this._postMessageToLoopWorker(e(342)),this[e(354)](e(277),{time:t}))}[TT(420)](){this[TT(354)]("pause")}[TT(393)](){const t=TT;this[t(354)](t(393))}[TT(451)](){const t=TT;let e=0;return e=this.getSampleRange()[t(458)],e}}const CT=jT;function RT(t){const e=jT;let s=arguments[e(490)]>1&&void 0!==arguments[1]?arguments[1]:0;return(t[s]<<8)+(t[s+1]||0)}function DT(t){const e=jT;let s=arguments[e(490)]>1&&void 0!==arguments[1]?arguments[1]:0;return(t[s]<<24>>>0)+(t[s+1]<<16)+(t[s+2]<<8)+(t[s+3]||0)}function LT(){const t=["kid","enca","getRateIndexByRate","ulaw","evaluateDefaultDuration","avc","co64","reference_ID","avgFrameRate","26594392PHCtqV","esds config is null","smhd","padStart","defaultSampleFlags","stsd","generalProfileSpace","vertresolution","isVideoEncryption","trak","system_id","esds","stbl","sampleSize","height","duration","minf","mfhd","starts_with_SAP","schi","findBox","reference_type","codecType","G711PCMA","balance","tkhdDuration","sarRatio","version","hvc1","sequenceNumber","subarray","entries","4766412TnzJJb","soun","hdlr","entryCount","sampleRate","samples","ext","useEME","SAP_delta_time","BytesOfProtectedData","entrySizes","start","cts","ctts","avc4","avc1","sampleDescriptionIndex","pts","sampleRateIndex","pasp","defaultSampleDuration","earliest_presentation_time","toString","unknown video stsd entry","numOfArrays","map","traf","dataReferenceIndex","vps","mvhdDurtion","85372HipDhA","depth","9zQcbqH","stsc","length","FREQ","default_IV_size","fromCharCode","from","mp4a.40.2","generalLevelIdc","sps","mp4a","dataOffset","config","frma","vSpacing","ceil","firstSampleFlags","nextTrackId","sinf","hev1.1.6.L93.B0","hev1","generalProfileCompatibility","substring","268315qECFKg","keyframe","handlerType","spsLength","size","223SGHvVO","probe","avcC","gopId","8556530OyWdez","headerSize","baseDataOffset","default_KID","samplesPerChunk","HEVC","lengthSizeMinusOne","stts","stco","trun","moofToSamples","first_offset","trackId","horizresolution","baseMediaDecodeTime","timescale","forEach","moovToSamples","channelCount"," size !== data.length","objectType","kidValue","find","present","references","push","BytesOfClearData","firstChunk","graphicsmode","mvhd","ftyp","99phvwoT","flags","subsegment_duration","generalConstraintIndicatorFlags","defaultSampleSize","alaw","sampleCount","mvhdTimecale","profileCompatibility","encv","tkhd","tenc","tfdt","data_format","generalTierFlag","join","mdhd","2940oKpvSO","SAP_type","codec","avc3","ppsLength","default_IsEncrypted","vmhd","stss","moov","isAudioEncryption","pps","AVC","pssh","senc","tfhd","slice","stsz","moof","13480ozOuim","g7110a","width","getFrameDuration","5064wwMPge","filter","samplesize","dts","data","formatTimescale","InitializationVector","mp4a.","configurationVersion","frameCount","hSpacing","mdia","sampleDuration","apply","hvcC","language","avc1.","type"];return(LT=function(){return t})()}function xT(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const s=Math.pow(2,32);return DT(t,e)*s+DT(t,e+4)}!function(t,e){const s=jT,i=t();for(;;)try{if(448605===-parseInt(s(516))/1*(parseInt(s(590))/2)+-parseInt(s(551))/3*(parseInt(s(486))/4)+-parseInt(s(511))/5+-parseInt(s(456))/6+parseInt(s(568))/7*(-parseInt(s(586))/8)+parseInt(s(488))/9*(parseInt(s(520))/10)+parseInt(s(617))/11)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(LT);const PT={AAC:"aac",G711PCMA:CT(587),G711PCMU:"g7110m"},BT={AVC:CT(613),HEVC:"hevc"};class MT{static[CT(589)](t){return 1024*(arguments[CT(490)]>1&&void 0!==arguments[1]?arguments[1]:9e4)/t}static[CT(610)](t){return MT[CT(491)].indexOf(t)}}function FT(t,e,s,i,r,n){const o=CT,a=[],h=null==r?void 0:r.entries,c=e[o(455)],l=i.entries,d=s.entrySizes,u=null==n?void 0:n[o(455)];let p,f;u&&(p={},u.forEach((t=>{p[t-1]=!0}))),h&&(f=[],h[o(536)]((t=>{let{count:e,offset:s}=t;for(let t=0;t<e;t++)f.push(s)})));let m,g=-1,A=0,y=0,b=0,v=0,S=0,w=c[0][o(524)],E=c[1]?c[1][o(547)]-1:1/0;return t[o(455)][o(536)]((t=>{const e=o;let{count:i,delta:r}=t;for(let t=0;t<i;t++)m={dts:A,duration:r,size:d[y]||s[e(630)],offset:l[b]+S,index:y},u&&(m[e(512)]=p[y],m[e(512)]&&g++,m[e(519)]=g),f&&y<f.length&&(m[e(473)]=m[e(593)]+f[y]),a[e(545)](m),A+=r,y++,y<w?S+=m[e(515)]:(b++,S=0,b>=E&&(v++,E=c[v+1]?c[v+1].firstChunk-1:1/0),w+=c[v][e(524)])})),a}function OT(t,e){const s=CT;return t[s(483)]=RT(e,6),t.width=RT(e,24),t.height=RT(e,26),t[s(533)]=DT(e,28),t[s(624)]=DT(e,32),t[s(599)]=RT(e,40),t[s(487)]=RT(e,74),78}function UT(t,e){const s=CT;return t.dataReferenceIndex=RT(e,6),t.channelCount=RT(e,16),t.sampleSize=RT(e,18),t[s(460)]=DT(e,24)/65536,28}function NT(t,e,s){const i=CT;if(!t)return;if(t[i(515)]!==t[i(594)][i(490)])throw new Error("box "+t.type+i(539));const r={start:t[i(467)],size:t[i(515)],headerSize:t[i(521)],type:t[i(607)]};return e&&(r[i(451)]=t[i(594)][t[i(521)]],r[i(552)]=function(t){let e=arguments[jT(490)]>1&&void 0!==arguments[1]?arguments[1]:0;return(t[e]<<16)+(t[e+1]<<8)+(t[e+2]||0)}(t[i(594)],t.headerSize+1),r[i(521)]+=4),s(r,t[i(594)].subarray(r[i(521)]),r[i(467)]+r[i(521)]),r}function jT(t,e){const s=LT();return(jT=function(t,e){return s[t-=445]})(t,e)}$f(MT,CT(491),[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350]);const VT=function(t,e,s){const i=CT,r=String(s),n=e>>0;let o=Math[i(503)](n/r[i(490)]);const a=[],h=String(t);for(;o--;)a.push(r);return a.join("")[i(510)](0,n-h[i(490)])+h},zT=function(){const t=CT,e=[];for(var s=arguments[t(490)],i=new Array(s),r=0;r<s;r++)i[r]=arguments[r];return i[t(536)]((s=>{const i=t;e[i(545)](VT(Number(s)[i(478)](16),2,0))})),e[0]};class GT{static[CT(517)](t){const e=CT;return!!GT[e(637)](t,[e(550)])}static[CT(637)](t,e){const s=CT;let i=arguments[s(490)]>2&&void 0!==arguments[2]?arguments[2]:0;const r=[];if(!t)return r;let n=0,o="",a=0;for(;t[s(490)]>7;){if(n=DT(t),o=String[s(493)][s(603)](null,t[s(454)](4,8)),a=8,1===n?(n=xT(t,8),a+=8):!n&&(n=t[s(490)]),!e[0]||o===e[0]){const h=t[s(454)](0,n);if(!(e[s(490)]<2))return GT[s(637)](h[s(454)](a),e[s(583)](1),i+a);r.push({start:i,size:n,headerSize:a,type:o,data:h})}i+=n,t=t[s(454)](n)}return r}static tfhd(t){return NT(t,!0,((t,e)=>{const s=jT;t[s(532)]=DT(e);let i=4;const r=1&t[s(552)],n=2&t[s(552)],o=8&t[s(552)],a=16&t[s(552)],h=32&t[s(552)];r&&(i+=4,t[s(522)]=DT(e,i),i+=4),n&&(t[s(472)]=DT(e,i),i+=4),o&&(t.defaultSampleDuration=DT(e,i),i+=4),a&&(t.defaultSampleSize=DT(e,i),i+=4),h&&(t[s(621)]=DT(e,i))}))}static sidx(t){return NT(t,!0,((t,e)=>{const s=jT;let i=0;t[s(615)]=DT(e,i),i+=4,t.timescale=DT(e,i),i+=4,0===t[s(451)]?(t.earliest_presentation_time=DT(e,i),i+=4,t[s(531)]=DT(e,i),i+=4):(t[s(477)]=xT(e,i),i+=8,t[s(531)]=xT(e,i),i+=8),i+=2,t[s(544)]=[];const r=RT(e,i);i+=2;for(let n=0;n<r;n++){const r={};t.references[s(545)](r);let n=DT(e,i);i+=4,r[s(445)]=n>>31&1,r.referenced_size=2147483647&n,r[s(553)]=DT(e,i),i+=4,n=DT(e,i),i+=4,r[s(635)]=n>>31&1,r[s(569)]=n>>28&7,r[s(464)]=268435455&n}}))}static[CT(576)](t){return NT(t,!1,((t,e,s)=>{const i=jT;t[i(549)]=GT.mvhd(GT[i(637)](e,[i(549)],s)[0]),t[i(626)]=GT[i(637)](e,[i(626)],s).map((t=>GT.trak(t))),t[i(580)]=GT[i(580)](GT[i(637)](e,[i(580)],s)[0])}))}static[CT(549)](t){return NT(t,!0,((t,e)=>{const s=jT;let i=0;1===t.version?(t.timescale=DT(e,16),t[s(632)]=xT(e,20),i+=28):(t[s(535)]=DT(e,8),t[s(632)]=DT(e,12),i+=16),t[s(505)]=DT(e,i+76)}))}static trak(t){return NT(t,!1,((t,e,s)=>{const i=jT;t[i(561)]=GT.tkhd(GT[i(637)](e,["tkhd"],s)[0]),t.mdia=GT[i(601)](GT[i(637)](e,[i(601)],s)[0])}))}static tkhd(t){return NT(t,!0,((t,e)=>{const s=jT;let i=0;1===t[s(451)]?(t[s(532)]=DT(e,16),t[s(632)]=xT(e,24),i+=32):(t.trackId=DT(e,8),t[s(632)]=DT(e,16),i+=20),t[s(588)]=DT(e,i+52),t[s(631)]=DT(e,i+56)}))}static[CT(601)](t){return NT(t,!1,((t,e,s)=>{const i=jT;t[i(567)]=GT[i(567)](GT[i(637)](e,[i(567)],s)[0]),t[i(458)]=GT[i(458)](GT[i(637)](e,[i(458)],s)[0]),t[i(633)]=GT.minf(GT[i(637)](e,[i(633)],s)[0])}))}static[CT(567)](t){return NT(t,!0,((t,e)=>{const s=jT;let i=0;1===t[s(451)]?(t[s(535)]=DT(e,16),t.duration=xT(e,20),i+=28):(t.timescale=DT(e,8),t[s(632)]=DT(e,12),i+=16);const r=RT(e,i);t[s(605)]=String[s(493)](96+(r>>10&31),96+(r>>5&31),96+(31&r))}))}static[CT(458)](t){return NT(t,!0,((t,e)=>{const s=jT;0===t[s(451)]&&(t.handlerType=String.fromCharCode[s(603)](null,e.subarray(4,8)))}))}static[CT(633)](t){return NT(t,!1,((t,e,s)=>{const i=jT;t.vmhd=GT.vmhd(GT[i(637)](e,[i(574)],s)[0]),t.smhd=GT.smhd(GT.findBox(e,[i(619)],s)[0]),t[i(629)]=GT[i(629)](GT[i(637)](e,[i(629)],s)[0])}))}static[CT(574)](t){return NT(t,!0,((t,e)=>{t[jT(548)]=RT(e),t.opcolor=[RT(e,2),RT(e,4),RT(e,6)]}))}static[CT(619)](t){return NT(t,!0,((t,e)=>{t[jT(448)]=RT(e)}))}static[CT(629)](t){return NT(t,!1,((t,e,s)=>{const i=jT;var r,n,o;t[i(622)]=GT[i(622)](GT[i(637)](e,[i(622)],s)[0]),t[i(527)]=GT[i(527)](GT[i(637)](e,["stts"],s)[0]),t[i(469)]=GT[i(469)](GT[i(637)](e,[i(469)],s)[0]),t[i(489)]=GT[i(489)](GT[i(637)](e,[i(489)],s)[0]),t[i(584)]=GT.stsz(GT[i(637)](e,["stsz"],s)[0]),t[i(528)]=GT[i(528)](GT[i(637)](e,[i(528)],s)[0]),!t[i(528)]&&(t[i(614)]=GT[i(614)](GT[i(637)](e,[i(614)],s)[0]),t[i(528)]=t[i(614)]);const a=null===(r=t[i(622)].entries[0])||void 0===r||null===(n=r[i(506)])||void 0===n||null===(o=n[i(636)])||void 0===o?void 0:o[i(562)][i(492)];t[i(575)]=GT[i(575)](GT.findBox(e,[i(575)],s)[0]),t[i(581)]=GT[i(581)](GT.findBox(e,[i(581)],s)[0],a)}))}static[CT(581)](t){const e=CT;let s=arguments[e(490)]>1&&void 0!==arguments[1]?arguments[1]:8;return NT(t,!0,((t,i)=>{const r=e;let n=0;const o=DT(i,n);n+=4,t[r(461)]=[];for(let e=0;e<o;e++){const e={};e[r(596)]=[];for(let t=0;t<s;t++)e.InitializationVector[t]=i[n+t];if(n+=s,2&t[r(552)]){e.subsamples=[];const t=RT(i,n);n+=2;for(let s=0;s<t;s++){const t={};t[r(546)]=RT(i,n),n+=2,t[r(465)]=DT(i,n),n+=4,e.subsamples.push(t)}}t.samples[r(545)](e)}}))}static[CT(580)](t){return NT(t,!0,((t,e)=>{const s=jT,i=[],r=[];let n=0;for(let t=0;t<16;t++)r[s(545)](zT(e[n+t]));if(n+=16,t[s(451)]>0){const t=DT(e,n);n+=4;for(let r=0;r<(""+t)[s(490)];r++)for(let t=0;t<16;t++){const t=e[n];n+=1,i[s(545)](zT(t))}}const o=DT(e,n);t.data_size=o,n+=4,t[s(608)]=i,t[s(627)]=r,t.buffer=e}))}static[CT(622)](t){return NT(t,!0,((t,e,s)=>{const i=jT;t.entryCount=DT(e),t.entries=GT[i(637)](e[i(454)](4),[],s+4)[i(481)]((t=>{const e=i;switch(t[e(607)]){case"avc1":case"avc2":case e(571):case e(470):return GT[e(471)](t);case e(452):case e(508):return GT[e(452)](t);case"mp4a":return GT.mp4a(t);case e(556):case e(611):return GT[e(556)](t);case e(609):return NT(t,!1,((t,s,i)=>{const r=e;t[r(538)]=RT(s,16),t[r(592)]=RT(s,18),t[r(460)]=DT(s,24)/65536,s=s[r(454)](28),t[r(506)]=GT[r(506)](GT[r(637)](s,[r(506)],i)[0]),t[r(628)]=GT[r(628)](GT[r(637)](s,[r(628)],i)[0])}));case e(560):return NT(t,!1,((t,s,i)=>{const r=e;t[r(588)]=RT(s,24),t[r(631)]=RT(s,26),t[r(533)]=DT(s,28),t.vertresolution=DT(s,32),s=s.subarray(78),t[r(506)]=GT[r(506)](GT[r(637)](s,[r(506)],i)[0]),t[r(518)]=GT[r(518)](GT[r(637)](s,[r(518)],i)[0]),t[r(604)]=GT.hvcC(GT[r(637)](s,[r(604)],i)[0]),t[r(475)]=GT.pasp(GT.findBox(s,[r(475)],i)[0])}))}}))[i(591)](Boolean)}))}static[CT(562)](t){return NT(t,!1,((t,e)=>{const s=jT;let i=6;t.default_IsEncrypted=e[i],i+=1,t[s(492)]=e[i],i+=1,t[s(523)]=[];for(let r=0;r<16;r++)t[s(523)][s(545)](zT(e[i])),i+=1}))}static[CT(636)](t){return NT(t,!1,((t,e,s)=>{const i=jT;t[i(562)]=GT.tenc(GT.findBox(e,[i(562)],s)[0])}))}static[CT(506)](t){return NT(t,!1,((t,e,s)=>{const i=jT;t[i(636)]=GT[i(636)](GT.findBox(e,[i(636)],s)[0]),t[i(501)]=GT[i(501)](GT[i(637)](e,["frma"],s)[0])}))}static[CT(501)](t){return NT(t,!1,((t,e)=>{const s=jT;t[s(564)]="";for(let i=0;i<4;i++)t[s(564)]+=String.fromCharCode(e[i])}))}static[CT(471)](t){return NT(t,!1,((t,e,s)=>{const i=jT,r=OT(t,e),n=e[i(454)](r);s+=r,t[i(518)]=GT.avcC(GT[i(637)](n,[i(518)],s)[0]),t[i(475)]=GT[i(475)](GT.findBox(n,[i(475)],s)[0])}))}static[CT(518)](t){return NT(t,!1,((t,e)=>{const s=jT;t.configurationVersion=e[0],t.AVCProfileIndication=e[1],t[s(559)]=e[2],t.AVCLevelIndication=e[3],t[s(570)]=function(t){const e=CT;let s,i=e(606);for(let r=0;r<3;r++)s=t[r][e(478)](16),s[e(490)]<2&&(s="0"+s),i+=s;return i}([e[1],e[2],e[3]]),t[s(526)]=3&e[4],t[s(514)]=31&e[5],t[s(497)]=[];let i=6;for(let r=0;r<t[s(514)];r++){const r=RT(e,i);i+=2,t[s(497)][s(545)](e[s(454)](i,i+r)),i+=r}t[s(572)]=e[i],i+=1,t.pps=[];for(let r=0;r<t[s(572)];r++){const r=RT(e,i);i+=2,t[s(578)][s(545)](e[s(454)](i,i+=r)),i+=r}}))}static[CT(452)](t){return NT(t,!1,((t,e,s)=>{const i=jT,r=OT(t,e),n=e[i(454)](r);s+=r,t[i(604)]=GT[i(604)](GT[i(637)](n,[i(604)],s)[0]),t.pasp=GT[i(475)](GT[i(637)](n,[i(475)],s)[0])}))}static[CT(604)](t){return NT(t,!1,((e,s)=>{const i=jT;e[i(594)]=t[i(594)],e.codec=i(507),e[i(598)]=s[0];const r=s[1];e[i(623)]=r>>6,e[i(565)]=(32&r)>>5,e.generalProfileIdc=31&r,e[i(509)]=DT(s,2),e[i(554)]=s[i(454)](6,12),e[i(496)]=s[12],e[i(616)]=RT(s,19),e[i(480)]=s[22],e.vps=[],e.sps=[],e[i(578)]=[];let n=23,o=0,a=0,h=0;for(let t=0;t<e[i(480)];t++){o=63&s[n],a=RT(s,n+1),n+=3;const t=[];for(let e=0;e<a;e++)h=RT(s,n),n+=2,t[i(545)](s[i(454)](n,n+h)),n+=h;32===o?e[i(484)][i(545)](...t):33===o?e[i(497)][i(545)](...t):34===o&&e[i(578)][i(545)](...t)}}))}static[CT(475)](t){return NT(t,!1,((t,e)=>{const s=jT;t[s(600)]=DT(e),t[s(502)]=DT(e,4)}))}static[CT(498)](t){return NT(t,!1,((t,e,s)=>{const i=jT,r=UT(t,e);t[i(628)]=GT.esds(GT[i(637)](e.subarray(r),[i(628)],s+r)[0])}))}static esds(t){return NT(t,!0,((t,e)=>{const s=jT;t.codec=s(597);let i=0,r=0,n=0,o=0;for(;e.length;){for(i=0,o=e[i],r=e[i+1],i+=2;128&r;)n=(127&r)<<7,r=e[i],i+=1;if(n+=127&r,3===o)e=e[s(454)](i+3);else{if(4!==o){if(5===o){const r=t[s(500)]=e[s(454)](i,i+n);let o=(248&r[0])>>3;return 31===o&&r.length>=2&&(o=32+((7&r[0])<<3)+((224&r[1])>>5)),t[s(540)]=o,t.codec+=o[s(478)](16),void("."===t[s(570)][t[s(570)][s(490)]-1]&&(t.codec=t[s(570)][s(510)](0,t[s(570)].length-1)))}return void("."===t[s(570)][t[s(570)][s(490)]-1]&&(t.codec=t[s(570)][s(510)](0,t[s(570)][s(490)]-1)))}t[s(570)]+=(e[i][s(478)](16)+".")[s(620)](3,"0"),e=e[s(454)](i+13)}}}))}static[CT(556)](t){return NT(t,!1,((t,e)=>{UT(t,e)}))}static[CT(527)](t){return NT(t,!0,((t,e)=>{const s=jT,i=DT(e),r=[];let n=4;for(let t=0;t<i;t++)r[s(545)]({count:DT(e,n),delta:DT(e,n+4)}),n+=8;t[s(459)]=i,t[s(455)]=r}))}static ctts(t){return NT(t,!0,((t,e)=>{const s=jT,i=DT(e),r=[];let n=4;if(1===t.version)for(let t=0;t<i;t++)r[s(545)]({count:DT(e,n),offset:DT(e,n+4)}),n+=8;else for(let t=0;t<i;t++)r[s(545)]({count:DT(e,n),offset:-(1+~DT(e,n+4))}),n+=8;t[s(459)]=i,t[s(455)]=r}))}static[CT(489)](t){return NT(t,!0,((t,e)=>{const s=jT,i=DT(e),r=[];let n=4;for(let t=0;t<i;t++)r[s(545)]({firstChunk:DT(e,n),samplesPerChunk:DT(e,n+4),sampleDescriptionIndex:DT(e,n+8)}),n+=12;t.entryCount=i,t[s(455)]=r}))}static[CT(584)](t){return NT(t,!0,((t,e)=>{const s=jT,i=DT(e),r=DT(e,4),n=[];if(!i){let t=8;for(let i=0;i<r;i++)n[s(545)](DT(e,t)),t+=4}t.sampleSize=i,t[s(557)]=r,t[s(466)]=n}))}static[CT(528)](t){return NT(t,!0,((t,e)=>{const s=jT,i=DT(e),r=[];let n=4;for(let t=0;t<i;t++)r[s(545)](DT(e,n)),n+=4;t[s(459)]=i,t[s(455)]=r}))}static[CT(614)](t){return NT(t,!0,((t,e)=>{const s=jT,i=DT(e),r=[];let n=4;for(let t=0;t<i;t++)r[s(545)](xT(e,n)),n+=8;t.entryCount=i,t[s(455)]=r}))}static[CT(575)](t){return NT(t,!0,((t,e)=>{const s=jT,i=DT(e),r=[];let n=4;for(let t=0;t<i;t++)r[s(545)](DT(e,n)),n+=4;t[s(459)]=i,t[s(455)]=r}))}static[CT(585)](t){return NT(t,!1,((t,e,s)=>{const i=jT;t.mfhd=GT.mfhd(GT[i(637)](e,[i(634)],s)[0]),t.traf=GT[i(637)](e,[i(482)],s)[i(481)]((t=>GT[i(482)](t)))}))}static[CT(634)](t){return NT(t,!0,((t,e)=>{t[jT(453)]=DT(e)}))}static[CT(482)](t){return NT(t,!1,((t,e,s)=>{const i=jT;t[i(582)]=GT[i(582)](GT.findBox(e,[i(582)],s)[0]),t[i(563)]=GT[i(563)](GT[i(637)](e,["tfdt"],s)[0]),t[i(529)]=GT[i(529)](GT[i(637)](e,["trun"],s)[0])}))}static[CT(529)](t){return NT(t,!0,((t,e)=>{const s=jT,{version:i,flags:r}=t,n=e[s(490)],o=t[s(557)]=DT(e);let a=4;if(n>a&&1&r&&(t[s(499)]=-(1+~DT(e,a)),a+=4),n>a&&4&r&&(t[s(504)]=DT(e,a),a+=4),t[s(461)]=[],n>a){let n;for(let h=0;h<o;h++)n={},256&r&&(n.duration=DT(e,a),a+=4),512&r&&(n[s(515)]=DT(e,a),a+=4),1024&r&&(n.flags=DT(e,a),a+=4),2048&r&&(n[s(468)]=i?-(1+~DT(e,a+4)):DT(e,a),a+=4),t[s(461)][s(545)](n)}}))}static[CT(563)](t){return NT(t,!0,((t,e)=>{const s=jT;1===t.version?t.baseMediaDecodeTime=xT(e):t[s(534)]=DT(e)}))}static[CT(517)](t){return!!GT[CT(637)](t,["ftyp"])}static parseSampleFlags(t){return{isLeading:(12&t[0])>>>2,dependsOn:3&t[0],isDependedOn:(192&t[1])>>>6,hasRedundancy:(48&t[1])>>>4,paddingValue:(14&t[1])>>>1,isNonSyncSample:1&t[1],degradationPriority:t[2]<<8|t[3]}}static moovToTrack(t,e,s){const i=CT;var r,n;const o=t[i(626)];if(!o||!o[i(490)])return;const a=o.find((t=>{const e=i;var s,r;return"vide"===(null===(s=t[e(601)])||void 0===s||null===(r=s[e(458)])||void 0===r?void 0:r.handlerType)})),h=o.find((t=>{const e=i;var s,r;return"soun"===(null===(s=t.mdia)||void 0===s||null===(r=s[e(458)])||void 0===r?void 0:r[e(513)])}));if(a&&e){var c,l,d,u,p,f,m;const s=e,r=null===(c=a.tkhd)||void 0===c?void 0:c[i(532)];null!=r&&(s.id=a[i(561)][i(532)]),s[i(449)]=a[i(561)].duration,s[i(485)]=t[i(549)].duration,s[i(558)]=t[i(549)][i(535)],s.timescale=s[i(595)]=a.mdia[i(567)].timescale,s[i(632)]=a[i(601)][i(567)][i(632)]||s[i(485)]/s.mvhdTimecale*s[i(535)];const n=a.mdia[i(633)][i(629)].stsd[i(455)][0];if(s[i(588)]=n[i(588)],s[i(631)]=n[i(631)],n[i(475)]&&(s[i(450)]=[n[i(475)][i(600)],n[i(475)].vSpacing]),n[i(604)])s[i(446)]=BT[i(525)],s[i(570)]=n[i(604)][i(570)],s[i(484)]=n.hvcC.vps,s[i(497)]=n[i(604)].sps,s[i(578)]=n[i(604)][i(578)],s.hvcC=n[i(604)][i(594)];else{if(!n.avcC)throw new Error(i(479));s[i(446)]=BT[i(579)],s[i(570)]=n[i(518)][i(570)],s[i(497)]=n[i(518)][i(497)],s[i(578)]=n[i(518)].pps}var g,A,y,b,v,S,w,E;if(s[i(543)]=!0,s.ext={},s[i(462)][i(575)]=null===(l=a[i(601)])||void 0===l||null===(d=l[i(633)])||void 0===d||null===(u=d[i(629)])||void 0===u?void 0:u.stss,s.ext[i(469)]=null===(p=a.mdia)||void 0===p||null===(f=p[i(633)])||void 0===f||null===(m=f[i(629)])||void 0===m?void 0:m[i(469)],n&&n[i(607)]===i(560))s[i(625)]=!0,n.default_KID=null===(g=n[i(506)])||void 0===g||null===(A=g[i(636)])||void 0===A?void 0:A.tenc.default_KID,n[i(573)]=null===(y=n[i(506)])||void 0===y||null===(b=y[i(636)])||void 0===b?void 0:b[i(562)].default_IsEncrypted,n[i(492)]=null===(v=n[i(506)])||void 0===v||null===(S=v.schi)||void 0===S?void 0:S.tenc[i(492)],s.videoSenc=a[i(601)].minf[i(629)][i(581)]&&a[i(601)][i(633)][i(629)].senc[i(461)],n[i(564)]=null===(w=n[i(506)])||void 0===w||null===(E=w[i(501)])||void 0===E?void 0:E[i(564)],s.useEME=t[i(463)],s[i(541)]=t.kidValue,s[i(580)]=t[i(580)],s.encv=n}if(h&&s){var I,T,k,_,C,R,D,L,x;const e=s,o=null===(I=h[i(561)])||void 0===I?void 0:I[i(532)];null!=o&&(e.id=h[i(561)][i(532)]),e[i(449)]=h[i(561)].duration,e[i(485)]=t[i(549)][i(632)],e[i(558)]=t.mvhd[i(535)],e.timescale=e.formatTimescale=h.mdia[i(567)].timescale,e[i(632)]=h[i(601)][i(567)][i(632)]||e[i(485)]/e[i(558)]*e[i(535)];const a=h[i(601)][i(633)][i(629)][i(622)].entries[0];switch(e.sampleSize=a[i(630)],e.sampleRate=a.sampleRate,e.channelCount=a[i(538)],e[i(543)]=!0,a[i(607)]){case i(556):e[i(446)]=e[i(570)]=PT[i(447)],e.sampleRate=8e3;break;case"ulaw":e[i(446)]=e[i(570)]=PT.G711PCMU,e.sampleRate=8e3;break;default:e.codecType=PT.AAC,e[i(602)]=MT.getFrameDuration(e[i(460)],e.timescale),e[i(474)]=MT.getRateIndexByRate(e[i(460)]),e[i(540)]=(null===(r=a[i(628)])||void 0===r?void 0:r[i(540)])||2,a[i(628)]&&(e[i(500)]=Array[i(494)](a.esds[i(500)])),e[i(570)]=(null===(n=a[i(628)])||void 0===n?void 0:n.codec)||i(495)}var P,B,M,F,O,U,N,j;if(e[i(602)]=MT[i(589)](e[i(460)],e[i(535)]),e[i(540)]=(null===(T=a.esds)||void 0===T?void 0:T[i(540)])||2,a[i(628)]&&(a[i(628)][i(500)]?e[i(500)]=Array[i(494)](a[i(628)][i(500)]):console.warn(i(618))),e[i(570)]=(null===(k=a[i(628)])||void 0===k?void 0:k.codec)||i(495),e[i(474)]=MT[i(610)](e[i(460)]),e[i(462)]={},e[i(462)][i(575)]=null===(_=h[i(601)])||void 0===_||null===(C=_[i(633)])||void 0===C||null===(R=C[i(629)])||void 0===R?void 0:R[i(575)],e[i(462)][i(469)]=null===(D=h[i(601)])||void 0===D||null===(L=D[i(633)])||void 0===L||null===(x=L[i(629)])||void 0===x?void 0:x[i(469)],e[i(543)]=!0,a&&a[i(607)]===i(609))e[i(577)]=!0,a[i(564)]=null===(P=a[i(506)])||void 0===P||null===(B=P.frma)||void 0===B?void 0:B[i(564)],a[i(523)]=null===(M=a[i(506)])||void 0===M||null===(F=M.schi)||void 0===F?void 0:F[i(562)][i(523)],a[i(573)]=null===(O=a.sinf)||void 0===O||null===(U=O[i(636)])||void 0===U?void 0:U[i(562)][i(573)],a.default_IV_size=null===(N=a[i(506)])||void 0===N||null===(j=N[i(636)])||void 0===j?void 0:j[i(562)][i(492)],e.audioSenc=h[i(601)].minf[i(629)].senc&&h[i(601)][i(633)][i(629)].senc[i(461)],e.useEME=t[i(463)],e[i(541)]=t[i(541)],e[i(609)]=a}if(s&&(s[i(625)]=!!e&&e[i(625)]),e&&(e[i(577)]=!!s&&s[i(577)]),null!=e&&e[i(560)]||null!=s&&s[i(609)]){var V,z;const t=null==e||null===(V=e.encv)||void 0===V?void 0:V.default_KID,r=null==s||null===(z=s[i(609)])||void 0===z?void 0:z.default_KID,n=t||r?(t||r)[i(566)](""):null;e&&(e[i(608)]=n),s&&(s[i(608)]=n)}return e&&(e[i(552)]=3841),s&&(s[i(552)]=1793),{videoTrack:e,audioTrack:s}}static[CT(612)](t,e,s){const i=CT;var r;const n=null==e||null===(r=e[i(461)])||void 0===r?void 0:r[i(490)];if(!n)return 1024;return 1024*n/e[i(535)]*t.timescale/s}static[CT(530)](t,e,s){const i=CT,r={};return t[i(634)]&&(e&&(e[i(453)]=t[i(634)].sequenceNumber),s&&(s[i(453)]=t[i(634)][i(453)])),t.traf.forEach((t=>{const n=i;let{tfhd:o,tfdt:a,trun:h}=t;if(!o||!h)return;a&&(e&&e.id===o[n(532)]&&(e.baseMediaDecodeTime=a[n(534)]),s&&s.id===o[n(532)]&&(s[n(534)]=a[n(534)]));const c=o[n(555)]||0,l=o[n(476)]||GT[n(612)](e,s,h.samples[n(490)]||h[n(557)]);let d=h[n(499)]||0,u=0,p=-1;if(!h[n(461)][n(490)]&&h[n(557)]){r[o[n(532)]]=[];for(let t=0;t<h[n(557)];t++)r[o[n(532)]][n(545)]({offset:d,dts:u,duration:l,size:c}),u+=l,d+=c}else r[o[n(532)]]=h.samples[n(481)](((t,e)=>{const s=n;return(t={offset:d,dts:u,pts:u+(t[s(468)]||0),duration:t[s(632)]||l,size:t.size||c,gopId:p,keyframe:0===e||null!==t.flags&&void 0!==t[s(552)]&&(65536&t[s(552)])>>>0!=65536})[s(512)]&&(p++,t[s(519)]=p),u+=t[s(632)],d+=t.size,t}))})),r}static[CT(537)](t){const e=CT,s=t[e(626)];if(!s||!s[e(490)])return;const i=s.find((t=>{const s=e;var i,r;return"vide"===(null===(i=t.mdia)||void 0===i||null===(r=i[s(458)])||void 0===r?void 0:r[s(513)])})),r=s[e(542)]((t=>{const s=e;var i,r;return(null===(i=t.mdia)||void 0===i||null===(r=i[s(458)])||void 0===r?void 0:r[s(513)])===s(457)}));if(!i&&!r)return;let n,o;if(i){var a,h;const t=null===(a=i.mdia)||void 0===a||null===(h=a.minf)||void 0===h?void 0:h.stbl;if(!t)return;const{stts:e,stsc:s,stsz:r,stco:o,stss:c,ctts:l}=t;if(!(e&&s&&r&&o&&c))return;n=FT(e,s,r,o,l,c)}if(r){var c,l,d;const t=null===(c=r.mdia)||void 0===c||null===(l=c[e(633)])||void 0===l?void 0:l[e(629)];if(!t)return;const s=null===(d=r.mdia.mdhd)||void 0===d?void 0:d.timescale,{stts:i,stsc:n,stsz:a,stco:h}=t;if(!(s&&i&&n&&a&&h))return;o=FT(i,n,a,h)}return{videoSamples:n,audioSamples:o}}}function WT(t,e){const s=HT();return(WT=function(t,e){return s[t-=159]})(t,e)}function HT(){const t=["10UGVGwC","3006078XxDsYz","26139RdAvpC","604876XuJUzR","132wejVQB","3283596vMzOcJ","24UVvgTd","min","42945144RuKJva","1564843uLktlx","2076690yKhjnU","length","18NLAAtH","max"];return(HT=function(){return t})()}!function(t,e){const s=WT,i=t();for(;;)try{if(880138===parseInt(s(166))/1*(-parseInt(s(168))/2)+-parseInt(s(162))/3*(parseInt(s(167))/4)+parseInt(s(160))/5+-parseInt(s(165))/6+-parseInt(s(159))/7*(parseInt(s(170))/8)+parseInt(s(169))/9+-parseInt(s(164))/10*(-parseInt(s(172))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(HT);const KT=QT;function QT(t,e){const s=YT();return(QT=function(t,e){return s[t-=176]})(t,e)}function YT(){const t=["moof","loopWorker","8314288hBSkem","audioListLength","push","size","updatePlayRate","setSeekingTime","_isUseWorker","length","pps","allListLength","_initLoopWorker","isIFrame","map","cryptoPayload","end","samples","sampleRate","debugWarn","offset","isInitVideo","videoListLength","player","moofToSamples","isAudioG711a","AAC","workerClearTimeout","188YUYqvb","data","getSampleRange","isPlayVodNotUseMSE","2290262ELvBfx","cleanSampleListAndSetSeekTime","_postMessageToLoopWorker","playVodRateChange","_doDecodeAudio","postMessage","moovToTrack","buffer","loop worker is not init, can not post message","isAudioAac","8330413ggYtgQ","playVodTimeCache","gopId","forEach","decodeVideo","debugError","checkInitAudio","_opt","codec","cannot found moov box","codecType","isHevc","seekSampleRange","getPlayVodDuration","cmd","_sendAccADTSHeader","subarray","audio","audioData audio init success and type is","byteLength","sampleListInfo","_calcDecodeFps","correctSamplePts","_doDecodeVideo","video init success","checkInitVideo","workerUrl","isInitAudio","demux","duration","geVodLoadedTime","8423856UokMww","buferredDuration","_doDecodeByHls","type","objectType","1570824JiiGoR","revokeObjectURL","listen playVodRateChange","sampleRateIndex","tempSampleListInfo","dts","cryptoPayloadAudio","baseMediaDecodeTime","URL","updateStats","init","debug","payload","audioTrack","moov","G711PCMA","channelCount","start","getSampleListLength","concat","_prevPlayVodTimeCache","set","isAudioG711u","_hasCalcFps","5XvlLux","findBox","1060627CESeEW","sps","60981cnxGWC","video","hlsFmp4","_basefps","debugLog","terminate","pts","videoTrack","addAudioTagHeader","destroy","resume","TAG_NAME"];return(YT=function(){return t})()}!function(t,e){const s=QT,i=t();for(;;)try{if(684300===-parseInt(s(287))/1+parseInt(s(215))/2+parseInt(s(289))/3*(-parseInt(s(211))/4)+parseInt(s(285))/5*(parseInt(s(261))/6)+parseInt(s(225))/7+parseInt(s(185))/8+-parseInt(s(256))/9)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(YT);class qT extends Dp{constructor(t){const e=QT;super(t),this[e(206)]=t,this[e(182)]="HlsFmp4Demux",this[e(265)]={},this[e(204)]=!1,this[e(252)]=!1,this.videoTrack={id:1,samples:[],sps:[],pps:[],vps:[],codec:""},this.audioTrack={id:2,samples:[],sampleRate:0,channelCount:0,codec:"",codecType:""},this[e(210)]=null,this.workerUrl=null,this[e(184)]=null,this[e(284)]=!1,this[e(292)]=25,this._prevPlayVodTimeCache=0,this[e(191)]()&&this[e(195)](),this[e(206)].isPlayVod()&&this[e(191)]()&&this[e(206)].on(M[e(218)],(t=>{const s=e;this[s(206)][s(293)](this.TAG_NAME,s(263),t),this[s(217)](s(189),{rate:t})})),t[e(293)](this[e(182)],e(271))}[KT(180)](){const t=KT;super[t(180)](),this.workerUrl&&(URL[t(262)](this[t(251)]),this[t(251)]=null),this[t(210)]&&(clearTimeout(this[t(210)]),this[t(210)]=null),this[t(184)]&&(this[t(184)][t(220)]({cmd:t(180)}),this[t(184)][t(176)](),this[t(184)]=null),this._hasCalcFps=!1,this[t(178)]=null,this.audioTrack=null,this.isInitVideo=!1,this[t(252)]=!1,this[t(292)]=25,this[t(281)]=0,this[t(206)][t(293)](this[t(182)],"destroy")}[KT(253)](t,e){const s=KT;let i=this.audioTrack,r=this[s(178)];if(this[s(231)](),this[s(250)](),i[s(200)]=[],r.samples=[],e){if(this.player.updateStats({abps:e[s(244)]}),ci(this[s(252)])){const t=GT.findBox(e,[s(275)])[0];if(!t)return void this[s(206)][s(230)](this.TAG_NAME,s(234));GT[s(221)](GT.moov(t),null,i),this.checkInitAudio()&&(this[s(206)][s(293)](this[s(182)],s(243),i[s(235)]),this[s(224)]()&&this[s(240)](i))}const t=GT[s(286)](e,[s(183)])[0];if(t){const r=GT[s(207)](GT[s(183)](t),null,i)[i.id],n=i[s(268)];if(r){const o=t[s(278)];r[s(197)]((t=>{const r=s;t[r(203)]+=o;const a=e[r(241)](t[r(203)],t[r(203)]+t[r(188)]),h=t.dts+n,c=this.addAudioTagHeader(a);i[r(200)].push({type:D[r(242)],pts:h,dts:h,payload:c,duration:t[r(254)],size:c[r(244)]})}))}}}if(t){if(this.player[s(270)]({vbps:t[s(244)]}),ci(this.isInitVideo)&&ci(this[s(252)])){const e=GT[s(286)](t,[s(275)])[0];if(!e)throw new Error(s(234));if(GT[s(221)](GT[s(275)](e),r,i),this[s(231)]()&&(this[s(206)][s(293)](this[s(182)],"videoData audio init success and type is",i[s(235)]),this[s(224)]()&&this._sendAccADTSHeader(i)),this[s(250)]()){this[s(206)][s(293)](this.TAG_NAME,s(249));let t=null;r.codecType===lt.h265?r[s(288)][s(192)]&&r.vps.length&&r[s(193)][s(192)]&&(t=Ph({sps:r[s(288)][0],pps:r[s(193)][0],vps:r.vps[0]})):r.sps[s(192)]&&r[s(193)][s(192)]&&(t=nh({sps:r[s(288)][0],pps:r[s(193)][0]})),t&&(this.player[s(293)](this[s(182)],"seqHeader"),this[s(258)](t,D[s(290)],0,!0,0))}}const e=GT[s(286)](t,[s(183)])[0];if(e){const n=GT.moofToSamples(GT[s(183)](e),r,i),o=r[s(268)],a=i[s(268)],h=e[s(278)];Object.keys(n).forEach((e=>{const c=s;r.id==e?n[e][c(197)]((e=>{const s=c;e[s(203)]+=h;const i={type:D[s(290)],pts:(e.pts||e[s(266)])+o,dts:e.dts+o,units:[],payload:null,isIFrame:!1};i[s(254)]=e.duration,i[s(227)]=e[s(227)],e.keyframe&&(i.isIFrame=!0);const n=t[s(241)](e[s(203)],e[s(203)]+e.size);i.payload=n,r.samples[s(187)](i)})):i.id==e&&n[e][c(197)]((e=>{const s=c;e.offset+=h;const r=t[s(241)](e[s(203)],e.offset+e[s(188)]),n=e[s(266)]+a,o=this[s(179)](r);i[s(200)].push({type:D[s(242)],pts:n,dts:n,payload:o,duration:e.duration,size:o[s(244)]})}))}))}}this.correctSamplePts(r),this[s(247)](i);const n=r[s(200)][s(280)](i[s(200)]);n.sort(((t,e)=>{const i=s;return t[i(266)]-e[i(266)]})),n[s(228)]((t=>{const e=s,i=new Uint8Array(t[e(273)]);delete t.payload,this[e(191)]()?this.loopWorker[e(220)]({...t,payload:i,cmd:"sample"},[i[e(222)]]):t.type===D.video?this[e(248)]({...t,payload:i}):t[e(259)]===D[e(242)]&&this[e(219)]({...t,payload:i})})),ci(this[s(284)])&&this[s(191)]()&&(this._hasCalcFps=this[s(246)](n))}[KT(231)](){const t=KT;return this[t(252)]=!!(this[t(274)][t(201)]&&this[t(274)][t(277)]&&this.audioTrack.codec),this[t(252)]}[KT(224)](){const t=KT;return this.audioTrack.codecType===PT[t(209)]}isAudioG711a(){const t=KT;return this.audioTrack.codecType===PT[t(276)]}[KT(283)](){const t=KT;return this[t(274)][t(235)]===PT.G711PCMU}[KT(250)](){const t=KT;return this.isInitVideo=!!(this[t(178)][t(193)][t(192)]&&this[t(178)].sps[t(192)]&&this[t(178)][t(233)]),this[t(204)]}_sendAccADTSHeader(t){const e=KT,s=ue({profile:t[e(260)],sampleRate:t[e(264)],channel:t[e(277)]});this[e(258)](s,D[e(242)],0,!0,0)}_initLoopWorker(){const t=KT;this.player[t(293)](this[t(182)],"_initLoopWorker()");const e=Ys(mT);let s=new Worker(e);this[t(251)]=e,this[t(210)]=setTimeout((()=>{const e=t;window[e(269)][e(262)](this.workerUrl),this[e(251)]=null,this[e(210)]=null}),T),s[t(220)]({cmd:"init",options:{type:t(291),seekingMaxDiff:1e4,debug:this[t(206)][t(232)][t(272)],debugUuid:this.player[t(232)].debugUuid,debugLevel:this[t(206)][t(232)].debugLevel}}),s.onmessage=e=>{const s=t,i=e[s(212)];switch(i[s(239)]){case s(229):this._doDecodeVideo(i);break;case"decodeAudio":this[s(219)](i);break;case s(245):if(this[s(265)]=i,this[s(206)][s(214)]()){const t=this[s(255)](),e=this.player[s(238)]();if(t&&e){let i=t/(1e3*e);i!==this[s(281)]&&this[s(206)].emit(M[s(226)],i),this[s(281)]=i}}}},this[t(184)]=s}_postMessageToLoopWorker(t,e){const s=KT;this[s(191)]()&&(this[s(184)]?this[s(184)].postMessage({cmd:t,...e}):this[s(206)][s(202)](this.TAG_NAME,s(223)))}_doDecodeAudio(t){const e=KT,s=new Uint8Array(t[e(273)]);this[e(206)][e(270)]({abps:s[e(244)]});let i=this[e(267)](s);this[e(258)](i,D[e(242)],t[e(266)],!1,0)}[KT(248)](t){const e=KT,s=new Uint8Array(t.payload);let i=null;i=t[e(236)]?Bh(s,t[e(196)]):oh(s,t[e(196)]),this.player.updateStats({dts:t[e(266)],vbps:i[e(244)]});const r=t[e(177)]-t[e(266)];let n=this[e(198)](i,t[e(196)]);this[e(258)](n,D[e(290)],t[e(266)],t[e(196)],r)}getBuferredDuration(){const t=KT;return this[t(265)][t(257)]||0}[KT(279)](){const t=KT;return this[t(265)][t(194)]||0}getSampleAudioListLength(){const t=KT;return this[t(265)][t(186)]||0}getSampleVideoListLength(){const t=KT;return this[t(265)][t(205)]||0}[KT(213)](){const t=KT;return{start:this[t(265)][t(278)]||0,end:this.tempSampleListInfo[t(199)]||0}}[KT(237)](t){const e=KT;this[e(217)](e(237),{time:t})}[KT(216)](t){const e=KT;ci(this.player.isUseMSE())&&(this.clearBuffer(!0),this[e(217)]("cleanSampleList"),this[e(217)](e(190),{time:t}))}pause(){this[KT(217)]("pause")}[KT(181)](){const t=KT;this[t(217)](t(181))}[KT(255)](){const t=KT;let e=0;return e=this[t(213)]()[t(199)],e}addAudioTagHeader(t){const e=KT;let s=[];this.isAudioAac()?s=[175,1]:this[e(208)]()?s=[114]:this[e(283)]()&&(s=[130]);const i=new Uint8Array(t.length+s[e(192)]);return i.set(s,0),i[e(282)](t,s[e(192)]),i}}const JT=XT;function XT(t,e){const s=$T();return(XT=function(t,e){return s[t-=408]})(t,e)}!function(t,e){const s=XT,i=t();for(;;)try{if(177690===-parseInt(s(436))/1+parseInt(s(423))/2*(-parseInt(s(414))/3)+parseInt(s(408))/4+-parseInt(s(413))/5*(parseInt(s(432))/6)+-parseInt(s(427))/7*(-parseInt(s(433))/8)+-parseInt(s(425))/9+parseInt(s(410))/10*(parseInt(s(409))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}($T);class ZT{constructor(t,e){const s=XT;this[s(431)]=t,this[s(418)]=this[s(431)][s(418)],this.isMP4=e,this[s(426)]="",this.TAG_NAME=s(416),e?this[s(421)]=new qT(this.hls.player):this._demuxer=new _T(this[s(431)][s(418)]),this[s(418)][s(415)](this.TAG_NAME,s(419)+(e?s(417):"ts")+" demuxer")}[JT(411)](){const t=JT;this[t(421)]&&(this[t(421)][t(411)](),this[t(421)]=null)}[JT(430)](t,e,s,i,r,n){const o=JT;this[o(418)][o(415)](this[o(429)],"transmux videoChunk:"+(t&&t[o(422)])+o(428)+(e&&e[o(422)])+", discontinuity:"+s+", contiguous:"+i+o(435)+r+o(420)+n);const a=this._demuxer;try{this[o(424)]?a[o(437)](t,e):a[o(434)](Df(t,e),s,i,r)}catch(t){throw new cI(oI[o(412)],oI.HLS,t)}}}function $T(){const t=["42jEdqJX","517904hTYMTc","demuxAndFix",", startTime:","298041gxaaWX","demux","176408mwzMDi","8019363NoAlhE","10GhncTt","destroy","DEMUX","92980LUKMxw","44070ICiwic","debugLog","HlsTransmuxer","mp4","player","init and is ",", needInit:","_demuxer","byteLength","16LRqXDt","isMP4","2195334GqbJiv","_initSegmentId","21xGiYtA",", audioChunk:","TAG_NAME","transmux","hls"];return($T=function(){return t})()}function tk(t){const e=sk;return t&&t.length?1===t[e(470)]&&t[e(462)](0)-t[e(471)](0)<1e-6||1===t.length&&t[e(471)](0)<0?0:t[e(471)](0):0}function ek(t){const e=sk;if(t)try{return t[e(460)]}catch(t){}}function sk(t,e){const s=nk();return(sk=function(t,e){return s[t-=460]})(t,e)}function ik(t,e){const s=sk;if(!t||!t[s(470)])return[];const i=[];for(let r=0,n=t[s(470)];r<n;r++){const n=i[s(470)];if(n&&e){const o=i[n-1],a=o[1],h=t.start(r);h-a<=e?o[1]=t.end(r):i[s(468)]([h,t.end(r)])}else i[s(468)]([t.start(r),t[s(462)](r)])}return i}function rk(t){const e=sk;return t&&t[e(470)]?t[e(465)](((t,e)=>t+(e[1]-e[0])),0):0}function nk(){const t=["80016aWdLFe","19PVfxbt","push","360oGwgHV","length","start","12OSMYQI","18462VGRQYQ","629691pnGcyn","14usRVsQ","15834559SsyOud","7194xaaiUE","122770NdGFoR","96560YGPjYh","buffered","215JRdVsm","end","5532AfVbVj","875LkaIUy","reduce"];return(nk=function(){return t})()}!function(t,e){const s=sk,i=t();for(;;)try{if(669463===-parseInt(s(467))/1*(parseInt(s(479))/2)+-parseInt(s(474))/3*(-parseInt(s(472))/4)+-parseInt(s(461))/5*(-parseInt(s(473))/6)+parseInt(s(464))/7*(parseInt(s(466))/8)+parseInt(s(469))/9*(parseInt(s(478))/10)+parseInt(s(477))/11*(parseInt(s(463))/12)+-parseInt(s(476))/13*(parseInt(s(475))/14))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(nk);var ok=hk;function ak(){var t=["getSampleRange","2027670oMIZpN","isPlayVodUseMSE","isStateOpen","currentTime","15529320GHwJvS","seekSampleRange","_demuxer","getTsSampleRange","msStreaming","decrypt","_decryptor","debugLog","createSource","duration","isFull","playVod","nbSb","msHasOpTasks","createSource error: chunk is not ts","_mse","detachMedia","getBufferedAudioSegments","cleanSampleListAndSetSeekTime","9oUvyif","endOfStream","81572amjwMg","TAG_NAME","_baseDts","isPlayVod","getSampleVideoListLength","getBufferedSegments","14YjLkrd","220592FSSoTw","_needInitSegment","updateMediaSourceDuration","clearAllBuffer","hls","clearSourceBuffer","pause","getSampleAudioListLength","destroy","media","7055334uLsSyM","setLiveSeekableRange","demuxerPause","_transmuxer","696521jwGxeu","_sourceCreated","4555336khsOCm","msIsOpened","mseDecoder","updateMSE","updateDuration()","length","evictBuffer","seamlessSwitch","player","decryptBuffer","getSampleListLength","removeBuffer","baseDts","getBuferredDuration"];return(ak=function(){return t})()}function hk(t,e){var s=ak();return(hk=function(t,e){return s[t-=458]})(t,e)}!function(t,e){for(var s=hk,i=t();;)try{if(757845===-parseInt(s(469))/1+parseInt(s(518))/2+parseInt(s(509))/3*(parseInt(s(511))/4)+-parseInt(s(486))/5+-parseInt(s(465))/6+-parseInt(s(517))/7*(-parseInt(s(471))/8)+parseInt(s(490))/9)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(ak);class ck{constructor(t){var e=hk;this[e(459)]=t,this.player=t.player,this[e(496)]=new fT(this[e(459)],this[e(479)]),this._transmuxer=null,this[e(505)]=null,this[e(470)]=!1,this._needInitSegment=!0,this._directAppend=!1,this[e(479)][e(487)]()&&(this[e(505)]=this[e(479)].mseDecoder),this[e(512)]="HlsBufferService"}async destroy(){var t=hk;await this[t(506)](),this._transmuxer&&(this[t(468)].destroy(),this[t(468)]=null),this._decryptor&&(this[t(496)][t(463)](),this[t(496)]=null)}[ok(474)](){var t=ok;this[t(479)][t(487)]()&&!this._mse&&(this[t(505)]=this[t(479)][t(473)])}get[ok(483)](){var t,e,s=ok;return null===(t=this[s(468)])||void 0===t||null===(e=t[s(492)])||void 0===e?void 0:e[s(513)]}get[ok(502)](){return 0}get[ok(472)](){return!0}get[ok(503)](){return!1}get[ok(494)](){return!0}async updateDuration(t){var e=ok;this[e(479)][e(514)]()&&(this.player.debugLog(this[e(512)],e(475),t),this.player[e(501)].updateDuration(t),this[e(479)][e(487)]()&&this[e(479)].mseDecoder&&this.player[e(473)][e(488)]&&this.player[e(473)][e(520)](t))}[ok(498)](t,e,s,i){var r=ok;if(this[r(470)])return;const n=t||e;n&&(_T.probe(n)?!this[r(468)]&&(this[r(468)]=new ZT(this.hls,!1)):GT.probe(n)?!this[r(468)]&&(this._transmuxer=new ZT(this[r(459)],!0)):this[r(479)].debugError(this[r(512)],r(504)))}async appendBuffer(t,e,s,i,r,n,o){var a=ok;if(!(null!=s&&s[a(476)]||null!=i&&i.length))return;const h=this._needInitSegment||r;return this._transmuxer.transmux(s,i,h,n,o,h),this[a(519)]=!1,!0}async[ok(482)](){var t=ok;let e=arguments[t(476)]>0&&void 0!==arguments[0]?arguments[0]:0,s=arguments[t(476)]>1&&void 0!==arguments[1]?arguments[1]:1/0;const i=this[t(459)][t(464)];!this[t(505)]||!i||e<0||s<e||e>=this[t(505)][t(499)]||this[t(505)][t(460)](e,s)}async[ok(477)](t){var e=ok;const s=this[e(459)][e(464)];if(!this[e(505)]||!s||!t||t<0)return;const i=s[e(489)]-t;if(i<=0)return;return tk(ek(s))+1>=i?void 0:this[e(482)](0,i)}async[ok(458)](){var t=ok;this.player[t(497)](this[t(512)],t(458)),this[t(505)]&&this._mse.clearUpAllSourceBuffer()}[ok(480)](t,e){var s=ok;return this[s(496)][s(495)](t,e)}async reset(){var t=ok;t(476),this[t(468)]=null,this[t(519)]=!0,this._directAppend=!1}async endOfStream(){var t=ok;this[t(505)]&&this._sourceCreated&&await this[t(505)][t(510)]()}async[ok(466)](t,e){var s=ok;this[s(505)]&&this[s(505)][s(466)](t,e)}async[ok(506)](){}[ok(478)](){this._needInitSegment=!0}[ok(493)](){var t,e,s=ok;return null===(t=this._transmuxer)||void 0===t||null===(e=t._demuxer)||void 0===e?void 0:e[s(485)]()}seekSampleRange(t){var e,s,i=ok;return null===(e=this[i(468)])||void 0===e||null===(s=e[i(492)])||void 0===s?void 0:s[i(491)](t)}[ok(508)](t){var e,s,i=ok;null===(e=this._transmuxer)||void 0===e||null===(s=e[i(492)])||void 0===s||s[i(508)](t)}[ok(467)](){var t,e,s=ok;null===(t=this[s(468)])||void 0===t||null===(e=t[s(492)])||void 0===e||e[s(461)]()}demuxerResume(){var t,e,s=ok;null===(t=this[s(468)])||void 0===t||null===(e=t[s(492)])||void 0===e||e.resume()}[ok(500)](){return!1}[ok(484)](){var t,e,s=ok;return null===(t=this._transmuxer)||void 0===t||null===(e=t[s(492)])||void 0===e?void 0:e[s(484)]()}[ok(516)](){var t,e,s=ok;return null===(t=this[s(468)])||void 0===t||null===(e=t[s(492)])||void 0===e?void 0:e[s(481)]()}[ok(507)](){var t,e,s=ok;return null===(t=this[s(468)])||void 0===t||null===(e=t._demuxer)||void 0===e?void 0:e[s(462)]()}getBufferedVideoSegments(){var t,e,s=ok;return null===(t=this[s(468)])||void 0===t||null===(e=t[s(492)])||void 0===e?void 0:e[s(515)]()}}const lk=uk;function dk(){const t=["reset","6SDTpbL","delete","3539763cEiOKX","time","emit","SEI_IN_TIME","3yctBAY","14100440vYfDir","3568579pKLwFJ","529948aTKTsU","8XpXxEJ","SEI","push","_seiSet","1830612TMbqMA","1269260ESpxVt","288975WSmZlV"];return(dk=function(){return t})()}function uk(t,e){const s=dk();return(uk=function(t,e){return s[t-=177]})(t,e)}!function(t,e){const s=uk,i=t();for(;;)try{if(327140===parseInt(s(183))/1+-parseInt(s(194))/2*(parseInt(s(191))/3)+-parseInt(s(181))/4+parseInt(s(182))/5*(parseInt(s(185))/6)+-parseInt(s(193))/7*(parseInt(s(177))/8)+-parseInt(s(187))/9+parseInt(s(192))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(dk);class pk{constructor(t){const e=uk;this.emitter=t,this._seiSet=new Set,t.on(vt[e(178)],(t=>{t&&this[e(180)].add(t)}))}throw(t){const e=uk;if(null==t||!this[e(180)].size)return;const s=t-.2,i=t+.2,r=[];this[e(180)].forEach((t=>{const n=e;t[n(188)]>=s&&t[n(188)]<=i&&r[n(179)](t)})),r.forEach((t=>{const s=e;this[s(180)][s(186)](t),this.emitter[s(189)](vt[s(190)],t)}))}[lk(184)](){this[lk(180)].clear()}}const fk=mk;function mk(t,e){const s=gk();return(mk=function(t,e){return s[t-=330]})(t,e)}function gk(){const t=["_samples","_timescale","gopId","encodeType","media","responseUrl","_bindEvents","onMetaData","setDomain","DEMUXED_TRACK","sampleRate","speedInfo","1182664JqQKLe","call","reduce","framerate","setAudioMeta","audioCodec","units","reset","_core","gop","fpsDen","207dlyHBE","_bitsAccumulateSize","height","14yPrgFH","113178UtshDQ","forEach","fps","1390010muWrcI","setVideoMeta","setEncodeType","563751OakwBD","updateBitrate","split","duration","_bitsAccumulateDuration","length","totalSize","speed","3298dHhvFE","videoCodec","fpsNum","channelCount","TTFB","bufferInfo","video","slice","domain","round","bitrate","_stats","codec","305484sRbcrD","width","avgSpeed","getStats","samplerate","track","2093576GiYbam","140SvLTAq","METADATA_PARSED"];return(gk=function(){return t})()}!function(t,e){const s=mk,i=t();for(;;)try{if(325814===-parseInt(s(344))/1+-parseInt(s(358))/2*(-parseInt(s(340))/3)+-parseInt(s(377))/4+-parseInt(s(347))/5+parseInt(s(371))/6*(parseInt(s(343))/7)+parseInt(s(392))/8+-parseInt(s(350))/9*(-parseInt(s(378))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(gk);class Ak{constructor(t){const e=mk;this[e(381)]=t,this.encodeType="",this[e(334)]="",this[e(359)]="",this[e(366)]="",this[e(346)]=0,this[e(368)]=0,this[e(372)]=0,this.height=0,this[e(375)]=0,this.channelCount=0,this.gop=0,this[e(341)]=0,this[e(354)]=0}[fk(374)](){const t=fk;return{encodeType:this[t(383)],audioCodec:this[t(334)],videoCodec:this[t(359)],domain:this[t(366)],fps:this[t(346)],bitrate:this[t(368)],width:this[t(372)],height:this[t(342)],samplerate:this[t(375)],channelCount:this[t(361)],gop:this[t(338)]}}[fk(349)](t){this.encodeType=t}setFpsFromScriptData(t){const e=fk;var s;let{data:i}=t;const r=null==i||null===(s=i[e(387)])||void 0===s?void 0:s[e(332)];r&&r>0&&r<100&&(this[e(346)]=r)}setVideoMeta(t){const e=fk;if(this[e(372)]=t[e(372)],this[e(342)]=t.height,this.videoCodec=t[e(370)],this[e(383)]=t.codecType,t[e(360)]&&t[e(339)]){const s=t[e(360)]/t[e(339)];s>0&&s<100&&(this.fps=s)}}[fk(333)](t){const e=fk;this[e(334)]=t[e(370)],this.samplerate=t[e(390)],this.channelCount=t[e(361)]}[fk(388)](t){const e=fk;this[e(366)]=t[e(352)]("/")[e(365)](2,3)[0]}updateBitrate(t){const e=fk;if((!this[e(346)]||this[e(346)]>=100)&&t[e(355)]){const s=t[e(331)](((t,s)=>t+s[e(353)]),0)/t[e(355)];this[e(346)]=Math[e(367)](this[e(381)]/s)}t[e(345)]((t=>{const s=e;1===t[s(382)]&&this[s(338)]++,this[s(354)]+=t[s(353)]/(this[s(381)]/1e3),this[s(341)]+=t[s(335)].reduce(((t,e)=>t+e[s(355)]),0),this._bitsAccumulateDuration>=1e3&&(this.bitrate=8*this[s(341)],this[s(354)]=0,this._bitsAccumulateSize=0)}))}}class yk{constructor(t){const e=fk;let s=arguments[e(355)]>1&&void 0!==arguments[1]?arguments[1]:1e3;$f(this,e(337),null),$f(this,e(380),[]),this[e(337)]=t,this[e(381)]=s,this._stats=new Ak(s),this[e(386)]()}[fk(374)](){const t=fk;var e,s,i,r,n,o,a,h,c,l,d;const{currentTime:u=0,decodeFps:p=0}=(null===(e=this[t(337)])||void 0===e?void 0:e[t(384)])||{};return{...this[t(369)].getStats(),downloadSpeed:(null===(s=this[t(337)])||void 0===s||null===(i=s[t(391)])||void 0===i?void 0:i.call(s)[t(357)])||0,avgSpeed:(null===(r=this[t(337)])||void 0===r||null===(n=r[t(391)])||void 0===n?void 0:n.call(r)[t(373)])||0,totalReceivedByte:(null===(o=this[t(337)])||void 0===o||null===(a=o.speedInfo)||void 0===a?void 0:a[t(330)](o)[t(356)])||0,totalReceivedCost:(null===(h=this[t(337)])||void 0===h||null===(c=h.speedInfo)||void 0===c?void 0:c.call(h).totalCost)||0,currentTime:u,bufferEnd:(null===(l=this[t(337)])||void 0===l||null===(d=l[t(363)]())||void 0===d?void 0:d.remaining)||0,decodeFps:p}}[fk(386)](){const t=fk;this[t(337)].on(vt[t(389)],(e=>this._stats[t(351)](e.samples))),this[t(337)].on(vt.FLV_SCRIPT_DATA,(e=>{this[t(369)].setFpsFromScriptData(e)})),this[t(337)].on(vt[t(379)],(e=>{const s=t;e.type===s(364)?this[s(369)][s(348)](e.track):this[s(369)][s(333)](e[s(376)])})),this[t(337)].on(vt[t(362)],(e=>{const s=t;this[s(369)][s(388)](e[s(385)])}))}[fk(336)](){const t=fk;this._samples=[],this[t(369)]=new Ak(this[t(381)])}}function bk(t,e){const s=vk();return(bk=function(t,e){return s[t-=285]})(t,e)}function vk(){const t=["totalLength","740796WeKdRf","11128640rlOuKb","isBuffered","650274FZBqew","buffered","35KOUdgf","1352622NccsyI","buffers","2673990xecnXf","450565OegGYs","reduce","info","push","start","36823374aUBvqS","length","end","28kIZHav"];return(vk=function(){return t})()}const Sk=bk;!function(t,e){const s=bk,i=t();for(;;)try{if(737956===-parseInt(s(293))/1+parseInt(s(287))/2+-parseInt(s(295))/3+-parseInt(s(285))/4*(parseInt(s(296))/5)+-parseInt(s(290))/6*(-parseInt(s(292))/7)+-parseInt(s(288))/8+parseInt(s(301))/9)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(vk);class wk{static start(t){const e=bk;return t&&t.length?1===t.length&&t.end(0)-t[e(300)](0)<1e-6||1===t[e(302)]&&t[e(300)](0)<0?0:t[e(300)](0):0}static end(t){const e=bk;return t&&t[e(302)]?1===t[e(302)]&&t.end(0)-t[e(300)](0)<1e-6?0:t[e(303)](t[e(302)]-1):0}static get(t){const e=bk;if(t)try{return t[e(291)]}catch(t){}}static[Sk(294)](t,e){const s=Sk;if(!t||!t[s(302)])return[];const i=[];for(let r=0,n=t[s(302)];r<n;r++){const n=i[s(302)];if(n&&e){const o=i[n-1],a=o[1];if(t[s(300)](r)-a<=e){const e=t[s(303)](r);e>a&&(o[1]=e)}else i[s(299)]([t[s(300)](r),t[s(303)](r)])}else i.push([t.start(r),t.end(r)])}return i}static totalLength(t){const e=Sk;return t&&t[e(302)]?t[e(297)](((t,e)=>t+(e[1]-e[0])),0):0}static[Sk(298)](t){const e=Sk;let s=arguments[e(302)]>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments[e(302)]>2&&void 0!==arguments[2]?arguments[2]:0;if(!t||!t.length)return{start:0,end:0,buffers:[]};let r=0,n=0,o=0,a=0,h=0,c=0,l=0;const d=wk[e(294)](t,i);for(let t=0,u=d[e(302)];t<u;t++){const e=d[t];if(s+i>=e[0]&&s<e[1])r=e[0],n=e[1],o=t;else{if(s+i<e[0]){a=e[0],h=e[1];break}s+i>e[1]&&(c=e[0],l=e[1])}}return{start:r,end:n,index:o,buffers:d,nextStart:a,nextEnd:h,prevStart:c,prevEnd:l,currentTime:s,behind:s-r,remaining:n?n-s:0,length:wk[e(286)]&&wk[e(286)](d)}}static[Sk(289)](t,e){const s=Sk;if(t){const i=wk.get(t);if(null!=i&&i[s(302)])for(let t=0;t<i[s(302)];t++)if(e>=i[s(300)](t)&&e<=i.end(t))return!0}return!1}}function Ek(t,e){const s=Tk();return(Ek=function(t,e){return s[t-=445]})(t,e)}!function(t,e){const s=Ek,i=t();for(;;)try{if(628676===parseInt(s(457))/1*(-parseInt(s(452))/2)+-parseInt(s(462))/3*(parseInt(s(465))/4)+parseInt(s(466))/5*(parseInt(s(446))/6)+-parseInt(s(464))/7*(parseInt(s(463))/8)+-parseInt(s(461))/9+parseInt(s(458))/10*(-parseInt(s(451))/11)+-parseInt(s(460))/12*(-parseInt(s(448))/13))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Tk);class Ik{constructor(t){const e=Ek;this.hls=t,this[e(449)]=0}do(t){const e=Ek;let s=arguments[e(445)]>1&&void 0!==arguments[1]?arguments[1]:3,i=arguments.length>2?arguments[2]:void 0,r=arguments[e(445)]>3&&void 0!==arguments[3]?arguments[3]:1;if(!t)return;const n=t.currentTime;let o=0;if(this[e(449)]===n){const a=wk[e(454)](wk[e(455)](t),n);if(!a[e(456)][e(445)])return;i&&a.nextStart||a[e(453)]&&a[e(453)]-n<s?o=a.nextStart+.1:a[e(459)]&&a[e(459)]-n>r&&!t[e(447)]&&(o=n+.1)}this[e(449)]=n,o&&n!==o&&(t[e(450)]=o)}}function Tk(){const t=["seeking","52pLKEKj","_prevCurrentTime","currentTime","1293424EkTDuF","2jZzgXt","nextStart","info","get","buffers","974233QFmCXQ","10QIXDfQ","end","10950252TRaiGc","6262722elLooV","2059269tiDpdN","32fHxiRW","1395233xsLwOK","4WBWuub","10qlfGbR","length","749898rbfmQf"];return(Tk=function(){return t})()}function kk(){const t=["1506AqarEp","log","hadSegmentLoaded","_stopTick","lowLatency","SUBTITLE_PLAYLIST","286gfkoRA","manifest","setLiveSeekableRange"," or bufferThroughout is ","_segmentProcessing","findSegmentIndexByTime","createSource","media","currentSegment","network","streams","destroy()","_loadM3U8() playlist is empty","_loadData","STREAM_PARSED","load","nextSeg is null and return","number","length","getBuferredDuration","debugWarn"," index of ","_disconnectTimer","isPlayVod","_loadSegment","_emitError","onPlay","onSeeking","playVodVideoSeekingByMse","seekRange","catch","readyState","_prevSegCc","get","checkSegmentTrackChange","audio seg","getStats","lastSegment","isBuffered","targetLatency","currentStream","_loadSegmentDirect","player","_tick() player is destroyed","manifestList","startTime","_tryEos","m3u8 url is not defined","speedInfo","playVod","_loadSegmentDirect() !seg","filter","removeBuffer","decryptBuffer return null","getSegmentByIndex","nextSegment","reset","_clear","maxLatency","segment nb=","emit","unsupported switchURL args: ","then","_loadSegment() and _prevSegmentEndTime is ","getAudioSegment","_urlSwitching","lastSeg","Hls256","is live and totalDuration first time got: ","poll","buffer remaining ","end","_loadSegment()_segmentProcessing is ture and return","getBufferedAudioSegments","bufferInfo","upsertPlaylist","switchURL","parseText","onSeeking() seek to tsSampleRange"," more than ","TAG_NAME","_reloadOnPlay","currentAudioStream","767046hpiNEP","trim","_pollM3U8","updateDuration","_prevSegSn","isLast","and next _loadSegment()","object","_stats","msHasOpTasks","bitrate","partTargetDuration","debugLog","_tick","parentUrl","isMaster","eventListenList"," and seg is","minSegmentsStartPlay","isEmpty","_gapService","seg.isLast","9AhKpPL","abs","setNextSegmentBySN","nbSb","cleanSampleListAndSetSeekTime","video seg","playVodPause","maxJumpDistance","_refreshM3U8","343884bNzmDb","_manifestLoader","subtitleStreams","appendBuffer","_tickInterval","_end","_getSeamlessSwitchPoint","endOfStream","duration","_seiService","onSeeking() seek to ","_reset","getDemuxVideoBufferedListLength","191004cNAagw","clearOldSegment","video","videoCodec","debug","_onVideoTimeUpdate","isSeeking","isPlayer","_end()","seekSampleRange","all","getTsSampleRange","boolean","error","now"," in the new playlist","OTHER","in range","onVideoSeeking() update current time","remaining","909167NFWAzx","isLive","resetBandwidth","play","_prevSegmentEndTime","config","cancel","url","_checkStreamTrackChange","preloadTime","max","_segmentLoader","getBufferedVideoSegments","_bufferService","info","239FoHghw","nextSeg","bufferBehind","4098830syTrFr","decryptBuffer","destroy end","demuxerPause","nextStart","nbSegments","byteRange","getBufferedSegments","onPause()","paused","start","baseDts","_tickTimer","SWITCH_URL_SUCCESS","evictBuffer","demuxerResume","bind","onVideoSeeking() and seekRange is"," and return","onPlay()","msIsOpened","audioCodec","buffered","listen playVodVideoSeekingByMse","hasSubtitle"," and segIndex is ","create","_loadSegmentDirect()","seeking"," and current time is ","destroy","_clear()","getRenderCurrentPts","_loadSegment()","table","m3u8 url is missing",", nb segments got:","min","clear buffer from ","_startTick","_switchUrlOpts","_loadM3U8","SWITCH_URL_FAILED","_isProcessQuotaExceeded","canVideoPlay",", real end=","isFull","onVideoSeeking","ERROR","rate"," expected end=","6523080bAyCnY","fatal","_refreshM3U8() mediaPlaylist is empty","totalDuration"," > ","curSeg","msStreaming","setNextSegmentByIndex","_reset()","_loadSegment() this._playlist is null and return","_onCheckQuotaExceeded","$videoElement","_playlist","_reqAndBufferSegment","currentTime","25uKGIPP","and seekTime is","moveSegmentPointer","12xiVYXo","onPause","seamlessSwitch"];return(kk=function(){return t})()}const _k=Ck;function Ck(t,e){const s=kk();return(Ck=function(t,e){return s[t-=125]})(t,e)}!function(t,e){const s=Ck,i=t();for(;;)try{if(436302===-parseInt(s(181))/1*(parseInt(s(256))/2)+parseInt(s(345))/3+parseInt(s(146))/4*(-parseInt(s(250))/5)+-parseInt(s(253))/6*(-parseInt(s(166))/7)+parseInt(s(235))/8*(-parseInt(s(367))/9)+parseInt(s(184))/10+-parseInt(s(262))/11*(-parseInt(s(133))/12))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(kk);class Rk extends Bi{constructor(t){const e=Ck;let s=arguments[e(280)]>1&&void 0!==arguments[1]?arguments[1]:{};var i;super(),$f(this,e(286),(async()=>{const t=e;if(this[t(266)])return void this[t(304)].debugLog(this[t(342)],t(334));if(!this[t(247)])return void this.player.debugLog(this[t(342)],t(244));const s=this[t(247)][t(270)],i=this[t(247)][t(317)],r=this[t(247)][t(299)];this[t(304)][t(357)](this[t(342)],t(217),t(240),s&&s[t(173)],t(182),i&&i[t(173)],t(328),r&&r[t(173)]);const n=Math[t(221)](Math[t(176)]((null==r?void 0:r[t(141)])-.008||0,.016),.1);if(i){if(!this.isLive){const e=this[t(171)];if(this.media){let s=this.bufferInfo();this[t(269)][t(193)]&&!this[t(269)][t(249)]&&(s=this[t(336)](s[t(188)]||.5));const r=Math.abs(s[t(333)]-this[t(269)][t(141)])<n,o=e.preloadTime*this.player.playVod.rate;if(s[t(165)]>=o||r)return this.player[t(357)](this[t(342)],t(332)+s[t(165)]+t(239)+o+t(265)+r+t(202)),void this[t(308)]();if(e.preferMMSStreaming&&!this[t(179)][t(241)])return;!this[t(327)]&&this[t(349)]!==i.sn-1&&s[t(333)]&&Math[t(125)](i[t(194)]-s[t(333)])>1&&this[t(247)][t(242)](this[t(247)][t(267)](s[t(333)]+.1))}else if(this[t(304)][t(285)]()){let s=this[t(304)][t(216)]();s/=1e3;let r=this[t(304)][t(311)][t(152)]();if(this[t(170)]&&ci(r)&&this[t(170)]>e.preloadTime*this[t(304)][t(311)][t(233)]+s)return void this[t(304)].debug[t(257)](this[t(342)],t(325)+this[t(170)]+t(213)+s+t(341)+(e[t(175)]*this.player.playVod[t(233)]+s)+t(202));this[t(170)]=i[t(333)]}}return this._loadSegmentDirect()}this[t(304)].debugLog(this[t(342)],t(278))})),this[e(304)]=t,this[e(171)]=null,this[e(134)]=null,this[e(177)]=null,this[e(247)]=null,this[e(179)]=null,this[e(142)]=null,this[e(353)]=null,this._prevSegSn=null,this._prevSegCc=null,this[e(196)]=null,this[e(137)]=500,this._segmentProcessing=!1,this._reloadOnPlay=!1,this[e(224)]=null,this._isProcessQuotaExceeded=!1,this._disconnectTimer=null,this[e(170)]=0,this[e(361)]=[],this[e(342)]=e(329),this[e(228)]=!1,this.$videoElement=null,this[e(171)]=(i=s,s={isLive:!1,maxPlaylistSize:50,retryCount:3,retryDelay:1e3,pollRetryCount:2,loadTimeout:1e4,manifestLoadTimeout:1e4,preloadTime:30,softDecode:!1,bufferBehind:10,maxJumpDistance:3,startTime:0,useLowLatency:!0,targetLatency:10,maxLatency:20,allowedStreamTrackChange:!0,seiInTime:!1,manifestList:[],minSegmentsStartPlay:3,preferMMS:!1,preferMMSStreaming:!1,mseLowLatency:!0,fixerConfig:{forceFixLargeGap:!1,largeGapThreshold:5},...i}),this[e(269)]=null,this[e(134)]=new QI(this),this[e(177)]=new eT(this),this[e(247)]=new lT(this),this[e(179)]=new ck(this),this[e(142)]=new pk(this),this._gapService=new Ik(this),this[e(353)]=new yk(this,9e4),this[e(304)],this[e(304)][e(153)]()&&(this[e(171)][e(167)]=!0),this[e(304)][e(285)]()&&(this[e(304)].on(M[e(130)],this.handlePlayVodPause[e(200)](this)),this[e(304)].isPlayVodUseMSE()?(this[e(269)]=this[e(304)][e(148)][e(246)],this.player.on(M[e(290)],this[e(231)][e(200)](this))):this[e(304)].on(M.playVodSeek,this[e(289)][e(200)](this))),this.player[e(150)][e(257)](this[e(342)],"init")}async[_k(214)](){const t=_k;this.player.debugLog(this[t(342)],t(273)),this[t(247)][t(318)](),this[t(177)][t(318)](),this._seiService[t(318)](),this.eventListenList.length&&(this[t(361)].forEach((t=>t())),this.eventListenList=[]),await Promise[t(156)]([this._clear(),this[t(179)][t(214)]()]),this._manifestLoader&&(await this[t(134)][t(214)](),this._manifestLoader=null),this[t(177)]&&(this._segmentLoader[t(214)](),this._segmentLoader=null),this[t(247)]&&(this[t(247)][t(214)](),this._playlist=null),this[t(269)]=null,this[t(304)][t(357)](this[t(342)],t(186))}get[_k(167)](){const t=_k;return this[t(247)][t(167)]}get[_k(272)](){const t=_k;return this[t(247)][t(272)]}get currentStream(){const t=_k;return this[t(247)][t(302)]}get[_k(208)](){const t=_k;return this._playlist[t(208)]}get totalDuration(){const t=_k;return this[t(247)][t(238)]}get[_k(195)](){const t=_k;var e;return null===(e=this._bufferService)||void 0===e?void 0:e[t(195)]}[_k(223)](){const t=_k;this[t(259)](),this._tickTimer=setTimeout((()=>{this[t(358)]()}),this[t(137)])}[_k(259)](){const t=_k;this[t(196)]&&clearTimeout(this[t(196)]),this[t(196)]=null}[_k(358)](){const t=_k;if(this[t(304)].isDestroyedOrClosed())this.player[t(357)](this[t(342)],t(305));else if(!this[t(304)][t(130)]){if(this[t(223)](),this[t(269)]){const e=this.media,s=this._segmentLoader[t(159)];if(this[t(245)](),this[t(227)]&&!this[t(179)][t(230)]()&&(this[t(227)]=!1,this[t(266)]=!1),s){const i=.5;return void((!e.readyState||this.bufferInfo(i).remaining<1)&&(s[t(236)]=!0,this[t(287)](cI[t(271)](s))))}e.readyState&&(bi(e)?(this[t(286)](),this[t(365)]&&this._gapService.do(e,this[t(171)][t(131)],this.isLive)):e[t(293)]<2&&this._gapService&&this[t(365)].do(e,this[t(171)].maxJumpDistance,!e[t(249)]||this.isLive))}else this[t(286)]();!this[t(167)]&&this[t(308)]()}}[_k(310)](){return this[_k(177)].speedInfo()}[_k(336)](){const t=_k;var e;let s=arguments[t(280)]>0&&void 0!==arguments[0]?arguments[0]:.1;return this[t(269)]?wk[t(180)](wk[t(295)](this[t(269)]),null===(e=this[t(269)])||void 0===e?void 0:e[t(249)],s):{}}[_k(298)](){const t=_k;return this[t(353)][t(298)]()}[_k(168)](){const t=_k;this[t(177)][t(168)]()}async loadSource(t){const e=_k;return t&&(this.config[e(173)]=t),t=this[e(171)][e(173)],this._bufferService.updateMSE(),await this[e(144)](),await this[e(275)](t),this[e(223)](),!0}async[_k(275)](t){const e=_k;try{t&&(t=t[e(346)]())}catch(t){}if(!t)throw this[e(287)](new cI(oI.OTHER,oI[e(162)],null,null,e(219)));const s=await this[e(225)](t),{currentStream:i}=this._playlist;if(this[e(327)])if(this[e(167)]){const t=this[e(247)][e(126)](this._prevSegSn);this[e(304)].debugLog(this[e(342)],e(321)+this[e(349)]+e(283)+t+e(161)),-1===t&&(this[e(294)]=null,this[e(349)]=null)}else{var r,n,o,a;if(0===i[e(355)]&&null!==(r=this._switchUrlOpts)&&void 0!==r&&r[e(355)])i[e(355)]=null===(a=this[e(224)])||void 0===a?void 0:a[e(355)];const t=typeof(null===(n=this[e(224)])||void 0===n?void 0:n[e(307)])===e(279)?null===(o=this[e(224)])||void 0===o?void 0:o[e(307)]:this[e(139)]();this[e(171)][e(307)]=t;const s=this[e(247)].findSegmentIndexByTime(t),h=this[e(247)][e(316)](s+1);if(h){const t=h.start;this[e(304)][e(282)](this[e(342)],e(222)+t),await this[e(179)][e(314)](t)}}if(s)if(this[e(167)]){if(this[e(179)][e(264)](0,4294967295),this[e(304)][e(357)](this[e(342)],e(330),this._playlist[e(238)],e(220),this[e(247)][e(189)]),this.config.targetLatency<this[e(247)].totalDuration&&(this[e(171)].targetLatency=this._playlist[e(238)],this[e(171)][e(320)]=1.5*this[e(171)][e(301)]),!s[e(360)]&&this[e(347)](t),this._playlist[e(189)]<this.config[e(363)])return;await this[e(286)]()}else await this[e(179)][e(348)](i[e(238)]),this[e(304)][e(285)]()&&this[e(247)][e(242)](0),await this[e(286)]()}async[_k(338)](t){const e=_k;let s=arguments[e(280)]>1&&void 0!==arguments[1]?arguments[1]:{};switch(typeof s){case e(279):s={startTime:s};break;case e(158):s={seamless:s};break;case e(352):for(const t in s)(void 0===s[t]||null===s[t])&&delete s[t];break;default:throw e(323)+s}s=Object.assign({},{seamless:!1,startTime:0,bitrate:0},s);const{seamless:i,startTime:r}=s;if(this[e(171)][e(173)]=t,this[e(171)].startTime=r,this[e(224)]=s,!i){let s;try{s=this[e(171)].softDecode?this.loadSource(t):await this.loadSource(t)}catch(t){throw this[e(322)](vt.SWITCH_URL_FAILED,t),t}return this[e(343)]=!1,s&&this[e(322)](vt[e(197)],{url:t}),this.media[e(169)](!0)}this[e(327)]=!0,!this[e(167)]&&(this[e(349)]=null,this[e(294)]=null),this[e(247)][e(318)](),this._bufferService[e(255)](),await this[e(319)](),await this[e(275)](t),this[e(223)](),this[e(224)]=null}async[_k(225)](t){const e=_k;let s;try{var i,r;const n=null===(i=this.config[e(306)])||void 0===i||null===(r=i[e(313)]((e=>e.url===t))[0])||void 0===r?void 0:r[e(263)];[s]=n?this[e(134)][e(339)](n,t):await this._manifestLoader[e(277)](t)}catch(t){throw this[e(287)](cI[e(210)](t))}if(s){var n;if(this[e(247)][e(337)](s),s[e(360)])null!==(n=this[e(247)].currentStream[e(135)])&&void 0!==n&&n.length&&this[e(322)](vt[e(261)],{list:this[e(247)].currentStream[e(135)]}),await this._refreshM3U8();else this[e(304)][e(282)](this.TAG_NAME,"_loadM3U8() is not master playlist");return this.emit(vt[e(276)]),s}this[e(304)][e(282)](this[e(342)],e(274))}[_k(132)](){const t=_k;var e,s;this[t(304)].debugLog(this[t(342)],"_refreshM3U8()");const i=this[t(247)][t(302)];if(!i||!i.url)throw this[t(287)](cI[t(210)](null,null,new Error(t(309))));const r=i.url,n=null===(e=i[t(344)])||void 0===e?void 0:e[t(173)],o=null===(s=i.currentSubtitleStream)||void 0===s?void 0:s[t(173)];return this[t(134)][t(277)](r,n,o)[t(324)]((e=>{const s=t;let[i,a,h]=e;i?(this[s(247)][s(337)](i,a,h),this.isLive&&this[s(347)](r,n,o)):this[s(304)][s(282)](this.TAG_NAME,s(237))}))[t(292)]((e=>{const s=t;throw this[s(287)](cI[s(210)](e))}))}[_k(347)](t,e,s){const i=_k;let r,n=this[i(247)][i(364)];var o;this[i(247)][i(260)]?r=1e3*(this[i(247)][i(302)][i(356)]||0):r=1e3*((null===(o=this[i(247)][i(299)])||void 0===o?void 0:o[i(141)])||0);this[i(134)][i(331)](t,e,s,((t,e,s)=>{const r=i;this._playlist[r(337)](t,e,s),this._playlist[r(147)]();(t&&n&&!this[r(247)].isEmpty||!this[r(247)][r(258)]&&this[r(247)][r(189)]>=this[r(171)][r(363)])&&this[r(286)](),n&&(n=this[r(247)][r(364)])}),(t=>{const e=i;this[e(287)](cI[e(210)](t))}),r)}async[_k(303)](t){const e=_k,s=this[e(247)][e(317)];if(!s)return void this.player[e(357)](this[e(342)],e(312));let i=!1,r=null;try{this[e(266)]=!0,i=await this[e(248)](s,this[e(247)][e(326)](s))}catch(t){r=t}finally{this._segmentProcessing=!1}if(r)return this[e(179)][e(230)]()?(this[e(266)]=!0,this._isProcessQuotaExceeded=!0,!1):this[e(287)](cI[e(210)](r));if(i){var n;const i=this.bufferInfo()[e(333)];this[e(167)]&&this[e(269)]&&!this[e(269)][e(212)]&&i&&Math[e(125)](s.end-i)>1&&(this[e(304)][e(282)](this[e(342)],"segment: "+s.sn+e(234)+s[e(333)]+e(229)+i),this[e(247)].feedbackLiveEdge(s,i));const r=(null===(n=this[e(247)].currentStream)||void 0===n?void 0:n[e(173)])===s[e(359)];this[e(327)]&&!r&&this._bufferService.seamlessSwitch(),this.isLive&&this[e(327)]&&r&&(this[e(327)]=!1,this[e(322)](vt[e(197)],{url:this.config[e(173)]})),this[e(247)][e(252)](),this.player[e(357)](this[e(342)],e(211),e(366),s[e(350)]),s[e(350)]?(this[e(304)][e(357)](this[e(342)],"_loadSegmentDirect()",e(366)),this[e(138)]()):!t&&(this[e(304)][e(357)](this[e(342)],e(211),e(351)),this[e(286)]())}else this[e(304)][e(357)](this.TAG_NAME,"_loadSegmentDirect() not appended");return i}async[_k(248)](t,e){const s=_k;this.player[s(357)](this[s(342)],s(129),t&&t[s(173)],t&&t[s(190)],s(297),e&&e[s(173)],e&&e[s(190)]);const i=t?t.cc:e.cc,r=this[s(294)]!==i;let n=[];try{n=await this[s(177)][s(277)](t,e,r)}catch(t){throw t[s(236)]=!1,this[s(177)][s(159)]=t,t}if(!n[0])return;const o=await this[s(179)][s(185)](...n);if(!o)return void this[s(304)][s(357)](this[s(342)],s(315));const a=t?t.sn:e.sn;let h=t?t[s(194)]:e[s(194)];const c=this._playlist[s(302)];this[s(179)][s(268)](o[0],o[1],null==c?void 0:c[s(149)],null==c?void 0:c[s(205)]),Date[s(160)]();const l=this[s(349)]===a-1;if(this[s(167)]&&this[s(327)]){const t=this[s(336)]().end;this._playlist.updateSegmentsRanges(a,t),h=t}return await this._bufferService[s(136)](t,e,o[0],o[1],r,l,h),await this._bufferService[s(198)](this.config[s(183)]),this[s(294)]=i,this[s(349)]=a,!0}async _clear(){const t=_k;this[t(304)][t(357)](this.TAG_NAME,t(215)),clearTimeout(this[t(284)]),this._stopTick(),await Promise[t(156)]([this[t(177)][t(172)](),this[t(134)].stopPoll()]),this[t(266)]=!1}async[_k(144)](){const t=_k;let e=arguments[t(280)]>0&&void 0!==arguments[0]&&arguments[0];return this[t(304)][t(357)](this[t(342)],t(243)),this[t(343)]=!1,this[t(349)]=null,this[t(294)]=null,this._switchUrlOpts=null,this[t(170)]=0,this._playlist[t(318)](),this[t(177)][t(318)](),this[t(142)].reset(),this._stats.reset(),await this[t(319)](),this[t(179)][t(318)](e)}[_k(138)](){const t=_k;this.player[t(357)](this[t(342)],t(154)),this[t(319)](),this[t(179)][t(140)](),this[t(269)]&&(this.media.readyState<=2||this[t(269)][t(206)][t(280)]>1)&&this[t(223)]()}[_k(287)](t){const e=_k;var s;let i=arguments[e(280)]>1&&void 0!==arguments[1]&&arguments[1];var r;!1===(null===(s=t.originError)||void 0===s?void 0:s[e(236)])?console.warn(t):(console[e(218)](t),console.error(t),console.error(null===(r=this[e(269)])||void 0===r?void 0:r[e(159)]),this[e(259)](),this._urlSwitching&&(this[e(327)]=!1,this.emit(vt[e(226)],t)),i&&this[e(138)](),this._seiService[e(318)](),this[e(322)](vt[e(232)],t));return t}_getSeamlessSwitchPoint(){const t=_k,{media:e}=this;let s=e[t(249)];if(!e[t(193)]){var i;const r=this[t(247)][t(267)](e[t(249)]),n=this[t(247)][t(316)](r),o=null===(i=this[t(353)])||void 0===i?void 0:i[t(298)]().downloadSpeed;if(o&&n){s+=n[t(141)]*this[t(247)].currentStream[t(355)]/o+1}else s+=5}return s}_tryEos(){const t=_k;var e,s;const{media:i}=this;if(!i)return;const{nextSegment:r,lastSegment:n}=this[t(247)];if(!((!r||n&&wk[t(300)](i,n[t(194)]+n[t(141)]/2))&&i[t(293)]&&i.duration>0&&(null===(e=this._bufferService)||void 0===e?void 0:e[t(204)])&&!(null!==(s=this._bufferService)&&void 0!==s&&s[t(354)])))return;let o=this[t(336)]();i[t(193)]&&!i[t(249)]&&(o=this[t(336)](o[t(188)]||.5));(Math[t(125)](o.end-i.duration)<.1||!this[t(167)]&&n&&o[t(333)]>=n[t(194)]+n[t(141)])&&this[t(179)].endOfStream()}async[_k(245)](){const t=_k;if(!this.media)return;const e=this[t(269)][t(249)],s=this[t(269)][t(206)];let i=!1;for(let r=0;r<s[t(280)];r++)if(s.start(0)>=e&&e<s[t(333)](r)){i=!0;break}if(this[t(179)][t(230)]()){const e=i?this[t(171)][t(183)]:5,s=this[t(269)][t(249)];s-e>0&&await this[t(179)][t(314)](0,s-e)}}async[_k(288)](){const t=_k;this[t(304)][t(150)].log(this[t(342)],t(203)),this[t(179)][t(199)](),await this[t(286)](),this[t(223)]()}[_k(254)](){const t=_k;this[t(304)].debug.log(this[t(342)],t(192)),this[t(179)][t(187)](),this._stopTick(),this[t(177)][t(318)]()}async handlePlayVodPause(t){const e=_k;t?this[e(254)]():await this[e(288)]()}async[_k(289)](t){const e=_k;let s=arguments[e(280)]>1&&void 0!==arguments[1]&&arguments[1];this[e(304)].debug[e(257)](this[e(342)],"listen playVodSeek",t);const i=this[e(179)][e(157)]();if(this[e(304)][e(150)][e(257)](this[e(342)],e(340),i),i&&i[e(194)]<=t&&t<=i.end)return this[e(304)][e(150)][e(257)](this[e(342)],e(340),i,e(163)),void this._bufferService[e(155)](t);const r=this[e(247)].findSegmentIndexByTime(t),n=this[e(247)][e(316)](r);null==r||!n||this[e(266)]&&n===this[e(247)][e(317)]||(this[e(304)][e(150)].log(this[e(342)],e(143)+t+e(209)+r+e(362),n),this[e(179)][e(128)](t),this[e(247)][e(242)](r),this[e(259)](),this[e(170)]=0,await this[e(177)].cancel(),this._segmentProcessing=!1,(!s||this.isLive)&&await this[e(303)](!0),this[e(223)]())}async[_k(231)](t){const e=_k;this[e(304)][e(150)][e(257)](this.TAG_NAME,e(207),t),this._onCheckQuotaExceeded();const s=this[e(247)][e(291)];if(this[e(304)][e(357)](this[e(342)],e(201),s,e(251),t),s){const i=Ve(t,s[0]+.1,s[1]-.1);if(i>=0&&Math.abs(t-i)>=.1)return this[e(304)][e(357)](this[e(342)],e(164),i),void(this.media[e(249)]=i)}const i=this[e(247)].currentSegment,r=wk.info(wk[e(295)](this[e(269)]),t,.1);if(i){if(r[e(333)]&&Math[e(125)](r.end-i.end)<.2)return;if(this[e(167)]&&r[e(333)])return}await this.onSeeking(t,r.end)}[_k(151)](){this[_k(171)]}[_k(174)](t){const e=_k,s=this._playlist[e(296)](t,this[e(179)][e(127)]);s&&this[e(338)](this[e(171)][e(173)],s[e(194)]+.2)}getDemuxBuferredDuration(){const t=_k;return this._bufferService[t(281)]()||0}getDemuxBufferedListLength(){const t=_k;return this[t(179)][t(191)]()||0}getDemuxAudioBufferedListLength(){const t=_k;return this[t(179)][t(335)]()||0}[_k(145)](){const t=_k;return this._bufferService[t(178)]()||0}}const Dk=Lk;function Lk(t,e){const s=xk();return(Lk=function(t,e){return s[t-=266]})(t,e)}function xk(){const t=["1928QfJDzT","22667733IzQWdv","8ReRPqa","video","eventsDestroy","1233036xlAacO","Hls256Decoder","emit","1786405zuDxxZ","getDemuxBufferedListLength","171mmWNZv","length","destroy","speedInfo","TAG_NAME","kBps","7UiBmDP","bandwidthEstimateInterval","emitError","hls","63830etARpy","getDemuxBuferredDuration","_startBandwidthEstimateInterval","getDemuxAudioBufferedListLength","ERROR","727ynhikT","avgSpeed","toFixed","_stopBandwidthEstimateInterval","debugLog","resetBandwidth","5598216uKLxZD","player","$videoElement","470544aFUMWQ","_bindEvents","loadSource","url"];return(xk=function(){return t})()}!function(t,e){const s=Lk,i=t();for(;;)try{if(399401===-parseInt(s(295))/1*(parseInt(s(270))/2)+parseInt(s(275))/3+parseInt(s(272))/4*(-parseInt(s(278))/5)+-parseInt(s(266))/6*(parseInt(s(286))/7)+-parseInt(s(301))/8+-parseInt(s(280))/9*(-parseInt(s(290))/10)+parseInt(s(271))/11)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(xk);class Pk extends Bi{constructor(t){const e=Lk;super(),$f(this,e(284),e(276)),this.player=t,this[e(303)]=this.player[e(273)][e(303)],this.hls=null,this[e(274)]=[],this[e(287)]=null,this.hls=new Rk(t),this[e(267)]()}async[Dk(282)](){const t=Dk;return this[t(298)](),this.hls&&(await this[t(289)][t(282)](),this[t(289)]=null),this[t(274)][t(281)]&&(this[t(274)].forEach((t=>t())),this.eventsDestroy=[]),this[t(303)]=null,this.player.debugLog(this[t(284)],"destroy"),!0}[Dk(267)](){const t=Dk;this[t(289)].on(vt[t(294)],(e=>{const s=t;this[s(302)][s(288)](U.hlsError,e)}))}[Dk(292)](){const t=Dk;this._stopBandwidthEstimateInterval(),this[t(287)]=setInterval((()=>{const e=t;if(!this[e(289)])return;const s=this.hls[e(283)]();this[e(302)][e(277)](M[e(285)],(s[e(296)]/1024/8)[e(297)](2)),this.hls[e(300)]()}),1e3)}[Dk(298)](){const t=Dk;this[t(302)][t(299)](this[t(284)],t(298)),this[t(287)]&&(clearInterval(this[t(287)]),this[t(287)]=null)}async loadSource(t){const e=Dk;return this[e(269)]=t,await this[e(289)][e(268)](t),this[e(292)](),!0}checkHlsBufferedDelay(){const t=Dk;let e=0;return this[t(289)]&&(e=this.hls[t(291)]()),e}[Dk(279)](){const t=Dk;let e=0;return this[t(289)]&&(e=this[t(289)][t(279)]()),e}[Dk(293)](){const t=Dk;let e=0;return this[t(289)]&&(e=this[t(289)].getDemuxAudioBufferedListLength()),e}getDemuxVideoBufferedListLength(){const t=Dk;let e=0;return this[t(289)]&&(e=this[t(289)].getDemuxVideoBufferedListLength()),e}}function Bk(){const t=["av1C","channelCount","baseMediaDecodeTime","vide","defaultSampleDuration","width","2CZKFQn","2467302TkCcpo","keyframe","20lKxKcb","IS_NON_SYNC","stsd","subsegment_duration","mdhd","samplesPerChunk","FLAG","set","index","SAMPLE_DUR","handlerType","entrySizes","sampleSize","byteLength","dts","minf","codec","timescale","avcC","gopId","14dNPjTa","flags","mdia","defaultSampleFlags","pts","hdlr","default_KID","referenced_size","CTS_OFFSET","reduce","forEach","trak","firstChunk","type","SIZE","sinf","size","start","1033641cismhD","baseDataOffset","DEPENDS_YES","5165385VzvDDm","soun","esds","concat","startTime","SAMPLE_FLAG","push","hvcC","mvhd","DEFAULT_BASE_IS_MOOF","endTime","entries","isNaN","defaultSampleSize","cts","9023888yHrrRm","DURATION","sampleRate","6700095mjFkGl","offset","SAMPLE_SIZE","tenc","find","329636ateyTU","length","stbl","duration","FIRST_FLAG","569004zOotXT"];return(Bk=function(){return t})()}function Mk(t,e){const s=Bk();return(Mk=function(t,e){return s[t-=294]})(t,e)}function Fk(t,e){const s=Mk,i=t[s(313)];if(!i||!i[s(347)])return;const r=i[s(345)]((t=>{const e=s;var i,r;return(null===(i=t[e(304)])||void 0===i||null===(r=i[e(307)])||void 0===r?void 0:r[e(371)])===e(355)})),n=i[s(345)]((t=>{const e=s;var i,r;return(null===(i=t[e(304)])||void 0===i||null===(r=i[e(307)])||void 0===r?void 0:r[e(371)])===e(324)}));if(!r&&!n)return;let o=[],a=[];if(e){const t=[];let i=0,r=e[s(319)]+e[s(318)];e.references[s(312)](((n,o)=>{const a=s;t[a(329)]({index:o,startTime:i,endTime:i+n[a(364)]/e[a(299)],duration:n[a(364)]/e[a(299)],range:[r,r+n[a(309)]],frames:[]}),i+=n[a(364)]/e[a(299)],r+=n.referenced_size})),o=t,a=t}else{var h,c;const e=e=>{const i=s;return e?[{index:0,startTime:0,endTime:e[i(349)]/e[i(299)],duration:e.duration/e[i(299)],range:[t[i(319)]+t[i(318)],""],frames:[]}]:[]};a=e(t.mvhd[s(349)]?t.mvhd:null===(h=r[s(304)])||void 0===h?void 0:h[s(365)]),o=e(t.mvhd[s(349)]?t[s(331)]:null===(c=n[s(304)])||void 0===c?void 0:c[s(365)])}return{videoSegments:a,audioSegments:o}}function Ok(t,e){const s=Mk,i=t[s(313)];if(!i||!i[s(347)])return;const r=i[s(345)]((t=>{const e=s;var i,r;return(null===(i=t[e(304)])||void 0===i||null===(r=i[e(307)])||void 0===r?void 0:r.handlerType)===e(355)})),n=i[s(345)]((t=>{const e=s;var i,r;return(null===(i=t[e(304)])||void 0===i||null===(r=i.hdlr)||void 0===r?void 0:r[e(371)])===e(324)}));if(!r&&!n)return;let o,a=[],h=[];if(r){var c,l,d;const t=null===(c=r[s(304)])||void 0===c||null===(l=c[s(297)])||void 0===l?void 0:l[s(348)];if(!t)return;const i=null===(d=r[s(304)][s(365)])||void 0===d?void 0:d[s(299)],{stts:n,stsc:h,stsz:u,stco:p,stss:f,ctts:m}=t;if(!(i&&n&&h&&u&&p&&f))return;a=Uk(e,i,n,h,u,p,f,m),o=a.map((t=>t.duration))}if(n){var u,p,f;const t=null===(u=n[s(304)])||void 0===u||null===(p=u[s(297)])||void 0===p?void 0:p.stbl;if(!t)return;const i=null===(f=n[s(304)][s(365)])||void 0===f?void 0:f[s(299)],{stts:r,stsc:a,stsz:c,stco:l}=t;if(!(i&&r&&a&&c&&l))return;h=Uk(e,i,r,a,c,l,null,null,o)}return{videoSegments:a,audioSegments:h}}function Uk(t,e,s,i,r,n,o,a,h){const c=Mk;var l;const d=[],u=[],p=[],f=i[c(334)],m=n[c(334)],g=r[c(372)],A=null==o?void 0:o[c(334)],y=null==a?void 0:a.entries;let b,v;y&&(b=[],y[c(312)]((t=>{const e=c;let{count:s,offset:i}=t;for(let t=0;t<s;t++)b[e(329)](i)}))),A&&(v={},A[c(312)]((t=>{v[t-1]=!0})));let S,w,E=0,I=0,T=0,k=0,_=0,C=null===(l=f[0])||void 0===l?void 0:l.samplesPerChunk,R=f[1]?f[1][c(314)]-1:1/0,D=0,L=-1;s.entries[c(312)]((t=>{const e=c;let{count:s,delta:i}=t;w=i;for(let t=0;t<s;t++)S={dts:D,startTime:E,duration:w,size:g[I]||r[e(294)],offset:m[T]+_,index:I},A&&(S[e(360)]=v[I],S[e(360)]?(L++,u[e(329)]([S]),p.push(S.duration)):(u[u.length-1][e(329)](S),p[u.length-1]+=S.duration),S[e(301)]=L),b&&I<b[e(347)]&&(S[e(306)]=D+b[I]),0===I&&(S[e(306)]=0),d[e(329)](S),E+=w,D+=i,I++,I<C?_+=S.size:(T++,_=0,T>=R&&(k++,R=f[k+1]?f[k+1].firstChunk-1:1/0),C+=f[k][e(366)])}));const x=d[c(347)];if(!x||o&&!d[0][c(360)])return[];const P=[];let B,M=[],F=0,O=0;const U=t=>{const s=c;var i;B=M[M[s(347)]-1],P[s(329)]({index:P.length,startTime:(null===(i=P[P[s(347)]-1])||void 0===i?void 0:i[s(333)])||M[0][s(327)]/e,endTime:(B[s(327)]+B[s(349)])/e,duration:t,range:[M[0].offset,B[s(342)]+B.size],frames:M}),F=0,M=[]};if(o){const s=t*e;for(let t=0,i=u[c(347)];t<i;t++)F+=p[t],M.push(...u[t]),t+1<i?(0===t||F>s)&&U(F/e):U(F/e)}else{let s=(h=h||[])[0]||t;for(let i=0;i<x;i++){M[c(329)](d[i]),F+=d[i][c(349)];const r=F/e;(i+1>=x||r+O>=s)&&(O+=r-s,U(r),s=h[P[c(347)]]||t)}}return P}function Nk(t,e){const s=Mk;let i="",r="",n=0,o=0,a=0,h=0,c=0,l=0,d=0;t[s(331)]&&(c=t[s(331)].duration/t[s(331)][s(299)]);const u=t[s(313)];if(u){const R=u[s(345)]((t=>{const e=s;var i,r;return(null===(i=t[e(304)])||void 0===i||null===(r=i[e(307)])||void 0===r?void 0:r.handlerType)===e(355)})),D=u[s(345)]((t=>{const e=s;var i,r;return(null===(i=t[e(304)])||void 0===i||null===(r=i[e(307)])||void 0===r?void 0:r.handlerType)===e(324)}));let L,x=null;var p,f,m,g,A,y,b,v,S,w,E,I,T,k,_,C;if(R)if(x=null===(p=R[s(304)])||void 0===p||null===(f=p[s(297)])||void 0===f||null===(m=f.stbl)||void 0===m?void 0:m[s(363)][s(334)][0],x)if(n=x[s(357)],o=x.height,l=null===(g=R[s(304)])||void 0===g||null===(A=g[s(365)])||void 0===A?void 0:A[s(299)],i=null===(y=x[s(300)]||x[s(330)]||x[s(352)])||void 0===y?void 0:y[s(298)],"encv"===x.type)L=null===(b=x[s(317)])||void 0===b||null===(v=b.schi)||void 0===v?void 0:v[s(344)][s(308)];if(D)if(x=null===(S=D[s(304)])||void 0===S||null===(w=S[s(297)])||void 0===w||null===(E=w.stbl)||void 0===E?void 0:E[s(363)][s(334)][0],x)if(a=x[s(353)],h=x[s(340)],r=null===(I=x[s(325)])||void 0===I?void 0:I[s(298)],d=null===(T=D.mdia)||void 0===T||null===(k=T[s(365)])||void 0===k?void 0:k.timescale,"enca"===x[s(315)])L=L||(null===(_=x.sinf)||void 0===_||null===(C=_.schi)||void 0===C?void 0:C.tenc[s(308)]);return{kid:L?L.join(""):null,videoCodec:i,audioCodec:r,width:n,height:o,videoTimescale:l,audioChannelCount:a,audioSampleRate:h,duration:c,audioTimescale:d,moov:t,isFragmentMP4:e}}}function jk(t){return"number"==typeof t&&!Number[Mk(335)](t)}function Vk(){const t=Mk;for(var e=arguments[t(347)],s=new Array(e),i=0;i<e;i++)s[i]=arguments[i];if((s=s.filter(Boolean)).length<2)return s[0];const r=new Uint8Array(s[t(311)](((e,s)=>e+s[t(295)]),0));let n=0;return s[t(312)]((e=>{const s=t;r[s(368)](e,n),n+=e[s(295)]})),r}!function(t,e){const s=Mk,i=t();for(;;)try{if(634045===parseInt(s(346))/1*(-parseInt(s(358))/2)+parseInt(s(320))/3+-parseInt(s(351))/4+-parseInt(s(323))/5+-parseInt(s(359))/6*(parseInt(s(302))/7)+parseInt(s(338))/8+-parseInt(s(341))/9*(-parseInt(s(361))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Bk);var zk=Wk;function Gk(){var t=["_data","5sOdfGP","548340RUKhhf","30knUFQy","63266BLSngm","set","create","1431WRKPOL","100738oeoaJp","824098wNJyPN","741360ULFFbm","775132lyAiJH","10iipSAO","752kEflGu"];return(Gk=function(){return t})()}function Wk(t,e){var s=Gk();return(Wk=function(t,e){return s[t-=184]})(t,e)}!function(t,e){for(var s=Wk,i=t();;)try{if(240188===parseInt(s(195))/1*(parseInt(s(188))/2)+parseInt(s(190))/3+-parseInt(s(191))/4+-parseInt(s(196))/5+-parseInt(s(197))/6*(parseInt(s(184))/7)+parseInt(s(193))/8*(parseInt(s(187))/9)+parseInt(s(192))/10*(parseInt(s(189))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Gk);class Hk{constructor(){$f(this,Wk(194),Object.create(null))}[zk(185)](t,e){this[zk(194)][t]=e}get(t){return this[zk(194)][t]}clear(){var t=zk;this._data=Object[t(186)](null)}}const Kk=Yk;function Qk(){const t=["updateDuration","min","loadMetaProcess","_currentLoadingSegmentIndex","transformError","cannot find moov or mdat box","isSegmentLoading","destroy","changeUrl","size","type","_transformError","MP4Loader","range","3133476Muspol","loadMeta","_config",",dataLen,","cannot parse segments","player","message","endTime","moov",", state,","slice","meta","539058oxgmel","video","_bufferService","real_time_speed","_error","moovEnd","arraybuffer","3870pmbzUX","mp4","781404EbFMql","[loadMetaProcess start], range,","24pEeCAm","reset","sidx","_loadSegment","debugLog","_getCacheKey","_loader","find","7kgdnCE","loadNextSegment","findBox","moof","mdat","init","preload","getSegmentByTime","1978458dDwqnQ","length",",err,","vid","start","url","_currentSegmentIndex","byteLength","loadData","data","[MP4loader reset func call loader.cancel]","push","cancel","[loadMetaProcess] moov ok","file","16SfgIBJ","42715uabqGL","69773ffuamu","cannot parse moov box","index","isMetaLoaded","buffer","loadCacheMeta","audio","videoSegments","TAG_NAME","isLastSegment","clear","audioSegments","startTime","maxDownloadInfoSize","cache","loadSegmentByTime","max","1784136IxGxJs","downloadInfo"];return(Qk=function(){return t})()}function Yk(t,e){const s=Qk();return(Yk=function(t,e){return s[t-=374]})(t,e)}!function(t,e){const s=Yk,i=t();for(;;)try{if(552041===parseInt(s(460))/1+-parseInt(s(389))/2+-parseInt(s(423))/3+-parseInt(s(404))/4*(-parseInt(s(405))/5)+-parseInt(s(451))/6*(parseInt(s(381))/7)+parseInt(s(462))/8*(-parseInt(s(439))/9)+parseInt(s(458))/10*(parseInt(s(406))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Qk);class qk{constructor(t,e){const s=Yk;this[s(435)]=s(403),this[s(445)]=t,this.data=e}}class Jk extends Bi{constructor(t,e){const s=Yk;let i=arguments[s(390)]>2&&void 0!==arguments[2]?arguments[2]:{};var r;super(),$f(this,"_transformError",(t=>t)),this[s(414)]=s(437),this[s(441)]=(r=i,{vid:"",moovEnd:8e4,segmentDuration:2,maxDownloadInfoSize:30,responseType:Yk(457),cache:null,...r});const{vid:n,cache:o,...a}=this[s(441)];this.mp4=t,this[s(444)]=e,this[s(392)]=n||a.url,this[s(394)]=a[s(394)],a[s(429)]=this[s(436)],this[s(450)]={},this[s(424)]=[],this[s(413)]=[],this[s(417)]=[],this[s(420)]=new Hk,this._currentSegmentIndex=-1,this[s(428)]=-1,this[s(410)]=null,this._error=null,this._loader=new rI(a,e),this[s(379)].on(s(454),(t=>{})),this[s(444)][s(377)](this[s(414)],s(386))}async destroy(){const t=Yk;await this[t(374)](),this[t(420)][t(416)](),this[t(444)][t(377)](this[t(414)],t(432))}get[Kk(409)](){const t=Kk;return this.videoSegments[t(390)]||this.audioSegments.length}setCurrentSegment(t){const e=Kk;jk(t)&&(this[e(395)]=t)}[Kk(415)](t){const e=Kk;if(jk(t)){var s,i;return t>=((null===(s=this[e(413)][this[e(413)][e(390)]-1])||void 0===s?void 0:s[e(408)])||(null===(i=this[e(417)][this.audioSegments[e(390)]-1])||void 0===i?void 0:i[e(408)])||0)}return!1}[Kk(431)](t){return t===this._currentLoadingSegmentIndex}async[Kk(433)](t){const e=Kk;let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,i=arguments[e(390)]>2?arguments[2]:void 0,r=arguments[e(390)]>3?arguments[3]:void 0;await this[e(374)](r),t&&(this[e(394)]=t),s&&(this[e(392)]=s),i&&(this[e(441)][e(456)]=i)}async getOrLoadMeta(t){const e=Kk;return!this[e(409)]&&await this[e(440)](t),this.meta}async loadMetaProcess(t,e,s,i){const r=Kk;let[n,o]=e;this[r(455)]=!1,this[r(444)].debugLog(this[r(414)],r(461),[n,o]);await this[r(397)]([n,o||this._config.moovEnd],t,{onProgress:async(e,a,h)=>{const c=r;if(this[c(450)]&&null!=h&&h.range&&h[c(438)][c(390)]>0&&h.range[1]>=o&&(a=!0,this[c(444)][c(377)](this.TAG_NAME,"[loadMetaProcess],data done,setstate true,[",n,o,"]")),a&&null!=h&&h.range&&h[c(438)][c(390)]>0&&h[c(438)][1]<o&&(a=!1,this.player[c(377)](this[c(414)],"[loadMetaProcess],data not done,setstate false,[",n,o,"]")),this[c(444)][c(377)](this[c(414)],"[loadMetaProcess],task,[",n,o,"], range,",h[c(438)],c(442),e?e[c(396)]:void 0,c(448),a,c(391),this._error),!this[c(455)]&&e&&e.byteLength>0&&s(e,a,h),!this[c(450)].moov&&!this[c(455)]&&e&&e[c(396)]>0){this[c(410)]=Vk(this[c(410)],e);let r=GT[c(383)](this[c(410)],[c(447)])[0];if(!r){const e=GT[c(383)](this[c(410)],[c(385)])[0];if(a){if(!e)return this[c(455)]=!0,void s(null,a,h,{err:c(430)});{const s=e[c(393)]+e[c(434)],n=await this[c(397)]([s,""],t,i);n&&(r=GT[c(383)](n[c(398)],[c(447)])[0])}}}if(r&&a&&r[c(434)]>r[c(398)][c(390)]&&(this.player[c(377)](this.TAG_NAME,"[loadMetaProcess],moov not all, range,",h.range[1],c(442),this[c(410)][c(396)],c(448),a),await this[c(427)](t,[h[c(438)][1],r[c(393)]+r[c(434)]-1],s)),r&&r.size<=r[c(398)][c(390)]&&!this[c(450)][c(447)]){const e=GT[c(447)](r);if(!e)return this[c(455)]=!0,void s(null,a,h,{err:c(407)});let n=Ok(e,this[c(441)].segmentDuration);const o=async e=>{const s=c,r=GT[s(383)](this[s(410)],[e])[0];if(r){if(!(r[s(434)]>r.data.length))return r;{const n=await this[s(397)]([r.start,r[s(393)]+r[s(434)]-1],t,i);if(n)return GT[s(383)](n.data,[e])[0]}}};let l=!1;if(!(n&&n[c(413)][c(390)]&&n.audioSegments.length)){const t=await o("sidx");if(t){const s=GT[c(375)](t);s&&(n=Fk(e,s),l=!0)}}if(!n)return this[c(455)]=!0,void s(null,a,h,{err:c(443)});this[c(450)]=Nk(e,l);const{videoSegments:d,audioSegments:u}=n;this[c(413)]=d,this.audioSegments=u,this[c(444)].debugLog(this[c(414)],c(402)),s(void 0,a,{meta:{meta:this.meta,videoSegments:d,audioSegments:u}})}}},...i})}async[Kk(440)](t,e,s){const i=Kk,r=[];this.player[i(377)](this[i(414)],"[loadMeta start]");let n=await this[i(397)]([0,e||this._config[i(456)]],t,s);if(!n)return;r[i(400)](n);let o=GT[i(383)](n.data,[i(447)])[0];if(!o){const e=GT.findBox(n[i(398)],[i(385)])[0];if(!e)throw new qk(i(430),n[i(398)]);const a=e.start+e[i(434)];if(n=await this[i(397)]([a],t,s),!n)return;if(r[i(400)](n),o=GT[i(383)](n[i(398)],[i(447)],a)[0],!o)throw new qk("cannot find moov box",n[i(398)])}if(o[i(434)]>o[i(398)][i(390)]){if(n=await this.loadData([n[i(398)][i(390)],o[i(393)]+o[i(434)]-1],t,s),!n)return;r[i(400)](n),o[i(398)]=Vk(o[i(398)],n[i(398)])}const a=GT[i(447)](o);if(!a)throw new qk(i(407),o[i(398)]);let h,c=Ok(a,this._config.segmentDuration);if(!c)throw new qk(i(443),o.data);if(!c[i(413)].length||!c[i(417)].length){const t=GT[i(383)](this[i(410)],[i(384)])[0],e=GT.findBox(this[i(410)],[i(375)])[0];if(t&&t[i(434)]<=t[i(398)][i(390)]&&e){const s=GT.moof(t);h=GT[i(375)](e),s&&h&&(c=Fk(a,h))}}this[i(450)]=Nk(a,h);const{videoSegments:l,audioSegments:d}=c;return this[i(413)]=l,this[i(417)]=d,this[i(444)][i(377)](this[i(414)],"[load moov end!!!!!]",this[i(450)],l,d),this[i(450)]&&this[i(459)][i(453)][i(425)](this[i(450)].duration),{meta:this.meta,videoSegments:l,audioSegments:d,responses:r}}[Kk(411)](t,e){const s=Kk,{moov:i}=t,r=Ok(i,this[s(441)].segmentDuration),{videoSegments:n,audioSegments:o}=r;this[s(413)]=n,this[s(417)]=o,this[s(395)]=e,this[s(450)]=t}[Kk(388)](t){const e=Kk;let s,i;return this[e(413)][e(390)]?(s=this.videoSegments[e(380)]((s=>s[e(418)]<=t&&s[e(446)]>t)),s&&(i=this[e(417)][s[e(408)]])):i=this.audioSegments[e(380)]((s=>s.startTime<=t&&s[e(446)]>t)),{video:s,audio:i}}async[Kk(421)](t,e){const s=Kk;let i=!(arguments[s(390)]>2&&void 0!==arguments[2])||arguments[2],r=arguments[s(390)]>3&&void 0!==arguments[3]?arguments[3]:{};!this.isMetaLoaded&&await this[s(440)](e);const{video:n,audio:o}=this.getSegmentByTime(t);return this[s(376)](n,o,e,i,r)}async[Kk(382)](t){const e=Kk;let s=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments[e(390)]>2&&void 0!==arguments[2]?arguments[2]:{};!this[e(409)]&&await this[e(440)]();const r=this[e(413)][this[e(395)]+1],n=this[e(417)][this[e(395)]+1];return this[e(376)](r,n,t,s,i)}async[Kk(387)](t){const e=Kk;if(!this[e(409)]&&await this[e(440)](!0),!t||t<0)return;const{video:s,audio:i}=this[e(388)](t),r=Math.max((null==s?void 0:s[e(408)])||0,(null==i?void 0:i.index)||0);if(!r)return;const n=this[e(413)][e(449)](0,r),o=this[e(417)].slice(0,r),a=async t=>{const s=e;t>r||(await this[s(376)](n[t],o[t],!0,!1),await a(t+1))};await a(0)}[Kk(401)](){const t=Kk;return this[t(379)][t(401)]()}async[Kk(374)](){const t=Kk;!(arguments[t(390)]>0&&void 0!==arguments[0]&&arguments[0])&&(this[t(444)].debugLog(this[t(414)],t(399)),await this[t(379)][t(401)]()),this[t(392)]=this[t(394)]="",this[t(450)]={},this.downloadInfo=[],this[t(413)]=[],this.audioSegments=[],this._currentSegmentIndex=-1,this[t(428)]=-1}async destroy(){const t=Kk;await this[t(374)](),this[t(420)][t(416)]()}async[Kk(376)](t,e,s,i,r){const n=Kk;if(!t&&!e)return;const o=(null==t?void 0:t.index)||(null==e?void 0:e.index)||0;let a;this[n(428)]=o;try{a=await this[n(397)]([Math[n(426)]((null==t?void 0:t[n(438)][0])||1/0,(null==e?void 0:e[n(438)][0])||1/0),Math[n(422)]((null==t?void 0:t[n(438)][1])||0,(null==e?void 0:e[n(438)][1])||0)],s,r)}finally{this[n(428)]=-1}return a?(i&&(this[n(395)]=o),a[n(452)]=t,a[n(412)]=e,a):void 0}async[Kk(397)](t,e,s){const i=Kk,r=this[i(378)](t),n=await this[i(420)].get(r);let o;if(n)o={data:n,state:!0,options:{fromCache:!0,range:t,vid:this.vid}};else{const e=s&&s[i(394)]?s[i(394)]:this[i(394)];o=await this[i(379)].load(e,{range:t,vid:this.vid,...s})}if(o)return!n&&(o[i(398)]&&this[i(424)][i(400)]({startTime:o.startTime,endTime:o[i(446)],size:o[i(398)][i(396)],range:t}),this[i(424)]&&this[i(424)][i(390)]>this._config.maxDownloadInfoSize&&(this.downloadInfo=this[i(424)][i(449)](-this[i(441)][i(419)]))),o}[Kk(378)](t){return(this[Kk(392)]||this.url)+":"+t}}const Xk=Zk;function Zk(t,e){const s=$k();return(Zk=function(t,e){return s[t-=373]})(t,e)}function $k(){const t=["initAudioTrack","setSeekingTime","demux","isIFrame","size","addAudioTagHeader","audio","1203087giyQGd","endPts","geVodLoadedTime","postMessage","sps","_prevPlayVodTimeCache","9220976tQhGMR","workerClearTimeout","decodeAudio","data","isInitVideo","getBuferredDuration","buffer","sampleOffset","cleanSampleList","end","concat","isAudioAac","debugUuid","updateStats","1989594AwAbeJ","vps","forEach","byteLength","getSampleAudioListLength","buferredDuration","codecType","initVideoTrack","useEME","decoderData","samples","_basefps","977095ZRAXby","AAC","TAG_NAME","8387QAtULb","metadataTrack","URL","cannot parse samples from moov box","loopWorker","audioSenc","emit","_lastRemainBufferStartPos","new Uint8Array error:,","set","errorMessage","videoListLength","G711PCMU","getSampleRange","moovToSamples","MP4VodDemux","isUseMSE","cmd","_postMessageToLoopWorker","clearBuffer","audioTrack","channelCount","pps","2408300NmclEF","_videoSamples","videoSenc","videoTrack","mp4","isHevc","loop worker is not init, can not post message","isAudioG711a","_calcDecodeFps","cryptoPayload","_initLoopWorker","slice","_sendAccADTSHeader","startPts","getSampleVideoListLength","10699213BzqGSN","player","isAudioG711u","audioSamples","decodeVideo","_doDecodeByMp4","checkInitAudio","gopId","length","isPlayVodNotUseMSE","isPlayVod","max","init","G711PCMA","cleanSampleListAndSetSeekTime","tempSampleListInfo","_audioSamples","resume","listen playVodRateChange","kidValue","parseSamples","isInitAudio","onmessage","subarray","pause","revokeObjectURL","codec","playVodTimeCache","timescale","duration","videoSamples","warn","reset","objectType","getSampleListLength","baseMediaDecodeTime","keyframe","_hasCalcFps","payload","_lastRemainBuffer","destroy","_isUseWorker","_doDecodeAudio","audioListLength","correctSamplePts","push","video","cryptoPayloadAudio","206DBEWsh","getPlayVodDuration","debugLog","_opt","seekSampleRange","initMetadataTrack","workerUrl","pts","checkInitVideo","dts","debug","_doDecodeVideo","type","offset","cannot found video frame #","sampleListInfo"];return($k=function(){return t})()}!function(t,e){const s=Zk,i=t();for(;;)try{if(902472===parseInt(s(387))/1*(parseInt(s(473))/2)+parseInt(s(496))/3+-parseInt(s(410))/4+parseInt(s(384))/5+-parseInt(s(516))/6+parseInt(s(425))/7+-parseInt(s(502))/8)break;i.push(i.shift())}catch(t){i.push(i.shift())}}($k);class t_ extends Dp{constructor(t){const e=Zk;super(t),this[e(426)]=t,this[e(386)]=e(402),this[e(411)]=[],this[e(441)]=[],this[e(464)]=[],this[e(394)]=0,this[e(413)]=t_.initVideoTrack(),this[e(407)]=t_[e(489)](),this[e(388)]=t_[e(478)](),this[e(506)]=!1,this[e(446)]=!1,this[e(415)]=!1,this[e(440)]={},this[e(462)]=!1,this[e(383)]=25,this._prevPlayVodTimeCache=0,this[e(466)]()&&this._initLoopWorker(),this[e(426)][e(435)]()&&this._isUseWorker()&&this[e(426)].on(M.playVodRateChange,(t=>{const s=e;this[s(426)][s(475)](this.TAG_NAME,s(443),t),this[s(405)]("updatePlayRate",{rate:t})}))}destroy(){const t=Zk;super[t(465)](),this[t(479)]&&(URL.revokeObjectURL(this[t(479)]),this[t(479)]=null),this[t(503)]&&(clearTimeout(this[t(503)]),this[t(503)]=null),this[t(391)]&&(this.loopWorker[t(499)]({cmd:"destroy"}),this[t(391)].terminate(),this[t(391)]=null),this._videoSamples=[],this[t(441)]=[],this[t(464)]=[],this[t(394)]=0,this[t(501)]=0,this[t(413)]=null,this.audioTrack=null,this[t(388)]=null,this[t(440)]={},this[t(383)]=25}static[Xk(379)](){return{id:1,samples:[],sps:[],pps:[],vps:[],codec:""}}static initAudioTrack(){return{id:2,samples:[],sampleRate:0,channelCount:0,codec:"",codecType:""}}static[Xk(478)](){return{flvScriptSamples:[],seiSamples:[]}}[Xk(445)](t){const e=Xk;if(!t)throw new Error("moov is required");if(!this[e(413)][e(451)]&&!this[e(407)][e(451)]&&(GT.moovToTrack(t,this[e(413)],this[e(407)]),this.videoSenc=this.videoTrack.videoSenc,this.audioSenc=this[e(407)][e(392)],this[e(431)]()&&this[e(513)]()&&this[e(422)](this.audioTrack),this[e(481)]())){let t=null;this[e(413)].codecType===lt.h265?this[e(413)][e(500)].length&&this[e(413)][e(373)][e(433)]&&this[e(413)][e(409)][e(433)]&&(t=Ph({sps:this[e(413)][e(500)][0],pps:this.videoTrack.pps[0],vps:this[e(413)][e(373)][0]})):this[e(413)][e(500)][e(433)]&&this[e(413)].pps[e(433)]&&(t=nh({sps:this[e(413)][e(500)][0],pps:this.videoTrack[e(409)][0]})),t&&this[e(430)](t,D.video,0,!0,0)}if(!this._audioSamples[e(433)]&&!this[e(411)][e(433)]){const s=GT[e(401)](t);if(!s)throw new Error(e(390));this._videoSamples=s[e(455)]||[],this[e(441)]=s[e(428)]||[]}}[Xk(491)](t,e,s,i,r){const n=Xk;this[n(431)](),this[n(481)](),this[n(445)](r);const o=this[n(413)],a=this[n(407)];let h,c,l;if(o[n(382)]=[],a.samples=[],s){let i;for(let r=s[0],a=s[1];r<=a;r++){if(h=this[n(411)][r],!h)throw new Error(n(487)+r);l=h.offset-e,c=t[n(448)](l,l+h.size),i={type:D[n(471)],dts:1e3*h[n(482)]/o[n(453)],pts:1e3*(h.pts||h[n(482)])/o[n(453)],units:[],payload:null,isIFrame:!1},i[n(454)]=h[n(454)],i[n(432)]=h[n(432)],h.keyframe&&(i[n(492)]=!0),i.payload=c,o[n(382)].push(i)}o[n(460)]=o.samples[0][n(482)]}if(i){for(let s=i[0],r=i[1];s<=r;s++){if(h=this[n(441)][s],!h)throw new Error(n(487)+s);l=h[n(486)]-e,c=t[n(448)](l,l+h[n(493)]);const i=1e3*h[n(482)]/a[n(453)],r=this.addAudioTagHeader(c);a.samples[n(470)]({type:D[n(495)],dts:i,pts:i,payload:r,duration:h[n(454)],size:r[n(375)]})}a[n(460)]=a[n(382)][0][n(482)]}this[n(469)](o),this.correctSamplePts(a);const d=o[n(382)][n(512)](a.samples);d.sort(((t,e)=>{const s=n;return t[s(482)]-e[s(482)]})),d[n(374)]((t=>{const e=n,s=new Uint8Array(t[e(463)]);delete t[e(463)],this._isUseWorker()?this.loopWorker[e(499)]({...t,payload:s,cmd:"sample"},[s[e(508)]]):t[e(485)]===D[e(471)]?this[e(484)]({...t,payload:s}):t[e(485)]===D[e(495)]&&this._doDecodeAudio({...t,payload:s})})),ci(this[n(462)])&&this[n(466)]()&&(this[n(462)]=this[n(418)](d))}demuxPart(t,e,s,i,r,n,o,a){const h=Xk;if(this[h(431)](),this.checkInitVideo(),this[h(445)](r),this[h(413)][h(380)]=n,this.audioTrack[h(380)]=n,this[h(464)]&&this._lastRemainBuffer[h(375)]>0&&e>this[h(394)]&&e<=this._lastRemainBufferStartPos+this[h(464)][h(375)]){let s=0;for(;s<20;)try{const s=this._lastRemainBuffer[h(448)](0,e-this._lastRemainBufferStartPos),i=new Uint8Array(t[h(375)]+s[h(375)]);i[h(396)](s,0),i[h(396)](new Uint8Array(t),s[h(375)]),t=i,e-=s.byteLength,this._lastRemainBuffer=null,this[h(394)]=0;break}catch(t){if(!(s<20))throw new Error(h(395)+t[h(397)]);s++}}const c=this[h(413)],l=this[h(407)];c[h(382)]=[],l[h(382)]=[],c[h(412)]=null,l[h(392)]=null;let d,u,p,f=0,m=0;if(this[h(411)][h(433)]>0&&s.length>0){let i;const r=t[h(375)]+e;for(let n=s[0];n<=s[1];n++){if(d=this._videoSamples[n],!d)throw new Error(h(487)+n);d.offset>=e&&d[h(486)]+d[h(493)]<=r&&(p=d[h(486)]-e,f=p+d[h(493)],u=t[h(448)](p,f),i={type:D.video,dts:d[h(482)],pts:d[h(480)]||d.dts,units:[],payload:null,isIFrame:!1},i[h(454)]=d[h(454)],i[h(432)]=d[h(432)],i[h(509)]=d.index,d[h(461)]&&(i[h(492)]=!0),i[h(463)]=u,i.size=d.size,c[h(382)][h(470)](i))}c.samples[h(433)]>0&&(c[h(432)]=c[h(382)][0][h(432)],c[h(460)]=c[h(382)][0].dts,c[h(423)]=c[h(382)][0][h(480)]/c[h(453)],c.endPts=c[h(382)][c[h(382)][h(433)]-1].pts/c[h(453)],this.videoSenc&&(c[h(412)]=this[h(412)][h(421)](c[h(382)][0][h(509)],c[h(382)][0][h(509)]+c[h(382)].length),c[h(444)]=o))}if(this[h(441)][h(433)]>0&&i[h(433)]>0){for(let s=i[0];s<=i[1];s++){if(d=this[h(441)][s],!d)throw new Error("cannot found video frame #"+s);if(d[h(486)]>=e&&d[h(486)]+d[h(493)]<=t.byteLength+e){p=d[h(486)]-e,m=p+d[h(493)],u=t[h(448)](p,m);const s=this[h(494)](u);l[h(382)][h(470)]({type:D[h(495)],dts:d[h(482)],pts:d[h(482)],payload:s,duration:d[h(454)],sampleOffset:d.index,size:s[h(375)]})}}l.samples[h(433)]>0&&(l[h(432)]=l[h(382)][0][h(432)]||c[h(432)],l[h(460)]=l[h(382)][0].dts,l[h(423)]=l[h(382)][0][h(480)]/l[h(453)],l[h(497)]=l[h(382)][l[h(382)][h(433)]-1][h(480)]/l[h(453)],this[h(392)]&&(l.audioSenc=this[h(392)].slice(l[h(382)][0][h(509)],l[h(382)][0].sampleOffset+l[h(382)][h(433)]),l[h(444)]=o))}this[h(381)](c,l,a),this[h(464)]=t.subarray(Math[h(436)](f,m)),this[h(464)][h(375)]>0?this[h(394)]=e+t[h(375)]-this[h(464)].byteLength:this._lastRemainBufferStartPos=0}[Xk(457)](){const t=Xk;this[t(411)]=[],this[t(441)]=[],this._lastRemainBuffer=null,this._lastRemainBufferStartPos=0,this.videoTrack=t_.initVideoTrack(),this[t(407)]=t_.initAudioTrack(),this.metadataTrack=t_[t(478)]()}[Xk(381)](t,e,s){}checkInitAudio(){const t=Xk;return this[t(446)]=!!(this[t(407)].sampleRate&&this[t(407)].channelCount&&this[t(407)].codec),this[t(446)]}[Xk(513)](){const t=Xk;return this[t(407)].codecType===PT[t(385)]}isAudioG711a(){const t=Xk;return this[t(407)][t(378)]===PT[t(438)]}isAudioG711u(){const t=Xk;return this[t(407)][t(378)]===PT[t(399)]}[Xk(481)](){const t=Xk;return this[t(506)]=!!(this[t(413)][t(409)][t(433)]&&this[t(413)][t(500)][t(433)]&&this[t(413)][t(451)]),this[t(506)]}[Xk(422)](t){const e=Xk,s=ue({profile:t[e(458)],sampleRate:t.sampleRateIndex,channel:t[e(408)]});this[e(430)](s,D[e(495)],0,!0,0)}[Xk(420)](){const t=Xk,e=Ys(mT);let s=new Worker(e);this[t(479)]=e,this[t(503)]=setTimeout((()=>{const e=t;window[e(389)][e(450)](this[e(479)]),this.workerUrl=null,this[e(503)]=null}),T),s[t(499)]({cmd:t(437),options:{type:t(414),seekingMaxDiff:1e4,debug:this[t(426)][t(476)][t(483)],debugUuid:this[t(426)]._opt[t(514)],debugLevel:this[t(426)]._opt.debugLevel}}),s[t(447)]=e=>{const s=t,i=e[s(505)];switch(i[s(404)]){case s(429):this[s(484)](i);break;case s(504):this[s(467)](i);break;case s(488):if(this[s(440)]=i,this.player[s(434)]()){const t=this[s(498)](),e=this.player[s(474)]();if(t&&e){let i=t/(1e3*e);i!==this._prevPlayVodTimeCache&&this.player[s(393)](M[s(452)],i),this[s(501)]=i}}}},this[t(391)]=s}[Xk(405)](t,e){const s=Xk;this[s(426)][s(403)]()||(this[s(391)]?this[s(391)].postMessage({cmd:t,...e}):this.player[s(483)][s(456)](this.TAG_NAME,s(416)))}[Xk(467)](t){const e=Xk,s=new Uint8Array(t[e(463)]),i=this[e(472)](s);this._doDecodeByMp4(i,D.audio,t[e(482)],!1,0)}[Xk(484)](t){const e=Xk,s=new Uint8Array(t[e(463)]);let i=null;i=t[e(415)]?Bh(s,t[e(492)]):oh(s,t[e(492)]),this[e(426)][e(515)]({dts:t.dts});const r=t[e(480)]-t[e(482)];i=this[e(419)](i,t.isIFrame),this[e(430)](i,D[e(471)],t.dts,t[e(492)],r)}[Xk(507)](){const t=Xk;return this[t(440)][t(377)]||0}[Xk(459)](){return this[Xk(440)].allListLength||0}[Xk(376)](){const t=Xk;return this.tempSampleListInfo[t(468)]||0}[Xk(424)](){const t=Xk;return this.tempSampleListInfo[t(398)]||0}[Xk(400)](){const t=Xk;return{start:this.tempSampleListInfo.start||0,end:this[t(440)].end||0}}seekSampleRange(t){const e=Xk;this._postMessageToLoopWorker(e(477),{time:t})}[Xk(439)](t){const e=Xk;ci(this[e(426)].isUseMSE())&&(this[e(406)](!0),this._postMessageToLoopWorker(e(510)),this[e(405)](e(490),{time:t}))}[Xk(449)](){const t=Xk;this[t(405)](t(449))}[Xk(442)](){const t=Xk;this[t(405)](t(442))}[Xk(498)](){const t=Xk;let e=0;return e=this.getSampleRange()[t(511)],e}[Xk(494)](t){const e=Xk;let s=[];this[e(513)]()?s=[175,1]:this[e(417)]()?s=[114]:this[e(427)]()&&(s=[130]);const i=new Uint8Array(t[e(433)]+s.length);return i.set(s,0),i.set(t,s.length),i}}function e_(){const t=["player","index","media","demuxerPause","_mseOpened","evictBuffer() clearBuffer(","updateMediaSourceDuration","isStateOpen","updateDuration","2GGxgUY","3128536RMkMjQ","evictBuffer() start ","9751KeDgIs","72155MrzTFt","mseDecoder","debugLog","_sourceCreated","seekSampleRange","isInitAudio","1028EkGuss","cleanSampleListAndSetSeekTime","isPlayVod","playVod","updateDuration()","TAG_NAME","demuxerResume","currentTime","_needInitSegment","10963390VBFliY","429520NgOlga","clearSourceBuffer","509958hnjusB","evictBuffer","appendBuffer","mp4","length","pause","isInitVideo","246uHZesU","1782QeLvel","_mse","isPlayVodUseMSE"," + 1 >= removeEnd ","reset","evictBuffer() removeEnd ","destroy","endOfStream","_demuxer"];return(e_=function(){return t})()}function s_(t,e){const s=e_();return(s_=function(t,e){return s[t-=102]})(t,e)}const i_=s_;!function(t,e){const s=s_,i=t();for(;;)try{if(242214===parseInt(s(123))/1*(parseInt(s(119))/2)+parseInt(s(148))/3*(parseInt(s(129))/4)+-parseInt(s(139))/5+parseInt(s(149))/6*(-parseInt(s(122))/7)+-parseInt(s(120))/8+-parseInt(s(141))/9+parseInt(s(138))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(e_);class r_{constructor(t,e){const s=s_;this.TAG_NAME="MP4BufferService",this[s(144)]=t,this[s(110)]=e,this[s(109)]=new t_(e),this[s(102)]=null,this.player[s(103)]()&&(this[s(102)]=this.player[s(124)]),this[s(137)]=!0,this[s(126)]=!1}async[i_(107)](){const t=i_;this._mse=null,this[t(109)]&&(this[t(109)][t(107)](),this[t(109)]=null)}updateMSE(){const t=i_;this[t(110)].isPlayVodUseMSE()&&!this[t(102)]&&(this._mse=this[t(110)][t(124)])}async[i_(143)](t,e,s,i,r){const n=i_;if(!t||!t.length)return;if(!this[n(109)])return;let o,a;s&&(o=[s[0][n(111)],s[s[n(145)]-1][n(111)]]),i&&(a=[i[0].index,i[i[n(145)]-1][n(111)]]),(o||a)&&this[n(109)].demux(t,e,o,a,r)}async[i_(142)](t){const e=i_,s=this.mp4[e(112)];if(!this._mse||!this[e(109)]||!s||!t||t<0)return;const i=s[e(136)]-t;if(i<=0)return void this[e(110)][e(125)](this[e(134)],e(106)+i+" <= 0 return");const r=tk(ek(s));if(r+1>=i)return void this[e(110)].debugLog(this[e(134)],e(121)+r+e(104)+i+" return");const n=this[e(109)];return(n[e(128)]||n[e(147)])&&(this[e(110)][e(125)](this[e(134)],e(115)+r+", "+i+")"),this[e(102)][e(140)](0,i)),!0}async[i_(105)](){const t=i_;this[t(102)]&&(this[t(114)]=!1),this[t(126)]=!1,this[t(137)]=!0}async[i_(108)](){this[i_(102)]}async updateDuration(t){const e=i_;this[e(110)][e(125)](this[e(134)],e(133),t),this[e(110)][e(131)]()&&(this[e(110)][e(132)][e(118)](t),this.player[e(103)]()&&this[e(110)][e(124)]&&this[e(110)][e(124)][e(117)]&&this[e(110)][e(124)][e(116)](t))}[i_(127)](t){const e=i_;this[e(109)][e(127)](t)}[i_(130)](t){this._demuxer.cleanSampleListAndSetSeekTime(t)}[i_(113)](){const t=i_;var e;null===(e=this[t(109)])||void 0===e||e[t(146)]()}[i_(135)](){var t;null===(t=this[i_(109)])||void 0===t||t.resume()}getSampleRange(){return this[i_(109)].getSampleRange()}}const n_=o_;function o_(t,e){const s=a_();return(o_=function(t,e){return s[t-=303]})(t,e)}function a_(){const t=["isLastSegment","isPlayVod","getAvgSpeed","changeUrl","_reset","log","_loadSegment() and _prevSegmentEndTime is ","end","_bandwidthService","6581323aTQzla","audio","_loader","getRenderCurrentPts","video","_stopTick","playVodPause","5273380zopSQy","43826838WrmabV","isPlayVodUseMSE","destroy"," is loading so return","getLatestSpeed","isSegmentLoading","playVodVideoSeekingByMse","_loadSegment"," more than ","debug","duration","112Suwagw","error","endTime","457AZUrOl","meta","_tick","onPlay","assign","demuxerResume","onPause","loadSource() ","_tickTimer","_bufferService"," and segment ","_end","685ehQtNv","speedInfo","init","appendBuffer","$videoElement","1986kJyGLw","retryDelay","preloadTime","loadNextSegment","tickInterval","onSeeking","_config","773316NSCmDD","Mp4","TAG_NAME","playVodSeek","moov","length"," and segment is null so return","playVod","_setPrevSegmentEndTime","options","reset","_emitOnLoaded","resetBandwidth","loadSegmentByTime","listen playVodSeek onSeeking() ","bufferBehind","cleanSampleListAndSetSeekTime","index","bind","onVideoSeeking","player","data","readyState","min","15FMMTWE","frames","1094124MXDVsN","onSeeking() ","media","_startTick","endOfStream","_loading","_prevSegmentEndTime","2794DOVLpw","retry","getSegmentByTime","onPause()","updateMSE","addRecord","demuxerPause"];return(a_=function(){return t})()}!function(t,e){const s=o_,i=t();for(;;)try{if(737636===-parseInt(s(321))/1*(-parseInt(s(378))/2)+parseInt(s(369))/3*(parseInt(s(371))/4)+-parseInt(s(333))/5*(-parseInt(s(338))/6)+parseInt(s(394))/7+parseInt(s(318))/8*(parseInt(s(345))/9)+parseInt(s(306))/10+-parseInt(s(307))/11)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(a_);class h_ extends Bi{constructor(t){const e=o_;let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var i;super(),$f(this,"onVideoSeeking",(async t=>{const e=o_;this[e(365)][e(316)][e(390)](this[e(347)],"listen playVodVideoSeekingByMse",t),await this[e(343)](t)})),$f(this,e(343),(async t=>{const s=e;this[s(365)][s(316)][s(390)](this[s(347)],s(359)+t);const i=this[s(396)],{video:r,audio:n}=i[s(380)](t),o=r||n;if(o)if(i[s(312)](o[s(362)]))this[s(365)][s(316)].log(this[s(347)],s(372)+t+s(331)+o[s(362)]+s(310));else{if(this[s(373)]){const e=this[s(373)],i=function(t){const e=sk;let s=arguments[e(470)]>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments[e(470)]>2&&void 0!==arguments[2]?arguments[2]:0;if(!t||!t[e(470)])return{start:0,end:0,buffers:[]};let r=0,n=0,o=0,a=0,h=0,c=0,l=0;const d=ik(t,i);for(let t=0,u=d[e(470)];t<u;t++){const e=d[t];if(s+i>=e[0]&&s<e[1])r=e[0],n=e[1],o=t;else{if(s+i<e[0]){a=e[0],h=e[1];break}s+i>e[1]&&(c=e[0],l=e[1])}}return{start:r,end:n,index:o,buffers:d,nextStart:a,nextEnd:h,prevStart:c,prevEnd:l,currentTime:s,behind:s-r,remaining:n?n-s:0,length:rk(d)}}(ek(e),t,.1);if(i[s(392)]&&(i[s(392)]>=o[s(320)]||i[s(392)]>=e[s(317)]))return void this[s(365)][s(316)][s(390)](this[s(347)],s(372)+t+" and end is "+i[s(392)]+s(331)+o.index+" is loading so return")}this._bufferService[s(361)](t),await i.cancel(),this[s(376)]=!1,this[s(353)](0),await this._loadSegment(t),this[s(374)]()}else this[s(365)].debug.log(this.TAG_NAME,s(372)+t+s(351))})),$f(this,e(323),(async()=>{const t=e;if(this[t(304)](),this[t(374)](this[t(344)][t(342)]),this.media){const e=this[t(373)];if(function(t){const e=sk;return t&&t[e(470)]?1===t[e(470)]&&t[e(462)](0)-t[e(471)](0)<1e-6?0:t[e(462)](t.length-1):0}(ek(e))<.1||!e[t(367)])return;bi(e)&&this[t(314)]()}else this[t(314)]()})),this[e(347)]=e(346),this.player=t,this[e(377)]=0,this[e(329)]=null,this[e(376)]=!1,this[e(344)]=(i=s,Object[o_(325)]({tickInterval:500,preloadTime:10,bufferBehind:10,segmentDuration:void 0,url:"",retry:3,retryDelay:100},i)),this[e(330)]=new r_(this,t),this[e(393)]=new XI,this[e(396)]=new Jk(this,this.player,{url:s.url,retry:s[e(379)],retryDelay:s[e(339)]}),this[e(373)]=null,this[e(365)][e(386)]()&&(this[e(365)].on(M[e(305)],(t=>{const s=e;t?this[s(327)]():this[s(324)]()})),this.player[e(308)]()?(this.media=this.player[e(303)][e(337)],this[e(365)].on(M[e(313)],this[e(364)][e(363)](this))):this.player.on(M[e(348)],this[e(343)].bind(this))),this[e(365)].debug[e(390)](this[e(347)],e(335))}async[n_(309)](){const t=n_;await this[t(389)](),await this[t(330)].destroy()}async[n_(389)](){const t=n_;this[t(304)](),await this[t(396)][t(355)](),await this._bufferService[t(355)](),this[t(377)]=0,this[t(376)]=!1,this[t(393)].reset()}async loadSource(t){const e=n_;this[e(365)][e(316)][e(390)](this.TAG_NAME,e(328)+t),this._bufferService[e(382)](),t&&await this[e(396)][e(388)](t),this[e(374)](this[e(344)].tickInterval),await this[e(314)](0)}async[n_(314)](t){const e=n_;var s,i,r,n;if(this[e(376)])return;let o=this[e(365)][e(397)]();o/=1e3,this[e(365)][e(308)]()&&(o=this[e(365)].getVideoCurrentTime());const a=this._config[e(340)]*this.player[e(352)].rate+o;if(this[e(377)]&&this[e(377)]>a)return void this[e(365)].debug[e(390)](this[e(347)],e(391)+this._prevSegmentEndTime+" and current time is "+o+e(315)+a+" and return");let h;this[e(376)]=!0;try{h=null!=t?await this._loader[e(358)](t):await this[e(396)][e(341)]()}catch(t){console[e(319)](t)}if(!h)return void(this[e(376)]=!1);this._emitOnLoaded(h);const c=Math[e(368)]((null===(s=h[e(303)])||void 0===s?void 0:s[e(320)])||1/0,(null===(i=h.audio)||void 0===i?void 0:i.endTime)||1/0);this._setPrevSegmentEndTime(c);try{var l,d;await this[e(330)][e(336)](h[e(366)],h[e(354)].range[0],null===(l=h[e(303)])||void 0===l?void 0:l.frames,null===(d=h[e(395)])||void 0===d?void 0:d[e(370)],this[e(396)][e(322)][e(349)]),await this[e(330)].evictBuffer(this._config[e(360)])}catch(t){console[e(319)](t)}finally{this._loading=!1}this[e(396)][e(385)]((null===(r=h[e(303)])||void 0===r?void 0:r[e(362)])||(null===(n=h.audio)||void 0===n?void 0:n[e(362)])||0)?this[e(332)]():this[e(314)]()}[n_(332)](){const t=n_;this[t(330)][t(375)](),this[t(304)]()}[n_(356)](t){const e=n_,{data:s,response:i,options:r}=t,{firstByteTime:n,startTime:o,endTime:a,contentLength:h}=r||{},c=a-o;this._bandwidthService[e(383)](h||s.byteLength,c)}[n_(357)](){const t=n_;this[t(393)][t(355)]()}[n_(353)](t){this[n_(377)]=t}[n_(374)](){const t=n_;let e=arguments[t(350)]>0&&void 0!==arguments[0]?arguments[0]:0;this[t(304)](),this._tickTimer=setTimeout(this[t(323)],e)}_stopTick(){clearTimeout(this[n_(329)])}[n_(327)](){const t=n_;this[t(365)].debug.log(this[t(347)],t(381)),this[t(330)][t(384)](),this[t(304)]()}async[n_(324)](){const t=n_;this.player[t(316)][t(390)](this.TAG_NAME,"onPlay()"),this[t(330)][t(326)](),await this[t(314)](),this[t(374)]()}[n_(334)](){const t=n_;return{speed:this[t(393)][t(311)](),avgSpeed:this[t(393)][t(387)]()}}}const c_=d_;function l_(){const t=["emit","speedInfo","Mp4Decoder","avgSpeed","canVideoPlay","debugLog","9hhOSrm","2oBgkyi","eventsDestroy","destroy","_startBandwidthEstimateInterval","video","_stopBandwidthEstimateInterval","forEach","4vsFYce","$videoElement","3947340LkAvIT","_bindEvents","3046296XrFJwp","loadSource() ","1124740XpxFun","2362662veSjkt","length","147791hyxxMu","939183LgqWLw","TAG_NAME","loadSource","bandwidthEstimateInterval","player","95137OEdGYQ","56isEDKe","mp4","emitError","url"];return(l_=function(){return t})()}function d_(t,e){const s=l_();return(d_=function(t,e){return s[t-=389]})(t,e)}!function(t,e){const s=d_,i=t();for(;;)try{if(242434===parseInt(s(399))/1+parseInt(s(417))/2*(-parseInt(s(400))/3)+-parseInt(s(390))/4*(-parseInt(s(396))/5)+-parseInt(s(397))/6+parseInt(s(405))/7*(-parseInt(s(406))/8)+-parseInt(s(416))/9*(-parseInt(s(392))/10)+parseInt(s(394))/11)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(l_);class u_ extends Bi{constructor(t){const e=d_;super(),this[e(404)]=t,this[e(401)]=e(412),this[e(414)]=!1,this[e(391)]=this[e(404)][e(421)][e(391)],this[e(407)]=null,this.eventsDestroy=[],this[e(403)]=null,this[e(407)]=new h_(t),this[e(393)](),this[e(404)][e(415)](this.TAG_NAME,"init")}async destroy(){const t=d_;return this[t(422)](),this[t(407)]&&(await this.mp4[t(419)](),this[t(407)]=null),this[t(418)][t(398)]&&(this[t(418)][t(389)]((t=>t())),this[t(418)]=[]),this[t(391)]=null,this[t(404)][t(415)](this[t(401)],t(419)),!0}_bindEvents(){const t=d_;this[t(407)].on(Vt.error,(e=>{const s=t;this[s(404)][s(408)](U.mp4Error,e)}))}[c_(420)](){const t=c_;this[t(422)](),this[t(403)]=setInterval((()=>{const e=t;if(!this[e(407)])return;const s=this.mp4[e(411)]();this[e(404)][e(410)](M.kBps,(s[e(413)]/1024/8).toFixed(2)),this[e(407)].resetBandwidth()}),1e3)}_stopBandwidthEstimateInterval(){const t=c_;this[t(403)]&&(clearInterval(this[t(403)]),this.bandwidthEstimateInterval=null)}async[c_(402)](t){const e=c_;return this.player[e(415)](this.TAG_NAME,e(395)+t),this[e(409)]=t,await this[e(407)][e(402)](t),this[e(420)](),!0}}function p_(t,e){const s=m_();return(p_=function(t,e){return s[t-=127]})(t,e)}const f_=p_;function m_(){const t=["setPlayingTimestamp","playbackPrecision","hasRecord","audio","mseDecoder","_currentLocalTimestamp","$container","isUseFpsRender","halfHour","isUseLocalCalculateTime","totalDuration","normal","_prevPlayingTimestamp","_totalDuration","is60Min","_playbackTs","_isUseFpsRender","_checkStatsInterval","true","remove","videoCurrentTime","_opt","videoCurrentTimeDiff","playingTimestamp","_listen","updateVideoCurrentTimeByBufferStart","fiveMin","_videoTimestamp","isControlTypeSimple","stats","98sRFLxL","setHours","startTimestamp","check stats and is playback use mse and check is ended","video","updateStats","693894teQdYe","narrowPrecision","end","_playbackListStartTimestamp","constructor()","clearStatsInterval","start","isPlaybackStreamEnd","controlType","playbackTime","playbackEndInner","showPrecision","seek","duration","_localOneFrameTimestamp","includes","second","tenMin","endTimestamp","setStartTime","playbackStats","playbackSeek","pause"," > this.totalDuration ","round","debugWarn","_startTime","jb-pro-container-playback","startTime","isCurrentTimeInBufferEnd","playList","_isUseLocalCalculateTime","35htmtIi","Playback","playbackFps","playbackTimestamp","fps","7697354Elaxkf","289140iWKfiH","emit","30165HdMMhk","_showPrecision","forEach","is1Min","isCacheBeforeDecodeForFpsRender","initPlaybackList","_renderFps","_isCacheBeforeDecodeForFpsRender","uiUsePlaybackPause","_audioTimestamp","init","TAG_NAME","player","setPlayingTimestamp()","time","controlType is not in [normal,simple]","_playStartTime","seek()","classList","playbackTimeScroll","indexOf","978651xgZRAe","length","playbackList","isPlaybackH24","emitPlaybackPrecisionForNormal","add","debugLog","localOneFrameTimestamp","playbackRateChange","resume","setShowPrecision","type","type is not in PLAYBACK_CONTROL_TIME_PRECISION_ARRAY","7845168jraeGh","increaseLocalTimestamp","isControlTypeNormal","_isPlaybackPauseClearCache","oneHour","timestamp ","updateLocalOneFrameTimestamp","bufferSize","isPlaybackPauseNotClearCacheAndCacheBeforeDecodeAndUseFpsRender","min","destroy","_playingTimestamp","more","\n and next update video currentTime","showControl","_localCalculateTimeInterval","isPlaybackPauseClearCache","_startLocalCalculateTime","simple","setShowPrecision()","1879155IEENls","_stopLocalCalculateTime","_fps","setRate","_rate","hour","getControlType","endTime","updateStats and videoCurrentTimeDiff is 0 and\n videoCurrentTime is ","isPlaybackUseMSE","_startfpsTime","_startFpsTimestamp","isPlaying"];return(m_=function(){return t})()}!function(t,e){const s=p_,i=t();for(;;)try{if(917289===parseInt(s(234))/1+parseInt(s(167))/2*(parseInt(s(213))/3)+-parseInt(s(211))/4+parseInt(s(205))/5*(-parseInt(s(173))/6)+parseInt(s(210))/7+-parseInt(s(247))/8+parseInt(s(267))/9)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(m_);class g_ extends Bi{constructor(t,e){const s=p_;if(super(),this.player=t,this[s(225)][s(143)][s(231)][s(239)](s(200)),this[s(214)]=null,this[s(199)]=null,this[s(229)]=null,this[s(258)]=null,this[s(149)]=null,this[s(269)]=parseInt(e[s(209)],10)||t[s(158)][s(207)],this[s(153)]=!!hi(e.isUseFpsRender),this[s(128)]=1,this._audioTimestamp=0,this[s(164)]=0,this[s(181)]=e[s(181)]||A[s(148)],e.controlType&&-1===[A[s(148)],A[s(265)]].indexOf(e[s(181)])&&(this[s(225)][s(198)](s(206),s(177),s(228),e[s(181)]),this[s(181)]=A[s(148)]),this[s(142)]=0,this[s(187)]=e[s(241)]||40,this._localCalculateTimeInterval=null,this._isUseLocalCalculateTime=!!hi(e[s(146)]),this[s(250)]=!ci(e[s(263)]),this[s(220)]=!!hi(e[s(217)]),this[s(134)]=null,this[s(135)]=null,this[s(154)]=null,this[s(152)]=0,this[s(219)]=0,this._isUseLocalCalculateTime?this[s(264)]():this[s(161)](),this[s(236)]=[],this[s(176)]=null,this[s(150)]=0,this.controlType===A[s(148)])this[s(218)](e[s(203)],e[s(184)],e[s(201)]);else if(this[s(181)]===A[s(265)]){e[s(186)]&&(this._totalDuration=1e3*e.duration);let t=e[s(201)]||0;t>this.totalDuration&&(t=this[s(147)]),this[s(192)](t)}this.player.on(M.playbackPause,(t=>{const e=s;t?this[e(195)]():this[e(243)]()}));const i={fps:this._fps,isUseFpsRender:this[s(153)],localOneFrameTimestamp:this._localOneFrameTimestamp,isUseLocalCalculateTime:this._isUseLocalCalculateTime,uiUsePlaybackPause:e[s(221)],showControl:e[s(261)]};try{t.debugLog(s(206),s(223),JSON.stringify(i))}catch(e){t[s(240)](s(206),s(223),i)}}destroy(){const t=p_;this[t(199)]=null,this[t(214)]=null,this[t(229)]=null,this[t(258)]=null,this._prevPlayingTimestamp=null,this[t(150)]=0,this[t(222)]=0,this[t(164)]=0,this._fps=null,this[t(153)]=!1,this[t(128)]=1,this[t(236)]=[],this[t(176)]=null,this[t(262)]=null,this[t(142)]=0,this[t(134)]=null,this[t(135)]=null,this[t(219)]=0,this[t(152)]=0,this[t(268)](),this[t(178)](),this[t(225)][t(143)]&&this.player.$container[t(231)][t(156)](t(200)),this.off(),this.player[t(240)]("Playback",t(257))}_listen(){const t=p_;this[t(225)].on(M[t(166)],(e=>{const s=t,i=e.ts;!this[s(229)]&&(this[s(229)]=i-1e3);let r=i-this[s(229)];if(this[s(137)](r),this[s(225)].isPlaybackUseMSE()&&this[s(225)].isPlaying()&&0===e[s(159)]&&(this[s(225)].debugWarn(this[s(224)],s(132)+e[s(157)]+s(260)),this.player[s(141)][s(162)]()),this.player[s(180)]()&&this.player[s(136)]())if(this[s(225)][s(133)]()&&0===e[s(159)]){this[s(225)].mseDecoder[s(202)]()&&(this[s(225)][s(240)](this[s(224)],s(170)),this[s(225)][s(212)](M[s(183)]))}else{0===e.playbackCacheDataDuration&&(this[s(225)][s(240)](this.TAG_NAME,"check stats and is playback use (wasm or wcs) and check is ended"),this[s(225)].emit(M[s(183)]))}}))}[f_(195)](){this[f_(178)]()}[f_(243)](){this.startCheckStatsInterval()}[f_(172)](){const t=f_;let e=arguments[t(235)]>0&&void 0!==arguments[0]?arguments[0]:{};!this[t(135)]&&(this[t(135)]=je()),vs(e.ts)&&(this[t(225)][t(172)]({fps:!0,ts:e.ts}),this[t(152)]=e.ts,!this[t(134)]&&(this._startfpsTime=e.ts),this[t(219)]+=1);const s=je(),i=s-this._startFpsTimestamp;if(i<1e3)return;let r=null;this[t(134)]&&(r=this._playbackTs-this._startfpsTime),this.player[t(212)](M[t(193)],{fps:this[t(219)],rate:this.rate,start:this[t(134)],end:this._playbackTs,timestamp:i,dataTimestamp:r,audioBufferSize:this[t(225)][t(140)]?this[t(225)][t(140)][t(254)]:0,videoBufferSize:this[t(225)][t(171)]?this.player[t(171)][t(254)]:0,ts:this[t(152)]}),this[t(219)]=0,this[t(134)]=this[t(152)],this[t(135)]=s}[f_(253)](t){this[f_(187)]=t}[f_(264)](){const t=f_;this._stopLocalCalculateTime(),this[t(262)]=setInterval((()=>{const e=t,s=this._currentLocalTimestamp;!this[e(229)]&&(this[e(229)]=s-1e3);let i=s-this._playStartTime;this.setPlayingTimestamp(i)}),1e3)}startCheckStatsInterval(){this[f_(178)](),this._checkStatsInterval=setInterval((()=>{this.updateStats()}),1e3)}[f_(268)](){const t=f_;this[t(262)]&&(clearInterval(this[t(262)]),this[t(262)]=null)}[f_(178)](){const t=f_;this._checkStatsInterval&&(clearInterval(this[t(154)]),this._checkStatsInterval=null)}[f_(248)](){const t=f_;this[t(204)]&&(this[t(142)]+=this[t(187)])}initPlaybackList(t,e,s){const i=f_;this[i(236)]=t||[];let r=0;if(this[i(236)].forEach(((t,e)=>{const s=i;10===xs(t.start)?(t[s(169)]=1e3*t[s(179)],t[s(201)]=is(t[s(169)])):(t[s(169)]=t.start,t.startTime=is(t[s(169)])),10===xs(t[s(175)])?(t[s(191)]=1e3*t.end,t.endTime=is(t[s(191)])):(t[s(191)]=t[s(175)],t[s(131)]=is(t[s(191)])),t[s(186)]=t[s(175)]-t[s(179)],r+=t[s(186)]})),this[i(150)]=r,this[i(225)].debugLog("Playback",this.playbackList),this[i(236)].length>0){const t=this.playbackList[0].startTimestamp;this[i(176)]=t;let e=t;s&&(10===xs(s)&&(s*=1e3),this._isTimeInPlaybackList(s)&&(e=s)),this[i(192)](e)}const n=e||st.oneHour;this.setShowPrecision(n)}get[f_(147)](){return(this[f_(150)]||0)/1e3}get[f_(201)](){return this[f_(199)]||0}[f_(192)](t){const e=f_;this[e(199)]=t,this._playingTimestamp=t,this[e(149)]=t,this[e(229)]=null}[f_(127)](t){const e=f_;this._rate=t,this[e(225)][e(212)](M[e(242)],t)}get[f_(209)](){return this[f_(269)]}get rate(){return this[f_(128)]}get[f_(144)](){return this[f_(153)]}get[f_(146)](){return this[f_(204)]}get[f_(184)](){return this[f_(214)]}get[f_(151)](){const t=f_;return this[t(184)]===st[t(251)]}get is30Min(){const t=f_;return this[t(184)]===st[t(145)]}get is10Min(){const t=f_;return this[t(184)]===st[t(190)]}get is5Min(){const t=f_;return this.showPrecision===st[t(163)]}get[f_(216)](){return this[f_(184)]===st.fiveMin}get isPlaybackPauseClearCache(){return this[f_(250)]}get isCacheBeforeDecodeForFpsRender(){return this[f_(220)]}[f_(244)](t){const e=f_;!rt[e(188)](t)&&(this[e(225)][e(198)]("Playback",e(266),e(246),t),t=st[e(251)]),this[e(214)]&&this[e(214)]===t||(this[e(214)]=t,this[e(238)]())}[f_(238)](){const t=f_;this[t(237)]()&&(this.player[t(212)](M[t(138)],this[t(214)],this[t(236)]),this[t(225)].emit(M.playbackShowPrecisionChange,this[t(214)]))}setPlayingTimestamp(t){const e=f_;let s;if(this.controlType===A[e(148)]){if(s=this.startTime+t,this[e(258)]=s,this[e(258)]!==this[e(149)]){this[e(225)][e(212)](M.playbackTime,s);const t=function(t){const e=Me;let s={hour:0,min:0,second:0};return t>-1&&(s[e(617)]=Math.floor(t/60/60)%60,s[e(589)]=Math[e(384)](t/60)%60,s[e(544)]=t%60),s}(s);this[e(225)][e(212)](M[e(208)],{ts:s,hour:t[e(129)],min:t[e(256)],second:t[e(189)]})}this._prevPlayingTimestamp=this._playingTimestamp}else this[e(181)]===A[e(265)]&&(s=this[e(201)]+Math[e(197)](t/1e3),s>this[e(147)]&&(this[e(225)][e(240)](e(206),e(226),e(252)+s+e(196)+this[e(147)]),s=this[e(147)]),this[e(258)]=s,this[e(258)]!==this._prevPlayingTimestamp&&(this.player[e(212)](M[e(182)],s),this[e(225)][e(212)](M[e(208)],{ts:s})),this[e(149)]=this[e(258)])}get[f_(160)](){return this[f_(258)]}[f_(174)](){const t=f_,e=rt[t(233)](this[t(184)])-1;if(e>=0){const s=rt[e];this[t(244)](s)}}expandPrecision(){const t=f_,e=rt[t(233)](this[t(184)])+1;if(e<=rt[t(235)]-1){const s=rt[e];this[t(244)](s)}}[f_(185)](t){const e=f_;if(this.player[e(240)]("Playback",e(230),t),this[e(181)]===A[e(148)]){if(t[e(139)]===e(155)){let s=t[e(227)];t[e(245)]===e(256)&&(s=60*t[e(227)]);let i=function(t){let e={};t>-1&&(e={hour:Math[Me(384)](t/60/60)%60,min:Math.floor(t/60)%60,second:t%60});return e}(s);if(this[e(176)]){const t=new Date(this[e(176)])[e(168)](i[e(129)],i[e(256)],i[e(189)],0);i.timestamp=t;const s=this._findMoreInfoByTimestamp(t);i&&s.more&&(i.more=s[e(259)])}this[e(225)][e(212)](M[e(194)],i)}}else if(this[e(181)]===A[e(265)]){let s=t[e(227)];this.player[e(212)](M[e(194)],{ts:s})}}currentTimeScroll(){const t=f_;this[t(225)][t(212)](M[t(232)])}_findMoreInfoByTimestamp(t){const e=f_;let s=null;return this[e(236)][e(215)](((i,r)=>{const n=e;i[n(169)]<=t&&i[n(191)]>=t&&(s=i)})),s}_isTimeInPlaybackList(t){const e=f_;let s=!1;return this.playbackList[e(215)](((i,r)=>{i[e(169)]<=t&&i.endTimestamp>=t&&(s=!0)})),s}[f_(130)](){return this[f_(181)]}[f_(249)](){const t=f_;return this[t(181)]===A[t(148)]}[f_(165)](){return this[f_(181)]===A.simple}isPlaybackPauseNotClearCacheAndCacheBeforeDecode(){const t=f_;return ci(this.isPlaybackPauseClearCache)&&this[t(217)]}[f_(255)](){const t=f_;return this.isPlaybackPauseNotClearCacheAndCacheBeforeDecode()&&this[t(144)]}[f_(237)](){const t=f_;return this[t(181)]===A[t(148)]}isPlaybackSimple(){const t=f_;return this.controlType===A[t(265)]}}const A_=y_;function y_(t,e){const s=b_();return(y_=function(t,e){return s[t-=129]})(t,e)}function b_(){const t=["init","handleGestureChangeThrottle","updateVideoElementScale","6282eKULQl","726176eZNhdC","91MmOyaj","useWebFullScreen","34991ChuBIc","touchstart","bindEvents","classList","offsetLeft","pageY","destroy","handleGestureChange","isGesturing","video","zoomSupportGestureInMobile","remove","canvas","_handleZooming","left","handleGestureStart","touchend"," style is ","handleGestureChangeForAndroid","grabbing","$videoElement","videoPosition","scale","offsetTop","updatePrevVideoElementStyleScale","prevGestureScale","split","preventDefault","top","zooming","style","4380OVJuGx","touchmove","34dfNIfs","atan2","zoom","_bindEvents","stopPropagation","player","10gOzmTr","64887DWmCAY","expandPrecision","add","indexOf","$container","_unbindEvents","2746791pCtCoG","bind","handleMouseDown is dragging true","updateVideoPosition","jb-pro-zoom-control","zoomMaxScale","handleGestureStartForAndroid","grab","updateCurrentZoom","down","handleMouseUp is dragging false","handleGestureEndForAndroid","transform","172yOJYBh","move","cursor","pageX","narrowPrecision","_resetVideoPosition","auto","handleMouseUp","currentZoom","prevVideoElementStyleScale","prevGestureTouches","scale(","_isZooming","gesturechange","handleGestureEnd","1698IhFAfZ","match","zoomSupportGestureInMobileSpeed","replace","2100siPmzR","isZooming","tempPosition","push","length"," -> ","sqrt","resize","touches","prevVideoElementStyleTransform","handleMouseDown","_opt","debugLog","off","14226082npNOAV","isDragging"];return(b_=function(){return t})()}!function(t,e){const s=y_,i=t();for(;;)try{if(623543===parseInt(s(171))/1*(-parseInt(s(208))/2)+-parseInt(s(215))/3*(parseInt(s(133))/4)+parseInt(s(206))/5*(parseInt(s(148))/6)+parseInt(s(173))/7*(parseInt(s(172))/8)+-parseInt(s(221))/9*(parseInt(s(214))/10)+-parseInt(s(175))/11*(parseInt(s(152))/12)+parseInt(s(166))/13)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(b_);class v_ extends Bi{constructor(t){const e=y_;super(),this[e(213)]=t,this.TAG_NAME=e(210),this[e(177)]=[],this.isDragging=!1,this[e(183)]=!1,this.currentZoom=1,this[e(161)]=null,this[e(142)]=null,this[e(200)]=null,this[e(143)]=[],this[e(145)]=!1,this[e(154)]={x:0,y:0},this.videoPosition={left:0,top:0},this[e(213)],this[e(213)].on(M.zooming,this[e(188)].bind(this)),t[e(164)](e(210),e(168))}[A_(181)](){const t=A_;this[t(220)](),this.bindEvents=[],this[t(167)]=!1,this[t(141)]=1,this[t(161)]=null,this[t(142)]=null,this[t(154)]={x:0,y:0},this[t(196)]={left:0,top:0},this[t(165)](),this[t(213)][t(164)]("zoom","destroy")}[A_(188)](t){const e=A_;if(t){this.player[e(219)].classList[e(217)](e(225)),this[e(211)]();const t=this[e(213)][e(184)][e(195)][e(205)][e(132)];let s=this[e(213)][e(184)][e(195)][e(179)],i=this[e(213)][e(184)][e(195)][e(198)];s=parseFloat(s),i=parseFloat(i),s&&(this[e(196)][e(189)]=s),i&&(this[e(196)].top=i),this[e(161)]=t;let r=t[e(149)](/scale\([0-9., ]*\)/g);if(r&&r[0]){let t=r[0][e(151)](e(144),"")[e(151)](")","");this[e(142)]=t[e(201)](",")}this[e(145)]=!0}else{this[e(213)][e(219)][e(178)][e(186)](e(225)),this[e(220)](),this[e(138)](),this[e(213)][e(219)][e(205)].cursor=e(139);let t=this[e(161)];this[e(213)][e(184)].$videoElement[e(205)][e(132)]=t,this[e(161)]=null,this[e(142)]=null,Je()&&this[e(213)]._opt[e(174)]&&this[e(213)][e(159)](),this._isZooming=!1}}[A_(211)](){const t=A_,{events:{proxy:e}}=this.player,s=Ai(),i=e(this[t(213)][t(219)],s[t(134)],this.handleMouseMove[t(222)](this)),r=e(this[t(213)][t(219)],s[t(129)],this.handleMouseDown[t(222)](this)),n=e(window,s.up,this.handleMouseUp[t(222)](this));if(this[t(177)][t(155)](i,r,n),Je()&&this[t(213)][t(163)][t(185)])if(Ze()){this[t(169)]=hs(this[t(193)].bind(this),100);const s=e(this[t(213)][t(219)],t(176),this[t(227)][t(222)](this)),i=e(this[t(213)][t(219)],t(207),this[t(169)][t(222)](this)),r=e(this[t(213)][t(219)],t(191),this[t(131)][t(222)](this));this.bindEvents[t(155)](s,i,r)}else{this[t(169)]=hs(this[t(182)][t(222)](this),100);const s=e(this[t(213)][t(219)],"gesturestart",this[t(190)].bind(this)),i=e(this[t(213)][t(219)],t(146),this[t(169)].bind(this)),r=e(this[t(213)][t(219)],"gestureend",this[t(147)][t(222)](this));this[t(177)][t(155)](s,i,r)}}[A_(220)](){this[A_(177)].forEach((t=>{t&&t()}))}handleMouseMove(t){const e=A_;if(t[e(212)](),this[e(167)]&&this[e(213)][e(204)]){t[e(202)]();const{posX:s,posY:i}=Gs(t),r=this[e(154)].x-s,n=this.tempPosition.y-i;this[e(196)].left=this.videoPosition[e(189)]-r,this[e(196)].top=this[e(196)].top-n,this[e(154)].x=s,this[e(154)].y=i,this.updateVideoPosition()}}[A_(162)](t){const e=A_;t[e(212)]();const s=Ns(t);if(this[e(213)][e(204)]&&(s.matches(e(184))||s.matches(e(187)))){t[e(202)]();const{posX:s,posY:i}=Gs(t);this.player[e(219)][e(205)][e(135)]=e(194),this.tempPosition.x=s,this.tempPosition.y=i,this[e(167)]=!0,this[e(213)][e(164)](e(210),e(223))}}[A_(140)](t){const e=A_;t[e(212)](),this[e(167)]&&this[e(213)][e(204)]&&(t[e(202)](),this[e(154)]={x:0,y:0},this[e(167)]=!1,this[e(213)].$container[e(205)].cursor=e(228),this[e(213)][e(164)](e(210),e(130)))}[A_(190)](t){const e=A_;t[e(212)](),this[e(213)][e(204)]&&(null===this.prevGestureScale&&(this.prevGestureScale=t[e(197)]),this[e(183)]=!0)}handleGestureStartForAndroid(t){const e=A_;t[e(212)](),this[e(213)][e(204)]&&t[e(160)][e(156)]>=2&&(this.isGesturing=!0,this[e(143)]=t[e(160)])}[A_(193)](t){const e=A_;if(t[e(212)](),t.preventDefault(),this[e(213)][e(204)]&&this[e(183)]&&t[e(160)][e(156)]>=2){const r=t.touches,n=s(r[0],r[1])/s(this[e(143)][0],this[e(143)][1]);i(r[0],r[1]),i(this[e(143)][0],this[e(143)][1]),null===this.prevGestureScale&&(this[e(200)]=n);const o=n-this[e(200)],a=this[e(213)][e(163)][e(150)];o>0?this.expandPrecision(a):o<0&&this[e(137)](a)}function s(t,s){const i=e;var r=s[i(136)]-t[i(136)],n=s[i(180)]-t[i(180)];return Math[i(158)](r*r+n*n)}function i(t,s){const i=e;var r=t[i(136)]-s[i(136)],n=t[i(180)]-s[i(180)];return 180*Math[i(209)](n,r)/Math.PI}}handleGestureEndForAndroid(t){const e=A_;t[e(212)](),this.player.zooming&&(this[e(200)]=null,this[e(183)]=!1,this[e(143)]=[])}[A_(182)](t){const e=A_;if(t.stopPropagation(),this[e(213)][e(204)]&&this.isGesturing&&null!==this[e(200)]){const s=t[e(197)],i=s-this[e(200)],r=this.player[e(163)].zoomSupportGestureInMobileSpeed;i>0?this[e(216)](r):i<0&&this.narrowPrecision(r),this.prevGestureScale=s}}handleGestureEnd(t){const e=A_;t.stopPropagation(),this[e(213)].zooming&&(this[e(200)]=null,this[e(183)]=!1)}[A_(224)](){const t=A_,e=this[t(213)][t(184)][t(195)];e.style.left=this[t(196)][t(189)]+"px",e[t(205)][t(203)]=this[t(196)][t(203)]+"px"}[A_(138)](){const t=A_;this[t(213)].resize(),this.tempPosition={x:0,y:0},this[t(196)]={left:0,top:0},this[t(141)]=1,this[t(167)]=!1}narrowPrecision(t){const e=A_;this[e(141)]<=1||(this[e(141)]-=1,this[e(170)](t))}expandPrecision(t){const e=A_;this[e(141)]>=this[e(213)][e(163)].zoomMaxScale||(this[e(141)]+=1,this.updateVideoElementScale(t))}[A_(229)](t,e){const s=A_;t<1||t>this.player[s(163)][s(226)]||(this[s(141)]=t,this[s(170)](e))}[A_(199)](t){this[A_(142)]=t}[A_(170)](){const t=A_;let e=arguments[t(156)]>0&&void 0!==arguments[0]?arguments[0]:.5;const s=this[t(213)][t(184)][t(195)];let i=s.style[t(132)],r=1,n=1;if(this[t(142)]){const e=this[t(142)][0];void 0!==e&&(r=e,n=e);const s=this[t(142)][1];void 0!==s&&(n=s)}n=os(n),r=os(r);const o=e*r*(this[t(141)]-1)+r,a=e*n*(this[t(141)]-1)+n;let h;h=-1===i[t(218)](t(144))?i+" scale("+o+","+a+")":i[t(151)](/scale\([0-9., ]*\)/,"scale("+o+","+a+")"),this[t(213)][t(164)](t(210),"updateVideoElementScale end is X: "+r+t(157)+o+", Y: "+n+t(157)+a+t(192)+h),s[t(205)][t(132)]=h}[A_(153)](){return this[A_(145)]}}function S_(t,e){const s=E_();return(S_=function(t,e){return s[t-=192]})(t,e)}const w_=S_;function E_(){const t=["debugLevel","debugLog","type","color","borderWidth","useImageDetector","height","load","list","11517165IILZvV","#0000FF","map","emit"," and use faceDetector","destroy","screenshotByRect","borderColor","useObjectDetector","initOcclusionDetector","initImageDetector","updateImageDetectorConfig","objectDetector","_opt","forEach","143102VNKpqZ","aiFaceDetectRectConfig","jessibuca-pro-face-detector-info","JessibucaProOcclusionDetector","rect","width","aiObjectDetectorInfo","filter","isArray","init occlusion detector success","initFaceDetector","14CdEaHU","lineWidth","imageDetector","faceDetector"," and use objectDetector","aiObjectDetectTarget","length","push","fontSize","video","addAiContentToCanvas","aiObjectDetectShowRect","27093TFAimx","updateConfig","32155kSHOKe","init object detector success","aiFaceDetectWidth","2241872AuuYIe","AiLoader","aiFaceDetectEmitBase64","then","initObjectDetector","occlusionDetector","debugUuid","useOcclusionDetector","136kbOZkc","aiFaceDetectShowRect","player","updateOcclusionDetectorConfig","init","1218CYMnQA","off","init face detector success","1730mfXCTo","24498kAcGfd","14SLaJBj","debug","53125440vhUxYS"];return(E_=function(){return t})()}!function(t,e){const s=S_,i=t();for(;;)try{if(855406===-parseInt(s(232))/1*(parseInt(s(259))/2)+parseInt(s(209))/3*(-parseInt(s(222))/4)+-parseInt(s(211))/5*(parseInt(s(227))/6)+-parseInt(s(197))/7*(-parseInt(s(214))/8)+-parseInt(s(231))/9*(parseInt(s(230))/10)+-parseInt(s(244))/11+parseInt(s(234))/12)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(E_);class I_ extends Bi{constructor(t){const e=S_;super(),this[e(224)]=t,this[e(200)]=null,this.objectDetector=null,this.imageDetector=null,this[e(219)]=null,this[e(196)](),this[e(218)](),this[e(254)](),this[e(253)]();let s=e(226);this[e(200)]&&(s+=e(248)),this[e(256)]&&(s+=e(201)),this[e(199)]&&(s+=" and use imageDetector"),this[e(219)]&&(s+=" and use occlusionDetector"),this[e(224)].debugLog("AiLoader",s)}[w_(249)](){const t=w_;this[t(228)](),this.faceDetector&&(this.faceDetector[t(249)](),this[t(200)]=null),this[t(256)]&&(this[t(256)].destroy(),this[t(256)]=null),this[t(199)]&&(this[t(199)][t(249)](),this[t(199)]=null),this[t(219)]&&(this.occlusionDetector[t(249)](),this[t(219)]=null),this.player[t(236)](t(215),"destroy")}[w_(196)](){const t=w_;if(this[t(224)]._opt.useFaceDetector&&window.JessibucaProFaceDetector){const e=new JessibucaProFaceDetector({detectWidth:this[t(224)][t(257)][t(213)],showRect:!1,debug:this[t(224)][t(257)][t(233)],debugLevel:this[t(224)]._opt[t(235)],debugUuid:this[t(224)][t(257)][t(220)],name:b,buildTime:v});e[t(242)]()[t(217)]((()=>{const s=t;this[s(224)][s(236)]("AiLoader",s(229)),this[s(200)]=e,this[s(200)].on(s(261),(t=>{const e=s;if(this.player[e(257)][e(216)]&&(t.list=t[e(243)][e(246)]((t=>{const s=e;return this[s(224)].video&&(t.base64=this[s(224)][s(206)][s(250)](t)),t}))),this[e(224)][e(247)](M.aiFaceDetectorInfo,t),this[e(224)][e(257)][e(223)]){const s=this.player._opt[e(260)]||{},i=(t.list||[])[e(246)]((t=>{const i=e;return t[i(237)]=i(263),t[i(238)]=s[i(251)]||i(245),t[i(198)]=s[i(239)]||2,t}));this.player[e(206)]&&this[e(224)][e(206)][e(207)](i)}}))}))}}[w_(218)](){const t=w_;if(this[t(224)]._opt[t(252)]&&window.JessibucaProObjectDetector){const e=new JessibucaProObjectDetector({detectWidth:this[t(224)][t(257)].aiObjectDetectWidth,showRect:!1,debug:this.player[t(257)][t(233)],debugLevel:this[t(224)][t(257)][t(235)],debugUuid:this.player[t(257)][t(220)],name:b,buildTime:v});e[t(242)]()[t(217)]((()=>{const s=t;this.player[s(236)](s(215),s(212)),this[s(256)]=e,this.objectDetector.on("jessibuca-pro-object-detector-info",(t=>{const e=s,i=t.ts;let r=t.list||[];if(this.player[e(257)][e(202)]){let t=[];t=Array[e(194)](this[e(224)]._opt[e(202)])?this[e(224)]._opt[e(202)]:[this[e(224)][e(257)].aiObjectDetectTarget],r=r[e(193)]((e=>t.includes(e.en)))}if(this[e(224)].emit(M[e(192)],{ts:i,list:r}),this.player[e(257)][e(208)]){const t=[],s=this[e(224)][e(257)].aiObjectDetectRectConfig||{};r[e(258)]((i=>{const r=e,n={type:"rect",color:s[r(251)]||r(245),lineWidth:s.borderWidth||2,x:i[r(263)].x,y:i[r(263)].y,width:i.rect[r(264)],height:i.rect[r(241)]},o={type:"text",color:s[r(238)]||"#000",fontSize:s[r(205)]||14,text:i.zh,x:i[r(263)].x,y:i.rect.y-25};t[r(204)](n,o)})),this[e(224)][e(206)]&&this[e(224)][e(206)][e(207)](t)}}))}))}}[w_(254)](){const t=w_;if(this[t(224)][t(257)][t(240)]&&window.JessibucaProImageDetector){const e=new JessibucaProImageDetector({debug:this[t(224)][t(257)][t(233)],debugLevel:this[t(224)]._opt[t(235)],debugUuid:this.player[t(257)][t(220)],name:b,buildTime:v});e[t(242)]()[t(217)]((()=>{const s=t;this[s(224)][s(236)]("AiLoader","init image detector success"),this[s(199)]=e}))}}[w_(253)](){const t=w_;if(this[t(224)][t(257)][t(221)]&&window[t(262)]){const e=new JessibucaProOcclusionDetector({debug:this[t(224)][t(257)][t(233)],debugLevel:this[t(224)][t(257)][t(235)],debugUuid:this[t(224)][t(257)][t(220)],name:b,buildTime:v});e.load()[t(217)]((()=>{const s=t;this[s(224)][s(236)](s(215),s(195)),this.occlusionDetector=e}))}}updateFaceDetectorConfig(){const t=w_;let e=arguments[t(203)]>0&&void 0!==arguments[0]?arguments[0]:{};this.faceDetector&&this[t(200)][t(210)](e)}updateObjectDetectorConfig(){const t=w_;let e=arguments[t(203)]>0&&void 0!==arguments[0]?arguments[0]:{};this.objectDetector&&this[t(256)][t(210)](e)}[w_(255)](){const t=w_;let e=arguments[t(203)]>0&&void 0!==arguments[0]?arguments[0]:{};this[t(199)]&&this[t(199)][t(210)](e)}[w_(225)](){const t=w_;let e=arguments[t(203)]>0&&void 0!==arguments[0]?arguments[0]:{};this[t(219)]&&this[t(219)][t(210)](e)}}const T_=k_;function k_(t,e){const s=C_();return(k_=function(t,e){return s[t-=141]})(t,e)}!function(t,e){const s=k_,i=t();for(;;)try{if(103588===parseInt(s(190))/1+-parseInt(s(158))/2+-parseInt(s(169))/3*(-parseInt(s(165))/4)+-parseInt(s(156))/5*(-parseInt(s(176))/6)+-parseInt(s(142))/7*(parseInt(s(149))/8)+-parseInt(s(144))/9*(-parseInt(s(152))/10)+-parseInt(s(145))/11*(parseInt(s(143))/12))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(C_);class __ extends Bi{constructor(t){const e=k_;super(),this[e(180)]=t,this[e(186)]="Contextmenu",this.menuList=[],this[e(141)]=t[e(160)].$contextmenus,Je()?this[e(180)].debugWarn(this[e(186)],e(168)):this[e(188)](),t[e(171)](this[e(186)],"init")}[T_(150)](){const t=T_;this[t(161)]=[],this.player[t(171)](this[t(186)],t(150))}get[T_(153)](){const t=T_;return kn(this.player[t(155)],t(182))}show(){const t=T_;In(this.player.$container,t(182))}[T_(148)](){const t=T_;Tn(this[t(180)][t(155)],"jb-pro-contextmenus-show")}init(){const t=T_,{events:{proxy:e},debug:s}=this[t(180)];this[t(180)][t(146)][t(151)][t(184)]>0&&this.player[t(146)][t(151)][t(159)]((t=>{this.addMenuItem(t)})),e(this[t(180)][t(155)],t(185),(e=>{const s=t;e[s(167)](),this[s(175)]();const i=e[s(187)],r=e[s(189)],{height:n,width:o,left:a,top:h}=this.player.$container.getBoundingClientRect(),{height:c,width:l}=this[s(141)].getBoundingClientRect();let d=i-a,u=r-h;i+l>a+o&&(d=o-l),r+c>h+n&&(u=n-c),ze(this[s(141)],{left:d+"px",top:u+"px"})})),e(this.player[t(155)],"click",(e=>{!Dn(e,this[t(141)])&&this.hide()})),this[t(180)].on(M[t(164)],(()=>{this.hide()}))}[T_(174)](t){const e=T_;let s=!0;return!t[e(173)]&&(this[e(180)][e(166)](this[e(186)],"content is required"),s=!1),s}[T_(163)](){const t=T_;let e=arguments[t(184)]>0&&void 0!==arguments[0]?arguments[0]:{};const s=ii(yt);if(e=Object.assign({},s,e),!this[t(174)](e))return;const{events:{proxy:i},debug:r}=this[t(180)],n=as(),o='\n <div class="jb-pro-contextmenu jb-pro-contextmenu-'+n+t(177)+e[t(173)]+t(183),a=Array[t(179)](this[t(141)][t(157)])[e[t(162)]];a?a[t(172)](t(181),o):_n(this[t(141)],o);const h=this[t(141)][t(178)](t(147)+n);e.click&&i(h,"click",(s=>{const i=t;s[i(167)](),e.click[i(170)](this.player,this,s),this[i(148)]()})),this[t(161)][t(154)]({uuid:n,$menuItem:h})}}function C_(){const t=["call","debugLog","insertAdjacentHTML","content","_validateMenuItem","show","6JPoMSZ",'">\n ',"querySelector","from","player","beforebegin","jb-pro-contextmenus-show","\n </div>\n ","length","contextmenu","LOG_NAME","clientX","init","clientY","139752VAFLgw","$contextmenus","220598WKYaaD","12gaAqzF","225cqcWiP","2187229kSDQWO","_opt",".jb-pro-contextmenu-","hide","8sPVrTp","destroy","contextmenuBtns","18510Shqpmi","isShow","push","$container","909420pwoIHt","children","85676UUffeB","forEach","control","menuList","index","addMenuItem","blur","17736wkBqJn","debugWarn","preventDefault","not support mobile","6sCOkeY"];return(C_=function(){return t})()}const R_=L_;function D_(){const t=["end","timestamp","addTransceiver","prevWebrtcAudioStats","createElement","video play","isDisconnected","canvasRenderInterval","new","max","TransformStream","ratechange","video loadedmetadata","onicecandidateerror[candidate错误]","type","Track","onicecandidateerror","kBps","delta","video canplay","streams","$videoElement","debugWarn","ended","connected","5132015DsUxHZ","start","abps","timeStamp","video is paused and replay success","webrtcDisconnect","ondatachannel","player","supportVideoFrameCallbackHandle","isH264","currentTime","track","events","loadedmetadata","src","prevWebrtcVideoStats","srcObject","bytesReceived","localCandidate","readyState","createEncodedStreams","bandwidthEstimateInterval","video is paused and replay error ","rtcPeerTrackVideoReceiver","Remote ICE candidate: ","audio","videoStream","disconnected","1573386XYRyWG","CommonWebrtc","_startBandwidthEstimateInterval","onicecandidate","handleRender","destroy","floor","frameWidth","completed","InboundRtp","enqueue","currentWebrtcStats","getVideoBufferRangeList","getVideoCurrentTime","video","130wWPiiT","connectionState","oniceconnectionstatechange","autoplay","webrtcOnConnectionStateChange","getVideoBufferTimeRange","webrtcIceCandidateError","isEmitSEI","onnegotiationneeded","_startCanvasRender","pipeTo","payload","videoFrameCallback","isVideoPlaying","webrtcFailed","initCanvasViewSize","bind","stop","mediaTime","_initRenderSize","iceConnectionState","_opt","rtcPeerConnection","writable","onnegotiationneeded[通信环境发生变化]","pipeThrough","RemoteCandidate","frameHeight","canplay","7147611hwbbAu","9219546aefJck","10bZyiwc","closed","TAG_NAME","updateVideoInfo","absolute","getStats","_stopBandwidthEstimateInterval","cancelVideoFrameCallback","data","toFixed","CandidatePair","play","muted","video play error ","waiting","debugLog","emit","_initRtcPeerConnection","pause","9537872bhEYdM","iceGatheringState","updateStats","find","render","isInitInfo","196804VuVlgm","_initVideoEvents","push","1481nJolPO","rtcPeerTrackAudioReceiver","catch","video playback Rate change","close","eventsDestroy","checking","paused","1404uwCpeV","requestVideoFrameCallback","length","videoWidth","then","timeUpdate","position","ontrack","lastTimeStamp","getReceivers","removeAttribute","createEncodedStreams is not supported","buffered","LocalCandidate","bytesSent","_stopCanvasRender","videoFrameCallback() player is destroyed","playbackRate","getTracks","currentRoundTripTime","emitVideoSei","failed","webrtcOnIceConnectionStateChange","succeeded","onicegatheringstatechange","recvonly","_createEncodedStreams","webrtcUseCanvasRender","forEach","load","webrtcClosed","videoHeight","onconnectionstatechange"];return(D_=function(){return t})()}function L_(t,e){const s=D_();return(L_=function(t,e){return s[t-=119]})(t,e)}!function(t,e){const s=L_,i=t();for(;;)try{if(873365===parseInt(s(128))/1*(-parseInt(s(136))/2)+parseInt(s(222))/3+parseInt(s(125))/4*(-parseInt(s(237))/5)+parseInt(s(267))/6+parseInt(s(194))/7+parseInt(s(119))/8+parseInt(s(266))/9*(-parseInt(s(268))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(D_);class x_ extends Bi{constructor(t){const e=L_;super(),this[e(201)]=t,this[e(270)]=e(223),this[e(259)]=null,this[e(220)]=null,this[e(175)]=!1,this[e(203)]=this[e(201)].isWebrtcH264(),this[e(133)]=[],this[e(202)]=null,this[e(124)]=!1,this.$videoElement=this[e(201)][e(236)].$videoElement,this[e(215)]=null,this[e(217)]=null,this[e(129)]=null,this[e(209)]={},this[e(172)]={},this[e(233)]={},this[e(201)][e(258)][e(163)]&&this[e(203)]&&(this.$videoElement=document[e(173)](e(236)),ss()&&(this.$videoElement.style[e(142)]=e(272)),this[e(126)]()),this[e(190)][e(280)]=!0,this[e(285)]()}[R_(227)](){const t=R_;if(this[t(175)]=!1,this[t(124)]=!1,this[t(209)]={},this[t(233)]={},this[t(217)]=null,this[t(129)]=null,this[t(274)](),this[t(202)]&&this[t(190)]&&(this[t(190)][t(275)](this[t(202)]),this[t(202)]=null),this.eventsDestroy[t(138)]&&(this.eventsDestroy.forEach((t=>t())),this[t(133)]=[]),this[t(203)]&&(this[t(220)]&&(this[t(220)][t(154)]()[t(164)]((e=>e[t(254)]())),this.videoStream=null),this[t(190)]))if(this[t(201)][t(258)][t(163)]){this.$videoElement[t(286)]&&(this[t(190)][t(286)](),this[t(190)][t(280)]=!0),this[t(190)].currentTime=0,this[t(190)][t(208)]&&(this[t(190)][t(208)]="",this.$videoElement[t(146)]("src"));try{this[t(190)][t(165)]()}catch(t){}}else this[t(190)][t(210)]&&(this[t(190)][t(210)]=null,this[t(190)][t(146)](t(210)));this[t(190)]=null,this[t(259)]&&(this.rtcPeerConnection[t(225)]=Fe,this[t(259)][t(143)]=Fe,this.rtcPeerConnection[t(168)]=Fe,this.rtcPeerConnection[t(200)]=Fe,this[t(259)][t(132)](),this[t(259)]=null)}[R_(126)](){const t=R_;this.player[t(283)](this.TAG_NAME,"_initVideoEvents()");const{proxy:e}=this[t(201)][t(206)],s=e(this.$videoElement,ct[t(265)],(()=>{const e=t;this[e(201)][e(283)](this.TAG_NAME,e(188)),this.$videoElement[e(279)]()[e(140)]((()=>{const t=e;this[t(201)].debugLog(this[t(270)],t(174)),this[t(246)](),this._initRenderSize()}))[e(130)]((t=>{const s=e;this[s(201)].debugWarn(this[s(270)],s(281),t)}))})),i=e(this.$videoElement,ct[t(282)],(()=>{const e=t;this[e(201)].debugLog(this[e(270)],"video waiting")})),r=e(this[t(190)],ct[t(207)],(()=>{const e=t;this.player.debugLog(this[e(270)],e(181))})),n=e(this[t(190)],ct[t(141)],(e=>{const s=t;parseInt(e[s(197)],10),this[s(190)][s(135)]&&(this[s(201)][s(191)](this.TAG_NAME,"video is paused and next try to replay"),this[s(190)][s(279)]()[s(140)]((()=>{const t=s;this[t(201)][t(283)](this[t(270)],t(198))}))[s(130)]((t=>{const e=s;this[e(201)][e(191)](this.TAG_NAME,e(216),t)})))})),o=e(this[t(190)],ct[t(180)],(()=>{const e=t;this[e(201)][e(283)](this[e(270)],e(131),this[e(190)]&&this.$videoElement[e(153)])}));this[t(133)][t(127)](s,i,n,o,r)}[R_(285)](){const t=R_,e=new RTCPeerConnection,s=this[t(201)],i=e[t(171)](t(236),{direction:t(161)});e[t(171)](t(219),{direction:t(161)}),this.player[t(258)][t(244)]&&this[t(162)](i.receiver),e.onsignalingstatechange=t=>{this.player.debugLog(this.TAG_NAME,"onsignalingstatechange[本地端的信号状态]",t)},e[t(160)]=s=>{const i=t;this[i(201)].debugLog(this[i(270)],"onicegatheringstatechange[ICE收集状态]",s,e[i(120)])},e[t(245)]=e=>{const s=t;this[s(201)][s(283)](this[s(270)],s(261),e)},e[t(239)]=i=>{const r=t;this[r(201)][r(283)](this[r(270)],r(239),e[r(257)]);const n=e[r(257)];switch(this[r(201)][r(284)](M[r(158)],n),this[r(175)]=n===r(221),e[r(257)]){case r(177):case r(134):case r(269):break;case r(157):s.emit(M[r(251)]);break;case r(221):s.emit(M[r(199)]);break;case r(193):case r(230):break;case r(269):s[r(284)](M[r(166)])}},e[t(225)]=e=>{const s=t;this.player[s(283)](this.TAG_NAME,"onicecandidate",e),e.candidate&&this[s(201)][s(283)](this[s(270)],s(218),e.candidate.candidate)},e[t(143)]=s=>{const i=t;if(this.player[i(283)](this[i(270)],"ontrack",s),s[i(205)].kind===i(236)){this[i(201)][i(283)](this[i(270)],"ontrack video"),this[i(217)]=e[i(145)]()[i(122)]((function(t){const e=i;return t[e(205)]===s[e(205)]})),this.rtcPeerTrackVideoReceiver&&this[i(224)]();let t=s[i(189)][0];this.$videoElement[i(240)]=!0,this.$videoElement[i(210)]=t,this[i(220)]=t}else s[i(205)].kind===i(219)&&(this[i(201)][i(283)](this[i(270)],"ontrack audio"),this[i(129)]=e[i(145)]()[i(122)]((function(t){const e=i;return t[e(205)]===s[e(205)]})),this.rtcPeerTrackAudioReceiver&&this._startBandwidthEstimateInterval())},e[t(185)]=e=>{const s=t;this[s(201)].debugLog(this[s(270)],s(182),e),this.player.emitError(U[s(243)],e)},e.onconnectionstatechange=i=>{const r=t;switch(this[r(201)][r(283)](this[r(270)],"onconnectionstatechange[所有ICE 状态总览]",i),this[r(201)][r(284)](M[r(241)],e[r(238)]),e[r(238)]){case"new":case"connecting":case"connected":case r(221):break;case r(157):this[r(175)]&&s[r(284)](M[r(251)])}},this[t(259)]=e}[R_(224)](){const t=R_;this[t(201)][t(283)](this.TAG_NAME,t(224)),this[t(274)](),this[t(215)]=setInterval((()=>{const e=t;this[e(217)]&&this.rtcPeerTrackVideoReceiver[e(273)]()[e(140)]((t=>{const s=e;let i={},r=0;t[s(164)]((t=>{const e=s;if(t)switch(t[e(183)]){case Lt[e(278)]:(t.state===e(159)||t[e(211)])&&(this[e(233)][e(170)]=t[e(170)],this.currentWebrtcStats.rtt=t[e(155)]||-1,this[e(233)][e(211)]=t[e(211)]||0,this[e(233)][e(150)]=t[e(150)]||0);break;case Lt[e(263)]:this[e(233)].remoteCandidate=t||{};break;case Lt[e(149)]:this[e(233)][e(212)]=t||{};break;case Lt[e(231)]:this[e(233)][e(144)]=t[e(170)];const s=((t[e(170)]||0)-(this[e(209)][e(170)]||0))/1e3,n=Number(t[e(211)]||0)-Number(this[e(209)][e(211)]||0),o=Math[e(228)](n/s);r+=o,i.vbps=o,this[e(209)]=t;break;case Lt[e(184)]:t.frameWidth&&t[e(264)]&&(this[e(233)][e(229)]=t.frameWidth||0,this[e(233)].frameHeight=t[e(264)]||0)}})),this[s(129)]?this[s(129)][s(273)]()[s(140)]((t=>{const e=s;t[e(164)]((t=>{const s=e;if(t&&t[s(183)]===Lt.InboundRtp){this[s(233)].lastTimeStamp=t[s(170)];const e=((t.timestamp||0)-(this[s(172)][s(170)]||0))/1e3,n=Number(t[s(211)]||0)-Number(this[s(172)][s(211)]||0),o=Math[s(228)](n/e);r+=o,i[s(196)]=o,this.prevWebrtcAudioStats=t}})),this[e(201)][e(121)](i),this.player[e(284)](M[e(186)],(r/1024)[e(277)](2))})):(this[s(201)][s(121)](i),this[s(201)].emit(M[s(186)],(r/1024)[s(277)](2)))}))}),1e3)}_stopBandwidthEstimateInterval(){const t=R_;this.player.debugLog(this[t(270)],t(274)),this[t(215)]&&(clearInterval(this.bandwidthEstimateInterval),this[t(215)]=null)}[R_(162)](t){const e=R_;if(this.player[e(283)](this[e(270)],e(162)),!t[e(214)])return void this.player[e(191)](this[e(270)],e(147));const s=t[e(214)](),i=new(window[e(179)])({transform:(t,s)=>{const i=e;if("key"===t.type||t[i(183)]===i(187)){De(new Uint8Array(t[i(276)])).forEach((t=>{const e=i;if((31&t[0])===Y.kSliceSEI){const s=xe(t,!1),i=parseInt(1e3*this[e(235)](),10);this[e(201)][e(156)]({ts:i,data:s[e(248)]})}}))}s[i(232)](t)}});s.readable[e(262)](i)[e(247)](s[e(260)])}[R_(246)](){const t=R_;fi()?this[t(202)]=this[t(190)].requestVideoFrameCallback(this[t(249)].bind(this)):(this[t(151)](),this[t(176)]=setInterval((()=>{const e=t;this[e(201)][e(236)].render({$video:this.$videoElement,ts:0})}),40))}_stopCanvasRender(){const t=R_;this.canvasRenderInterval&&(clearInterval(this[t(176)]),this[t(176)]=null)}videoFrameCallback(t){const e=R_;let s=arguments[e(138)]>1&&void 0!==arguments[1]?arguments[1]:{};if(this[e(201)].isDestroyedOrClosed())return void this.player[e(283)](this[e(270)],e(152));const i=parseInt(1e3*Math[e(178)](s[e(255)],this[e(190)].currentTime),10)||0;this.player[e(226)](),this[e(201)][e(236)][e(123)]({$video:this.$videoElement,ts:i}),this.player[e(121)]({dts:i}),this.supportVideoFrameCallbackHandle=this[e(190)][e(137)](this[e(249)][e(253)](this))}[R_(256)](){const t=R_;!this[t(124)]&&(this[t(201)].video[t(271)]({width:this[t(190)][t(139)],height:this[t(190)][t(167)]}),this[t(201)][t(236)][t(252)](),this[t(124)]=!0)}[R_(235)](){const t=R_;let e=0;return this[t(190)]&&(e=this.$videoElement[t(204)]),e}[R_(250)](){const t=R_;return this[t(190)]&&ci(this[t(190)].paused)&&ci(this[t(190)][t(192)])&&0!==this[t(190)][t(153)]&&0!==this[t(190)][t(213)]}[R_(242)](){const t=R_,e=this[t(190)];let s=null;if(e){const i=e[t(148)],r=i[t(138)]?i[t(195)](0):0,n=i[t(138)]?i[t(169)](i[t(138)]-1):0;s={start:r,end:n,diff:n-r}}return s}[R_(234)](){const t=R_,e=this[t(190)];let s=[];if(e){const i=e[t(148)];for(let e=0;e<i.length;e++){let r=i[t(195)](e),n=i[t(169)](e);s[t(127)]({start:r,end:n})}}return s}}var P_=F_;function B_(){var t=["webrtc","length","substring","href","play","webrtc://","15027810keYPsQ","135705IHudSY","host","9646011ZGtFvE","getTime","user_query","__defaultVhost__","random","createElement","11ejXAce","pathname","360389SivKMv","hostname","?vhost=","replace","lastIndexOf","split","vhost=","https://","78239ikEkRh","api","944yCuzor","...vhost...","parse","port","rtmp","slice","test","indexOf","protocol","/rtc/v1/play/","5963940AuZDFT","http://","url","domain",":80","location","https","180ZDxrcF","vhost","4436dkcJoj","http","807RIzkSk","://"];return(B_=function(){return t})()}!function(t,e){for(var s=F_,i=t();;)try{if(721080===-parseInt(s(399))/1+parseInt(s(378))/2*(-parseInt(s(380))/3)+-parseInt(s(376))/4*(parseInt(s(389))/5)+-parseInt(s(369))/6+parseInt(s(357))/7*(parseInt(s(359))/8)+parseInt(s(391))/9+-parseInt(s(388))/10*(-parseInt(s(397))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(B_);const M_={defaultPath:P_(368),prepareUrl:function(t){var e=P_,s=M_[e(361)](t),i=s[e(393)].schema;i=i?i+":":window[e(374)][e(367)];var r=s[e(362)]||1985;"https:"===i&&(r=s[e(362)]||443);var n=s.user_query[e(386)]||M_.defaultPath;n[e(403)]("/")!==n[e(383)]-1&&(n+="/");var o=i+"//"+s.server+":"+r+n;for(var a in s[e(393)])a!==e(358)&&"play"!==a&&(o+="&"+a+"="+s.user_query[a]);return{apiUrl:o=o[e(402)](n+"&",n+"?"),streamUrl:s[e(371)],schema:i,urlObject:s,port:r,tid:Number(parseInt((new Date)[e(392)]()*Math[e(395)]()*100)).toString(16)[e(364)](0,7)}},parse:function(t){var e=P_,s=document[e(396)]("a");s[e(385)]=t.replace("rtmp://","http://")[e(402)](e(387),e(370))[e(402)]("rtc://",e(370));var i=s[e(400)],r=s.pathname[e(384)](1,s.pathname[e(403)]("/")),n=s[e(398)].slice(s[e(398)][e(403)]("/")+1);if((r=r[e(402)](e(360),e(401)))[e(366)]("?")>=0){var o=r[e(364)](r[e(366)]("?"));r=r[e(364)](0,r[e(366)]("?")),o[e(366)](e(405))>0&&((i=o.slice(o[e(366)](e(405))+e(405)[e(383)]))[e(366)]("&")>0&&(i=i.slice(0,i[e(366)]("&"))))}if(s[e(400)]===i){/^(\d+)\.(\d+)\.(\d+)\.(\d+)$/[e(365)](s[e(400)])&&(i=e(394))}var a=e(363);t[e(366)](e(381))>0&&(a=t[e(364)](0,t[e(366)](e(381))));var h=s[e(362)];h||(a===e(382)&&0===t[e(366)](e(387)+s[e(390)]+":")&&(h=0===t[e(366)]("webrtc://"+s[e(390)]+e(373))?80:443),a===e(379)?h=80:a===e(375)?h=443:a===e(363)&&(h=1935));var c={url:t,schema:a,server:s[e(400)],port:h,vhost:i,app:r,stream:n};return M_.fill_query(s.search,c),c.port||a!==e(382)&&"rtc"!==a||("https"===c[e(393)].schema?c.port=443:0===window.location[e(385)][e(366)](e(356))?c[e(362)]=443:c[e(362)]=1985),c},fill_query:function(t,e){var s=P_;if(e.user_query={},0!==t[s(383)]){t[s(366)]("?")>=0&&(t=t[s(404)]("?")[1]);for(var i=t[s(404)]("&"),r=0;r<i.length;r++){var n=i[r].split("=");e[n[0]]=n[1],e[s(393)][n[0]]=n[1]}e[s(372)]&&(e[s(377)]=e[s(372)])}}};function F_(t,e){var s=B_();return(F_=function(t,e){return s[t-=356]})(t,e)}function O_(t,e){const s=j_();return(O_=function(t,e){return s[t-=269]})(t,e)}function U_(t,e){const s=O_;return fetch(t,{method:s(307),mode:s(289),cache:s(270),credentials:s(304),redirect:s(276),referrerPolicy:"no-referrer",headers:{"Content-Type":"application/sdp"},body:e})}function N_(t,e){return new Promise(((s,i)=>{const r=O_,n=M_[r(293)](t);var o={api:n.apiUrl,tid:n[r(282)],streamurl:n.streamUrl,clientip:null,sdp:e};const a=new XMLHttpRequest;a.onload=function(){const t=r;if(a.readyState===a[t(295)]){if(200!==a[t(291)]&&201!==a[t(291)])return i(new Error(t(271)+n.apiUrl+" and http status is "+a[t(291)]));try{const e=JSON.parse(a[t(278)]);return e[t(280)]?i(new Error(t(271)+n[t(306)]+" and response code is "+e.code)):s(e)}catch(e){i(e[t(281)]())}}},a[r(286)]=function(t){const e=r;i(new Error(e(271)+n.apiUrl+e(299)+t))},a[r(273)](r(307),n.apiUrl,!0),a[r(292)](r(275),r(300)),a[r(269)](JSON[r(274)](o))}))}function j_(){const t=["username","no-referrer","9LKLrEe","onerror","18aXZgCO","4961060uDEgsp","cors","1383774OjLxUJ","status","setRequestHeader","prepareUrl","24FYrNLi","DONE","json","password","application/sdp"," and error is ","application/json","570280RLsCrO","80332tKaMTg","5488087lSIgLY","include","70QCqbUM","apiUrl","POST","send","no-cache","Failed to get sdp from ","text/plain;charset=utf-8","open","stringify","Content-type","follow","47070PYHCef","responseText","6048860ZmsLeq","code","toString","tid"];return(j_=function(){return t})()}!function(t,e){const s=O_,i=t();for(;;)try{if(763274===-parseInt(s(287))/1*(parseInt(s(302))/2)+parseInt(s(277))/3*(-parseInt(s(294))/4)+parseInt(s(288))/5+-parseInt(s(290))/6+parseInt(s(305))/7*(parseInt(s(301))/8)+-parseInt(s(285))/9*(-parseInt(s(279))/10)+-parseInt(s(303))/11)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(j_);const V_=z_;function z_(t,e){const s=W_();return(z_=function(t,e){return s[t-=392]})(t,e)}!function(t,e){const s=z_,i=t();for(;;)try{if(421296===-parseInt(s(413))/1*(-parseInt(s(416))/2)+-parseInt(s(412))/3+-parseInt(s(395))/4*(parseInt(s(420))/5)+parseInt(s(394))/6+parseInt(s(423))/7*(parseInt(s(398))/8)+-parseInt(s(404))/9*(-parseInt(s(426))/10)+-parseInt(s(393))/11)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(W_);class G_ extends x_{constructor(t){const e=z_;super(t),this.TAG_NAME=e(397),this.player[e(428)](this[e(424)],e(402))}[V_(409)](){const t=V_;super[t(409)](),this.player.debugLog(this[t(424)],t(409))}[V_(399)](t){return new Promise(((e,s)=>{const i=z_,r=this[i(401)];r[i(417)]()[i(407)]((n=>{const o=i;r[o(431)](n),this[o(422)][o(428)](this[o(424)],o(406),t);(this[o(422)][o(415)][o(403)]?N_:U_)(this[o(422)][o(415)][o(403)]?t[o(392)](window.location[o(405)],o(427)):t,n[o(408)])[o(407)]((t=>{const i=o;this[i(422)][i(428)](this[i(424)],i(396)+t[i(429)]);const n=t;if(n&&0!==n[i(429)])return this[i(422)][i(400)](this[i(424)],i(421)+n[i(429)]),s(n.msg);n?r[i(425)](new RTCSessionDescription({type:i(418),sdp:n.sdp||n}))[i(407)]((()=>{e()})).catch((t=>{const e=i;this[e(422)]&&this.player[e(400)](this[e(424)],"loadSource setRemoteDescription error",t[e(411)](),t),s(t)})):(this[i(422)][i(400)](this[i(424)],i(410)),s(i(410)))}))[o(419)]((t=>{const e=o;this[e(422)][e(400)](this[e(424)],e(414),t[e(411)](),t),s(t)}))}))[i(419)]((t=>{const e=i;this[e(422)][e(400)](this[e(424)],e(430),t[e(411)](),t),s(t)}))}))}}function W_(){const t=["answer","catch","538420tMFyMh","response json code ","player","119MkYWCE","TAG_NAME","setRemoteDescription","14590nJKTgs","webrtc:","debugLog","code","loadSource rtcPeerConnection.createOffer() error","setLocalDescription","replace","1582768GTmUcT","4622610EQYFOp","20BZJlbB","getWebRtcRemoteSdp response and code is ","WebrtcForSRSDecoder","171816QxvTiq","loadSource","debugError","rtcPeerConnection","init","webrtcForSRSBySDK","1998zhzGrw","protocol","getWebRtcRemoteSdp loadSource","then","sdp","destroy","response sdp is null","toString","1114665UGazzU","1209QGyWRV","loadSource getWebRtcRemoteSdp response error","_opt","26ZqGANn","createOffer"];return(W_=function(){return t})()}function H_(t,e){const s=Q_();return(H_=function(t,e){return s[t-=229]})(t,e)}const K_=H_;function Q_(){const t=["27eeigwn","27bZHimy","init","WebrtcForOthersDecoder","this is json sdp response","loadSource response.text() error","response sdp json code: ","debugLog","debugError","269530EkdpZd","then","539520VeujZV","188603cGMHHs","TAG_NAME","text","player","code","answer","1304022NoGKhp","setRemoteDescription","loadSource","this is raw sdp response","544408CivWYv","335725RjVoXn","sdp","setLocalDescription","createOffer","loadSource setRemoteDescription error","toString","catch","rtcPeerConnection","loadSource rtcPeerConnection.createOffer() error","getWebRtcRemoteSdp response and code is ","getWebRtcRemoteSdp loadSource","sdp is null","7UbDMjj","33092QPpdCh","parse","destroy"];return(Q_=function(){return t})()}!function(t,e){const s=H_,i=t();for(;;)try{if(173287===parseInt(s(249))/1+parseInt(s(234))/2*(-parseInt(s(238))/3)+parseInt(s(248))/4+parseInt(s(260))/5+-parseInt(s(255))/6+parseInt(s(233))/7*(parseInt(s(259))/8)+-parseInt(s(237))/9*(-parseInt(s(246))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Q_);class Y_ extends x_{constructor(t){const e=H_;super(t),this[e(250)]=e(240),this[e(252)].debugLog(this[e(250)],e(239))}[K_(236)](){const t=K_;super[t(236)](),this.player[t(244)](this[t(250)],"destroy")}[K_(257)](t){return new Promise(((e,s)=>{const i=H_,r=this[i(267)];r[i(263)]()[i(247)]((n=>{const o=i;r[o(262)](n),this[o(252)].debugLog(this[o(250)],o(231),t),function(t,e){const s=O_;return fetch(t,{method:s(307),mode:"cors",cache:s(270),credentials:s(304),redirect:s(276),referrerPolicy:"no-referrer",headers:{"Content-Type":"application/sdp"},body:e})}(t,n[o(261)]).then((t=>{const i=o;this[i(252)][i(244)](this[i(250)],i(230)+t[i(253)]),t[i(251)]()[i(247)]((t=>{const n=i;this.player[n(244)](this[n(250)],"getWebRtcRemoteSdp response");try{let e=JSON[n(235)](t);this[n(252)][n(244)](this[n(250)],n(241)),0!=e[n(253)]&&(this[n(252)][n(245)](this[n(250)],"response json code "+e.code),s(new Error(n(243)+e[n(253)]))),t=e[n(261)]}catch(t){this[n(252)][n(244)](this[n(250)],n(258))}t?r[n(256)](new RTCSessionDescription({type:n(254),sdp:t}))[n(247)]((()=>{e()}))[n(266)]((t=>{const e=n;this[e(252)][e(245)](this[e(250)],e(264),t[e(265)](),t),s(t)})):(this[n(252)][n(245)](this[n(250)],"loadSource sdp is null"),s(n(232)))}))[i(266)]((t=>{const e=i;this[e(252)][e(245)](this.TAG_NAME,e(242),t[e(265)](),t),s(t)}))}))[o(266)]((t=>{const e=o;this.player[e(245)](this.TAG_NAME,"loadSource getWebRtcRemoteSdp response error",t[e(265)](),t),s(t)}))}))[i(266)]((t=>{const e=i;this.player[e(245)](this[e(250)],e(229),t[e(265)](),t),s(t)}))}))}}function q_(){const t=["recvonly","ontrack video","find","sdp","loadSource rtcPeerConnection.createOffer() error","webrtcClosed","answer","onsignalingstatechange[本地端的信号状态]","getWebrtcVideo","getWebRtcRemoteSdp response","track","audio","6syAWCG","onmessage","new","offer","TAG_NAME","then","close","autoplay","webrtcIceCandidateError","debugWarn","getReceivers","iceGatheringState","createOffer","webrtcDisconnect","iceConnectionState","ontrack","WebrtcForM7SDecoder","onicecandidateerror[candidate错误]","onnegotiationneeded[通信环境发生变化]","data","startStreamRateInterval","connectionState","3377040uCmVDy","webrtcOnConnectionStateChange","emitError","toFixed","video","getWebRtcRemoteSdp loadSource","onclose","onnegotiationneeded","receiver","38325550hljfzP","isDisconnected","1198145dFvExV","loadSource sdp is null","byteLength","completed","text","rtcPeerTrackAudioReceiver","streamRate","connected","streamRateInterval","toString","onopen","4QVGarm","length","kind","type","setLocalDescription","demux","onconnectionstatechange[所有ICE 状态总览]","emit","isWebrtcH264","8705007FsyJZi","908736lhhMNB","327sXATDy","214TFAIXD","webrtcStreamH265","remove","disconnected","_createEncodedStreams","kBps","rtcPeerConnection","debugLog","srcObject","ondatachannel and player is destroyed","checking","_startBandwidthEstimateInterval","channel","_initRtcPeerConnection","onicecandidateerror","destroy","closed","ontrack audio","debugError","player","ondatachannel and onclose","webrtcFailed","init","8760794zCARPx","catch","signalChannel,onmessage","rtcPeerConnectionDataChannel","connecting","isWebrtcH265","onicecandidate","candidate","ondatachannel is H265 but decode is h264 so emit webrtcStreamH265 ","webrtcOnIceConnectionStateChange","stopStreamRateInterval","ondatachannel","oniceconnectionstatechange","onicegatheringstatechange"];return(q_=function(){return t})()}const J_=X_;function X_(t,e){const s=q_();return(X_=function(t,e){return s[t-=183]})(t,e)}!function(t,e){const s=X_,i=t();for(;;)try{if(649136===-parseInt(s(215))/1*(-parseInt(s(216))/2)+-parseInt(s(287))/3+parseInt(s(204))/4*(parseInt(s(193))/5)+parseInt(s(265))/6*(-parseInt(s(239))/7)+-parseInt(s(214))/8+-parseInt(s(213))/9+parseInt(s(191))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(q_);class Z_ extends x_{constructor(t){const e=X_;super(t),this[e(242)]=null,this.player.isWebrtcH265()&&(this[e(199)]=He((s=>{const i=e;t[i(211)](M[i(221)],(s/1024)[i(185)](2))}))),this[e(269)]=e(281),this[e(235)][e(223)](this[e(269)],e(238))}[J_(231)](){const t=J_;super[t(231)](),this.stopStreamRateInterval(),this[t(242)]&&(this[t(242)][t(203)]=Fe,this[t(242)][t(188)]=Fe,this[t(242)][t(266)]=Fe,this[t(242)][t(271)](),this[t(242)]=null),this[t(235)][t(223)](this[t(269)],"destroy")}[J_(229)](){const t=J_,e=new RTCPeerConnection,s=this[t(235)],i=e.addTransceiver(t(186),{direction:t(253)});e.addTransceiver("audio",{direction:t(253)}),s[t(212)]()&&this[t(235)]._opt.isEmitSEI&&this[t(220)](i[t(190)]),e.onsignalingstatechange=e=>{const s=t;this[s(235)][s(223)](this[s(269)],s(260),e)},e[t(252)]=s=>{const i=t;this.player[i(223)](this[i(269)],"onicegatheringstatechange[ICE收集状态]",s,e[i(276)])},e[t(189)]=e=>{const s=t;this[s(235)][s(223)](this[s(269)],s(283),e)},e.oniceconnectionstatechange=i=>{const r=t;this.player[r(223)](this[r(269)],r(251),e.iceConnectionState);const n=e[r(279)];switch(this[r(235)][r(211)](M[r(248)],n),this[r(192)]=n===r(219),e[r(279)]){case r(267):case r(226):case r(232):break;case"failed":s[r(211)](M[r(237)]);break;case"disconnected":s[r(211)](M[r(278)]);break;case r(200):case r(196):break;case r(232):s.emit(M[r(258)])}},e[t(245)]=e=>{const s=t;this[s(235)][s(223)](this[s(269)],s(245),e),e[s(246)]&&this[s(235)][s(223)](this[s(269)],"Remote ICE candidate: ",e[s(246)].candidate)},e[t(280)]=i=>{const r=t;this[r(235)].debugLog(this[r(269)],r(280),i);const n=s[r(261)]();if(s[r(212)]())if(i.track[r(206)]===r(186)){this[r(235)].debugLog(this[r(269)],r(254)),this.rtcPeerTrackVideoReceiver=e.getReceivers()[r(255)]((function(t){const e=r;return t[e(263)]===i[e(263)]})),this.rtcPeerTrackVideoReceiver&&this[r(227)]();let t=i.streams[0];n[r(272)]=!0,n[r(224)]=t,this.videoStream=t}else i[r(263)][r(206)]===r(264)&&(this[r(235)][r(223)](this[r(269)],r(233)),this[r(198)]=e[r(275)]()[r(255)]((function(t){const e=r;return t[e(263)]===i[e(263)]})),this.rtcPeerTrackAudioReceiver&&this[r(227)]())},e[t(230)]=e=>{const s=t;this[s(235)][s(223)](this[s(269)],s(282),e),this[s(235)][s(184)](U[s(273)],e)},e.onconnectionstatechange=i=>{const r=t;switch(this[r(235)][r(223)](this.TAG_NAME,r(210),i),this[r(235)][r(211)](M[r(183)],e[r(286)]),e[r(286)]){case r(267):case r(243):case r(200):case r(219):break;case"failed":this[r(192)]&&s[r(211)](M[r(237)])}},e[t(250)]=e=>{const s=t,i=e[s(228)];this[s(235)][s(223)](this[s(269)],s(250)),i[s(203)]=()=>{const t=s;this[t(235)][t(223)](this[t(269)],"ondatachannel and onopen")},i[s(266)]=t=>{const e=s,i=t[e(284)];if(this[e(235)][e(212)]())return this[e(235)].debugWarn(this[e(269)],e(247)),void this[e(235)].emit(M[e(217)]);this.player.isDestroyedOrClosed()?this[e(235)][e(274)](this[e(269)],e(225)):(this[e(199)]&&this[e(199)](i[e(195)]),this.player.demux&&this.player[e(209)].dispatch(i))},i[s(188)]=()=>{const t=s;this[t(235)][t(274)](this[t(269)],t(236))},this[s(242)]=i};e.createDataChannel("signal")[t(266)]=e=>{const s=t;this[s(235)][s(223)](this[s(269)],s(241),e);switch(JSON.parse(e[s(284)])[s(207)]){case s(268):case s(259):case s(246):case s(218):}},this[t(222)]=e}startStreamRateInterval(){const t=J_;this[t(249)](),this[t(201)]=setInterval((()=>{const e=t;this.streamRate&&this[e(199)](0)}),1e3)}stopStreamRateInterval(){const t=J_;this[t(201)]&&(clearInterval(this[t(201)]),this[t(201)]=null)}loadSource(t){const e=J_;let s=arguments[e(205)]>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(((i,r)=>{const n=e,o=this[n(222)];o[n(277)]()[n(270)]((e=>{const a=n;o[a(208)](e),this[a(235)][a(223)](this[a(269)],a(187),t),function(t,e,s){const i=O_;let r={"Content-Type":i(298)};return s[i(283)]&&s[i(297)]&&(r.Authorization="Basic "+btoa(s.username+":"+s[i(297)])),fetch(t,{method:i(307),mode:i(289),cache:"no-cache",credentials:i(304),redirect:i(276),referrerPolicy:i(284),headers:r,body:e})}(t,e[a(256)],s)[a(270)]((t=>{const e=a;t[e(197)]()[e(270)]((t=>{const s=e;this[s(235)].debugLog(this.TAG_NAME,s(262)),t?o.setRemoteDescription(new RTCSessionDescription({type:s(259),sdp:t}))[s(270)]((()=>{const t=s;this.player[t(244)]()&&this[t(285)](),i()})).catch((t=>{const e=s;this[e(235)].debugError(this[e(269)],"loadSource setRemoteDescription error",t[e(202)](),t),r(t)})):(this.player[s(234)](this[s(269)],s(194)),r("sdp is null"))})).catch((t=>{const s=e;this.player.debugError(this[s(269)],"loadSource response.text() error",t.toString(),t),r(t)}))}))[a(240)]((t=>{const e=a;this.player[e(234)](this[e(269)],"loadSource getWebRtcRemoteSdp response error",t[e(202)](),t),r(t)}))}))[n(240)]((t=>{const e=n;this[e(235)][e(234)](this[e(269)],e(257),t[e(202)](),t),r(t)}))}))}}const $_=tC;function tC(t,e){const s=eC();return(tC=function(t,e){return s[t-=257]})(t,e)}function eC(){const t=["createOffer","setLocalDescription","loadSource","878592tfhcus","loadSource getWebRtcRemoteSdp response error","1780ieHwqu","17901qWIuQz","getWebRtcRemoteSdp response and code is ","54QQGqsG","debugLog","108235QFjBMP","then","sdp","code","destroy","TAG_NAME","getWebRtcRemoteSdp loadSource","4wPRCrb","player","sdp is null","init","catch","8ZhGSoH","5034hkYVqF","response json code ","toString","275948sSOWlS","msg","answer","2019199ZHnBwY","WebrtcForZLMDecoder","debugError","489444UfmrnE"];return(eC=function(){return t})()}!function(t,e){const s=tC,i=t();for(;;)try{if(200676===-parseInt(s(285))/1+-parseInt(s(288))/2+-parseInt(s(261))/3*(-parseInt(s(279))/4)+-parseInt(s(272))/5*(-parseInt(s(270))/6)+-parseInt(s(258))/7*(parseInt(s(284))/8)+-parseInt(s(268))/9*(-parseInt(s(267))/10)+-parseInt(s(265))/11)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(eC);class sC extends x_{constructor(t){const e=tC;super(t),this[e(277)]=e(259),this[e(280)][e(271)](this[e(277)],e(282))}[$_(276)](){const t=$_;super[t(276)](),this[t(280)].debugLog(this[t(277)],t(276))}[$_(264)](t){return new Promise(((e,s)=>{const i=tC,r=this.rtcPeerConnection;r[i(262)]().then((n=>{const o=i;r[o(263)](n),this[o(280)][o(271)](this.TAG_NAME,o(278),t),function(t,e){const s=O_;return il({url:t,type:"POST",data:e,contentType:s(272),processData:!1,dataType:s(296)})}(t,n[o(274)])[o(273)]((t=>{const i=o;this[i(280)].debugLog(this.TAG_NAME,i(269)+t[i(275)]);const n=t;if(n&&0!==n.code)return this[i(280)][i(260)](this[i(277)],i(286)+n[i(275)]),s(n[i(289)]);n&&n[i(274)]?r.setRemoteDescription(new RTCSessionDescription({type:i(257),sdp:n[i(274)]}))[i(273)]((()=>{e()})).catch((t=>{const e=i;this[e(280)][e(260)](this[e(277)],"loadSource setRemoteDescription error",t[e(287)](),t),s(t)})):(this[i(280)][i(260)](this[i(277)],"response sdp is null"),s(i(281)))}))[o(283)]((t=>{const e=o;this[e(280)].debugError(this[e(277)],e(266),t[e(287)](),t),s(t)}))})).catch((t=>{const e=i;this[e(280)].debugError(this[e(277)],"loadSource rtcPeerConnection.createOffer() error",t[e(287)](),t),s(t)}))}))}}const iC=nC;function rC(){const t=["readyState","20pZkkiT","data","start","audio","$videoElement","TAG_NAME","774ZrWXRY","219NPdFEV","onPlayEvent and playing - > waiting","playing","canplay","video","isSupport","emitError","errorCode"," and message: ","event","AliyunRtc is not defined","8138550ufTbbI","getVideoBufferRangeList","isVideoPlaying","bytesReceivedPerSecond","push","onPlayEvent and waiting -> playing","emit","aliyunRtcRemoteStream","end","subscribe","aliyunRtcError","25DOHdEO","loadSource","debugError","off","3479847bAWcIz","listenEvents","then","floor","destroy","WAITING","unsubscribe","kBps","catch","1108916EYzqjH","1170630aBRlhu","init","updateStats","message","aliyunRtc","PLAYING","AliRTS","debugLog","media","onError and code is ","paused","createClient","256aQPoGb","playbackRate","getVideoCurrentTime","vbps","MEDIA","AliyunRtc","24325774SQsKeo","getVideoBufferTimeRange","toFixed","203598XIccrb","player","play","onPlayEvent and canplay","length"];return(rC=function(){return t})()}function nC(t,e){const s=rC();return(nC=function(t,e){return s[t-=143]})(t,e)}!function(t,e){const s=nC,i=t();for(;;)try{if(739608===parseInt(s(164))/1+parseInt(s(197))/2*(parseInt(s(198))/3)+-parseInt(s(163))/4*(-parseInt(s(150))/5)+parseInt(s(209))/6+parseInt(s(154))/7+parseInt(s(176))/8*(parseInt(s(185))/9)+-parseInt(s(191))/10*(parseInt(s(182))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(rC);class oC extends Bi{constructor(t){const e=nC;if(super(),this.TAG_NAME=e(181),this[e(186)]=t,!window[e(170)])throw new Error(e(208));this.aliyunRtc=window[e(170)][e(175)](),this.aliyunRtcRemoteStream=null,this[e(195)]=this.player[e(202)][e(195)],this.listenEvents(),this[e(186)][e(171)](this[e(196)],e(165))}[iC(158)](){const t=iC;this[t(168)]&&(this[t(146)]&&(this[t(146)]=null),this[t(168)][t(160)](),this[t(168)]=null),this.$videoElement=null,this[t(153)](),this[t(186)].debugLog(this[t(196)],t(158))}[iC(155)](){const t=iC;this[t(168)].on("onError",(e=>{const s=t;this[s(186)][s(171)](this[s(196)],"onError and code is "+e.errorCode+" and message: "+e[s(167)]),10400!==e[s(205)]&&(this[s(186)][s(152)](this.TAG_NAME,s(173)+e.errorCode+s(206)+e[s(167)]),this[s(186)][s(204)](U[s(149)],e))})),this[t(168)].on("reconnect",(e=>{const s=t;this.player[s(171)](this[s(196)],"reconnect",e)}));const e={CANPLAY:t(201),WAITING:"waiting",PLAYING:t(200),MEDIA:t(172)};this[t(168)].on("onPlayEvent",(s=>{const i=t;if(s[i(207)]===e.CANPLAY)this[i(186)][i(171)](this[i(196)],i(188));else if(s[i(207)]===e[i(159)])this.player[i(171)](this[i(196)],i(199));else if(s[i(207)]===e[i(169)])this[i(186)][i(171)](this[i(196)],i(144));else if(s[i(207)]===e[i(180)]){const t=s[i(192)];let e={},r=0;if(t[i(194)]){const s=Math[i(157)](t[i(194)][i(212)]);r+=s,e.abps=s}if(t.video){const s=Math[i(157)](t[i(202)].bytesReceivedPerSecond);r+=s,e[i(179)]=s}this.player[i(166)](e),this[i(186)][i(145)](M[i(161)],(r/1024)[i(184)](2))}}))}[iC(151)](t){return new Promise(((e,s)=>{const i=nC;this[i(168)][i(203)]({isReceiveVideo:!0})[i(156)]((()=>{const r=i;this[r(168)][r(148)](t,{})[r(156)]((t=>{const s=r;this[s(146)]=t,t[s(187)](this.$videoElement),e()})).catch((t=>{const e=r;this.player.debugError(this[e(196)],"loadSource and subscribe is not success: ",t[e(167)]),s(t[e(167)])}))}))[i(162)]((t=>{const e=i;this[e(186)][e(152)](this[e(196)],"loadSource and is not support: ",t[e(167)]),s(t.message)}))}))}[iC(178)](){let t=0;return this[iC(195)]&&(t=this.$videoElement.currentTime),t}[iC(211)](){const t=iC;return this[t(195)]&&ci(this.$videoElement[t(174)])&&ci(this.$videoElement.ended)&&0!==this[t(195)][t(177)]&&0!==this[t(195)][t(190)]}[iC(183)](){const t=iC,e=this.$videoElement;let s=null;if(e){const i=e.buffered,r=i[t(189)]?i[t(193)](0):0,n=i[t(189)]?i.end(i.length-1):0;s={start:r,end:n,diff:n-r}}return s}[iC(210)](){const t=iC,e=this[t(195)];let s=[];if(e){const i=e.buffered;for(let e=0;e<i[t(189)];e++){let r=i[t(193)](e),n=i[t(147)](e);s[t(143)]({start:r,end:n})}}return s}}const aC=hC;function hC(t,e){const s=cC();return(hC=function(t,e){return s[t-=231]})(t,e)}function cC(){const t=["then","source","observe cpu fail","player","11213172HHYZWH","35791vUsvod","init","observer","195632MsHJUB","find","6QBBvRe","disconnect","getCurrentCpuState","observeCpuSuccess","nominal","PressureObserverCpu","observe cpu success","cpu","_init","debugLog","4052532aRyZHi","destroy","currentLevel","serious","not support PressureObserver","4078746bxgqBU","emit","state","1825632XeAKdi","latestCpuInfo","catch","2404619NSIEry","TAG_NAME","60itHFnO","fair"];return(cC=function(){return t})()}!function(t,e){const s=hC,i=t();for(;;)try{if(704242===parseInt(s(235))/1*(parseInt(s(240))/2)+parseInt(s(255))/3+parseInt(s(238))/4*(parseInt(s(263))/5)+-parseInt(s(250))/6+parseInt(s(261))/7+parseInt(s(258))/8+-parseInt(s(234))/9)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(cC);class lC{constructor(t){const e=hC;this.player=t,this[e(262)]=e(245),this[e(237)]=null,this.latestCpuInfo=null,this[e(252)]=-1,this[e(243)]=!1,this[e(248)](),this[e(233)][e(249)](this.TAG_NAME,e(236))}[aC(251)](){const t=aC;this[t(237)]&&(this[t(243)]&&this[t(237)][t(241)](),this[t(237)]=null),this[t(259)]=null,this[t(252)]=-1,this[t(233)][t(249)](this[t(262)],t(251))}[aC(242)](){return this[aC(252)]}_init(){const t=aC;ci(mi())?this[t(233)][t(249)](this[t(262)],t(254)):(this[t(237)]=new PressureObserver((e=>{const s=t,i=(e||[])[s(239)]((t=>{const e=s;return t[e(231)]===e(247)}));if(i){switch(this[s(259)]=i,i[s(257)]){case s(244):this[s(252)]=0;break;case s(264):this[s(252)]=1;break;case s(253):this[s(252)]=2;break;case"critical":this[s(252)]=3;break;default:this[s(252)]=-1}this[s(233)][s(256)](M.pressureObserverCpu,this[s(252)])}})),this.observer&&this.observer.observe(t(247),{sampleInterval:1e3})[t(265)]((()=>{const e=t;this.observeCpuSuccess=!0,this[e(233)][e(249)](this.TAG_NAME,e(246))}))[t(260)]((()=>{const e=t;this[e(243)]=!1,this[e(233)][e(249)](this[e(262)],e(232))})))}}function dC(t,e){const s=pC();return(dC=function(t,e){return s[t-=377]})(t,e)}const uC=dC;function pC(){const t=["resumeAnimation","4xQhkEk","DynamicWatermark","208974Oebbqa","shadowRootDynamicDom","ghostConfig","isGhost","destroy","isStopAnimation","66710wyPYOR","12049362vYutgE","player","%20%E4%BD%93%E9%AA%8C","content","pauseAnimation","waterMarkWillRemove","rafID","startAnimation","width","stopAnimation","min","7keGGxs","isDynamic","fontSize","isPauseAnimation","12EpHNCb","opacity","126mjiUrz","1317590CYLuyd","1458633pKuocA","height","_addDom","update","9oCiIMU","shadowRootInnerDom","10108NZdTdG","GhostWatermark","TAG_NAME","random","speed","appendChild","startAndResize","187rilgaq","color","waterMarkWillAdd","black","contains","int","length","off","style","top","start","left","4035728CoDwzw","options"];return(pC=function(){return t})()}!function(t,e){const s=dC,i=t();for(;;)try{if(387097===parseInt(s(426))/1*(-parseInt(s(378))/2)+parseInt(s(428))/3*(parseInt(s(400))/4)+parseInt(s(427))/5+parseInt(s(402))/6*(-parseInt(s(420))/7)+parseInt(s(397))/8*(-parseInt(s(432))/9)+parseInt(s(408))/10*(-parseInt(s(385))/11)+-parseInt(s(424))/12*(-parseInt(s(409))/13))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(pC);class fC extends Wr{constructor(t){const e=dC;let s=arguments[e(391)]>1&&void 0!==arguments[1]?arguments[1]:{};super(t),this[e(380)]=e(401),this[e(423)]=!1,this[e(407)]=!1,this.rafID=null,this[e(398)]=s,this[e(382)]=s[e(382)]||.2,this[e(421)]=!0,this.shadowRootDynamicDom=null,this[e(405)]=!0===s[e(405)],this[e(405)]&&(this[e(380)]=e(379)),this[e(404)]={on:s.on||5,off:s.off||5},this[e(414)]=!1,this[e(387)]=!1,this.player.once(M[e(395)],this.start.bind(this)),this[e(410)].debugLog(this.TAG_NAME,e(390))}[uC(406)](){const t=uC;super[t(406)](),this.shadowRootDynamicDom=null,this.stopAnimation(),this[t(415)]&&(cancelAnimationFrame(this[t(415)]),this.rafID=null)}[uC(395)](){const t=uC;let e;Si()?e=decodeURIComponent(b+t(411)):vi()&&(e=this[t(398)][t(412)]);let s=this[t(410)].getVideoInfo();!s&&(s={width:200,height:200}),e&&(this[t(431)]({text:{content:e,fontSize:this[t(398)][t(422)]||18,color:this[t(398)][t(386)]||t(388)},left:s.width*Math[t(381)](),top:s[t(429)]*Math[t(381)](),opacity:this.options[t(425)]||.15}),this[t(416)]())}[uC(384)](){this[uC(395)](),this.resize()}[uC(416)](){const t=uC;if(!this.rafID){let e=1,s=1,i=Math[t(381)](),r={width:0,height:0};const n=()=>{const o=t;try{if(ci(this.isPauseAnimation)&&this[o(403)]&&this[o(377)]){const t=this[o(377)],a=this[o(403)],h=t.getBoundingClientRect(),c=a.getBoundingClientRect();if(c[o(417)]&&c[o(429)]&&(r[o(417)]=c[o(417)],r[o(429)]=c[o(429)]),!this[o(377)][o(389)](this[o(403)]))return this[o(405)]?ci(this[o(387)])&&(this[o(387)]=!0,setTimeout((()=>{this[o(430)](h,r),this.waterMarkWillAdd=!1}),1e3*this[o(404)][o(392)])):this[o(430)](h,r),void(0!==this.speed&&requestAnimationFrame(n));const l=Math.min(1,0===this.speed?0:this[o(382)]?this[o(382)]:.2);let d=c[o(396)]-h.left,u=c[o(394)]-h[o(394)];d+=l*s*i,u+=l*e*(1-i),d+r[o(417)]>h.width?(s=-1,i=Math[o(381)]()):d<0&&(s=1,i=Math[o(381)]()),u+r[o(429)]>h[o(429)]?(e=-1,i=Math[o(381)]()):u<0&&(e=1,i=Math[o(381)]()),d=Math[o(419)](h.width-r[o(417)],d),u=Math[o(419)](h[o(429)]-r[o(429)],u);const p=d/h[o(417)]*100,f=u/h[o(429)]*100;this[o(403)][o(393)].left=p+"%",this[o(403)][o(393)][o(394)]=f+"%",ci(this[o(414)])&&this[o(405)]&&(this[o(414)]=!0,setTimeout((()=>{const t=o;this._removeDom(),this[t(414)]=!1}),1e3*this[o(404)].on))}}catch(t){}if(this.isStopAnimation)return this.isStopAnimation=!1,cancelAnimationFrame(this.rafID),void(this[o(415)]=null);0!==this[o(382)]&&requestAnimationFrame(n)};this[t(415)]=requestAnimationFrame(n)}}[uC(430)](t,e){const s=uC;if(this[s(377)]&&this[s(403)]){this[s(377)][s(383)](this.shadowRootDynamicDom);let i=t[s(417)]*Math.random(),r=t[s(429)]*Math[s(381)]();i=Math[s(419)](t.width-2*e[s(417)],i),r=Math[s(419)](t[s(429)]-2*e[s(429)],r),this[s(403)][s(393)][s(396)]=i+"px",this[s(403)][s(393)][s(394)]=r+"px"}}[uC(399)](){this[uC(423)]=!1}[uC(413)](){this[uC(423)]=!0}[uC(418)](){this[uC(407)]=!0}}const mC=AC;function gC(){const t=["style","$element","classList","mousedown","drawingRectLineWidth","jb-pro-drawing-rect-box-canvas-container","497GuGEDr","getControlHeight","height","offsetLeft","_resetPoint","_removeRectCanvasContainer","getRenderType","appendChild","split","drawingRect","37180QkAGQX","drawingRectEndRemoveDom","destroy","getShowVideoRect","373248HkBGko","offsetY","debugLog","default","getVideoInfo","$container","handleMouseDown","createElement","_opt","maxY","emit","1570VxVtSL","maxX","px solid ","pageX","floor","5185251htAaja","minX","endPoint","forEach","getDrawingMinLeftTop",".jb-pro-drawing-rect-box","_addRectCanvasContainer","isFullResize","abs","bindEvents","24GAlrSv","preventDefault","minY","2124844zFPgPR","startPoint","pageY","$rectBox","startPagePoint","64155shSjqp","add","jb-pro-drawing-rect-box","offsetX","drawingRectangle","min","_removeRectBox","querySelector","stopPropagation","12114vYSfhc","push","max","100%","removeChild","isDragging","1114xuaXES","player","mousemove","absolute","TAG_NAME","isResize","bind","aspectRatio","position","handleMouseUp","2530VmZXFw","offsetTop","top","_unbindEvents","handleMouseMove","zIndex","_handleDrawingRect","width","_bindEvents","map"];return(gC=function(){return t})()}function AC(t,e){const s=gC();return(AC=function(t,e){return s[t-=106]})(t,e)}!function(t,e){const s=AC,i=t();for(;;)try{if(561664===-parseInt(s(116))/1*(-parseInt(s(179))/2)+-parseInt(s(130))/3+-parseInt(s(159))/4+-parseInt(s(141))/5*(-parseInt(s(173))/6)+parseInt(s(164))/7*(parseInt(s(156))/8)+-parseInt(s(146))/9+parseInt(s(189))/10*(parseInt(s(126))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(gC);class yC extends Bi{constructor(t){const e=AC;super(),this[e(180)]=t,this[e(183)]="DrawRectangle",this.drawingRectangle=!1,this[e(178)]=!1,this.bindEvents=[],this[e(162)]=null,this[e(120)](),this[e(111)]=null,this[e(180)].on(M[e(125)],this[e(106)][e(185)](this)),this.player[e(132)](this[e(183)],"init")}[mC(128)](){const t=mC;this[t(192)](),this.drawingRectangle=!1,this[t(178)]=!1,this[t(170)](),this.off(),this[t(180)][t(132)](this[t(183)],"destroy")}[mC(120)](){const t=mC;this[t(163)]={x:0,y:0},this[t(160)]={x:0,y:0},this[t(148)]={x:0,y:0}}_handleDrawingRect(t){const e=mC;this[e(168)]=t,t?this[e(108)]():(this[e(192)](),this[e(170)]())}[mC(108)](){const t=mC,{events:{proxy:e}}=this.player,s=e(this.player.$container,t(181),this[t(193)][t(185)](this)),i=e(this[t(180)][t(135)],t(113),this[t(136)][t(185)](this)),r=e(window,"mouseup",this[t(188)].bind(this));this._addRectCanvasContainer(),this[t(155)][t(174)](s,i,r)}_unbindEvents(){const t=mC;this[t(121)](),this[t(155)][t(149)]((t=>{t&&t()})),this[t(155)]=[]}[mC(152)](){const t=mC;this.player[t(122)]()===f.canvas&&(this[t(111)]=document[t(137)]("div"),this[t(111)][t(110)][t(187)]=t(182),this[t(111)][t(112)][t(165)](t(115)),this.$element[t(110)].width="100%",this[t(111)][t(110)][t(118)]=t(176),this.$element.style[t(194)]=1,this[t(180)][t(135)][t(123)](this[t(111)]))}[mC(121)](){const t=mC;if(this.$element){if(!Ln(this[t(111)])){const e=this[t(180)][t(135)][t(171)](".jb-pro-drawing-rect-box-canvas-container");e&&this.player[t(135)]&&this[t(180)][t(135)][t(177)](e)}this[t(111)]=null}}_removeRectBox(){const t=mC;if(this[t(162)]){if(!Ln(this[t(162)])){const e=this[t(180)][t(135)].querySelector(t(151));e&&this[t(180)][t(135)]&&this[t(180)][t(135)][t(177)](e)}this[t(162)]=null}}[mC(136)](t){const e=mC;if(t[e(172)](),!this[e(168)])return;this._removeRectBox();const s=t[e(167)],i=t[e(131)];this[e(160)].x=s,this[e(160)].y=i,this[e(163)].x=t[e(144)]-this[e(180)][e(135)][e(119)],this[e(163)].y=t[e(161)]-this[e(180)][e(135)][e(190)],this.$rectBox=document[e(137)]("div"),this.$rectBox[e(112)][e(165)](e(166)),this[e(162)][e(110)].border=this[e(180)][e(138)].drawingRectLineWidth+e(143)+this[e(180)][e(138)].drawingRectColor,this[e(162)][e(110)].position="absolute",this[e(162)][e(110)].left=this[e(160)].x+"px",this[e(162)][e(110)][e(191)]=this[e(160)].y+"px",this[e(180)][e(135)][e(123)](this[e(162)]),this.isDragging=!0}[mC(193)](t){const e=mC;if(t[e(172)](),!this[e(178)])return;if(!this[e(168)])return;if(!this[e(162)])return;const s=this[e(180)][e(135)],i=this[e(180)][e(117)](),r=t[e(144)]-s.offsetLeft,n=t[e(161)]-s[e(190)];if(r<this[e(163)].x||n<this.startPagePoint.y)return;this[e(148)].x=r,this[e(148)].y=n;let o=Math[e(154)](this[e(148)].x-this.startPagePoint.x),a=Math[e(154)](this[e(148)].y-this[e(163)].y),h=this.player[e(107)]-this[e(160)].x-1-2*this[e(180)][e(138)][e(114)],c=this[e(180)][e(118)]-this[e(160)].y-i-1-2*this[e(180)]._opt.drawingRectLineWidth;o>h&&(o=h,this[e(148)].x=this[e(160)].x+o),a>c&&(a=c,this[e(148)].y=this.startPoint.y+a),this.$rectBox[e(110)][e(107)]=o+"px",this[e(162)][e(110)].height=a+"px"}[mC(188)](t){const e=mC;if(t[e(172)](),this[e(168)]&&this[e(178)]){t[e(157)](),this[e(178)]=!1;const s=this.endPoint.x-this[e(160)].x>0,i=this[e(148)].y-this[e(160)].y>0,r=!s||!i;if((this[e(180)][e(138)][e(127)]||r)&&this[e(170)](),r)return;const n={startPoint:this[e(160)],endPoint:this.endPoint,width:Math.abs(this[e(148)].x-this[e(160)].x),height:Math[e(154)](this[e(148)].y-this[e(160)].y)},o={},a=this[e(180)].getVideoInfo();if(a[e(107)]&&a[e(118)])if(this[e(180)][e(138)][e(186)]===e(133)){const t=this[e(180)].getShowVideoRect();let s=t[e(107)],i=t.height,r=a[e(107)],h=a[e(118)],c=s/r,l=i/h;const d=this.player[e(138)][e(184)],u=this.player[e(138)][e(153)];let p=0,f=0;if(d&&(c>l?(c=l,p=Math[e(145)]((s-r*c)/2)):(l=c,f=Math[e(145)]((i-h*l)/2))),u){let t=c>l?c:l;c=t,l=t}const m=h,g=r;o[e(160)]={x:Math[e(175)](0,Math.min(Math.floor((n[e(160)].x-p)/c),g)),y:Math[e(175)](0,Math[e(169)](Math[e(145)]((n.startPoint.y-f)/l),m))},o[e(148)]={x:Math[e(175)](0,Math[e(169)](Math.floor((n[e(148)].x-p)/c),g)),y:Math[e(175)](0,Math[e(169)](Math.floor((n[e(148)].y-f)/l),m))},o.width=o[e(148)].x-o[e(160)].x,o[e(118)]=o[e(148)].y-o[e(160)].y}else{const t=this[e(180)][e(138)].aspectRatio[e(124)](":")[e(109)](Number),s=this[e(180)][e(129)]();let i=s[e(107)],r=s[e(118)];const h=a[e(107)]/a[e(118)],c=t[0]/t[1];let l=0,d=0,u=0,p=0,f=a[e(107)],m=a[e(118)];if(h>c){l=i*(c*a[e(118)]/a[e(107)]),d=r,u=(i-l)/2}else{const t=a[e(107)]/c/a[e(118)];l=i,d=r*t,p=(r-d)/2}o[e(160)]={x:Math.max(0,Math[e(169)](Math[e(145)]((n.startPoint.x-u)/(l/a[e(107)])),f)),y:Math[e(175)](0,Math[e(169)](Math[e(145)]((n[e(160)].y-p)/(d/a[e(118)])),m))},o[e(148)]={x:Math.max(0,Math[e(169)](Math.floor((n[e(148)].x-u)/(l/a[e(107)])),f)),y:Math[e(175)](0,Math[e(169)](Math[e(145)]((n[e(148)].y-p)/(d/a.height)),m))},o[e(107)]=o.endPoint.x-o.startPoint.x,o.height=o[e(148)].y-o[e(160)].y}this[e(180)][e(140)](M.drawingRectInfo,{container:n,video:o}),this[e(120)]()}}[mC(150)](){const t=mC,e=this.player.getShowVideoRect(),s=this[t(180)][t(134)]();let i=e[t(107)],r=e[t(118)],n={minX:0,minY:0,maxX:i,maxY:r};if(this[t(180)]._opt[t(186)]===t(133)){const e=this[t(180)][t(138)].isResize;let o=s[t(107)],a=s[t(118)],h=i/o,c=r/a;e&&(h>c?(n[t(147)]=Math[t(145)]((i-o*h)/2),n[t(142)]=Math.floor(n[t(147)]+o*h)):(n[t(158)]=Math[t(145)]((r-a*c)/2),n[t(139)]=Math[t(145)](n[t(158)]+a*c)))}else{const e=this[t(180)]._opt[t(186)][t(124)](":")[t(109)](Number),o=s[t(107)]/s[t(118)],a=e[0]/e[1];let h=0,c=0;if(o>a){h=i*(a*s.height/s.width),n.minX=Math[t(145)]((i-h)/2),n.maxX=Math[t(145)](n.minX+h)}else{c=r*(s[t(107)]/a/s[t(118)]),n[t(158)]=(r-c)/2,n.minY=Math[t(145)](n.minX+c)}}return n}}const bC=vC;function vC(t,e){const s=SC();return(vC=function(t,e){return s[t-=277]})(t,e)}function SC(){const t=["setPlayingTimestamp","_seekingTimestamp","log","classList","setStartTime","resume","pause","setRate","setPlayingTimestamp()","checkIsEnded","jessibuca-container-play-vod","rate","isEnded()","playVodFps","start","30gbEiwo","_fps","audio","clearUpAllSourceBuffer","length","isPlaying","_renderFps","269478zfDXEB","_totalDuration","off","updateStats and videoCurrentTimeDiff is 0 and\n videoCurrentTime is ","712cNhLVM","_startTime"," > this.totalDuration ","timestamp ","_playingTimestamp","updateDuration() success and startTime is ","playVodStats","totalDuration","8MZEQIa","isEnded","videoCurrentTimeDiff","_opt","debugWarn","_rate","player","_playbackTs","482784AOAJAE","isPlayVodUseMSE","updateStats","playVodPause","videoCurrentTime","video","TAG_NAME","remove","\n and next update video currentTime","jb-pro-container-play-vod","removeSeekingTimestamp","$container","isRateMoreThanMaxRate","playingTimestamp","_startfpsTime","add","setCurrentTime","time","PlayVod","lessThanCurrentTimeTimeout","_isEndedOnce","seek()","stringify","destroy","init","emit","482QhsFWI","playVodForwardMaxRateDecodeIFrame","_isEnded","playVodSeek","seek","isSeekingLessThanCurrentTime","startCheckStatsInterval","uiUsePlaybackPause","round","debug","abs","_prevTs","playVodEndedAndReplay","_isLessThanCurrentTime","isSeeking","mseDecoder","_removeSeekingTimestamp","clearStatsInterval","_listen","451713xiSzFd","stats","startTime","1695474wKPkWw","_startFpsTimestamp","seekingTimestamp","fps","10eWPaWI","getCurrentTime","6209731yaqEdi","_checkStatsInterval","1846411wFDaiU"];return(SC=function(){return t})()}!function(t,e){const s=vC,i=t();for(;;)try{if(180532===parseInt(s(373))/1*(parseInt(s(316))/2)+parseInt(s(335))/3*(-parseInt(s(282))/4)+parseInt(s(362))/5*(-parseInt(s(369))/6)+parseInt(s(346))/7+-parseInt(s(290))/8+-parseInt(s(338))/9*(parseInt(s(342))/10)+parseInt(s(344))/11)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(SC);class wC extends Bi{constructor(t,e){const s=vC;super(),this[s(288)]=t,this.TAG_NAME=s(308),this[s(288)][s(301)][s(350)][s(305)](s(299)),this[s(374)]=null,this._playingTimestamp=null,this[s(363)]=parseInt(e[s(341)],10)||t[s(285)][s(360)],this[s(287)]=1,this._startfpsTime=null,this[s(339)]=null,this[s(345)]=null,this[s(289)]=0,this[s(368)]=0,this[s(348)]=null,this[s(329)]=!1,this[s(318)]=!1,this._isEndedOnce=!1,this[s(309)]=null,this[s(334)](),this._totalDuration=0;let i=e[s(337)]||0;this[s(351)](i),this.player.on(M[s(293)],(t=>{const e=s;t?this.pause():this[e(352)]()}));const r={fps:this[s(363)],uiUsePlaybackPause:e[s(323)],showControl:e.showControl};t.debug[s(349)](this[s(296)],s(314),JSON[s(312)](r))}[bC(313)](){const t=bC;this.clearLessThanCurrentTimeTimeout(),this._startTime=null,this[t(278)]=null,this[t(370)]=0,this[t(363)]=null,this[t(287)]=1,this._startfpsTime=null,this[t(339)]=null,this._renderFps=0,this[t(289)]=0,this[t(327)]=0,this[t(310)]=!1,this[t(318)]=!1,this.clearStatsInterval(),this[t(288)][t(301)]&&this[t(288)][t(301)].classList[t(297)](t(357)),this[t(371)](),this.player[t(325)].log(this[t(296)],t(313))}[bC(334)](){const t=bC;this.player.on(M[t(336)],(e=>{const s=t;if(this.player[s(293)])return;let i=e.ts;this[s(288)][s(291)]()&&(this[s(288)][s(367)]()&&0===e[s(284)]&&this.player[s(286)](this.TAG_NAME,s(372)+e[s(294)]+s(298)),i=1e3*e[s(294)]),this[s(347)](i);const r=this._prevTs;this[s(327)]=i,this[s(356)](r)}))}[bC(356)](t){const e=bC;let s=this[e(283)]();ci(s)&&this[e(327)],s&&(this._isEnded=!0,this._removeSeekingTimestamp(),this.player[e(315)](M.playVodEnded))}[bC(283)](){const t=bC;let e=!1;if(this[t(318)])return!0;this.player[t(291)]()&&this.player.video&&this[t(288)][t(295)][t(283)]()&&(e=!0);const s=Math[t(326)](this.playingTimestamp-this[t(370)]);return s<700&&(this[t(310)]&&(this[t(288)][t(325)][t(349)](this.TAG_NAME,t(359),"diff playingTimestamp is "+this[t(303)]+" and totalDuration is "+this[t(370)]+" "+s+" < 700"),e=!0),!this[t(310)]&&(this[t(310)]=!0)),e}updateDuration(t){const e=bC;this[e(370)]=1e3*t,this[e(337)]&&(this[e(288)].debugLog(this[e(296)],e(279)+this[e(337)]+" and listen start event to seek"),this[e(288)].once(M[e(361)],(()=>{const t=e;this.seek({time:this[t(337)]})})))}[bC(353)](){this[bC(333)]()}[bC(352)](){this[bC(322)]()}[bC(292)](){const t=bC;let e=arguments[t(366)]>0&&void 0!==arguments[0]?arguments[0]:{};!this._startFpsTimestamp&&(this[t(339)]=je()),vs(e.ts)&&(this[t(288)][t(292)]({fps:!0,ts:e.ts}),this[t(289)]=e.ts,!this[t(304)]&&(this[t(304)]=e.ts),this._renderFps+=1);const s=je(),i=s-this[t(339)];if(i<1e3)return;let r=null;this[t(304)]&&(r=this[t(289)]-this[t(304)]),this[t(288)][t(315)](M[t(280)],{fps:this[t(368)],rate:this.rate,start:this[t(304)],end:this._playbackTs,timestamp:i,dataTimestamp:r,audioBufferSize:this[t(288)][t(364)]?this[t(288)][t(364)].bufferSize:0,videoBufferSize:this[t(288)][t(295)]?this.player[t(295)].bufferSize:0,ts:this[t(289)]}),this[t(368)]=0,this[t(304)]=this[t(289)],this._startFpsTimestamp=s}startCheckStatsInterval(){const t=bC;this[t(333)](),this[t(345)]=setInterval((()=>{this[t(292)]()}),1e3)}[bC(333)](){const t=bC;this[t(345)]&&(clearInterval(this[t(345)]),this._checkStatsInterval=null)}get[bC(281)](){const t=bC;return Math[t(324)](this[t(370)]/1e3)}get[bC(337)](){return this[bC(374)]||0}setStartTime(t){this._startTime=t,this._playingTimestamp=t}[bC(354)](t){const e=bC;this._rate=t,this[e(288)][e(315)](M.playVodRateChange,t)}get[bC(341)](){return this[bC(363)]}get rate(){return this[bC(287)]}[bC(347)](t){const e=bC;let s;s=Math.round(t/1e3),s>this[e(281)]&&(this[e(288)][e(325)].log(this[e(296)],e(355),e(277)+s+e(375)+this.totalDuration),s=this[e(281)]),this[e(278)]=s,this[e(288)][e(315)](M.playVodTime,s),this[e(327)]&&this[e(327)]}get playingTimestamp(){return 1e3*this._playingTimestamp}[bC(343)](){return this.playingTimestamp/1e3}get[bC(340)](){const t=bC;return null===this[t(348)]?null:1e3*this[t(348)]}isSeeking(){return null!==this[bC(348)]}[bC(321)](){const t=bC;return this[t(330)]()&&this[t(329)]}[bC(332)](){const t=bC;this[t(348)]=null,this[t(329)]=!1}[bC(300)](){const t=bC,e=this[t(348)];this[t(332)](),this[t(288)][t(315)](M.playVodSeekEnd,e)}[bC(320)](t){const e=bC;let s=t[e(307)];if(s>this[e(281)]&&(s=parseInt(this.totalDuration,10)),s<0&&(s=0),this[e(288)][e(325)][e(349)](this.TAG_NAME,e(311),t[e(307)],s),this.isEnded())this[e(288)].emit(M[e(328)],s);else if(this[e(348)]=s,this.player[e(315)](M[e(319)],s),this[e(288)].isPlayVodUseMSE()){const t=this[e(288)][e(295)][e(343)]();this[e(329)]=s<t,this._isLessThanCurrentTime?(this[e(288)][e(331)][e(365)](),this.clearLessThanCurrentTimeTimeout(),this.lessThanCurrentTimeTimeout=setTimeout((()=>{const t=e;this.player.video[t(306)](s)}),100)):this[e(288)].video[e(306)](s)}}[bC(302)](){const t=bC;return this[t(358)]>=this[t(288)][t(285)][t(317)]}clearLessThanCurrentTimeTimeout(){const t=bC;this.lessThanCurrentTimeTimeout&&(clearTimeout(this[t(309)]),this[t(309)]=null)}}var EC=IC;function IC(t,e){var s=TC();return(IC=function(t,e){return s[t-=263]})(t,e)}function TC(){var t=["1783386nnDTJr","光圈-","2359htgtKV","聚焦-","透雾开","雨刷开","1824BhHoCP","巡航关","电子放大","30898BAgCcQ","缩放+","314PLjgEK","2468795BwDmYz","透雾关","2120517TNoNqj","缩放-","1380120vdNoDi","雨刷关","90dJDXCW","光圈+","1075599MlfjrN","聚焦+","巡航开"];return(TC=function(){return t})()}!function(t,e){for(var s=IC,i=t();;)try{if(750791===parseInt(s(280))/1*(parseInt(s(266))/2)+parseInt(s(275))/3+parseInt(s(271))/4+parseInt(s(267))/5+parseInt(s(278))/6+-parseInt(s(264))/7*(-parseInt(s(284))/8)+parseInt(s(269))/9*(-parseInt(s(273))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(TC);var kC={expandPlus:EC(265),expandMinus:EC(270),apertureFar:EC(274),apertureNear:EC(279),focusFar:EC(276),focusNear:EC(281),cruisePlay:EC(277),cruisePause:EC(285),fogOpen:EC(282),fogClose:EC(268),wiperOpen:EC(283),wiperClose:EC(272),zoomTips:EC(263),...zt};const _C=RC;function CC(){const t=["hasInit","resetStartBpsTime","isPlayVodNotUseMSE","webTransport","checkHeartTimeout$2","getPlayingTimestamp","flvDemuxBufferSizeTooLargeReplay","getCpuLevel","showMessageConfig","_pauseInner()","useWebGPU","toggleBar","drawRectangle","isHls","isMSEPlaybackRateChangePause","hasVideo","getRecordingType","videoCurrentTimeDiffIsNotNormal","_tempTsList","isPlayFailedAndPaused","getControlExtendBtnActive","isPlayVod","checkVideoSmooth","mediaSourceAudioNoDataTimeoutReplay","canvas","delayTimeout","max","isUseHls265","toggleControlHtml","doDestroy","wcsDecodeAudio is true, but not support so set wcsDecodeAudio false","useMSE is true and forceNoOffscreen is false then forceNoOffscreen set false->true","isNakedFlow","1932JsDTrP","recordType","full","_tempStreamList","default","streamStart","websocket","_allStatsData","wcs","isMpeg4 is true, so set _opt.useWasm true and others params false","use WCS","isAudioPlaybackRateSpeed","getWebrtcVideo","dynamicWatermark","contextmenuBtns","setExtendHtml","_i18n","startCheckStatsInterval","handlePlayToRenderTimes","_checkVisibleHiddenTimeout","i18n","multiIndex","autoUseSystemFullScreen","wcsDecodeAudio","_historyFpsList","pauseAndNextPlayUseLastFrameShow","getDecodeDiffTimes","getPlaybackRate","_playVodPause","ptz","playback","fullscreen","mp4","207jFqbbD","loaded","fullScreenByStart","downloadNakedFlowFile","recorder is null","and update _opt.hasVideo","pauseForControl() and loadingBackground width is ","init","decodeStart","isDestroyed","addContentToCanvas","pageVisibilityHiddenTimeout","_occlusionDetectActive","getStreamType","use simd wasm","clearVisibilityHiddenTimeout","url","getShowVideoRect","getVideoPlaybackQuality","getRecordingByteLength","streamQualityChange","length","isUseFileProtocol","useMSE is true and useWCS is true then useWCS set true->false","getControlHtml","url is empty","isPlaybackCacheBeforeDecodeForFpsRender","recorder is not recording","_playing","click","getDemuxAudioBufferedListLength","hlsDecoder","useObjectDetector","scaleType","debugLog","useWasmDecode","_flvMetaData","audio","useSIMD","JessibucaProOcclusionDetector","addAiContentToCanvas","setRotate","result","_destroy","_isInZoom","mseDecoderUseWorker","getAudioSyncVideoDiff","emitPlaybackPrecisionForNormal","releaseWakeLock","startRecord","57893YJQnPj","sendMessage","$controlHtml","resize","useVideoRender","getRenderCurrentPts","faceDetectActive","quality","ghostWatermarkConfig","streamResponseTimestamp","downloadFmp4File","getFps","useImageDetector","supportHls265","isCacheBeforeDecodeForFpsRender","isUseFpsRender","beforeDestroy","decoderHard","isPlayVodMp4","getRenderElement","isEmitSEI","websocket1006ErrorReplay","isInWebFullscreen","isMpeg4","isPlayer","getHistoryVideoDiffList","checkHlsBufferedDelay","decoder-pro-simd.js","wasmDecodeDelay","checkIsInRender","checkVideoSmooth false because videoCurrentTimeDiff is ","androidMobileFullscreenRotate","_videoTimestamp","pTs","is wcsDecodeAudio true and demuxUseWorker is true then demuxUseWorker set true->false","checkStatsInterval","sendWebsocketMessage","jb-pro-fullscreen-web","isDemuxSetCodecInit","toggleExtendDom","join","showTipsMessage","occlusionDetect","Player options","_destroyed","_checkLoadingTimeout","clearBuffer","togglePerformancePanel","isUseHls265UseMse","_startBpsTime","videoBufferDelay","getExtendDomIsShow","controlSize","reload","424905kRdtGI","autoWasm","checkLoadingTimeout","getPlayVodCurrentTime","isPlaybackUseWASM","mediaSourceAudioInitTimeoutReplay","streamTimestamp","isPlaybackPauseNotClearCacheAndCacheBeforeDecodeAndUseFpsRender","hls","forceNoOffscreen","cancelRecord","video","_startTimestamp","setControlHtml","clearView","useCanvasRender"," and\n current visibility is ","heartTimeout","mseDecodeAudio","setScaleMode","streamQuality","isPlaybackStreamEnd","screen","aiImageDetectActive","updateOption","createElement","webglContextLostErrorReplay","isWebrtcForZLM","toggleControlBar","updateStats","zooming"," , _opt.isH265 is ","set volume error, audio is null","then","_faceDetectActive","once","resetStats","use webrtc for SRS","getBarIsShow","pressureObserverCpu",", supportHevcWCS is ","updateMetaData","keepScreenOn",".mpeg4","\n useWCS is true,\n and supportWCS is ","getVideoBufferTimeRangeList","demuxBufferDelay","remove","emitVideoSei","_playbackPause","getDemuxBufferLength","isWebrtc is true and demuxUseWorker is true then demuxUseWorker set true->false","getStreamFps","_opt","getDemuxVideoBufferedListLength","_audioTimestamp","showControl","debug","isPlayStream","checkLoadingTimeout but player is destroyed","\n and current ts list is ","hasCacheOnGopBuffer","isH265","updateWorkConfig","aiObject","getTotalDuration","getPendingSegmentsLength","resetInit","push","indexOf","decoderHardNotWasm","use wcs video render, but not support so set wcsUseVideoRender false","wcsUseVideoRender","stopRecordAndSave","dfps","use hls","playVod is null","play() this.stream is null and is isDestroyedOrClosed is ","toggleExtendHtml","downloadFlvFile","drawingRect","playForControl() and pauseAndNextPlayUseLastFrameShow is ","_closed","netBuf","streamResponse","playbackConfig","isDemuxDecodeFirstIIframeInit","_canPlayAppleMpegurl","pause","isUseWorkerDemuxAndDecode","mpeg4","7ghrgjx","isSeeking","simdH264DecodeVideoWidthIsTooLargeReplay","useWebFullScreen","isUseMSE","mseTs","use MSE","playVodSeek","events","getControlHeight","play is destroying","use wasm video render play audio, but not support so set wasmPlayAudioUseVideoRender false","isWebrtc","widthOrHeightChangeReplay"," and webFullscreen is ","workerStats","streamBufferByteLength","_lastVolume","getExtendDom","decoderWorkerInit","videoCurrentTimeDiff","decoder-pro-simd-mt.js","getVideoCurrentTime"," and\n history FpsList is ","aliyunRtcDecoder","streamSuccess","decoder-pro-audio.js","isWeChatInAndroid and androidMobileFullscreenRotate is true and set androidMobileFullscreenRotate false","webcodecsDecoder","stats","_isMute","fps","_flvMetaDataFps","container width is 0, please check the container width","decoder-pro-mt.js","useSIMD is true, but not support(isSupportSimd is ","checkSourceBufferDelay","isAudioMute","getType","warn","checkIsFullscreenByInit","player","ghostWatermark","contextmenu","checkLoadingTimeout but loading is ","showBandwidth","webrtc","isMute","demuxUseWorker","wcsUseVideoRender is true, but not support so set wcsUseVideoRender false","getInputByteLength","setVolume","getPlayVodRate"," and window.JessibucaProImageDetector is null","updateDynamicWatermark","playVodRate","$videoElement","playVod","use webrtc for Others","useMSE","isWebrtcNotH265","JessibucaProImageDetector","Player","\n bufferRangeList is ","_stats","use webrtc for ZLM","isAliyunRtc","getCanvasType","isFlvDemux","worker","loadingBackgroundHeight","decoder-pro-hard-not-wasm.js","enableWakeLock","_tempWorkerStats","useFaceDetector","lastVolume","latestAudioTimestamp","zoom","clearStatsInterval","aiOcclusion","isClosed","volume","isWebrtcH265","isStreamTypeNotWorker","isRecordTypeMp4","innerHTML","webm","getExtendHtmlIsShow","playType","currentPts","disable","videoSEI","small","isWCSPlayAudioUseVideoRender","loadingTimeout","isMseVideoStateInited","clearCheckLoadingTimeout","play","streamBuffer","hideTipsMessage",") so set useSIMD false","playInitStart","decoder-pro-f-simd.js","useOffscreen","download","isFmp4","extendOperateBtns","faceDetect","videoTimestamp","clearBufferDelay","mseDecoderUseWorker is true but not support so set _opt.mseDecoderUseWorker = false","videoStart","$container","isOldHls or isWebrtcH264 or isAliyunRtc is true, so set some params false and set _opt.recordType = webm","getCurrentVideoAndAudio","isFirefox is true, so set _opt.mseDecodeAudio false","mseVideoBufferDelayTime","isPlaybackH24","isPlayback and wcsDecodeAudio is true, so set wcsDecodeAudio false","demuxStart","checkHeartTimeout$2 and\n pause and emit delayTimeout event and\n current vbps is ","maxFps","isFullResize","mp4Decoder","showPlayBtn","JessibucaProFaceDetector","getVideoBufferTimeRange","removeExtendDom","reduce","updateStats but player is closed or destroyed","webcodecsAudioInitTimeoutReplay","_zooming","visibilityChange","checkVideoSmooth false because ","decoderAudio","checkVideoSmooth false\n because fps is ","offscreen","_tempInnerPlayBgobj","playVodPause set true and is recording, so stop recording","getCanvasRenderType","MetaDataCreator","decodeTimestamp","decoder-pro-hard.js"," < min fix is ","mainThreadFetchUseWorker","isHistoryFpsListAllZero","isEnabled","-simd",", so set mseWaitVideoCanplayTimeout = loadingTimeout -1","use wasm","isCheckStreamEnd","getPlayToRenderTimes","createObjectURL","isMpeg4Demux","decoderCheckFirstIFrame","mseWaitVideoCanplayAutoWasm","checkFirstIFrame","isPlaying","TAG_NAME","useWebCanvas is true, but not support so set useWebCanvas false"," and","recorder","pauseForControl","hasControl","videoRenderType is ","getPlayType","audioTimestamp","use offscreen","$extendDom","error","URL","_visibility","setRate"," and window.JbProObjectDetector is null","_hasLoaded"," and avgFps is ","6860694zXOiux","_imageDetectActive","showTipsMessageByCode","isWebrtcForSRS","decoderOld","m7s","hasAudio","removeDynamicWatermark","imageDetectActive","startVisibilityHiddenTimeout","performance","videoBuffer","isWasmUseMThreading","use face detector, useWasm is ","close","isWebrtcForOthers","isPlayback","checkSourceBufferStore","sendWebsocketMessage: stream type is not websocket, current stream type is ","isPlaybackUseMSE","nakedFlow","href","getExtendHtml","demuxType","isResize","_objectDetectActive","record","_lastestVisibilityChangeTimestamp","addMemoryLog","getIsStreamTsMoreThanLocal","resumeAudioAfterPause","mseWaitVideoCanplayTimeout ","demuxTimestamp","getMetaData","useWasm","_loading","JessibucaProObjectDetector","isMSECurrentMoreThanBufferedPause","_opt.qualityConfig is empty, so set operateBtns.quality false","isDestroyedOrClosed","disableContextmenu","floor","isDestroying","replace","playbackPause set true and is recording, so stop recording","init() failed and player is destroyed","getPushLatestDelay","stream","playVodForwardJumping","log","isDemuxInWorker","useMThreading","decoderWorker","fpsIsLow","isLastVideoDiffIsZero","screenfull.isEnabled is true and _opt.useWebFullScreen is true , set _opt.useWebFullScreen false","isPlayVodUseMSE","playbackCheckStreamEnd","contains","getExtendBtnList","fetchStream","checkLoadingTimeout and pause and emit loadingTimeout event","68770ToocaJ","addContentToContainer","isWebrtcH264","useOcclusionDetector","getDecodePlaybackRate","simdDecodeErrorReplay","use playback","mseWaitVideoCanplayTimeout","emitVideSeiSyncPts","getVideoInfo","webrtcError","screenshot","wasm","isNotMute","handlePlayToRenderTimes but player is closed or destroyed","loadingTimeoutReplay","loading","operateBtns","hlsError","getOption","isPlaybackRateSpeed","pauseForControl() and videoInfo is null","visibilityHiddenTimeout","isRecordTypeFlv","isWebrtcForM7S","fullAuto","checkIsFullscreenByInit and isFullScreen is ","timeout","videoSEISyncPtsDiff","use fmp4","isControlBarShow","showTipsMessageByContent","_checkStatsInterval","playVodSeek and is recording, stop recording","decoder-pro.js","width","shift","mseDecoder","objectDetectActive","controlHtml"," and playing is ","isMSENotSupportAudioFormat","singleWatermark","catch","isHlsCanVideoPlay","isMSEAudioDecoderError","base64","latestDelay","_historyVideoDiffList","auto","videoCurrentTime","play() init and next fetch stream","recording","dts","isWasmPlayAudioUseVideoRender","getMseMineType","pts","未知异常","rate","setFileName","isDropping","handleRender but player is destroyed or closed","checkHeartTimeout$2 but player is destroyed","destroy","getRenderType","_videoIframeIntervalTs","oneBufferDuration","_isPlayingBeforePageHidden","9977824qSGyzt","volumechange","updateHistoryFpsList","setPtzPosition","getDemuxType","playbackPause","height",", playing is ","24AarRBo","bufferList","qualityConfig","_times","mseUseCanvasRender","use webrtc h265","_serverInfo","isRecording","clearControlHtml","isPlayVod and wcsDecodeAudio is true, so set wcsDecodeAudio false","reason","getVideoBufferRangeList","isFFmpegSIMD","$iconContainer","getMimeType","useWCS","hiddenControl","playVodPause","getMaxDelayTs","webrtcUseCanvasRender","mute","screenfull.isEnabled is false and _opt.useWebFullScreen is false , set _opt.useWebFullScreen true","demuxBuffer","pushLatestDelay","videoElementPlayingFailedReplay","getReadyStateInited","preferredHardDecode","debugWarn","isMSEDecodeAudio","webFullscreen","use play vod","decoder-pro-f-simd-mt.js","checkHeartTimeout$2 but fps is ","getExtendBtnActive","occlusionDetectActive","isPlaybackPauseClearCache","start","emit","control","isStreamWebTransport","use image detector, useWasm is ","visibility","stringify","isNakedFlow is true, so set _opt.mseDecodeAudio false","getAudioEngineType","use hls 265","getAudioInfo","isDecodeFirstIIframe","isHls is true and demuxUseWorker is true then demuxUseWorker set true->false","networkDelayTimeoutReplay","playing","updateExtendDom","getVideoBufferDelayTime","getCanvasVideoBufferLength","isRecordTypeWebm","_seiList","fetchError","playbackForwardMaxRateDecodeIFrame","loadingBackground","wasmUseVideoRender","emitError",", supportHevcMSE is ","toFixed","\n so set useMSE false","checkHeartTimeout$2 playbackPause is ","77289SqvhFp","_mseWorkerData","1018076WFZXdA","png","isPlayVod is true and demuxUseWorker is true then demuxUseWorker set true->false","isMSEVideoDecoderInitializationFailedNotSupportHevc","assign","seek","use wasm video render, but not support so set wasmUseVideoRender false","isMseDecoderUseWorker","flv","useMThreading is true, but not support so set useMThreading false","isScreenNowRow","isPlayVodSeeking","vbps","isStreamTsMoreThanLocal","isPlayback and mseDecoderUseWorker is true, so set mseDecoderUseWorker false","_streamQuality","addExtendDom","_isStreamEnd","flvDemuxBufferSizeMaxLarge","startAndResize","isDroppingIsTrue","wcsDecodeErrorReplay","decoder"," ,isIphone is ","use mpeg4","getWindowScreenInfo","framerate","abps","isPlayVodEnded","updateLoadingText","playStart","clearExtendHtml","removeGhostWatermark"," and height is ","background","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAS4AAABgCAYAAACjZZ/rAAAK4mlDQ1BJQ0MgUHJvZmlsZQAASImVlwdUU1kagO976SEhkIQISAm9SW8BpIQeivQqKiEJJJQQE4KCDZXBERwVRESwDOCoiIKjIyBjQSxYUWzYB2RQUNbBgg2VfcASZmbP7p7937nvfufPf/9yz705/wOAHMKVSDJhFQCyxDnSyABvZnxCIhP3DOAAA9CBA7Dm8mQSdnh4CEBkev6rvL8LoIn5luWEr3///b8KlS+Q8QCAkhBO4ct4WQi3I2OEJ5HmAIA6jOgNluRIJvg2wnQpkiDCgxOcNsVfJjhlktEqkzbRkT4IGwKAJ3G50jQASDaInpnLS0P8kMIRthHzRWKECxD24Am5fISRuGBOVlb2BA8jbIrYSwAg0xFmpfzJZ9pf/Kco/HO5aQqeqmtS8L4imSSTm/d/bs3/lqxM+XQMY2SQhNLASGRWR/bvXkZ2sILFKfPCplnEn7SfZKE8MGaaeTKfxGnmc32DFWsz54VMc6rIn6Pwk8OJnmaBzC9qmqXZkYpYqVIf9jRzpTNx5RkxCr1QwFH4zxdGx01zrih23jTLMqKCZ2x8FHqpPFKRv0Ac4D0T119Re5bsT/WKOIq1OcLoQEXt3Jn8BWL2jE9ZvCI3vsDXb8YmRmEvyfFWxJJkhivsBZkBCr0sN0qxNgc5nDNrwxV7mM4NCp9m4Av8QAjyMEEMsAPOwBawQAQIzREszZkoxidbkicVpQlzmGzkxgmYHDHPag7TzsbODoCJ+zt1JN5GTt5LiHFqRpe9BznK75E7UzqjSykHoKUICf1gRme4CwBKIQDNHTy5NHdKh554YQARUJB/Bg2gAwyAKbBE8nMCbsALyTgIhIFokAAWAh4QgiwgBUvAcrAaFIESsBlsBVVgN6gD+8EhcAS0gBPgDLgAroAb4A54CHrBAHgJRsB7MAZBEA4iQzRIA9KFjCALyA5iQR6QHxQCRUIJUDKUBokhObQcWguVQGVQFVQD1UM/Q8ehM9AlqBu6D/VBQ9Ab6DOMgkkwHdaGjWFrmAWz4WA4Gl4Ap8GL4Xy4EN4IV8K18EG4GT4DX4HvwL3wS3gUBVBKKAZKD2WJYqF8UGGoRFQqSopaiSpGVaBqUY2oNlQn6haqFzWM+oTGomloJtoS7YYORMegeejF6JXoDegq9H50M/oc+ha6Dz2C/oYhY7QwFhhXDAcTj0nDLMEUYSowezHHMOcxdzADmPdYLJaBNcE6YwOxCdh07DLsBuxObBO2HduN7ceO4nA4DZwFzh0XhuPicnBFuO24g7jTuJu4AdxHvBJeF2+H98cn4sX4NfgK/AH8KfxN/HP8GEGFYERwJYQR+IQ8wibCHkIb4TphgDBGVCWaEN2J0cR04mpiJbGReJ74iPhWSUlJX8lFKUJJpFSgVKl0WOmiUp/SJxKVZE7yISWR5KSNpH2kdtJ90lsymWxM9iInknPIG8n15LPkJ+SPyjRlK2WOMl95lXK1crPyTeVXFALFiMKmLKTkUyooRynXKcMqBBVjFR8VrspKlWqV4yo9KqOqNFVb1TDVLNUNqgdUL6kOUnFUY6oflU8tpNZRz1L7aSiaAc2HxqOtpe2hnacN0LF0EzqHnk4voR+id9FH1KhqDmqxakvVqtVOqvUyUAxjBoeRydjEOMK4y/g8S3sWe5Zg1vpZjbNuzvqgPlvdS12gXqzepH5H/bMGU8NPI0OjVKNF47EmWtNcM0JzieYuzfOaw7Pps91m82YXzz4y+4EWrGWuFam1TKtO66rWqLaOdoC2RHu79lntYR2GjpdOuk65zimdIV2aroeuSLdc97TuC6Yak83MZFYyzzFH9LT0AvXkejV6XXpj+ib6Mfpr9Jv0HxsQDVgGqQblBh0GI4a6hqGGyw0bDB8YEYxYRkKjbUadRh+MTYzjjNcZtxgPmqibcEzyTRpMHpmSTT1NF5vWmt42w5qxzDLMdprdMIfNHc2F5tXm1y1gCycLkcVOi+45mDkuc8Rzauf0WJIs2Za5lg2WfVYMqxCrNVYtVq+sDa0TrUutO62/2TjaZNrssXloS7UNsl1j22b7xs7cjmdXbXfbnmzvb7/KvtX+tYOFg8Bhl8M9R5pjqOM6xw7Hr07OTlKnRqchZ0PnZOcdzj0sOiuctYF10QXj4u2yyuWEyydXJ9cc1yOuf7hZumW4HXAbnGsyVzB3z9x+d313rnuNe68H0yPZ40ePXk89T65nredTLwMvvtder+dsM3Y6+yD7lbeNt9T7mPcHH1efFT7tvijfAN9i3y4/ql+MX5XfE399/zT/Bv+RAMeAZQHtgZjA4MDSwB6ONofHqeeMBDkHrQg6F0wKjgquCn4aYh4iDWkLhUODQreEPppnNE88ryUMhHHCtoQ9DjcJXxz+awQ2IjyiOuJZpG3k8sjOKFrUoqgDUe+jvaM3RT+MMY2Rx3TEUmKTYutjP8T5xpXF9cZbx6+Iv5KgmSBKaE3EJcYm7k0cne83f+v8gSTHpKKkuwtMFixdcGmh5sLMhScXURZxFx1NxiTHJR9I/sIN49ZyR1M4KTtSRng+vG28l3wvfjl/SOAuKBM8T3VPLUsdTHNP25I2JPQUVgiHRT6iKtHr9MD03ekfMsIy9mWMZ8ZlNmXhs5Kzjoup4gzxuWyd7KXZ3RILSZGkd7Hr4q2LR6TB0r0ySLZA1ppDRxqlq3JT+XfyvlyP3Orcj0tilxxdqrpUvPRqnnne+rzn+f75Py1DL+Mt61iut3z18r4V7BU1K6GVKSs7VhmsKlw1UBBQsH81cXXG6mtrbNaUrXm3Nm5tW6F2YUFh/3cB3zUUKRdJi3rWua3b/T36e9H3Xevt129f/62YX3y5xKakouTLBt6Gyz/Y/lD5w/jG1I1dm5w27dqM3SzefLfUs3R/mWpZfln/ltAtzeXM8uLyd1sXbb1U4VCxextxm3xbb2VIZet2w+2bt3+pElbdqfaubtqhtWP9jg87+Ttv7vLa1bhbe3fJ7s8/in68VxNQ01xrXFtRh63LrXu2J3ZP50+sn+r3au4t2ft1n3hf7/7I/efqnevrD2gd2NQAN8gbhg4mHbxxyPdQa6NlY00To6nkMDgsP/zi5+Sf7x4JPtJxlHW08RejX3Ycox0rboaa85pHWoQtva0Jrd3Hg453tLm1HfvV6td9J/ROVJ9UO7npFPFU4anx0/mnR9sl7cNn0s70dyzqeHg2/uztcxHnus4Hn794wf/C2U525+mL7hdPXHK9dPwy63LLFacrzVcdrx675njtWJdTV/N15+utN1xutHXP7T510/PmmVu+ty7c5ty+cmfene67MXfv9ST19N7j3xu8n3n/9YPcB2MPCx5hHhU/Vnlc8UTrSe1vZr819Tr1nuzz7bv6NOrpw35e/8vfZb9/GSh8Rn5W8Vz3ef2g3eCJIf+hGy/mvxh4KXk5Nlz0D9V/7Hhl+uqXP7z+uDoSPzLwWvp6/M2Gtxpv971zeNcxGj765H3W+7EPxR81Pu7/xPrU+Tnu8/OxJV9wXyq/mn1t+xb87dF41vi4hCvlTrYCKGTAqakAvNmH9McJANBuAECcP9VfTwo09U0wSeA/8VQPPilOANT1ABC9DICQawBsr0JaWsQ/BfkuCKcgejcA29srxr9ElmpvN+WL5Im0Jo/Hx9+aAoArBeBr6fj4WN34+Nc6JNmHALTnTfX1E6JyEIAacxtH+5D7VPMC8DeZ6vn/VOPfZzCRgQP4+/xPeFgcU9phDh8AAABsZVhJZk1NACoAAAAIAAQBGgAFAAAAAQAAAD4BGwAFAAAAAQAAAEYBKAADAAAAAQACAACHaQAEAAAAAQAAAE4AAAAAAAAAkAAAAAEAAACQAAAAAQACoAIABAAAAAEAAAEuoAMABAAAAAEAAABgAAAAADApncsAAAAJcEhZcwAAFiUAABYlAUlSJPAAAB1BSURBVHgB7V0HeBTVFj6b3fRCAgSQ3qSKIuoDRESx8OzloaIIiqhYUIEHiIJIU6QpVkRRwMaTp4INBBsoRZQiIFhACL1DQtpusuWdf8IsM7Ozu0nYDQzvnO/bzMyd2+a/N/+ce+65d2w+FhIRBAQBQcBCCMRYqK5SVUFAEBAEFASEuKQjCAKCgOUQEOKyXJNJhQUBQUCIS/qAICAIWA4BIS7LNZlUWBAQBIS4pA8IAoKA5RAQ4rJck0mFBQFBQIhL+oAgIAhYDgEhLss1mVRYEBAEhLikDwgCgoDlEBDislyTSYUFAUFAiEv6gCAgCFgOASEuyzWZVFgQEASEuKQPCAKCgOUQEOKyXJNJhQUBQUCIS/qAICAIWA4BIS7LNZlUWBAQBIS4pA8IAoKA5RAQ4rJck0mFBQFBQIhL+oAgIAhYDgEhLss1mVRYEBAEhLikDwgCgoDlEBDislyTSYUFAUFAiEv6gCAgCFgOASEuyzWZVFgQEASEuKQPCAKCgOUQEOKyXJNJhQUBQcBxqkDgK8gmT+5+Ik8RuTYvJtefC6l430YiO9fQxj+mWHvluhTX4GJKaNKFYhLSKSaRf8nV+L7w76nSjlIPQaAiELD5WCqioGBlFGetJOfGb8nNJFW07RciX3EJUamEpR7BTfgdIzGcO6o1pbja7Siu1gUU37BLsCIkXBAQBE4zBE4qcR2adDV5cnYxVxWUkJKWnFTCUo/ae+r5saMtLoHsabUordMzFFvjvNOsieRxBAFBwIhAhROXz5VPBd+/SfmLppHP42LC8lGMzcOjPS/5mIhsdi+H8bmdL2LwYyUsxkY+W2yJtqXRuBQNjO9rNbHElt0piX+O9DONzyrX/0cIbNuxm5yuImrcoA7Z7Xj7iZxOCFQocRVvX0f5C14h18bvFdtVrLeQSctNNlsx2RwgK4bWwSNXPvrY+uaz8zkfvUxiIC6fL5a8nqQSolIJSz1qCM2eXo/SLhxJcTU7nE5tJc9SCgQKCp3Ub9hztHzlWiV2g7q16OWxQ6le7TN0qQ8dyaZNW7bpwtIrpVGzxg10YXJxaiJQYcTlWruQjr4/mLxF+WRnO1a8O5e1K59CVipBBSMukBgnUjQyctjI40xnEovTE5iGuFRNLLXdcEpqdicnxk1ryr4Dh2jjn3/rKp+YGE/tzjtHFyYXJQhMmjKTZvxnrg6O885pSTNeGqMLm//tEho8apIu7KK2bWjK+Kd0YXJxaiIASoi6OFfNY9J6nMhdSHFuF8V62KYFzapc4iN78mHyulOYBJM5h+CklLvqObaf5VByy/uZ5JjoLCi/rPmNnnhmsq7mdWrWoHmzpujC5KIEgdXreCbaIGs3/MEvOh9r9sH7iiGJXJ7iCGCgFVVxrf2ajr43hMhVQPGF+RTHx0iILSGPbMk5nFUIAmTXivyNb5Nrz5JIFCl5WACB2mdUD6hlzerVhLQCULF2QFSJy5t7iPK/eZt8RYUU73KSw10UHi28FRPSKCa1JtmrNKH4s3tRUscxFN+sO9krNWK/rZqsrSUq+djinGRLyg2Zp68ol7IX9yFPwb6Q8eTm6YHAQ/fcThlsq1IlNtZBg/r2Ui/leJogENWhYt6ciVS8eSVrWYUUW+xSDO6hcLMlVaa49veQo3FnctRtx1FNVHufh1xbPqaiXQvIuX022RLz2XDP1nwnho3B5ch3d1LGJdPInlIveCS5Y3kEYISfM/NFgg3LxbOKl3S4gBrVr2P555IH0CMQNeJy78uiwmUfM2k5FW1L8YDXl627sjfqRAk3jCM7O5WGFCap+Ea3Uly9aym+8W2Us+QORevyFUELC65AevK2k2vvckpqLMQVEt/T4GaVjHS6s+u1p8GTyCMEQyD4f3qwFKUI97F2dWRsV7J5veQoYk/4MGKvfS4l3zc3PGlp8rE5ktjd4UpKa/8G2eIqkS0t21RB8yfxeSl39Qj2HSv0B8mJICAIWBOBqGhczhWfk4+N8Ha3mxzF7pBDxNhzb6aEnm+WG734OjdTWoydcpb3YNsX29A8IWYPeZiZt34SpbYeVu7yrJgwNy+fdu7ZR3v2HqD8wkKqnlmFzqieSbVqVGMf3/K/u5xOF/35dxYdPpJD2UdzKSU5iapkVKKGPDRLT0stF1TRyLNcFTmWyOv10a69+2jrtl38fIlUu2Z1yqxS+ZQ29hcVF9PuPftp74GDtO/AYUpMiKeqVTKobq0zqGrl9HLDgZnZv7N2cL6H6Eh2DhtybFSZ27ta1crKcLwiZ20jTlw+1mzcO34nn7uY7EXukCDFZDaiuC7sJmFmywqZUn8zvtYNlNZ2KuUsGsTEpb9nvCrY9M7/BXGhky395Vea9cmXtGTFasI/oFHQ4bped6Xyy+SOXVpZ+vMaev/jL+nn1evIZaJRx/BKh3NaNqV/XXMFXdflUiZHE1ulobBI5Tn70wU04bXputxv/GdnGtqfXWLKIAcPZ9Pz7BO2cPEyxVamTVqtahXqeet1Cm7JSSUTRdr76vnAERNp8fKV6qVyHDnoIbr68ot1YcaLT7/6nsa8MFUXfPnF7Wjs0H66MOPF739toY++WEhffv0D5RcEjixALGiXa6/sRF2vvaLUKwqwCmHa+5/QDz+tVF5SxnJxDUK8pMM/6L4eXakmvxSjLREnLu/BXeRa841S74RCNsiHWG1hb345xVSPzNIcR/q55Khcm9x7DoXBzEcuNuzH1zp9F2VDw8I/zTImrlCy/+Bhem36f2j6rLk0dthjdFlHTIgEF/wzPDFmMn2/9OfgkfgOSHLN+j+U3wdz5tGLY4ZQjWpVTdNEOk+3x03Q2rQCDaQsMu+bH2j081MpL9/cdWf/wUM08bUZCnm/OWkE1avDM90mgnKNdXF7wrxZOR83j1SM6YpMXhBqkR7OE/V576Mv1CDTI15mv/72h/L7+POv6ZknH6UzGwa3+SL+5Knv0szZnxHKCCUg+o8+X0hffL2YBjxwF91+01Whop/wvfKPE4IU7XPmk+fwbnavCnzDG5PEXTvUGFTua0dqM3LUaFmq9M6d80oVz4qRdu87QN0ffDwsaWmfrdDppP5PjVcITBuuPcc/0oODR4UlLW0anMPrv9djwwgd2yjRyNNYRlmvUd+nnnslKGlp89vDWPfo+wRt3rpdG1yh52i7ewc8HZa0jJX6fdMWuvvRYbRl207jLf/10GdfordnzQlLWv4EfII2fXbyGzRn3rfa4IifR5y4irPWK5W0u0MztK1SDbIlpET0gRJq3liq/HxerhsPaU83gaYzZPTztHX7roBHgy0Lw4TrrrzEVJVX3q5vvENmnufIDENDaFFGObdVM+rT8xYa9XhfuvWGLooNyBhn5+59/OZ+xxgclTwDCilDAJZXDXh6Amk1NIfDTkmJCUFzOZJ9lIaPe0XxzA8aKYo3oGmt/HWDaQkYsrVt04qan9nQ9BmO5ubRg4NGBWh3yOyr75bQ5wsXmeabkZ5Gl/KwsGO786iWicMvEo1hjRW2z2hJxIeKzqVzlLrGeEITQ8Jdr0f8meKqdipVnl7nAfK6DvFmhNEfi5eqQhGK9P7HX5iSC1T3rtddQakpx33dtu3cw8O+F2j975v8pYP4ho19mT6ZPpkS2KCrlZkffqq9VM773d+Dene/2R9+09WXKeewVz02dKzO/oV/gn59euqMw9HI01+ZcpxoF11f0am9Yq9p2qi+MoFx4NAR+viLr9nW83GAzQsYQsO4+ZrLy1Fq+ZMAZ9j0jAIj/MjBD9P5rY+PQGCLfO+/n9Or02dRMU+YqQINfdac+dTrdv1Lf8qMD9Uo/iPyGzHwId3QGC+8+Uxyw8a+pMsX5D/7swX0wF23+tNH8iTiGlfR5jVK/Xj1dsh62ng300iLLfa4x3SovD1528hbwMPZ00jcrOFOfWd2wBPdc/tNSqfUkhYiwVHzpWefVGYXtYl27N5L3/64QhtEsIUdyTmqC8Nb9+5uN+jC1IsO/ziXut10tXqpHEGK6zb86Q+LRp7+zE/wpHPHtvT8qMGKpqLOumLyAv+ETw14wDR3aKQVLW+xwdwo8XGxSt21pIU4CMdL5ul/P2hMEjDMhA3POITETPSkEYN0pIWMYPC/+rKOdH+PWwLyXbP+94CwSAVEXOMiNo7C2dQTbg8kdmE4WQJty+M6gh1zThv5iWf4co7m6Z4HuyL069NDF6a9wEzQ+OEDqMfDT2iDlWHCNVccn/mCsd8oCfHxIWelHul9R4ATaFrqcdNANPI01rE81yD0Z554NGjSG/55KWu1vyvalzbSX+wWsnf/waCTENq4kTiHzXDVug0BWQ3u25uaNq4fEK4G3HBVZ8KEiXbHERDVLnaXUYd9aSkpitatpsERbg/4BRO8rF59e5bu9q69+3XXkbyI2v+u1xFGmeMF0CKRQ2DBd0sDMmt//jlh/Y3ObsHrQfltrHVrWPrLGmU4FB9f4hPXoG5tZZipJRsYpqfOnE19ggwFkDbYTCIqGo08AwAoR0D/B3oq/mihkg55pDfNnf9dgNH6x59W0S3XV8xs9XesFUOL1QrWaMLOGE7688sMu45oRTt8hJkg1GyjNp16Dtcao+Tlmc/KGuOV5zpqxOUL49joO/A3UbVG5amzpDFBQGufUW9XYY0KQ7JwUomdRbXx0In38VsYthII/LBghP9h+SpdVq/wG/YLdh3AUAFvXBiBsai5NBKNPEtTbrg4zZuE75P4x67PLhBwxtQK7IYVJVk7Aidg4PhbGsFebpHaz83Lq2NymaCgsVWklK6XlaFGtvgEdj51Kim8TF687Z9p6sKZD1PK+OOGYdNIUQq0J9XkLwRVj1LuJydbGI+NMnLCa8agUl8f5PxU4kKi3nfczG/pDYTpd61k8QwmfMHwi4uNpeZNGlLrs5oRtL3zW5+laHPa+NrzaOSpzb+s5/D8L63zZOMGdQOICzOMFSUHDwe2d+NSEldZ64jZ1kXLfqE/N2cpBIVrkFVePm/DzjvOngyJOHHFt76MnCtLDJXO5ARKLAi0jygPmn+IvHk8s5dSpcKf255Sl0Bep4tgyICtiCMpRr+rNme3oNcnPMW+XKODdlbMJK1lAzx+mDGEVzlm2u7t/i9T+0g08jwRDJqEcMY05ouh1ILv9cPzwxFuA2OZ2muzF1Wkd8GAFj/+len006q12qJPifMwhqiy1zGxY1d/IuwVD60rmLhm3hfsVlTDbXEZvCFqcENjVAuPSua8rXWE/dLMPLxBNLOmTqDu/7pGt+dVsEeCV/y7PAUP4z+m3c0kGnmalVOaMFuIvmpMb7YuT29xMqaI7HWMybdEuRdErBD4cXXtPeCUJC08ZMQ1rpi0qn7wPA4HudlIG1tsrk569/5F3m0rKabe+f40FXFi1ukqotxolYEp+8rplQK808fxjKF2U72ylB/MONuwXm0a8ui9NPChXgRjNNbiQcPasm1HgLFYLW/7rj10V98n6d1Xx5oa7KORp1p2WY5mdsJg6Tdv3RZwC21QUWK2WNpocytvXTb8uVnZLhz2K63AGfcCHv5Ds8N6zdTUZEpj30C42hTw4v1+w8Zpo0f1POLEZUvJ4E0AW/BC641KxV1syAxGXL4c/oTU7AGUNHARO4QE18zCIVC46UNKPPO2cNFO+n34WsFhTyvhjNlGmxLSqrN92nyqVs4IIC6QFmxN0RB04ksv+ofyQ/5Y17du419swF9J8775McDvC64CXy9eTj1uuS5odaKRZ9DCTG7AkxyuAfinDCebtmwPiBLKXUCNXGhYR6mGa4+wL4YT7PZglL+zdhqDynX9xrsf8XpJvW0as88TRwwM8PtTC4DdqyKl/GwRpJb2jOq8zXJ7/13MLuamp8NTzR+mPfHs/o2ODqrC2zuXferUx9vU5K8ZzYurW2mzLMW5eV1KkfCEolx9x4PU5vJbdD/1M1rBMsZyGaOY7eRQnz/DZRSsR6sogWH7wgtaK9rYlx+8xt8zDHQwXrW25GVW2jpFI89wZf+xKStcFMV1xGxWTzuZgUxiecRhFLiRhJOsneGdo/HZNaNsMcxyGu+r1/DhwioA7U9br+W/BNq04O+HrZCCSUWv14w4ceHB4pq3I1usZn0Xk1ZBcjJvsRy8uIIpXaj41w+D4RIQ7snfRQVrx1LeL7wdcxmX7sSwjetkSKvmZwYUiy1nQskqk6/WmPnMYImKUcw6oDEOrjGVjc6MIcJvf2xWlgFp/XqghYBAtT/tej5jnhg6GJeQIM4fm7f6o0YjT3/mJ3DyAq+pNNNytVlOfHV6gEaC+x3btdFGU/Ym0wXwBfANJfCVW/JT6D6B9J0vaqssRdLmhdUNHzEhhRI822P83ckRPOOs/akjAcyMGp8fLxDVOTVY3kZXmWDxIhUe+EqIQM5xZ3WimPRM8hw67uficcRSoT2VkgpzTEvw7PmNCub2I8eqt3nf+YcotsX1HC9QM/J53VS4bhK5smZT0W72UcL3Fcso3uLcMqaITHQscl64aJkus8947yWs8TPTUDC0gv3IKDBoG+ViXvCamJCg63SYDXp52vv0yL3djdH91/A9uvXeAbqZQnTSeR9M8ceZ8OoMxZveH8AnqDMWVgcTh4m2gWUjqkQjTzXvEzlCcxgx/jWCfdBM5n37I/1n7vyAW/BWN2okZkPOFavWKS8Gs5cYMkV7YVPGcIJh6QW8dnDF6vW6qM+9NI1acz8z60+I+PqM2YqHvzYRXEBq8qaSELMF5TADYCiobT9tetgG5zMuFSnBVaATqQVrWFXGLOQPWRxf4oHsvLwMKD8lnWca7ea5sxHfvX0FFXx0F2U/m0HZL9Sm/C96UQFvEJg793o6PK0m/ypTwc/jqWgH2wE85eRd/iDtyZDzeQmOUdBJ7+3/NH224HtF84FrA4zZr7NXuvGDpUgLL/crL7nQmI2yKNpsn3XYK/CBVLO9pRYvW0n38ZYoRl+cbjf+U3E6VQvBDgNGwaJi7FtlJujkM3iPL6PATqJKNPJU8z7RI8gJ37KEsVvVRNBO2OIFpGYmd9x8TUBw+wvM7YsPsUsJXmCq1oo2x44ejzzxrLLgOSCjIAH3sG+dUfCBkP7Dx+sWzyMO9tPC0PCd/35mTEK333x8XSnsp2YE9eQzL5rODGPPt5488WJcyxpQSIQDovol6/yveDO2TyeWfMMCFIkflCibj2J9Lr4sIrutmDcbZIM1c1C4L1l7KY47Ujx/DDaR8+KMjuWZefcy/mxZyfh73zQejqllqeWBJ1HusfCEuldTpbYvckDFC9RzdKBgYmdyD7VpG1wRMKtnJhjedesziLBuziiYeWzBzqFnt2hKBw4dpr/4LYmdLY2CGb73p4zTLXvBP8P1PfqadlzEx0zTua2a01Ee5sDOgs3kjEQJb/P5s1737w4RjTzxLB/wjq9jX5ymeyz4kmG3BK2YfckadsI8fgatDxv+kRP4Z1wHqs0L2hMwM5utvur2B5Qhtja+eo42qVkjkw4dztFpylgvafTCx8tq0shBalL/ceTEKcoGfv4AzQnapk6tGtwWhUyMO023mYGW+Pl7r+ochaH14YVnJphRbNvmbEUDw6aEqv8gNDXjCxAfLVk0d7pZNiccVk6VpXTlJl12FxX9vZKKNi7SJ2CNrNjONjBbPE8m8pepyUUOG4zz+hk3JPL52Pe+OJGN9/yDjQxGfhCQRpxbF1DSWXcqITZHPG+15dLcPbVOBz3ci31j1gVdIhGKtJo0qk/9eYuaYIIZShhR+wwcqXQsbTxMbcO+EsrGgjft1IlP60gLeeCfd9SQR+jhIWMCtnTBLgL4ffjpV9ridOf4B8WWxdop/GjkqSu0HBf4mOw9d9ykaMCqKwAIFr9ggplbDJnNSAtphva7X3HaNUuPMoyTLxfx0qnL2F5Z2lUP6E94Waw22YlBbRuzshEGW+Rr44bpSAvhPW69XlnepbVJIhwCLdTodoF8Xhj9OOM2vCRSBfw1UEBkS4SBPr33CxRbu3mQjG1MVTHkjkkkZ0wV/lUlJ2WS05tJLk8mq9LVeI+fTNawUpjAVLUpMKvcJaPBcMqNytfPCYxgCPHk7yRvYeBsnSFaVC7hTY6tjEOt4DcrGPaxV58bGtDJjHHxRvzwzYnUhjWgsgjWrr31wihTPyvkg6Hd1AnDlQ8jlCVf2GKeHzXIdJ/1aORZlrqZxYX2CI02nJsK0oLoZ77ybFB7EuJc1LYN9eWdMoIRG+KoglnJ0bwzBQYHpRVoOm9NHl2qxdXaPNFP0N5mtjB86GTGy89Q2/PO1iYxPUf5aF+s3axIsY9giWaBNkccxbfqTO79W8hzMKtkyIaWCfcDpSKOegwZn7W2lBoUm9mS1yBWJnf2ZvLk8OyNmsaQh6/oIMVV73DSPg4LzQMfqUjntzXUbdXWwU8bIDCcwpaBoY52W5iAiJoAdKbru1xC0NDgm7SLv/hiJvCbAiGOYW3qwV63cX1SzaL5w2DA7XbjVcpSHgynDmebT7QgAYYp3XjfcWiAzRo38OdhPIl0ntjUzzhTi/WT2LFTKzDCY/JDK3V5iHbtFZ0IQ7+reOH4Tt6bDPuTGVzveLYwnfef6kpjmGTM7EHaPHEO22bLpo2V/Mz8nbDGEx+ZGDf834pDJz56gbWBWgHRdLm0gzbIfw6NtlP78xV3FGhxWWwCCKa544V592030Ghu8+rVjk+W+DM7doI6XdW5IzlZ29zOEzhOl34Ug76DPjyZX8JNGtZXPs7xDu9NrxX0w7u73agNith5VG1c2lrCT+vIy3dS8Q6eBQGRqGSinmuPIBxVwVKP6n3cU881x7ha7Sjj2rf5XizPNi6hnMX9yFvM/1javNT4HJbSaiAlN+2jreJJOcce3TDMlqj1O9gB8oiyrg++Wi2aNqJzecFyad7WoSoPOwSGJHACzWYjM8gQH3jA58lgUyuvYEcJzChl5+QqBJnMn++C9zhIS52lKmve0cizrHXQxsd2P7APwR4It4DaNWsouOEftzyCfLbyzg77+bNhldJSFKzQFiCKSAlsTdvYFwztDTwT4uKUz5PVq13TdGvtcOWCBGETRZ29vLSsfp1aVIdxKC8G4corzf0KIy61MtnT+1LRX0vJV5x3XKNSCUU9asmmlMQFgko6525KbT9UKSp/w9uU9+vzPJXJb4ogeWRes5xi4o8vUVLrKEdBQBA4tRGocOLyuYuoOGsN5cz6N3mPsp1JJSvtsZzEFZOUQZk9f/Yj7tr5PeWtnUzunI16kkT+XF5c9Qspo8NMf3w5EQQEAWsgUOHEpYXFufozyp03lrzObDauu4+TWFmIi4c6MUmVKK5+Z6rUaTQTVOBEac6ygeTau5iLYMc+G6/BOkZccKlIOrMXpbYYzGHlU/21zyPngoAgUDEInFTiUh6RPxVWsGIWf4sxi4p3r6finatLiEUd3qlHVSM7Rjr2Kg0pvkEnsqeeQYln3c58pVliZIKdj73lC7d+wiS5l5z8QVhP4Q6FKG3xaZTS7BFKanC3SSoJEgQEgVMRgZNPXCoqbPTz5rPxL++gEuIpOMhLhrbwcHKXsqNqTEZtcmQ24ZnAkp1LbfGpZE/DFCyYrGwCdwifO4/c/LWfgi1v8Ycz9lHm5YvLlonEFgQEgZOGwKlDXCcNAilYEBAErIYABmAigoAgIAhYCgEhLks1l1RWEBAEgIAQl/QDQUAQsBwCQlyWazKpsCAgCAhxSR8QBAQByyEgxGW5JpMKCwKCgBCX9AFBQBCwHAJCXJZrMqmwICAICHFJHxAEBAHLISDEZbkmkwoLAoKAEJf0AUFAELAcAkJclmsyqbAgIAgIcUkfEAQEAcshIMRluSaTCgsCgoAQl/QBQUAQsBwCQlyWazKpsCAgCAhxSR8QBAQByyEgxGW5JpMKCwKCgBCX9AFBQBCwHAJCXJZrMqmwICAICHFJHxAEBAHLISDEZbkmkwoLAoKAEJf0AUFAELAcAkJclmsyqbAgIAgIcUkfEAQEAcshIMRluSaTCgsCgsD/AFt/MVAlcetCAAAAAElFTkSuQmCC","_close","updateCurrentPts","getBufferListLength","buf","videoRenderType","aiFace","viewResizeChange","getAllStatsData","poster","dynamicWatermarkConfig","downloadMemoryLog","use object detector, useWasm is ","checkVideoSmooth and videoCurrentTimeDiff is 0 so check\n videoCurrentTime is "," is greater than loadingTimeout ","decoder-pro-old.js","82xFWmmF","wasmPlayAudioUseVideoRender","_drawingRect","isOldHls","classList","_latestAudioTimestamp","playbackPauseOrResume","disableContextmenu is true, but contextmenuBtns is not empty, so Contextmenu can not be created,please check","isUseWCS","watermarkConfig","debugError","isAudioNotMute","\n so set useWCS false","_playingStartTimestamp","demux","_destroyLock","keys","videoIframeIntervalTs","decoderErrorAutoWasm","updatePtzPosition","isUseWASM"," and isPlaying is ","isVideoPlaying","openSyncAudioAndVideo","isWCSDecodeAudio","isIphone and set _opt.videoRenderSupportScale false","forEach","getMseVideoBufferDelayTime","useWebCanvas","controlAutoHide","playVodBackwordJumping","isIphone and is in wechat and is hls so set supportHls265 true","update","player is closed, so can not play"];return(CC=function(){return t})()}function RC(t,e){const s=CC();return(RC=function(t,e){return s[t-=184]})(t,e)}!function(t,e){const s=RC,i=t();for(;;)try{if(637614===-parseInt(s(463))/1+-parseInt(s(514))/2*(-parseInt(s(461))/3)+-parseInt(s(396))/4*(parseInt(s(718))/5)+parseInt(s(258))/6*(-parseInt(s(809))/7)+parseInt(s(388))/8+-parseInt(s(614))/9*(-parseInt(s(320))/10)+parseInt(s(664))/11*(parseInt(s(581))/12))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(CC);class DC extends Bi{constructor(t){const e=RC;let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),this[e(771)]={},this[e(240)]=e(871),this.$container=t;const i=ni();if(this._opt=Object[e(467)]({},i,s),this[e(775)]=new Qt(this),this[e(648)](this[e(240)],"init and version is",Qe+":"+Ke),this._opt[e(727)]=!0,this._canPlayAppleMpegurl=!1,this._opt[e(636)]&&(this[e(771)][e(857)]=!1,this[e(771)][e(226)]=!1,this[e(771)][e(868)]=!0,this[e(771)][e(411)]=!1,this._opt.useSIMD=!1,this[e(771)].useWASM=!1,this._opt[e(532)]=!1),(ss()||es())&&(this[e(805)]=Ws(),this.debugLog(this[e(240)],"isIOS or isSafari and canPlayAppleMpegurl",this[e(805)])),Us()&&this._opt[e(695)]&&(this[e(648)](this[e(240)],e(836)),this[e(771)][e(695)]=!1),this[e(771)][e(603)]&&(hi(ee[e(228)])&&hi(this._opt[e(812)])&&(this[e(648)](this[e(240)],e(313)),this._opt[e(812)]=!1),ci(ee[e(228)])&&ci(this._opt[e(812)])&&(this.debugLog(this[e(240)],e(417)),this[e(771)].useWebFullScreen=!0)),di()&&(this.debugLog(this[e(240)],e(539)),this._opt.videoRenderSupportScale=!1,Fs()&&hi(this[e(771)][e(561)])&&ci(this[e(771)][e(677)])&&(this[e(648)](this[e(240)],e(545)),this[e(771)][e(677)]=!0)),ci(this[e(771)].playFailedAndReplay)&&(this[e(648)](this[e(240)],"_opt.playFailedAndReplay is false and set others replay params false"),this[e(771)].webglAlignmentErrorReplay=!1,this[e(771)][e(744)]=!1,this[e(771)][e(719)]=!1,this[e(771)].mseDecodeErrorReplay=!1,this[e(771)].mediaSourceTsIsMaxDiffReplay=!1,this[e(771)][e(484)]=!1,this[e(771)].wasmDecodeErrorReplay=!1,this._opt[e(325)]=!1,this[e(771)][e(420)]=!1,this[e(771)][e(445)]=!1,this[e(771)][e(822)]=!1,this[e(771)][e(811)]=!1,this[e(771)].mediaSourceUseCanvasRenderPlayFailedReplay=!1,this._opt.heartTimeoutReplay=!1,this._opt[e(335)]=!1,this[e(771)][e(685)]=!1,this[e(771)].streamErrorReplay=!1,this[e(771)].streamEndReplay=!1,this._opt[e(237)]=!1,this[e(771)].mediaSourceAudioG711NotSupportReplay=!1,this._opt.hardDecodingNotSupportAutoWasm=!1,this[e(771)][e(723)]=!1,this._opt[e(571)]=!1,this[e(771)].webcodecsAudioNoDataTimeoutReplay=!1,this[e(771)][e(212)]=!1,this[e(771)][e(554)]=!1,this[e(771)].networkDisconnectReplay=!1),this._opt[e(412)]&&(this[e(648)](this[e(240)],"_opt.hiddenControl is true and set others show btn to false"),Object[e(530)](this._opt[e(337)])[e(540)]((t=>{const s=e;this._opt[s(337)][t]&&-1===(""+t).indexOf("Fn")&&(this[s(771)][s(337)][t]=!1)})),this[e(771)][e(854)]=!1,this[e(771)][e(188)]=[],this[e(771)].controlHtml="",this.isPlayback()&&(this._opt.playbackConfig.showControl=!1)),this[e(771)][e(422)]&&(this[e(771)].useMSE=!0,this._opt.useWCS=!0,this._opt[e(532)]=!1,this[e(771)][e(736)]=!0,this[e(771)][e(604)]=!0,this._opt[e(659)]=!0),Si()&&(this[e(771)].watermarkConfig={image:{src:e(498),width:75,height:24},opacity:.5,right:10,top:10}),!this[e(771)][e(727)]&&("undefined"==typeof OffscreenCanvas?(this[e(771)][e(727)]=!0,this[e(771)][e(185)]=!1):this[e(771)][e(185)]=!0),this[e(771)].isMpeg4&&(this.debugLog(this.TAG_NAME,e(590)),this[e(771)][e(411)]=!1,this[e(771)][e(868)]=!1,this[e(771)][e(580)]=!1,this[e(771)][e(652)]=!1,this[e(771)].isFmp4=!1,this[e(771)][e(292)]=!0),this[e(274)]()&&(hi(this[e(771)].useMSE)&&hi(this[e(771)][e(659)])&&this.debugLog(this[e(240)],e(477)),this[e(771)].mseDecoderUseWorker=!1,hi(this[e(771)][e(411)])&&hi(this._opt[e(604)])&&this[e(648)](this[e(240)],e(200)),this[e(771)][e(604)]=!1),this[e(569)]()&&(this._opt[e(659)]=!1,hi(this._opt[e(411)])&&hi(this[e(771)][e(604)])&&this[e(648)](this[e(240)],e(405)),this[e(771)][e(604)]=!1,this._opt[e(677)]=!0),this[e(771)][e(507)]&&(this[e(771)][e(497)]=this[e(771)][e(507)]),ci(this[e(771)].muted)&&(this[e(771)].isNotMute=!0),this[e(771)][e(659)]&&(this._opt[e(659)]=function(){const t=Me;return!!(Nt[t(485)]&&Nt[t(379)]&&t(337)in Nt.MediaSource&&!0===Nt[t(379)][t(337)])}(),ci(this._opt.mseDecoderUseWorker)&&this.debugLog(this[e(240)],e(192))),(this.isOldHls()||this[e(322)]()||this[e(875)]())&&(this[e(648)](this[e(240)],e(195)),this[e(771)][e(411)]=!1,this[e(771)][e(868)]=!1,this[e(771)].isNakedFlow=!1,this[e(771)].useSIMD=!1,this._opt[e(187)]=!1,this._opt[e(292)]=!1,this[e(771)][e(582)]=l[e(895)]),this[e(771)][e(580)]&&(this[e(648)](this[e(240)],e(439)),this[e(771)][e(736)]=!1),$e()&&(this[e(648)](this[e(240)],e(197)),this[e(771)].mseDecodeAudio=!1),!this[e(517)]()&&!this[e(322)]()){if(this[e(771)][e(411)]){const t=function(){const t=Me;let e=!1;return"VideoDecoder"in Nt&&typeof Nt[t(619)]===t(579)&&(e=!0),e}(),s=fs();this[e(771)][e(411)]=t,this[e(771)][e(411)]&&this[e(771)][e(780)]&&(this[e(771)].useWCS=s),!this[e(771)][e(411)]&&this[e(423)](this[e(240)],e(762)+t+e(758)+s+" , _opt.isH265 is "+this[e(771)].isH265+e(526)),this._opt[e(411)]&&(this[e(771)][e(604)]&&(this[e(771)][e(604)]=function(){const t=Me;let e=!1;return t(350)in Nt&&typeof Nt[t(350)]===t(579)&&(e=!0),e}(),!this[e(771)].wcsDecodeAudio&&this[e(423)](this[e(240)],e(578))),this[e(771)][e(185)]?this._opt.wcsUseVideoRender=!1:this[e(771)][e(790)]&&(this[e(771)][e(790)]=ms()&&gs(),!this[e(771)][e(790)]&&this[e(423)](this[e(240)],e(858))))}if(this[e(771)][e(868)]){const t=function(){const t=Me;let e=!1;return t(379)in Nt&&typeof Nt[t(379)]===t(579)&&"function"==typeof Nt.MediaSource[t(609)]&&(e=!0),e}()||function(){const t=Me;let e=!1;return!(t(379)in Nt)&&"ManagedMediaSource"in Nt&&typeof Nt.ManagedMediaSource===t(579)&&typeof Nt[t(532)][t(609)]===t(579)&&(e=!0),e}(),s=ps()||function(){const t=Me;let e=!1;return!(t(379)in Nt)&&t(532)in Nt&&Nt[t(532)]&&(Nt.ManagedMediaSource.isTypeSupported($.hev)||Nt[t(532)][t(609)]($[t(612)])||Nt[t(532)][t(609)]($[t(353)])||Nt[t(532)].isTypeSupported($[t(464)])||Nt[t(532)][t(609)]($.hev5))&&(e=!0),e}();this[e(771)].useMSE=t,this[e(771)][e(868)]&&this[e(771)].isH265&&(this[e(771)][e(868)]=s),!this[e(771)][e(868)]&&this[e(423)](this[e(240)],"\n useMSE is true,\n and supportMSE is "+t+e(457)+s+e(749)+this[e(771)][e(780)]+e(459))}}if(ci(this[e(771)].useMSE)&&(this[e(771)][e(736)]=!1),ci(this[e(771)][e(411)])&&(this._opt.wcsDecodeAudio=!1),this._opt.useMSE?(this[e(771)].useWCS&&this[e(423)](this[e(240)],e(637)),!this[e(771)][e(727)]&&this[e(423)](this[e(240)],e(579)),this[e(771)][e(411)]=!1,this[e(771)][e(727)]=!0):this[e(771)][e(411)],this[e(771)][e(821)]&&this[e(771)].demuxUseWorker&&(this.debugWarn(this[e(240)],e(769)),this[e(771)][e(857)]=!1),this[e(771)][e(561)]&&this._opt[e(857)]&&(this[e(423)](this[e(240)],e(444)),this._opt.demuxUseWorker=!1),this.isPlayVod()&&this[e(771)][e(857)]&&(this.debugWarn(this[e(240)],e(465)),this[e(771)][e(857)]=!1),this[e(771)][e(875)]&&this._opt[e(857)]&&(this[e(423)](this.TAG_NAME,"isAliyunRtc is true and demuxUseWorker is true then demuxUseWorker set true->false"),this[e(771)][e(857)]=!1),this[e(435)]()&&this[e(771)][e(857)]&&(this.debugWarn(this[e(240)],"is stream use webTransport is true and demuxUseWorker is true then demuxUseWorker set true->false"),this._opt[e(857)]=!1),this[e(771)][e(604)]&&this[e(771)][e(857)]&&(this[e(423)](this[e(240)],e(698)),this._opt[e(857)]=!1),ci(this[e(771)][e(857)])&&(this[e(771)][e(659)]=!1),(this.isPlayback()||this.isPlayVod())&&(this[e(771)].mseDecoderUseWorker=!1),this[e(771)][e(309)]&&(this[e(771)].useMThreading=typeof SharedArrayBuffer!==Me(491),!this[e(771)].useMThreading&&this[e(423)](this[e(240)],e(472))),this._opt.useSIMD||-1!==this[e(771)][e(485)][e(787)](e(229))){const t=WebAssembly[Me(338)](new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11])),s=di();this[e(771)][e(652)]=t&&ci(s),!this[e(771)][e(652)]&&this[e(423)](this.TAG_NAME,e(844)+t+e(486)+s+e(909))}if(this[e(771)][e(652)]?-1===this[e(771)][e(485)][e(787)](e(229))?this[e(771)][e(309)]?this[e(771)].isFFmpegSIMD?this[e(771)].decoder=this._opt[e(485)].replace("decoder-pro.js",e(427)):this[e(771)][e(485)]=this[e(771)][e(485)][e(301)](e(354),e(830)):this[e(771)].isFFmpegSIMD?this[e(771)][e(485)]=this[e(771)][e(485)][e(301)](e(354),e(184)):this[e(771)][e(485)]=this[e(771)][e(485)][e(301)]("decoder-pro.js",e(691)):this[e(771)][e(309)]&&(this[e(771)][e(408)]?this[e(771)][e(485)]=this._opt[e(485)][e(301)]("decoder-pro-simd.js","decoder-pro-f-simd-mt.js"):this[e(771)][e(485)]=this[e(771)].decoder[e(301)](e(691),e(830))):-1!==this[e(771)][e(485)].indexOf(e(229))?this[e(771)][e(309)]?this[e(771)].decoder=this[e(771)][e(485)][e(301)]("decoder-pro-simd.js","decoder-pro-mt.js"):this[e(771)][e(485)]=this[e(771)][e(485)][e(301)](e(691),e(354)):this[e(771)][e(309)]&&(this[e(771)][e(485)]=this[e(771)][e(485)][e(301)](e(354),e(843))),-1!==this[e(771)][e(485)].indexOf(e(229))?this[e(771)].useMThreading?(this[e(771)].decoderAudio=this[e(771)][e(485)][e(301)](e(830),"decoder-pro-audio.js"),this[e(771)][e(681)]=this[e(771)][e(485)][e(301)]("decoder-pro-simd-mt.js",e(224)),this[e(771)][e(788)]=this[e(771)][e(485)][e(301)](e(830),e(880)),this[e(771)][e(262)]=this[e(771)][e(485)].replace(e(830),e(513))):(this[e(771)][e(216)]=this[e(771)][e(485)][e(301)](e(691),e(835)),this._opt.decoderHard=this._opt.decoder.replace(e(691),e(224)),this[e(771)][e(788)]=this[e(771)].decoder[e(301)](e(691),e(880)),this[e(771)][e(262)]=this[e(771)][e(485)][e(301)](e(691),e(513))):this[e(771)][e(309)]?(this._opt[e(216)]=this._opt[e(485)].replace(e(843),e(835)),this[e(771)].decoderHard=this._opt.decoder.replace(e(843),e(224)),this[e(771)].decoderHardNotWasm=this._opt[e(485)].replace(e(843),"decoder-pro-hard-not-wasm.js"),this[e(771)].decoderOld=this[e(771)][e(485)][e(301)](e(843),"decoder-pro-old.js")):(this[e(771)][e(216)]=this[e(771)].decoder.replace(e(354),e(835)),this[e(771)][e(681)]=this[e(771)][e(485)][e(301)]("decoder-pro.js",e(224)),this[e(771)].decoderHardNotWasm=this[e(771)][e(485)][e(301)](e(354),e(880)),this[e(771)].decoderOld=this[e(771)][e(485)][e(301)](e(354),"decoder-pro-old.js")),ci(this._opt[e(264)])&&(this[e(771)][e(337)][e(651)]=!1),ci(this[e(771)][e(563)])&&(this[e(771)].operateBtns[e(612)]=!1,this._opt[e(337)].screenshot=!1,this[e(771)][e(337)][e(284)]=!1,this[e(771)][e(337)][e(610)]=!1,this._opt.operateBtns[e(671)]=!1,this[e(771)][e(337)][e(886)]=!1),this[e(771)][e(398)]&&0===this._opt.qualityConfig[e(635)]&&this[e(771)].operateBtns[e(671)]&&(this[e(771)][e(337)][e(671)]=!1,this[e(423)](this[e(240)],e(296))),hi(this[e(771)].useWebGPU)&&(this[e(771)].useWebGPU=function(){let t=!1;return Me(479)in navigator&&(t=!0),t}(),ci(this[e(771)][e(558)])&&this[e(423)](this.TAG_NAME,"useWebGPU is true, but not support so set useWebGPU false")),hi(this[e(771)][e(542)])&&(this[e(771)][e(542)]=ns(),ci(this[e(771)][e(542)])&&this.debugWarn(this[e(240)],e(241))),this[e(771)][e(868)]&&this._opt[e(327)]>this[e(771)][e(903)]&&(this[e(423)](this[e(240)],e(289)+this[e(771)].mseWaitVideoCanplayTimeout+e(512)+this[e(771)][e(903)]+e(230)),this._opt[e(327)]=Math[e(574)](this._opt.loadingTimeout-1,1)),this[e(771)][e(245)]=this._hasControl(),this[e(293)]=!1,this[e(642)]=!1,this._playbackPause=!1,this[e(609)]=!1,this[e(256)]=!1,this[e(213)]=!1,this[e(516)]=!1,this[e(708)]=!1,this._destroyLock=!1,this._closed=!1,this._checkHeartTimeout=null,this._checkLoadingTimeout=null,this[e(352)]=null,this._checkVisibleHiddenTimeout=null,this[e(713)]=null,this[e(387)]=!1,this[e(873)]={buf:0,netBuf:0,fps:0,maxFps:0,dfps:0,abps:0,vbps:0,ts:0,mseTs:0,currentPts:0,pTs:0,dts:0,mseVideoBufferDelayTime:0,isDropping:!1},this[e(566)]=[],this[e(588)]={},this[e(752)]=!1,this[e(283)]=!1,this[e(626)]=!1,this[e(259)]=!1,this[e(399)]={playInitStart:"",playStart:"",streamStart:"",streamResponse:"",demuxStart:"",decodeStart:"",videoStart:"",playTimestamp:"",streamTimestamp:"",streamResponseTimestamp:"",demuxTimestamp:"",decodeTimestamp:"",videoTimestamp:"",allTimestamp:""},this[e(696)]=0,this._audioTimestamp=0,this._latestAudioTimestamp=0,this[e(385)]=0,this[e(478)]=this[e(771)].defaultStreamQuality||"",!this[e(478)]&&this[e(771)][e(398)][e(635)]>0&&(this[e(478)]=this[e(771)].qualityConfig[0]||""),this[e(253)]=!0,this[e(285)]=null,this[e(882)]=null,this[e(605)]=[],this[e(368)]=[],this[e(584)]=[],this[e(219)]=null,this[e(650)]=null,this[e(841)]=null,this[e(402)]=null,this[e(462)]={},this._isStreamEnd=!1,this._startTimestamp=null,ci(this[e(771)][e(868)])&&ci(this[e(771)][e(411)])&&!this[e(322)]()&&!this[e(517)]()&&(this[e(771)][e(292)]=!0),(this[e(517)]()||this[e(322)]())&&(this[e(771)][e(563)]=!0,this._opt.hasAudio=!0),!this[e(771)][e(563)]&&(this[e(771)].useMSE=!1,this[e(771)][e(411)]=!1),this[e(771)][e(292)]&&(this[e(771)][e(185)]?this._opt.wasmUseVideoRender=!1:this._opt[e(455)]&&(this[e(771)][e(455)]=rs()&&ms()&&gs(),!this[e(771)][e(455)]&&this.debugWarn(this.TAG_NAME,e(469)),this[e(771)][e(455)]&&this[e(771)].wasmPlayAudioUseVideoRender&&(this[e(771)][e(515)]=function(){const t=Me;let e=!1;return t(569)in Nt&&"function"==typeof Nt[t(569)]&&(e=!0),e}(),!this[e(771)].wasmPlayAudioUseVideoRender&&this[e(423)](this[e(240)],e(820)))),this[e(771)][e(652)]?this.debugLog(this[e(240)],e(628)):this[e(648)](this.TAG_NAME,e(231))),this[e(771)].useWasm&&(this[e(771)][e(883)]&&window[e(207)]||this[e(771)].useObjectDetector&&window[e(294)]||this[e(771)][e(323)]&&window[e(653)]||this._opt[e(676)]&&window[e(870)])?(this.ai=new I_(this),!(this[e(771)][e(883)]&&window.JessibucaProFaceDetector)&&(this[e(771)][e(337)].aiFace=!1),!(this[e(771)].useObjectDetector&&window[e(294)])&&(this._opt[e(337)][e(782)]=!1),!(this._opt[e(323)]&&window[e(653)])&&(this[e(771)][e(337)][e(888)]=!1),this[e(771)][e(676)]&&this[e(771)][e(741)]&&window[e(870)]&&(this[e(266)]=!0)):(this[e(771)][e(337)][e(782)]=!1,this._opt[e(337)][e(504)]=!1,this[e(771)][e(337)].aiOcclusion=!1),this[e(771)][e(883)]&&(!this._opt[e(292)]||!window[e(207)])&&this[e(423)](this[e(240)],e(271)+this[e(771)][e(292)]+" and window.JbProFaceDetector is null"),this[e(771)][e(646)]&&(!this[e(771)][e(292)]||!window[e(294)])&&this.debugWarn(this[e(240)],e(510)+this._opt[e(292)]+e(255)),this[e(771)].useOcclusionDetector&&(!this._opt[e(292)]||!window.JessibucaProOcclusionDetector)&&this[e(423)](this[e(240)],"use occlusion detector, useWasm is "+this[e(771)][e(292)]+" and window.JessibucaProOcclusionDetector is null"),this[e(771)][e(676)]&&(!this[e(771)].useWasm||!window[e(870)])&&this[e(423)](this[e(240)],e(436)+this[e(771)][e(292)]+e(862)),this._opt[e(503)]&&(this[e(648)](this[e(240)],e(246)+this[e(771)][e(503)]),this._opt[e(503)]===f[e(729)]?(this[e(771)][e(668)]=!0,this._opt[e(733)]=!1):this[e(771)][e(503)]===f[e(572)]&&(this[e(771)][e(668)]=!1,this[e(771)][e(733)]=!0)),this._opt[e(668)]&&(this[e(771)][e(292)]&&!this[e(771)][e(185)]?(this[e(771)][e(455)]=rs()&&ms()&&gs(),!this[e(771)][e(455)]&&this[e(423)](this.TAG_NAME,e(469))):this[e(771)][e(411)]&&!this[e(771)][e(185)]&&(this[e(771)].wcsUseVideoRender=ms()&&gs(),!this[e(771)].wcsUseVideoRender&&this.debugWarn(this[e(240)],e(789)))),this._opt[e(733)]&&(this._opt[e(868)]&&ci(this[e(771)][e(659)])&&(this[e(771)][e(400)]=!0),this[e(771)].useWasm&&(this[e(771)][e(455)]=!1),this[e(771)][e(411)]&&(this[e(771)][e(790)]=!1),this[e(517)]()&&!ss()&&(this._opt.hlsUseCanvasRender=!0),this[e(322)]()&&(this[e(771)][e(415)]=!0)),this[e(771)].useVideoRender=!1,this[e(771)][e(733)]=!1,this[e(771)][e(292)]?this[e(771)][e(455)]?this[e(771)][e(668)]=!0:this[e(771)].useCanvasRender=!0:this[e(771)][e(411)]?this[e(771)][e(790)]?this[e(771)][e(668)]=!0:this[e(771)][e(733)]=!0:this[e(771)][e(868)]?this[e(771)].mseUseCanvasRender?this[e(771)][e(733)]=!0:this[e(771)][e(668)]=!0:this[e(517)]()?this._opt.hlsUseCanvasRender?this[e(771)][e(733)]=!0:this[e(771)][e(668)]=!0:this.isWebrtcH264()&&(this[e(771)][e(415)]?this[e(771)][e(733)]=!0:this[e(771)].useVideoRender=!0),this[e(771)][e(733)]&&this.useVideoPlayAudio()&&(this.debugLog(this[e(240)],"useCanvasRender is true and useVideoPlayAudio() return true, so set wcsDecodeAudio false"),this._opt[e(604)]=!1,this[e(771)][e(515)]=!1),(t=>{const e=_i;Object[e(212)](t,e(211),{get:()=>{const s=e;let i={width:0,height:0};return t[s(205)]&&(i=t.$container[s(201)](),i[s(214)]=Math[s(210)](i[s(214)],t[s(205)][s(213)]),i[s(209)]=Math[s(210)](i[s(209)],t[s(205)].clientHeight)),i}}),[e(207),e(209),e(203),e(204),e(197),e(214)][e(198)]((e=>{Object.defineProperty(t,e,{get:()=>t.rect[e]||0})}))})(this),this[e(817)]=new ki(this),this[e(274)]()&&(this[e(611)]=new g_(this,this[e(771)].playbackConfig)),this[e(569)]()&&(this[e(866)]=new wC(this,this[e(771)].playVodConfig)),this[e(771)][e(563)]&&(this[e(729)]=new Qn(this),this[e(243)]=new Ec(this)),this.isOldHls()?(this[e(645)]=new OE(this),this.loaded=!0):this[e(322)]()?(this[e(771)][e(745)]?this.webrtc=new sC(this):this._opt.isWebrtcForSRS?this[e(855)]=new G_(this):this._opt.isWebrtcForOthers?this[e(855)]=new Y_(this):this.webrtc=new Z_(this),this[e(615)]=!0):this[e(875)]()?(this[e(833)]=new oC(this),this[e(615)]=!0):(this.isUseHls265()&&(this[e(645)]=new Pk(this)),this[e(891)]()&&(this[e(855)]=new Z_(this)),this[e(682)]()&&(this.mp4Decoder=new u_(this)),ci(Hs(this[e(771)]))?this[e(270)]()?this[e(310)]=new Gc(this):this[e(310)]=new Uc(this):this.loaded=!0),this[e(305)]=null,this[e(528)]=null,this[e(826)]=null,this[e(839)]=null,this[e(658)]=!1,this[e(527)]=null,this[e(466)]=!1,this[e(365)]=!1,this[e(361)]=!1,this[e(562)]=!1,this[e(295)]=!1,this.isPlayFailedAndPaused=!1,this._seiList=[],this[e(597)]=null,this[e(771)][e(411)]&&!this._opt[e(264)]&&ci(this[e(771)][e(857)])&&(this[e(615)]=!0),this[e(771)][e(868)]&&ci(this[e(771)][e(659)])&&!this._opt[e(264)]&&ci(this._opt[e(857)])&&(this[e(615)]=!0),this[e(434)]=new Ym(this),this[e(771)][e(595)].length>0&&ci(this[e(771)][e(298)])&&Xe()?this[e(852)]=new __(this):hi(this[e(771)][e(298)])&&this._opt[e(595)][e(635)]>0&&Xe()&&this[e(423)](this[e(240)],e(521)),this._opt[e(337)][e(886)]&&(this[e(886)]=new v_(this)),function(){const t=Me;return/(iphone|ipad|ipod|ios|android)/i[t(396)](window[t(436)].userAgent.toLowerCase())}()&&ci(this[e(771)].supportLockScreenPlayAudio&&es())&&(this[e(760)]=new dg(this)),(t=>{const e=Di;try{const s=e=>{const s=Di;Ns(e)===t[s(207)]&&(t[s(214)](F.fullscreen,t[s(203)]),t.fullscreen?t._opt[s(221)]&&t.resize():t[s(216)]())};ee.on("change",s),t[e(246)][e(228)].push((()=>{const t=e;ee[t(192)](t(229),s)}))}catch(t){}if(t.on(M[e(237)],(()=>{const s=e;t.debugLog(s(249),"listen decoderWorkerInit and set loaded true"),t.loaded=!0})),t.on(M[e(201)],(()=>{t[e(202)]=!1})),t.on(M[e(203)],(s=>{const i=e;if(s)try{ee[i(220)](t.$container)[i(211)]((()=>{const e=i;t[e(243)](e(249),e(223))}))[i(239)]((e=>{const s=i;t.debugError(s(249),s(224),e,e[s(248)]()),t[s(219)](U[s(212)],e[s(248)]()),Je()&&t[s(226)][s(200)]&&(t[s(193)]=!0)}))}catch(e){Je()&&t._opt.useWebFullScreen&&(t[i(193)]=!0)}else try{ee.exit()[i(211)]((()=>{const e=i;t[e(243)](e(249),e(231)),t[e(193)]&&(t[e(193)]=!1)}))[i(239)]((e=>{const s=i;t[s(240)](s(249),s(205),e,e.toString()),t.emitError(U[s(212)],e[s(248)]()),t[s(193)]&&(t[s(193)]=!1)}))}catch(e){t[i(193)]&&(t[i(193)]=!1)}})),Je()&&t.on(M[e(193)],(s=>{const i=e;s?t[i(207)][i(241)][i(197)]("jb-pro-fullscreen-web"):t[i(207)][i(241)][i(199)](i(210)),t.emit(F[i(203)],t.fullscreen)})),t.on(M[e(216)],(()=>{t[e(216)]()})),t[e(226)][e(242)]){const s=[M[e(251)],M[e(222)],M.videoSEI,M[e(236)],M[e(198)],M.videoSmooth],i=[M[e(206)],M[e(247)],M.playbackTimestamp,M[e(245)],M[e(209)],M[e(233)],M[e(217)]];Object[e(213)](M).forEach((e=>{t.on(M[e],(function(r){const n=Di;if(!s[n(194)](e)){i.includes(e)&&(r=JSON[n(191)](r));for(var o=arguments[n(244)],a=new Array(o>1?o-1:0),h=1;h<o;h++)a[h-1]=arguments[h];t[n(243)](n(234),M[e],r,...a)}}))})),Object[e(213)](U)[e(195)]((e=>{t.on(U[e],(function(){const s=Di;for(var i=arguments[s(244)],r=new Array(i),n=0;n<i;n++)r[n]=arguments[n];t[s(204)]("player event error",U[e],...r)}))}))}})(this),Xm(this),vi()&&this[e(771)][e(672)].content){const t=Object.assign({},this[e(771)].ghostWatermarkConfig,{isGhost:!0});this[e(851)]=new fC(this,t)}if(Si()){const t=Object.assign({},this._opt.ghostWatermarkConfig,{isGhost:!0});this[e(851)]=new fC(this,t)}vi()&&this[e(771)][e(508)].content&&(this[e(594)]=new fC(this,this[e(771)][e(508)])),Si()&&(this[e(594)]=new fC(this,this._opt[e(508)])),Bs(this[e(771)].watermarkConfig)&&this.updateWatermark(this._opt[e(523)]),this[e(771)][e(411)]&&this[e(648)](this[e(240)],e(591)),this._opt[e(868)]&&(this._opt[e(659)]?this[e(648)](this[e(240)],"use worker MSE"):this[e(648)](this[e(240)],e(815))),this._opt[e(185)]&&this.debugLog(this[e(240)],e(249)),this[e(771)][e(561)]&&(this[e(771)][e(677)]?this[e(648)](this[e(240)],e(441)):this[e(648)](this[e(240)],e(793))),this[e(771)][e(821)]&&(this[e(771)][e(891)]?this[e(648)](this[e(240)],e(401)):this[e(771)][e(745)]?this[e(648)](this[e(240)],e(874)):this[e(771)][e(261)]?this[e(648)](this[e(240)],e(755)):this[e(771)][e(273)]?this.debugLog(this.TAG_NAME,e(867)):this[e(648)](this.TAG_NAME,"use webrtc for M7S")),this.isAliyunRtc()&&this.debugLog(this[e(240)],"use aliyun rtc"),this[e(771)][e(187)]&&this[e(648)](this[e(240)],e(349)),this._opt[e(687)]&&this[e(648)](this[e(240)],e(487)),this[e(274)]()&&this[e(648)](this[e(240)],e(326)),this[e(569)]()&&this[e(648)](this[e(240)],e(426)),this[e(771)][e(563)]&&(0===this[e(355)]&&this[e(423)](this[e(240)],e(842)),0===this.height&&this[e(423)](this[e(240)],"container height is 0, please check the container height"));try{this[e(648)]("Player options",JSON[e(438)](this._opt))}catch(t){this[e(648)](e(707),this[e(771)])}}async[_C(383)](){const t=_C;if(this[t(648)](this[t(240)],t(383)),this[t(529)])return new Error(t(819));this[t(529)]=!0,this._destroyed=!0,this[t(433)](M[t(383)]),this.off(),this.events&&(this.events[t(383)](),this[t(817)]=null),this.clearCheckLoadingTimeout(),this[t(887)](),this.clearVisibilityHiddenTimeout(),this[t(310)]&&(await this[t(310)][t(383)](),this[t(310)]=null),await this._destroy(),this[t(529)]=!1}async[_C(657)](){const t=_C;this[t(293)]=!1,this[t(642)]=!1,this[t(767)]=!1,this[t(256)]=!1,this._lastVolume=null,this._isMute=null,this[t(213)]=!1,this[t(516)]=!1,this[t(752)]=!1,this[t(283)]=!1,this[t(626)]=!1,this[t(259)]=!1,this[t(399)]={playInitStart:"",playStart:"",streamStart:"",streamResponse:"",demuxStart:"",decodeStart:"",videoStart:"",playTimestamp:"",streamTimestamp:"",streamResponseTimestamp:"",demuxTimestamp:"",decodeTimestamp:"",videoTimestamp:"",allTimestamp:""},this[t(362)]&&(this[t(362)][t(383)](),this[t(362)]=null),this[t(851)]&&(this[t(851)][t(383)](),this[t(851)]=null),this[t(594)]&&(this[t(594)][t(383)](),this.dynamicWatermark=null),this[t(757)]&&(this.pressureObserverCpu[t(383)](),this.pressureObserverCpu=null),this.stream&&(await this[t(305)].destroy(),this[t(305)]=null),this.hlsDecoder&&(await this[t(645)][t(383)](),this[t(645)]=null),this[t(357)]&&(this.mseDecoder[t(383)](),this[t(357)]=null),this[t(855)]&&(this.webrtc[t(383)](),this[t(855)]=null),this[t(833)]&&(this[t(833)].destroy(),this[t(833)]=null),this.video&&(await this[t(729)][t(383)](),this[t(729)]=null),this[t(651)]&&(await this.audio[t(383)](),this[t(651)]=null),this.recorder&&(this[t(243)][t(383)](),this.recorder=null),this[t(434)]&&(this[t(434)].destroy(),this[t(434)]=null),this[t(837)]&&(await this.webcodecsDecoder[t(383)](),this[t(837)]=null),this.mp4Decoder&&(await this.mp4Decoder[t(383)](),this[t(205)]=null),this.demux&&(this.demux[t(383)](),this[t(528)]=null),this[t(611)]&&(this.playback[t(383)](),this[t(611)]=null),this[t(866)]&&(this[t(866)].destroy(),this[t(866)]=null),this.zoom&&(this[t(886)].destroy(),this[t(886)]=null),this[t(560)]&&(this[t(560)][t(383)](),this.drawRectangle=null),this.ai&&(this.ai[t(383)](),this.ai=null),this.keepScreenOn&&(this[t(662)](),this.keepScreenOn[t(383)](),this.keepScreenOn=null),this[t(754)](),this[t(773)]=0,this[t(519)]=0,this._videoTimestamp=0,this[t(478)]="",this[t(253)]=!0,this[t(658)]=!1,this[t(527)]=null,this[t(285)]=null,this[t(385)]=null,this[t(882)]=null,this[t(584)]=[],this[t(451)]=[],this[t(219)]={},this[t(650)]=null,this[t(841)]=null,this[t(402)]=null,this._mseWorkerData={},this[t(480)]=!1,this[t(730)]=null,this.isMSEVideoDecoderInitializationFailedNotSupportHevc=!1,this[t(365)]=!1,this[t(361)]=!1,this[t(562)]=!1,this[t(295)]=!1,this.isPlayFailedAndPaused=!1,this[t(597)]=null,this[t(648)]("play","destroy end"),this[t(771)]={},this[t(194)]=null,this[t(775)]=null}set fullscreen(t){const e=_C;Je()&&this[e(771)][e(812)]?this[e(425)]=t:this[e(433)](M[e(612)],t)}get[_C(612)](){return cs()||this.webFullscreen}set[_C(425)](t){const e=_C;this[e(433)](M[e(425)],t),setTimeout((()=>{const s=e;this[s(742)]({rotate:t?270:0}),this[s(667)]()}),10)}get[_C(425)](){const t=_C;return this[t(194)][t(518)][t(316)](t(701))}set[_C(615)](t){this[_C(256)]=t}get loaded(){const t=_C;return this._hasLoaded||this[t(517)]()||this[t(322)]()||this._opt[t(868)]&&ci(this[t(771)][t(264)])&&ci(this._opt.demuxUseWorker)||this[t(771)].useWCS&&!this[t(771)][t(264)]&&ci(this[t(771)].demuxUseWorker)}set[_C(446)](t){const e=_C;this[e(889)]()&&t?this[e(648)](this[e(240)],e(547)):(t&&hi(this[e(336)])&&(this[e(336)]=!1),this[e(446)]!==t&&(this._playing=t,this[e(433)](M[e(446)],t),t?(this[e(433)](M[e(389)],this.volume),this.emit(M[e(906)])):this.emit(M.pause)))}get[_C(446)](){return this._playing}get volume(){const t=_C;return this[t(651)]&&this.audio[t(890)]||0}set[_C(890)](t){const e=_C;t!==this[e(890)]&&(this[e(651)]?(this[e(651)][e(860)](t),this[e(826)]=this.volume,this[e(839)]=0===this.volume):this[e(423)](this.TAG_NAME,e(750)))}get lastVolume(){return this[_C(826)]}set loading(t){const e=_C;this[e(336)]!==t&&(this._loading=t,this[e(433)](M[e(336)],this._loading))}get loading(){return this[_C(293)]}set[_C(748)](t){const e=_C;this[e(297)]()||this.zooming!==t&&(!this[e(886)]&&(this[e(886)]=new v_(this)),this[e(213)]=t,this[e(433)](M[e(748)],this[e(748)]))}get[_C(748)](){return this[_C(213)]}set[_C(798)](t){const e=_C;this[e(297)]()||this.drawingRect!==t&&(!this.drawRectangle&&(this[e(560)]=new yC(this)),this[e(516)]=t,this.emit(M.drawingRect,this[e(798)]))}get[_C(798)](){return this._drawingRect}set recording(t){const e=_C;t?this.playing&&!this[e(372)]&&(this.recorder&&this[e(243)][e(663)](),this.isDemuxInWorker()&&this[e(310)]&&this.decoderWorker[e(781)]({key:e(403),value:!0})):this[e(372)]&&(this[e(308)]()&&this[e(310)]&&this[e(310)][e(781)]({key:e(403),value:!1}),this[e(243)]&&this[e(243)][e(791)]()[e(751)]((()=>{}))[e(363)]((t=>{})))}get[_C(372)](){return!!this[_C(243)]&&this.recorder.isRecording}set[_C(248)](t){null!==t&&(this[_C(773)]=t)}get[_C(248)](){return this[_C(773)]}set[_C(885)](t){null!==t&&(this._latestAudioTimestamp=t)}get latestAudioTimestamp(){return this[_C(519)]}get videoTimestamp(){const t=_C;return this[t(873)][t(898)]||this[t(873)].ts}set streamQuality(t){const e=_C;this[e(738)]!==t&&(this._streamQuality=t,this.emit(M[e(634)],t))}get[_C(738)](){return this[_C(478)]}get isDebug(){const t=_C;return hi(this[t(771)][t(775)])}get[_C(647)](){const t=_C,e=this[t(771)],s=e.isResize,i=e[t(204)];let r=J[t(583)];return ci(i)&&ci(s)?r=J.full:ci(i)&&hi(s)?r=J.auto:hi(i)&&hi(s)&&(r=J[t(345)]),r}set[_C(437)](t){const e=_C;this[e(253)]!==t&&(this._visibility=t,this[e(433)](M[e(214)],t),this[e(285)]=je(),t?this[e(629)]():this[e(267)]())}get[_C(437)](){return this[_C(253)]}set[_C(393)](t){const e=_C;this[e(767)]!==t&&(this._playbackPause=t,this[e(433)](M.playbackPause,t),this[e(433)](M[e(520)],t),hi(t)&&this[e(372)]&&(this.debugLog(this[e(240)],e(302)),this[e(372)]=!1))}get playbackPause(){return this[_C(274)]()&&this._playbackPause}set playVodPause(t){const e=_C;this[e(866)]&&(this[e(866)].isEnded()&&ci(t)?this[e(433)](M.playVodEndedAndReplay):this[e(609)]!==t&&(this._playVodPause=t,this[e(433)](M.playVodPause,t),this[e(433)](M.playVodPauseOrResume,t),hi(t)&&this.recording&&(this[e(648)](this[e(240)],e(220)),this.recording=!1)))}get[_C(413)](){const t=_C;return this[t(569)]()&&this[t(609)]}set videoIframeIntervalTs(t){this[_C(385)]=t}get[_C(531)](){return this[_C(385)]}set faceDetectActive(t){const e=_C;this[e(752)]!==t&&(this[e(752)]=t,this[e(433)](M[e(670)],t))}get faceDetectActive(){return this[_C(752)]}set[_C(358)](t){const e=_C;this[e(283)]!==t&&(this[e(283)]=t,this[e(433)](M[e(358)],t))}get[_C(358)](){return this[_C(283)]}set[_C(430)](t){const e=_C;this[e(626)]!==t&&(this[e(626)]=t,this[e(433)](M[e(430)],t))}get[_C(430)](){return this[_C(626)]}set[_C(266)](t){const e=_C;this[e(259)]!==t&&(this[e(259)]=t)}get imageDetectActive(){return this[_C(259)]}get[_C(807)](){const t=_C;return this.stream&&this[t(305)][t(627)]()===h.worker}[_C(623)](){return this[_C(708)]}[_C(300)](){const t=_C;return this[t(708)]&&this[t(529)]}[_C(889)](){return this[_C(800)]}[_C(297)](){const t=_C;return this[t(623)]()||this[t(889)]()}isLoading(){return this.loading}[_C(239)](){const t=_C;let e=!1;return this[t(688)]()?e=this[t(446)]:this[t(274)]()?e=ci(this[t(393)])&&this[t(446)]:this[t(569)]()&&(e=ci(this.playVodPause)&&this[t(446)]),e}[_C(742)](t){const e=_C;let s=arguments[e(635)]>1&&void 0!==arguments[1]&&arguments[1];this._opt=Object[e(467)]({},this[e(771)],t),hi(s)&&this[e(310)]&&Object[e(530)](t)[e(540)]((s=>{const i=e;this.decoderWorker[i(781)]({key:s,value:t[s]})}))}[_C(621)](){return new Promise(((t,e)=>{const s=RC;mi()&&(this[s(757)]=new lC(this)),!this.video&&this[s(771)][s(563)]&&(this[s(729)]=new Qn(this)),!this[s(651)]&&this._opt[s(264)]&&(this[s(651)]=new Ko(this)),!this[s(305)]&&(this[s(305)]=new ja(this)),this.isOldHls()?(!this[s(645)]&&(this[s(645)]=new OE(this),this.loaded=!0),t()):this.isWebrtcH264()?(this.webrtc||(this[s(771)][s(745)]?this.webrtc=new sC(this):this[s(771)][s(261)]?this[s(855)]=new G_(this):this[s(771)][s(273)]?this[s(855)]=new Y_(this):this[s(855)]=new Z_(this),this[s(615)]=!0),t()):this[s(875)]()?(!this.aliyunRtcDecoder&&(this[s(833)]=new oC(this),this[s(615)]=!0),t()):(!this[s(528)]&&this[s(771)][s(563)]&&!this[s(807)]&&(this.demux=new Yf(this)),this._opt[s(411)]&&!this[s(837)]&&(this[s(837)]=new pm(this),!this[s(771)][s(264)]&&ci(this[s(771)].demuxUseWorker)&&(this[s(615)]=!0)),this._opt.useMSE&&ci(this[s(771)][s(659)])&&!this[s(357)]&&(this[s(357)]=new ng(this),!this[s(771)][s(264)]&&ci(this[s(771)][s(857)])&&(this[s(615)]=!0)),this.isUseHls265()&&!this.hlsDecoder&&(this[s(645)]=new Pk(this)),this[s(891)]()&&!this[s(855)]&&(this[s(855)]=new Z_(this)),this[s(682)]()&&!this[s(205)]&&(this[s(205)]=new u_(this)),this[s(310)]?this[s(615)]?t():this.once(M[s(828)],(()=>{const i=s;this.isDestroyedOrClosed()?(this.debugError(this[i(240)],"init() failed and player is destroyed"),e("init() failed and player is destroyed")):(this[i(615)]=!0,t())})):ci(Hs(this._opt))?(this[s(270)]()?this[s(310)]=new Gc(this):this[s(310)]=new Uc(this),this[s(753)](M[s(828)],(()=>{const i=s;this[i(297)]()?(this[i(524)](this[i(240)],i(303)),e(i(303))):(this[i(615)]=!0,t())}))):t())}))}[_C(906)](t){const e=_C;let s=arguments[e(635)]>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(((i,r)=>{const n=e;if(!t&&!this[n(771)].url)return r(n(639));this[n(800)]=!1,this[n(336)]=!0,this[n(446)]=!1,this[n(399)][n(910)]=je(),!t&&(t=this[n(771)][n(630)]),this[n(771)].url=t,this[n(434)]&&this[n(771)][n(454)]&&this[n(434)].initLoadingBackground(),this.init()[n(751)]((()=>{const e=n;if(this[e(648)](this.TAG_NAME,e(371)),this[e(399)].playStart=je(),this[e(771)][e(333)]&&this[e(416)](!1),this[e(881)](),this[e(720)](),this[e(305)]){if(this[e(305)][e(753)](U[e(452)],(t=>{const s=e;this.emitError(U[s(452)],t),r(t)})),this[e(305)][e(753)](U.hlsError,(t=>{const s=e;this[s(456)](U[s(338)],t),r(t)})),this[e(305)][e(753)](U[e(330)],(t=>{const s=e;this[s(456)](U[s(330)],t),r(t)})),this[e(305)][e(753)](M[e(834)],(()=>{const t=e;if(i(),this[t(399)][t(802)]=je(),this[t(729)]&&this.video[t(906)](),this[t(699)](),this[t(274)]()&&this[t(611)]?(this[t(611)][t(598)](),this[t(611)][t(661)]()):this[t(569)]()&&this[t(866)]&&this[t(866)][t(598)](),Si()){const e=Number("1")||1;setTimeout((()=>{const e=t;this[e(383)](),console[e(251)](decodeURIComponent(Kt)),alert(decodeURIComponent(Ht)),window.location[e(717)]()}),60*e*60*1e3)}})),wi())return r(decodeURIComponent(Ht));this[e(305)][e(318)](t,s)}else this[e(423)](this[e(240)],e(795)+this[e(297)]()),r("this.stream is null")})).catch((t=>{r(t)}))}))}playForControl(){return new Promise(((t,e)=>{const s=RC;this[s(648)](this.TAG_NAME,s(799)+this[s(771)][s(606)]),this[s(771)][s(606)]&&this[s(219)]&&this[s(219)][s(454)]&&this[s(742)]({loadingBackground:this._tempInnerPlayBgobj[s(454)],loadingBackgroundWidth:this._tempInnerPlayBgobj.loadingBackgroundWidth,loadingBackgroundHeight:this[s(219)][s(879)]}),this[s(906)]()[s(751)]((e=>{t(e)}))[s(363)]((t=>{e(t)}))}))}close(){return new Promise(((t,e)=>{const s=RC;this[s(499)]()[s(751)]((()=>{const e=s;this[e(729)]&&this[e(729)][e(732)](),t()}))[s(363)]((t=>{e(t)}))}))}[_C(288)](){const t=_C;this[t(884)]&&ci(this._isMute)&&(this[t(890)]=this[t(884)])}async _close(){const t=_C;this[t(800)]=!0,this[t(729)]&&(this.video[t(785)](),this.video[t(806)](!0)),this[t(336)]=!1,this[t(372)]=!1,this[t(748)]=!1,this.clearCheckLoadingTimeout(),this.clearStatsInterval(),this[t(274)]()&&this.playback&&this[t(611)][t(887)](),this[t(569)]()&&this[t(866)]&&this[t(866)][t(887)](),this[t(662)](),this[t(754)](),this[t(773)]=0,this[t(696)]=0,this[t(399)]={playInitStart:"",playStart:"",streamStart:"",streamResponse:"",demuxStart:"",decodeStart:"",videoStart:"",playTimestamp:"",streamTimestamp:"",streamResponseTimestamp:"",demuxTimestamp:"",decodeTimestamp:"",videoTimestamp:"",allTimestamp:""},this[t(310)]&&(await this[t(310)][t(383)](),this.decoderWorker=null),this[t(305)]&&(await this[t(305)][t(383)](),this[t(305)]=null),this[t(528)]&&(this.demux.destroy(),this[t(528)]=null),this[t(837)]&&(await this.webcodecsDecoder[t(383)](),this[t(837)]=null),this[t(357)]&&(this[t(357)].destroy(),this[t(357)]=null),this[t(645)]&&(await this[t(645)].destroy(),this[t(645)]=null),this[t(855)]&&(this.webrtc[t(383)](),this.webrtc=null),this.aliyunRtcDecoder&&(this.aliyunRtcDecoder[t(383)](),this[t(833)]=null),this[t(651)]&&(await this[t(651)].destroy(),this.audio=null),this[t(205)]&&(await this[t(205)][t(383)](),this[t(205)]=null),this.playing=!1}pause(){const t=_C;let e=arguments[t(635)]>0&&void 0!==arguments[0]&&arguments[0];return new Promise(((s,i)=>{const r=t;e?this[r(272)]()[r(751)]((()=>{s()})).catch((t=>{i(t)})):this[r(499)]()[r(751)]((()=>{s()}))[r(363)]((t=>{i(t)}))}))}[_C(244)](){return new Promise(((t,e)=>{const s=RC;if(this[s(648)](this.TAG_NAME,s(557)),this[s(771)][s(606)]&&this[s(729)]){const t=this[s(729)][s(331)]("",s(464),.92,s(366));if(t){const e=this[s(329)]();e?(this.debugLog(this[s(240)],s(620)+e[s(355)]+s(496)+e[s(394)]),this[s(219)]={loadingBackground:t,loadingBackgroundWidth:e[s(355)],loadingBackgroundHeight:e.height}):this[s(423)](this[s(240)],s(341))}else this[s(423)](this.TAG_NAME,"pauseForControl() and loadingBackground is null")}this[s(806)]()[s(751)]((e=>{t(e)}))[s(363)]((t=>{e(t)}))}))}[_C(846)](){const t=_C;let e=!0;return this.audio&&(e=this[t(651)][t(856)]),e}[_C(525)](){return!this[_C(846)]()}[_C(416)](t){const e=_C;this.audio&&this[e(651)].mute(t)}resize(){const t=_C;this.video&&this[t(729)].resize()}[_C(663)](t,e){const s=_C;this[s(372)]||(this[s(243)][s(379)](t,e),this[s(372)]=!0)}[_C(728)](){return new Promise(((t,e)=>{const s=RC;!this.recorder&&e(s(618)),this.recording&&(this[s(771)][s(292)]&&this[s(310)]&&this[s(310)][s(781)]({key:s(403),value:!1}),this[s(243)][s(728)]()[s(751)]((()=>{t()}))[s(363)]((t=>{e(t)})))}))}[_C(791)](t,e){return new Promise(((s,i)=>{const r=RC;!this[r(243)]&&i("recorder is null"),this.recording?(this[r(771)][r(292)]&&this[r(310)]&&this[r(310)][r(781)]({key:r(403),value:!1}),this.recorder.stopRecordAndSave(t,e)[r(751)]((t=>{s(t)}))[r(363)]((t=>{i(t)}))):i(r(641))}))}_hasControl(){const t=_C;let e=!1,s=!1;return Object[t(530)](this[t(771)].operateBtns)[t(540)]((e=>{const i=t;this[i(771)][i(337)][e]&&-1===(""+e)[i(787)]("Fn")&&(s=!0)})),(this._opt[t(854)]||s)&&(e=!0),this[t(771)][t(188)]&&this[t(771)].extendOperateBtns[t(635)]>0&&(e=!0),this[t(274)]()&&this._opt[t(803)][t(774)]&&(e=!0),this[t(569)]()&&(e=!0),this[t(771)][t(359)]&&(e=!0),e}[_C(649)](){const t=_C;return ci(this[t(771)][t(868)])&&ci(this._opt[t(411)])}canVideoTrackWritter(){const t=_C,e=this[t(771)];return!this[t(517)]()&&!this[t(322)]()&&ci(e[t(868)])&&!this[t(875)]()&&(e[t(411)]&&ci(e[t(185)])&&e[t(790)]||this.useWasmDecode())}[_C(552)](){const t=_C;if(ci(this[t(393)])&&ci(this[t(413)])&&this[t(446)]){if(this[t(297)]())return void this[t(423)](this[t(240)],t(382));if(ci(this[t(227)]()))return void this[t(423)](this.TAG_NAME,"checkHeartTimeout$2 but fps is not all zero");if(0!==this._stats[t(840)])return void this[t(423)](this.TAG_NAME,t(428)+this[t(873)][t(840)]);const e=this._historyFpsList[t(704)](",");this.debugWarn(this[t(240)],t(202)+this[t(873)].vbps+" and\n current fps is "+this._stats[t(840)]+t(832)+e+t(734)+this[t(437)]+t(242)),this[t(433)](M[t(347)],M[t(573)]),this[t(433)](M[t(573)])}else this[t(648)](this[t(240)],t(460)+this[t(393)]+t(395)+this[t(446)])}[_C(699)](){const t=_C;this[t(352)]=setInterval((()=>{this[t(747)]()}),1e3)}[_C(720)](){const t=_C;this.isPlayVod()?this[t(648)](this[t(240)],"checkLoadingTimeout and is playVod so return"):this[t(709)]=setTimeout((()=>{const e=t;this.playing?this.debugWarn(this[e(240)],e(853)+this[e(336)]+e(360)+this.playing):this.isDestroyedOrClosed()?this[e(423)](this[e(240)],e(777)):(this.debugWarn(this[e(240)],e(319)),this[e(433)](M[e(347)],M[e(903)]),this[e(433)](M[e(903)]))}),1e3*this._opt[t(903)])}[_C(905)](){const t=_C;this[t(709)]&&(this[t(648)](this.TAG_NAME,t(905)),clearTimeout(this[t(709)]),this[t(709)]=null)}[_C(887)](){const t=_C;this[t(352)]&&(clearInterval(this[t(352)]),this[t(352)]=null)}handleRender(){const t=_C;this.isDestroyedOrClosed()?this.debugLog(this[t(240)],t(381)):(this[t(336)]&&(this[t(905)](),this.loading=!1,this[t(433)](M[t(432)]),this[t(849)]()),!this[t(446)]&&(this[t(446)]=!0))}[_C(849)](){const t=_C,e=ls(this.$container);(e||this[t(425)])&&(this[t(648)](this[t(240)],t(346)+e+t(823)+this[t(425)]),this[t(612)]=!0,this[t(433)](M[t(616)]))}[_C(747)](){const t=_C;let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this[t(297)]())return void this[t(648)](this[t(240)],t(211));if(!this[t(713)]&&(this[t(713)]=je(),this[t(730)]=this[t(713)]),vs(e.ts)){const s=parseInt(e.ts,10);this[t(873)].ts=s,this[t(566)][t(786)](s),null===this[t(527)]&&s>0&&(this[t(527)]=s)}vs(e[t(373)])&&(this[t(873)][t(373)]=parseInt(e[t(373)],10)),vs(e[t(814)])&&(this[t(873)][t(814)]=e[t(814)]),vs(e[t(502)])&&(this[t(873)][t(502)]=e[t(502)]),vs(e[t(801)])&&(this._stats[t(801)]=e[t(801)]),vs(e[t(898)])&&(this[t(873)].currentPts=e[t(898)]),e[t(840)]&&(this._stats[t(840)]+=1),e[t(792)]&&(this[t(873)][t(792)]+=1),e.abps&&(this._stats.abps+=e[t(490)]),e.vbps&&(this[t(873)].vbps+=e[t(475)]),e[t(824)]&&(this[t(882)]=e.workerStats),e[t(380)]&&(this._stats[t(380)]=e.isDropping),e[t(198)]&&(this[t(873)][t(198)]=parseInt(1e3*e[t(198)],10));const s=je();if(s-this[t(713)]<1e3)return;null!==this[t(527)]&&this[t(873)].fps>0&&(this[t(873)][t(697)]+=1);let i=0,r=0,n=0,o=0,a=0;this[t(776)]()&&this[t(771)][t(868)]&&(this[t(357)]?(i=this[t(357)][t(845)](),i=parseInt(1e3*i,10),r=this.mseDecoder[t(275)](),r=r[t(458)](2),o=this[t(357)][t(324)](),a=this[t(357)][t(784)]()):this[t(470)]()&&(i=this.video[t(845)](),i=parseInt(1e3*i,10),r=this[t(729)][t(275)](),r=r[t(458)](2),o=this[t(729)][t(324)]())),this[t(771)][t(411)]&&this[t(837)]&&(n=this.webcodecsDecoder[t(607)]()),this[t(517)]()&&this.hlsDecoder&&(i=this.hlsDecoder[t(690)](),i=parseInt(1e3*i,10));let h=0,c=0,l=0;this[t(575)]()&&this[t(645)]&&(i=this.hlsDecoder.checkHlsBufferedDelay(),i=i[t(458)](2),h=this[t(645)].getDemuxBufferedListLength(),l=this[t(645)][t(772)](),c=this[t(645)][t(644)]());let u=0,p=0,f=0,m=!1,g=0,A=0;this[t(308)]()?this[t(882)]&&(p=this._tempWorkerStats[t(764)],f=this[t(882)].audioDemuxBufferDelay,u=this[t(882)][t(825)],this._stats.netBuf=this[t(882)].netBuf,g=this[t(882)][t(419)],m=this[t(882)][t(476)],this[t(873)].buf=this[t(882)][t(367)],A=this[t(882)][t(692)]):this[t(528)]&&(u=this[t(528)][t(859)](),g=this[t(528)][t(304)](),m=this.demux[t(287)](),this[t(528)][t(397)]&&(p=this.demux[t(397)].length));let y=0,b=0;this.audio&&this[t(651)][t(397)]&&(y=this[t(651)][t(397)][t(635)],b=parseInt(y*this.audio[t(386)],10));let v=0,S=0;if(this[t(274)]()){if(this.video){this[t(771)][t(803)][t(679)]&&(v=this[t(729)][t(397)]&&this.video[t(397)][t(635)]||0);let e=this.video[t(770)]();const s=e>0?1e3/e:0;S=parseInt(s*v+s*p,10)}}else this[t(569)]()&&this[t(729)]&&(v=this[t(729)][t(397)]&&this[t(729)][t(397)][t(635)]||0);let w=0;this[t(190)]>0&&(w=this[t(873)][t(373)]-this[t(190)]);const E=w+this[t(873)][t(801)];this[t(517)]()&&(this[t(873)][t(840)]=this[t(645)][t(675)]()),this[t(873)][t(840)]>this[t(873)].maxFps&&(this[t(873)][t(203)]=this._stats[t(840)]);let I=this[t(831)]();const T=this._stats[t(370)];let k=-1;T&&I&&(k=os((I-T)[t(458)](2)),I=I[t(458)](2));let _=0;this.audioTimestamp>0&&(_=this[t(248)]-this.getRenderCurrentPts()),this[t(588)]=Object[t(467)](this[t(873)],{audioBuffer:y,audioBufferDelayTs:b,audioTs:this.audioTimestamp,latestAudioTs:this[t(885)],playbackVideoBuffer:v,playbackVideoWaitingBuffer:0,playbackAudioWaitingBuffer:0,playbackCacheDataDuration:S,demuxBuffer:p,pushLatestDelay:g,audioDemuxBuffer:f,streamBuffer:u,mseDelay:i,mseStore:r,mseDecodePlaybackRate:o,msePendingBuffer:a,wcsDecodeDiffTimes:n,wasmDecodeDelay:A,hlsDelay:i,hlsDemuxLength:h,hlsDemuxAudioLength:c,hlsDemuxVideoLength:l,delayTs:w,totalDelayTs:E,isStreamTsMoreThanLocal:m,videoCurrentTime:I,videoCurrentTimeDiff:k,audioSyncVideo:_});let C=null,R=null,D="";if(this[t(688)]()&&this[t(771)][t(563)]&&this[t(446)]){C=function(t,e){let s=3;const i=e||25;return t<=i*(1/4)?s=0:t<=.5*i?s=1:t<=i*(3/4)&&(s=2),s}(this[t(873)][t(840)],this[t(841)]),this[t(588)][t(268)]=C;const e=this[t(570)](this[t(588)]);D=e[t(406)],R=e[t(656)],this[t(588)].videoSmooth=R}if(this[t(433)](M[t(838)],this._allStatsData),this[t(588)][t(907)]>this[t(771)][t(481)]&&this[t(392)]()===d.flv&&this[t(433)](U.flvDemuxBufferSizeTooLarge,this[t(588)][t(907)]),this[t(771)].hasVideo?(this[t(390)](this[t(873)][t(840)],this[t(588)][t(829)]),vs(C)&&this[t(433)](M[t(268)],C),vs(R)&&this.emit(M.videoSmooth,R,D)):this[t(771)].hasAudio&&this.updateHistoryFpsList(this._stats[t(490)],0),this[t(873)][t(840)]=0,this._stats[t(792)]=0,this._stats[t(490)]=0,this[t(873)][t(475)]=0,this._tempTsList=[],this._stats[t(380)]=!1,this[t(713)]=s,Si()){const e=s-this[t(730)];e>60*(Number("1")||1)*60*1e3&&Si()&&this[t(383)]()}}[_C(549)](){this._startBpsTime=null}[_C(754)](){const t=_C;this[t(713)]=null,this[t(527)]=null,this[t(605)]=[],this[t(368)]=[],this[t(873)]={buf:0,netBuf:0,fps:0,maxFps:0,dfps:0,abps:0,vbps:0,ts:0,mseTs:0,currentPts:0,pTs:0,dts:0,mseVideoBufferDelayTime:0,isDropping:!1},this[t(588)]={},this[t(566)]=[]}[_C(570)](t){const e=_C;let s=!0,i="";if(this._opt[e(269)],this[e(771)][e(714)],this[e(322)]()||this[e(517)]())return{result:s,reason:i};if(0===t[e(475)]&&ci(this[e(771)][e(561)])&&(i="vbpsIsZero",this[e(648)](this[e(240)],"checkVideoSmooth false because "+i),s=!1),s&&t[e(380)]&&(i=e(483),this[e(648)](this[e(240)],e(215)+i),s=!1),s&&this[e(437)]&&this[e(605)][e(635)]>=this._opt[e(735)]){const r=function(t){const e=Math.max(...t),s=Math.min(...t);return t.filter((t=>t!==e&&t!==s))}(this[e(605)]),n=r[e(210)](((t,e)=>t+e),0)/r[e(635)],o=.83*n;t[e(840)]<o&&(i=e(311),this[e(648)](this[e(240)],e(217)+t[e(840)]+e(225)+o+e(257)+n+e(778)+this[e(566)][e(704)](",")),s=!1)}if(s&&this[e(437)]&&this._opt[e(868)]&&(t[e(829)]>=1.5||t[e(829)]<=.5)&&-1!==t[e(829)]){if(i=e(565),this[e(648)](this[e(240)],e(694)+t[e(829)]),0===Number(t.videoCurrentTimeDiff)){const t=this[e(536)](),s=this[e(831)](),i=this[e(763)](),r=JSON[e(438)](i);this[e(648)](this.TAG_NAME,e(511)+s+e(535)+t+e(872)+r)}s=!1}return{result:s,reason:i}}enableWakeLock(){const t=_C;this[t(771)][t(760)]&&this[t(760)]&&this[t(760)].enable()}[_C(662)](){const t=_C;this[t(771)][t(760)]&&this[t(760)]&&this.keepScreenOn[t(899)]()}[_C(191)](){const t=_C;this[t(771)][t(292)]?this[t(310)]&&this.decoderWorker.clearWorkBuffer(!0):this[t(528)]&&this.demux[t(710)](!0)}[_C(577)](){const t=_C;this[t(433)](M[t(680)])}[_C(599)](){const t=_C;if(this[t(297)]())return void this[t(648)](this[t(240)],t(334));const e=this[t(233)]();this[t(433)](M.playToRenderTimes,e)}getPlayToRenderTimes(){const t=_C,e=this[t(399)];return e.playTimestamp=e[t(493)]-e[t(910)],e[t(724)]=e[t(586)]-e[t(493)],e[t(673)]=e[t(802)]-e[t(586)]>0?e[t(802)]-e[t(586)]:0,e[t(290)]=e.demuxStart-e[t(802)]>0?e.demuxStart-e[t(802)]:0,e[t(223)]=e[t(622)]-e[t(201)]>0?e[t(622)]-e[t(201)]:0,e[t(190)]=e[t(193)]-e[t(622)],e.allTimestamp=e[t(193)]-e[t(910)],e}[_C(339)](){return this._opt}[_C(247)](){const t=_C;return this[t(771)][t(897)]}isPlayer(){const t=_C;return this[t(771)][t(897)]===c[t(850)]}[_C(274)](){const t=_C;return this._opt[t(897)]===c.playbackTF}[_C(569)](){const t=_C;return this._opt.playType===c[t(866)]}[_C(474)](){const t=_C;let e=!1;return this[t(569)]()&&this[t(866)]&&(e=this[t(866)][t(810)]()),e}[_C(491)](){const t=_C;let e=!1;return this[t(569)]()&&this[t(866)]&&(e=this[t(866)].isEnded()),e}[_C(270)](){const t=_C;return this[t(771)][t(292)]&&this[t(771)][t(309)]}[_C(776)](){const t=_C;return this[t(688)]()||this[t(274)]()}[_C(702)](){const t=_C;let e=!0,s=this._opt;return s[t(411)]&&!s[t(185)]?e=!!this[t(837)]&&this[t(837)].hasInit:s[t(868)]&&(e=!!this.mseDecoder&&this[t(357)][t(548)]),e}[_C(804)](){const t=_C;let e=!0,s=this[t(771)];return s[t(411)]&&!s.useOffscreen?e=!!this[t(837)]&&this[t(837)].isDecodeFirstIIframe:s[t(868)]&&(e=!!this[t(357)]&&this[t(357)][t(443)]),e}[_C(592)](){const t=_C;let e=!1;return this[t(651)]&&(e=this[t(651)][t(340)]()),e}[_C(553)](){const t=_C;return this[t(873)][t(697)]}[_C(564)](){const t=_C;let e=null;return this[t(243)]&&(e=this.recorder[t(847)]()),e}[_C(633)](){const t=_C;let e=0;return this[t(372)]&&(e=this[t(243)].getToTalByteLength()),e}getRecordingDuration(){const t=_C;let e=0;return this[t(372)]&&(e=this[t(243)][t(783)]()),e}getDecodeType(){const t=_C;let e="";const s=this.getOption();return this[t(322)]()?p[t(855)]:this[t(875)]()?p.aliyunRtc:this[t(517)]()?p[t(726)]:(s.useMSE&&(e+=p.mse+" ",s[t(659)]&&(e+=t(878))),s[t(411)]&&(e+=p[t(589)]+" "),s[t(292)]&&(e+=p[t(332)]+" ",s[t(652)]&&(e+=p.simd+" ",s.isFFmpegSIMD&&(e+="v2 ")),s.useMThreading&&(e+=p.mt+" ")),s[t(185)]&&(e+=p[t(218)]+" "),e)}getDemuxType(){const t=_C;return this[t(771)][t(281)]}[_C(384)](){const t=_C;let e="";return this[t(729)]&&(e=this[t(729)].getType()),e}[_C(221)](){const t=_C;let e="";return this.video&&(e=this[t(729)][t(876)]()),e}[_C(440)](){const t=_C;let e="";return this[t(651)]&&(e=this[t(651)].getEngineType()),e}getStreamType(){let t="";return this[_C(305)]&&(t=this.stream.getStreamType()),t}[_C(892)](){const t=_C;return-1===this.getStreamType()[t(787)](h[t(878)])}[_C(506)](){return this._allStatsData}[_C(877)](){const t=_C;return this[t(771)][t(281)]===d[t(471)]}isM7SDemux(){const t=_C;return this[t(771)][t(281)]===d[t(263)]}isNakedFlowDemux(){const t=_C;return this._opt[t(281)]===d[t(278)]}[_C(235)](){const t=_C;return this._opt[t(281)]===d[t(808)]}isTsDemux(){const t=_C;return this._opt[t(281)]===d.ts}isFmp4Demux(){const t=_C;return this[t(771)][t(281)]===d.fmp4}[_C(711)](t){const e=_C;this[e(742)]({showPerformance:t}),this[e(433)](M[e(711)],t)}[_C(737)](t){const e=_C;t=Number(t);let s={isFullResize:!1,isResize:!1,aspectRatio:e(585)};switch(t){case J.full:s.isFullResize=!1,s[e(282)]=!1;break;case J[e(369)]:s.isFullResize=!1,s.isResize=!0;break;case J[e(345)]:s[e(204)]=!0,s[e(282)]=!0}this[e(742)](s),this[e(667)](),this[e(433)](M[e(505)],t)}[_C(267)](){const t=_C;this[t(629)](),this[t(771)][t(625)]>0&&(this.visibilityHiddenTimeout=setTimeout((()=>{const e=t;this[e(433)](M[e(342)])}),1e3*this[t(771)][t(625)]))}[_C(629)](){const t=_C;this[t(600)]&&(clearTimeout(this[t(600)]),this[t(600)]=null)}[_C(189)](t){const e=_C;this[e(670)]=t,ci(t)&&this.video&&this[e(729)][e(654)]([])}objectDetect(t){const e=_C;this[e(358)]=t,ci(t)&&this[e(729)]&&this.video[e(654)]([])}[_C(706)](t){this[_C(430)]=t}[_C(617)](){const t=_C;this[t(528)]&&this.demux[t(617)]&&this[t(528)][t(617)]()}[_C(674)](){const t=_C;this[t(528)]&&this[t(528)].downloadFmp4File&&this[t(528)].downloadFmp4File()}downloadMpeg4File(){const t=_C,e=new Blob([this[t(584)]]);try{const s=document[t(743)]("a");s[t(279)]=window[t(252)][t(234)](e),s[t(186)]=Date.now()+t(761),s[t(643)](),window[t(252)].revokeObjectURL(s[t(279)])}catch(e){console[t(251)]("downloadMpeg4File",e)}}[_C(797)](){const t=_C;this.demux&&this[t(528)][t(797)]&&this[t(528)][t(797)]()}[_C(779)](){const t=_C,e=this.videoIframeIntervalTs,s=this[t(588)][t(418)],i=this._allStatsData[t(203)];let r=!1;if(e&&s&&i){r=1e3/i*s>e}return r}[_C(624)](){const t=_C;let e=arguments[t(635)]>0&&void 0!==arguments[0]?arguments[0]:[];this[t(729)]&&this[t(729)][t(624)](e)}[_C(321)](){_C(635)}[_C(700)](t){const e=_C,s=this[e(627)]();s===h[e(587)]||s===h[e(878)]+" "+h.websocket?this[e(305)][e(665)](t):this.debugWarn(this[e(240)],e(276)+this[e(627)]())}[_C(693)](){const t=_C,e=this[t(873)];return e[t(475)]>0&&e[t(840)]>0}[_C(731)](t){const e=_C;this.control&&this.control[e(666)]&&(this.control[e(666)][e(894)]=t)}[_C(404)](){const t=_C;this[t(434)]&&this.control[t(666)]&&(this.control[t(666)][t(894)]="")}[_C(576)](t){const e=_C;this[e(434)]&&this.control[e(576)](t)}getControlHtmlIsShow(){const t=_C;return!!this.control&&this[t(434)].getControlHtmlIsShow()}getControlHtml(){const t=_C;return this[t(434)]?this[t(434)][t(638)]():null}[_C(596)](t){const e=_C;this[e(434)]&&(this.control[e(250)]?this.control[e(447)](t):this.control[e(479)]({html:t,showBeforePlay:!0}))}[_C(494)](){const t=_C;this[t(434)]&&this.control[t(209)]()}[_C(796)](t){const e=_C;this.control&&this[e(434)][e(703)](t)}[_C(896)](){const t=_C;return!!this.control&&this.control[t(715)]()}[_C(280)](){const t=_C;return this[t(434)]?this.control[t(827)]():null}updateWatermark(t){const e=_C;!this[e(362)]&&(this[e(362)]=new Wr(this)),this.singleWatermark&&this[e(362)][e(546)](t)}removeWatermark(){const t=_C;this[t(362)]&&this[t(362)][t(765)]()}[_C(329)](){const t=_C;let e=null;return this[t(729)]&&(e=this[t(729)][t(329)]()),e}getAudioInfo(){const t=_C;let e=null;return this.audio&&(e=this[t(651)][t(442)]()),e}[_C(632)](){let t=null;return this[_C(729)]&&(t=this.video.getPlaybackQuality()),t}emitError(t){const e=_C;let s=arguments[e(635)]>1&&void 0!==arguments[1]?arguments[1]:"";this[e(433)](M.error,t,s),this[e(433)](t,s)}updateHistoryFpsList(t,e){const s=_C;this[s(393)]||this[s(569)]()||ci(this[s(437)])||(this[s(605)][s(635)]>this[s(771)][s(735)]&&(this[s(605)][s(356)](),this._historyVideoDiffList[s(356)]()),this._historyFpsList.push(t),this._historyVideoDiffList[s(786)](e),this[s(227)]()&&this[s(552)]())}isHistoryFpsListAllZero(){const t=_C;let e=!0;if(this[t(605)].length<this[t(771)][t(735)]&&(e=!1),e)for(let s=0;s<this[t(605)].length;s++)if(this._historyFpsList[s]>0){e=!1;break}if(e)for(let s=0;s<this[t(368)].length;s++)if(this[t(368)][s]>0){e=!1;break}return e}isUseHls265(){const t=_C;return hi(this[t(771)][t(561)])&&hi(this[t(771)][t(677)])}[_C(561)](){const t=_C;return hi(this[t(771)][t(561)])}[_C(517)](){const t=_C;return hi(this[t(771)][t(561)])&&ci(this._opt[t(677)])}[_C(869)](){const t=_C;return hi(this[t(771)][t(821)])&&ci(this._opt[t(891)])}[_C(322)](){const t=_C;return hi(this[t(771)][t(821)])&&ci(this[t(771)][t(891)])}[_C(891)](){const t=_C;return hi(this[t(771)][t(821)])&&hi(this[t(771)][t(891)])}isAliyunRtc(){const t=_C;return hi(this[t(771)][t(875)])}[_C(712)](){return this.isUseHls265()&&this.isUseMSE()}[_C(435)](){const t=_C;return this[t(627)]()===h[t(551)]}[_C(640)](){const t=_C;return this[t(274)]()&&hi(this[t(771)][t(803)][t(678)])&&hi(this[t(771)][t(411)])}[_C(725)](){const t=_C;return this[t(274)]()&&ci(this[t(771)][t(803)][t(431)])&&hi(this[t(771)][t(803)][t(678)])}isPlaybackUseWCS(){const t=_C;return this.isPlayback()&&hi(this[t(771)][t(411)])}[_C(277)](){const t=_C;return this[t(274)]()&&hi(this._opt[t(868)])}[_C(722)](){return this[_C(274)]()&&hi(this._opt.useWasm)}isPlayUseMSE(){const t=_C;return this[t(688)]()&&hi(this[t(771)].useMSE)}[_C(424)](){const t=_C;return this._opt[t(868)]&&this[t(771)][t(736)]}[_C(538)](){const t=_C;this._opt[t(411)]&&this[t(771)][t(604)]}[_C(314)](){const t=_C;return this[t(569)]()&&hi(this[t(771)][t(868)])}[_C(550)](){const t=_C;return this[t(569)]()&&ci(this[t(771)][t(868)])}[_C(682)](){const t=_C;return this[t(569)]()&&hi(this[t(771)][t(187)])}[_C(686)](){const t=_C;return this._opt[t(812)]&&Je()&&this[t(612)]}[_C(608)](){const t=_C;let e=1;return hi(this.isPlayback())&&this.playback&&(e=this.playback[t(378)]),e}[_C(861)](){const t=_C;let e=1;return this.isPlayVod()&&this[t(866)]&&(e=this.playVod[t(378)]),e}isPlaybackOnlyDecodeIFrame(){const t=_C;return hi(this[t(274)]())&&this[t(608)]()>=this._opt[t(453)]&&!this.isMSEDecodeAudio()}pushTempStream(t){const e=_C,s=new Uint8Array(t);this[e(584)][e(786)](s)}[_C(492)](t){const e=_C;this[e(336)]&&this[e(434)]&&this[e(434)][e(492)](t)}[_C(831)](){const t=_C;let e=0;return this.video&&(this[t(771)][t(868)]?this.mseDecoder?e=this[t(357)].getVideoCurrentTime():this[t(470)]()&&(e=this[t(729)][t(831)]()):this[t(322)]()&&this[t(855)]?e=this.webrtc[t(831)]():this[t(875)]()&&this.aliyunRtcDecoder&&(e=this[t(833)][t(831)]())),e}[_C(208)](){const t=_C;let e=null;return this[t(729)]&&(this[t(771)][t(868)]?this[t(357)]?e=this[t(357)].getVideoBufferTimeRange():this[t(470)]()&&(e=this[t(729)][t(208)]()):this[t(322)]()&&this[t(855)]?e=this[t(855)].getVideoBufferTimeRange():this[t(875)]()&&this[t(833)]&&(e=this[t(833)][t(208)]())),e}[_C(763)](){const t=_C;let e=[];return this.video&&(this._opt[t(868)]?this.mseDecoder?e=this[t(357)][t(407)]():this[t(470)]()&&(e=this[t(729)][t(407)]()):this[t(322)]()&&this[t(855)]?e=this[t(855)][t(407)]():this[t(875)]()&&this[t(833)]&&(e=this[t(833)][t(407)]())),e}[_C(536)](){const t=_C;let e=!0;return this[t(729)]&&(this[t(771)][t(868)]?this[t(357)]?e=this[t(357)].isVideoPlaying():this[t(470)]()&&(e=this[t(729)][t(536)]()):this[t(322)]()&&this[t(855)]?e=this[t(855)][t(536)]():this[t(875)]()&&this.aliyunRtcDecoder&&(e=this.aliyunRtcDecoder.isVideoPlaying())),e}[_C(286)](t){const e=_C;for(var s=arguments.length,i=new Array(s>1?s-1:0),r=1;r<s;r++)i[r-1]=arguments[r];this[e(433)](M.memoryLog," ["+t+"] ",...i)}[_C(509)](){this[_C(433)](M.downloadMemoryLog)}isInMulti(){const t=_C;return-1!==this[t(771)][t(602)]}[_C(344)](){const t=_C;return ci(this[t(771)][t(745)])&&ci(this[t(771)][t(261)])&&ci(this[t(771)][t(273)])}[_C(759)](t){const e=_C;try{this[e(648)](this[e(240)],e(759),JSON[e(438)](t))}catch(s){this[e(648)](this.TAG_NAME,"updateMetaData",t)}if(this[e(650)]=t,this._flvMetaData){const t=this._flvMetaData;if(us(t[e(489)])){const s=Math[e(299)](1e3*t[e(489)]);if(s>0){const t=s/1e3;this[e(841)]=t}}bs(t[e(264)])&&ci(t[e(264)])&&(this[e(648)]("updateMetaData",e(264),t[e(264)],"and update _opt.hasAudio"),this._opt.hasAudio=t[e(264)]),bs(t[e(563)])&&ci(t[e(563)])&&(this[e(648)]("updateMetaData","hasVideo",t[e(563)],e(619)),this._opt.hasVideo=t.hasVideo),t.server&&(this[e(402)]=(t.server+"").substring(0,13)),t[e(222)]&&(this[e(402)]=t[e(222)])}this[e(433)](M.flvMetaData,t)}[_C(291)](){return this[_C(650)]}[_C(317)](){const t=_C;return this[t(434)][t(317)]().map((e=>{const s=t;return{name:e.name,$container:e[s(409)],$btn:e.$iconWrap,$activeBtn:e.$activeIconWrap}}))}[_C(555)](){let t=null;return this.pressureObserverCpu&&(t=this.pressureObserverCpu.getCurrentCpuState()),t}[_C(343)](){const t=_C;return this.recorder&&this[t(771)].recordType===l.flv}[_C(893)](){const t=_C;return this[t(243)]&&this[t(771)].recordType===l[t(613)]}[_C(450)](){const t=_C;return this[t(243)]&&this[t(771)].recordType===l[t(895)]}[_C(308)](){const t=_C;return this[t(771)][t(292)]||this[t(771)][t(857)]}[_C(813)](){return hi(this[_C(771)].useMSE)}[_C(522)](){const t=_C;return hi(this._opt[t(411)])}[_C(534)](){const t=_C;return hi(this[t(771)][t(292)])}[_C(470)](){const t=_C;return this[t(813)]()&&hi(this[t(771)][t(659)])}[_C(660)](){return this[_C(248)]-this.getRenderCurrentPts()}[_C(196)](){const t=_C;return{video:this[t(669)](),audio:this[t(248)]}}[_C(541)](){const t=_C;let e=0;return this[t(771)][t(868)]&&this[t(357)]&&(this[t(357)]?e=this.mseDecoder[t(448)]():this.isMseDecoderUseWorker()&&(e=this[t(729)][t(448)]()),e=parseInt(1e3*e,10)),e}[_C(500)](t){const e=_C;this[e(747)]({currentPts:t}),this[e(433)](M[e(898)],t),this[e(328)](t)}[_C(766)](t){const e=_C;this[e(433)](M[e(900)],t),this[e(451)][e(786)](t)}emitVideSeiSyncPts(t){const e=_C;if(0===this._seiList[e(635)]||ci(this._opt[e(684)]))return;const s=1e3*this[e(771)][e(348)],i=t-s,r=t+s,n=[];this[e(451)][e(540)]((s=>{const o=e;s.ts>=i&&s.ts<=r&&(s[o(376)]=t,n[o(786)](s))})),n[e(540)]((t=>{this[e(433)](M.videoSEISyncPts,t)})),this._seiList=this._seiList.filter((t=>t.ts>r))}[_C(669)](){const t=_C;let e=0;return e=this[t(873)].currentPts?this._stats[t(898)]:this[t(190)]-this[t(541)](),e}[_C(537)](){const t=_C;return this[t(771)].syncAudioAndVideo&&this._opt[t(563)]}[_C(260)](t){const e=_C;if(this[e(434)]){const s=this[e(771)][e(556)][t]||e(377);this.control.showTipsMessage(s,t)}}[_C(351)](t){const e=_C;this[e(434)]&&t&&this[e(434)][e(705)](t)}showTipsMessage(){const t=_C;let e=arguments[t(635)]>0&&void 0!==arguments[0]?arguments[0]:"",s=arguments[t(635)]>1?arguments[1]:void 0;this[t(434)]&&this[t(434)].showTipsMessage(e,s)}[_C(908)](){const t=_C;this[t(434)]&&this[t(434)][t(908)]()}[_C(236)](){const t=_C;hi(this[t(771)][t(238)])&&(this[t(357)]?this[t(357)][t(443)]=!1:this[t(837)]&&(this[t(837)][t(443)]=!1))}[_C(364)](){const t=_C;return this._canPlayAppleMpegurl&&this[t(517)]()}[_C(391)](t){const e=_C;this[e(434)]&&this[e(434)][e(533)](t)}[_C(655)](t){const e=_C;this[e(742)]({rotate:t}),this[e(667)]()}setPlayFailedAndPaused(){this[_C(567)]=!0}[_C(375)](){const t=_C;let e={};return this[t(357)]&&(e=this[t(357)][t(410)]()),e}[_C(414)](){const t=_C;return this[t(771)][t(269)]+this[t(771)][t(714)]}[_C(904)](){const t=_C;return!this[t(729)]||this.video[t(421)]()}[_C(206)](){const t=_C;this.control&&this[t(434)][t(206)]()}toggleControlExtendBtn(t,e){this[_C(434)]&&this.control.toggleExtendBtn(t,e)}[_C(568)](t){const e=_C;let s=!1;return this[e(434)]&&(s=this.control[e(429)](t)),s}useVideoPlayAudio(){const t=_C;return this[t(771)][t(264)]&&(this.isWCSPlayAudioUseVideoRender()||this.isWasmPlayAudioUseVideoRender())}[_C(902)](){const t=_C;return this[t(771)][t(411)]&&this[t(771)][t(604)]}[_C(374)](){const t=_C;return this[t(771)][t(292)]&&this._opt[t(515)]}[_C(350)](){const t=_C,e=this[t(771)][t(245)],s=this[t(771)][t(543)];let i=e&&!s;return i&&this.control&&(i=this[t(434)][t(756)]()),i}getControlBarShow(){const t=_C;let e=!1;return this[t(434)]&&(e=this[t(434)][t(756)]()),e}[_C(746)](t){const e=_C;this[e(434)]&&(this[e(434)][e(559)](t),this[e(667)]())}[_C(648)](t){const e=_C;if(this[e(771)][e(775)]&&this[e(775)]){for(var s=arguments.length,i=new Array(s>1?s-1:0),r=1;r<s;r++)i[r-1]=arguments[r];this[e(775)][e(307)](t,...i)}}debugWarn(t){const e=_C;if(this[e(771)][e(775)]&&this.debug){for(var s=arguments[e(635)],i=new Array(s>1?s-1:0),r=1;r<s;r++)i[r-1]=arguments[r];this[e(775)][e(848)](t,...i)}}[_C(524)](t){const e=_C;if(this[e(775)]){for(var s=arguments[e(635)],i=new Array(s>1?s-1:0),r=1;r<s;r++)i[r-1]=arguments[r];this[e(775)][e(251)](t,...i)}}[_C(683)](){const t=_C;let e=null;return this[t(729)]&&(e=this[t(729)][t(865)]),e}[_C(818)](){const t=_C;let e=!(arguments[t(635)]>0&&void 0!==arguments[0])||arguments[0],s=0;return(this[t(350)]()||ci(e))&&(this[t(688)]()?s=this[t(771)][t(716)]===y[t(901)]?30:38:this[t(274)]()?this.playback[t(199)]()?s=48:this[t(611)].isPlaybackSimple()&&(s=38):this.isPlayVod()&&(s=38)),s}[_C(689)](){return this[_C(368)]}[_C(312)](){const t=_C,e=this.getHistoryVideoDiffList();return e[t(635)]>1&&0===e[e[t(635)]-1]&&0===e[e[t(635)]-2]}[_C(631)](){const t=_C;let e=this[t(355)],s=this[t(394)];const i=this[t(818)]();return Je()&&this[t(612)]&&(this[t(771)].useWebFullScreen||this[t(771)][t(695)])?e-=i:s-=i,{width:e,height:s}}updateControlSize(t){const e=_C;this[e(742)]({controlSize:t}),this.control&&this[e(434)].updateControlSize(),this[e(667)]()}[_C(739)](){let t=!1;return this[_C(274)]()&&(t=this._isStreamEnd),t}[_C(232)](){const t=_C;let e=!0;return this[t(274)]()&&ci(this[t(771)][t(315)])&&(e=!1),e}[_C(768)](){const t=_C;let e=0;return this[t(308)]()?this[t(882)]&&(e=this[t(882)][t(764)]):this[t(528)]&&(e=this[t(528)][t(501)]()),e}[_C(449)](){const t=_C;let e=0;return this[t(729)]&&(e=this[t(729)][t(501)]()),e}updateStreamEndInner(){const t=_C;this[t(648)](this.TAG_NAME,"updateStreamEndInner"),this[t(480)]=!0}[_C(593)](){const t=_C;let e=null;return this[t(855)]&&(e=this[t(855)].$videoElement),e}[_C(863)](t){const e=_C;this[e(594)]&&this[e(265)](),this[e(594)]=new fC(this,t),this[e(594)].startAndResize()}updateGhostWatermark(t){const e=_C;this.ghostWatermark&&this[e(495)]();const s=Object[e(467)]({},t,{isGhost:!0});this[e(851)]=new fC(this,s),this[e(851)][e(482)]()}[_C(265)](){const t=_C;this[t(594)]&&(this[t(594)].destroy(),this[t(594)]=null)}[_C(495)](){const t=_C;this[t(851)]&&(this[t(851)][t(383)](),this[t(851)]=null)}playVodForward(t){return new Promise(((e,s)=>{const i=RC;t=Ve(Number(t),.1,32),this[i(310)]&&this[i(310)][i(781)]({key:i(864),value:t}),this[i(866)][i(254)](t),this[i(729)]&&this[i(729)][i(254)](t),this[i(651)]&&this[i(651)][i(254)](t),e()}))}[_C(816)](t){return new Promise(((e,s)=>{const i=RC;this[i(866)]?(this[i(413)]=!1,this[i(866)][i(468)]({time:t}),this[i(372)]&&(this[i(648)](this[i(240)],i(353)),this[i(372)]=!1),e()):s(i(794))}))}[_C(306)](t){return new Promise(((e,s)=>{const i=RC;let r=this[i(669)]()/1e3;this[i(314)]()&&(r=this[i(831)]()),this.playVodSeek(r+t)[i(751)]((()=>{e()}))[i(363)]((t=>{s(t)}))}))}[_C(544)](t){return new Promise(((e,s)=>{const i=RC;let r=this[i(669)]()/1e3;this[i(314)]()&&(r=this[i(831)]()),this[i(816)](r-t)[i(751)]((()=>{e()})).catch((t=>{s(t)}))}))}getPlayVodDuration(){return this[_C(866)].totalDuration}[_C(721)](){return this.playVod.currentTime}getI18n(){const t=_C;return!this._i18n&&(this[t(597)]=Object[t(467)]({},kC,this[t(771)][t(601)]||{})),this[t(597)]}[_C(488)](){const t=_C;let e={width:0,height:0};return window[t(740)]?(e[t(355)]=window[t(740)][t(355)],e[t(394)]=window[t(740)][t(394)],e):e}isScreenNowColumn(){const t=_C,e=this[t(488)]();return e[t(355)]>e.height}[_C(473)](){const t=_C,e=this[t(488)]();return e.width<e[t(394)]}}var LC=BC;function xC(){var t=["watermark_y","children","2909599ophwEg","absolute","9999999","width","watermark_parent_width","33483591QHLGTO","height","Watermark","textAlign","_removeMark","hidden","watermark_x_space","JbPro_mask_","_loadMark","block","webkitTransform","MozTransform","3078402KlGyVy","watermark_cols","18px","int","body","function","微软雅黑","4742924Lufprf","attachShadow","overflow","fontFamily","watermark_parent_node","color","defaultSettings","clientHeight","watermark_angle","destroy","watermark_fontsize","open","getElementById","shadowRoot","style","random","div","8HLyQHX","JbPro_","563623EwHCcV","%20%E4%BD%93%E9%AA%8C","globalSetting","createElement","pointer-events: none !important; display: block !important","player","appendChild","watermark_height","transform","createTextNode","1684205cWJAjJ","load","left","OTransform","watermark_prefix","deg)","watermark_parent_height","4MFRdBg","removeChild","watermark_width","object","watermark_x","JbPro 测试水印","max","rotate(","parentNode","debugLog","watermark_font","string","watermark_txt","scrollWidth","watermark_rows","display","watermark_id","center","black","setAttribute","length","6645858wKUzrp","resize()","watermark_y_space","position"];return(xC=function(){return t})()}!function(t,e){for(var s=BC,i=t();;)try{if(647539===-parseInt(s(119))/1*(-parseInt(s(136))/2)+parseInt(s(180))/3+parseInt(s(187))/4+parseInt(s(129))/5+parseInt(s(157))/6+-parseInt(s(163))/7+-parseInt(s(117))/8*(parseInt(s(168))/9))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(xC);class PC{constructor(t){var e=BC;this.player=t,this[e(121)]=null;const s=as();this.defaultSettings={watermark_id:e(118)+s,watermark_prefix:e(175)+s,watermark_txt:e(141),watermark_x:0,watermark_y:0,watermark_rows:0,watermark_cols:0,watermark_x_space:0,watermark_y_space:0,watermark_font:e(186),watermark_color:e(154),watermark_fontsize:e(182),watermark_alpha:.15,watermark_width:150,watermark_height:100,watermark_angle:15,watermark_parent_width:0,watermark_parent_height:0,watermark_parent_node:null},Si()&&this[e(130)]({text:decodeURIComponent(b+e(120)),color:"white"}),this[e(124)][e(145)](e(170),e(183))}[LC(196)](){var t=LC;this[t(172)](),this[t(121)]=null,this[t(193)]=null,this[t(124)][t(145)]("Watermark",t(196))}remove(){var t=LC;vi()&&(this[t(121)]=null,this._removeMark())}[LC(130)](t){var e=LC;this[e(121)]=t,this[e(176)](t)}resize(){var t=LC;this[t(124)][t(145)](t(170),t(158)),this.globalSetting&&this[t(176)](this[t(121)])}_loadMark(){var t=LC;let e=this[t(193)];if(1===arguments[t(156)]&&typeof arguments[0]===t(139)){var s=arguments[0]||{};for(let t in s)s[t]&&e[t]&&s[t]===e[t]||(s[t]||0===s[t])&&(e[t]=s[t])}var i=document[t(112)](e.watermark_id);i&&i[t(144)]&&i[t(144)][t(137)](i);var r=typeof e[t(191)]===t(147)?document[t(112)](e[t(191)]):e[t(191)],n=r||document[t(184)];const o=n.getBoundingClientRect();var a=Math.max(n[t(149)],n.clientWidth,o[t(166)]),h=Math[t(142)](n.scrollHeight,n[t(194)],o.height),c=arguments[0]||{},l=n;(c[t(167)]||c[t(135)])&&l&&(e[t(140)]=e[t(140)]+0,e.watermark_y=e.watermark_y+0);var d=document[t(112)](e[t(152)]),u=null;if(d)d[t(113)]&&(u=d.shadowRoot);else{(d=document[t(122)](t(116))).id=e[t(152)],d[t(155)](t(114),t(123)),u=typeof d[t(188)]===t(185)?d[t(188)]({mode:t(111)}):d;var p=n[t(162)],f=Math.floor(Math[t(115)]()*(p.length-1))+1;p[f]?n.insertBefore(d,p[f]):n[t(125)](d)}e[t(181)]=parseInt((a-e[t(140)])/(e[t(138)]+e.watermark_x_space));var m,g=parseInt((a-e[t(140)]-e[t(138)]*e[t(181)])/e.watermark_cols);e[t(174)]=g?e.watermark_x_space:g,e[t(150)]=parseInt((h-e[t(161)])/(e[t(126)]+e[t(159)]));var A,y,b,v=parseInt((h-e[t(161)]-e.watermark_height*e[t(150)])/e[t(150)]);e[t(159)]=v?e[t(159)]:v,r?(m=e[t(140)]+e[t(138)]*e[t(181)]+e[t(174)]*(e[t(181)]-1),A=e[t(161)]+e[t(126)]*e.watermark_rows+e[t(159)]*(e[t(150)]-1)):(m=0+e.watermark_x+e[t(138)]*e[t(181)]+e[t(174)]*(e[t(181)]-1),A=0+e[t(161)]+e.watermark_height*e[t(150)]+e.watermark_y_space*(e[t(150)]-1));for(var S=0;S<e[t(150)];S++){b=r?0+e[t(161)]+(h-A)/2+(e.watermark_y_space+e.watermark_height)*S:e.watermark_y+(h-A)/2+(e[t(159)]+e[t(126)])*S;for(var w=0;w<e[t(181)];w++){y=r?0+e[t(140)]+(a-m)/2+(e[t(138)]+e[t(174)])*w:e[t(140)]+(a-m)/2+(e.watermark_width+e[t(174)])*w;var E=document[t(122)](t(116)),I=document[t(128)](e[t(148)]);E[t(125)](I),E.id=e[t(133)]+S+w,E.style[t(178)]=t(143)+e.watermark_angle+t(134),E[t(114)][t(179)]="rotate("+e[t(195)]+t(134),E[t(114)].msTransform=t(143)+e[t(195)]+t(134),E[t(114)][t(132)]="rotate("+e[t(195)]+"deg)",E.style[t(127)]=t(143)+e.watermark_angle+t(134),E[t(114)].visibility="",E.style[t(160)]=t(164),E.style[t(131)]=y+"px",E.style.top=b+"px",E[t(114)][t(189)]=t(173),E.style.zIndex=t(165),E[t(114)].opacity=e.watermark_alpha,E[t(114)].fontSize=e[t(110)],E.style[t(190)]=e[t(146)],E.style[t(192)]=e.watermark_color,E[t(114)][t(171)]=t(153),E[t(114)][t(166)]=e[t(138)]+"px",E[t(114)][t(169)]=e[t(126)]+"px",E.style[t(151)]=t(177),E[t(114)]["-ms-user-select"]="none",u.appendChild(E)}}}[LC(172)](){var t=LC;const e=this.defaultSettings;var s=document.getElementById(e[t(152)]);if(s){var i=s[t(144)];i&&i.removeChild(s)}}}function BC(t,e){var s=xC();return(BC=function(t,e){return s[t-=110]})(t,e)}var MC=FC;function FC(t,e){var s=OC();return(FC=function(t,e){return s[t-=202]})(t,e)}function OC(){var t=["display","insertBefore","shadowRoot","int",'" height="',"globalSetting","width","position","clientWidth","120YHJiQK","Watermark","39275nuqNUA","style","24MWJsfB","height","resize","defaultSettings","890kBMwYC","backgroundImage","resize()","appendChild","parentNode","watermark_color","; font-size:","2597462AtJOHZ","18747gOWyPD","4049HaCWMK","JbPro_mask_","; fill:","debugLog","children","removeChild","body","absolute",'" style="font-family:',"watermark_y_space","watermark_x_space","116448UsOrkZ","max","_calcTextSize","left","watermark_angle","watermark_txt",')">\n <text x="0" y="',"hidden","77427BADeLK","watermark_parent_height","; fill-opacity:","innerHTML","watermark_y","setAttribute","url(data:image/svg+xml;base64,","; font-size: ","destroy","124yalvrr","watermark_font","getElementById",'" y="',"watermark_parent_width","132enHjwJ","_removeMark","zIndex",'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="none">\n <defs>\n <pattern id="pattern1" x="0" y="0" width="',"19806UJOGcK","微软雅黑","watermark_parent_node","remove","black","length","JbPro 测试水印","-ms-user-select","242XRGSxL","string","random","div","0px","block","overflow",'</text>\n </pattern>\n </defs>\n <rect x="0" y="0" width="100%" height="100%" style="fill:url(#pattern1); fill-opacity:1;" />\n <rect x="0" y="0" width="100%" height="100%" style="fill:url(#pattern2); fill-opacity:1;" />\n </svg>',"watermark_fontsize","watermark_id","font-family: ","createElement","_loadMark","player","load","watermark_alpha","function","attachShadow","JbPro_","65cTlBRE","top",'" patternUnits="userSpaceOnUse" patternTransform="rotate(',"open"];return(OC=function(){return t})()}!function(t,e){for(var s=FC,i=t();;)try{if(137449===parseInt(s(210))/1*(parseInt(s(238))/2)+-parseInt(s(247))/3*(-parseInt(s(243))/4)+parseInt(s(289))/5*(parseInt(s(291))/6)+-parseInt(s(229))/7*(-parseInt(s(287))/8)+parseInt(s(209))/9*(parseInt(s(295))/10)+parseInt(s(255))/11*(parseInt(s(221))/12)+parseInt(s(274))/13*(-parseInt(s(208))/14))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(OC);class UC{constructor(t){var e=FC;this[e(268)]=t,this[e(283)]=null;const s=as();this[e(294)]={watermark_id:e(273)+s,watermark_prefix:e(211)+s,watermark_txt:e(253),watermark_x:0,watermark_y:0,watermark_rows:0,watermark_cols:0,watermark_x_space:100,watermark_y_space:100,watermark_font:e(248),watermark_color:e(251),watermark_fontsize:18,watermark_alpha:.15,watermark_width:150,watermark_height:100,watermark_angle:-15,watermark_parent_width:0,watermark_parent_height:0,watermark_parent_node:null},Si()&&this[e(269)]({text:decodeURIComponent(b+"%20%E4%BD%93%E9%AA%8C"),color:"white"}),this[e(268)].debugLog("Watermark",e(281))}[MC(237)](){var t=MC;this[t(244)](),this[t(283)]=null,this[t(294)]=null,this.player[t(213)]("Watermark",t(237))}[MC(250)](){var t=MC;vi()&&(this[t(283)]=null,this._removeMark())}load(t){var e=MC;this[e(283)]=t,this[e(267)](t)}[MC(293)](){var t=MC;this[t(268)][t(213)](t(288),t(203)),this[t(283)]&&this[t(267)](this.globalSetting)}[MC(267)](){var t=MC;let e=this[t(294)];if(1===arguments[t(252)]&&"object"==typeof arguments[0]){var s=arguments[0]||{};for(let t in s)s[t]&&e[t]&&s[t]===e[t]||(s[t]||0===s[t])&&(e[t]=s[t])}var i=document[t(240)](e[t(264)]);i&&i[t(205)]&&i[t(205)][t(215)](i);var r=typeof e[t(249)]===t(256)?document[t(240)](e.watermark_parent_node):e[t(249)],n=r||document[t(216)];const o=n.getBoundingClientRect();var a=Math[t(222)](n.scrollWidth,n[t(286)],o.width),h=Math[t(222)](n.scrollHeight,n.clientHeight,o.height),c=arguments[0]||{},l=n;(c[t(242)]||c[t(230)])&&l&&(e.watermark_x=e.watermark_x+0,e[t(233)]=e[t(233)]+0);var d=document[t(240)](e.watermark_id),u=null;if(d)d[t(280)]&&(u=d[t(280)]);else{(d=document[t(266)](t(258))).id=e[t(264)],d[t(234)](t(290),"pointer-events: none !important; display: block !important"),u=typeof d[t(272)]===t(271)?d[t(272)]({mode:t(277)}):d;var p=n[t(214)],f=Math.floor(Math[t(257)]()*(p[t(252)]-1))+1;p[f]?n[t(279)](d,p[f]):n[t(204)](d)}const m=this[t(223)](),g=this[t(294)],A=g[t(220)]+m[t(284)],y=g[t(219)]+m.height,b=2*y,v=A/2,S=t(246)+A+t(282)+b+t(276)+g[t(225)]+')">\n <text x="0" y="'+g[t(263)]+t(218)+g[t(239)]+t(207)+g[t(263)]+t(212)+g[t(206)]+t(231)+g[t(270)]+'">'+g[t(226)]+'</text>\n </pattern>\n <pattern id="pattern2" x="'+v+t(241)+y+'" width="'+A+t(282)+b+'" patternUnits="userSpaceOnUse" patternTransform="rotate('+g[t(225)]+t(227)+g[t(263)]+t(218)+g[t(239)]+t(207)+g[t(263)]+t(212)+g[t(206)]+t(231)+g[t(270)]+'">'+g[t(226)]+t(262),w=window.btoa(unescape(encodeURIComponent(S)));var E=document[t(266)](t(258));E[t(290)][t(285)]=t(217),E[t(290)][t(224)]=t(259),E[t(290)][t(275)]=t(259),E.style[t(261)]=t(228),E[t(290)][t(245)]="9999999",E[t(290)][t(284)]=a+"px",E[t(290)][t(292)]=h+"px",E.style[t(278)]=t(260),E[t(290)][t(254)]="none",E.style[t(202)]=t(235)+w+")",u.appendChild(E)}[MC(244)](){var t=MC;const e=this.defaultSettings;var s=document.getElementById(e[t(264)]);if(s){var i=s.parentNode;i&&i[t(215)](s)}}_calcTextSize(){var t=MC;const{watermark_txt:e,watermark_font:s,watermark_fontsize:i}=this[t(283)],r=document.createElement("span");r[t(232)]=e,r[t(234)](t(290),t(265)+s+t(236)+i+"px; visibility: hidden; display: inline-block"),document.querySelector("body")[t(204)](r);const n={width:r.offsetWidth,height:r.offsetHeight};return r[t(250)](),n}}const NC=KC;!function(t,e){const s=KC,i=t();for(;;)try{if(417029===parseInt(s(140))/1+-parseInt(s(133))/2+parseInt(s(146))/3*(parseInt(s(151))/4)+-parseInt(s(142))/5*(parseInt(s(131))/6)+-parseInt(s(126))/7*(-parseInt(s(143))/8)+-parseInt(s(144))/9+parseInt(s(150))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(YC);const jC={stop:NC(123),fiStop:"fiStop",right:"right",left:NC(145),up:"up",down:NC(136),leftUp:"leftUp",leftDown:NC(122),rightUp:NC(125),rightDown:NC(134),zoomExpand:"zoomExpand",zoomNarrow:NC(141),apertureFar:NC(124),apertureNear:NC(129),focusFar:NC(152),focusNear:"focusNear",setPos:NC(127),calPos:NC(137),delPos:NC(149),wiperOpen:"wiperOpen",wiperClose:NC(135),cruiseStart:NC(121),cruiseStop:NC(130)},VC={stop:0,fiStop:0,right:1,left:2,up:8,down:4,leftUp:10,leftDown:6,rightUp:9,rightDown:5,zoomExpand:16,zoomNarrow:32,apertureFar:72,apertureNear:68,focusFar:66,focusNear:65,setPos:129,calPos:130,delPos:131,wiperOpen:140,wiperClose:141,setCruise:132,decCruise:133,cruiseStart:136,cruiseStop:0},zC=[25,50,75,100,125,150,175,200,225,250],GC=[1,2,3,4,5,6,7,8,9,16],WC=[16,48,80,112,144,160,176,192,208,224];function HC(t){const e=NC,{type:s,speed:i=5,index:r=0}=t,n=zC[(i||5)-1]||zC[4];let o,a,h,c;if(o=VC[s],!o)return"";switch(s){case jC.up:case jC[e(136)]:case jC[e(124)]:case jC[e(129)]:h=n;break;case jC[e(138)]:case jC.left:case jC[e(152)]:case jC[e(147)]:a=n;break;case jC.leftUp:case jC[e(122)]:case jC[e(125)]:case jC.rightDown:a=n,h=n;break;case jC[e(128)]:case jC.zoomNarrow:c=WC[(i||5)-1]||WC[4];break;case jC[e(137)]:case jC[e(149)]:case jC[e(127)]:h=QC(r);break;case jC[e(135)]:case jC.wiperOpen:a=1;break;case jC.cruiseStart:a=QC(r)}return function(t,e,s,i){let r=[];return r[0]=165,r[1]=15,r[2]=1,r[3]=0,r[4]=0,r[5]=0,r[6]=0,t&&(r[3]=t),e&&(r[4]=e),s&&(r[5]=s),i&&(r[6]=i),r[7]=(r[0]+r[1]+r[2]+r[3]+r[4]+r[5]+r[6])%256,function(t){const e=NC;let s="";for(let i=0;i<t[e(132)];i++){let r=t[i][e(148)](16);1===r[e(132)]&&(r="0"+r),s+=r[e(139)]()}return s}(r)}(o,a,h,c)}function KC(t,e){const s=YC();return(KC=function(t,e){return s[t-=121]})(t,e)}function QC(t){return GC[t-1]}function YC(){const t=["1639136GUPEeb","rightDown","wiperClose","down","calPos","right","toUpperCase","464707DNBPqO","zoomNarrow","5oZuQkj","52984rxuePU","4841631YuhNqE","left","110937UwxEuK","focusNear","toString","delPos","7484460pkLCoN","20nVIXPP","focusFar","cruiseStart","leftDown","stop","apertureFar","rightUp","658IQEbXP","setPos","zoomExpand","apertureNear","cruiseStop","1476324QFBeVG","length"];return(YC=function(){return t})()}const qC=tR;!function(t,e){const s=tR,i=t();for(;;)try{if(624031===parseInt(s(145))/1*(parseInt(s(159))/2)+-parseInt(s(153))/3*(parseInt(s(138))/4)+parseInt(s(137))/5+parseInt(s(156))/6*(-parseInt(s(147))/7)+-parseInt(s(143))/8*(parseInt(s(171))/9)+-parseInt(s(168))/10+parseInt(s(154))/11*(parseInt(s(162))/12))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(eR);const JC=[qC(163),qC(127),qC(132),qC(146),"Null","Date","Object"];function XC(t){const e=qC;if(typeof t!==e(148))return t;const s=Object[e(158)][e(157)][e(161)](t)[e(152)](8,-1);switch(s){case e(128):case e(141):case"ArrayBuffer":return s+"["+t.length+"]";case e(135):return"{}";default:return s}}function ZC(t,e,s){const i=qC;s||(s=1),e||(e=2);const r={};if(!t||typeof t!==i(148))return t;const n=Object[i(158)][i(157)][i(161)](t)[i(152)](8,-1);if(!JC[i(134)](n))return n;if(!(s>e)){for(const n in t)Object[i(158)][i(160)][i(161)](t,n)&&(s===e?r[n]=XC(t[n]):typeof t[n]===i(148)?r[n]=ZC(t[n],e,s+1):r[n]=t[n]);return r}}function $C(){const t=qC;return(new Date)[t(170)]()}function tR(t,e){const s=eR();return(tR=function(t,e){return s[t-=127]})(t,e)}function eR(){const t=["logSize","getLogBlob","slice","15RbLSrT","506PFeeMA","shift","98928DMSGqw","toString","prototype","654DEHkch","hasOwnProperty","call","553644YuQRYx","Boolean","destroy","getLog","logMaxSize","[JbPro] ","2407560tvKmqp","join","toLocaleString","8559DInees","Number","Array","TAG_NAME","clear","stringify","String","length","includes","Object","debugLog","4619390QeQXTo","594348RMSeRD","text/plain","download","Uint8Array","logTextArray","4384czdteA","push","926VKBTYl","Undefined","518GeHRkg","object","player"];return(eR=function(){return t})()}class sR{constructor(t){const e=qC;let s=arguments[e(133)]>1&&void 0!==arguments[1]?arguments[1]:{};this.player=t,this.TAG_NAME="MemoryLogger",this[e(166)]=(null==s?void 0:s[e(166)])||204800,this[e(150)]=0,this[e(142)]=[],this[e(149)][e(136)](this[e(129)],"init")}destroy(){const t=qC;this.clear(),this[t(149)][t(136)](this[t(129)],t(164))}clear(){const t=qC;this[t(150)]=0,this[t(142)]=[]}logCache(){const t=qC;let e="";try{for(var s=arguments.length,i=new Array(s),r=0;r<s;r++)i[r]=arguments[r];const n=i.map((t=>ZC(t)));e=t(167)+$C()+JSON[t(131)](n)}catch(t){return}if(this[t(150)]+=e[t(133)],this[t(142)][t(144)](e),this[t(150)]>this[t(166)]){const e=this.logTextArray[t(155)]();this[t(150)]-=e[t(133)]}}getLog(){const t=qC;return this[t(142)][t(169)]("\n")}[qC(151)](){const t=this[qC(165)]();return new Blob([t],{type:"text/plain"})}[qC(140)](){const t=qC,e=this[t(165)]();this[t(130)]();const s=new Blob([e],{type:t(139)});rn(s,"JbPro-"+$C()+".log")}}const iR=rR;function rR(t,e){const s=nR();return(rR=function(t,e){return s[t-=129]})(t,e)}function nR(){const t=["interval","3684830lAqzgK","45GTMZBg","onLine","player","addEventListener","isOffline","isOnline","378670FDxRxR","_initListener","7pcBzDf","9124SWOeEb",", status: ","_startCheck","3869091PflrBw",", online: ","offline","_stopCheck","2JRuyOK","debugLog","init","Network","off","logStatus","2369048BOnTzW","_updateOnlineStatus","2993334QrLmcp","emit","1225323PzbnFN"," -> ","prevOnline","_updateOfflineStatus","TAG_NAME","destroy","prevOnline: ","removeEventListener","bind","online"];return(nR=function(){return t})()}!function(t,e){const s=rR,i=t();for(;;)try{if(314474===-parseInt(s(141))/1+-parseInt(s(151))/2*(-parseInt(s(161))/3)+parseInt(s(144))/4*(parseInt(s(135))/5)+-parseInt(s(159))/6*(-parseInt(s(143))/7)+-parseInt(s(157))/8+parseInt(s(147))/9+-parseInt(s(134))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(nR);class oR extends Bi{constructor(t){const e=rR;super(),this[e(137)]=t,this[e(165)]=e(154),this.online=this[e(140)](),this.prevOnline=this[e(132)],this.interval=null,this[e(142)](),this[e(137)][e(152)](this[e(165)],e(153))}[iR(166)](){const t=iR;this[t(155)](),this[t(150)](),window[t(130)](t(132),this[t(158)]),window[t(130)]("offline",this[t(164)]),this[t(137)][t(152)](this[t(165)],t(166))}[iR(142)](){const t=iR;window.addEventListener(t(132),this[t(158)][t(131)](this)),window[t(138)]("offline",this[t(164)][t(131)](this))}_stopCheck(){const t=iR;this[t(133)]&&(clearInterval(this[t(133)]),this[t(133)]=null)}[iR(146)](){this.interval=setInterval((()=>{const t=rR;this[t(140)]()!==this.prevOnline&&(this[t(140)]()?this._updateOnlineStatus():this._updateOfflineStatus())}),1e3)}[iR(158)](){const t=iR;this.prevOnline=this.online,this[t(132)]=!0,this[t(156)](),this[t(160)](t(132))}[iR(164)](){const t=iR;this[t(163)]=this.online,this.online=!1,this[t(156)](),this[t(160)](t(149))}[iR(156)](){const t=iR,e=this.prevOnline?t(132):t(149),s=this[t(132)]?t(132):t(149);this[t(137)][t(152)](this.TAG_NAME,t(129)+this[t(163)]+t(148)+this[t(132)]+t(145)+e+t(162)+s)}isOnline(){return void 0===navigator[iR(136)]||navigator.onLine}[iR(139)](){return!this[iR(140)]()}}function aR(t,e){const s=hR();return(aR=function(t,e){return s[t-=417]})(t,e)}function hR(){const t=["2300625BRcsnK","match","451756XipPFi","1271454yxxAGW","substr","hash","host","pathname","4WnkcNq","fromCharCode","1484415BXNMcE","port","search","location","href","hostname","apply","origin","63pYCwEf","protocol","7NkakpP","test","The URL did not match the expected pattern, url=","924830lRnXzP","358004SLBJZA","52408MdryIx","length"];return(hR=function(){return t})()}!function(t,e){const s=aR,i=t();for(;;)try{if(250603===-parseInt(s(440))/1+-parseInt(s(435))/2+-parseInt(s(421))/3*(-parseInt(s(419))/4)+parseInt(s(438))/5+parseInt(s(441))/6*(-parseInt(s(431))/7)+-parseInt(s(436))/8*(-parseInt(s(429))/9)+parseInt(s(434))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(hR);const cR=lR;function lR(t,e){const s=dR();return(lR=function(t,e){return s[t-=278]})(t,e)}function dR(){const t=["playbackCurrentTimeScroll()","webglAlignmentError and play error","decoderWorkerInitErrorOnLock",'JbPro option "',"getPlayingTimestamp","4:3",", and retry length is ","webglContextLostError and webglContextLostErrorReplay is false, pause success","scale(","setScaleMode","loadingTimeoutRetryEndShowPlayBtn","getPTZCmd()"," and\n needResetPlayer(url change) is ","_cryptoPlay() cryptoKeyUrl: ","playError","mseSourceBufferError but player is destroyed","InitDecoderWorkerTimeout but player is destroyed","failedToAsynchronouslyPrepareWasm and _pause error","mseSourceBufferErrorOnLock is true","fullscreenWatermarkConfig text is empty","mediaSourceAudioInitTimeout and mediaSourceAudioInitTimeoutReplay is false,pause success","streamEnd pause player success","audioResume() and call cancelMute()","faceDetectClose() player is not init","isXorCrypto","setControlHtml() player is not init","wcsDecodeError","webcodecs decode error _resetPlayer error","setBufferDelayTime() ","isM7sCrypto","bind","_cryptoPlay","setBufferDelayTime() player is null","setXorCryptoKey","isFullResize","querySelector","setAspectRatio","1mzLaKm","setXorCryptoKey() player is null","s must be less than heartTimeout ","cancelMute() and is mute is ","getAudioInfo","fetch error and pause player","objectDetectOpen","removeDynamicWatermark() player is not init","init success and version is ","playType is not playback","decoder-pro-simd.js","mediaSourceAppendBufferError but player is destroyed","webcodecsH265NotSupport and autoWasm is false , pause success","screenshotByRect","hlsError and pause","setDebug() ","mediaSourceAudioG711NotSupportOnLock","webglAlignmentError and play success","$container","forward() ","decoderWorkerInit but player is destroyed","setStreamQuality() ","deg)","useSIMD","decoderWorkerInitError and pause","flvDemuxBufferSizeTooLarge but player is destroyed","mseDecodeAudio","mediaSourceAudioNoDataTimeoutReplay","videoInfoError and pause player success","unknown","position","CANVAS","failedToAsynchronouslyPrepareWasm is true","videoInfoError but player is destroyed","streamEndReplay","streamEnd and 1006 error and reset player and play error","isControlTypeNormal","playVodPause","error","_handleWebglContextLostError","currentZoom","websocketError error and network is disconnect and reset player and play","updateFaceDetectorConfig"," and\n loadingTimeoutReplayTimes is ","simdH264DecodeVideoWidthIsTooLarge and pause error"," and network online and _streamErrorReplayTimes is ","_handleHlsError","_handleLoadingTimeout"," and\n isHlsButDemuxUseWorker is "," and network online and play success"," and network online and play error","updateDrawRectangleConfig","addContentToContainer() player is not init","removeWatermark()","updateDebugLevel() level is same, level: ","audioResume","webcodecsUnsupportedConfigurationError auto wasm [wcs-> wasm] reset player and play error","fetch error and reset player and play success","100%","webglContextLostError","downloadNakedFlowFile","isMute","decoderWorkerWasmError and pause player success","JbPro need container option","jb-pro-loading-bg-for-ios","%20%E4%BD%93%E9%AA%8C","mediaSourceAppendBufferError and isMSEAudioDecoderError is ","clearContentToContainer","30XiRvIu","timeout","isPlaybackCacheBeforeDecodeForFpsRender","destroy()","toggleZoom","resize()","updateControlSize","webglContextLostError but player is destroyed","toggleDrawRectangle() ","aiFaceDetectWidth","JbPro is destroying","_playNext and waiting decoderWorkerInit callback",'" can not be undefined',"forward() method only just for play vod type"," and isOldWebrtc is ","downloadTempFmp4File","string","offline","\n and destroy and play new url","mseWaitVideoCanplayTimeout and autoWasm is false ,pause success","wcsWidthOrHeightChangeOnLock is true","mseSourceBufferError reset player and play success","proxy","removeGhostWatermark","fps","render type is video, not support clearView, please use canvas render type","fullscreenWatermarkConfig","networkDelayTimeout","screenshot() ","getFlvMetaData() player is null","map","mediaSourceBufferedIsZeroErrorOnLock is true","startTime","setAspectRatio() ","nakedFlowFps"," and\n opt.loadingTimeoutReplay is ","cryptoKey","mse","getAudioEngineType","websocketError and pause","simdH264DecodeVideoWidthIsTooLargeOnLock is true","decoderErrorAutoWasm","mseWidthOrHeightChangeOnLock","_loadingTimeoutReplayTimes","webcodecsUnsupportedConfigurationError auto wasm [wcs-> wasm] reset player and play","webglAlignmentErrorOnLock","_playNext and decoderWorkerInit callback and next play","px 0","WebPlayerPro","network online and JbPro is destroyed","playbackEnd and pause","getVolume","stopRecordAndSave","clearView()","1006","playFailedUseLastFrameShow","memoryLog","playbackNormal","mediaSourceAudioG711NotSupportReplay"," is invalid'","updateAiFaceDetectInterval() player is null","webcodecsDecodeConfigureError and pause error","delay timeout replay but player is destroyed","_removeLoadingBackgroundForIOS()","disablePictureInPicture","_handleStreamEnd","fetch","height","mediaSourceTsIsMaxDiff replay success","setSm4CryptoKey() player is null","playVodEndedAndReplay and reset player and play success","playbackPauseTimeout","webrtcStreamH265OnLock","mediaSourceAudioInitTimeout error and pause error","mediaSourceBufferedIsZeroError","togglePerformancePanel() failed, showPerformance is prev: ","mediaSourceBufferedIsZeroError _resetPlayer and play error","togglePerformancePanel() ","notSupportNewWasm","mseAddSourceBufferErrorOnLock","network online","getPlaybackCurrentRate","mseAddSourceBufferError auto wasm [mse-> wasm] reset player and play","webrtcErrorOnLock is true","webrtcError and pause player success","closeDrawRectangle","mseWorkerAddSourceBufferError","liveStream","updateDynamicWatermark()","demux","_resetPlayer error","videoInfoErrorOnLock is true","playVodNormal","container","wasmUseVideoRenderError and reset player and play success","updateDynamicWatermark","network","updateAiObjectDetectInterval() player is null","networkDelayTimeoutReplay","decoderWorkerWasmErrorOnLock is true",", demuxType is ","objectDetectOpen()","setScaleMode() player is null"," rotateX(180deg)","playbackConfig.rateConfig.length is 0, showRateBtn can not be ture, showRateBtn is set to false","setStreamQuality","setPlaybackStartTime() ","mseWidthOrHeightChange","play vod ended and pause player","InitDecoderWorkerTimeout and pause player"," and diff is ","mseWidthOrHeightChange and reset player and play error","isWebrtcH265","objectDetectClose()","JbPro Version is ","playVodForwardJumping() method only just for play vod type","artc://","decoder-pro.js","wasmWidthOrHeightChange","playVodBackwordJumping() ","isLoading",", options: ","mseWorkerAddSourceBufferErrorOnLock is true","wasmUseVideoRenderError and _resetPlayer error","hasLoaded","setRate","complete","mediaSourceFull but player is destroyed","includes","closeZoom() failed, this.player is not init","setNetworkDelayTime() network delay is ","mediaSourceAudioG711NotSupportOnLock is true","notSupportNewWasmOnLock","closeDrawRectangle() failed, this.player is not init","clear","clearBufferDelay() player is not init","clearExtendHtml() player is not init","webrtcStreamH265 and _resetPlayer error","flvDemuxBufferSizeTooLargeOnLock","delay timeout replay error","clearExtendHtml"," [到期会暂停解码]","_handleMediaSourceDecoderConfigurationError","mseWaitVideoCanplayTimeout auto wasm [mse-> wasm] reset player and play","decoder"," and\n isMpeg4 is ","mseWorkerAddSourceBufferError and hardDecodingNotSupportAutoWasm is false, pause success","aiFaceDetectLevel","_resetPlayer","mediaSourceBufferedIsZeroError but player is destroyed","ws:"," and is Trial Version[试用版本]","this.player.play 2","playbackEndInner","mediaSourceTsIsMaxDiffReplay","mseSourceBufferError auto wasm ",", next replay","controls","setExtendHtml() player is not init","mediaSourceH265NotSupport but player is destroyed","mseWaitVideoCanplayTimeoutOnLock","watermark_txt"," and\n opt.heartTimeoutReplay is ","playbackPause() isPause:","play() ","playVodForward","wcs","removeChild","playbackPause","aliyunRtcError but player is destroyed","multiIndex","pause","mediaSourceH265NotSupportOnLock","webTransport","mediaSourceH265NotSupport auto wasm [mse-> wasm] reset player and play success","playbackConfig.isUseFpsRender is false, isCacheBeforeDecodeForFpsRender can not be ture, isCacheBeforeDecodeForFpsRender is set to false","getPlayVodCurrentRate","simdDecodeErrorReplay","_handleMediaSourceH265NotSupport","img","networkDelay","faceDetectOpen()","loadingTimeoutRetryEnd","webcodecsDecodeConfigureError auto wasm [wcs-> wasm] reset player and play error","isTs","isSm4Crypto","quality: ","autoCalcFps","screenshot","downloadMemoryLog","getControlExtendBtnActive","this._opt.url === url and "," is not in qualityList","updateIsEmitSEI()","webglContextLostError and play error","closeZoom","_clearInitDecoderWorkerTimeout","loading timeout and reset player and play success","_handlePlayVodEndedAndReplay","wt://","wt:","loadingTimeoutReplayTimes","setWebFullscreen","videoElementPlayingFailed and _pause error","_handleDecoderWorkerWasmError","decoderWorkerInitError and pause player success","setFullscreen() player is not ready","getMetaData","playbackResumeTimeout","fetch error and reset player and play error","16:9","playbackConfig","mediaSourceUseCanvasRenderPlayFailed auto and _resetPlayer and play error","isWebrtcForZLM","setPlaybackShowPrecision","updateAiObjectDetectInterval","download","addContentToContainer","webcodecsAudioInitTimeout and reset player and play error","mediaSourceH265NotSupport","playVodForwardJumping","left","hlsError","4565rcuoyS","heartTimeout","wasmUseVideoRenderErrorOnLock"," must be number type","isResize","updateAiFaceDetectLevel() player is null","1770522nOcptm","\n and new url is ","wasmWidthOrHeightChange and reset player and play","hls","play","decoderWorkerWasmError but player is destroyed","origin","_resetReplayTimes","getIsDebug","_handleMediaSourceUseCanvasRenderPlayFailed","streamEnd pause","simdDecodeError and reset player and play error","flvDemuxBufferSizeTooLargeEmitFailed","networkDelayTimeoutOnLock","downloadTempNakedFlowFile","_handleVideoElementPlayingFailed","fill","_resetPlayer() player has loaded","getExtendHtmlIsShow","_bindEvents","not recording","downloadTempMpeg4File","flv Demux Buffer Size Too Large and _resetPlayer error","playbackForwardMaxRateDecodeIFrame","_handleDecoderWorkerInitError","mediaSourceAudioNoDataTimeout but player is destroyed","wasmUseVideoRenderError but player is destroyed","this._opt.isLive is false, can not playback","isCrypto","mseWidthOrHeightChange and widthOrHeightChangeReplayDelayTime but player is destroyed","webcodecsDecodeError but player is destroyed","setPtzPosition()","mseSourceBufferErrorOnLock","updateGhostWatermark","simdH264DecodeVideoWidthIsTooLarge and reset player and play","websocketError error and _resetPlayer() but player is destroyed and return","websocket1006ErrorReplay","isDestroyed","mediaSourceDecoderConfigurationErrorOnLock",".m3u8","playbackEnd","absolute","webcodecsDecodeConfigureError auto wasm [wcs-> wasm] reset player and play","loadingBackground","_resetPlayerBeforeUpdateOptions","openZoom() failed, this.player is destroyed or paused","setSm4CryptoKey() key is invalid and key length is ","normal","http:","isOffline"," type","fullscreen","playVodEndedAndReplay and reset player and play error","_handleWebsocketError","_initPlayer","setPtzPosition() player is null","hlsError but player is destroyed","reject","playbackClearCacheBuffer","_wcsDecodeErrorRetryLog","warn","setExtendHtml","defaultStreamQuality","push","faceDetectClose()","_initOnLock","mseAddSourceBufferError and autoWasm is false ,pause success","sampleRate"," , delay ","streamEnd and network is disconnect and reset player and play","getExtendBtnList() player is null","loaded","m7sCryptoKey","s reset player and play","aliyunRtcErrorOnLock","simdDecodeError and simdDecodeErrorReplay is false , pause success","setWebFullscreen() player is not ready","startRecord() player is not ready","expandPrecision","removeFullscreenWatermark()","webrtcErrorOnLock","videoInfo","getCrashLog","wasmWidthOrHeightChangeOnLock is true"," is not a number","mseSourceBufferError and pause error:","artc:","playing","wcsWidthOrHeightChange and reset player and play error","endsWith","JbPro need container option and now container is","fetch error and streamErrorReplay is true and _streamErrorReplayTimes is ","_initLoadingBackgroundForIOS","fetchErrorOnLock is true"," and old is ","_updateMultiIndex","then"," and delay time is ","isPlaying","setM7sCryptoKey","updatePlaybackForwardMaxRateDecodeIFrame","narrowPrecision","watermarkConfig","sm4CryptoKey","playFailedAndPausedShowMessage","notSupportNewWasm but player is destroyed","playbackRate","playOptions","flvDemuxBufferSizeTooLargeOnLock is true","clearControlHtml()","loadingTimeout","videoBuffer ","updateLoadingText()","play vod ended and replay player","videoElementPlayingFailedForWebrtc","mediaSourceUseCanvasRenderPlayFailed and reset player and play success","useMSE","playback","playVodPause()","playVodForward() ","setMirrorRotate() player is null","this.player.play 4","closeDrawRectangle()","setScaleMode() ","mediaSourceAudioNoDataTimeoutOnLock is true","showRateBtn","webrtcStreamH265 and reset player and play","simdDecodeError and reset player and play success","_handleAliyunRtcError","playFailedAndPaused","updateAiObjectDetectLevel() player is null","classList","updateControlSize() failed, this.player is not init","objectDetect","delayTimeout","decoderWorkerWasmError and pause player","toggleControlHtml() ","_handleFetchError","hlsErrorOnLock","assign"," so set mseDecodeAudio = false","mediaSourceAudioG711NotSupport but player is destroyed","_resetPlayer()","network delay time out and reset player and play","_handleFlvDemuxBufferSizeTooLarge","webglAlignmentError","forEach","aliyunRtcError","mediaSourceUseCanvasRenderPlayFailedOnLock is true","removeWatermark() player is not init"," [mse-> ","videoElementPlayingFailedForWebrtc and pause","load","addContentToCanvas() player is not init","none","setM7sCryptoKey() player is null","webcodecsH265NotSupport","setKeepScreenOn() player is not ready","webFullscreen","fetchError","mseWorkerAddSourceBufferError and _resetPlayer error","setCryptoKeyUrl()","mediaSourceAudioInitTimeoutOnLock","mediaSourceDecoderConfigurationError and pause error","base64","openDrawRectangle()","setAttribute","mediaSourceDecoderConfigurationError auto wasm [mse-> wasm] reset player and play","decoderWorkerInitError but player is destroyed","mseSourceBufferError reset player and play error","narrowZoom failed, zoom is not open or not init","toggleControlExtendBtn","initDecoderWorkerTimeout","_destroy","aspectRatio","webglContextLostError and _resetPlayer error","mediaSourceDecoderConfigurationErrorOnLock is true","_playBefore","websocketErrorOnLock is true","updateDynamicWatermark() player is not init"," is more than ","expandZoom","videoRenderSupportScale","_getOriginalOpt","mediaSourceBufferedIsZeroError and pause error:","isPlaybackPause"," rotateY(180deg)","mediaSourceAppendBufferError and pause error","mute","hlsError and pause player",", and retryLog is "," !== 32 or iv length ","channels","toString","_doInitLoadingBackgroundForVideo","fetch error and pause player success","loading timeout _resetPlayer error","getControlBarShow","$videoElement","mediaSourceAudioInitTimeout but player is destroyed","JbPro","_tempVideoLastIframeInfo","isAudioMute","toggleControlBar() "," === now: ","memoryLogger","s is too long, will black screen for ","streamEnd and network is offline and wait network online to play , so return","streamEndOnLock","hlsError error and network is offline and wait network online to play , so _resetPlayer and wait play","_removeLoadingBackgroundForIOS","_handleFailedToAsynchronouslyPrepareWasm","playVodResume()","_mseDecodeErrorRetryLog","level","webcodecsAudioNoDataTimeout","showErrorMessageTips()","isMSEVideoDecoderInitializationFailedNotSupportHevc","updatePlaybackLocalOneFrameTimestamp() ","default","updateAiFaceDetectInterval()","flvDemuxBufferSizeTooLarge","webglAlignmentErrorOnLock is true","getPlayVodCurrentTime","faceDetectOpen() player is not init","heartTimeoutReplayTimes","aliyunRtc","clearBufferDelay()","simdH264DecodeVideoWidthIsTooLarge and reset player and play success","getCurrentZoomIndex","updateAiFaceDetectLevel()","videoInfoError and pause","webglAlignmentError and pause error","wcsWidthOrHeightChange and widthOrHeightChangeReplayDelayTime but player is destroyed","setAspectRatio() aspectRatio is ","playbackStream","playbackConfig.fps is null and playbackConfig.autoCalcFps is false, set playbackConfig.autoCalcFps is true","isControlTypeSimple","encType","videoElementPlayingFailedForWebrtc and pause player success","operateBtns","setPlaybackStartTime() player is null","m7s","mseSourceBufferError and autoWasm is false ,pause success","_getVideoLastIframeInfo","http://","wasmWidthOrHeightChange and reset player and play success","setDebug","controlSize","_handleInitDecoderWorkerTimeout","isPause","mediaSourceTsIsMaxDiffOnLock is true","webrtcStreamH265","wasmUseVideoRenderError and reset player and play error","togglePerformancePanel","destroy() player has not loaded and waiting load","getBoundingClientRect","destroy end","_tempContentToCanvasData","_checkInitDecoderWorkerTimeout","webcodecsDecodeError","webrtc://","setVolume() ","webglContextLostErrorOnLock","mediaSourceBufferedIsZeroError reset player and play error","webcodecsAudioNoDataTimeoutOnLock is true","webrtcError and _resetPlayer error","mediaSourceTsIsMaxDiff and replay is false ,pause success","setPlaybackShowPrecision() ","websocketError error and _resetPlayer error","mediaSourceFull and auto wasm ",'playVodBackwordJumping() params "time": ',".mpeg4","pause() ","mseWaitVideoCanplayTimeout but player is destroyed","show","mseSourceBufferError","_handleWebcodecsAudioNoDataTimeout","_updateMultiIndex ","cryptoIV","toggleExtendHtml","updateControlSize() ","mediaSourceAudioG711NotSupport and reset player and play error","setKeepScreenOn()","resetPlayer() error","aliyunRtcErrorOnLock is true","px)","watermark","delay timeout and\n replay time is ","webcodecsH265NotSupportOnLock","JbPro is destroyed","setBufferTime","_handleMseSourceBufferError","mediaSourceAudioNoDataTimeout","isFFmpegSIMD","remove","webglContextLostError and play success","isCryptoAudio","startRecord() ","cancelRecord() player is not ready"," [会在一个小时后暂停解码,刷新页面可继续测试]","delay timeout _resetPlayer error","expandZoom() failed, zoom is not open or not init","widthOrHeightChangeReplay","setRotate","websocketErrorOnLock","VIDEO","setPlaybackStartTime() control type is normal and timestamp: ","audio","webcodecsAudioInitTimeout error and pause error","need reset player and\n isOldHls is ","widthOrHeightChangeReplayDelayTimeout","_handleMseWaitVideoCanplayTimeout","trim","wcsWidthOrHeightChange",' must be "http:" or "https:" or "webrtc:" or "ws:" or "wss:" or "wt:" or "artc:" protocol'," and reset player and play","mseWorkerAddSourceBufferError and reset player and play success","_handleWasmUseVideoRenderError","nodeName","mediaSourceAudioNoDataTimeout and reset player and play success"," and\n isHlsCanVideoPlay is ","aiObjectDetectWidth","mediaSourceAudioNoDataTimeout and reset player and play error","getPlaybackRate","_websocket1006ErrorRetryLog","clearContentToCanvas() player is not init","mediaSourceAppendBufferError","playVodSeek() method only just for play vod type","isRecording","cancelMute","webcodecsAudioNoDataTimeout and _resetPlayer error","mseAddSourceBufferError auto wasm [mse-> wasm] _resetPlayer and play error","removeDynamicWatermark","setRotate() ","websocketError","webcodecsAudioNoDataTimeout and reset player and play error","_handleWebrtcStreamH265",".fmp4"," and this.player.fullscreen is ","_resetPlayer() error","playbackResume()","mediaSourceAudioInitTimeoutReplay","decoderWorkerInit and play error","setPlaybackStartTime() control type is simple and timestamp: ","webglAlignmentError but player is destroyed","/index/api/webrtc","updateAiFaceDetectInterval","2333790tSRTrd","setBufferDelayTime","_handleMseAddSourceBufferError","playVodBackwordJumping() method only just for play vod type","playVod","setPlaybackStartTime() playType is not playback","split","mediaSourceH265NotSupportOnLock is true","playType","simdH264DecodeVideoWidthIsTooLarge and _resetPlayer error","get cryptoIV or cryptoKey error","videoInfoError","getExtendHtml","keys","webcodecsUnsupportedConfigurationError and autoWasm is false , pause success","contain","setTimeout() ","clearExtendHtml()","ws1006","cryptoKeyUrl","webcodecsUnsupportedConfigurationErrorOnLock","videoInfoErrorOnLock","narrowZoom","resetPlayer() success","mseSourceBufferError auto wasm [mse worker -> mse] reset player and play","resize","mediaSourceAppendBufferErrorOnLock","destroy","currentTimeScroll","once","decoderWorkerInitError","delayTimeoutRetryEnd"," must be decoder-pro.js or decoder-pro-simd.js","removeDynamicWatermark()","isPlayback","videoElementPlayingFailedForWebrtc but player is destroyed","setNetworkDelayTime() ","cancelRecord()","style","toggleControlBar() player is null","zoom","setPlaybackStartTime() player is not playing","objectDetectOpen() player is not init","webcodecs decode error reset player and play error","webcodecsH265NotSupportOnLock is true"," and\n local._loadingTimeoutReplayTimes time is ","mediaSourceTsIsMaxDiff reset player and play","padding","updateLocalOneFrameTimestamp","JbPro videoBuffer ","network offline","_pause() player has not loaded and waiting load","websocketError and pause player","playbackEndOnLock","mediaSourceUseCanvasRenderPlayFailed relayType is ","showErrorMessageTips() player is null","webcodecsAudioInitTimeoutOnLock","decoderWorkerWasmError and pause","loadingBackgroundHeight","getControlExtendBtnActive() player is null","mediaSourceUseCanvasRenderPlayFailedReplayType","isWebFullscreen","showTipsMessageByContent","removeFullscreenWatermark() watermark is not init","rotate","mediaSourceUseCanvasRenderPlayFailed","mseWidthOrHeightChange and reset player and play success","forward","isDrawRectangleOpen","player is null","decoderWorkerInit and play error and next pause error","mediaSourceDecoderConfigurationError","setCryptoKeyUrl","_handlePlayVodEnded","webcodecsH265NotSupport auto wasm [wcs-> wasm] reset player and play error","updateWatermark","webcodecsAudioInitTimeout and reset player and play","_handleMediaSourceTsIsMaxDiff","text","mseWaitVideoCanplayTimeout","webcodecsAudioInitTimeoutOnLock is true","hideTipsMessage","_handleMseWorkerAddSourceBufferError","addContentToCanvas","simdH264DecodeVideoWidthIsTooLarge and reset player and play error","log","mediaSourceAudioNoDataTimeout error and pause error","webrtcError error and network is offline and wait network online to play , so _resetPlayer and wait play","/isMSENotSupportAudioFormat is ","indexOf","webcodecsH265NotSupport auto wasm [wcs-> wasm] reset player and play success","mediaSourceH265NotSupport and pause error","removeFullscreenWatermark","_isNetworkOfflinePaused","transform","networkDisconnectReplay","webcodecsH265NotSupport auto wasm [wcs-> wasm] reset player and play"," and this._opt.playType is "," res is null","isPlayVodPaused","muted","mediaSourceAudioG711NotSupport and reset player and play success","mediaSourceTsIsMaxDiff","websocketError and pause player success","hlsErrorOnLock is true","setNetworkDelayTime","playbackClearCacheBuffer()","webcodecsAudioInitTimeoutReplay","webcodecsDecodeErrorOnLock","mediaSourceTsIsMaxDiff replay error","webcodecsAudioInitTimeout","_hasLoaded","isLive","setMirrorRotate","toggleControlHtml","playbackCurrentTimeScroll","wasm decode error and reset player and play success","_handleNetworkDelayTimeout","catch","mediaSourceAudioG711NotSupport and mediaSourceAudioG711NotSupportReplay is false,pause success","togglePerformancePanel() failed, this.player is not init","debugLevel","_hasLoaded() and play error","url is not support","isMpeg4","mediaSourceAudioG711NotSupport","webcodecsAudioNoDataTimeout and webcodecsAudioNoDataTimeoutReplay is false, pause success","_tempPlayerIsMute","aiFaceDetectInterval","TAG_NAME","vertical","_streamErrorReplayTimes","openZoom()","setTimeout error: ","_handleWebcodecsDecodeError","mseAddSourceBufferError and pause error","screenshot() player is not ready","mediaSourceUseCanvasRenderPlayFailed and pause","url is null and this._opt.url is null","top","this.player.play 1","setAspectRatio() player is null",", and start is ","volume","_opt","setRotate() rotate is ","wasmWidthOrHeightChange and reset player and play error","isFmp4","getOption","div","updateDebugLevel()","clearBufferDelay","wasm","mediaSourceAudioNoDataTimeout and _resetPlayer error","getRenderElement","downloadFlvFile","setNakedFlowFps() player is null","setExtendHtml()"," and end is ","_handleNotSupportNewWasm","_handleVideoInfoError","pTs","hardDecodingNotSupportAutoWasm","showTipsMessage","setNakedFlowFps()","mediaSourceAudioInitTimeout and reset player and play error","_handleWebcodecsAudioInitTimeout","paused","close","updateObjectDetectorConfig","mseWidthOrHeightChangeOnLock is true","fetch error and _resetPlayer but player is destroyed and return","_doInitLoadingBackgroundForRatio","$loadingBgImage","websocket1006ErrorReplayDelayTime","updateDebugLevel","isMulti","$loadingBg","wasm decode error and _resetPlayer error","startsWith","webcodecsDecodeConfigureError and autoWasm is false , pause success","notSupportNewWasmOnLock is true","mseWorkerAddSourceBufferError error and pause error","updateWatermark() player is not init","showErrorMessageTips","toggleExtendHtml() player is not init","pauseAndNextPlayUseLastFrameShow"," and streamErrorReplayDelayTime is ","notSupportNewWasm auto wasm [wasm-> old wasm] reset player and play success","streamEnd and 1006 error network is offline and wait network online to play , so return","player is destroyed","control type is not normal , not support!","_playBefore _play error","getCopyrightWatermarkHash"," is invalid, play vod must be hls or mp4","jb-pro-container","_resetPlayerBeforeUpdateOptions() and is playback playingTimestamp is ","_pause() ","_isNeedNetworkDisconnectReplay","mseAddSourceBufferErrorOnLock is true","closeZoom()","aiObjectDetectInterval","webcodecsDecodeConfigureError auto wasm [wcs-> wasm] reset player and play success","_handleWebcodecsH265NotSupport","drawingRect","decoderWorkerWasmErrorOnLock","_websocket1006ErrorReplayTimes","% - ","_handleSimdDecodeError"," is invalid, protocol is ","sendWebsocketMessage","toggleControlExtendBtn() ","webrtc","_handleMediaSourceAppendBufferError","streamEnd and reset player and play error","'updateAiFaceDetectLevel() level ","videoBufferDelay","flv","_getContainerRect","_handlePlayVodEnded but player is destroyed","isPlayVod","ws://","isCacheBeforeDecodeForFpsRender","setStartTime","2883507ypirsB","zooming","nakedFlow","getPTZCmd","heartTimeoutReplay","player","isHls","aliyunRtcError and pause","failedToAsynchronouslyPrepareWasm","_handleMseWidthOrHeightChange","_resetDemuxType","getUrl","simdDecodeError","fmp4","getControlBarShow()","width","playback() ","fetch error and network is disconnect and reset player and play","mediaSourceAppendBufferErrorOnLock is true","playType is player, can not call playbackPause method","getControlHtmlIsShow","wcsWidthOrHeightChange and reset player and play success","recording","qualityConfig","webrtcError","finally","logCache","join"," second, is too small","flv Demux Buffer Size Too Large and flvDemuxBufferSizeTooLargeReplay = true and reset player and play","mediaSourceAppendBufferError and _resetPlayer error","cryptoKeyUrl: getM7SCryptoStreamKey ","mediaSourceDecoderConfigurationError auto wasm [mse-> wasm] reset player and play error","xorCryptoKey","_destroyed","isPlayFailedAndPausedSaveLastIframeInfo","isWebrtcForOthers","playVodForwardJumping() ","screenshotByRect() player is not ready","calc(","videoElementPlayingFailedForWebrtcOnLock is true","mseAddSourceBufferError","_handleDelayTimeout","webrtcStreamH265 but player is destroyed","delayTimeout and reset player and play success","mseDecodeError","stringify","_handleWebglAlignmentError","removeAttribute","currentTime","webcodecsUnsupportedConfigurationError","canvas","videoElementPlayingFailedForWebrtcOnLock","mediaSourceAudioNoDataTimeout and reset player and play","_handleVideoElementPlayingFailedForWebrtc","_hasLoaded() and play error and next pause error","mediaSourceUseCanvasRenderPlayFailed but player is destroyed","pause -> play and destroy play","extractScreenshotCopyrightWatermark",".mp4","webcodecsUnsupportedConfigurationError and pause error","playbackForward","getDemuxType","websocketError error and reset player and play success","_heartTimeoutReplayTimes","updateAiFaceDetectLevel","_initNetwork","playing and resolve()","mediaSourceFullOnLock is true","clientHeight"," and this._opt.mirrorRotate is ","mediaSourceFull","playVodEndedAndReplay","streamEndReplayDelayTime","isPlaybackPaused","openZoom","streamEnd and 1006 error and reset player and play success","14lGEsAU","wasmWidthOrHeightChange error and pause error","simdH264DecodeVideoWidthIsTooLargeReplay","createElement","mediaSourceDecoderConfigurationError but player is destroyed","webcodecsAudioNoDataTimeoutOnLock","getCurrentTime","mediaSourceBufferedIsZeroError auto wasm ","decoderWorker","flv Demux Buffer Size Too Large and flvDemuxBufferSizeTooLargeEmitFailed = true and pause player","setBufferTime() buffer time is ","mediaSourceDecoderConfigurationError and autoWasm is false ,pause success",".jb-pro-loading-bg-for-ios","url ","hideErrorMessageTips() player is null","_destroyLock","JbPro decoder ","streamErrorReplayDelayTimeout","setTimeout","isUseFpsRender","wasmWidthOrHeightChangeOnLock","videoElementPlayingFailed and videoElementPlayingFailedReplay is false,pause success","mediaSourceAppendBufferError and reset player and play success","_resetPlayer() end","downloadMpeg4File","screenshotWatermark","_handleMediaSourceAudioInitTimeout","_doInitLoadingBackgroundForCanvas","_playBefore this.player.play error","supportHls265","webcodecsH265NotSupport but player is destroyed","updateFullscreenWatermark","getAllStatsData"," and\n opt.loadingTimeoutReplayTimes is ","streamErrorReplay","JbPro container has been created and can not be created again","cancelRecord","mseAddSourceBufferError but player is destroyed","onload","setM7sCryptoKey()","setMirrorRotate() ","getExtendBtnList","isZoomOpen","flv Demux Buffer Size Too Large","playVodResume","replayUseLastFrameShow","webcodecsAudioInitTimeout but player is destroyed","webcodecsDecodeConfigureErrorOnLock","updateAiObjectDetectLevel()","videoInfoError and pause player","mediaSourceFull and _resetPlayer error","loadingTimeoutRetryEnd and\n opt.loadingTimeout is "," and is not meaningful Retry","updateLoadingText() player is null","setSm4CryptoKey","mseWidthOrHeightChange and widthOrHeightChangeReplay is false,pause success","getPlayVodDuration","isAliyunRtc",".ts","url","mseWorkerAddSourceBufferError and reset player and play error","4376MskNys","updateCurrentZoom","streamEndReplayDelayTimeout","mirrorRotate","mseWaitVideoCanplayTimeoutOnLock is true","_isNetworkOfflinePausedAndNextPlayConfig","isEmitSEI","updateOption","failedToAsynchronouslyPrepareWasmLock","fetchErrorOnLock","player is not playing","wss://","downloadTempFlvFile","mseDecodeErrorReplay","screenshotCopyrightWatermark","closeDrawRectangle() failed, this.player is destroyed or paused","player is not init","mseWorkerAddSourceBufferError but player is destroyed","autoWasm","hideErrorMessageTips()","networkDelayTimeoutOnLock is true","_handlePlaybackEnd","'updateAiObjectDetectLevel() level ","loading","] reset player and play","mediaSourceAudioNoDataTimeoutOnLock",'playVodForward() params "rate": '," is not valid","toggleControlBar","?stream=","getPlayType","webcodecs decode error autoWasm ","objectDetectClose() player is not init","srcObject","clearContentToCanvas","failedToAsynchronouslyPrepareWasm,pause success","mseDecodeErrorReplayDelayTimeout","getFlvMetaData","streamEnd pause player","delayTimeout and network is offline and wait network online to play , so return","playVodSeek","webcodecsAudioNoDataTimeout error and pause error","debugWarn","getVideoInfo","InitDecoderWorkerTimeout and pause player success","and is not meaningful retry","isNakedFlow","totalDuration","updateWatermark()","clearView","setKeepScreenOn","failedToAsynchronouslyPrepareWasm but player is destroyed","faceDetectOpen","webcodecsDecodeConfigureError but player is destroyed","init start","fetch error and network is offline and wait network online to play , so return","_handleSimdH264DecodeVideoWidthIsTooLarge","openDrawRectangle() failed, this.player is destroyed or paused","streamEnd","mseSourceBufferError and isMSEVideoDecoderInitializationFailedNotSupportHevc is true so auto wasm","_replaySuccessAndNext","aiObjectDetectLevel"," rotate(","beforeDestroy","setBufferTime() ","startRecord","/rtc/v1/play/","getFlvMetaData()","addContentToContainer()","hlsError and pause player success","toggleControlExtendBtn() player is null","webrtc:","controlsList","webrtcError and pause player","wasmWidthOrHeightChange and widthOrHeightChangeReplay is false, pause success","src","wcsWidthOrHeightChange error and pause error","_tempPlayBgObj","this.player.play 3","setPtzPosition","isMSEAudioDecoderError","mseWaitVideoCanplayAutoWasm","videoElementPlayingFailed and reset player and play success","playbackTF","wcsDecodeAudio","mseWidthOrHeightChange and reset player and play","mediaSourceBufferedIsZeroError and autoWasm is false ,pause success","getRenderType","simdDecodeError and _resetPlayer error","streamEnd and _resetPlayer() but player is destroyed and return","EVENTS","simdDecodeError but player is destroyed","videoBuffer","video","_playerOnLock","mediaSourceTsIsMaxDiffOnLock","debug","events","mseWidthOrHeightChange error and pause error","loadingTimeout and network is offline and wait network online to play , so return","flv Demux Buffer Size Too Large and reset player and play error","mute()","not playing","decoderWorkerWasmError","mediaSourceAudioInitTimeout and reset player and play success","\n this._url.url is ","toggleDrawRectangle","updateFullscreenWatermark()","_initLoadingBg","appendChild","debugError","_removeTimeout","crashLog","networkState","playVodBackwordJumping","isFlv","_handleWebcodecsUnsupportedConfigurationError","getI18n","color","downloadFmp4File","videoElementPlayingFailedOnLock is true","45EjlGwm","setPlayFailedAndPaused","setWebFullscreen() ","simdDecodeErrorOnLock","_handleMediaSourceBufferedIsZeroError","player is not ready","setRotate() player is null","loadingBackgroundWidth","wasmWidthOrHeightChange and widthOrHeightChangeReplayDelayTime but player is destroyed","player._opt.operateBtns.quality is false","playbackResume","JessibucaPro","videoElementPlayingFailedOnLock","simdDecodeErrorReplayType","play vod ended and pause success","playVodConfig","fetch error and _resetPlayer error","getPTZCmd() player is null","_handleMediaSourceFull","mediaSourceUseCanvasRenderPlayFailedOnLock","_handleWebcodecsDecodeConfigureError","https:","simdDecodeError error and pause error","keepScreenOn","5214060TKqxdK","toFixed","_play","videoElementPlayingFailed but player is destroyed","loading timeout and pause error","notSupportNewWasm auto wasm [wasm-> old wasm] reset player and play","mseWorkerAddSourceBufferErrorOnLock","getControlHeight","screenshotCopyrightWatermark() player is not ready","videoElementPlayingFailed","updateAiObjectDetectInterval()","setControlHtml()","streamEnd and isStreamEndReplay is true and and _streamEndReplayTimes is "," and\n heartTimeoutReplayTimes is ","quality","toggleZoom() ","webcodecsDecodeConfigureError","loadingTimeoutReplay","wasmUseVideoRenderError and reset player and play",".h265","sendWebsocketMessage()","webcodecsAudioNoDataTimeout and reset player and play","updatePlaybackForwardMaxRateDecodeIFrame() player is null","mediaSourceDecoderConfigurationError auto wasm [mse-> wasm] reset player and play success","mediaSourceFullOnLock","getStatus","widthOrHeightChangeReplayDelayTime","faceDetectClose","playVodEndedAndAutoReplay","close() and inner destroy()","videoElementPlayingFailedForWebrtc and pause player","webglAlignmentError and _resetPlayer error","useWCS","_streamEndReplayTimes","_checkIsMeaningfulRetry",'playVodForwardJumping() params "time": ',"mpeg4","mediaSourceH265NotSupport and autoWasm is false ,pause success","305464kAhWrq","loading timeout and\n replay time is ","mediaSourceAudioInitTimeout","_handleWebrtcError","ghostWatermarkConfig","play url ","webcodecs decode error reset player and play success","mediaSourceBufferedIsZeroErrorOnLock","removeWatermark","mseWidthOrHeightChange but player is destroyed","wasm decode error and reset player and play error","length","setControlHtml","wcsWidthOrHeightChangeOnLock","delay timeout and pause error","initPlaybackCacheLoop","simdH264DecodeVideoWidthIsTooLargeOnLock","_pause","debugLog","simdDecodeError error simdDecodeErrorReplayType is ","png","isPlayer","fetchError but player is destroyed","mseSourceBufferError _resetPlayer and play error","openDrawRectangle","forward() method only just for playback type","emit","clearControlHtml","this.player.play 5","setPlaybackStartTime"," !== 32","simple","jb-pro-fullscreen-web",", streamErrorReplayDelayTime is ","isNotMute","startRecord() player is not playing","dynamicWatermarkConfig","wasmUseVideoRenderErrorOnLock is true","wasmUseVideoRenderError","_handlePlayVodEndedAndReplay but player is destroyed","streamEnd but player is destroyed and return","_handleWasmWidthOrHeightChange","_checkHasCreated","webcodecsDecodeErrorOnLock is true","webglAlignmentError and webglAlignmentErrorReplay is false, so pause","playVodEnded","simdH264DecodeVideoWidthIsTooLarge","updateCurrentZoom()"," and\n isAliyunRtc is ","simdDecodeErrorOnLock is true","websocketError error and reset player and play error","mseWaitVideoCanplayTimeout auto wasm [mse-> wasm] _resetPlayer error","simdH264DecodeVideoWidthIsTooLarge and simdDecodeErrorReplay is false, pause success","checkIsMeaningfulRetryTimes","getDecodeType","isDestroyedOrClosed","fetch error and pause","2952682Zpnxzt","webcodecs decode error and pause error","forward() and this._opt.isLive is ","streamErrorReplayDelayTime"];return(dR=function(){return t})()}!function(t,e){const s=lR,i=t();for(;;)try{if(815622===-parseInt(s(1503))/1*(-parseInt(s(1462))/2)+parseInt(s(860))/3+parseInt(s(1222))/4*(-parseInt(s(506))/5)+parseInt(s(512))/6*(parseInt(s(1161))/7)+-parseInt(s(1405))/8*(-parseInt(s(1343))/9)+parseInt(s(283))/10*(-parseInt(s(1084))/11)+-parseInt(s(1367))/12)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(dR);class uR extends Bi{constructor(){const t=lR;let e=arguments[t(1416)]>0&&void 0!==arguments[0]?arguments[0]:{};super(),this._opt={},this[t(989)]=t(712),this[t(1521)]=null,Object[t(873)](e)[t(658)]((s=>{const i=t;if(void 0===e[s])throw new Error(i(1469)+s+i(295))})),this.originalOptions=e;const s=ri();let i=Object[t(651)]({},s,e);i[t(1220)]="",i[t(1036)]&&(i.debugUuid=si()),this[t(1318)]=new Qt(this);let r=e.container;if(typeof e.container===t(299)&&(r=document[t(1501)](e[t(376)])),!r)throw this.debugError(t(712),t(602),e[t(376)]),new Error(t(278));if(ci(i[t(972)])){const e=document.createElement(t(1315));return e[t(960)]=!0,e[t(678)](t(1294),"nodownload"),e[t(347)]=t(347),e.style[t(1533)]=t(553),e[t(898)].top=0,e[t(898)].left=0,e[t(898)][t(350)]=t(1561),e[t(898)][t(1099)]=t(1561),r.appendChild(e),this[t(710)]=e,this[t(1521)]=r,void(this[t(1004)]=i)}if(i[t(427)]&&ci(-1!==i[t(427)][t(949)](t(400))||-1!==i[t(427)][t(949)](t(1513))))throw this[t(1332)]("JbPro","JbPro decoder "+i[t(427)]+t(892)),new Error(t(1177)+i[t(427)]+" must be decoder-pro.js or decoder-pro-simd.js");if(r[t(831)]===t(1534)||r[t(831)]===t(818))throw this[t(1332)](t(712),"JbPro container type can not be "+r[t(831)]+t(562)),new Error("JbPro container type can not be "+r[t(831)]+t(562));if(i[t(1314)]>=i[t(507)])throw this.debugError("JbPro",t(909)+i[t(1314)]+t(1505)+i[t(507)]+"s"),new Error("JbPro videoBuffer "+i[t(1314)]+t(1505)+i[t(507)]+"s");if(!r[t(643)])throw this[t(1332)](this[t(989)],"JbPro container is invalid, must be a DOM Element",r),new Error("JbPro container is invalid, must be a DOM Element",r);if(this._checkHasCreated(r))throw this[t(1332)](t(712),t(1196),r),new Error("JbPro container has been created and can not be created again",r);if(r.classList.add(t(1055)),function(t,e,s){const i=Me;t&&(t[i(521)]?t[i(521)][e]=s:t.setAttribute(i(347)+e,s))}(r,I,as()),delete i[t(376)],vs(i[t(1314)])&&(i[t(1314)]=1e3*Number(i.videoBuffer)),vs(i[t(1076)])&&(i[t(1076)]=1e3*Number(i[t(1076)])),vs(i.networkDelay)&&(i.networkDelay=1e3*Number(i[t(463)])),vs(i[t(988)])&&(i[t(988)]=1e3*Number(i[t(988)])),vs(i[t(1061)])&&(i.aiObjectDetectInterval=1e3*Number(i[t(1061)])),vs(i[t(284)])&&(ys(i[t(622)])&&(i[t(622)]=i[t(284)]),ys(i[t(507)])&&(i[t(507)]=i[t(284)])),vs(i[t(1240)])&&(ys(i.decoderErrorAutoWasm)&&(i[t(324)]=i[t(1240)]),ys(i[t(1022)])&&(i[t(1022)]=i[t(1240)]),ys(i[t(1303)])&&(i[t(1303)]=i[t(1240)])),vs(i[t(430)])&&ys(i[t(292)])){const e=St[i[t(430)]];e&&(i.aiFaceDetectWidth=e)}if(vs(i.aiObjectDetectLevel)&&ys(i[t(834)])){const e=wt[i[t(1283)]];e&&(i[t(834)]=e)}hi(i[t(540)])&&(i[t(1495)]=!0),hi(i.m7sCryptoAudio)&&(i[t(809)]=!0),this._opt=i,this.debugLog(t(712),t(1276)),i[t(1314)]>1e4&&this[t(1264)](this[t(989)],t(623)+i[t(1314)]/1e3+t(718)+i[t(1314)]/1e3+"s , it is recommended to set it to less than 10s"),this[t(1118)]=!1,this[t(1176)]=!1,this[t(1521)]=r,this[t(1299)]={},this[t(713)]={},this[t(987)]=!0,this._loadingTimeoutReplayTimes=0,this._heartTimeoutReplayTimes=0,this[t(991)]=0,this[t(1400)]=0,this._websocket1006ErrorReplayTimes=0,this[t(1319)]=new ki(this),this._opt.isUseNewFullscreenWatermark?this[t(799)]=new UC(this):this[t(799)]=new PC(this),this.memoryLogger=new sR(this),this[t(379)]=new oR(this),this[t(837)]=[],this._mseDecodeErrorRetryLog=[],this._wcsDecodeErrorRetryLog=[],this[t(770)]=[],this[t(953)]=!1,this[t(1227)]={},this[t(823)]=null,this.streamErrorReplayDelayTimeout=null,this.streamEndReplayDelayTimeout=null,this[t(1258)]=null,this[t(354)]=null,this.playbackResumeTimeout=null,this[t(684)]=null,this.$loadingBgImage=null,this.$loadingBg=null,this[t(577)](),this[t(566)](r,i),this._initWatermark(),this[t(1150)](),this[t(1423)](t(712),t(1511)+Qe+":"+Ke);let n=t(397)+Qe+":"+Ke+t(434);vi()?n+=t(609)+Ye+t(424):n+=t(812),console[t(945)](n)}[cR(887)](){return new Promise(((t,e)=>{const s=lR;if(this[s(1423)](s(712),s(286)),this[s(1176)])return e(s(293));this[s(1176)]=!0,this[s(1118)]=!0,this.off(),this[s(1333)](),this[s(479)](),this[s(577)](),this[s(710)]&&(this[s(710)].pause(),this[s(710)][s(1133)]=0,this.$videoElement.srcObject&&(this[s(710)][s(1255)]=null,this[s(710)][s(1132)](s(1255))),this[s(710)][s(1297)]&&(this[s(710)][s(1297)]="",this[s(710)][s(1132)]("src")),this[s(1521)]&&this[s(1521)][s(450)](this[s(710)]),this.$videoElement=null),this[s(722)]();const i=()=>{const i=s;this.player[i(887)]()[i(608)]((()=>{const e=i;this.player=null,this._destroy(),this[e(1176)]=!1,t()}))[i(978)]((t=>{this[i(1176)]=!1,e(t)}))};this[s(1089)]?this._hasLoaded()?(this[s(1423)](this.TAG_NAME,"destroy() player has loaded and next destroy"),i()):(this[s(1423)](this[s(989)],s(767)),this[s(1089)].on(M[s(664)],(()=>{const t=s;this[t(1423)](this[t(989)],"destroy() player has not loaded and load success and next destroy"),i()}))):(this[s(685)](),this[s(1176)]=!1,t())}))}[cR(1333)](){const t=cR;this[t(823)]&&(clearTimeout(this[t(823)]),this[t(823)]=null),this[t(1178)]&&(clearTimeout(this[t(1178)]),this.streamErrorReplayDelayTimeout=null),this[t(1224)]&&(clearTimeout(this[t(1224)]),this.streamEndReplayDelayTimeout=null),this.playbackPauseTimeout&&(clearTimeout(this[t(354)]),this[t(354)]=null),this[t(491)]&&(clearTimeout(this[t(491)]),this[t(491)]=null)}[cR(685)](){const t=cR;this[t(1319)]&&(this[t(1319)][t(887)](),this.events=null),this[t(799)]&&(this[t(799)][t(887)](),this[t(799)]=null),this[t(379)]&&(this[t(379)].destroy(),this.network=null),this[t(717)]&&(this[t(717)][t(887)](),this[t(717)]=null),this[t(1521)]&&(this[t(1521)].classList[t(807)](t(1055)),this.$container.classList[t(807)](t(1437)),function(t,e){const s=Me;t&&(t[s(521)]?delete t[s(521)][e]:t[s(405)]("data-"+e))}(this[t(1521)],I),this[t(1521)]=null),this[t(1299)]=null,this[t(713)]=null,this[t(953)]=!1,this._tempContentToCanvasData=[],this[t(1316)]=!1,this[t(1227)]={},this[t(987)]=!0,this._resetReplayTimes(),this[t(1423)](t(712),t(769)),this[t(1004)]={},this[t(1318)]=null}[cR(519)](){const t=cR;this._loadingTimeoutReplayTimes=0,this[t(1148)]=0,this[t(991)]=0,this._streamEndReplayTimes=0,this._websocket1006ErrorReplayTimes=0,this[t(837)]=[],this[t(725)]=[],this[t(571)]=[]}_getOriginalOpt(){const t=cR,e=ri();return Object[t(651)]({},e,this.originalOptions)}_initPlayer(t,e){const s=cR;this[s(1089)]=new DC(t,e),this[s(531)]()}[cR(431)](){const t=cR;let e=arguments[t(1416)]>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise(((s,i)=>{const r=t;try{this[r(1423)](this.TAG_NAME,r(654),JSON.stringify(e))}catch(t){this[r(1423)](this[r(989)],r(654),e)}const n=()=>{const t=r;this[t(1004)].url="",this[t(1004)][t(619)]={},this[t(1004)]=Object[t(651)](this._opt,e),this[t(566)](this[t(1521)],this._opt)},o=()=>{const t=r;this[t(1089)].destroy().then((()=>{const e=t;this[e(1089)]=null,n(),this[e(1423)](this[e(989)],e(1184)),s()}))[t(978)]((e=>{const s=t;this[s(1332)](this[s(989)],s(852),e),i(e)}))};this.player?this[r(971)]()?(this.debugLog(this[r(989)],r(529)),o()):(this[r(1423)](this.TAG_NAME,"_resetPlayer() player has not loaded and waiting load"),this.player.on(M[r(664)],(()=>{const t=r;this[t(1423)](this[t(989)],"_resetPlayer() player has not loaded and load success,next destroy and init player"),o()}))):(n(),this.debugLog(this[r(989)],r(1184)),s())}))}[cR(531)](){const t=cR;var e=this;Object.keys(F).forEach((t=>{this[lR(1089)].on(F[t],(function(){for(var s=arguments.length,i=new Array(s),r=0;r<s;r++)i[r]=arguments[r];e.emit(t,...i)}))})),this[t(1004)][t(616)]&&this.on(M[t(641)],((e,s,i)=>{const r=t;this.player&&this[r(1089)][r(1023)](i,e)})),this[t(1089)].once(M[t(1285)],(()=>{const e=t;this.emit(M[e(1028)]),this[e(887)]()[e(608)]((()=>{}))[e(978)]((t=>{}))})),this.player.on(M[t(885)],(()=>{const e=t;this[e(799)]&&this[e(799)][e(885)]()})),this.player.on(M[t(563)],(()=>{const e=t;this[e(799)]&&this[e(799)][e(885)]()})),this[t(1089)].on(M[t(339)],(function(){const s=t;e[s(717)][s(1110)](...arguments)})),this[t(1089)].on(M[t(472)],(()=>{this.downloadMemoryLog()}))}_initWatermark(){const t=cR;if(Si()&&(this._opt.fullscreenWatermarkConfig[t(938)]=decodeURIComponent(b+t(280)),this[t(1004)][t(309)][t(1340)]="white"),Bs(this[t(1004)][t(309)])){const e=ws(this[t(1521)],this[t(1004)].fullscreenWatermarkConfig);if(!e[t(444)])return void this[t(1264)](t(712),t(1485));this[t(799)].load(e)}}[cR(1150)](){const t=cR;this.network.on(M.online,(()=>{const t=lR;if(this[t(1431)](M[t(1335)],M.online),this[t(549)]())this[t(1423)](this.TAG_NAME,t(332));else if(this[t(1423)](this[t(989)],t(363)),this[t(953)]&&this[t(1227)]&&this[t(1227)][t(1220)]){const e=this[t(1227)][t(1220)],s=this[t(1227)][t(619)];this[t(991)]++;const i=this._isNetworkOfflinePausedAndNextPlayConfig.type||t(1532);this[t(953)]=!1,this[t(1227)]={},this[t(1423)](this[t(989)],i+t(1548)+this[t(991)]+t(828)),this.play(e,s).then((()=>{const e=t;this.debugLog(this[e(989)],i+e(1552))}))[t(978)]((e=>{const s=t;this.emit(M[s(641)],U[s(671)],{},e.toString()),this[s(1332)](this[s(989)],i+s(1553),e.toString(),e)}))}})),this[t(379)].on(M[t(300)],(()=>{const e=t;this[e(1431)](M.networkState,M[e(300)]),this[e(1423)](this[e(989)],e(910))}))}[cR(1447)](t){if(!t)return!1;return!!function(t,e){const s=Me;return t?t[s(521)]?t[s(521)][e]:t[s(626)]("data-"+e):""}(t,I)}_initOnLock(){const t=cR;this.webglAlignmentErrorOnLock=!1,this[t(775)]=!1,this[t(455)]=!1,this[t(1391)]=!1,this.mediaSourceAppendBufferErrorOnLock=!1,this[t(544)]=!1,this[t(1412)]=!1,this[t(362)]=!1,this[t(550)]=!1,this.mediaSourceTsIsMaxDiffOnLock=!1,this.mseWidthOrHeightChangeOnLock=!1,this[t(1519)]=!1,this.mediaSourceAudioInitTimeoutOnLock=!1,this.mediaSourceAudioNoDataTimeoutOnLock=!1,this[t(1373)]=!1,this.mediaSourceUseCanvasRenderPlayFailedOnLock=!1,this.webcodecsH265NotSupportOnLock=!1,this[t(880)]=!1,this[t(1208)]=!1,this[t(968)]=!1,this[t(1418)]=!1,this[t(1166)]=!1,this[t(916)]=!1,this[t(1346)]=!1,this.wasmWidthOrHeightChangeOnLock=!1,this[t(508)]=!1,this.notSupportNewWasmOnLock=!1,this[t(1230)]=!1,this[t(1355)]=!1,this[t(1421)]=!1,this[t(525)]=!1,this[t(421)]=!1,this[t(1231)]=!1,this[t(720)]=!1,this[t(817)]=!1,this.webrtcErrorOnLock=!1,this[t(650)]=!1,this[t(586)]=!1,this[t(1468)]=!1,this[t(1065)]=!1,this[t(1136)]=!1,this[t(881)]=!1,this[t(913)]=!1,this.webrtcStreamH265OnLock=!1,this[t(443)]=!1}isDestroyed(){return this[cR(1118)]}[cR(1008)](){const t=cR;return this.player?this[t(1089)][t(1008)]():{}}[cR(759)](t){const e=cR;this.debugLog(e(712),e(1518)+t),this._opt.debug=!!t,this[e(1089)]?this[e(1089)][e(1229)]({debug:!!t},!0):this[e(1264)]("JbPro",e(1238))}[cR(520)](){const t=cR;let e=!1;return this[t(1089)]&&(e=this.player[t(1004)][t(1318)]),e}mute(){const t=cR;this[t(1423)](t(712),t(1323)),this[t(1089)]&&this[t(1089)].mute(!0)}cancelMute(){const t=cR;this[t(1423)](t(712),t(1506),this.isMute()),this.player&&this.player[t(714)]()&&this[t(1089)][t(700)](!1)}setVolume(t){const e=cR;this[e(1423)](e(712),e(774)+t),this.player&&(this[e(1089)][e(1003)]=t)}[cR(334)](){const t=cR;let e=null;return this[t(1089)]&&(e=this[t(1089)][t(1003)],e=parseFloat(e)[t(1368)](2)),e}[cR(1558)](){const t=cR;this[t(1423)](t(712),t(1488)),this[t(842)]()}[cR(1179)](t){const e=cR;this[e(1423)](e(712),e(876)+t),t=Number(t),isNaN(t)?this.debugWarn(e(712),e(993)+t+e(596)):(this[e(1004)].timeout=t,this[e(1004)][e(622)]=t,this[e(1004)].heartTimeout=t,this.player&&this.player[e(1229)]({timeout:t,loadingTimeout:t,heartTimeout:t}))}[cR(1475)](t){const e=cR;this.debugLog("JbPro",e(635)+t),this.player?this.player.setScaleMode(t):this.debugWarn(e(712),e(385))}[cR(454)](){const t=cR;let e=arguments[t(1416)]>0&&void 0!==arguments[0]&&arguments[0];return new Promise(((s,i)=>{const r=t;this.debugLog(r(712),r(785)+e),this[r(549)]()&&i(r(802)),(this[r(1004)][r(1046)]||this[r(1004)].replayUseLastFrameShow)&&(this[r(1299)]=this[r(756)]()),this[r(987)]=this[r(1564)](),this[r(1422)](e)[r(608)]((t=>{s(t)})).catch((t=>{i(t)}))}))}_pause(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return new Promise(((e,s)=>{const i=lR;if(this[i(1423)](i(712),i(1057)+t),this[i(549)]())return s(i(802));this[i(519)](),this[i(1089)]?this[i(971)]()?(this[i(1423)](this.TAG_NAME,"_pause() player has loaded"),this[i(1089)].pause(t)[i(608)]((t=>{e(t)})).catch((t=>{s(t)}))):(this[i(1423)](this[i(989)],i(911)),this[i(1089)].on(M[i(664)],(()=>{const r=i;this[r(1423)](this[r(989)],"_pause() player has not loaded and load success,next pause"),this[r(1089)][r(454)](t)[r(608)]((t=>{const s=r;this.debugLog(this[s(989)],"_pause() end"),e(t)})).catch((t=>{const e=r;this[e(1332)](this[e(989)],"_pause() error",t),s(t)}))}))):s("player is null")}))}[cR(1028)](){return new Promise(((t,e)=>{const s=lR;if(this[s(549)]())return e("JbPro is destroyed");this.debugLog("JbPro",s(1396)),this[s(887)]().then((()=>{t()}))[s(978)]((t=>{e(t)}))}))}[cR(1271)](){const t=cR;this[t(1423)](t(712),t(336)),this[t(1089)]&&this.player[t(1315)]?this[t(1309)]()===f[t(1135)]?this[t(1089)][t(1315)][t(1271)]():this[t(1264)](t(712),"clearView",t(308)):this[t(1264)]("JbPro",t(1271),t(929))}play(){const t=cR;let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",s=arguments[t(1416)]>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(((i,r)=>{const n=t;if(this[n(549)]())return r(n(802));if(wi()){const t=decodeURIComponent(Ht);return this.debugError(this[n(989)],t),void r(t)}try{this[n(1423)](n(712),n(447)+e,JSON[n(1130)](s))}catch(t){this[n(1423)](n(712),n(447)+e,s)}if(!e&&!this[n(1004)][n(1220)])return this[n(1431)](M[n(1541)],U[n(1480)]),void r(n(998));if(e&&(e=(""+e)[n(825)](),-1===e[n(949)](n(560))&&-1===e[n(949)](n(1364))&&-1===e[n(949)](n(1293))&&-1===e.indexOf(n(433))&&-1===e[n(949)]("wss:")&&-1===e[n(949)](n(483))&&-1===e.indexOf(n(598))))return r(n(1174)+e+n(827));if(ci(this[n(1004)][n(972)]))return this[n(710)][n(440)]=n(440),this[n(710)].muted=!1,this[n(710)][n(1297)]=e,this[n(710)].play(),void i(this.$videoElement);if(this._opt[n(1495)]){let t=s[n(319)]||this._opt[n(619)][n(319)],o=s[n(791)]||this._opt[n(619)][n(791)];if(this[n(1004)][n(584)]&&(!t||!o)){const e=this[n(1004)][n(584)][n(866)](".");t=ti(e[0]),o=ti(e[1])}if(!t||!o){const t=e||this[n(1004)].url;return void this[n(1497)](t)[n(608)]((t=>{const o=n;let{cryptoIV:a,cryptoKey:h}=t;this[o(1004)][o(619)].cryptoKey=h,this[o(1004)][o(619)].cryptoIV=a,s[o(791)]=a,s[o(319)]=h,this[o(689)](e,s).then((()=>{i()})).catch((t=>{r(t)}))}))[n(978)]((t=>{r(t)}))}this[n(1004)][n(619)][n(319)]=t,this[n(1004)].playOptions[n(791)]=o,s[n(791)]=o,s[n(319)]=t}else if(this[n(1004)][n(1490)]){let t=s[n(319)]||this[n(1004)][n(619)].cryptoKey,e=s[n(791)]||this._opt[n(619)].cryptoIV;if(this[n(1004)][n(1117)]&&(!t||!e)){const s=this._opt[n(1117)][n(866)](".");t=ti(s[0]),e=ti(s[1])}t&&e&&(this._opt[n(619)][n(319)]=t,this[n(1004)][n(619)][n(791)]=e,s[n(791)]=e,s[n(319)]=t)}else if(this._opt[n(468)]){let t=s.cryptoKey||this[n(1004)].playOptions.cryptoKey,e=s.cryptoIV||this[n(1004)][n(619)][n(791)];if(this._opt[n(615)]&&(!t||!e)){const s=this[n(1004)][n(615)][n(866)](".");2===s.length&&(t=ac(s[0]),e=ac(s[1]))}t&&e&&(this[n(1004)][n(619)].cryptoKey=t,this[n(1004)][n(619)][n(791)]=e,s[n(791)]=e,s.cryptoKey=t)}this[n(689)](e,s)[n(608)]((()=>{i()}))[n(978)]((t=>{r(t)}))}))}[cR(689)](t){const e=cR;let s=arguments[e(1416)]>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(((i,r)=>{const n=e;if(this[n(1089)])if(t)if(this[n(1004)][n(1220)])if(t===this._opt[n(1220)])if(this[n(1089)].playing)this.debugLog(n(712),"_playBefore",n(1151)),i();else{this[n(1423)](n(712),n(689),n(474)+n(1141));let t=this[n(695)]();(this[n(1004)][n(1046)]||this[n(1004)][n(1206)])&&this[n(1299)]&&this[n(1299)][n(555)]&&(t=Object[n(651)](t,this[n(1299)])),ci(this[n(987)])&&(t.isNotMute=!0,this[n(987)]=!0);const e=this[n(1004)].url,o=Object[n(651)]({},this[n(1004)][n(619)],s);this[n(431)](t)[n(608)]((()=>{const t=n;this[t(1369)](e,o).then((()=>{i()}))[t(978)]((e=>{const s=t;this.debugError("JbPro",s(1189),e),this[s(1431)](M.crashLog,this[s(594)](s(1e3),e)),r(e)}))}))[n(978)]((t=>{const e=n;this[e(1332)](e(712),e(373),t),r(t)}))}else{this[n(1423)]("JbPro",n(689),n(1327)+this[n(1004)][n(1220)]+n(513)+t+n(301));const e=this[n(695)]();this[n(431)](e)[n(608)]((()=>{const e=n;this[e(1369)](t,s)[e(608)]((()=>{i()}))[e(978)]((t=>{const s=e;this[s(1332)](s(712),"_playBefore _play error",t),this[s(1431)](M[s(1334)],this[s(594)](s(435),t)),r(t)}))}))[n(978)]((t=>{const e=n;this[e(1332)](e(712),e(373),t)}))}else this[n(1369)](t,s).then((()=>{i()}))[n(978)]((t=>{const e=n;this[e(1332)]("JbPro",e(1052),t),this[e(1431)](M[e(1334)],this[e(594)](e(1300),t)),r(t)}));else{let t=this[n(695)]();(this[n(1004)].pauseAndNextPlayUseLastFrameShow||this[n(1004)].replayUseLastFrameShow)&&this[n(1299)]&&this._tempPlayBgObj.loadingBackground&&(t=Object.assign(t,this[n(1299)])),ci(this[n(987)])&&(t[n(1439)]=!0,this[n(987)]=!0),this[n(431)](t)[n(608)]((()=>{const t=n;this[t(1369)](this[t(1004)][t(1220)],this._opt[t(619)])[t(608)]((()=>{i()}))[t(978)]((e=>{const s=t;this[s(1332)]("JbPro","_playBefore _play error",e),this[s(1431)](M[s(1334)],this[s(594)](s(633),e)),r(e)}))}))[n(978)]((t=>{const e=n;this.debugError(e(712),e(373),t)}))}else t?this[n(1369)](t,s)[n(608)]((()=>{i()}))[n(978)]((t=>{const e=n;this[e(1332)](e(712),e(1052),t),this.emit(M[e(1334)],this[e(594)](e(1433),t)),r(t)})):this[n(1369)](this[n(1004)][n(1220)],this[n(1004)][n(619)])[n(608)]((()=>{i()}))[n(978)]((t=>{const e=n;this[e(1332)](e(712),e(1052),t),this[e(1431)](M.crashLog,this[e(594)]("this.player.play 6",t)),r(t)}))}))}[cR(1497)](t){return new Promise(((e,s)=>{const i=lR,r=function(t){const e=Me,s=(t||document[e(496)][e(323)]())[e(400)]("//"),i=s[1][e(419)]("/");let r=s[1].substring(i);return-1!=r[e(419)]("?")&&(r=r.split("?")[0]),r}(t);let n=this._opt[i(879)],o="";const a=ei(t);if(n){if(o=n,this[i(1004)].isM7sCrypto&&-1===o.indexOf(E+i(1251))){const t=ei(n);o=t[i(518)]+E+(i(1251)+r)}}else n=a[i(518)]+E,o=n+(i(1251)+r);var h;this.player.debugLog("JbPro",i(1479)+o+" and opt.cryptoKeyUrl: "+this[i(1004)][i(879)]),(h=o,new Promise(((t,e)=>{const s=Gu;il[s(501)](h)[s(497)]((e=>{t(e)}))[s(495)]((t=>{e(t)}))})))[i(608)]((t=>{const r=i;if(t){const i=t[r(866)]("."),n=ti(i[0]),o=ti(i[1]);o&&n?e({cryptoIV:o,cryptoKey:n}):s(r(870))}else s(r(1115)+o+r(958))}))[i(978)]((t=>{s(t)}))}))}[cR(629)](t){const e=cR;let s=arguments[e(1416)]>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(((i,r)=>{const n=e;if(this.isDestroyed())return r(n(802));try{this[n(1423)](n(712),n(1100)+t+n(404),JSON[n(1130)](s))}catch(e){this[n(1423)](n(712),n(1100)+t+n(404),s)}if(ci(this[n(1004)][n(972)]))return r(n(539));const o=ni(),a=Object.assign({},o.playbackConfig,this[n(1004)].playbackConfig,s);ci(a[n(1180)])&&a[n(1082)]&&(a.isCacheBeforeDecodeForFpsRender=!1,this[n(1264)]("JbPro",n(458))),0===a.rateConfig[n(1416)]&&a[n(637)]&&(a[n(637)]=!1,this[n(1264)](n(712),n(387))),hi(a[n(1180)])&&!a[n(307)]&&ci(a[n(470)])&&(a[n(470)]=!0,this[n(1264)](this.TAG_NAME,n(748))),a.controlType,A[n(1436)];let h=a[n(535)]||this[n(1004)][n(535)];const l={videoBuffer:0,playbackConfig:a,playType:c[n(1305)],openWebglAlignment:!0,useMSE:a[n(628)],useWCS:a[n(1399)],useSIMD:a[n(1526)],playbackForwardMaxRateDecodeIFrame:h};bs(a[n(806)])&&(l[n(806)]=a[n(806)]),this[n(431)](l)[n(608)]((()=>{const e=n;this[e(516)](t,s)[e(608)]((()=>{i()}))[e(978)]((t=>{r(t)}))}))[n(978)]((t=>{r(t)}))}))}[cR(451)](){const t=cR;let e=arguments[t(1416)]>0&&void 0!==arguments[0]&&arguments[0];return this[t(549)]()?Promise[t(569)](t(802)):(this[t(1423)](t(712),t(446)+e),this._opt[t(868)]===c.player?Promise[t(569)](t(1103)):new Promise(((s,i)=>{const r=t;if(!this[r(1089)])return i("player is null");hi(e)?this[r(1422)]()[r(608)]((()=>{s()})).catch((t=>{i(t)})):(this[r(1089)][r(451)]=!0,this[r(1089)].recording=!1,this[r(1089)][r(1085)]=!1,this[r(354)]=setTimeout((()=>{this[r(354)]=null,s()}),100))})))}[cR(1353)](){const t=cR;return this[t(549)]()?Promise[t(569)](t(802)):(this[t(1423)](t(712),t(853)),this[t(1004)][t(868)]===c[t(1089)]?Promise[t(569)]("playType is player, can not call playbackResume method"):new Promise(((e,s)=>{const i=t;if(!this.player)return s(i(929));this[i(1089)][i(451)]=!1,this[i(491)]=setTimeout((()=>{this[i(491)]=null,e()}),100)})))}[cR(927)](t){const e=cR;return this[e(549)]()?Promise.reject(e(802)):(this[e(1423)](e(712),e(1522)+t),ci(this[e(1004)][e(972)])||this[e(1004)][e(868)]===c.player?(this[e(1423)](e(712),e(1464)+this[e(1004)].isLive+e(957)+this[e(1004)][e(868)]),Promise[e(569)](e(1430))):us(Number(t))?new Promise(((s,i)=>{const r=e;this[r(1089)]?(t=Ve(Number(t),.1,32),this[r(1089)][r(1169)]&&this[r(1089)][r(1169)].updateWorkConfig({key:r(618),value:t}),this[r(1089)][r(629)][r(408)](t),this[r(1089)].video&&this.player[r(1315)].setRate(t),this[r(1089)][r(820)]&&this[r(1089)][r(820)].setRate(t),(this[r(1089)].isPlaybackUseWCS()||this[r(1089)].isPlaybackUseMSE())&&this.player[r(285)]()&&this.player[r(610)]()&&this.player[r(372)][r(1420)](),s()):i("player is not playing")})):Promise.reject('forward() params "rate": '+t+" must be number type"))}[cR(1145)](t){const e=cR;return this[e(549)]()?Promise[e(569)](e(802)):new Promise(((s,i)=>{const r=e;this[r(927)](t)[r(608)]((()=>{s()})).catch((t=>{i(t)}))}))}normal(){const t=cR;return this[t(549)]()?Promise[t(569)](t(802)):new Promise(((e,s)=>{const i=t;this.forward(1)[i(608)]((()=>{e()}))[i(978)]((t=>{s(t)}))}))}[cR(340)](){const t=cR;return this[t(549)]()?Promise[t(569)](t(802)):new Promise(((e,s)=>{const i=t;this[i(559)]()[i(608)]((()=>{e()}))[i(978)]((t=>{s(t)}))}))}[cR(612)](t){const e=cR;this.isDestroyed()||(this.debugLog(e(712),"updatePlaybackForwardMaxRateDecodeIFrame() "+t),t=Number(t),t=Ve(t=parseInt(t,10),1,8),this[e(1004)][e(535)]=t,this.player?this.player[e(1229)]({playbackForwardMaxRateDecodeIFrame:t},!0):this[e(1264)]("JbPro",e(1389)))}[cR(1434)](t){const e=cR;if(this[e(549)]())return;this.debugLog("JbPro",e(389)+t);const s=xs(t);this[e(1089)]?this[e(1089)][e(894)]()?s<10&&0!==t&&this[e(1089)][e(629)][e(1539)]()?this[e(1264)]("JbPro",e(819)+t+e(1249)):this[e(1089)][e(629)][e(749)]()&&t>this.player[e(629)][e(1269)]?this[e(1264)]("JbPro",e(856)+t+e(692)+this[e(1089)][e(629)][e(1269)]):(this[e(1089)][e(629)][e(1539)]()&&10===s&&(t*=1e3),this.player.playback[e(1083)](t),this.player.playing?this[e(570)]():this[e(1264)](this[e(989)],e(901))):this[e(1264)]("JbPro",e(865)):this.debugWarn("JbPro",e(753))}[cR(497)](t){const e=cR;this[e(549)]()||(this[e(1423)](e(712),e(780)+t),this[e(1089)]?this.player[e(894)]()?this[e(1089)].playback[e(1539)]()?this[e(1089)].playback.setShowPrecision(t):this.debugWarn("JbPro",e(1051)):this[e(1264)](e(712),e(1512)):this.debugWarn(e(712),"player is null"))}[cR(975)](){const t=cR;this.isDestroyed()||(this.debugLog(t(712),t(1466)),this[t(1089)]?this[t(1089)][t(894)]()?this[t(1089)][t(629)][t(1539)]()?this.player.playback[t(888)]():this[t(1264)](t(712),t(1051)):this[t(1264)](t(712),t(1512)):this[t(1264)]("JbPro",t(929)))}playbackClearCacheBuffer(){const t=cR;this[t(549)]()||(this[t(1423)](t(712),t(966)),this[t(1089)]?this[t(1089)][t(894)]()?(this[t(1011)](),this[t(1089)].video&&this[t(1089)][t(1315)][t(417)](),this.player[t(820)]&&this[t(1089)][t(820)][t(417)](),this.player.resetStartBpsTime()):this[t(1264)](t(712),t(1512)):this[t(1264)](t(712),"player is null"))}[cR(364)](){const t=cR;return this[t(1089)]?this[t(1089)][t(894)]()?this[t(1089)][t(836)]():(this.debugWarn(t(712),"playType is not playback"),1):(this[t(1264)]("JbPro",t(929)),1)}updatePlaybackLocalOneFrameTimestamp(t){const e=cR;this[e(549)]()||(this[e(1423)](e(712),e(730)+t),this.player?this[e(1089)][e(894)]()?this[e(1089)][e(629)][e(908)](t):this[e(1264)](e(712),"playType is not playback"):this[e(1264)](e(712),e(929)))}[cR(388)](t){const e=cR;if(this.isDestroyed())return;if(this[e(1423)](e(712),e(1524)+t),!this[e(1089)])return void this[e(1264)](e(712),e(929));if(!this.player[e(1004)][e(752)][e(1381)])return void this.debugWarn(e(712),e(1352));(this[e(1089)][e(1004)][e(1107)]||[])[e(411)](t)?(this[e(1004)][e(574)]=t,this.player.streamQuality=t):this.debugWarn(e(712),e(469)+t+e(475))}[cR(1369)](){const t=cR;let e=arguments[t(1416)]>0&&void 0!==arguments[0]?arguments[0]:"",s=arguments[t(1416)]>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(((i,r)=>{const n=t;if(!this[n(1089)])return r("player is null");let h=!1;this[n(1004)][n(1220)]&&this._opt[n(1220)]!==e&&(h=!0),this[n(1004)][n(1220)]=e,this[n(1004)][n(619)]=s;const c=e[n(866)]("?")[0],l=c.startsWith(n(757))||c[n(1039)]("https://"),u=c.startsWith(n(773)),p=c[n(1039)](n(399)),f=c[n(1039)](n(482)),m=c.startsWith(n(1081))||c[n(1039)](n(1233)),g=l||m,A=l&&c[n(601)](n(551)),y=g&&c[n(601)](".flv"),b=g&&(c[n(601)](n(850))||c[n(601)](n(1143))),v=g&&c[n(601)](n(784)),S=g&&(c.endsWith(".h264")||c[n(601)](n(1386))),w=g&&c[n(601)](n(1219));let E=this[n(1004)][n(496)]||!1,I=this[n(1004)].isWebrtcForSRS||!1,T=this[n(1004)][n(1120)]||!1;u&&(-1!==e[n(949)](n(858))?(E=!0,I=!1,T=!1):-1!==e[n(949)](n(1288))&&(I=!0,E=!1,T=!1));let k=null,_=null;if(y&&ci(this[n(1004)][n(1337)])&&this[n(1094)]("isFlv"),b&&ci(this._opt[n(1007)])&&this[n(1094)](n(1007)),v&&ci(this[n(1004)].isMpeg4)&&this[n(1094)]("isMpeg4"),S&&ci(this[n(1004)][n(1268)])&&this[n(1094)](n(1268)),w&&ci(this[n(1004)][n(467)])&&this[n(1094)](n(467)),A&&ci(this._opt[n(1090)])&&this._resetDemuxType(n(1090)),this[n(1089)].isPlayVod()&&ci(this[n(1004)][n(1090)]||this[n(1004)][n(1007)]))return this[n(1004)][n(616)]&&this.showErrorMessageTips("url is not support"),void r("play url "+e+n(1054));if(l?k=this._opt[n(1090)]?o[n(515)]:o[n(349)]:f?k=o[n(456)]:u?k=o[n(1072)]:p?k=o[n(738)]:m&&(k=o.websocket),this[n(1004)][n(1268)]?_=d[n(1086)]:this[n(1004)][n(1007)]?_=d[n(1097)]:this[n(1004)][n(984)]?_=d[n(1403)]:this[n(1004)][n(1337)]?_=d[n(1077)]:this._opt.isTs?_=d.ts:this[n(1004)][n(1090)]?_=d[n(515)]:u?_=d[n(1072)]:p?_=d[n(738)]:f?_=d[n(456)]:m&&(_=d[n(754)]),!k||!_)return this[n(1004)][n(616)]&&this.showErrorMessageTips(n(983)),r(n(1410)+e+n(1069)+a[k]+n(383)+_);this[n(1423)](n(712),n(1410)+e+" protocol is "+a[k]+n(383)+_);const C=()=>{const t=n;this.player.on(U[t(657)],this._handleWebglAlignmentError[t(1496)](this)),this[t(1089)].on(U.webglContextLostError,this[t(1542)].bind(this)),this[t(1089)].on(U.mediaSourceH265NotSupport,this._handleMediaSourceH265NotSupport[t(1496)](this)),this[t(1089)].on(U.mseWaitVideoCanplayTimeout,this[t(824)][t(1496)](this)),this[t(1089)].on(U[t(1155)],this[t(1361)].bind(this)),this[t(1089)].on(U[t(839)],this._handleMediaSourceAppendBufferError[t(1496)](this)),this.player.on(U[t(788)],this._handleMseSourceBufferError[t(1496)](this)),this[t(1089)].on(U[t(357)],this[t(1347)][t(1496)](this)),this.player.on(U[t(1125)],this[t(862)][t(1496)](this)),this[t(1089)].on(U[t(931)],this[t(425)][t(1496)](this)),this[t(1089)].on(U[t(962)],this[t(937)].bind(this)),this[t(1089)].on(U[t(390)],this[t(1093)][t(1496)](this)),this.player.on(U.mediaSourceAudioG711NotSupport,this._handleMediaSourceAudioG711NotSupport[t(1496)](this)),this[t(1089)].on(U.mediaSourceAudioInitTimeout,this[t(1187)].bind(this)),this.player[t(889)](U.mediaSourceAudioNoDataTimeout,this._handleMediaSourceAudioNoDataTimeout[t(1496)](this)),this[t(1089)].on(U[t(369)],this[t(942)][t(1496)](this)),this.player.on(U[t(925)],this[t(521)][t(1496)](this)),this[t(1089)].on(U[t(668)],this[t(1063)][t(1496)](this)),this[t(1089)].on(U[t(1134)],this[t(1338)][t(1496)](this)),this[t(1089)].on(U[t(1383)],this[t(1363)][t(1496)](this)),this[t(1089)].on(U[t(772)],this[t(994)].bind(this)),this[t(1089)].on(U[t(826)],this._handleWcsWidthOrHeightChange[t(1496)](this)),this[t(1089)].on(U[t(727)],this[t(789)][t(1496)](this)),this[t(1089)].on(U[t(970)],this[t(1026)][t(1496)](this)),this.player.on(U[t(1096)],this[t(1068)][t(1496)](this)),this[t(1089)].on(U[t(401)],this._handleWasmWidthOrHeightChange[t(1496)](this)),this[t(1089)].on(U.wasmUseVideoRenderError,this[t(830)][t(1496)](this)),this[t(1089)].on(U[t(361)],this._handleNotSupportNewWasm[t(1496)](this)),this[t(1089)].on(U[t(1092)],this[t(723)].bind(this)),this[t(1089)].on(U[t(1376)],this[t(527)][t(1496)](this)),this.player.on(U[t(1451)],this[t(1278)][t(1496)](this)),this.player.on(M.networkDelayTimeout,this[t(977)][t(1496)](this)),this[t(1089)].on(M[t(733)],this[t(656)][t(1496)](this)),this.player.on(U[t(671)],this[t(649)][t(1496)](this)),this.player.on(M[t(1280)],this._handleStreamEnd.bind(this)),this[t(1089)].on(U[t(847)],this[t(565)][t(1496)](this)),this[t(1089)].on(U[t(1108)],this[t(1408)][t(1496)](this)),this[t(1089)].on(U[t(505)],this[t(1549)][t(1496)](this)),this.player.on(U[t(659)],this[t(640)][t(1496)](this)),this[t(1089)].on(U[t(890)],this[t(536)].bind(this)),this.player.on(U[t(1325)],this[t(487)].bind(this)),this.player.on(U.videoElementPlayingFailedForWebrtc,this[t(1138)].bind(this)),this[t(1089)].on(U[t(871)],this[t(1020)][t(1496)](this)),this[t(1089)].on(M[t(764)],this[t(849)][t(1496)](this)),this[t(1089)].on(M[t(436)],this[t(1243)][t(1496)](this)),this[t(1089)].on(M[t(646)],this[t(1126)].bind(this)),this.player.on(M[t(622)],this[t(1550)].bind(this)),this[t(1089)][t(1080)]()&&(this[t(1089)].on(M[t(1450)],this[t(933)][t(1496)](this)),this[t(1089)].on(M[t(1156)],this._handlePlayVodEndedAndReplay[t(1496)](this))),this._hasLoaded()?(this.debugLog(this.TAG_NAME,"_playNext and _hasLoaded() is true"),this.player.play(e,s).then((()=>{i()}))[t(978)]((e=>{const s=t;this[s(1332)]("JbPro","_hasLoaded() and play error",e),this[s(1431)](M.crashLog,this[s(594)](s(982),e)),this[s(1089)]&&this[s(1089)][s(454)]().then((()=>{r(e)})).catch((t=>{const e=s;r(t),this[e(1332)](e(712),e(1139),t)}))}))):(this[t(1423)](this[t(989)],t(294)),this[t(771)](),this[t(1089)][t(889)](M.decoderWorkerInit,(()=>{const n=t;this._clearInitDecoderWorkerTimeout(),this[n(549)]()?this[n(1423)](n(712),n(1523)):(this.debugLog(this[n(989)],n(329)),this[n(1089)][n(516)](e,s)[n(608)]((()=>{i()}))[n(978)]((t=>{const e=n;this[e(1332)](e(712),e(855),t),this[e(1431)](M[e(1334)],this[e(594)](e(855),t)),this.player&&this[e(1089)][e(454)]()[e(608)]((()=>{r(t)}))[e(978)]((t=>{const s=e;r(t),this.debugError(s(712),s(930),t)}))})))})))},R=this.player[n(1008)](),D=this[n(1004)][n(1090)]&&ci(this._opt[n(1190)]),L=u&&ci(this[n(1004)][n(395)]),x=this[n(1004)][n(1090)]&&!!Ws(),P=this[n(1004)][n(1090)]&&R.demuxUseWorker;if(D||L||p||h||v||x||P)this[n(1423)](n(712),n(822)+D+n(297)+L+n(1453)+p+n(1478)+h+n(428)+v+n(833)+x+n(1551)+P),this[n(431)]({protocol:k,demuxType:_,isHls:this._opt[n(1090)],isFmp4:this[n(1004)][n(1007)],isWebrtc:u,isWebrtcForZLM:E,isWebrtcForSRS:I,isWebrtcForOthers:T,isAliyunRtc:p,cryptoKey:s[n(319)]||"",cryptoIV:s[n(791)]||"",url:e,playOptions:s})[n(608)]((()=>{C()}))[n(978)]((t=>{r("reset player error")}));else{const t={protocol:k,demuxType:_,isHls:this[n(1004)][n(1090)],isWebrtc:u,isAliyunRtc:p,isFlv:this[n(1004)][n(1337)],isFmp4:this[n(1004)][n(1007)],isMpeg4:this[n(1004)].isMpeg4,isNakedFlow:this[n(1004)].isNakedFlow,isTs:this[n(1004)].isTs,cryptoKey:s[n(319)]||"",cryptoIV:s[n(791)]||""};this[n(1004)].isNakedFlow&&(t[n(1529)]=!1,t[n(1306)]=!1),this[n(1089)][n(1229)](t),C()}}))}[cR(1094)](t){const e=cR;this._opt[e(1337)]=!1,this[e(1004)][e(1007)]=!1,this._opt[e(984)]=!1,this[e(1004)].isNakedFlow=!1,this._opt.isHls=!1,this[e(1004)].isWebrtc=!1,this[e(1004)][e(496)]=!1,this._opt.isWebrtcForSRS=!1,this[e(1004)][e(1120)]=!1,this._opt[e(1218)]=!1,this[e(1004)][e(467)]=!1,t&&(this._opt[t]=!0)}resize(){const t=cR;this[t(549)]()||(this[t(1423)](t(712),t(288)),this.player&&this.player[t(885)]())}[cR(803)](t){const e=cR;if(this[e(549)]())return;this[e(1423)](e(712),e(1286)+t),(t=Number(t))>10&&this[e(1264)](e(712),e(1171)+t+" second, is too large, video will show blank screen until cache "+t+" second buffer data");const s=1e3*t;this._opt[e(1314)]=s,this[e(1089)]?this[e(1089)][e(1229)]({videoBuffer:s},!0):this[e(1264)](e(712),"setBufferTime() player is null")}[cR(861)](t){const e=cR;if(this.isDestroyed())return;this[e(1423)](e(712),e(1494)+t),(t=Number(t))<.2&&this[e(1264)](e(712),"setBufferDelayTime() buffer time delay is "+t+e(1112));const s=1e3*(t=Ve(t,.2,100));this._opt[e(1076)]=s,this.player?this[e(1089)].updateOption({videoBufferDelay:s},!0):this[e(1264)](e(712),e(1498))}setRotate(t){const e=cR;if(this[e(549)]())return;this[e(1423)](e(712),e(846)+t),t=parseInt(t,10);this[e(1004)][e(924)]!==t&&-1!==[0,90,180,270][e(949)](t)?(this[e(1004)][e(924)]=t,this[e(1089)]?this[e(1089)][e(816)](t):this[e(1264)]("JbPro",e(1349))):this.debugWarn(e(712),e(1005)+t+" and this._opt.rotate is "+this._opt[e(924)])}[cR(973)](t){const e=cR;if(this.isDestroyed())return;this[e(1423)](e(712),e(1201)+t);const s=[e(666),e(726),"vertical"];!t&&(t=e(666)),this._opt[e(1225)]!==t&&-1!==s[e(949)](t)?(this[e(1004)][e(1225)]=t,this.player?(this[e(1089)].updateOption({mirrorRotate:t}),this.resize()):this[e(1264)](e(712),e(632))):this.debugWarn(e(712),"setMirrorRotate() mirrorRotate is "+t+e(1154)+this[e(1004)][e(1225)])}[cR(1502)](t){const e=cR;if(this[e(549)]())return;this[e(1423)](e(712),e(316)+t);const s=[e(731),e(1471),e(493)];!t&&(t=e(731)),this[e(1004)].aspectRatio!==t&&-1!==s[e(949)](t)?(this._opt[e(686)]=t,this[e(1089)]?(this[e(1089)][e(1229)]({aspectRatio:t}),this[e(885)]()):this[e(1264)](e(712),e(1001))):this.debugWarn("JbPro",e(746)+t+" and this._opt.aspectRatio is "+this._opt[e(1225)])}[cR(407)](){return!0}[cR(971)](){const t=cR;return this.player&&this.player[t(583)]||!1}[cR(1272)](){const t=cR;this[t(549)]()||(this.debugLog(t(712),t(795)),this._opt[t(1366)]=!0,this[t(1089)]?this.player[t(1229)]({keepScreenOn:!0}):this.debugWarn(t(712),t(669)))}setFullscreen(t){const e=cR;if(this[e(549)]())return;this.debugLog("JbPro","setFullscreen() "+t);const s=!!t;this[e(1089)]?this[e(1089)][e(563)]!==s?this[e(1089)][e(563)]=s:this[e(1264)](e(712),"setFullscreen() fullscreen is "+s+e(851)+this[e(1089)][e(563)]):this[e(1264)](e(712),e(489))}[cR(485)](t){const e=cR;if(this[e(549)]())return;this[e(1423)](e(712),e(1345)+t);const s=!!t;this[e(1089)]?this[e(1089)].webFullscreen=s:this.debugWarn("JbPro",e(588))}screenshot(t,e,s,i){const r=cR;if(!this.isDestroyed())return this[r(1423)](r(712),r(311)+t+" "+e+" "+s+" "+i),this[r(1089)]&&this.player[r(1315)]?this[r(1089)].video.screenshot(t,e,s,i):(this.debugWarn("JbPro",r(996)),null)}[cR(1186)](t){return new Promise(((e,s)=>{const i=lR;if(this[i(549)]())return s(i(1050));this[i(1423)]("JbPro","screenshotWatermark()",t),this[i(1089)]&&this[i(1089)][i(1315)]?this[i(1089)][i(1315)][i(1186)](t)[i(608)]((t=>{e(t)}))[i(978)]((t=>{s(t)})):(this[i(1264)](i(712),"screenshotWatermark() player is not ready"),s("player is not ready"))}))}[cR(1236)](t){return new Promise(((e,s)=>{const i=lR;if(this.isDestroyed())return s(i(1050));this[i(1423)](i(712),"screenshotCopyrightWatermark()",t),this[i(1089)]&&this[i(1089)][i(1315)]?this[i(1089)][i(1315)].screenshotCopyrightWatermark(t)[i(608)]((t=>{e(t)})).catch((t=>{s(t)})):(this[i(1264)](i(712),i(1375)),s("player is not ready"))}))}[cR(1516)](t){return new Promise(((e,s)=>{const i=lR;if(this[i(549)]())return s(i(1050));if(this[i(1423)](i(712),"screenshotByRect()",t),this[i(1089)]&&this[i(1089)][i(1315)]){e(this.player[i(1315)][i(1516)](t))}else this[i(1264)]("JbPro",i(1122)),s("player is not ready")}))}[cR(1287)](t,e){return new Promise(((s,i)=>{const r=lR;return this[r(549)]()?i("player is destroyed"):(this[r(1423)](r(712),r(810)+t+" "+e),this[r(1089)]?void(this.player[r(599)]?(this[r(1089)][r(1287)](t,e),s()):(this[r(1264)]("JbPro",r(1440)),i(r(1324)))):(this.debugWarn(r(712),r(589)),i(r(1348))))}))}[cR(335)](t,e){return new Promise(((s,i)=>{const r=lR;if(this.isDestroyed())return i(r(1050));this[r(1423)](r(712),"stopRecordAndSave() "+t+" "+e),this[r(1089)]&&this[r(1089)][r(1106)]?this[r(1089)].stopRecordAndSave(t,e)[r(608)]((t=>{s(t)}))[r(978)]((t=>{i(t)})):i(r(532))}))}cancelRecord(){return new Promise(((t,e)=>{const s=lR;return this[s(549)]()?e("player is destroyed"):(this[s(1423)]("JbPro",s(897)),this.player?void this.player[s(1197)]()[s(608)]((()=>{t()}))[s(978)]((t=>{e(t)})):(this.debugWarn("JbPro",s(811)),e(s(1348))))}))}isPlaying(){const t=cR;let e=!1;return this[t(1089)]&&(e=this[t(1089)][t(610)]()),e}[cR(403)](){const t=cR;return!!this[t(1089)]&&this[t(1089)][t(1245)]}[cR(762)](){const t=cR;let e=!1;return this[t(1004)].playType===c.player?e=!this[t(610)]()&&!this[t(403)]():this[t(1004)][t(868)]===c.playbackTF&&this.player?e=this[t(1089)][t(451)]:this._opt[t(868)]===c[t(864)]&&this[t(1089)]&&(e=this.player[t(1540)]),e}isPaused(){return this.isPause()}[cR(697)](){const t=cR;let e=!1;return this._opt[t(868)]===c[t(1305)]&&this[t(1089)]&&(e=this[t(1089)][t(451)]),e}[cR(1158)](){return this[cR(697)]()}[cR(959)](){const t=cR;let e=!1;return this[t(1004)][t(868)]===c.playVod&&this[t(1089)]&&(e=this[t(1089)][t(1540)]),e}[cR(1564)](){const t=cR;let e=!0;return this[t(1089)]&&(e=this[t(1089)][t(714)]()),e}[cR(841)](){const t=cR;let e=!1;return this[t(1089)]&&(e=this[t(1089)][t(1106)]),e}isFullscreen(){const t=cR;let e=!1;return this.player&&(e=this[t(1089)][t(563)]),e}[cR(921)](){const t=cR;let e=!1;return this[t(1089)]&&(e=this[t(1089)][t(670)]),e}[cR(1011)](){const t=cR;this[t(549)]()||(this[t(1423)](t(712),t(739)),this[t(1089)]?this[t(1089)][t(1011)]():this.debugWarn(t(712),t(418)))}[cR(965)](t){const e=cR;if(this[e(549)]())return;this[e(1423)](e(712),e(896)+t),(t=Number(t))<1&&this[e(1264)](e(712),e(413)+t+" second, is too small");const s=1e3*(t=Ve(t,1,100));this[e(1004)][e(463)]=s,this[e(1089)]?this.player.updateOption({networkDelay:s},!0):this[e(1264)](e(712),"setNetworkDelayTime() player is null")}[cR(1459)](){const t=cR;let e="";return this[t(1089)]&&(e=this.player[t(1459)]()),e}[cR(1309)](){const t=cR;let e="";return this.player&&(e=this[t(1089)][t(1309)]()),e}[cR(321)](){const t=cR;let e="";return this.player&&(e=this[t(1089)][t(321)]()),e}[cR(1470)](){const t=cR;let e=0;return this[t(1089)]&&(e=this[t(1089)][t(1470)]()),e}[cR(1392)](){const t=cR;let e=pt[t(887)];return this[t(1089)]&&(e=this[t(1089)][t(1245)]?pt[t(1245)]:this.player[t(599)]?pt.playing:pt[t(1027)]),e}[cR(1252)](){const t=cR;return this[t(1089)]?this[t(1089)][t(1004)][t(868)]:c[t(1089)]}[cR(766)](t){const e=cR;if(this[e(549)]())return;this[e(1423)](e(712),e(360)+t);const s=this[e(1089)]._opt.showPerformance;let i=!s;bs(t)&&(i=t),i!==s?this.player?this[e(1089)][e(766)](i):this[e(1264)](e(712),e(980)):this[e(1264)](e(712),e(358)+s+e(716)+i)}openZoom(){const t=cR;if(!this[t(549)]())if(this[t(1423)](t(712),t(992)),this[t(1089)]){if(this[t(1089)].isDestroyedOrClosed())return void this[t(1264)](t(712),t(557));this[t(1089)][t(1085)]=!0}else this.debugWarn("JbPro","openZoom() failed, this.player is not init")}[cR(478)](){const t=cR;if(!this[t(549)]())if(this[t(1423)](t(712),t(1060)),this[t(1089)]){if(this[t(1089)][t(1460)]())return void this[t(1264)](t(712),"openZoom() failed, this.player is destroyed or paused");this[t(1089)][t(1085)]=!1}else this[t(1264)](t(712),t(412))}[cR(1203)](){const t=cR;let e=!1;return this[t(1089)]&&(e=this[t(1089)][t(1085)]),e}[cR(287)](t){const e=cR;this.isDestroyed()||(this[e(1423)]("JbPro",e(1382)+t),!bs(t)&&(t=!this[e(1203)]()),hi(t)?this[e(1159)]():ci(!1)&&this[e(478)]())}[cR(693)](){const t=cR;this.isDestroyed()||(this[t(1423)](t(712),"expandZoom()"),this.player&&this[t(1089)].zoom&&this[t(1089)][t(1085)]?this.player[t(900)][t(590)]():this[t(1264)]("JbPro",t(814)))}[cR(882)](){const t=cR;this[t(549)]()||(this.debugLog(t(712),"narrowZoom()"),this[t(1089)]&&this[t(1089)][t(900)]&&this[t(1089)][t(1085)]?this[t(1089)][t(900)][t(613)]():this.debugWarn("JbPro",t(682)))}[cR(1223)](t){const e=cR;this[e(549)]()||(this.debugLog(e(712),e(1452),t),this.player&&this[e(1089)][e(900)]&&this[e(1089)].zooming?this.player.zoom[e(1223)](t):this[e(1264)](e(712),e(682)))}[cR(741)](){const t=cR;if(this[t(549)]())return;let e=1;return this[t(1089)]&&this.player[t(900)]&&(e=this[t(1089)][t(900)][t(1543)]),e}setNakedFlowFps(t){return new Promise(((e,s)=>{const i=lR;if(this[i(549)]())return s(i(1050));if(this[i(1423)](i(712),i(1024),t),ys(t))return s("setNakedFlowFps() fps is empty");let r=Number(t);r=Ve(r,1,100),this[i(1004)][i(317)]=r,this[i(1089)]?this.player[i(1229)]({nakedFlowFps:r}):this[i(1264)]("JbPro",i(1016)),e()}))}[cR(594)](t){const e=cR;let s=arguments[e(1416)]>1&&void 0!==arguments[1]?arguments[1]:"";if(!this.player)return;const i=this[e(1089)][e(1193)](),r=this[e(1089)];let n=r[e(1426)]()?e(370):r[e(894)]()?e(747):"playVod",o={url:this[e(1004)][e(1220)],playType:n,demuxType:r[e(1146)](),decoderType:r.getDecodeType(),renderType:r[e(1309)](),videoInfo:{encType:"",width:"",height:""},audioInfo:{encType:"",sampleRate:"",channels:""},audioEngine:r.getAudioEngineType(),allTimes:i[e(1021)],timestamp:je(),type:t,error:Zs(s)||t};if(r[e(1315)]){const t=r[e(1315)][e(593)]||{};o[e(593)]={encType:t[e(750)]||"",width:t[e(1099)]||"",height:t[e(350)]||""}}if(r[e(820)]){const t=r[e(820)].audioInfo||{};o.audioInfo={encType:t.encType||"",sampleRate:t[e(579)]||"",channels:t[e(704)]||""}}return o}[cR(1035)](t){const e=cR;this.isDestroyed()||(this.debugLog(e(712),e(1010),t),t===m[e(1318)]||t===m[e(572)]?t!==this[e(1089)][e(1004)][e(981)]?(this[e(1004)].debugLevel=t,this.player?this[e(1089)][e(1229)]({debugLevel:t},!0):this.debugWarn(e(712),"updateDebugLevel() player is null")):this[e(1264)](e(712),e(1557)+t):this.debugWarn(e(712),"updateDebugLevel() level is not valid, level: "+t))}updateWatermark(t){const e=cR;this[e(549)]()||(this[e(1423)](e(712),e(1270),t),this[e(1089)]?(this[e(1089)][e(935)](t),this[e(1004)][e(614)]=t):this[e(1264)](e(712),e(1043)))}[cR(1413)](){const t=cR;this[t(549)]()||(this.debugLog(t(712),t(1556)),this[t(1089)]?(this.player[t(1413)](),this[t(1004)][t(614)]={}):this[t(1264)](t(712),t(661)))}[cR(1192)](t){const e=cR;if(!this.isDestroyed())if(this.debugLog(e(712),e(1329),t),Bs(t)){this[e(1004)][e(309)]=t;const s=ws(this[e(1521)],t);if(!s[e(444)])return void this[e(1264)](e(712),e(1485));this[e(799)].load(s)}else this[e(1264)](e(712),"updateFullscreenWatermark() config is not valid, config: "+t)}[cR(952)](){const t=cR;this[t(549)]()||(this.debugLog(t(712),t(591)),this[t(799)]?this.watermark[t(807)]():this[t(1264)]("JbPro",t(923)))}[cR(1274)](){const t=cR;this[t(549)]()||(this[t(1423)](t(712),t(464)),this[t(1089)]?this[t(1089)].faceDetect(!0):this[t(1264)](t(712),t(736)))}[cR(1394)](){const t=cR;this.isDestroyed()||(this[t(1423)]("JbPro",t(576)),this.player?this.player.faceDetect(!1):this[t(1264)](t(712),t(1489)))}[cR(1509)](){const t=cR;this.isDestroyed()||(this[t(1423)]("JbPro",t(384)),this[t(1089)]?this.player[t(645)](!0):this[t(1264)]("JbPro",t(902)))}objectDetectClose(){const t=cR;this[t(549)]()||(this[t(1423)](t(712),t(396)),this.player?this.player[t(645)](!1):this[t(1264)](t(712),t(1254)))}[cR(1070)](t){const e=cR;this[e(549)]()||(this[e(1423)](e(712),e(1387),t),this[e(1089)]?this.player[e(1070)](t):this.debugWarn(e(712),"sendWebsocketMessage() player is not init"))}[cR(943)](t){const e=cR;this[e(549)]()||(this[e(1423)](e(712),"addContentToCanvas()"),this[e(1089)]?(this.player.addContentToCanvas(t),this[e(770)]=t):this[e(1264)]("JbPro",e(665)))}[cR(1256)](){const t=cR;this[t(549)]()||(this[t(1423)](t(712),"clearContentToCanvas()"),this.player?(this[t(1089)][t(943)]([]),this[t(770)]=[]):this[t(1264)](t(712),t(838)))}addContentToContainer(t){const e=cR;this[e(549)]()||(this[e(1423)]("JbPro",e(1290)),this[e(1089)]?this[e(1089)][e(500)](t):this[e(1264)]("JbPro",e(1555)))}[cR(282)](){const t=cR;this[t(549)]()||(this[t(1423)](t(712),"clearContentToContainer()"),this.player?this.player[t(500)]([]):this[t(1264)](t(712),"clearContentToContainer() player is not init"))}[cR(1417)](t){const e=cR;this[e(549)]()||(this[e(1423)](e(712),e(1378),t),this[e(1089)]?this.player[e(1417)](t):this.debugWarn(e(712),e(1491)))}[cR(1432)](){const t=cR;this[t(549)]()||(this[t(1423)]("JbPro",t(621)),this[t(1089)]?this.player[t(1432)]():this.debugWarn(t(712),"clearControlHtml() player is not init"))}[cR(974)](t){const e=cR;this[e(549)]()||(this[e(1423)](e(712),e(648)+t),this[e(1089)]?this.player[e(974)](t):this[e(1264)]("JbPro","toggleControlHtml() player is not init"))}[cR(1104)](){return!!this.player&&this.player.getControlHtmlIsShow()}getControlHtml(){const t=cR;return this[t(1089)]?this[t(1089)].getControlHtml():null}[cR(573)](t){const e=cR;this[e(549)]()||(this[e(1423)](e(712),e(1017),t),this[e(1089)]?this[e(1089)][e(573)](t):this[e(1264)](e(712),e(441)))}[cR(423)](){const t=cR;this.isDestroyed()||(this[t(1423)](t(712),t(877)),this[t(1089)]?this[t(1089)][t(423)]():this[t(1264)](t(712),t(419)))}toggleExtendHtml(t){const e=cR;this[e(549)]()||(this[e(1423)](e(712),"toggleExtendHtml() "+t),this[e(1089)]?this[e(1089)][e(792)](t):this[e(1264)](e(712),e(1045)))}[cR(530)](){return!!this[cR(1089)]&&this.player.getExtendHtmlIsShow()}[cR(872)](){const t=cR;return this[t(1089)]?this[t(1089)][t(872)]():null}[cR(1265)](){const t=cR;let e=null;return this[t(1089)]&&(e=this[t(1089)][t(1265)]()),e}[cR(1507)](){const t=cR;let e=null;return this[t(1089)]&&(e=this[t(1089)][t(1507)]()),e}[cR(1215)](t){const e=cR;if(this.isDestroyed())return;this[e(1423)]("JbPro","setSm4CryptoKey()",t);const s=(t=""+t)[e(866)](".");if(32!==t.length&&2!==s[e(1416)])return void this[e(1264)](e(712),"setSm4CryptoKey() key is invalid and length is "+t[e(1416)]+" !== 32");if(2===s[e(1416)]&&(32!==s[0][e(1416)]||32!==s[1][e(1416)]))return void this.debugWarn("JbPro",e(558)+s[0].length+e(703)+s[1].length+e(1435));this._opt[e(615)]=t;let i=2===s[e(1416)];if(i&&(this[e(1004)][e(619)][e(319)]=ac(s[0]),this._opt[e(619)][e(791)]=ac(s[1])),this[e(1089)]){const s={sm4CryptoKey:t};i&&(s.cryptoKey=this._opt[e(619)][e(319)],s[e(791)]=this[e(1004)][e(619)][e(791)]),this.player[e(1229)](s,!0)}else this[e(1264)]("JbPro",e(352))}[cR(611)](t){const e=cR;this[e(549)]()||(this[e(1423)]("JbPro",e(1200),t),t=""+t,this[e(1004)][e(584)]=t,this[e(1089)]?this[e(1089)].updateOption({m7sCryptoKey:t},!0):this[e(1264)](e(712),e(667)))}[cR(1499)](t){const e=cR;this[e(549)]()||(this[e(1423)]("JbPro","setXorCryptoKey()",t),t=""+t,this[e(1004)][e(1117)]=t,this[e(1089)]?this.player[e(1229)]({xorCryptoKey:t},!0):this[e(1264)](e(712),e(1504)))}updateLoadingText(t){const e=cR;this[e(549)]()||(this[e(1423)](e(712),e(624),t),this[e(1089)]?this[e(1089)].updateLoadingText(t):this.debugWarn("JbPro",e(1214)))}updateIsEmitSEI(t){const e=cR;this[e(549)]()||(this[e(1423)](e(712),e(476),t),this[e(1004)][e(1228)]=t,this.player?this[e(1089)][e(1229)]({isEmitSEI:t},!0):this[e(1264)]("JbPro","updateIsEmitSEI() player is null"))}[cR(1087)](t,e){const s=cR;return this[s(1423)](s(712),s(1477),t),t?this[s(1089)]?HC({type:t,index:0,speed:e}):(this[s(1264)](s(712),s(1360)),null):(this[s(1264)](s(712),"getPTZCmd() ptz is null"),null)}[cR(526)](){return new Promise(((t,e)=>{const s=lR;this[s(1089)]?(this[s(1089)][s(1563)](),t()):e(s(1238))}))}[cR(298)](){return new Promise(((t,e)=>{const s=lR;if(this[s(549)]())return e(s(1050));this[s(1089)]?(this[s(1089)][s(1341)](),t()):e(s(1238))}))}[cR(533)](){return new Promise(((t,e)=>{const s=lR;if(this[s(549)]())return e("player is destroyed");this[s(1089)]?(this.player[s(1185)](),t()):e(s(1238))}))}[cR(1234)](){return new Promise(((t,e)=>{const s=lR;if(this.isDestroyed())return e("player is destroyed");this[s(1089)]?(this[s(1089)][s(1015)](),t()):e(s(1238))}))}[cR(472)](){const t=cR;this[t(549)]()||this.memoryLogger&&this[t(717)][t(499)]()}[cR(756)](){const t=cR;if(ci(this[t(1004)][t(1119)]))return{};const e=this[t(1265)]()||{},s={loadingBackground:this[t(471)]("",t(1425),.5,t(676)),loadingBackgroundWidth:e[t(1099)]||0,loadingBackgroundHeight:e[t(350)]||0};return s.loadingBackground&&s.loadingBackgroundWidth&&s.loadingBackgroundHeight&&(this._tempVideoLastIframeInfo=s),this[t(713)]||{}}[cR(1202)](){const t=cR;this[t(1423)](t(712),"getExtendBtnList()");let e=[];return this.player?e=this.player[t(1202)]():this[t(1264)](t(712),t(582)),e}[cR(1259)](){const t=cR;this[t(1423)](t(712),t(1289));let e=null;return this[t(1089)]?e=this.player[t(490)]():this[t(1264)](t(712),t(312)),e}[cR(859)](t){const e=cR;if(this[e(549)]())return;this.debugLog(e(712),e(732),t);const s=1e3*(t=Number(t));this[e(1004)][e(988)]=s,this[e(1089)]?this[e(1089)].updateOption({aiFaceDetectInterval:s}):this[e(1264)](e(712),e(343))}[cR(1149)](t){const e=cR;if(this[e(549)]())return;if(this[e(1423)]("JbPro",e(742),t),!St[t])return void this[e(1264)]("JbPro",e(1075)+t+e(342));const s=St[t];this[e(1004)][e(292)]=s,this.player?(this[e(1089)][e(1229)]({aiFaceDetectWidth:s}),this.player.ai&&this[e(1089)].ai[e(1545)]({detectWidth:s})):this[e(1264)](e(712),e(511))}[cR(498)](t){const e=cR;if(this[e(549)]())return;this[e(1423)]("JbPro",e(1377),t);const s=1e3*(t=Number(t));this[e(1004)][e(1061)]=s,this[e(1089)]?this[e(1089)][e(1229)]({aiObjectDetectInterval:s}):this[e(1264)](e(712),e(380))}updateAiObjectDetectLevel(t){const e=cR;if(this[e(549)]())return;if(this[e(1423)](e(712),e(1209),t),!wt[t])return void this[e(1264)](e(712),e(1244)+t+e(342));const s=wt[t];this[e(1004)][e(834)]=s,this[e(1089)]?(this[e(1089)][e(1229)]({aiObjectDetectWidth:s}),this[e(1089)].ai&&this.player.ai[e(1029)]({detectWidth:s})):this[e(1264)](e(712),e(642))}[cR(932)](t){const e=cR;this[e(549)]()||(this[e(1423)](e(712),e(673),t),t&&(this._opt[e(879)]=t))}[cR(1044)](t){const e=cR;this[e(549)]()||(this[e(1423)]("JbPro",e(728),t),t&&(this.player?this.player[e(922)](t):this[e(1264)](e(712),e(915))))}setPtzPosition(t){const e=cR;this[e(1423)](e(712),e(543),t),t&&!Ps(t)&&(this.player?this[e(1089)][e(1301)](t):this[e(1264)](e(712),e(567)))}hideErrorMessageTips(){const t=cR;this[t(549)]()||(this[t(1423)](t(712),t(1241)),this[t(1089)]?this[t(1089)][t(941)]():this[t(1264)](t(712),t(1175)))}getContainerRect(){return this._getContainerRect()}[cR(305)](t,e,s,i){const r=cR;return this[r(1319)][r(305)](t,e,s,i)}[cR(1095)](){return this._opt.url}[cR(683)](t,e){const s=cR;this.isDestroyed()||(this[s(1423)](this.TAG_NAME,s(1071)+t+" "+e),this[s(1089)]?this[s(1089)][s(683)](t,e):this.debugWarn(this[s(989)],s(1292)))}[cR(473)](t){const e=cR;if(this[e(549)]())return;this[e(1423)](this[e(989)],"getControlExtendBtnActive() "+t);let s=!1;return this[e(1089)]?s=this.player.getControlExtendBtnActive(t):this[e(1264)](this[e(989)],e(919)),s}toggleControlBar(t){const e=cR;this[e(549)]()||(this[e(1423)](this[e(989)],e(715)+t),this[e(1089)]?this[e(1089)][e(1250)](t):this.debugWarn(this[e(989)],e(899)))}[cR(709)](){const t=cR;if(this[t(549)]())return!1;this[t(1423)](this[t(989)],t(1098));let e=!1;return this[t(1089)]?e=this[t(1089)][t(709)]():this[t(1264)](this.TAG_NAME,"getControlBarShow() player is null"),e}static[cR(1053)](t){return Is(t)}static[cR(1142)](t){return function(t){for(var e=t,s=0,i=0,r=0;r<32;r++)i|=(1&e[s])<<r,s+=4;return i}(t)}[cR(1401)](t){const e=cR;let s=!0,i=[];if(t===Mt[e(878)]?i=this[e(837)]:t===Mt[e(1129)]?i=this[e(725)]:t===Mt.wcsDecodeError&&(i=this[e(571)]),this.debugLog(this[e(989)],"_checkIsMeaningfulRetry() type is "+t+e(702)+i[e(1111)](",")),i[e(1416)]>=this[e(1004)][e(1458)]){const r=i[0],n=i[i[e(1416)]-1],o=n-r;o<=1e4&&(this[e(1264)](this[e(989)],"retry type is "+t+e(1472)+i[e(1416)]+e(1002)+r+e(1018)+n+e(393)+o),s=!1)}return s}[cR(604)](t){const e=cR;(es()||ss())&&t[e(555)]&&t.loadingBackgroundWidth&&t.loadingBackgroundHeight&&(this[e(1330)](),this[e(1089)][e(1004)][e(686)]===e(731)||Je()?this[e(1089)][e(1309)]()===f[e(1135)]?this[e(1188)](t):this[e(1089)][e(1309)]()===f[e(1315)]&&this[e(706)](t):this[e(1032)](t))}[cR(706)](t){const e=cR;this[e(1423)](this[e(989)],"_doInitLoadingBackgroundForVideo");const s=this._getContainerRect();let i=s[e(1099)],r=s.height;const n=this[e(1089)]._opt;r-=this[e(1089)][e(1374)]();let o=i,a=r;const h=n[e(924)];(270===h||90===h)&&(o=r,a=i),this[e(1033)][e(1099)]=o,this[e(1033)].height=a,this[e(1033)][e(1297)]=t.loadingBackground;let c=(i-o)/2,l=(r-a)/2,d=e(875);!n[e(510)]&&(d=e(528)),n[e(1500)]&&(d="none");let u="";n.mirrorRotate===e(666)&&h&&(u+=e(1284)+h+"deg)"),n[e(1225)]===e(726)?u+=e(698):n.mirrorRotate===e(990)&&(u+=e(386)),this[e(1004)][e(694)]&&(this[e(1033)][e(898)].objectFit=d),this[e(1033)].style[e(954)]=u,this.$loadingBgImage[e(898)].padding="0",this[e(1033)].style.left=c+"px",this[e(1033)][e(898)][e(999)]=l+"px",this[e(1033)][e(409)]?In(this.$loadingBg,e(787)):this.$loadingBgImage[e(1199)]=()=>{const t=e;In(this.$loadingBg,"show"),this.$loadingBgImage[t(1199)]=null}}[cR(1188)](t){const e=cR;this[e(1423)](this.TAG_NAME,"_doInitLoadingBackgroundForCanvas");const s=this[e(1078)]();let i=s.width,r=s[e(350)];const n=this.player[e(1004)];r-=this[e(1089)].getControlHeight();let o=i,a=r;const h=n[e(924)];let c=(i-o)/2,l=(r-a)/2;(270===h||90===h)&&(o=r,a=i),this[e(1033)][e(1099)]=o,this[e(1033)][e(350)]=a,this[e(1033)][e(1297)]=t[e(555)];const d=i/o,u=r/a;let p=d>u?u:d;ci(n[e(510)])&&d!==u&&(p=d+","+u),n[e(1500)]&&(p=d>u?d:u);let f=e(1474)+p+")";n.mirrorRotate===e(666)&&h&&(f+=e(1284)+h+e(1525)),n.mirrorRotate===e(726)?f+=e(698):"vertical"===n[e(1225)]&&(f+=e(386)),this[e(1033)][e(898)][e(907)]="0",this[e(1033)].style.transform=f,this[e(1033)][e(898)][e(504)]=c+"px",this[e(1033)][e(898)][e(999)]=l+"px",this[e(1033)][e(409)]?In(this[e(1037)],"show"):this[e(1033)][e(1199)]=()=>{const t=e;In(this[t(1037)],"show"),this.$loadingBgImage[t(1199)]=null}}[cR(1032)](t){const e=cR;this[e(1423)](this[e(989)],"_doInitLoadingBackgroundForRatio");const s=this[e(1089)][e(1004)][e(686)][e(866)](":")[e(313)](Number),i=this[e(1078)]();let r=i[e(1099)],n=i[e(350)],o=this.player[e(1374)]();n-=o;const a={width:t[e(1350)],height:t[e(918)]},h=a[e(1099)]/a[e(350)],c=s[0]/s[1];if(this.$loadingBgImage[e(1297)]=t[e(555)],h>c){const t=c*a[e(350)]/a[e(1099)];this[e(1033)].style[e(1099)]=100*t+"%",this[e(1033)].style.height="calc(100% - "+o+e(798),this[e(1033)].style[e(907)]="0 "+(r-r*t)/2+"px"}else{const t=a.width/c/a[e(350)];this[e(1033)][e(898)][e(1099)]=e(1561),this[e(1033)][e(898)][e(350)]=e(1123)+100*t+e(1067)+o+e(798),this.$loadingBgImage.style[e(907)]=(n-n*t)/2+e(330)}this[e(1033)][e(409)]?In(this.$loadingBg,e(787)):this[e(1033)][e(1199)]=()=>{const t=e;In(this[t(1037)],"show"),this[t(1033)][t(1199)]=null}}[cR(1330)](){const t=cR;if(!this[t(1037)]){const e=document[t(1164)](t(1009)),s=document[t(1164)](t(462));e.className=t(279),this[t(1037)]=e,this.$loadingBgImage=s,e[t(1331)](s),this[t(1521)][t(1331)](e)}}[cR(722)](){const t=cR;if(this.$loadingBg){this[t(1423)](this.TAG_NAME,t(346));if(!Ln(this[t(1037)])){const e=this[t(1521)][t(1501)](t(1173));e&&this[t(1521)]&&this[t(1521)][t(450)](e)}this[t(1037)]=null,this[t(1033)]=null}}[cR(1078)](){const t=cR;let e={};return this[t(1521)]&&(e=this[t(1521)][t(768)](),e[t(1099)]=Math.max(e[t(1099)],this[t(1521)].clientWidth),e[t(350)]=Math.max(e[t(350)],this[t(1521)][t(1153)])),e}[cR(1058)](){const t=cR;return this[t(1004)][t(955)]&&this[t(379)][t(561)]()}[cR(1131)](t){const e=cR;if(this[e(549)]())this[e(1423)](e(712),e(857));else if(this[e(328)])this.debugLog(e(712),e(734));else if(this[e(1431)](M[e(1334)],this[e(594)](U[e(657)],t)),this[e(328)]=!0,this.player&&this[e(1089)][e(1004)].webglAlignmentErrorReplay){this.debugLog(e(712),e(657));const s=this[e(1004)][e(1220)],i=this[e(1004)][e(619)];this[e(431)]({openWebglAlignment:!0})[e(608)]((()=>{const r=e;this[r(516)](s,i).then((()=>{const t=r;this[t(1423)](t(712),t(1520)),this[t(1282)]()}))[r(978)]((e=>{const s=r;this[s(1431)](M.playFailedAndPaused,U[s(657)],{},t),this[s(1332)](s(712),s(1467),e)}))[r(1109)]((()=>{this[r(328)]=!1}))})).catch((t=>{const s=e;this[s(328)]=!1,this[s(1332)]("JbPro",s(1398),t)}))}else{const s=!1===this[e(1004)].playFailedUseLastFrameShow;this[e(1089)][e(1344)](),this[e(1422)](s)[e(608)]((()=>{const s=e;this[s(1431)](M[s(641)],U[s(657)],{},t),this[s(1423)](s(712),s(1449))})).catch((s=>{const i=e;this[i(1431)](M[i(641)],U[i(657)],{},t),this[i(1332)]("JbPro","webglAlignmentError and pause error",s)}))[e(1109)]((()=>{this[e(328)]=!1}))}}[cR(1542)](t){const e=cR;if(this[e(549)]())return void this[e(1423)](e(712),e(290));if(this[e(775)])return void this[e(1423)]("JbPro","webglContextLostErrorOnLock is true");this[e(1431)](M[e(1334)],this[e(594)](U[e(1562)],t));const s=this[e(756)]();if(this[e(775)]=!0,this[e(1089)]&&this.player._opt.webglContextLostErrorReplay){this[e(1423)](e(712),e(1562));const i=this._opt[e(1220)],r=this._opt.playOptions;let n=this[e(556)](s);this[e(431)](n)[e(608)]((()=>{const n=e;this[n(516)](i,r).then((()=>{const t=n;this[t(1423)](t(712),t(808)),this[t(1282)]()}))[n(978)]((e=>{const i=n;this.emit(M[i(641)],U[i(1562)],s,t),this[i(1332)](i(712),i(477),e[i(705)]())}))[n(1109)]((()=>{this.webglContextLostErrorOnLock=!1}))}))[e(978)]((i=>{const r=e;this[r(775)]=!1,this[r(1431)](M[r(641)],U[r(1562)],s,t),this[r(1332)]("JbPro",r(687),i)}))}else{const i=!1===this[e(1004)][e(338)];this[e(1089)][e(1344)](),this[e(1422)](i)[e(608)]((()=>{const i=e;this.emit(M[i(641)],U[i(1562)],s,t),this[i(1423)](i(712),i(1473))}))[e(978)]((i=>{const r=e;this[r(1431)](M[r(641)],U[r(1562)],s,t),this.debugError("JbPro",r(744),i)}))[e(1109)]((()=>{this[e(775)]=!1}))}}[cR(461)](t){const e=cR;if(this[e(549)]())this[e(1423)](e(712),e(442));else if(this[e(455)])this[e(1423)]("JbPro",e(867));else if(this.emit(M[e(1334)],this[e(594)](U.mediaSourceH265NotSupport,t)),this[e(455)]=!0,this.player&&this[e(1089)][e(1004)][e(1022)]){this[e(1423)](e(712),"mediaSourceH265NotSupport auto wasm [mse-> wasm] reset player and play");const s=this._opt.url,i=this[e(1004)].playOptions;this[e(431)]({useMSE:!1,useWCS:!1})[e(608)]((()=>{const r=e;this.play(s,i)[r(608)]((()=>{const t=r;this[t(1423)](t(712),t(457)),this[t(1282)]()}))[r(978)]((e=>{this[r(1431)](M.playFailedAndPaused,U.mediaSourceH265NotSupport,{},t),this.debugError("JbPro","mediaSourceH265NotSupport auto wasm [mse-> wasm] reset player and play error",e)}))[r(1109)]((()=>{this.mediaSourceH265NotSupportOnLock=!1}))}))[e(978)]((s=>{const i=e;this[i(455)]=!1,this[i(1431)](M[i(641)],U[i(502)],{},t),this[i(1332)]("JbPro","mediaSourceH265NotSupport auto wasm [mse-> wasm] _resetPlayer error",s)}))}else{const s=!1===this[e(1004)][e(338)];this[e(1089)][e(1344)](),this._pause(s)[e(608)]((()=>{const s=e;this[s(1431)](M.playFailedAndPaused,U.mediaSourceH265NotSupport,{},t),this[s(1423)]("JbPro",s(1404))}))[e(978)]((s=>{const i=e;this[i(1431)](M.playFailedAndPaused,U[i(502)],{},t),this[i(1332)](i(712),"mediaSourceH265NotSupport and pause error",s)}))[e(1109)]((()=>{this.mediaSourceH265NotSupportOnLock=!1}))}}[cR(824)](t){const e=cR;if(this[e(549)]())this[e(1318)]&&this[e(1423)]("JbPro",e(786));else if(this.mseWaitVideoCanplayTimeoutOnLock)this.debugLog("JbPro",e(1226));else if(this[e(1431)](M[e(1334)],this[e(594)](U[e(939)],t)),this[e(443)]=!0,this[e(1089)]&&this[e(1089)][e(1004)][e(1303)]){this[e(1423)](e(712),e(426));const s=this[e(1004)].url,i=this[e(1004)].playOptions;this[e(431)]({useMSE:!1,useWCS:!1})[e(608)]((()=>{const r=e;this[r(516)](s,i)[r(608)]((()=>{const t=r;this.debugLog(t(712),"mseWaitVideoCanplayTimeout auto wasm [mse-> wasm] reset player and play success"),this[t(1282)]()}))[r(978)]((e=>{const s=r;this[s(1431)](M[s(641)],U.mseWaitVideoCanplayTimeout,t),this[s(1332)](s(712),"mseWaitVideoCanplayTimeout auto wasm [mse-> wasm] reset player and play error",e)}))[r(1109)]((()=>{this[r(443)]=!1}))}))[e(978)]((s=>{const i=e;this[i(443)]=!1,this[i(1431)](M[i(641)],U[i(939)],{},t),this.debugError(i(712),i(1456),s)}))}else{const s=!1===this[e(1004)].playFailedUseLastFrameShow;this[e(1089)][e(1344)](),this[e(1422)](s)[e(608)]((()=>{const s=e;this.emit(M[s(641)],U.mseWaitVideoCanplayTimeout,{},t),this[s(1423)]("JbPro",s(302))})).catch((s=>{const i=e;this[i(1431)](M.playFailedAndPaused,U[i(502)],{},t),this.debugError(i(712),i(951),s)}))[e(1109)]((()=>{this[e(443)]=!1}))}}_handleMediaSourceFull(t){const e=cR;if(this[e(549)]())return void(this[e(1318)]&&this[e(1423)]("JbPro",e(410)));if(this[e(1391)])return void this[e(1423)](e(712),e(1152));this[e(1431)](M[e(1334)],this[e(594)](U[e(1155)],t));const s=this._getVideoLastIframeInfo();if(this[e(1391)]=!0,this[e(1089)]&&this.player[e(1004)][e(1235)]){const i=this[e(1004)][e(1220)],r=this[e(1004)][e(619)];let n={},o=this[e(1089)]._opt[e(324)],a=!0;o?n={useMSE:!1,useWCS:!1}:this[e(1401)](Mt[e(1129)])?this[e(725)][e(575)](je()):(o=!0,a=!1,n={useMSE:!1,useWCS:!1}),this[e(1423)](e(712),e(782)+(ci(a)?e(1213):"")+e(662)+(o?e(1012):"mse")+"] reset player and play"),n=this[e(556)](s,n),this[e(431)](n)[e(608)]((()=>{const n=e;this[n(516)](i,r).then((()=>{const t=n;this[t(1423)]("JbPro","mediaSourceFull and reset player and play success"),this[t(1282)]()}))[n(978)]((e=>{const i=n;this[i(1431)](M.playFailedAndPaused,U[i(1155)],s,t),this[i(1332)](i(712),"mediaSourceFull and reset player and play error",e)}))[n(1109)]((()=>{this[n(1391)]=!1}))}))[e(978)]((i=>{const r=e;this[r(1391)]=!1,this[r(1431)](M.playFailedAndPaused,U[r(1155)],s,t),this[r(1332)](r(712),r(1211),i)}))}else{const i=!1===this._opt.playFailedUseLastFrameShow;this[e(1089)][e(1344)](),this[e(1422)](i)[e(608)]((()=>{const i=e;this[i(1431)](M.playFailedAndPaused,U[i(1155)],s,t),this[i(1423)]("JbPro","mediaSourceFull and autoWasm is false ,pause success")}))[e(978)]((i=>{const r=e;this.emit(M[r(641)],U.mediaSourceFull,s,t),this[r(1332)]("JbPro","mediaSourceFull and pause error",i)}))[e(1109)]((()=>{this[e(1391)]=!1}))}}[cR(1073)](t){const e=cR;if(this[e(549)]())return void(this[e(1318)]&&this[e(1423)](e(712),e(1514)));if(this[e(886)])return void this[e(1423)](e(712),e(1102));this[e(1431)](M[e(1334)],this[e(594)](U[e(839)],t));const s=this[e(756)]();if(this[e(886)]=!0,this[e(1089)]&&this[e(1089)][e(1004)][e(1235)]){const i=this[e(1004)][e(1220)],r=this[e(1004)][e(619)];let n={},o=this.player._opt[e(324)],a=!0;o?n={useMSE:!1,useWCS:!1}:this[e(1401)](Mt[e(1129)])?this[e(725)][e(575)](je()):(o=!0,a=!1,n={useMSE:!1,useWCS:!1}),(this[e(1089)][e(1302)]||this[e(1089)].isMSENotSupportAudioFormat)&&(this[e(1089)][e(1423)](e(712),e(281)+this[e(1089)][e(1302)]+e(948)+this.player.isMSENotSupportAudioFormat+e(652)),n[e(1529)]=!1),this[e(1423)](e(712),"mediaSourceAppendBufferError and "+(ci(a)?e(1213):"")+e(662)+(o?"wasm":e(320))+e(1246)),n=this[e(556)](s,n),this[e(431)](n)[e(608)]((()=>{const n=e;this.play(i,r)[n(608)]((()=>{const t=n;this.debugLog(t(712),t(1183)),this[t(1282)]()}))[n(978)]((e=>{const i=n;this[i(1431)](M[i(641)],U[i(839)],s,t),this[i(1332)](i(712),"mediaSourceAppendBufferError and reset player and play error",e)}))[n(1109)]((()=>{this[n(886)]=!1}))})).catch((i=>{const r=e;this[r(886)]=!1,this[r(1431)](M.playFailedAndPaused,U.mediaSourceAppendBufferError,s,t),this[r(1332)](r(712),r(1114),i)}))}else{const i=!1===this._opt[e(338)];this.player.setPlayFailedAndPaused(),this[e(1422)](i)[e(608)]((()=>{const i=e;this[i(1431)](M[i(641)],U[i(839)],s,t),this[i(1423)]("JbPro","mediaSourceAppendBufferError and autoWasm is false ,pause success")}))[e(978)]((i=>{const r=e;this[r(1431)](M[r(641)],U[r(839)],s,t),this[r(1332)]("JbPro",r(699),i)}))[e(1109)]((()=>{this[e(886)]=!1}))}}[cR(804)](t){const e=cR;if(this[e(549)]())return void(this.debug&&this[e(1423)]("JbPro",e(1481)));if(this.mseSourceBufferErrorOnLock)return void this[e(1423)](e(712),e(1484));this[e(1431)](M[e(1334)],this[e(594)](U[e(788)],t));const s=this[e(756)]();if(this[e(544)]=!0,this[e(1089)]&&this[e(1089)]._opt[e(1235)]){const i=this._opt.url,r=this[e(1004)][e(619)];let n={};if(this[e(1089)][e(1004)].mseDecoderUseWorker)n={mseDecoderUseWorker:!1},this[e(1423)](e(712),e(884));else{let t=this[e(1089)]._opt[e(324)],s=!0;t?n={useMSE:!1,useWCS:!1}:this[e(1401)](Mt[e(1129)])?this[e(725)].push(je()):(t=!0,s=!1,n={useMSE:!1,useWCS:!1}),this[e(1089)][e(729)]&&(this.debugLog("JbPro",e(1281)),n={useMSE:!1,useWCS:!1}),this[e(1423)](e(712),e(438)+(ci(s)?e(1213):"")+e(662)+e(t?1012:320)+e(1246))}n=this[e(556)](s,n),this[e(431)](n)[e(608)]((()=>{const n=e;this.play(i,r)[n(608)]((()=>{const t=n;this[t(1423)](t(712),t(304)),this[t(1282)]()}))[n(978)]((e=>{const i=n;this[i(1431)](M[i(641)],U.mseSourceBufferError,s,t),this.debugError(i(712),i(681),e)}))[n(1109)]((()=>{this[n(544)]=!1}))}))[e(978)]((i=>{const r=e;this[r(544)]=!1,this.emit(M[r(641)],U.mseSourceBufferError,s,t),this.debugError(r(712),r(1428),i)}))}else{const i=!1===this[e(1004)].playFailedUseLastFrameShow;this[e(1089)][e(1344)](),this[e(1422)](i)[e(608)]((()=>{const i=e;this[i(1431)](M[i(641)],U[i(788)],s,t),this[i(1423)](i(712),i(755))}))[e(978)]((i=>{const r=e;this[r(1431)](M[r(641)],U[r(788)],s,t),this.debugError(r(712),r(597),i)})).finally((()=>{this.mseSourceBufferErrorOnLock=!1}))}}[cR(1347)](t){const e=cR;if(this[e(549)]())return void(this[e(1318)]&&this[e(1423)](e(712),e(432)));if(this.mediaSourceBufferedIsZeroErrorOnLock)return void this[e(1423)]("JbPro",e(314));this[e(1431)](M[e(1334)],this[e(594)](U.mediaSourceBufferedIsZeroError,t));const s=this._getVideoLastIframeInfo();if(this.mediaSourceBufferedIsZeroErrorOnLock=!0,this.player&&this[e(1089)][e(1004)][e(1235)]){const i=this[e(1004)][e(1220)],r=this[e(1004)][e(619)];let n={},o=this[e(1089)][e(1004)][e(324)],a=!0;o?n={useMSE:!1,useWCS:!1}:this._checkIsMeaningfulRetry(Mt[e(1129)])?this[e(725)][e(575)](je()):(o=!0,a=!1,n={useMSE:!1,useWCS:!1}),this[e(1423)](e(712),e(1168)+(ci(a)?e(1213):"")+" [mse-> "+e(o?1012:320)+e(1246)),n=this._resetPlayerBeforeUpdateOptions(s,n),this._resetPlayer(n)[e(608)]((()=>{const n=e;this[n(516)](i,r)[n(608)]((()=>{const t=n;this[t(1423)](t(712),"mediaSourceBufferedIsZeroError reset player and play success"),this[t(1282)]()}))[n(978)]((e=>{const i=n;this[i(1431)](M[i(641)],U[i(357)],s,t),this[i(1332)](i(712),i(776),e)}))[n(1109)]((()=>{this[n(1412)]=!1}))}))[e(978)]((i=>{const r=e;this[r(1412)]=!1,this.emit(M[r(641)],U[r(357)],s,t),this.debugError(r(712),r(359),i)}))}else{const i=!1===this[e(1004)][e(338)];this.player[e(1344)](),this[e(1422)](i)[e(608)]((()=>{const i=e;this[i(1431)](M[i(641)],U[i(357)],s,t),this[i(1423)](i(712),i(1308))}))[e(978)]((i=>{const r=e;this[r(1431)](M[r(641)],U[r(357)],s,t),this[r(1332)]("JbPro",r(696),i)}))[e(1109)]((()=>{this[e(1412)]=!1}))}}[cR(862)](t){const e=cR;if(this[e(549)]())return void(this[e(1318)]&&this[e(1423)]("JbPro",e(1198)));if(this[e(362)])return void this[e(1423)]("JbPro",e(1059));this.emit(M[e(1334)],this[e(594)](U[e(1125)],t));const s=this[e(756)]();if(this[e(362)]=!0,this[e(1089)]&&this[e(1089)][e(1004)].hardDecodingNotSupportAutoWasm){this[e(1423)]("JbPro",e(365));const i=this[e(1004)].url,r=this[e(1004)][e(619)];let n={useMSE:!1,useWCS:!1};n=this[e(556)](s,n),this._resetPlayer(n).then((()=>{const n=e;this[n(516)](i,r)[n(608)]((()=>{const t=n;this[t(1423)]("JbPro","mseAddSourceBufferError auto wasm [mse-> wasm] reset player and play success"),this[t(1282)]()}))[n(978)]((e=>{const i=n;this[i(1431)](M[i(641)],U[i(1125)],s,t),this.debugError(i(712),"mseAddSourceBufferError auto wasm [mse-> wasm] reset player and play error",e)}))[n(1109)]((()=>{this.mseAddSourceBufferErrorOnLock=!1}))}))[e(978)]((i=>{const r=e;this.mseAddSourceBufferErrorOnLock=!1,this[r(1431)](M[r(641)],U.mseAddSourceBufferError,s,t),this[r(1332)](r(712),r(844),i)}))}else{const i=!1===this[e(1004)][e(338)];this[e(1089)][e(1344)](),this._pause(i).then((()=>{const i=e;this[i(1431)](M[i(641)],U[i(1125)],s,t),this.debugLog("JbPro",i(578))})).catch((i=>{const r=e;this.emit(M[r(641)],U[r(1125)],s,t),this[r(1332)](r(712),r(995),i)}))[e(1109)]((()=>{this.mseAddSourceBufferErrorOnLock=!1}))}}_handleMediaSourceDecoderConfigurationError(t){const e=cR;if(this.isDestroyed())this[e(1318)]&&this[e(1423)](e(712),e(1165));else if(this[e(550)])this[e(1423)](e(712),e(688));else if(this[e(1431)](M[e(1334)],this[e(594)](U.mediaSourceDecoderConfigurationError,t)),this[e(550)]=!0,this[e(1089)]&&this[e(1089)][e(1004)][e(1022)]){this[e(1423)](e(712),e(679));const s=this._opt[e(1220)],i=this._opt.playOptions;let r={useMSE:!1,useWCS:!1};this[e(431)](r)[e(608)]((()=>{const r=e;this[r(516)](s,i)[r(608)]((()=>{const t=r;this[t(1423)](t(712),t(1390)),this[t(1282)]()}))[r(978)]((e=>{const s=r;this[s(1431)](M[s(641)],U.mediaSourceDecoderConfigurationError,{},t),this[s(1332)](s(712),s(1116),e)}))[r(1109)]((()=>{this[r(550)]=!1}))})).catch((s=>{const i=e;this[i(550)]=!1,this.emit(M[i(641)],U.mediaSourceDecoderConfigurationError,{},t),this[i(1332)](i(712),"mediaSourceDecoderConfigurationError auto wasm [mse-> wasm] _resetPlayer and play error",s)}))}else{const s=!1===this[e(1004)][e(338)];this[e(1089)].setPlayFailedAndPaused(),this[e(1422)](s)[e(608)]((()=>{const s=e;this[s(1431)](M[s(641)],U.mediaSourceDecoderConfigurationError,{},t),this[s(1423)](s(712),s(1172))}))[e(978)]((s=>{const i=e;this[i(1431)](M[i(641)],U[i(931)],{},t),this[i(1332)]("JbPro",i(675),s)}))[e(1109)]((()=>{this[e(550)]=!1}))}}[cR(937)](t){const e=cR;if(this[e(549)]())return void(this[e(1318)]&&this[e(1423)](e(712),"mediaSourceTsIsMaxDiff but player is destroyed"));if(this[e(1317)])return void this.debugLog(e(712),e(763));this[e(1431)](M[e(1334)],this[e(594)](U[e(962)],t));const s=this[e(756)]();if(this.mediaSourceTsIsMaxDiffOnLock=!0,this[e(1089)]&&this[e(1089)][e(1004)][e(437)]){this[e(1423)](e(712),e(906));const i=this[e(1004)][e(1220)],r=this[e(1004)][e(619)];let n=this[e(556)](s);this[e(431)](n).then((()=>{const n=e;this.play(i,r).then((()=>{const t=lR;this[t(1423)]("JbPro",t(351)),this[t(1282)]()})).catch((e=>{const i=lR;this[i(1431)](M[i(641)],U[i(962)],s,t),this.debugError(i(712),i(969),e)}))[n(1109)]((()=>{this[n(1317)]=!1}))}))[e(978)]((i=>{const r=e;this[r(1317)]=!1,this[r(1431)](M[r(641)],U[r(962)],s,t),this.debugError(r(712),"mediaSourceTsIsMaxDiff _resetPlayer error",i)}))}else{const i=!1===this[e(1004)][e(338)];this[e(1089)][e(1344)](),this[e(1422)](i)[e(608)]((()=>{const i=e;this[i(1431)](M[i(641)],U[i(962)],s,t),this.debugLog(i(712),i(779))}))[e(978)]((i=>{const r=e;this[r(1431)](M.playFailedAndPaused,U[r(962)],s,t),this[r(1332)](r(712),"mediaSourceTsIsMaxDiff and pause error",i)}))[e(1109)]((()=>{this[e(1317)]=!1}))}}[cR(1093)](t){const e=cR;if(this.isDestroyed())return void(this.debug&&this[e(1423)](e(712),e(1414)));if(this[e(325)])return void this.debugLog(e(712),e(1030));this[e(1431)](M[e(1334)],this[e(594)](U.mseWidthOrHeightChange,t));const s=this[e(756)]();if(this[e(325)]=!0,this[e(1089)]&&this[e(1089)][e(1004)][e(815)]){this.debugLog(e(712),e(1307));const i=this[e(1004)][e(1220)],r=this[e(1004)][e(619)];let n=this[e(556)](s);this._resetPlayer(n)[e(608)]((()=>{const n=e;this[n(1089)]._opt[n(1393)]>0?this[n(823)]=setTimeout((()=>{const e=n;this.widthOrHeightChangeReplayDelayTimeout=null,this[e(549)]()?this[e(1318)]&&this[e(1423)](e(712),e(541)):this.play(i,r)[e(608)]((()=>{this[e(1423)]("JbPro","mseWidthOrHeightChange and reset player and play success"),this._replaySuccessAndNext()})).catch((i=>{const r=e;this[r(1431)](M[r(641)],U[r(390)],s,t),this[r(1332)](r(712),r(394),i)})).finally((()=>{this[e(325)]=!1}))}),1e3*this[n(1089)]._opt[n(1393)]):this[n(516)](i,r)[n(608)]((()=>{const t=n;this[t(1423)](t(712),t(926))}))[n(978)]((e=>{const i=n;this[i(1431)](M[i(641)],U[i(390)],s,t),this.debugError(i(712),i(394),e)}))[n(1109)]((()=>{this[n(325)]=!1}))}))[e(978)]((i=>{const r=e;this[r(325)]=!1,this[r(1431)](M[r(641)],U[r(390)],s,t),this[r(1332)](r(712),"mseWidthOrHeightChange and _resetPlayer error",i)}))}else{const i=!1===this[e(1004)][e(338)];this[e(1089)][e(1344)](),this._pause(i)[e(608)]((()=>{const i=e;this[i(1431)](M.playFailedAndPaused,U[i(390)],s,t),this.debugError(i(712),i(1216))}))[e(978)]((i=>{const r=e;this[r(1431)](M.playFailedAndPaused,U[r(390)],s,t),this[r(1332)](r(712),r(1320),i)}))[e(1109)]((()=>{this.mseWidthOrHeightChangeOnLock=!1}))}}_handleMediaSourceAudioG711NotSupport(t){const e=cR;if(this.isDestroyed())return void(this.debug&&this[e(1423)](e(712),e(653)));if(this.mediaSourceAudioG711NotSupportOnLock)return void this.debugLog(e(712),e(414));const s=this[e(756)]();if(this.mediaSourceAudioG711NotSupportOnLock=!0,this[e(1089)]&&this[e(1089)][e(1004)][e(341)]){this.debugLog(e(712),"mediaSourceAudioG711NotSupport and reset player and play");const i=this[e(1004)][e(1220)],r=this[e(1004)][e(619)];let n={mseDecodeAudio:!1};n=this[e(556)](s,n),this[e(431)](n)[e(608)]((()=>{const n=e;this.play(i,r)[n(608)]((()=>{const t=n;this[t(1423)]("JbPro",t(961)),this[t(1282)]()}))[n(978)]((e=>{const i=n;this[i(1431)](M.playFailedAndPaused,U.mediaSourceAudioG711NotSupport,s,t),this.debugError("JbPro",i(794),e)}))[n(1109)]((()=>{this.mediaSourceAudioG711NotSupportOnLock=!1}))}))[e(978)]((i=>{const r=e;this.mediaSourceAudioG711NotSupportOnLock=!1,this[r(1431)](M[r(641)],U.mediaSourceAudioG711NotSupport,s,t),this[r(1332)]("JbPro","mediaSourceAudioG711NotSupport and _resetPlayer error",i)}))}else{const i=!1===this[e(1004)][e(338)];this[e(1089)][e(1344)](),this[e(1422)](i)[e(608)]((()=>{const i=e;this[i(1431)](M.playFailedAndPaused,U[i(985)],s,t),this.debugError(i(712),i(979))}))[e(978)]((i=>{const r=e;this[r(1431)](M.playFailedAndPaused,U[r(985)],s,t),this[r(1332)](r(712),"mediaSourceAudioG711NotSupport error and pause error",i)}))[e(1109)]((()=>{this[e(1519)]=!1}))}}[cR(1187)](t){const e=cR;if(this.isDestroyed())return void(this[e(1318)]&&this.debugLog(e(712),e(711)));if(this.mediaSourceAudioInitTimeoutOnLock)return void this[e(1423)](e(712),"mediaSourceAudioInitTimeoutOnLock is true");const s=this[e(756)]();if(this[e(674)]=!0,this.player&&this[e(1089)][e(1004)][e(854)]){this.debugLog(e(712),"mediaSourceAudioInitTimeout and reset player and play");const i=this[e(1004)][e(1220)],r=this[e(1004)][e(619)];let n={mseDecodeAudio:!1};n=this[e(556)](s,n),this[e(431)](n)[e(608)]((()=>{const n=e;this[n(516)](i,r)[n(608)]((()=>{const t=n;this.debugLog("JbPro",t(1326)),this[t(1282)]()}))[n(978)]((e=>{const i=n;this[i(1431)](M[i(641)],U[i(1407)],s,t),this[i(1332)](i(712),i(1025),e)}))[n(1109)]((()=>{this[n(674)]=!1}))}))[e(978)]((i=>{const r=e;this.mediaSourceAudioInitTimeoutOnLock=!1,this.emit(M[r(641)],U[r(1407)],s,t),this[r(1332)](r(712),"mediaSourceAudioInitTimeout and _resetPlayer error",i)}))}else{const i=!1===this[e(1004)].playFailedUseLastFrameShow;this[e(1089)][e(1344)](),this[e(1422)](i)[e(608)]((()=>{const i=e;this.emit(M[i(641)],U[i(1407)],s,t),this[i(1332)](i(712),i(1486))}))[e(978)]((i=>{const r=e;this[r(1431)](M[r(641)],U[r(1407)],s,t),this[r(1332)](r(712),r(356),i)})).finally((()=>{this[e(674)]=!1}))}}_handleMediaSourceAudioNoDataTimeout(t){const e=cR;if(this[e(549)]())return void(this.debug&&this[e(1423)]("JbPro",e(537)));if(this.mediaSourceAudioNoDataTimeoutOnLock)return void this.debugLog(e(712),e(636));const s=this[e(756)]();if(this[e(1247)]=!0,this.player&&this[e(1089)][e(1004)][e(1530)]){this[e(1423)](e(712),e(1137));const i=this[e(1004)].url,r=this[e(1004)][e(619)];let n={mseDecodeAudio:!1};n=this[e(556)](s,n),this[e(431)](n)[e(608)]((()=>{const n=e;this.play(i,r).then((()=>{const t=lR;this[t(1423)](t(712),t(832)),this[t(1282)]()}))[n(978)]((e=>{const i=n;this[i(1431)](M.playFailedAndPaused,U[i(805)],s,t),this.debugError(i(712),i(835),e)})).finally((()=>{this.mediaSourceAudioNoDataTimeoutOnLock=!1}))}))[e(978)]((i=>{const r=e;this[r(1247)]=!1,this[r(1431)](M[r(641)],U[r(805)],s,t),this[r(1332)](r(712),r(1013),i)}))}else{const i=!1===this[e(1004)][e(338)];this[e(1089)][e(1344)](),this._pause(i)[e(608)]((()=>{const i=e;this.emit(M[i(641)],U[i(805)],s,t),this[i(1332)](i(712),"mediaSourceAudioNoDataTimeout and mediaSourceAudioNoDataTimeoutReplay isfalse pause success")}))[e(978)]((i=>{const r=e;this.emit(M.playFailedAndPaused,U[r(805)],s,t),this[r(1332)]("JbPro",r(946),i)})).finally((()=>{this[e(1247)]=!1}))}}_handleMseWorkerAddSourceBufferError(t){const e=cR;if(this[e(549)]())return void(this[e(1318)]&&this[e(1423)](e(712),e(1239)));if(this[e(1373)])return void this[e(1423)](e(712),e(405));const s=this[e(756)]();if(this.mseWorkerAddSourceBufferErrorOnLock=!0,this.player&&this[e(1089)][e(1004)][e(1022)]){this.debugLog(e(712),"mseWorkerAddSourceBufferError and reset player and play");const i=this[e(1004)][e(1220)],r=this[e(1004)][e(619)];let n={mseDecoderUseWorker:!1};n=this[e(556)](s,n),this[e(431)](n)[e(608)]((()=>{const n=e;this[n(516)](i,r)[n(608)]((()=>{const t=n;this[t(1423)]("JbPro",t(829)),this[t(1282)]()}))[n(978)]((e=>{const i=n;this[i(1431)](M.playFailedAndPaused,U[i(369)],s,t),this[i(1332)](i(712),i(1221),e)})).finally((()=>{this[n(1373)]=!1}))}))[e(978)]((i=>{const r=e;this[r(1373)]=!1,this.emit(M.playFailedAndPaused,U[r(369)],s,t),this[r(1332)]("JbPro",r(672),i)}))}else{const i=!1===this._opt[e(338)];this[e(1089)].setPlayFailedAndPaused(),this[e(1422)](i)[e(608)]((()=>{const i=e;this[i(1431)](M[i(641)],U.mseWorkerAddSourceBufferError,s,t),this.debugError(i(712),i(429))})).catch((i=>{const r=e;this[r(1431)](M[r(641)],U[r(369)],s,t),this[r(1332)]("JbPro",r(1042),i)}))[e(1109)]((()=>{this[e(1373)]=!1}))}}[cR(521)](t){const e=cR;if(this[e(549)]())this[e(1318)]&&this[e(1423)](e(712),e(1140));else if(this[e(1362)])this[e(1423)](e(712),e(660));else if(this[e(1431)](M[e(1334)],this[e(594)](U[e(925)],t)),this.mediaSourceUseCanvasRenderPlayFailedOnLock=!0,this[e(1089)]&&this.player[e(1004)].mediaSourceUseCanvasRenderPlayFailedReplay&&this[e(1089)][e(1004)][e(920)]){this[e(1423)](e(712),e(914)+this[e(1089)][e(1004)].mediaSourceUseCanvasRenderPlayFailedReplayType+e(828));const s=this[e(1004)].url,i=this[e(1004)][e(619)];let r={};const n=this[e(1089)]._opt[e(920)];n===f.canvas?r={useMSE:!1,useWCS:!1}:n===f[e(1315)]&&(r={useVideoRender:!0,useCanvasRender:!1}),this._resetPlayer(r)[e(608)]((()=>{const r=e;this.play(s,i)[r(608)]((()=>{const t=r;this.debugLog(t(712),t(627)),this[t(1282)]()})).catch((e=>{const s=r;this.emit(M[s(641)],U[s(925)],{},t),this[s(1332)](s(712),"mediaSourceUseCanvasRenderPlayFailed and reset player and play error",e)})).finally((()=>{this[r(1362)]=!1}))})).catch((s=>{const i=e;this[i(1362)]=!1,this[i(1431)](M[i(641)],U[i(925)],{},t),this[i(1332)]("JbPro",i(495),s)}))}else{const s=!1===this[e(1004)][e(338)];this[e(1089)][e(1344)](),this[e(1422)](s)[e(608)]((()=>{const t=e;this.debugLog(t(712),"mediaSourceUseCanvasRenderPlayFailed and mediaSourceUseCanvasRenderPlayFailedReplay is false, pause success")}))[e(978)]((s=>{const i=e;this[i(1431)](M[i(641)],U.mediaSourceUseCanvasRenderPlayFailed,{},t),this[i(1332)](i(712),i(997),s)}))[e(1109)]((()=>{this.mediaSourceUseCanvasRenderPlayFailedOnLock=!1}))}}_handleWebcodecsH265NotSupport(t){const e=cR;if(this.isDestroyed())this[e(1318)]&&this[e(1423)]("JbPro",e(1191));else if(this[e(801)])this[e(1423)](e(712),e(904));else if(this.emit(M[e(1334)],this[e(594)](U[e(668)],t)),this[e(801)]=!0,this[e(1089)]&&this[e(1089)]._opt.hardDecodingNotSupportAutoWasm){this[e(1423)](e(712),e(956));const s=this[e(1004)][e(1220)],i=this[e(1004)][e(619)];this[e(431)]({useMSE:!1,useWCS:!1})[e(608)]((()=>{const r=e;this[r(516)](s,i).then((()=>{const t=r;this[t(1423)](t(712),t(950)),this[t(1282)]()})).catch((e=>{const s=r;this[s(1431)](M[s(641)],U[s(668)],{},t),this[s(1332)]("JbPro",s(934),e)}))[r(1109)]((()=>{this[r(801)]=!1}))}))[e(978)]((t=>{const s=e;this[s(801)]=!1,this[s(1332)]("JbPro","webcodecsH265NotSupport auto wasm [wcs-> wasm] _resetPlayer and play error",t)}))}else{const s=!1===this[e(1004)][e(338)];this[e(1089)][e(1344)](),this._pause(s)[e(608)]((()=>{const s=e;this[s(1431)](M[s(641)],U[s(668)],{},t),this.debugLog(s(712),s(1515))}))[e(978)]((s=>{const i=e;this[i(1431)](M[i(641)],U.webcodecsH265NotSupport,{},t),this[i(1332)](i(712),"webcodecsH265NotSupport and pause error",s)}))[e(1109)]((()=>{this.webcodecsH265NotSupportOnLock=!1}))}}_handleWebcodecsUnsupportedConfigurationError(t){const e=cR;if(this[e(549)]())this[e(1318)]&&this[e(1423)](e(712),"webcodecsUnsupportedConfigurationError but player is destroyed");else if(this[e(880)])this[e(1423)](e(712),"webcodecsUnsupportedConfigurationErrorOnLock is true");else if(this[e(1431)](M[e(1334)],this.getCrashLog(U[e(1134)],t)),this[e(880)]=!0,this[e(1089)]&&this[e(1089)][e(1004)][e(1022)]){this.debugLog("JbPro",e(327));const s=this[e(1004)][e(1220)],i=this[e(1004)][e(619)];this._resetPlayer({useMSE:!1,useWCS:!1})[e(608)]((()=>{const r=e;this[r(516)](s,i).then((()=>{const t=r;this[t(1423)](t(712),"webcodecsUnsupportedConfigurationError auto wasm [wcs-> wasm] reset player and play success"),this[t(1282)]()}))[r(978)]((e=>{const s=r;this[s(1431)](M[s(641)],U[s(1134)],{},t),this.debugError("JbPro",s(1559),e)})).finally((()=>{this[r(880)]=!1}))}))[e(978)]((s=>{const i=e;this[i(880)]=!1,this[i(1431)](M.playFailedAndPaused,U[i(1134)],{},t),this[i(1332)](i(712),"webcodecsUnsupportedConfigurationError auto wasm [wcs-> wasm] _resetPlayer and play error",s)}))}else{const s=!1===this[e(1004)][e(338)];this[e(1089)].setPlayFailedAndPaused(),this[e(1422)](s)[e(608)]((()=>{const s=e;this[s(1431)](M[s(641)],U[s(1134)],{},t),this[s(1423)](s(712),s(874))}))[e(978)]((s=>{const i=e;this.emit(M[i(641)],U.webcodecsUnsupportedConfigurationError,{},t),this[i(1332)](i(712),i(1144),s)})).finally((()=>{this[e(880)]=!1}))}}[cR(1363)](t){const e=cR;if(this[e(549)]())this[e(1318)]&&this[e(1423)](e(712),e(1275));else if(this.webcodecsDecodeConfigureErrorOnLock)this[e(1423)](e(712),"webcodecsDecodeConfigureErrorOnLock is true");else if(this[e(1431)](M[e(1334)],this[e(594)](U[e(1383)],t)),this[e(1089)]&&this.player[e(1004)].hardDecodingNotSupportAutoWasm){this[e(1423)](e(712),e(554));const s=this[e(1004)][e(1220)],i=this[e(1004)][e(619)];this[e(431)]({useMSE:!1,useWCS:!1})[e(608)]((()=>{const r=e;this[r(516)](s,i)[r(608)]((()=>{const t=r;this[t(1423)]("JbPro",t(1062)),this[t(1282)]()}))[r(978)]((e=>{const s=r;this[s(1431)](M[s(641)],U.webcodecsDecodeConfigureError,{},t),this[s(1332)](s(712),s(466),e)})).finally((()=>{this[r(1208)]=!1}))}))[e(978)]((s=>{const i=e;this[i(1208)]=!1,this[i(1431)](M.playFailedAndPaused,U[i(1383)],{},t),this[i(1332)](i(712),"webcodecsDecodeConfigureError auto wasm [wcs-> wasm] _resetPlayer and play error",s)}))}else{const s=!1===this[e(1004)].playFailedUseLastFrameShow;this.player.setPlayFailedAndPaused(),this[e(1422)](s)[e(608)]((()=>{const s=e;this[s(1431)](M[s(641)],U[s(1383)],{},t),this[s(1423)](s(712),s(1040))})).catch((s=>{const i=e;this[i(1431)](M[i(641)],U[i(1383)],{},t),this[i(1332)]("JbPro",i(344),s)}))[e(1109)]((()=>{this[e(1208)]=!1}))}}_handleWebcodecsDecodeError(t){const e=cR;if(this.isDestroyed())return void(this.debug&&this[e(1423)](e(712),e(542)));if(this[e(968)])return void this[e(1423)]("JbPro",e(1448));this[e(1431)](M[e(1334)],this[e(594)](U[e(772)],t));const s=this[e(756)]();if(this[e(968)]=!0,this[e(1089)]&&this[e(1089)][e(1004)].wcsDecodeErrorReplay){const i=this._opt[e(1220)],r=this._opt[e(619)];let n={},o=this[e(1089)][e(1004)][e(324)],a=!0;o?n={useMSE:!1,useWCS:!1}:this._checkIsMeaningfulRetry(Mt[e(1492)])?this[e(571)][e(575)](je()):(o=!0,a=!1,n={useMSE:!1,useWCS:!1}),this[e(1423)](e(712),e(1253)+(ci(a)?e(1213):"")+" [wcs-> "+(o?"wasm":e(449))+e(1246)),n=this._resetPlayerBeforeUpdateOptions(s,n),this[e(431)](n)[e(608)]((()=>{const n=e;this[n(516)](i,r).then((()=>{const t=n;this.debugLog("JbPro",t(1411)),this[t(1282)]()}))[n(978)]((e=>{const i=n;this[i(1431)](M[i(641)],U[i(772)],s,{},t),this[i(1332)]("JbPro",i(903),e)}))[n(1109)]((()=>{this[n(968)]=!1}))}))[e(978)]((()=>{const i=e;this[i(968)]=!1,this[i(1431)](M[i(641)],U[i(772)],s,{},t),this[i(1332)]("JbPro",i(1493))}))}else{const i=!1===this[e(1004)][e(338)];this.player[e(1344)](),this[e(1422)](i).then((()=>{const i=e;this.emit(M[i(641)],U[i(772)],s,{},t),this[i(1423)](i(712),"webcodecs decode error and autoWasm is false , pause success")})).catch((i=>{const r=e;this[r(1431)](M[r(641)],U.webcodecsDecodeError,s,{},t),this[r(1332)]("JbPro",r(1463),i)}))[e(1109)]((()=>{this[e(968)]=!1}))}}_handleWcsWidthOrHeightChange(t){const e=cR;if(this[e(549)]())return void(this.debug&&this.debugLog(e(712),"wcsWidthOrHeightChange but player is destroyed"));if(this[e(1418)])return void this[e(1423)]("JbPro",e(303));this[e(1431)](M[e(1334)],this[e(594)](U[e(826)],t));const s=this._getVideoLastIframeInfo();if(this[e(1418)]=!0,this.player&&this.player[e(1004)][e(815)]){this.debugLog("JbPro","wcsWidthOrHeightChange and reset player and play");const i=this[e(1004)][e(1220)],r=this._opt[e(619)];let n=this[e(556)](s);this._resetPlayer(n)[e(608)]((()=>{const n=e;this._opt.widthOrHeightChangeReplayDelayTime>0?this[n(823)]=setTimeout((()=>{const e=n;this[e(823)]=null,this[e(549)]()?this[e(1318)]&&this[e(1423)](e(712),e(745)):this[e(516)](i,r)[e(608)]((()=>{const t=e;this[t(1423)](t(712),t(1105)),this[t(1282)]()})).catch((i=>{const r=e;this[r(1431)](M[r(641)],U.wcsWidthOrHeightChange,s,t),this.debugError(r(712),r(600),i)})).finally((()=>{this[e(1418)]=!1}))}),1e3*this[n(1004)].widthOrHeightChangeReplayDelayTime):this[n(516)](i,r).then((()=>{const t=n;this[t(1423)]("JbPro",t(1105))}))[n(978)]((e=>{const i=n;this[i(1431)](M[i(641)],U[i(826)],s,t),this[i(1332)](i(712),"wcsWidthOrHeightChange and reset player and play error",e)}))[n(1109)]((()=>{this[n(1418)]=!1}))}))[e(978)]((i=>{const r=e;this.wcsWidthOrHeightChangeOnLock=!1,this[r(1431)](M[r(641)],U[r(826)],s,t),this[r(1332)](r(712),"wcsWidthOrHeightChange and _resetPlayer error",i)}))}else{const i=!1===this._opt.playFailedUseLastFrameShow;this[e(1089)].setPlayFailedAndPaused(),this._pause(i)[e(608)]((()=>{const i=e;this[i(1431)](M.playFailedAndPaused,U[i(826)],s,t),this[i(1332)](i(712),"wcsWidthOrHeightChange and widthOrHeightChangeReplay is false , pause success")}))[e(978)]((i=>{const r=e;this[r(1431)](M[r(641)],U[r(826)],s,t),this[r(1332)](r(712),r(1298),i)}))[e(1109)]((()=>{this[e(1418)]=!1}))}}_handleWebcodecsAudioNoDataTimeout(t){const e=cR;if(this[e(549)]())return void(this.debug&&this.debugLog(e(712),"webcodecsAudioNoDataTimeout but player is destroyed"));if(this[e(1166)])return void this[e(1423)](e(712),e(777));const s=this[e(756)]();if(this.webcodecsAudioNoDataTimeoutOnLock=!0,this[e(1089)]&&this[e(1089)][e(1004)].webcodecsAudioNoDataTimeoutReplay){this.debugLog(e(712),e(1388));const i=this[e(1004)][e(1220)],r=this._opt[e(619)];let n={wcsDecodeAudio:!1};n=this._resetPlayerBeforeUpdateOptions(s,n),this[e(431)](n)[e(608)]((()=>{const n=e;this.play(i,r)[n(608)]((()=>{this[n(1423)]("JbPro","webcodecsAudioNoDataTimeout and reset player and play success"),this._replaySuccessAndNext()}))[n(978)]((e=>{const i=n;this[i(1431)](M.playFailedAndPaused,U[i(727)],s,t),this[i(1332)](i(712),i(848),e)}))[n(1109)]((()=>{this[n(1166)]=!1}))}))[e(978)]((i=>{const r=e;this.webcodecsAudioNoDataTimeoutOnLock=!1,this[r(1431)](M[r(641)],U.webcodecsAudioNoDataTimeout,s,t),this[r(1332)](r(712),r(843),i)}))}else{const i=!1===this[e(1004)][e(338)];this[e(1089)][e(1344)](),this[e(1422)](i).then((()=>{const i=e;this[i(1431)](M[i(641)],U[i(727)],s,t),this[i(1332)](i(712),i(986))}))[e(978)]((i=>{const r=e;this[r(1431)](M.playFailedAndPaused,U[r(727)],s,t),this[r(1332)](r(712),r(1263),i)}))[e(1109)]((()=>{this[e(1166)]=!1}))}}[cR(1026)](t){const e=cR;if(this.isDestroyed())return void(this.debug&&this[e(1423)](e(712),e(1207)));if(this[e(916)])return void this[e(1423)](e(712),e(940));const s=this[e(756)]();if(this[e(916)]=!0,this[e(1089)]&&this[e(1089)]._opt[e(967)]){this[e(1423)](e(712),e(936));const i=this[e(1004)].url,r=this[e(1004)].playOptions;let n={wcsDecodeAudio:!1};n=this[e(556)](s,n),this._resetPlayer(n)[e(608)]((()=>{const n=e;this[n(516)](i,r)[n(608)]((()=>{const t=n;this[t(1423)](t(712),"webcodecsAudioInitTimeout and reset player and play success"),this[t(1282)]()}))[n(978)]((e=>{const i=n;this[i(1431)](M.playFailedAndPaused,U[i(970)],s,t),this.debugError(i(712),i(501),e)}))[n(1109)]((()=>{this[n(916)]=!1}))}))[e(978)]((i=>{const r=e;this[r(916)]=!1,this[r(1431)](M.playFailedAndPaused,U[r(970)],s,t),this.debugError(r(712),"webcodecsAudioInitTimeout and _resetPlayer error",i)}))}else{const i=!1===this._opt[e(338)];this[e(1089)][e(1344)](),this[e(1422)](i).then((()=>{const i=e;this.emit(M[i(641)],U.webcodecsAudioInitTimeout,s,t),this[i(1332)](i(712),"webcodecsAudioInitTimeout and webcodecsAudioInitTimeoutReplay is false , pause success")}))[e(978)]((i=>{const r=e;this[r(1431)](M[r(641)],U[r(970)],s,t),this[r(1332)](r(712),r(821),i)}))[e(1109)]((()=>{this[e(916)]=!1}))}}[cR(1068)](t){const e=cR;if(this[e(549)]())return void(this[e(1318)]&&this[e(1423)](e(712),e(1313)));if(this[e(1346)])return void this[e(1423)](e(712),e(1454));this[e(1431)](M[e(1334)],this[e(594)](U[e(1096)],t));const s=this[e(756)]();if(this[e(1346)]=!0,this[e(1089)]&&this.player._opt[e(460)]){this[e(1423)](e(712),e(1424)+this[e(1089)]._opt[e(1356)]+e(828));const i=this[e(1004)][e(1220)],r=this._opt[e(619)];let n={};this[e(1089)][e(1004)][e(1356)]===p[e(1012)]&&(n={useSIMD:!1}),n=this[e(556)](s,n),this[e(431)](n).then((()=>{const n=e;this[n(516)](i,r)[n(608)]((()=>{const t=n;this[t(1423)](t(712),t(639)),this[t(1282)]()}))[n(978)]((e=>{const i=n;this[i(1431)](M[i(641)],U[i(1096)],s,t),this[i(1332)](i(712),i(523),e)}))[n(1109)]((()=>{this[n(1346)]=!1}))}))[e(978)]((i=>{const r=e;this[r(1346)]=!1,this[r(1431)](M[r(641)],U[r(1096)],s,t),this[r(1332)](r(712),r(1310),i)}))}else{const i=!1===this[e(1004)][e(338)];this[e(1089)][e(1344)](),this[e(1422)](i)[e(608)]((()=>{const i=e;this.emit(M[i(641)],U.simdDecodeError,s,t),this[i(1332)](i(712),i(587))})).catch((i=>{const r=e;this.emit(M.playFailedAndPaused,U[r(1096)],s,t),this.debugError(r(712),r(1365),i)}))[e(1109)]((()=>{this.simdDecodeErrorOnLock=!1}))}}[cR(1446)](t){const e=cR;if(this[e(549)]())return void(this[e(1318)]&&this[e(1423)]("JbPro","wasmWidthOrHeightChange but player is destroyed"));if(this[e(1181)])return void this.debugLog(e(712),e(595));this.emit(M[e(1334)],this[e(594)](U.wasmWidthOrHeightChange,t));const s=this[e(756)]();if(this.wasmWidthOrHeightChangeOnLock=!0,this[e(1089)]&&this[e(1089)][e(1004)][e(815)]){this[e(1423)](e(712),e(514));const i=this._opt.url,r=this[e(1004)][e(619)];let n=this._resetPlayerBeforeUpdateOptions(s);this[e(431)](n)[e(608)]((()=>{const n=e;this[n(1004)].widthOrHeightChangeReplayDelayTime>0?this[n(823)]=setTimeout((()=>{const e=n;this[e(823)]=null,this[e(549)]()?this.debug&&this[e(1423)](e(712),e(1351)):this[e(516)](i,r)[e(608)]((()=>{const t=e;this[t(1423)](t(712),t(758)),this[t(1282)]()}))[e(978)]((i=>{const r=e;this[r(1431)](M[r(641)],U[r(401)],s,t),this[r(1332)]("JbPro",r(1006),i)}))[e(1109)]((()=>{this[e(1181)]=!1}))}),1e3*this[n(1004)][n(1393)]):this[n(516)](i,r)[n(608)]((()=>{const t=n;this.debugLog(t(712),t(758))})).catch((e=>{const i=n;this.emit(M[i(641)],U.wasmWidthOrHeightChange,s,t),this.debugError(i(712),i(1006),e)}))[n(1109)]((()=>{this[n(1181)]=!1}))})).catch((i=>{const r=e;this[r(1181)]=!1,this.emit(M[r(641)],U[r(401)],s,t),this.debugError(r(712),"wasmWidthOrHeightChange and _resetPlayer error",i)}))}else{const i=!1===this[e(1004)][e(338)];this[e(1089)].setPlayFailedAndPaused(),this[e(1422)](i)[e(608)]((()=>{const i=e;this.emit(M[i(641)],U.wasmWidthOrHeightChange,s,t),this.debugError(i(712),i(1296))})).catch((i=>{const r=e;this.emit(M[r(641)],U[r(401)],s,t),this.debugError("JbPro",r(1162),i)}))[e(1109)]((()=>{this[e(1181)]=!1}))}}[cR(830)](t){const e=cR;if(this[e(549)]())return void(this.debug&&this.debugLog(e(712),e(538)));if(this[e(508)])return void this[e(1423)](e(712),e(1442));this.emit(M[e(1334)],this[e(594)](U.wasmUseVideoRenderError,t)),this[e(1423)](e(712),e(1385));const s=this[e(1004)][e(1220)],i=this._opt.playOptions;this[e(508)]=!0,this._resetPlayer({useVideoRender:!1,useCanvasRender:!0})[e(608)]((()=>{const r=e;this[r(516)](s,i)[r(608)]((()=>{const t=r;this[t(1423)](t(712),t(377)),this[t(1282)]()})).catch((e=>{const s=r;this.emit(M[s(641)],U[s(1443)],{},t),this.debugError(s(712),s(765),e)}))[r(1109)]((()=>{this[r(508)]=!1}))}))[e(978)]((s=>{const i=e;this[i(508)]=!1,this[i(1431)](M[i(641)],U[i(1443)],{},t),this.debugError(i(712),i(406),s)}))}[cR(1019)](t){const e=cR;if(this.isDestroyed())return void(this[e(1318)]&&this.debugLog(e(712),e(617)));if(this[e(415)])return void this[e(1423)](e(712),e(1041));this[e(1431)](M[e(1334)],this[e(594)](U[e(361)],t)),this[e(415)]=!0,this[e(1423)](e(712),e(1372));const s=this[e(1004)][e(1220)],i=this[e(1004)][e(619)];this[e(431)]({useOldWasm:!0})[e(608)]((()=>{const r=e;this[r(516)](s,i)[r(608)]((()=>{const t=r;this.debugLog(t(712),t(1048)),this[t(1282)]()}))[r(978)]((e=>{const s=r;this[s(1431)](M[s(641)],U.webcodecsH265NotSupport,{},t),this[s(1332)](s(712),"notSupportNewWasm auto wasm [wasm-> old wasm] reset player and play error",e)})).finally((()=>{this[r(415)]=!1}))}))[e(978)]((t=>{const s=e;this[s(415)]=!1,this[s(1332)]("JbPro","notSupportNewWasm auto wasm [wasm-> old wasm] _resetPlayer and play error",t)}))}[cR(723)](t){const e=cR;if(this[e(549)]())return void(this[e(1318)]&&this[e(1423)](e(712),e(1273)));if(this[e(1230)])return void this[e(1423)](e(712),e(1535));this[e(1431)](M.crashLog,this[e(594)](U[e(1092)],t)),this.failedToAsynchronouslyPrepareWasmLock=!0;const s=!1===this[e(1004)][e(338)];this[e(1089)][e(1344)](),this[e(1422)](s)[e(608)]((()=>{const s=e;this[s(1431)](M[s(641)],U[s(1092)],{},t),this[s(1332)](s(712),s(1257))}))[e(978)]((s=>{const i=e;this.emit(M[i(641)],U.failedToAsynchronouslyPrepareWasm,{},t),this.debugError(i(712),i(1483),s)}))[e(1109)]((()=>{this[e(1230)]=!1}))}[cR(527)](t){const e=cR;if(this.isDestroyed())return void(this[e(1318)]&&this.debugLog(e(712),e(1370)));if(this[e(1355)])return void this.debugLog("JbPro",e(1342));this.emit(M.crashLog,this[e(594)](U[e(1376)],t));const s=this[e(756)]();if(this[e(1355)]=!0,this[e(1089)]&&this[e(1089)][e(1004)].videoElementPlayingFailedReplay){this[e(1423)](e(712),"videoElementPlayingFailed and useMSE is "+this[e(1004)][e(628)]+" and reset player and play");const i=this[e(1004)][e(1220)],r=this[e(1004)][e(619)];let n={useMSE:!1,useVideoRender:!1,useCanvasRender:!0};n=this[e(556)](s,n),this[e(431)](n)[e(608)]((()=>{const s=e;this[s(516)](i,r).then((()=>{const t=s;this.debugLog(t(712),t(1304)),this[t(1282)]()}))[s(978)]((e=>{const i=s;this[i(1431)](M[i(641)],U[i(1376)],{},t),this[i(1332)](i(712),"videoElementPlayingFailed and reset player and play error",e)})).finally((()=>{this[s(1355)]=!1}))}))[e(978)]((s=>{const i=e;this[i(1355)]=!1,this[i(1431)](M.playFailedAndPaused,U[i(1376)],{},t),this[i(1332)](i(712),"videoElementPlayingFailed and _resetPlayer error",s)}))}else{const s=!1===this[e(1004)].playFailedUseLastFrameShow;this[e(1089)][e(1344)](),this[e(1422)](s)[e(608)]((()=>{const s=e;this[s(1431)](M[s(641)],U.videoElementPlayingFailed,{},t),this[s(1332)](s(712),s(1182))}))[e(978)]((s=>{const i=e;this[i(1431)](M[i(641)],U[i(1376)],{},t),this[i(1332)](i(712),i(486),s)}))[e(1109)]((()=>{this.videoElementPlayingFailedOnLock=!1}))}}[cR(1278)](t){const e=cR;if(this[e(549)]())this[e(1318)]&&this[e(1423)](e(712),"simdH264DecodeVideoWidthIsTooLarge but player is destroyed");else if(this[e(1421)])this[e(1423)](e(712),e(323));else if(this[e(1431)](M[e(1334)],this[e(594)](U[e(1451)],t)),this.simdH264DecodeVideoWidthIsTooLargeOnLock=!0,this[e(1089)]&&this[e(1089)][e(1004)][e(1163)]){this[e(1423)](e(712),e(546));const s=this[e(1004)].url,i=this[e(1004)].playOptions;this[e(431)]({useSIMD:!1})[e(608)]((()=>{const r=e;this.play(s,i)[r(608)]((()=>{const t=r;this[t(1423)](t(712),t(740)),this[t(1282)]()}))[r(978)]((e=>{const s=r;this[s(1431)](M[s(641)],U.simdH264DecodeVideoWidthIsTooLarge,{},t),this[s(1332)]("JbPro",s(944),e)}))[r(1109)]((()=>{this[r(1421)]=!1}))}))[e(978)]((s=>{const i=e;this[i(1421)]=!1,this[i(1431)](M.playFailedAndPaused,U[i(1451)],{},t),this.debugError(i(712),i(869),s)}))}else{const s=!1===this[e(1004)][e(338)];this[e(1089)].setPlayFailedAndPaused(),this[e(1422)](s)[e(608)]((()=>{const s=e;this[s(1431)](M[s(641)],U[s(1451)],{},t),this[s(1332)](s(712),s(1457))}))[e(978)]((s=>{const i=e;this.emit(M[i(641)],U[i(1451)],{},t),this[i(1332)](i(712),i(1547),s)})).finally((()=>{this[e(1421)]=!1}))}}[cR(977)](t){const e=cR;if(this[e(1089)]._opt[e(381)]){if(this[e(549)]())return void(this[e(1318)]&&this.debugLog(e(712),"networkDelayTimeout but player is destroyed"));if(this[e(525)])return void this[e(1423)]("JbPro",e(1242));this[e(1431)](M.crashLog,this[e(594)](M[e(310)],t));const s=this._getVideoLastIframeInfo();this[e(1423)]("JbPro",e(655));const i=this[e(1004)][e(1220)],r=this[e(1004)][e(619)];let n=this[e(556)](s);this.networkDelayTimeoutOnLock=!0,this[e(431)](n)[e(608)]((()=>{const n=e;this[n(516)](i,r)[n(608)]((()=>{const t=n;this[t(1423)](t(712),t(976)),this[t(1282)]()})).catch((e=>{const i=n;this[i(1431)](M[i(641)],M[i(310)],s,t),this[i(1332)](i(712),i(1415),e)}))[n(1109)]((()=>{this[n(525)]=!1}))}))[e(978)]((()=>{const i=e;this[i(525)]=!1,this.emit(M.playFailedAndPaused,M.networkDelayTimeout,s,t),this[i(1332)](i(712),i(1038))}))}}[cR(656)](t){const e=cR;if(this[e(549)]())return void(this.debug&&this[e(1423)](e(712),e(1528)));if(this.flvDemuxBufferSizeTooLargeOnLock)return void this[e(1423)](e(712),e(620));const s=this[e(756)]();if(this.flvDemuxBufferSizeTooLargeOnLock=!0,this[e(1431)](M[e(1334)],this[e(594)](M[e(733)],t)),this.player[e(1004)].flvDemuxBufferSizeTooLargeReplay){this.debugLog(e(712),e(1113));const i=this[e(1004)].url,r=this[e(1004)].playOptions;let n=this[e(556)](s);this._resetPlayer(n)[e(608)]((()=>{const n=e;this[n(516)](i,r).then((()=>{this[n(1423)](this.TAG_NAME,"flv Demux Buffer Size Too Large and reset player and play success"),this._replaySuccessAndNext()}))[n(978)]((e=>{const i=n;this[i(1431)](M[i(641)],M.flvDemuxBufferSizeTooLarge,s,t),this[i(1332)](this.TAG_NAME,i(1322),e)}))[n(1109)]((()=>{this[n(421)]=!1}))}))[e(978)]((()=>{const i=e;this.flvDemuxBufferSizeTooLargeOnLock=!1,this[i(1431)](M[i(641)],M[i(733)],s,t),this.debugError(this.TAG_NAME,i(534))}))}else if(this[e(1004)][e(524)]){this[e(1423)](this.TAG_NAME,e(1170));const i=!1===this._opt[e(338)];this[e(1089)][e(1344)](),this[e(1422)](i)[e(608)]((()=>{const i=e;this[i(1431)](M[i(641)],U.flvDemuxBufferSizeTooLarge,s,t),this[i(1423)](this[i(989)],"flv Demux Buffer Size Too Large and flvDemuxBufferSizeTooLargeEmitFailed = true and pause player success")}))[e(978)]((i=>{const r=e;this[r(1431)](M.playFailedAndPaused,U[r(733)],s,t),this[r(1332)](this[r(989)],r(1204),i)}))[e(1109)]((()=>{this[e(421)]=!1}))}}[cR(649)](t){const e=cR;if(this[e(549)]())return void(this[e(1318)]&&this[e(1423)]("JbPro",e(1427)));if(this[e(1231)])return void this[e(1423)](e(712),e(605));this[e(1431)](M.crashLog,this[e(594)](U[e(671)],t));const s=this[e(756)](),i=this[e(1058)]();if(this[e(1231)]=!0,this[e(1089)][e(1004)][e(1195)]||i){i?this[e(1423)]("JbPro",e(1101)):this[e(1423)](e(712),e(603)+this[e(991)]+e(1438)+this[e(1004)][e(1465)]+e(439));let r=this[e(556)](s);const n=this._opt.playOptions,o=this[e(1004)][e(1220)],a=i?1:this._opt[e(1465)];this._resetPlayer(r)[e(608)]((()=>{this.streamErrorReplayDelayTimeout=setTimeout((()=>{const e=lR;if(this.streamErrorReplayDelayTimeout=null,!this[e(549)]())return this[e(1058)]()?(this[e(1423)]("JbPro",e(1277)),this[e(953)]=!0,void(this._isNetworkOfflinePausedAndNextPlayConfig={url:o,options:n,type:U[e(671)]})):(this[e(991)]++,void this[e(516)](o,n)[e(608)]((()=>{const t=e;this[t(1423)](t(712),t(1560)),this[t(1282)]()})).catch((s=>{const i=e;this[i(1431)](M.playFailedAndPaused,U.fetchError,{},t),this[i(1332)](i(712),i(492),s)}))[e(1109)]((()=>{this[e(1231)]=!1})));this[e(1318)]&&this[e(1423)]("JbPro",e(1031))}),1e3*a)}))[e(978)]((s=>{const i=e;this[i(1231)]=!1,this[i(1431)](M.playFailedAndPaused,U[i(671)],{},t),this[i(1332)](i(712),i(1359),s)}))}else{this[e(1423)]("JbPro",e(1508));const i=!1===this._opt.playFailedUseLastFrameShow;this[e(1089)].setPlayFailedAndPaused(),this[e(1422)](i)[e(608)]((()=>{const i=e;this[i(1431)](M[i(641)],U.fetchError,s,t),this[i(1423)]("JbPro",i(707))}))[e(978)]((i=>{const r=e;this[r(1431)](M[r(641)],U[r(671)],s,t),this[r(1332)](r(712),r(1461),i)}))[e(1109)]((()=>{this[e(1231)]=!1}))}}[cR(348)](t){const e=cR;if(this.isDestroyed())return void(this[e(1318)]&&this[e(1423)]("JbPro",e(1445)));if(this.streamEndOnLock)return void this[e(1423)]("JbPro","streamEndOnLock is true");this[e(1431)](M[e(1334)],this[e(594)](M[e(1280)],t));const s=this[e(756)](),i=""+t===e(337)&&this.player[e(1004)][e(548)],r=!!i&&this[e(1401)](Mt[e(878)]),n=i&&r,o=this[e(1089)][e(1004)][e(1537)],a=this[e(1058)]();if(this[e(720)]=!0,n||o||a){a?this[e(1423)]("JbPro",e(581)):n?this[e(1423)](e(712),"streamEnd and websocket1006ErrorReplay is true and error is 1006 and _websocket1006ErrorReplayTimes is "+this[e(1066)]+" , delay "+this[e(1004)][e(1034)]+e(585)):this.debugLog(e(712),e(1379)+this[e(1400)]+e(580)+this[e(1004)][e(1157)]+e(585));const r=this[e(1004)][e(619)],o=this[e(1004)][e(1220)];i&&this[e(837)][e(575)](je());let h=this._resetPlayerBeforeUpdateOptions(s),c=n?this[e(1004)][e(1034)]:this._opt[e(1157)];a&&(c=1),this[e(431)](h)[e(608)]((()=>{const s=e;this[s(1224)]=setTimeout((()=>{const e=s;if(this[e(1224)]=null,this._removeLoadingBackgroundForIOS(),!this[e(549)]())return this[e(1058)]()?(n?this[e(1423)](e(712),e(1049)):this[e(1423)](e(712),e(719)),this[e(953)]=!0,void(this[e(1227)]={url:o,options:r,type:n?U.websocket1006Error:U[e(1280)]})):(n?this[e(1066)]++:this[e(1400)]++,void this[e(516)](o,r)[e(608)]((()=>{const t=e;n?this.debugLog("JbPro",t(1160)):this[t(1423)]("JbPro","streamEnd and reset player and play success"),this[t(1282)]()}))[e(978)]((s=>{const i=e;this.emit(M[i(641)],U[i(1280)],{},t),n?this[i(1332)](i(712),i(1538),s):this[i(1332)](i(712),i(1074),s)})).finally((()=>{this[e(720)]=!1})));a?this[e(1318)]&&this[e(1423)]("JbPro","streamEnd and network is disconnect and _resetPlayer() but player is destroyed and return"):n?this[e(1318)]&&this.debugLog(e(712),"streamEnd and 1006 error and _resetPlayer() but player is destroyed and return"):this.debug&&this[e(1423)]("JbPro",e(1311))}),1e3*c)})).catch((s=>{const i=e;this[i(720)]=!1,this[i(1431)](M[i(641)],U[i(1280)],{},t),n?this[i(1332)](i(712),"streamEnd and 1006 and _resetPlayer error",s):this[i(1332)](i(712),"streamEnd and _resetPlayer error",s)}))}else{i?this[e(1423)](e(712),"streamEnd pause player "+(ci(r)?e(1267):"")):this.debugLog("JbPro",e(1260));const n=!1===this[e(1004)].playFailedUseLastFrameShow;this.player[e(1344)](),this[e(1422)](n)[e(608)]((()=>{const i=e;this[i(1431)](M[i(641)],M[i(1280)],s,t),this[i(1423)](i(712),i(1487))})).catch((i=>{const r=e;this[r(1431)](M[r(641)],M[r(1280)],s,t),this.debugError(r(712),r(522),i)}))[e(1109)]((()=>{this[e(720)]=!1}))}}[cR(565)](t){const e=cR;if(this[e(549)]())return void(this[e(1318)]&&this.debugLog(e(712),"websocketError but player is destroyed"));if(this[e(817)])return void this[e(1423)]("JbPro",e(690));this.emit(M.crashLog,this.getCrashLog(U[e(847)],t));const s=this[e(756)](),i=this[e(1058)]();if(this[e(817)]=!0,this[e(1089)]._opt.streamErrorReplay||i){i?this[e(1423)]("JbPro",e(1544)):this[e(1423)](e(712),"websocketError error and streamErrorReplay is true and _streamErrorReplayTimes is "+this._streamErrorReplayTimes+e(1047)+this[e(1004)][e(1465)]+", next replay");let r=this[e(556)](s);const n=this[e(1004)].playOptions,o=this[e(1004)][e(1220)],a=i?1:this._opt.streamErrorReplayDelayTime;this[e(431)](r)[e(608)]((()=>{this.streamErrorReplayDelayTimeout=setTimeout((()=>{const e=lR;if(this[e(1178)]=null,!this[e(549)]())return this[e(1058)]()?(this.debugLog(e(712),"websocketError error and network is offline and wait network online to play , so return"),this[e(953)]=!0,void(this._isNetworkOfflinePausedAndNextPlayConfig={url:o,options:n,type:U[e(847)]})):(this[e(991)]++,void this[e(516)](o,n)[e(608)]((()=>{const t=e;this[t(1423)](t(712),t(1147)),this._replaySuccessAndNext()}))[e(978)]((s=>{const i=e;this[i(1431)](M.playFailedAndPaused,U.fetchError,{},t),this.debugError(i(712),i(1455),s)}))[e(1109)]((()=>{this[e(817)]=!1})));i?this[e(1318)]&&this.debugLog(e(712),"websocketError error and network is disconnect and _resetPlayer() but player is destroyed and return"):this.debug&&this[e(1423)]("JbPro",e(547))}),1e3*a)}))[e(978)]((s=>{const i=e;this[i(817)]=!1,this.emit(M.playFailedAndPaused,U.fetchError,{},t),this[i(1332)](i(712),i(781),s)}))}else{this[e(1423)]("JbPro",e(912));const i=!1===this[e(1004)][e(338)];this.player[e(1344)](),this[e(1422)](i)[e(608)]((()=>{const i=e;this.emit(M[i(641)],U[i(847)],s,t),this[i(1423)](i(712),i(963))}))[e(978)]((i=>{const r=e;this[r(1431)](M[r(641)],U.websocketError,s,t),this[r(1332)]("JbPro",r(322),i)}))[e(1109)]((()=>{this.websocketErrorOnLock=!1}))}}_handleWebrtcError(t){const e=cR;if(this[e(549)]())return void(this[e(1318)]&&this[e(1423)](e(712),"webrtcError but player is destroyed"));if(this.webrtcErrorOnLock)return void this[e(1423)]("JbPro",e(366));this.emit(M[e(1334)],this[e(594)](U[e(1108)],t));const s=this._getVideoLastIframeInfo();if(this[e(1058)]()){this[e(1423)](e(712),e(947));const i=this[e(1004)][e(619)],r=this[e(1004)][e(1220)];let n=this._resetPlayerBeforeUpdateOptions(s);this._resetPlayer(n)[e(608)]((()=>{const t=e;this[t(953)]=!0,this[t(1227)]={url:r,options:i,type:U[t(1108)]}}))[e(978)]((()=>{const i=e;this[i(1431)](M.playFailedAndPaused,U[i(1108)],s,t),this[i(1332)](i(712),i(778))}))[e(1109)]((()=>{this[e(592)]=!1}))}else{this.debugLog(e(712),e(1295));const i=!1===this[e(1004)][e(338)];this[e(1089)][e(1344)](),this[e(592)]=!0,this[e(1422)](i)[e(608)]((()=>{const i=e;this.emit(M[i(641)],U[i(1108)],s,t),this.debugLog(i(712),i(367))})).catch((i=>{const r=e;this[r(1431)](M.playFailedAndPaused,U.webrtcError,s,t),this[r(1332)](r(712),"webrtcError and pause",i)}))[e(1109)]((()=>{this[e(592)]=!1}))}}[cR(1549)](t){const e=cR;if(this[e(549)]())return void(this[e(1318)]&&this.debugLog("JbPro",e(568)));if(this[e(650)])return void this[e(1423)](e(712),e(964));this[e(1431)](M[e(1334)],this.getCrashLog(U.hlsError,t));const s=this[e(756)]();if(this._isNeedNetworkDisconnectReplay()){this[e(1423)](e(712),e(721));const i=this[e(1004)].playOptions,r=this._opt.url;let n=this[e(556)](s);this[e(431)](n)[e(608)]((()=>{this._isNetworkOfflinePaused=!0,this._isNetworkOfflinePausedAndNextPlayConfig={url:r,options:i,type:U.hlsError}})).catch((()=>{const i=e;this[i(1431)](M[i(641)],U.hlsError,s,t),this[i(1332)]("JbPro","hlsError and _resetPlayer error")}))[e(1109)]((()=>{this.hlsErrorOnLock=!1}))}else{this[e(1423)](e(712),e(701));const i=!1===this._opt[e(338)];this[e(1089)][e(1344)](),this[e(650)]=!0,this[e(1422)](i)[e(608)]((()=>{const i=e;this[i(1431)](M[i(641)],U[i(505)],s,t),this[i(1423)](i(712),i(1291))})).catch((i=>{const r=e;this[r(1431)](M.playFailedAndPaused,U.hlsError,s,t),this[r(1332)](r(712),r(1517),i)}))[e(1109)]((()=>{this[e(650)]=!1}))}}_handleAliyunRtcError(t){const e=cR;if(this.isDestroyed())return void(this.debug&&this[e(1423)](e(712),e(452)));if(this[e(586)])return void this.debugLog("JbPro",e(797));this[e(1431)](M[e(1334)],this[e(594)](U.aliyunRtcError,t));const s=this._getVideoLastIframeInfo();this[e(1423)](e(712),"aliyunRtcError and pause player");const i=!1===this[e(1004)].playFailedUseLastFrameShow;this.player[e(1344)](),this.aliyunRtcErrorOnLock=!0,this[e(1422)](i)[e(608)]((()=>{const i=e;this[i(1431)](M[i(641)],U[i(659)],s,t),this.debugLog(i(712),"aliyunRtcError and pause player success")}))[e(978)]((i=>{const r=e;this[r(1431)](M[r(641)],U.aliyunRtcError,s,t),this[r(1332)]("JbPro",r(1091),i)}))[e(1109)]((()=>{this[e(586)]=!1}))}_handleDecoderWorkerInitError(t){const e=cR;if(this[e(549)]())return void(this.debug&&this[e(1423)]("JbPro",e(680)));if(this[e(1468)])return void this.debugLog(e(712),"decoderWorkerInitErrorOnLock is true");this[e(1431)](M[e(1334)],this[e(594)](U[e(890)],t));const s=this[e(756)]();this[e(1423)](e(712),"decoderWorkerInitError and pause player");const i=!1===this[e(1004)][e(338)];this[e(1089)][e(1344)](),this[e(1468)]=!0,this[e(1422)](i)[e(608)]((()=>{const i=e;this.emit(M[i(641)],U[i(890)],s,t),this[i(1423)]("JbPro",i(488))})).catch((i=>{const r=e;this[r(1431)](M.playFailedAndPaused,U[r(890)],s,t),this[r(1332)](r(712),r(1527),i)})).finally((()=>{this[e(1468)]=!1}))}[cR(487)](t){const e=cR;if(this[e(549)]())return void(this[e(1318)]&&this[e(1423)](e(712),e(517)));if(this[e(1065)])return void this[e(1423)]("JbPro",e(382));this[e(1431)](M[e(1334)],this[e(594)](U[e(1325)],t)),this.debugLog(e(712),e(647));const s=!1===this[e(1004)][e(338)];this[e(1089)][e(1344)](),this[e(1065)]=!0,this[e(1422)](s).then((()=>{const s=e;this[s(1431)](M.playFailedAndPaused,U[s(1325)],{},t),this[s(1423)]("JbPro",s(1565))})).catch((s=>{const i=e;this[i(1431)](M.playFailedAndPaused,U[i(1325)],{},t),this.debugError(i(712),i(917),s)}))[e(1109)]((()=>{this[e(1065)]=!1}))}_handleVideoElementPlayingFailedForWebrtc(t){const e=cR;if(this.isDestroyed())return void(this.debug&&this[e(1423)]("JbPro",e(895)));if(this[e(1136)])return void this.debugLog(e(712),e(1124));this[e(1431)](M[e(1334)],this[e(594)](U[e(626)],t)),this[e(1423)](e(712),e(1397));const s=!1===this[e(1004)][e(338)];this.player.setPlayFailedAndPaused(),this.videoElementPlayingFailedForWebrtcOnLock=!0,this[e(1422)](s).then((()=>{const s=e;this[s(1431)](M[s(641)],U[s(626)],{},t),this[s(1423)](s(712),s(751))}))[e(978)]((s=>{const i=e;this[i(1431)](M[i(641)],U[i(626)],{},t),this.debugError("JbPro",i(663),s)})).finally((()=>{this[e(1136)]=!1}))}_handleVideoInfoError(t){const e=cR;if(this.isDestroyed())return void(this[e(1318)]&&this[e(1423)](e(712),e(1536)));if(this[e(881)])return void this[e(1423)](e(712),e(374));this[e(1431)](M[e(1334)],this[e(594)](U[e(871)],t)),this[e(1423)](e(712),e(1210));const s=!1===this[e(1004)].playFailedUseLastFrameShow;this[e(1089)][e(1344)](),this[e(881)]=!0,this[e(1422)](s)[e(608)]((()=>{const s=e;this.emit(M[s(641)],U[s(871)],{},t),this[s(1423)](s(712),s(1531))}))[e(978)]((s=>{const i=e;this[i(1431)](M[i(641)],U[i(871)],{},t),this.debugError("JbPro",i(743),s)}))[e(1109)]((()=>{this[e(881)]=!1}))}[cR(849)](t){const e=cR;if(this.isDestroyed())return void(this[e(1318)]&&this.debugLog("JbPro",e(1127)));if(this[e(355)])return void this[e(1423)](e(712),"webrtcStreamH265OnLock is true");this[e(1423)](e(712),e(638));const s=this[e(1004)][e(1220)],i=this._opt[e(619)];this[e(355)]=!0,this[e(431)]({isWebrtcH265:!0}).then((()=>{const r=e;this.play(s,i)[r(608)]((()=>{const t=r;this[t(1423)](t(712),"webrtcStreamH265 and reset player and play success"),this._replaySuccessAndNext()})).catch((e=>{const s=r;this[s(1431)](M[s(641)],M[s(764)],{},t),this[s(1332)](s(712),"webrtcStreamH265 and reset player and play error",e)}))[r(1109)]((()=>{this[r(355)]=!1}))})).catch((()=>{const s=e;this[s(355)]=!1,this[s(1431)](M[s(641)],M[s(764)],{},t),this[s(1332)]("JbPro",s(420))}))}[cR(1243)](){const t=cR;this.isDestroyed()?this[t(1318)]&&this.debugLog(t(712),"playbackEnd but player is destroyed"):this[t(913)]?this.debugLog(t(712),"playbackEndOnLock is true"):(this[t(913)]=!0,this[t(1422)]()[t(608)]((()=>{const e=t;this[e(1431)](M[e(552)]),this[e(1423)](e(712),"playbackEnd and pause success")}))[t(978)]((e=>{const s=t;this.emit(M[s(552)]),this[s(1332)](s(712),s(333),e)}))[t(1109)]((()=>{this[t(913)]=!1})))}[cR(1126)](t){const e=cR;if(this.isDestroyed())return void(this.debug&&this[e(1264)](e(712),e(345)));this[e(1431)](M[e(1334)],this[e(594)](M[e(646)],t));const s=this._getVideoLastIframeInfo();if(this[e(1089)]&&this[e(1089)][e(1004)].heartTimeoutReplay&&(this[e(1148)]<this[e(1089)]._opt.heartTimeoutReplayTimes||-1===this.player._opt[e(737)])){this[e(1423)](e(712),e(800)+this[e(1148)]+e(1380)+this[e(1089)]._opt.heartTimeoutReplayTimes),this[e(1148)]+=1;const i=this[e(1004)].url,r=this._opt[e(619)];let n=this[e(556)](s);this._resetPlayer(n)[e(608)]((()=>{const n=e;if(this[n(1058)]())return this[n(1423)]("JbPro",n(1261)),this[n(953)]=!0,void(this._isNetworkOfflinePausedAndNextPlayConfig={url:i,options:r,type:M.delayTimeout});this[n(516)](i,r).then((()=>{const t=n;this[t(1423)](this.TAG_NAME,t(1128)),this[t(1282)]()}))[n(978)]((e=>{const i=n;this[i(1431)](M[i(641)],M[i(646)],s,t),this[i(1332)](i(712),i(422),e)}))}))[e(978)]((i=>{const r=e;this[r(1431)](M[r(641)],M[r(646)],s,t),this[r(1332)](r(712),r(813),i)}))}else{const i=!1===this[e(1004)][e(338)];this[e(1089)].setPlayFailedAndPaused(),this[e(1422)](i)[e(608)]((()=>{const i=e;this[i(1431)](M[i(641)],M.delayTimeout,s,t),this[i(1089)]&&(this.emit(M[i(891)]),this[i(1431)](M[i(641)],M[i(891)],s,t)),this[i(1264)]("JbPro","delayTimeoutRetryEnd and\n opt.heartTimeout is "+(this[i(1089)]&&this[i(1089)][i(1004)].heartTimeout)+i(445)+(this[i(1089)]&&this[i(1089)][i(1004)][i(1088)])+" and\n opt.heartTimeoutReplayTimes is "+(this[i(1089)]&&this[i(1089)]._opt.heartTimeoutReplayTimes)+",and\n local._heartTimeoutReplayTimes is "+this._heartTimeoutReplayTimes)}))[e(978)]((i=>{const r=e;this.emit(M[r(641)],M[r(646)],s,t),this[r(1332)](r(712),r(1419),i)}))}}[cR(1550)](t){const e=cR;if(this.isDestroyed())return void(this[e(1318)]&&this[e(1423)](e(712),"loading timeout but player is destroyed"));this[e(1431)](M[e(1334)],this.getCrashLog(M.loadingTimeout,t));const s=this._getVideoLastIframeInfo();if(this.player&&this[e(1089)][e(1004)][e(1384)]&&(this[e(326)]<this.player._opt[e(484)]||-1===this[e(1089)]._opt.loadingTimeoutReplayTimes)){this[e(1423)](e(712),e(1406)+this[e(326)]+e(1546)+this.player[e(1004)][e(484)]),this._loadingTimeoutReplayTimes+=1;const i=this[e(1004)].url,r=this[e(1004)].playOptions;let n=this[e(556)](s);this[e(431)](n)[e(608)]((()=>{const n=e;if(this[n(1058)]())return this[n(1423)](n(712),n(1321)),this[n(953)]=!0,void(this._isNetworkOfflinePausedAndNextPlayConfig={url:i,options:r,type:M.loadingTimeout});this[n(516)](i,r)[n(608)]((()=>{const t=n;this[t(1423)](this[t(989)],t(480)),this._replaySuccessAndNext()}))[n(978)]((e=>{const i=n;this[i(1431)](M.playFailedAndPaused,M.loadingTimeout,s,t),this[i(1332)]("JbPro","loading timeout replay error",e)}))})).catch((i=>{const r=e;this[r(1431)](M[r(641)],M[r(622)],s,t),this.debugError(r(712),r(708),i)}))}else{const i=!1===this[e(1004)][e(338)];this[e(1089)][e(1344)](),this[e(1422)](i).then((()=>{const i=e;this[i(1431)](M[i(641)],M[i(622)],s,t),this[i(1089)]&&(this[i(1431)](M[i(465)]),this[i(1431)](M[i(641)],M[i(465)],s,t),this._opt[i(1476)]&&this[i(1089)].showPlayBtn()),this[i(1423)](i(712),i(1212)+(this.player&&this[i(1089)][i(1004)].loadingTimeout)+i(318)+(this.player&&this[i(1089)][i(1004)][i(1384)])+i(905)+this[i(326)]+i(1194)+(this[i(1089)]&&this[i(1089)][i(1004)][i(484)]))}))[e(978)]((i=>{const r=e;this[r(1431)](M[r(641)],M.loadingTimeout,s,t),this.debugError(r(712),r(1371),i)}))}}[cR(761)](t){const e=cR;if(this[e(549)]())return void this.debugLog(e(712),e(1482));this.emit(M[e(1334)],this[e(594)](U[e(684)],t)),this[e(1423)](e(712),e(392));const s=this[e(756)](),i=!1===this._opt[e(338)];this[e(1089)][e(1344)](),this[e(1422)](i)[e(608)]((()=>{const i=e;this[i(1431)](M[i(641)],U[i(684)],s,t),this.debugLog("JbPro",i(1266))})).catch((i=>{const r=e;this[r(1431)](M[r(641)],U[r(684)],s,t),this[r(1332)](r(712),r(743),i)}))}_checkInitDecoderWorkerTimeout(){const t=cR;this[t(479)](),this[t(684)]=setTimeout((()=>{const e=t;this[e(761)](U[e(684)])}),1e3*this[t(1004)].initDecoderWorkerTimeout)}_clearInitDecoderWorkerTimeout(){const t=cR;this[t(684)]&&(clearTimeout(this[t(684)]),this.initDecoderWorkerTimeout=null)}[cR(1423)](t){const e=cR;if(this[e(1004)].debug&&this.debug){for(var s=arguments[e(1416)],i=new Array(s>1?s-1:0),r=1;r<s;r++)i[r-1]=arguments[r];this.debug.log(t,...i)}}[cR(1264)](t){const e=cR;if(this[e(1004)].debug&&this[e(1318)]){for(var s=arguments[e(1416)],i=new Array(s>1?s-1:0),r=1;r<s;r++)i[r-1]=arguments[r];this[e(1318)][e(572)](t,...i)}}[cR(1332)](t){const e=cR;if(this[e(1318)]){for(var s=arguments[e(1416)],i=new Array(s>1?s-1:0),r=1;r<s;r++)i[r-1]=arguments[r];this.debug[e(1541)](t,...i)}}[cR(1014)](){const t=cR;let e=null;return this[t(1089)]&&(e=this.player[t(1014)]()),e}[cR(607)](t){const e=cR;this[e(1423)](e(712),e(790)+t+e(606)+this[e(1004)][e(453)]),this[e(1004)][e(453)]=t,this[e(1089)]&&this.player[e(1229)]({multiIndex:t})}[cR(1429)](t){const e=cR;if(!this[e(549)]())if(this[e(1423)](e(712),e(677)),this[e(1089)]){if(this[e(1089)][e(1460)]())return void this[e(1264)]("JbPro",e(1279));this[e(1089)][e(1064)]=!0}else this[e(1264)](e(712),"openDrawRectangle() failed, this.player is not init")}[cR(1554)](){}closeDrawRectangle(){const t=cR;if(!this[t(549)]())if(this[t(1423)]("JbPro",t(634)),this[t(1089)]){if(this[t(1089)][t(1460)]())return void this.debugWarn("JbPro",t(1237));this.player.drawingRect=!1}else this[t(1264)](t(712),t(416))}[cR(928)](){const t=cR;let e=!1;return this[t(1089)]&&(e=this.player[t(1064)]),e}[cR(1328)](t){const e=cR;this[e(549)]()||(this[e(1423)]("JbPro",e(291)+t),!bs(t)&&(t=!this[e(928)]()),hi(t)?this[e(1429)]():ci(!1)&&this[e(368)]())}[cR(289)](t){const e=cR;this[e(549)]()||(this[e(1423)](e(712),e(793)+t),this[e(1004)][e(760)]=t,this[e(1089)]?this[e(1089)][e(289)](t):this[e(1264)]("JbPro",e(644)))}resetPlayer(){return new Promise(((t,e)=>{const s=lR;if(this[s(549)]())return e("player is destroyed");this.debugLog(s(712),"resetPlayer()");const i=this[s(695)]();this[s(431)](i)[s(608)]((()=>{const e=s;this[e(1423)](e(712),e(883)),t()}))[s(978)]((t=>{const i=s;this[i(1264)](i(712),i(796),t.toString(),t),e(t)}))}))}[cR(378)](t){const e=cR;this[e(549)]()||(this[e(1423)](e(712),e(371),t),this[e(1089)]?(this.player[e(378)](t),this._opt.dynamicWatermarkConfig=t):this.debugWarn(e(712),e(691)))}[cR(845)](){const t=cR;this[t(549)]()||(this[t(1423)]("JbPro",t(893)),this[t(1089)]?(this[t(1089)][t(845)](),this[t(1004)][t(1441)]={}):this[t(1264)]("JbPro",t(1510)))}[cR(545)](t){const e=cR;this[e(549)]()||(this[e(1423)](e(712),"updateGhostWatermark()",t),this[e(1089)]?(this.player[e(545)](t),this[e(1004)][e(1409)]=t):this[e(1264)](e(712),"updateGhostWatermark() player is not init"))}[cR(306)](){const t=cR;this[t(549)]()||(this.debugLog(t(712),"removeGhostWatermark()"),this[t(1089)]?(this[t(1089)][t(306)](),this[t(1004)][t(1409)]={}):this[t(1264)](t(712),"removeGhostWatermark() player is not init"))}_resetPlayerBeforeUpdateOptions(t){const e=cR;let s=arguments[e(1416)]>1&&void 0!==arguments[1]?arguments[1]:{};if(this[e(1089)][e(1004)][e(1206)]&&(s=Object[e(651)]({},s,t,{loadingIcon:this[e(1089)][e(1004)].replayShowLoadingIcon})),ci(this[e(1564)]())&&(s[e(1439)]=!0),this[e(1089)].isPlayback()){const t=this.player[e(629)].playingTimestamp;if(t){this[e(1423)](this.TAG_NAME,e(1056)+t);const i=this[e(1089)][e(1004)][e(494)];i[e(315)]=t,s[e(494)]=i}}else if(this[e(1089)][e(1080)]()){const t=this[e(1089)][e(864)][e(1167)]();if(t){this[e(1423)](this[e(989)],"_resetPlayerBeforeUpdateOptions() and is playVod playingTimestamp is "+t);const i=this[e(1089)][e(1004)][e(1358)];i[e(315)]=t,s[e(1358)]=i}}return s}[cR(1282)](){const t=cR;this[t(770)]&&this[t(770)][t(1416)]&&this[t(1089)][t(943)](this._tempContentToCanvasData)}getI18nConfig(){const t=cR;let e={};return this.player&&(e=this[t(1089)][t(1339)](),delete e[t(820)],delete e[t(1245)],delete e[t(700)]),e}playVod(t){const e=cR;let s=arguments[e(1416)]>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(((i,r)=>{const n=e,o=ni(),a=Object[n(651)]({},o[n(1358)],this[n(1004)][n(1358)],s),h={videoBuffer:0,playType:c.playVod,playVodConfig:a,cryptoKey:s[n(319)]||"",cryptoIV:s[n(791)]||"",openWebglAlignment:!0,useMSE:a[n(628)],useWCS:a.useWCS,useSIMD:a.useSIMD,supportHls265:!0};bs(s[n(806)])&&(h.isFFmpegSIMD=s[n(806)]),this._resetPlayer(h)[n(608)]((()=>{const e=n;this.play(t,s)[e(608)]((()=>{i()})).catch((t=>{r(t)}))}))[n(978)]((t=>{r(t)}))}))}playVodPause(){const t=cR;return this[t(1318)].log("JbPro",t(630)),new Promise(((e,s)=>{this[t(1089)].playVodPause=!0,e()}))}[cR(1205)](){const t=cR;return this.debug[t(945)](t(712),t(724)),new Promise(((e,s)=>{const i=t;this[i(1089)][i(1540)]=!1,e()}))}[cR(448)](t){const e=cR;return this[e(1423)](e(712),e(631)+t),ci(this[e(1004)].isLive)||this._opt[e(868)]!==c.playVod?Promise[e(569)](e(296)):us(Number(t))?new Promise(((s,i)=>{const r=e;this.player?this[r(1089)].playVodForward(t)[r(608)]((()=>{s()}))[r(978)]((t=>{i(t)})):i("player is not playing")})):Promise[e(569)](e(1248)+t+e(509))}[cR(375)](){return this[cR(448)](1)}[cR(1262)](t){const e=cR;return this[e(1423)](e(712),"playVodSeek() "+t),ci(this._opt[e(972)])||this[e(1004)][e(868)]!==c.playVod?Promise[e(569)](e(840)):us(Number(t))?new Promise(((s,i)=>{const r=e;this[r(1089)]?this[r(1089)][r(1262)](t)[r(608)]((()=>{s()}))[r(978)]((t=>{i(t)})):i(r(1232))})):Promise.reject('playVodSeek() params "time": '+t+e(509))}[cR(503)](t){const e=cR;return this.debugLog(e(712),e(1121)+t),ci(this[e(1004)].isLive)||this[e(1004)][e(868)]!==c[e(864)]?Promise[e(569)](e(398)):us(Number(t))?new Promise(((s,i)=>{const r=e;this[r(1089)]?this[r(1089)][r(503)](t).then((()=>{s()})).catch((t=>{i(t)})):i(r(1232))})):Promise[e(569)](e(1402)+t+e(509))}[cR(1336)](t){const e=cR;return this[e(1423)]("JbPro",e(402)+t),ci(this[e(1004)].isLive)||this[e(1004)][e(868)]!==c[e(864)]?Promise[e(569)](e(863)):us(Number(t))?new Promise(((s,i)=>{const r=e;this[r(1089)]?this[r(1089)].playVodBackwordJumping(t)[r(608)]((()=>{s()}))[r(978)]((t=>{i(t)})):i("player is not playing")})):Promise.reject(e(783)+t+e(509))}[cR(1217)](){const t=cR;let e=0;return this.player&&(e=this.player[t(1217)]()),e}[cR(735)](){const t=cR;let e=0;return this[t(1089)]&&(e=this.player[t(735)]()),e}[cR(459)](){const t=cR;let e=1;return this[t(1089)]&&(e=this[t(1089)][t(459)]()),e}[cR(933)](){const t=cR;if(this[t(549)]())return void this[t(1423)](t(712),t(1079));if(this[t(1089)][t(1004)][t(1395)])return this.debugLog(this.TAG_NAME,t(625)),void this[t(481)]();this[t(1423)](this[t(989)],t(391));const e=!1===this[t(1004)][t(338)];this[t(1422)](e)[t(608)]((()=>{const e=t;this[e(1423)](e(712),e(1357))}))[t(978)]((e=>{const s=t;this[s(1332)](s(712),"play vod ended and pause error",e)}))}_handlePlayVodEndedAndReplay(t){const e=cR;if(this[e(549)]())return void this[e(1423)]("JbPro",e(1444));const s=this[e(1004)][e(1220)],i=this._opt[e(619)];t&&(this[e(1004)].playVodConfig[e(315)]=t),this[e(1423)](e(712),"_handlePlayVodEndedAndReplay and reset player and start time is",t),this[e(431)]()[e(608)]((()=>{const t=e;this[t(516)](s,i)[t(608)]((()=>{const e=t;this[e(1004)][e(1358)][e(315)]=null,this[e(1318)][e(945)](this[e(989)],e(353)),this._replaySuccessAndNext()})).catch((e=>{const s=t;this.emit(M[s(641)],M[s(1156)],{},""),this[s(1318)][s(1541)](this[s(989)],s(564),e)}))}))[e(978)]((()=>{const t=e;this[t(1431)](M[t(641)],M.playVodEndedAndReplay,{},""),this.debugError(this[t(989)],"playVodEndedAndReplay and _resetPlayer error")}))}}return uR.ERROR=U,uR[cR(1312)]=F,window[cR(1354)]=uR,window[cR(712)]=uR,window[cR(331)]=uR,uR}));
|