PageSourceSearch

https://crowdbunker.com/js/player-vidstack.bdba2732.js

js crowdbunker.com collected 2026-09-25 02:30:49 UTC 103,372 bytes, 3 lines download raw bytes

1/*! cb-build d313161f624c0fe3e935be0fd34c087ec8af8504 */
2"use strict";(self["webpackChunkcrowdbunker"]=self["webpackChunkcrowdbunker"]||[]).push([[8506],{64964:function(e,t,a){a.r(t),a.d(t,{default:function(){return Ee}});var i=a(33740),n=a(36930),r=a(51554),s=function(){var e=this,t=e._self._c;return t("media-player",{ref:"player",staticClass:"player overflow-hidden d-flex",class:{"rounded-lg":!e.embed&&!e.rush&&e.$vuetify.breakpoint.smAndUp,"player-embed":e.embed,"player-rush":e.rush,"player-rush--bare":e.rush&&!e.rushDesktopControls,"player-has-selection":e.hasSelection,"player-playback-failed":!!e.playbackFailure,"player-playback-recovering":e.recoveryInProgress&&e.playbackRequested&&!e.playbackFailure},style:e.selectionStyle,attrs:{"keep-alive":"",poster:e.thumbnail,src:e.formattedSrc,"clip-start-time":!e.live&&e.excerptMode?e.startPosition:void 0,"clip-end-time":!e.live&&e.excerptMode?e.endPosition:void 0,"stream-type":e.playbackStreamType,"live-edge-tolerance":e.isPlaybackResilienceEnabled?40:20,load:e.playerLoad,preload:"auto",muted:e.muted,autoplay:e.autoplay,loop:e.rush,artist:e.video?.channel?.organization?.name,storage:"vid-pref",playsinline:"","key-target":"document","key-disabled":e.keyDisabled,"key-shortcuts":JSON.stringify(e.keyShortcuts)},on:{play:e.onPlay,"media-play-request":e.onMediaPlayRequest,playing:e.onPlaybackStarted,pause:e.onPause,"media-pause-request":e.onMediaPauseRequest,"time-update":e.onTimeUpdate,waiting:e.onPlaybackWaiting,stalled:e.onPlaybackStalled,progress:e.onPlaybackProgress,seeking:e.onSeeking,seeked:e.onSeeked,"media-seek-request":e.onMediaSeekRequest,"hls-error":e.onHlsError,"hls-instance":e.onHlsInstance,"hls-frag-loaded":e.onHlsFragLoaded,"hls-level-loaded":e.onHlsLevelLoaded,"hls-level-updated":e.onHlsLevelUpdated,"hls-manifest-loaded":e.onHlsManifestLoaded,"loaded-metadata":e.onLoadedMetadata,"can-play":e.onCanPlay,ended:e.onEnded,error:e.onError,"auto-play-fail":e.onAutoPlayFail,"provider-change":e.onProviderChange,"controls-change":e.onControlsChange,"provider-setup":e.onProviderSetup,"google-cast-loaded":e.onGoogleCastLoaded,"volume-change":e.onVolumeChange}},[t("media-provider",{ref:"provider",on:{pointerdown:e.onFastPlaybackPointerDown,pointermove:e.onFastPlaybackPointerMove,"!pointerup":function(t){return e.onFastPlaybackPointerEnd.apply(null,arguments)},"!pointercancel":function(t){return e.onFastPlaybackPointerEnd.apply(null,arguments)},pointerleave:e.onFastPlaybackPointerLeave,"!touchend":function(t){return e.onFastPlaybackTouchEnd.apply(null,arguments)},contextmenu:e.onFastPlaybackContextMenu}},[t("media-poster",{staticClass:"vds-poster",attrs:{src:e.thumbnail}})],1),e._v(" "),t("transition",{attrs:{name:"player-gesture-feedback"}},[e.gestureFeedback?t("div",{key:e.gestureFeedback.id,staticClass:"player-gesture-feedback",class:`player-gesture-feedback--${e.gestureFeedback.type}`,attrs:{"aria-hidden":"true"}},[t("div",{staticClass:"player-gesture-feedback__bubble"},[t(n.A,{attrs:{color:"white",size:"54"}},[e._v(e._s(e.gestureFeedback.icon))]),e._v(" "),e.gestureFeedback.label?t("span",[e._v(e._s(e.gestureFeedback.label))]):e._e()],1)]):e._e()]),e._v(" "),e.playbackFailure?t("div",{staticClass:"playback-failure-overlay",attrs:{role:"alert"},on:{click:function(e){e.stopPropagation()}}},[t(n.A,{attrs:{color:"white",size:"34"}},[e._v("mdi-alert-circle-outline")]),e._v(" "),t("div",{staticClass:"playback-failure-overlay__message"},[e._v("\n      "+e._s(e.$t("offline"===e.playbackFailure.reason?"video.playback-offline":"video.playback-unavailable"))+"\n    ")]),e._v(" "),t(i.A,{attrs:{color:"primary",small:""},on:{click:function(t){return t.stopPropagation(),e.retryFailedPlayback()}}},[e._v("\n      "+e._s(e.$t("video.retry-playback"))+"\n    ")])],1):e.recoveryInProgress&&e.playbackRequested?t("div",{staticClass:"playback-recovery-overlay",attrs:{role:"status","aria-live":"polite"},on:{click:function(e){e.stopPropagation()}}},[t(r.A,{attrs:{indeterminate:"",color:"white",size:"34",width:"3"}}),e._v(" "),t("div",{staticClass:"playback-recovery-overlay__message"},[e._v("\n      "+e._s(e.$t("video.playback-recovering"))+"\n    ")])],1):e._e(
2),e._v(" "),e.rush?[t("media-time-slider",{staticClass:"rush-time-slider"},[t("div",{staticClass:"rush-time-slider__track"}),e._v(" "),t("div",{staticClass:"rush-time-slider__fill"}),e._v(" "),t("div",{staticClass:"rush-time-slider__thumb"})]),e._v(" "),e.rushDesktopControls?t("media-controls",{staticClass:"vds-controls rush-controls"},[t("media-menu",{staticClass:"vds-menu"},[t("media-menu-button",{staticClass:"vds-button vds-menu-button rush-settings-menu__trigger",attrs:{"aria-label":e.$t("rush.settings")}},[t(n.A,{attrs:{dark:"",size:"19"}},[e._v("mdi-cog-outline")])],1),e._v(" "),t("media-menu-portal",[t("media-menu-items",{staticClass:"vds-menu-items rush-settings-menu__items",attrs:{placement:"left start",offset:"8"}},[t("p",{staticClass:"rush-settings-menu__label"},[e._v(e._s(e.$t("rush.quality")))]),e._v(" "),t("media-quality-radio-group",{ref:"qualityRadioGroup",staticClass:"vds-quality-radio-group vds-radio-group rush-settings-menu__group",attrs:{"hide-bitrate":""}}),e._v(" "),t("p",{staticClass:"rush-settings-menu__label"},[e._v(e._s(e.$t("rush.speed")))]),e._v(" "),t("media-speed-radio-group",{ref:"speedRadioGroup",staticClass:"vds-speed-radio-group vds-radio-group rush-settings-menu__group"})],1)],1)],1)],1):e._e()]:t("media-video-layout",{ref:"videoLayout",attrs:{thumbnails:e.storyboards,"small-when":e.embed?e.forceMobileLayout():void 0}}),e._v(" "),e.collapsible&&!e.rush?t("button",{staticClass:"player-collapse",attrs:{type:"button",title:e.$t("miniplayer.collapse"),"aria-label":e.$t("miniplayer.collapse")},on:{click:function(t){return t.stopPropagation(),e.$emit("collapse")}}},[t(n.A,{attrs:{dark:"",size:"24"}},[e._v("mdi-chevron-down")])],1):e._e()],2)},o=[],l=(a(74423),a(44114),a(18111),a(22489),a(20116),a(7588),a(18237),a(85471));function u(e,t){if(void 0===e&&"undefined"!==typeof globalThis&&(e=globalThis),void 0===t&&"undefined"!==typeof navigator&&(t=navigator),!e||!t)return!1;try{const i=t.mediaSession;if(!i||"function"===typeof e.MediaMetadata)return!1;class n{constructor(e={}){this.album=String(e.album||""),this.artist=String(e.artist||""),this.artwork=Array.isArray(e.artwork)?e.artwork:[],this.title=String(e.title||"")}}Object.defineProperty(e,"MediaMetadata",{configurable:!0,value:n,writable:!0});try{Object.defineProperty(i,"metadata",{configurable:!0,value:null,writable:!0})}catch(a){}return e.__CROWDBUNKER_MEDIA_METADATA_FALLBACK__=!0,!0}catch(a){return!1}}var c=a(84009),d=a(30314),g=a(64945),h=a(21624),y=a.n(h),v=a(64911),p=a(21921),m=a(6810),b=a(64251),f=a(93563),_=a(44342);function k(e){return"string"===typeof e&&e.trim()?e.trim().toLowerCase().replace("_","-").split("-")[0]:""}function P(e,t){const a=k(e?.defaultLanguage);if(a)return a;const i=t.find(e=>!e.translation);return k(i?.nativeLanguage||i?.languageCode)}function S(e,t){const a=k(t),i=e.find(e=>k(e.languageCode)===a);if(i)return i;const n=e.find(e=>"fr"===k(e.languageCode));return n||e[0]||null}function R(e,t,a){const i=k(a),n=P(e,t),r=S(t,i);return{caption:r,autoEnable:!!r&&!!n&&!!i&&n!==i}}const A={baseLanguage:k,resolveCaptionPreference:R};a(17642),a(58004),a(33853),a(45876),a(32475),a(15024),a(31698);function C(e){const t=e?.messages||{},a=e?.locale,i=[],n=e=>{if(Array.isArray(e))return void e.forEach(n);if("string"!==typeof e||""===e)return;i.push(e);const t=e.split("-")[0];t!==e&&i.push(t)};n(a);const r=e?.fallbackLocale;Array.isArray(r)?n(r):r&&"object"===typeof r?(n(r[a]),"string"===typeof a&&n(r[a.split("-")[0]]),n(r.default)):n(r),n("fr"),n("en");for(const s of new Set(i)){const e=t[s]?.player;if(e&&"object"===typeof e)return e}return{}}var L=a(39678),T=a(60800);const w=5,M=3,E=75e3,N=30,D=40,F=2e3,I=15e3,x=3,q=5e3,$=12e3,O=1.5,B=.05,H=[401,403,404],V=1,W=[1e3,3e3,8e3,15e3,25e3],U=[15e3,3e4,6e4,12e4,3e5],z=[3e4,6e4,12e4,3e5];function K(e={},t=!1){const a={};return t&&Object.assign(a,{liveSyncDuration:N,liveMaxLatencyDuration:D,maxLiveSyncPlaybackRate:1.05}),a}function j(e,t,a=O){if(!e||!Number.isFinite(t))return null;for(let i=0;i<e.length;i++){const n=Number(e.start(i));if(!Number.isFinite(n)||n<=t)continue;const r=n-t;return r>a?null:n+B}return null}function G({currentTime:e,seekable:t,hlsLiveSyncPosition:a}
2){if(!t?.length||!Number.isFinite(e))return null;const i=t.length-1,n=Number(t.start(i)),r=Number(t.end(i));if(!Number.isFinite(n)||!Number.isFinite(r))return null;const s=r-e,o=r-N,l=r-a,u=Number.isFinite(a)&&l<=D?a:o,c=Math.min(r-.1,Math.max(n+.1,u));return Number.isFinite(s)&&Number.isFinite(c)?{inRange:s<=D,latency:s,seekableEnd:r,seekableStart:n,targetTime:c}:null}function Y(e){const t=G(e);return!t||t.inRange||Math.abs(t.targetTime-e.currentTime)<.5?null:{latency:t.latency,targetTime:t.targetTime}}function J({latency:e,outOfRangeSince:t,now:a,lastCorrectionAt:i=0,confirmationMs:n=F,cooldownMs:r=I}){return Number(e)>D&&Number(t)>0&&Number(a)-Number(t)>=n&&(!Number(i)||Number(a)-Number(i)>=r)}function X(e){const t=Math.max(0,Number(e)||0);return W[Math.min(t,W.length-1)]}function Z(e,t=!1){const a=t?z:U,i=Math.max(0,Number(e)||0);return a[Math.min(i,a.length-1)]}function Q(e){const t=Math.max(1,Number(e)||1);return t<=x?"full-circuit":"single-source-probe"}function ee({firstAttemptAt:e,now:t,suspendedDurationMs:a=0,suspensionStartedAt:i=0}){if(!(e>0)||!(t>=e))return 0;const n=i?Math.max(0,t-i):0;return Math.max(0,t-e-Math.max(0,Number(a)||0)-n)}function te({attempts:e,firstAttemptAt:t,now:a,hlsStatus:i,isLive:n=!1,suspendedDurationMs:r=0,suspensionStartedAt:s=0}){const o=Math.max(0,Number(e)||0),l=Number(i)||0;if(!n&&H.includes(l)&&o>=V)return`persistent-http-${l}`;if(o>=w)return"attempt-limit";const u=ee({firstAttemptAt:t,now:a,suspendedDurationMs:r,suspensionStartedAt:s});return o>=M&&u>=E?"time-limit":null}function ae({attempt:e,bufferedRecoveryPosition:t,hasHls:a,hlsRestartAttempts:i=0,hlsStatus:n=0,paused:r,readyState:s,mediaDecodeError:o=!1}){const l=Math.max(0,Number(e)||0);return null!==t?"buffer-gap-seek":o&&a&&0===l?"media-recover":H.includes(Number(n)||0)?"source-reload":r&&s>=2&&l<=1?"native-play":a&&i<1?"hls-restart":"source-reload"}function ie({hasPlaybackIntent:e,mediaErrorCode:t}){if(!e)return"ignore-no-playback-intent";const a=Number(t)||0;return 1===a?"ignore-aborted":3===a?"recover-decoder":2===a||4===a?"watchdog":"ignore-unconfirmed"}function ne({playbackRequested:e,playbackRequestPending:t,resumeAfterRecovery:a}){return!!(e||t||a)}function re({hlsFatal:e,lastMediaDataProgressEvent:t,mediaDataProgressRecent:a,readyState:i,startupPending:n}){return!e&&a&&["hls-frag-loaded","native-progress"].includes(t)&&(n||Number(i)<=2)}function se({deferralStartedAt:e,now:t,maxDeferralMs:a=$}){return Number(e)>0&&Number(t)>=Number(e)&&Number(t)-Number(e)<Number(a)}function oe(e,t,a=q){return Number(e)>0&&Number(t)>=Number(e)&&Number(t)-Number(e)<=a}function le({playbackRequested:e,playbackRequestPending:t,playbackSessionStarted:a}){return!!e&&!t&&!!a}function ue(e,t){const a=Number(e);if(!Number.isFinite(a)||a<=0)return 0;const i=Number(t),n=Number.isFinite(i)?Math.max(0,i-.25):a;return Math.min(n,Math.max(0,a-.5))}function ce(e){const t=e?.name||"Error";return"NotAllowedError"===t?"blocked":"AbortError"===t?"interrupted":"failed"}function de(e,t,a=""){const i=Number(e);if(!Number.isFinite(i))return"unknown";for(const n of t)if(i<n)return`lt-${n}${a}`;return`gte-${t[t.length-1]}${a}`}function ge(e){return 3===e?.code}function he({playbackRequested:e,startupPending:t=!1,paused:a,ended:i,seeking:n,hidden:r,lastProgressAt:s,now:o,thresholdMs:l}){return!(!e||a&&!t||i||n||r)&&o-s>=l}a(61701);const ye="vid-pref",ve={audioGain:e=>null===e||"number"===typeof e&&Number.isFinite(e)&&e>=1&&e<=3,captions:e=>null===e||"boolean"===typeof e,lang:e=>null===e||"string"===typeof e&&e.length<=64,muted:e=>null===e||"boolean"===typeof e,quality:e=>null===e||!(!e||"object"!==typeof e||Array.isArray(e))&&(!(!Number.isFinite(e.width)||e.width<0||!Number.isFinite(e.height)||e.height<0)&&["bitrate"].every(t=>{const a=e[t];return void 0===a||"number"===typeof a&&Number.isFinite(a)&&a>=0})),rate:e=>null===e||"number"===typeof e&&Number.isFinite(e)&&e>=.25&&e<=4,volume:e=>null===e||"number"===typeof e&&Number.isFinite(e)&&e>=0&&e<=1};function pe(e,t=ye){if(void 0===e&&"undefined"!==typeof window)try{e=window.localStorage}catch{return{repaired:!1,reason:"storage-unavailable",fields:[]}}if(!e)return{repaired:!1,reason:"storage-unavailable",fields:[]};let a,i;try{a=e.getItem(t)}catch{return{repaired:!1,reason:"storage-unavailable",fields:[]}}if(null===a)return{repaired:!1,reason:"missing",fields:[]};try{i=JSON.parse(a)}catch{try{return e.removeItem(t),{repaired:!0,reason:"invalid-json",fields:["all"]}}catch{return{repaired:!1,reason:"storage-unavailable",fields:[]}}}if(!i||"object"!==typeof i||Array.isArray(i))try{return e.removeItem(t),{repaired:!0,reason:"invalid-shape",fields:["all"]}}catch{return{repaired:!1,reason:"storage-unavailable",fields:[]}}const n=Object.entries(ve).filter(([e,t])=>Object.prototype.hasOwnProperty.call(i,e)&&!t(i[e])).map(([e])=>e);if(0===n.length)return{repaired:!1,reason:"valid",fields:[]};const r={...i};
2n.forEach(e=>delete r[e]);try{return e.setItem(t,JSON.stringify(r)),{repaired:!0,reason:"invalid-fields",fields:n}}catch{return{repaired:!1,reason:"storage-unavailable",fields:[]}}}function me(e,t=ye){if(void 0===e&&"undefined"!==typeof window)try{e=window.localStorage}catch{return{reset:!1,reason:"storage-unavailable",fields:[]}}if(!e)return{reset:!1,reason:"storage-unavailable",fields:[]};let a;try{const i=e.getItem(t);a=i?JSON.parse(i):null}catch{return{reset:!1,reason:"storage-unavailable",fields:[]}}if(!a||"object"!==typeof a)return{reset:!1,reason:"missing",fields:[]};const i=["quality","rate"].filter(e=>Object.prototype.hasOwnProperty.call(a,e));if(!i.length)return{reset:!1,reason:"not-needed",fields:[]};const n={...a};i.forEach(e=>delete n[e]);try{return e.setItem(t,JSON.stringify(n)),{reset:!0,reason:"recovery",fields:i}}catch{return{reset:!1,reason:"storage-unavailable",fields:[]}}}const be=2/3,fe=12;function _e(e,t){const a=e?.originEvent||e?.trigger,i=Number(e?.detail),n=Number(t);return a?.MEDIA_GESTURE&&Number.isFinite(i)&&Number.isFinite(n)&&i!==n?i>n?"forward":"backward":null}function ke(e,t){const a=Number(t?.left),i=Number(t?.width),n=Number(e);return Number.isFinite(a)&&Number.isFinite(i)&&i>0&&Number.isFinite(n)&&n>=a+i*be}function Pe(e,t){return!(e&&Number.isFinite(t?.clientX)&&Number.isFinite(t?.clientY))||Math.hypot(t.clientX-e.x,t.clientY-e.y)>fe}var Se=a(47373);l.Ay.config.ignoredElements=[/^media-/],u(),Promise.all([a.e(3845),a.e(2151),a.e(4224),a.e(2968),a.e(8384),a.e(6304),a.e(6564),a.e(1745),a.e(184),a.e(4408),a.e(9271),a.e(5138),a.e(1279),a.e(926)]).then(a.bind(a,21569)),Promise.all([a.e(3845),a.e(2151),a.e(4224),a.e(2968),a.e(8384),a.e(6304),a.e(6564),a.e(1745),a.e(184),a.e(4408),a.e(9271),a.e(5138),a.e(1279),a.e(8403)]).then(a.bind(a,88459)),Promise.all([a.e(3845),a.e(2151),a.e(4224),a.e(2968),a.e(8384),a.e(6304),a.e(6564),a.e(1745),a.e(184),a.e(4408),a.e(9271),a.e(5138),a.e(1279),a.e(4155)]).then(a.bind(a,49844));const Re="0524916D".trim(),Ae="1.12.13";function Ce(){return"undefined"!==typeof window&&window.crypto?.randomUUID?window.crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}var Le={name:"Vidstack",props:{muted:Boolean,thumbnail:String,autoplay:Boolean,sources:Array,statTimeout:{type:Number,default:null},isLiveActive:Boolean,finished:Boolean,hasMediaError:Boolean,mediaReady:Boolean,live:{type:Boolean,default:!1},video:{type:Object},startPosition:{type:Number,default:void 0},endPosition:{type:Number,default:void 0},excerptMode:Boolean,forceStartPosition:Boolean,embed:Boolean,keyDisabled:Boolean,rush:Boolean,collapsible:Boolean},data(){const e=pe();return{src:"",uniqueId:Math.random(),canUpdatePosition:!0,translations:C(f.A),hoverPointer:"undefined"!==typeof window&&"function"===typeof window.matchMedia&&window.matchMedia("(hover: hover) and (pointer: fine)").matches,playbackHealthTimeout:null,recoveryActionTimeout:null,legacyRetryTimeout:null,stablePlaybackTimeout:null,terminalRetryTimeout:null,playbackBufferingConfirmationTimeout:null,liveLatencyVerificationTimeout:null,playbackWatchdogInterval:null,liveLatencyInterval:null,hlsInstance:null,playbackRequested:!1,playbackRequestPending:!1,playbackRequestOrigin:null,playbackRequestStartedAt:0,intentionalPauseRequested:!1,recoveryInProgress:!1,ignorePauseUntil:0,recoveryAttempts:0,firstRecoveryAttemptAt:0,recoverySuspendedAt:0,recoverySuspendedDurationMs:0,recoverySuspensionReason:null,recoveryTelemetrySent:!1,recoveryExhaustionCaptured:!1,terminalRetryAttempts:0,pendingTerminalRecoveryReason:null,pendingTerminalRecoveryOrigin:null,pendingTerminalRecoveryStartedAt:0,playbackFailure:null,offlineTelemetrySent:!1,lastPlaybackTime:null,lastPlaybackProgressAt:Date.now(),lastPlaybackWaitingAt:0,lastPlaybackStalledAt:0,lastNetworkProgressAt:0,lastNetworkProgressEvent:null,lastMediaDataProgressAt:0,lastMediaDataProgressEvent:null,lastBufferedEnd:0,lastRecoveryAt:0,lastMediaRecoveryAt:0,recoveryDeferralStartedAt:0,lastRecoveryDeferredAt:0,lastLiveCorrectionAt:0,liveOutOfRangeSince:0,liveOutOfRangeObservationCount:0,liveInitialPositionApplied:!1,lastHlsError:null,lastRecoveryAction:null,playAttemptPromise:null,playAttemptSequence:0,playAttemptStartedAt:0,startupSpan:null,recoverySpan:null,recoveryCycleId:null,recoveryCycleStartedAt:0,pendingRecoveryPosition:null,resumeAfterRecovery:!1,playbackSeeking:!1,playbackExperiment:(0,T.eO)({username:this.$store.state.account.user?.user?.username||this.$store.state.account.user?.username}),playerInitializedAt:Date.now(),preferenceRepair:e,recoveryPreferencesReset:!1,hlsRestartAttempts:0,videoViewId:Ce(),muxVideoEl:null,playbackSessionId:null,playbackSessionStartedAt:0,playbackSessionStarted:!1,playbackStallStartedAt:0,playbackStallCount:0,playbackBufferingStartedAt:0,playbackBufferingWasStartup:!1,playbackBufferingPendingAt:0,playbackBufferingPendingWasStartup:!1,playbackBufferingCount:0,playbackBufferingDurationMs:0,playbackTransientWaitingCount:0,startupWaitingStartedAt:0,startupWaitingCount:0,startupWaitingDurationMs:0,startupRecoveryAttempts:0,startupRecoveryActions:[],lastStallTelemetryAt:0,lastLiveTelemetryAt:0,liveLatencyCorrectionTimeout:null,liveLatencyCorrectionForced:!1,liveLatencyCorrectionTrigger:null,liveLatencyCorrectionPending:!1,gestureFeedback:null,gestureFeedbackSequence:0,gestureFeedbackTimeout:null,fastPlaybackActive:!1,fastPlaybackHoldTimer:null,fastPlaybackPointerId:null,fastPlaybackPointerStart:null,fastPlaybackPreviousRate:1,fastPlaybackSuppressUntil:0,fastPlaybackTrigger:null,try:0,isYoutube:!1,stoppedAtEndPosition:!1,loadedCaptionKeys:[],keyShortcuts:{...c.nW,toggleCaptions:"w"}}},computed:{isPlaybackResilienceEnabled(){return this.playbackExperiment.enabled},isLivePlayback(){return!!(this.isLiveActive||this.live||this.video?.isLiveType)},playbackStreamType(){return this.finished?"on-demand":this.isLivePlayback?"live:dvr":"on-demand"},storyboards(){return this.video.storyboards&&this.video.storyboards[0]?.file.url||""},hasSelection(){const e=Number(this.startPosition),t=Number(this.endPosition),a=Number(this.video.duration);return!this.excerptMode&&!Number.isNaN(e)&&!Number.isNaN(t)&&!Number.isNaN(a)&&a>0&&t>e},selectionStyle(){if(!this.hasSelection)return{};const e=Math.min(1,Math.max(0,Number(this.startPosition)/this.video.duration)),t=Math.min(1,Math.max(0,Number(this.endPosition)/this.video.duration)),a=e+(t-e)/2;return{"--selection-start":100*e+"%","--selection-end":100*t+"%","--selection-middle":100*a+"%"}},currentSource(){return this.sources[0]?.src||""},currentSourceWithoutRetryParam(){return this.removeRetryParam(this.src)},platformSubscriptionLoaded(){return L.dR.isPlatformSubscriptionLoaded()},formattedSrc(){if(!this.src)return"";if(this.src.startsWith("youtube/"))return this.src;if(0===this.try)return this.src;if(/[?&]i=/.test(this.src))return this.src.replace(/([?&])i=[^&]*/,`$1i=${this.try}`);const e=this.src.includes("?")?"&":"?";return`${this.src}${e}i=${this.try}`}
2,rushDesktopControls(){return this.rush&&this.hoverPointer},playerLoad(){return this.autoplay||!this.embed||window.__CROWDBUNKER_STATIC_EMBED_SHELL__?"eager":"visible"},googleCastOptions(){return Re?{receiverApplicationId:Re}:{}}},methods:{onMediaSeekRequest(e){const t=_e(e,this.$refs.player?.currentTime);t&&this.showGestureFeedback({type:t,icon:"forward"===t?"mdi-fast-forward-10":"mdi-rewind-10"})},showGestureFeedback(e,t=700){clearTimeout(this.gestureFeedbackTimeout),this.gestureFeedback={id:++this.gestureFeedbackSequence,...e},this.gestureFeedbackTimeout=t?window.setTimeout(this.clearGestureFeedback,t):null},clearGestureFeedback(){clearTimeout(this.gestureFeedbackTimeout),this.gestureFeedbackTimeout=null,this.gestureFeedback=null},onFastPlaybackPointerDown(e){const t=this.$refs.player,a=this.$refs.provider;t&&a&&!1!==e.isPrimary&&0===e.button&&!this.isLivePlayback&&!this.isPaused()&&!0===t.state?.canSetPlaybackRate&&ke(e.clientX,a.getBoundingClientRect())&&(this.stopFastPlaybackHold(),this.fastPlaybackPointerId=e.pointerId,this.fastPlaybackPointerStart={x:e.clientX,y:e.clientY},this.fastPlaybackTrigger=e,this.fastPlaybackHoldTimer=window.setTimeout(this.startFastPlaybackHold,450))},startFastPlaybackHold(){this.fastPlaybackHoldTimer=null;const e=this.$refs.player;if(!e||null===this.fastPlaybackPointerId||this.isLivePlayback||this.isPaused()||!0!==e.state?.canSetPlaybackRate)return void this.stopFastPlaybackHold();const t=Number(e.state?.playbackRate);this.fastPlaybackPreviousRate=Number.isFinite(t)&&t>0?t:1,this.fastPlaybackActive=!0,e.remoteControl.changePlaybackRate(2,this.fastPlaybackTrigger),this.showGestureFeedback({type:"speed",icon:"mdi-fast-forward",label:"2×"},0)},onFastPlaybackPointerMove(e){e.pointerId===this.fastPlaybackPointerId&&Pe(this.fastPlaybackPointerStart,e)&&this.stopFastPlaybackHold(e)},onFastPlaybackPointerEnd(e){const t=e.pointerId===this.fastPlaybackPointerId;!t&&Date.now()>=this.fastPlaybackSuppressUntil||((this.fastPlaybackActive||Date.now()<this.fastPlaybackSuppressUntil)&&(e.preventDefault(),e.stopImmediatePropagation()),t&&this.stopFastPlaybackHold(e))},onFastPlaybackPointerLeave(e){e.pointerId===this.fastPlaybackPointerId&&this.stopFastPlaybackHold(e)},onFastPlaybackTouchEnd(e){!this.fastPlaybackActive&&Date.now()>=this.fastPlaybackSuppressUntil||(e.preventDefault(),e.stopImmediatePropagation(),this.stopFastPlaybackHold(e))},onFastPlaybackContextMenu(e){this.fastPlaybackActive&&e.preventDefault()},stopFastPlaybackHold(e){if(clearTimeout(this.fastPlaybackHoldTimer),this.fastPlaybackHoldTimer=null,this.fastPlaybackActive){this.fastPlaybackSuppressUntil=Date.now()+350;const t=this.$refs.player;t?.remoteControl&&t.remoteControl.changePlaybackRate(this.fastPlaybackPreviousRate,e),"speed"===this.gestureFeedback?.type&&this.clearGestureFeedback()}this.fastPlaybackActive=!1,this.fastPlaybackPointerId=null,this.fastPlaybackPointerStart=null,this.fastPlaybackPreviousRate=1,this.fastPlaybackTrigger=null},onGoogleCastLoaded(){this.patchGoogleCastMediaInfo()},configureGoogleCastOptions(){Re&&"undefined"!==typeof customElements&&customElements.whenDefined("media-player").then(()=>{this.$refs.player&&(this.$refs.player.googleCast=this.googleCastOptions)})},configureTouchFullscreen(){this.hoverPointer||"undefined"===typeof customElements||customElements.whenDefined("media-player").then(()=>{this.$refs.player&&(this.$refs.player.fullscreenOrientation=void 0)})},patchGoogleCastMediaInfo(){if("undefined"===typeof window)return;const e=window.chrome?.cast?.media;if(!e?.MediaInfo||e.MediaInfo.__crowdBunkerHlsPatch)return;const t=e.MediaInfo,a=["application/vnd.apple.mpegurl","application/x-mpegurl","application/mpegurl","audio/mpegurl","audio/x-mpegurl","video/mpegurl","video/x-mpegurl"],i=(e,t)=>{const i=String(t||"").toLowerCase(),n=String(e||"");return(a.includes(i)||/\.m3u8(?:[?#]|$)/i.test(n))&&/\/videos\//.test(n)};function n(a,n){const r=new t(a,n);if(i(a,n)){const t=e.HlsSegmentFormat?.FMP4,a=e.HlsVideoSegmentFormat?.FMP4;t&&(r.hlsSegmentFormat=t),a&&(r.hlsVideoSegmentFormat=a)}return r}n.prototype=t.prototype,Object.setPrototypeOf&&Object.setPrototypeOf(n,t),Object.defineProperty(n,"__crowdBunkerHlsPatch",{value:!0}),e.MediaInfo=n},removeRetryParam(e){return e?e.replace(/([?&])i=[^&]*&/,"$1").replace(/[?&]i=[^&]*$/,"").replace(/\?&/,"?"):""},capitalize(e){return e.charAt(0).toUpperCase()+e.slice(1)},getPlaybackStateSnapshot(e=this.getNativeVideoEl()){const t=Date.now(),a="undefined"!==typeof navigator?navigator.connection:null,i=Number(e?.currentTime),n=Number(e?.duration),r=ee({firstAttemptAt:this.firstRecoveryAttemptAt,now:t,suspendedDurationMs:this.recoverySuspendedDurationMs,suspensionStartedAt:this.recoverySuspendedAt});let s=0,o=0;if(e?.buffered?.length&&Number.isFinite(i))try{for(let t=0;t<e.buffered.length;t++){const a=Number(e.buffered.start(t)),n=Number(e.buffered.end(t));if(a<=i&&n>=i){s=Math.max(0,n-i),o=n;break}}}catch(l){}return{video_buffered_ahead_seconds:Number(s.toFixed(3)),video_buffered_ahead_bucket:
2de(s,[.1,1,5,20],"s"),video_buffered_end_seconds:Number(o.toFixed(3)),video_buffered_range_count:e?.buffered?.length||0,video_connection_downlink:a?.downlink,video_connection_effective_type:a?.effectiveType,video_connection_rtt:a?.rtt,video_connection_save_data:a?.saveData,video_current_time:Number.isFinite(i)?Number(i.toFixed(3)):void 0,video_document_visibility:"undefined"!==typeof document?document.visibilityState:void 0,video_duration:Number.isFinite(n)?Number(n.toFixed(3)):void 0,video_ended:e?.ended,video_hls_current_level:this.hlsInstance?.currentLevel,video_hls_version:g.Ay.version,video_hls_load_level:this.hlsInstance?.loadLevel,video_hls_loading_enabled:this.hlsInstance?.loadingEnabled,video_hls_next_load_level:this.hlsInstance?.nextLoadLevel,video_hls_state:this.hlsInstance?.networkControllers?.[0]?.state,video_last_network_progress_age_ms:this.lastNetworkProgressAt?Math.max(0,t-this.lastNetworkProgressAt):void 0,video_last_network_progress_event:this.lastNetworkProgressEvent||void 0,video_last_media_data_progress_age_ms:this.lastMediaDataProgressAt?Math.max(0,t-this.lastMediaDataProgressAt):void 0,video_last_media_data_progress_event:this.lastMediaDataProgressEvent||void 0,video_network_online:"undefined"!==typeof navigator?navigator.onLine:void 0,video_network_state:e?.networkState,video_paused:e?.paused,video_playback_phase:this.playbackFailure?"failed":this.recoveryInProgress?"recovery":this.playbackRequestPending?"startup":this.playbackRequested?"playing":"idle",video_play_request_age_ms:this.playbackRequestPending?Math.max(0,t-this.playbackRequestStartedAt):void 0,video_waiting_age_ms:this.lastPlaybackWaitingAt?Math.max(0,t-this.lastPlaybackWaitingAt):void 0,video_native_stalled_age_ms:this.lastPlaybackStalledAt?Math.max(0,t-this.lastPlaybackStalledAt):void 0,video_ready_state:e?.readyState,video_ready_state_bucket:`ready-${e?.readyState??"missing"}`,video_recovery_action:this.lastRecoveryAction||void 0,video_recovery_active_duration_ms:r,video_recovery_active_duration_bucket:de(r,[1e3,3e3,8e3,15e3,3e4,6e4,75e3],"ms"),video_recovery_suspension_reason:this.recoverySuspensionReason||void 0,video_seeking:e?.seeking}},logPlaybackTelemetry(e,t={},a="info"){if(!this.playbackExperiment.telemetryEnabled)return;const i=Object.entries({video_event:e,video_experiment:this.playbackExperiment.experimentId,video_variant:this.playbackExperiment.variant,video_canary_percentage:this.playbackExperiment.percentage,video_assignment_reason:this.playbackExperiment.assignmentReason,video_telemetry_version:7,video_player:"vidstack",video_player_version:Ae,video_release:"0.91.41",video_view_id:this.videoViewId,video_session_id:this.playbackSessionId||"",video_id:String(this.video?.id||this.video?.uid||""),video_is_live:this.isLivePlayback,video_stream_type:this.isLivePlayback?"live":"vod",video_recovery_attempts:this.recoveryAttempts,...t}).reduce((e,[t,a])=>(void 0!==a&&null!==a&&(e[t]=a),e),{}),n="warning"===a?v.R8:v.pq,r=()=>{try{n("Video playback telemetry",i)}catch(e){}};"play_requested"!==e?r():window.setTimeout(r,0)},createPlaybackSpan(e,t,a={}){if(!this.playbackExperiment.telemetryEnabled)return null;try{return p.Uk({name:e,op:t,attributes:{video_experiment:this.playbackExperiment.experimentId,video_variant:this.playbackExperiment.variant,video_release:"0.91.41",video_view_id:this.videoViewId,video_is_live:this.isLivePlayback,video_stream_type:this.isLivePlayback?"live":"vod",...a}})}catch(i){return null}},finishStartupSpan(e){if(this.startupSpan){this.finishStartupWaiting();try{this.startupSpan.setAttribute("video_startup_outcome",e),this.startupSpan.setAttribute("video_startup_waiting_count",this.startupWaitingCount),this.startupSpan.setAttribute("video_startup_waiting_duration_ms",this.startupWaitingDurationMs),this.startupSpan.setAttribute("video_startup_recovery_attempts",this.startupRecoveryAttempts),this.startupSpan.setAttribute("video_startup_recovery_used",this.startupRecoveryAttempts>0),this.startupSpan.setAttribute("video_startup_recovery_actions",this.startupRecoveryActions.join(",")),this.startupSpan.end()}catch(t){}this.startupSpan=null}},startRecoveryCycle(e){this.recoveryCycleId||(this.recoveryCycleId=Ce(),this.recoveryCycleStartedAt=Date.now(),this.recoverySpan=this.createPlaybackSpan("video.playback.recovery","video.recovery",{video_recovery_cycle_id:this.recoveryCycleId,video_recovery_trigger:e}))},finishRecoveryCycle(e,t){if(!this.recoveryCycleId)return;const a=Math.max(0,Date.now()-this.recoveryCycleStartedAt);if(this.logPlaybackTelemetry("recovery_outcome",{...this.getPlaybackStateSnapshot(),video_recovery_cycle_id:this.recoveryCycleId,video_recovery_outcome:e,video_recovery_outcome_trigger:t,video_recovery_duration_ms:a,video_recovery_duration_bucket:
2de(a,[250,1e3,3e3,8e3,15e3,3e4,6e4],"ms")}),this.recoverySpan)try{this.recoverySpan.setAttribute("video_recovery_outcome",e),this.recoverySpan.setAttribute("video_recovery_attempts",this.recoveryAttempts),this.recoverySpan.end()}catch(i){}this.recoverySpan=null,this.recoveryCycleId=null,this.recoveryCycleStartedAt=0},ensurePlaybackSession(){this.playbackSessionId||(this.playbackSessionId=Ce(),this.playbackSessionStartedAt=Date.now(),this.playbackSessionStarted=!1,this.playbackStallStartedAt=0,this.playbackStallCount=0,this.playbackBufferingStartedAt=0,this.playbackBufferingWasStartup=!1,this.playbackBufferingPendingAt=0,this.playbackBufferingPendingWasStartup=!1,this.playbackBufferingCount=0,this.playbackBufferingDurationMs=0,this.playbackTransientWaitingCount=0)},startPlaybackTelemetry(){this.ensurePlaybackSession(),this.playbackSessionStarted||(this.playbackSessionStarted=!0,this.logPlaybackTelemetry("session_started",this.getPlaybackStateSnapshot()))},endPlaybackTelemetry(e){if(!this.playbackSessionId)return;const t=this.playbackBufferingStartedAt?Math.max(0,Date.now()-this.playbackBufferingStartedAt):0,a=Math.max(0,Date.now()-this.playbackSessionStartedAt),i=this.playbackBufferingDurationMs+t;this.logPlaybackTelemetry("session_ended",{video_end_reason:e,video_session_duration_ms:a,video_session_duration_bucket:de(a,[1e3,5e3,15e3,3e4,6e4,18e4,6e5],"ms"),video_stall_count:this.playbackStallCount,video_buffering_count:this.playbackBufferingCount,video_buffering_duration_ms:i,video_buffering_pending:!!this.playbackBufferingPendingAt,video_transient_waiting_count:this.playbackTransientWaitingCount,video_buffering_duration_bucket:de(i,[100,250,500,1e3,3e3,8e3,15e3,3e4,6e4],"ms")}),this.playbackSessionId=null,this.playbackSessionStartedAt=0,this.playbackSessionStarted=!1,this.playbackStallStartedAt=0,this.playbackStallCount=0,clearTimeout(this.playbackBufferingConfirmationTimeout),this.playbackBufferingConfirmationTimeout=null,this.playbackBufferingStartedAt=0,this.playbackBufferingWasStartup=!1,this.playbackBufferingPendingAt=0,this.playbackBufferingPendingWasStartup=!1,this.playbackBufferingCount=0,this.playbackBufferingDurationMs=0,this.playbackTransientWaitingCount=0},cancelPendingBuffering(e=!1){clearTimeout(this.playbackBufferingConfirmationTimeout),this.playbackBufferingConfirmationTimeout=null,e&&this.playbackBufferingPendingAt&&this.playbackTransientWaitingCount++,this.playbackBufferingPendingAt=0,this.playbackBufferingPendingWasStartup=!1},startStartupWaiting(e=Date.now()){this.playbackRequestPending&&!this.startupWaitingStartedAt&&(this.startupWaitingStartedAt=e,this.startupWaitingCount++)},finishStartupWaiting(e=Date.now()){this.startupWaitingStartedAt&&(this.startupWaitingDurationMs+=Math.max(0,e-this.startupWaitingStartedAt),this.startupWaitingStartedAt=0)},getStartupTelemetry(e=Date.now()){const t=this.startupWaitingStartedAt?Math.max(0,e-this.startupWaitingStartedAt):0,a=this.startupWaitingDurationMs+t;return{video_startup_waiting_count:this.startupWaitingCount,video_startup_waiting_duration_ms:a,video_startup_waiting_duration_bucket:de(a,[100,250,500,1e3,2e3,3e3,5e3,8e3,15e3],"ms"),video_startup_recovery_actions:this.startupRecoveryActions.join(","),video_startup_recovery_attempts:this.startupRecoveryAttempts,video_startup_recovery_used:this.startupRecoveryAttempts>0}},scheduleBufferingTelemetry(){if(!le({playbackRequested:this.playbackRequested,playbackRequestPending:this.playbackRequestPending,playbackSessionStarted:this.playbackSessionStarted})||this.playbackBufferingStartedAt||this.playbackBufferingPendingAt)return;const e=Date.now();this.playbackBufferingPendingAt=e,this.playbackBufferingPendingWasStartup=!1,this.playbackBufferingConfirmationTimeout=setTimeout(()=>{this.playbackBufferingConfirmationTimeout=null,this.playbackBufferingPendingAt!==e||!this.playbackRequested||this.lastPlaybackProgressAt>e?this.cancelPendingBuffering(!1):(this.playbackBufferingStartedAt=e,this.playbackBufferingWasStartup=this.playbackBufferingPendingWasStartup,this.playbackBufferingPendingAt=0,this.playbackBufferingPendingWasStartup=!1,this.playbackBufferingCount++,this.logPlaybackTelemetry("buffering_started",{...this.getPlaybackStateSnapshot(),video_buffering_confirmation_delay_ms:250,video_buffering_was_startup:this.playbackBufferingWasStartup}))},250)}
2,finishPlaybackBuffering(e=Date.now()){if(this.playbackBufferingPendingAt&&this.cancelPendingBuffering(!0),!this.playbackBufferingStartedAt)return;const t=Math.max(0,e-this.playbackBufferingStartedAt);this.playbackBufferingDurationMs+=t,this.logPlaybackTelemetry("buffering_ended",{...this.getPlaybackStateSnapshot(),video_buffering_duration_ms:t,video_buffering_duration_bucket:de(t,[250,500,1e3,2e3,3e3,5e3,8e3,15e3,3e4],"ms"),video_buffering_was_startup:this.playbackBufferingWasStartup}),this.playbackBufferingStartedAt=0,this.playbackBufferingWasStartup=!1},logPlaybackStall(e,t){const a=Date.now();this.playbackStallStartedAt||a-this.lastStallTelemetryAt<t||(this.ensurePlaybackSession(),this.lastStallTelemetryAt=a,this.playbackStallStartedAt=a,this.playbackStallCount++,this.logPlaybackTelemetry(this.playbackRequestPending?"startup_stall_detected":"stall_detected",{...this.getPlaybackStateSnapshot(e),video_stall_duration_ms:Math.max(0,a-this.lastPlaybackProgressAt),video_stall_duration_bucket:de(a-this.lastPlaybackProgressAt,[8e3,12e3,3e4,6e4],"ms")},"warning"))},beginPlaybackRequest(e,t){if(this.playbackRequestPending)return;const a=Date.now();this.finishStartupWaiting(a),this.ensurePlaybackSession(),this.playbackRequested=!0,this.playbackRequestPending=!0,this.playbackRequestOrigin=e,this.playbackRequestStartedAt=a,this.startupWaitingStartedAt=0,this.startupWaitingCount=0,this.startupWaitingDurationMs=0,this.startupRecoveryAttempts=0,this.startupRecoveryActions=[],this.intentionalPauseRequested=!1,this.playbackFailure=null,this.offlineTelemetrySent=!1,this.lastPlaybackProgressAt=a,this.recoveryDeferralStartedAt=0,this.lastRecoveryDeferredAt=0,this.finishStartupSpan("superseded"),this.startupSpan=this.createPlaybackSpan("video.playback.startup","video.startup",{video_play_request_origin:e}),this.logPlaybackTelemetry("play_requested",{...this.getPlaybackStateSnapshot(),video_play_request_origin:e,video_play_request_trusted:!(!t?.isOriginTrusted&&!t?.trigger?.isTrusted)}),this.schedulePlaybackHealthCheck()},onMediaPlayRequest(e){this.beginPlaybackRequest("vidstack-request",e)},onMediaPauseRequest(){const e=this.playbackRequestPending,t=Date.now();this.finishStartupWaiting(t);const a=this.getStartupTelemetry(t);this.finishPlaybackBuffering(),this.abandonPendingTerminalRecovery("pause-requested"),this.recoveryInProgress&&this.finishRecoveryCycle("abandoned","pause-requested"),this.finishStartupSpan(e?"abandoned":"not-pending"),this.intentionalPauseRequested=!0,this.playbackRequestPending=!1,this.playbackRequested=!1,this.resumeAfterRecovery=!1,this.recoveryDeferralStartedAt=0,this.lastRecoveryDeferredAt=0,this.playbackFailure&&(this.playbackFailure.shouldResume=!1),clearTimeout(this.terminalRetryTimeout),this.terminalRetryTimeout=null,this.clearPlaybackRecoveryTimer(),this.logPlaybackTelemetry(e?"startup_abandoned":"pause_requested",{...this.getPlaybackStateSnapshot(),...a,video_startup_duration_ms:e&&this.playbackRequestStartedAt?Date.now()-this.playbackRequestStartedAt:void 0,video_startup_duration_bucket:e&&this.playbackRequestStartedAt?de(Date.now()-this.playbackRequestStartedAt,[100,250,500,1e3,2e3,3e3,5e3,8e3,15e3,3e4],"ms"):void 0})},getLiveLatencyObservation(){const e=this.getNativeVideoEl();if(!e)return null;const t=G({currentTime:e.currentTime,seekable:e.seekable,hlsLiveSyncPosition:this.hlsInstance?.liveSyncPosition});return t?{...t,seekableWindow:t.seekableEnd-t.seekableStart}:null},logLiveLatencyTelemetry(e=!1,t=null,a="periodic"){if(!this.playbackRequested&&!this.playbackSessionId)return;const i=Date.now();if(!e&&i-this.lastLiveTelemetryAt<3e4)return;const n=t||this.getLiveLatencyObservation();n&&(this.lastLiveTelemetryAt=i,this.startPlaybackTelemetry(),this.logPlaybackTelemetry("live_latency_sample",{video_live_latency_seconds:Number(n.latency.toFixed(3)),video_live_latency_bucket:de(n.latency,[20,30,40,60],"s"),video_live_sample_source:a,video_live_latency_in_range:n.inRange,video_live_latency_within_maximum:n.inRange,video_seekable_window_seconds:Number(n.seekableWindow.toFixed(3))}))},onPlay(){this.beginPlaybackRequest("native-play"),this.playbackRequested=!0,this.markPlaybackProgress(),this.$emit("playing",!0),this.$root.$emit("playerPlay",this.uniqueId),clearTimeout(this.statTimeout),this.$emit("update:statTimeout",setTimeout(()=>{this.$emit("sendViewStat")},5e3))},onPause(){const e=this.recoveryInProgress&&Date.now()<this.ignorePauseUntil,t=this.playbackRequestPending&&!this.intentionalPauseRequested,a=this.isPlaybackResilienceEnabled&&"undefined"!==typeof document&&"hidden"===document.visibilityState&&this.playbackRequested&&!this.intentionalPauseRequested,i=this.isPlaybackResilienceEnabled&&"undefined"!==typeof navigator&&!1===navigator.onLine&&this.playbackRequested&&!this.intentionalPauseRequested;a||i?(this.resumeAfterRecovery=!0,this.suspendPlaybackRecovery(i?"network-pause":"background-pause")):e||t?t&&this.schedulePlaybackHealthCheck():(this.finishPlaybackBuffering(),this.playbackRequested=!1,this.playbackRequestPending=!1,this.resumeAfterRecovery=!1,this.recoveryInProgress=!1,this.clearPlaybackRecoveryTimer()),this.intentionalPauseRequested=!1,clearTimeout(this.statTimeout),this.$emit("playing",!1),this.$emit("controlShow")},onTimeUpdate(){this.markPlaybackProgress()&&this.finishPlaybackBuffering(),this.enforceLiveLatency(!1,"time-update"),this.excerptMode||this.stopAtEndPosition(),this.canUpdatePosition&&(this.canUpdatePosition=!1,this.$emit("updatePosition",Math.floor(this.$refs.player.currentTime)),setTimeout(()=>this.canUpdatePosition=!0,1e3))},onHlsError(e){const t=e.detail||{};return this.lastHlsError={details:t.details||"unknown",fatal:!!t.fatal,status:t.response?.code||0,type:t.type||"unknown"},m.Z({category:"video.hls",level:t.fatal?"warning":"info",message:t.details||"HLS error",data:{fatal:!!t.fatal,status:t.response?.code||0,type:t.type||"unknown",videoId:this.video?.id||this.video?.uid}}),(t.fatal||["bufferNudgeOnStall","bufferStalledError"].includes(t.details))&&this.logPlaybackTelemetry("hls_error",{...this.getPlaybackStateSnapshot(),video_hls_details:t.details||"unknown",video_hls_fatal:!!t.fatal,video_hls_status:t.response?.code||0,video_hls_type:t.type||"unknown"},t.fatal?"warning":"info"),this.isPlaybackResilienceEnabled?t.fatal?t.type===g.Ay.ErrorTypes.MEDIA_ERROR?(this.lastMediaRecoveryAt=Date.now(),void this.schedulePlaybackHealthCheck()):void this.schedulePlaybackRecovery(`hls:${t.details||t.type}`,!1,!1):void 0:(e.preventDefault(),e.stopPropagation(),this.$emit("loading",!1),void(!["bufferNudgeOnStall","bufferStalledError"].includes(t.details)&&this.isLiveActive&&(this.$emit("update:hasMediaError",!0),clearTimeout(this.legacyRetryTimeout),this.legacyRetryTimeout=setTimeout(()=>{this.try++},2e3))))},onHlsInstance(e){this.hlsInstance=e.detail||null,this.lastHlsError=null},markNetworkProgress(e){const t=Date.now();this.lastNetworkProgressAt=t,this.lastNetworkProgressEvent=e,["hls-frag-loaded","native-progress"].includes(e)&&(this.lastMediaDataProgressAt=t,this.lastMediaDataProgressEvent=e),this.lastHlsError=null}
2,onHlsFragLoaded(){this.markNetworkProgress("hls-frag-loaded")},onHlsLevelLoaded(){this.markNetworkProgress("hls-level-loaded")},onHlsLevelUpdated(){this.deferLiveLatencyCorrection(!1,"hls-level-updated")},onHlsManifestLoaded(){this.markNetworkProgress("hls-manifest-loaded"),this.restorePlaybackAfterFailure("manifest-loaded"),this.$emit("update:mediaReady",!0),this.$emit("update:hasMediaError",!1),this.$emit("loading",!1),this.$nextTick(()=>{this.$refs.player?.textTracks.clear(),this.loadedCaptionKeys=[],this.loadChapters(),this.loadCaptions()}),this.isLivePlayback?this.isPlaybackResilienceEnabled||setTimeout(()=>this.$refs.player?.seekToLiveEdge(),500):this.excerptMode||(null!==this.pendingRecoveryPosition?this.seekTo(this.pendingRecoveryPosition):this.seekToStartPosition(this.forceStartPosition)),this.resumeRecoveredPlayback()},onLoadedMetadata(){this.attachIntrinsicSizeListener(),this.emitIntrinsicDimensions(),this.initializeMuxMonitoring()},emitIntrinsicDimensions(){const e=this.getNativeVideoEl();e&&this.notifyMediaDimensions(e.videoWidth,e.videoHeight)},getNativeVideoEl(){const e=this.$refs.player;return e&&"function"===typeof e.querySelector?e.querySelector("video"):null},getMuxVideoData(){return{env_key:"4h4jtmnh413d45pfjnc1lcoin",experiment_name:(0,T.L_)(this.playbackExperiment),player_init_time:this.playerInitializedAt,player_name:"Vidstack HLS Player",player_version:`${Ae}+hls-${g.Ay.version}`,video_id:String(this.video?.id||this.video?.uid||""),video_stream_type:this.isLivePlayback?"live":"on-demand",video_title:this.video?.title||"",view_session_id:this.videoViewId}},initializeMuxMonitoring(){if(this.isYoutube)return;const e=this.getNativeVideoEl();if(e&&e!==this.muxVideoEl){this.destroyMuxMonitoring();try{y().monitor(e,{debug:!1,data:this.getMuxVideoData()}),this.muxVideoEl=e,this.logPlaybackTelemetry("mux_monitor_initialized")}catch(t){this.logPlaybackTelemetry("mux_monitor_failed",{video_mux_error_name:t?.name||"Error",video_mux_error_message:t?.message||"Mux monitor failed"},"warning")}}},updateMuxVideoMetadata(){if(this.muxVideoEl)try{y().emit(this.muxVideoEl,"videochange",this.getMuxVideoData())}catch(e){this.destroyMuxMonitoring()}},emitMuxPlaybackError(e){if(this.muxVideoEl)try{y().emit(this.muxVideoEl,"error",{player_error_code:9001,player_error_message:`CrowdBunker recovery exhausted: ${e}`})}catch(t){}},destroyMuxMonitoring(){if(this.muxVideoEl){try{this.muxVideoEl.mux?.destroy()}catch(e){}this.muxVideoEl=null}},attachIntrinsicSizeListener(){const e=this.getNativeVideoEl();e&&e!==this.intrinsicVideoEl&&(this.detachIntrinsicSizeListener(),this.intrinsicVideoEl=e,e.addEventListener("resize",this.emitIntrinsicDimensions))},detachIntrinsicSizeListener(){this.intrinsicVideoEl&&(this.intrinsicVideoEl.removeEventListener("resize",this.emitIntrinsicDimensions),this.intrinsicVideoEl=null)},notifyMediaDimensions(e,t){e>0&&t>0&&(this.lastMediaWidth===e&&this.lastMediaHeight===t||(this.lastMediaWidth=e,this.lastMediaHeight=t,this.$emit("mediaDimensions",{width:e,height:t})))},onCanPlay(){this.restorePlaybackAfterFailure("can-play"),this.$emit("can-play"),this.resumeRecoveredPlayback(),!this.forceStartPosition||this.excerptMode||this.recoveryInProgress||setTimeout(()=>this.seekToStartPosition(!0),0)},abandonPendingTerminalRecovery(e){if(!this.pendingTerminalRecoveryStartedAt)return;const t=Math.max(0,Date.now()-this.pendingTerminalRecoveryStartedAt);this.logPlaybackTelemetry("terminal_recovery_abandoned",{...this.getPlaybackStateSnapshot(),video_previous_failure_reason:this.pendingTerminalRecoveryReason||"unknown",video_terminal_recovery_origin:this.pendingTerminalRecoveryOrigin||"unknown",video_terminal_recovery_abandon_trigger:e,video_terminal_recovery_duration_ms:t,video_terminal_retry_attempt:this.terminalRetryAttempts}),this.pendingTerminalRecoveryReason=null,this.pendingTerminalRecoveryOrigin=null,this.pendingTerminalRecoveryStartedAt=0},restorePlaybackAfterFailure(e){if(!this.playbackFailure)return;const{reason:t,shouldResume:a,terminal:i}=this.playbackFailure;i&&(this.pendingTerminalRecoveryReason=t,this.pendingTerminalRecoveryOrigin=e,this.pendingTerminalRecoveryStartedAt=Date.now()),clearTimeout(this.terminalRetryTimeout),this.terminalRetryTimeout=null,this.playbackFailure=null,this.$emit("loading",!1),this.$emit("update:hasMediaError",!1),this.logPlaybackTelemetry("source_ready_after_failure",{...this.getPlaybackStateSnapshot(),video_previous_failure_reason:t,video_failure_was_terminal:!!i,video_source_ready_trigger:e,video_recovery_confirmed:!1}),a&&(this.beginPlaybackRequest("source-restored"),this.recoveryInProgress=!0,this.resumeAfterRecovery=!0)},onEnded(){this.finishPlaybackBuffering(),this.abandonPendingTerminalRecovery("ended"),this.playbackRequested=!1,this.playbackRequestPending=!1,this.finishRecoveryCycle("abandoned","ended"),this.finishStartupSpan("ended"),this.clearPlaybackRecoveryTimer(),this.endPlaybackTelemetry("ended"),this.$emit("playing",!1),this.$emit("ended")},onError(e){const t=this.getNativeVideoEl(),a=t?.error,i=a?.code||0,n=!!(this.playbackRequested||this.playbackRequestPending||this.resumeAfterRecovery||this.playbackFailure?.shouldResume),r=ie({hasPlaybackIntent:n,mediaErrorCode:i}
2);if(this.logPlaybackTelemetry("media_error",{...this.getPlaybackStateSnapshot(t),video_media_error_code:e.detail?.code||i,video_media_error_message:e.detail?.message||a?.message||"Media error",video_media_error_native_confirmed:!!i,video_media_error_recovery_mode:r,video_playback_intent:n},"warning"),this.isPlaybackResilienceEnabled&&!r.startsWith("ignore-")){if("recover-decoder"===r&&this.hlsInstance&&Date.now()-this.lastMediaRecoveryAt>=5e3)return this.lastMediaRecoveryAt=Date.now(),this.hlsInstance.recoverMediaError(),this.logPlaybackTelemetry("media_decoder_recovery_started",{...this.getPlaybackStateSnapshot(t),video_media_error_code:i}),void this.schedulePlaybackHealthCheck();m.Z({category:"video.error",level:"warning",message:e.detail?.message||a?.message||"Media error",data:{code:e.detail?.code||a?.code||0,videoId:this.video?.id||this.video?.uid}}),this.schedulePlaybackHealthCheck(!0)}},onAutoPlayFail(e){this.finishStartupWaiting(),this.logPlaybackTelemetry("autoplay_failed",{...this.getPlaybackStateSnapshot(),...this.getStartupTelemetry(),video_play_error_name:e?.detail?.name||e?.name||"Error",video_play_error_message:e?.detail?.message||e?.message||"Autoplay failed"},"warning"),this.playbackRequestPending=!1,this.playbackRequested=!1,this.finishStartupSpan("autoplay-failed"),this.$emit("loading",!1),this.$emit("autoplay-fail",e)},onPlaybackStarted(){const e=Date.now();this.finishStartupWaiting(e),this.playAttemptSequence++,this.playAttemptPromise=null,this.playAttemptStartedAt=0;const t=this.playbackRequestStartedAt?Math.max(0,e-this.playbackRequestStartedAt):void 0;if(this.playbackRequestPending&&this.logPlaybackTelemetry("startup_succeeded",{...this.getPlaybackStateSnapshot(),...this.getStartupTelemetry(e),video_play_request_origin:this.playbackRequestOrigin,video_startup_duration_ms:t,video_startup_duration_bucket:de(t,[100,250,500,1e3,2e3,3e3,5e3,8e3,15e3,3e4],"ms")}),this.finishStartupSpan("succeeded"),this.finishPlaybackBuffering(e),this.pendingTerminalRecoveryStartedAt){const t=Math.max(0,e-this.pendingTerminalRecoveryStartedAt);this.logPlaybackTelemetry("terminal_recovery_succeeded",{...this.getPlaybackStateSnapshot(),video_previous_failure_reason:this.pendingTerminalRecoveryReason||"unknown",video_terminal_recovery_origin:this.pendingTerminalRecoveryOrigin||"unknown",video_terminal_recovery_duration_ms:t,video_terminal_recovery_duration_bucket:de(t,[1e3,3e3,8e3,15e3,3e4,6e4,12e4,3e5],"ms"),video_terminal_retry_attempt:this.terminalRetryAttempts}),this.pendingTerminalRecoveryReason=null,this.pendingTerminalRecoveryOrigin=null,this.pendingTerminalRecoveryStartedAt=0}this.startPlaybackTelemetry(),this.playbackStallStartedAt&&(this.logPlaybackTelemetry("playback_resumed",{...this.getPlaybackStateSnapshot(),video_recovered_automatically:this.isPlaybackResilienceEnabled&&this.recoveryAttempts>0,video_resume_delay_ms:Math.max(0,Date.now()-this.playbackStallStartedAt),video_resume_delay_bucket:de(Date.now()-this.playbackStallStartedAt,[250,500,1e3,2e3,3e3,5e3,8e3,15e3,3e4,6e4],"ms")}),this.playbackStallStartedAt=0),this.finishRecoveryCycle("recovered","playing"),this.playbackRequested=!0,this.playbackRequestPending=!1,this.playbackRequestOrigin=null,this.playbackRequestStartedAt=0,this.recoveryInProgress=!1,this.playbackFailure=null,this.offlineTelemetrySent=!1,this.pendingRecoveryPosition=null,this.resumeAfterRecovery=!1,this.clearPlaybackRecoveryTimer(),this.$emit("loading",!1),this.$emit("update:hasMediaError",!1),this.markPlaybackProgress(!0),clearTimeout(this.stablePlaybackTimeout),this.stablePlaybackTimeout=setTimeout(()=>{this.recoveryAttempts=0,this.hlsRestartAttempts=0,this.firstRecoveryAttemptAt=0,this.recoverySuspendedAt=0,this.recoverySuspendedDurationMs=0,this.recoverySuspensionReason=null,this.recoveryTelemetrySent=!1,this.recoveryExhaustionCaptured=!1,this.terminalRetryAttempts=0,this.lastRecoveryAction=null},3e4),this.isLivePlayback&&this.enforceLiveLatency(!0,"playing")}
2,onPlaybackWaiting(){this.isYoutube||(this.lastPlaybackWaitingAt=Date.now(),clearTimeout(this.stablePlaybackTimeout),this.playbackRequestPending?this.startStartupWaiting(this.lastPlaybackWaitingAt):this.scheduleBufferingTelemetry(),this.schedulePlaybackHealthCheck())},onPlaybackStalled(){this.isYoutube||(this.lastPlaybackStalledAt=Date.now(),clearTimeout(this.stablePlaybackTimeout),this.schedulePlaybackHealthCheck(!0))},onPlaybackProgress(){const e=this.getNativeVideoEl();if(e?.buffered?.length)try{const t=Number(e.buffered.end(e.buffered.length-1));Number.isFinite(t)&&t>this.lastBufferedEnd+.05&&(this.lastBufferedEnd=t,this.markNetworkProgress("native-progress"))}catch(t){}this.recoveryInProgress&&this.resumeRecoveredPlayback()},onSeeking(){this.playbackSeeking=!0,this.clearPlaybackRecoveryTimer()},onSeeked(){this.playbackSeeking=!1,this.markPlaybackProgress(!0),this.playbackRequested&&this.schedulePlaybackHealthCheck()},markPlaybackProgress(e=!1){const t=this.getNativeVideoEl(),a=Number(t?.currentTime);return!!Number.isFinite(a)&&(!!(e||null===this.lastPlaybackTime||Math.abs(a-this.lastPlaybackTime)>=.1)&&(this.lastPlaybackTime=a,this.lastPlaybackProgressAt=Date.now(),this.lastPlaybackWaitingAt=0,this.lastPlaybackStalledAt=0,this.recoveryDeferralStartedAt=0,this.lastRecoveryDeferredAt=0,!0))},schedulePlaybackHealthCheck(e=!1){if(!this.playbackRequested||this.isYoutube||this.isPlaybackRecoverySuspended())return;if(this.playbackHealthTimeout){if(!e)return;clearTimeout(this.playbackHealthTimeout)}const t=this.getPlaybackRecoveryThreshold(),a=Math.max(this.lastPlaybackProgressAt,this.recoveryInProgress?this.lastRecoveryAt:0),i=Date.now()-a,n=e?Math.min(1e3,Math.max(250,t-i)):Math.max(250,t-i);this.playbackHealthTimeout=setTimeout(()=>{this.playbackHealthTimeout=null,this.watchPlaybackHealth()},n)},getPlaybackRecoveryThreshold(){return this.playbackRequestPending?8e3:this.isLivePlayback?1e4:12e3},isPlaybackRecoverySuspended(){return"undefined"!==typeof document&&"hidden"===document.visibilityState||"undefined"!==typeof navigator&&!1===navigator.onLine},suspendPlaybackRecovery(e){this.isPlaybackResilienceEnabled&&!this.recoverySuspendedAt&&(this.recoverySuspendedAt=Date.now(),this.recoverySuspensionReason=e,this.clearPlaybackRecoveryTimer(),this.logPlaybackTelemetry("recovery_suspended",{...this.getPlaybackStateSnapshot(),video_recovery_reason:e}))},resumePlaybackRecovery(e){if(this.isPlaybackRecoverySuspended())return;const t=Date.now();if(this.recoverySuspendedAt){const a=Math.max(0,t-this.recoverySuspendedAt);this.recoverySuspendedDurationMs+=a,this.logPlaybackTelemetry("recovery_resumed",{...this.getPlaybackStateSnapshot(),video_recovery_resume_trigger:e,video_recovery_suspended_duration_ms:a,video_recovery_suspended_duration_bucket:de(a,[1e3,1e4,6e4,3e5],"ms")}),this.recoverySuspendedAt=0,this.recoverySuspensionReason=null}if(this.playbackFailure?.terminal)this.scheduleTerminalRecoveryRetry(!0);else{if(this.playbackFailure&&!this.playbackFailure.terminal){const e=this.getNativeVideoEl(),t=this.playbackFailure.shouldResume;this.playbackFailure=null,t&&(this.playbackRequested=!0,this.resumeAfterRecovery=!0),this.$emit("loading",!!this.playbackRequested&&(!e||e.paused||e.readyState<3)),this.$emit("update:hasMediaError",!1)}if(this.playbackRequested){const t=this.getNativeVideoEl();this.resumeAfterRecovery&&t?.paused&&t.readyState>=1&&(this.recoveryInProgress=!0,this.playNative(`recovery-${e}`)),this.schedulePlaybackHealthCheck(!0)}}},watchPlaybackHealth(){const e=this.getNativeVideoEl();if(this.isYoutube)return;if(this.isPlaybackRecoverySuspended())return void this.suspendPlaybackRecovery("undefined"!==typeof navigator&&!1===navigator.onLine?"offline":"hidden");const t=this.getPlaybackRecoveryThreshold();if(!e)return void(this.playbackRequested&&Date.now()-this.lastPlaybackProgressAt>=t&&(this.ensurePlaybackSession(),this.logPlaybackTelemetry("startup_stall_detected",{...this.getPlaybackStateSnapshot(),video_failure_reason:"missing-video-element",video_stall_duration_ms:Date.now()-this.lastPlaybackProgressAt},"warning"),this.schedulePlaybackRecovery("missing-video-element",!0)));const a=he({playbackRequested:this.playbackRequested,startupPending:this.playbackRequestPending,paused:e.paused,ended:e.ended,seeking:this.playbackSeeking||e.seeking,hidden:"hidden"===document.visibilityState,readyState:e.readyState,lastProgressAt:Math.max(this.lastPlaybackProgressAt,this.recoveryInProgress?this.lastRecoveryAt:0),now:Date.now(),thresholdMs:t});if(a){if(this.logPlaybackStall(e,t),!this.isPlaybackResilienceEnabled)return;const a=oe(this.lastMediaDataProgressAt,Date.now()),i=Date.now(),n=!(!this.recoveryDeferralStartedAt||se({deferralStartedAt:this.recoveryDeferralStartedAt,now:i}));if(re({hlsFatal:!!this.lastHlsError?.fatal,lastMediaDataProgressEvent:this.lastMediaDataProgressEvent,mediaDataProgressRecent:a,readyState:e.readyState,startupPending:this.playbackRequestPending})){this.recoveryDeferralStartedAt||(this.recoveryDeferralStartedAt=i);const t=i-this.recoveryDeferralStartedAt,a=se({deferralStartedAt:this.recoveryDeferralStartedAt,now:i});if(i-this.lastRecoveryDeferredAt>=5e3&&(this.lastRecoveryDeferredAt=i,this.logPlaybackTelemetry("recovery_candidate_deferred",{...this.getPlaybackStateSnapshot(e),video_recovery_deferral_duration_ms:t,video_recovery_deferral_limit_ms:12e3,video_recovery_evidence:"media-data-progress",video_recovery_reason:"playback-watchdog"})),a)return clearTimeout(this.playbackHealthTimeout),void(this.playbackHealthTimeout=setTimeout(()=>{this.playbackHealthTimeout=null,this.watchPlaybackHealth()},1e3));this.logPlaybackTelemetry("recovery_candidate_deferral_exhausted",{...this.getPlaybackStateSnapshot(e),video_recovery_deferral_duration_ms:t,video_recovery_deferral_limit_ms:12e3,video_recovery_evidence:"media-data-progress",video_recovery_reason:"playback-watchdog"},"warning")}this.schedulePlaybackRecovery("playback-watchdog",this.recoveryAttempts<2,!1,n)}},getPlaybackRecoveryExhaustionReason(e=Date.now()){return te({attempts:this.recoveryAttempts,firstAttemptAt:this.firstRecoveryAttemptAt,now:e,hlsStatus:this.lastHlsError?.status,isLive:this.isLivePlayback,suspendedDurationMs:this.recoverySuspendedDurationMs,suspensionStartedAt:this.recoverySuspendedAt})},schedulePlaybackRecovery(e,t=!1,a=!1,i=!1){if(!this.isPlaybackResilienceEnabled||this.isYoutube||this.playbackFailure?.terminal)return;if(!ne(this))return void this.logPlaybackTelemetry("recovery_ignored_no_playback_intent",{...this.getPlaybackStateSnapshot(),video_recovery_reason:e});if(this.recoveryActionTimeout){if(!a)return;clearTimeout(this.recoveryActionTimeout),this.recoveryActionTimeout=null}if(this.isPlaybackRecoverySuspended()){const t="undefined"!==typeof navigator&&!1===navigator.onLine;return this.playbackFailure={reason:t?"offline":"suspended",shouldResume:this.playbackRequested,terminal:!1},this.$emit("loading",!1),this.suspendPlaybackRecovery(this.playbackFailure.reason),void(t&&!this.offlineTelemetrySent&&(this.offlineTelemetrySent=!0,this.logPlaybackTelemetry("recovery_deferred_offline",{...this.getPlaybackStateSnapshot(),video_recovery_reason:e},"warning")))}const n=this.getPlaybackRecoveryExhaustionReason();if(n)return void this.failPlaybackRecovery(n,e);const r=t?0:X(this.recoveryAttempts);this.logPlaybackTelemetry("recovery_candidate_confirmed",{...this.getPlaybackStateSnapshot(),video_recovery_immediate:t,video_recovery_network_progress_bypassed:i,video_recovery_reason:e});const s=this.lastPlaybackProgressAt,o=this.lastMediaDataProgressAt;clearTimeout(this.playbackHealthTimeout),this.playbackHealthTimeout=null,this.recoveryActionTimeout=setTimeout(()=>{if(this.recoveryActionTimeout=null,!a&&(this.lastPlaybackProgressAt>s||!i&&this.lastMediaDataProgressAt>o&&["hls-frag-loaded","native-progress"].includes(this.lastMediaDataProgressEvent)))return this.logPlaybackTelemetry("recovery_cancelled_progress",{...this.getPlaybackStateSnapshot(),video_recovery_reason:e,video_recovery_progress_type:this.lastPlaybackProgressAt>s?"playhead":"network"}),this.finishRecoveryCycle("progress-observed",e),void this.schedulePlaybackHealthCheck();this.recoverPlayback(e,a,i)},r)},recoverPlayback(e,t=!1,a=!1){const i=this.getNativeVideoEl();if(!this.isPlaybackResilienceEnabled||!this.src||this.isYoutube||!ne(this))return;if(this.isPlaybackRecoverySuspended())return void this.suspendPlaybackRecovery("undefined"!==typeof navigator&&!1===navigator.onLine?"offline":"hidden");const n=Date.now();if(n-this.lastRecoveryAt<1e3)return void this.schedulePlaybackRecovery(e,!1,t,a);this.recoveryDeferralStartedAt=0,this.lastRecoveryDeferredAt=0;const r=this.getPlaybackRecoveryExhaustionReason(n);if(r)return void this.failPlaybackRecovery(r,e);this.firstRecoveryAttemptAt||(this.firstRecoveryAttemptAt=n,this.recoverySuspendedDurationMs=0),this.startRecoveryCycle(e),this.lastRecoveryAt=n,this.recoveryInProgress=!0,this.playbackFailure=null,this.resumeAfterRecovery=this.playbackRequested||!i?.paused;const s={attempt:this.recoveryAttempts+1,currentTime:Number((i?.currentTime||0).toFixed(3)),hlsDetails:this.lastHlsError?.details,hlsStatus:this.lastHlsError?.status,isLive:this.isLivePlayback,networkState:i?.networkState,readyState:i?.readyState,reason:e,forced:t,videoId:this.video?.id||this.video?.uid},o=i?j(i.buffered,i.currentTime):null,l=ge(i?.error),u=oe(this.lastNetworkProgressAt,n),c=ae({attempt:this.recoveryAttempts,bufferedRecoveryPosition:o,hasHls:!!this.hlsInstance,hlsFatal:!!this.lastHlsError?.fatal,hlsLoading:!1!==this.hlsInstance?.loadingEnabled,hlsRestartAttempts:this.hlsRestartAttempts,hlsStatus:this.lastHlsError?.status,networkProgressRecent:u,paused:!(t&&!l)&&!!i?.paused,readyState:i?.readyState||0,mediaDecodeError:l});return this.lastRecoveryAction=c,m.Z({category:"video.recovery",level:"warning",message:e,data:{...s,action:c}}),this.logPlaybackTelemetry("recovery_attempted",{...this.getPlaybackStateSnapshot(i),video_hls_details:s.hlsDetails||"",video_hls_status:s.hlsStatus||0,video_network_progress_recent:u,video_recovery_action:c,video_recovery_active_duration_ms:ee({firstAttemptAt:this.firstRecoveryAttemptAt,now:n,suspendedDurationMs:this.recoverySuspendedDurationMs}),video_recovery_reason:e},"warning"),this.recoveryAttempts++,this.playbackRequestPending&&(this.startupRecoveryAttempts++,this.startupRecoveryActions.includes(c)||this.startupRecoveryActions.push(c)),null!==o?(i.currentTime=o,this.playNative("recovery-buffer-gap"),void this.schedulePlaybackHealthCheck()):"native-play"===c?(this.playNative("recovery-buffered-media"),void this.schedulePlaybackHealthCheck()):"media-recover"===c?(this.lastMediaRecoveryAt=n,this.hlsInstance.recoverMediaError(),void this.schedulePlaybackHealthCheck()):"hls-restart"===c?(this.hlsRestartAttempts++,this.hlsInstance.stopLoad(),this.hlsInstance.startLoad(-1,!0),this.playNative("recovery-hls-restart"),void this.schedulePlaybackHealthCheck()):(this.playbackRequestPending&&this.recoveryAttempts>=3&&!this.recoveryPreferencesReset&&this.resetPlaybackPreferencesForRecovery(),this.pendingRecoveryPosition=this.isLivePlayback?null:ue(i?.currentTime,i?.duration),this.ignorePauseUntil=n+1500,this.playAttemptSequence++,this.playAttemptPromise=null,this.playAttemptStartedAt=0,this.try++,this.recoveryAttempts>=3&&!this.recoveryTelemetrySent&&(this.recoveryTelemetrySent=!0,this.logPlaybackTelemetry("recovery_repeated",{...this.getPlaybackStateSnapshot(i),video_recovery_reason:e},"warning")),void this.schedulePlaybackHealthCheck())},resetPlaybackPreferencesForRecovery(){this.recoveryPreferencesReset=!0;const e=me();try{this.$refs.player&&(this.$refs.player.playbackRate=1,this.$refs.player.qualities?.autoSelect?.()),this.hlsInstance&&(this.hlsInstance.currentLevel=-1,this.hlsInstance.nextLevel=-1)}catch(t){}this.logPlaybackTelemetry("recovery_preferences_reset",{...this.getPlaybackStateSnapshot(),video_preference_recovery_fields:e.fields.join(","),video_preference_recovery_reason:e.reason})},failPlaybackRecovery(e,t){if(this.playbackFailure?.terminal)return;const a=this.getNativeVideoEl(),i=this.playbackRequested||this.resumeAfterRecovery,n=this.playbackRequestPending,r=this.pendingTerminalRecoveryStartedAt?Math.max(0,Date.now()-this.pendingTerminalRecoveryStartedAt):void 0,s=this.terminalRetryAttempts?Q(this.terminalRetryAttempts):void 0;this.clearPlaybackRecoveryTimer(),this.playbackRequested=!1,this.playbackRequestPending=!1,this.recoveryInProgress=!1,this.resumeAfterRecovery=!1,this.playbackFailure={reason:e,shouldResume:i,terminal:!0},clearTimeout(this.statTimeout),this.$emit("update:statTimeout",null),this.$emit("playing",!1),this.$emit("loading",!1),this.$emit("update:hasMediaError",!0),this.logPlaybackTelemetry("recovery_exhausted",{...this.getPlaybackStateSnapshot(a),...n?this.get
2StartupTelemetry():{},video_failure_reason:e,video_hls_details:this.lastHlsError?.details||"",video_hls_status:this.lastHlsError?.status||0,video_recovery_trigger:t,video_terminal_recovery_duration_ms:r,video_terminal_retry_attempt:this.terminalRetryAttempts,video_terminal_retry_mode:s,video_recovery_active_duration_ms:ee({firstAttemptAt:this.firstRecoveryAttemptAt,now:Date.now(),suspendedDurationMs:this.recoverySuspendedDurationMs,suspensionStartedAt:this.recoverySuspendedAt})},"warning"),this.pendingTerminalRecoveryStartedAt&&this.logPlaybackTelemetry("terminal_recovery_failed",{...this.getPlaybackStateSnapshot(a),video_previous_failure_reason:this.pendingTerminalRecoveryReason||"unknown",video_terminal_recovery_origin:this.pendingTerminalRecoveryOrigin||"unknown",video_terminal_recovery_duration_ms:r,video_terminal_retry_attempt:this.terminalRetryAttempts,video_terminal_retry_mode:s},"warning"),this.pendingTerminalRecoveryReason=null,this.pendingTerminalRecoveryOrigin=null,this.pendingTerminalRecoveryStartedAt=0,this.finishRecoveryCycle("exhausted",t),n&&this.finishStartupSpan("recovery-exhausted"),this.emitMuxPlaybackError(e),this.recoveryExhaustionCaptured||(this.recoveryExhaustionCaptured=!0,b.wd("Video playback recovery exhausted",{level:"warning",tags:{videoPlayback:"recovery-exhausted",videoPlaybackExperiment:this.playbackExperiment.experimentId,videoPlaybackVariant:this.playbackExperiment.variant,videoStreamType:this.isLivePlayback?"live":"vod"},extra:{...this.getPlaybackStateSnapshot(a),failureReason:e,recoveryAttempts:this.recoveryAttempts,trigger:t,videoId:this.video?.id||this.video?.uid,videoViewId:this.videoViewId}})),this.scheduleTerminalRecoveryRetry()},scheduleTerminalRecoveryRetry(e=!1){if(!this.playbackFailure?.terminal||!this.playbackFailure.shouldResume||this.finished||this.terminalRetryTimeout||this.isPlaybackRecoverySuspended())return;const t=e?0:Z(this.terminalRetryAttempts,this.isLivePlayback),a=this.terminalRetryAttempts+1;this.logPlaybackTelemetry("terminal_retry_scheduled",{...this.getPlaybackStateSnapshot(),video_terminal_retry_attempt:a,video_terminal_retry_delay_ms:t,video_terminal_retry_delay_bucket:de(t,[15e3,3e4,6e4,12e4,3e5],"ms"),video_terminal_retry_mode:Q(a)}),this.terminalRetryTimeout=setTimeout(()=>{this.terminalRetryTimeout=null,this.playbackFailure?.terminal&&this.retryFailedPlayback(this.isLivePlayback?"automatic-live-retr
2y":"automatic-vod-retry")},t)},retryFailedPlayback(e="manual-retry"){const t=e.startsWith("automatic-");if(this.isPlaybackRecoverySuspended())return void this.suspendPlaybackRecovery("undefined"!==typeof navigator&&!1===navigator.onLine?"offline":"hidden");const a=this.playbackFailure?.reason||"unknown",i="manual-retry"===e||!!this.playbackFailure?.shouldResume;clearTimeout(this.terminalRetryTimeout),this.terminalRetryTimeout=null,this.playbackFailure=null,t?this.terminalRetryAttempts++:this.terminalRetryAttempts=0;const n=t?Q(this.terminalRetryAttempts):"manual";this.recoveryAttempts="single-source-probe"===n?5:0,this.hlsRestartAttempts=0,this.firstRecoveryAttemptAt="single-source-probe"===n?Date.now():0,this.recoverySuspendedAt=0,this.recoverySuspendedDurationMs=0,this.recoverySuspensionReason=null,this.recoveryTelemetrySent=!1,this.lastHlsError=null,this.lastRecoveryAction=null,this.pendingTerminalRecoveryReason=a,this.pendingTerminalRecoveryOrigin=e,this.pendingTerminalRecoveryStartedAt=Date.now(),this.pendingRecoveryPosition=this.isLivePlayback?null:ue(this.getNativeVideoEl()?.currentTime,this.getNativeVideoEl()?.duration),this.$emit("loading",!0),this.$emit("update:hasMediaError",!1),i&&this.beginPlaybackRequest(e),this.logPlaybackTelemetry(t?"automatic_retry_requested":"manual_retry_requested",{...this.getPlaybackStateSnapshot(),video_previous_failure_reason:a,video_terminal_retry_attempt:this.terminalRetryAttempts,video_terminal_retry_mode:n}),this.recoveryInProgress=i,this.resumeAfterRecovery=i,this.ignorePauseUntil=Date.now()+1500,this.try++,i&&this.schedulePlaybackHealthCheck()},resumeRecoveredPlayback(){if(!this.recoveryInProgress)return;const e=this.getNativeVideoEl();!e||e.readyState<1||(this.isLivePlayback||null===this.pendingRecoveryPosition||this.seekTo(this.pendingRecoveryPosition),this.resumeAfterRecovery&&this.$nextTick(()=>this.playNative()))},clearPlaybackRecoveryTimer(){clearTimeout(this.playbackHealthTimeout),clearTimeout(this.recoveryActionTimeout),this.playbackHealthTimeout=null,this.recoveryActionTimeout=null},applyLiveLatencyCorrection(e,t,a,i=0){const n=this.getNativeVideoEl();if(!n)return!1;const r=Date.now(),s=Number(n.currentTime),o=this.liveOutOfRangeSince?Math.max(0,r-this.liveOutOfRangeSince):0,l=this.liveOutOfRangeObservationCount;if(this.liveLatencyCorrectionPending)return!1;this.logPlaybackTelemetry("live_latency_out_of_range_detected",{video_live_correction_phase:t,video_live_correction_trigger:a,video_live_out_of_range_duration_ms:o,video_live_out_of_range_observation_count:l,video_live_latency_seconds:Number(e.latency.toFixed(3)),video_live_latency_bucket:de(e.latency,[20,30,40,60],"s")});try{n.currentTime=e.targetTime}catch(u){return this.logPlaybackTelemetry("live_latency_correction_failed",{video_live_correction_phase:t,video_live_correction_trigger:a,video_live_correction_error_name:u?.name||"Error"},"warning"),!1}return this.lastLiveCorrectionAt=r,this.liveOutOfRangeSince=0,this.liveOutOfRangeObservationCount=0,this.liveLatencyCorrectionPending=!0,this.lastPlaybackProgressAt=r,"initial"===t&&(this.liveInitialPositionApplied=!0),m.Z({category:"video.live-latency",level:"info",message:"initial"===t?"Applied initial live position":"Corrected live latency",data:{fromLatency:Number(e.latency.toFixed(2)),targetTime:Number(e.targetTime.toFixed(2)),trigger:a,videoId:this.video?.id||this.video?.uid}}),this.logPlaybackTelemetry("initial"===t?"live_initial_position_applied":"live_latency_corrected",{video_live_correction_phase:t,video_live_correction_trigger:a,video_live_out_of_range_duration_ms:o,video_live_out_of_range_observation_count:l,video_live_latency_seconds:Number(e.latency.toFixed(3)),video_live_position_delta_seconds:Number(Math.abs(e.targetTime-s).toFixed(3)),video_live_position_delta_bucket:de(Math.abs(e.targetTime-s),[1,5,20,60,180],"s"),video_live_target_time:Number(e.targetTime.toFixed(3))}),this.scheduleLiveLatencyVerification({appliedAt:r,phase:t,previousLatency:e.latency,trigger:a,verificationAttempt:i}),"initial"!==t&&this.playbackRequested&&n.paused&&this.playNative("live-latency-correction"),!0},scheduleLiveLatencyVerification({appliedAt:e,phase:t,previousLatency:a,trigger:i,verificationAttempt:n}){clearTimeout(this.liveLatencyVerificationTimeout),this.liveLatencyVerificationTimeout=setTimeout(()=>{this.liveLatencyVerificationTimeout=null,this.liveLatencyCorrectionPending=!1;const r=this.getLiveLatencyObservation();if(!r)return void this.logPlaybackTelemetry("live_latency_correction_unverified",{video_live_correction_phase:t,video_live_correction_trigger:i,video_live_verification_reason:"seekable-unavailable"},"warning");const s=Math.max(0,Date.now()-e);this.logPlaybackTelemetry("live_latency_correction_verified",{video_live_correction_phase:t,video_live_correction_trigger:i,video_live_latency_before_seconds:Number(a.toFixed(3)),video_live_latency_seconds:Number(r.latency.toFixed(3)),video_live_latency_bucket:
2de(r.latency,[20,30,40,60],"s"),video_live_latency_in_range:r.inRange,video_live_latency_within_maximum:r.inRange,video_live_verification_attempt:n+1,video_live_verification_delay_ms:s,video_live_verification_delay_bucket:de(s,[250,500,1e3,2e3],"ms")},r.inRange?"info":"warning"),this.logLiveLatencyTelemetry(!0,r,"post-correction"),!r.inRange&&n<1&&this.playbackRequested&&this.enforceLiveLatency(!0,"verification-retry",n+1)},750)},cancelLiveLatencyVerification(e){const t=this.liveLatencyCorrectionPending;clearTimeout(this.liveLatencyVerificationTimeout),this.liveLatencyVerificationTimeout=null,this.liveLatencyCorrectionPending=!1,t&&this.logPlaybackTelemetry("live_latency_correction_unverified",{video_live_verification_reason:e},"warning")},deferLiveLatencyCorrection(e=!1,t="deferred"){this.liveLatencyCorrectionForced=this.liveLatencyCorrectionForced||e,this.liveLatencyCorrectionTrigger=t,this.liveLatencyCorrectionTimeout||(this.liveLatencyCorrectionTimeout=setTimeout(()=>{this.liveLatencyCorrectionTimeout=null;const e=this.liveLatencyCorrectionForced,t=this.liveLatencyCorrectionTrigger;this.liveLatencyCorrectionForced=!1,this.liveLatencyCorrectionTrigger=null,this.enforceLiveLatency(e,t)},0))},enforceLiveLatency(e=!1,t="watchdog",a=0){if(!this.isLivePlayback||this.playbackSeeking||this.liveLatencyCorrectionPending)return;const i=this.getLiveLatencyObservation();if(!i)return;if(!this.isPlaybackResilienceEnabled)return void this.logLiveLatencyTelemetry(!!e,i,t);const n=Date.now();if(i.inRange)return this.liveOutOfRangeSince&&this.logPlaybackTelemetry("live_latency_self_corrected",{video_live_correction_trigger:t,video_live_latency_seconds:Number(i.latency.toFixed(3)),video_live_out_of_range_duration_ms:Math.max(0,n-this.liveOutOfRangeSince),video_live_out_of_range_observation_count:this.liveOutOfRangeObservationCount}),this.liveOutOfRangeSince=0,this.liveOutOfRangeObservationCount=0,this.liveInitialPositionApplied=!0,void this.logLiveLatencyTelemetry(!!e,i,t);const r=this.getNativeVideoEl();if(!r||!this.playbackRequested||this.playbackRequestPending||r.paused||r.ended)return this.liveOutOfRangeSince=0,this.liveOutOfRangeObservationCount=0,void this.logLiveLatencyTelemetry(!!e,i,t);if(!this.liveOutOfRangeSince)return this.liveOutOfRangeSince=n,this.liveOutOfRangeObservationCount=1,this.logPlaybackTelemetry("live_latency_out_of_range_observed",{video_live_correction_trigger:t,video_live_latency_seconds:Number(i.latency.toFixed(3)),video_live_latency_bucket:de(i.latency,[20,30,40,60],"s")}),void this.logLiveLatencyTelemetry(!!e,i,t);if(this.liveOutOfRangeObservationCount++,!J({latency:i.latency,outOfRangeSince:this.liveOutOfRangeSince,now:n,lastCorrectionAt:this.lastLiveCorrectionAt}))return;const s=Y({currentTime:r.currentTime,seekable:r.seekable,hlsLatency:this.hlsInstance?.latency,hlsLiveSyncPosition:this.hlsInstance?.liveSyncPosition});s?this.applyLiveLatencyCorrection(s,this.liveInitialPositionApplied?"playback":"initial",t,a):this.logLiveLatencyTelemetry(!!e,i,t)},pause(){const e=this.$refs.player;if(!e||!this.mediaReady)return;this.intentionalPauseRequested=!0,this.playbackRequestPending=!1,this.playbackRequested=!1,this.resumeAfterRecovery=!1,this.playbackFailure&&(this.playbackFailure.shouldResume=!1),clearTimeout(this.terminalRetryTimeout),this.terminalRetryTimeout=null;const t=e.pause();t&&"function"===typeof t.catch&&t.catch(e=>{"[vidstack] media not ready"!==e?.message&&console.warn("pause failed",e)})},play(){if(this.$refs.player)return this.beginPlaybackRequest("component-api"),this.runPlayAttempt(()=>this.$refs.player.play(),"component-api")},runPlayAttempt(e,t){if(this.playAttemptPromise){if(Date.now()-this.playAttemptStartedAt<2e3)return this.logPlaybackTelemetry("play_request_coalesced",{...this.getPlaybackStateSnapshot(),video_play_request_origin:t}),this.playAttemptPromise;this.playAttemptSequence++,this.playAttemptPromise=null,this.playAttemptStartedAt=0,this.logPlaybackTelemetry("play_request_stale_replaced",{...this.getPlaybackStateSnapshot(),video_play_request_origin:t})}const a=++this.playAttemptSequence;let i;try{i=e()}catch(n){return this.handlePlayFailure(n,t),null}return i&&"function"===typeof i.then?(this.playAttemptPromise=i,this.playAttemptStartedAt=Date.now(),i.then(()=>{this.playAttemptSequence===a&&(this.playAttemptPromise=null,this.playAttemptStartedAt=0)},e=>{this.playAttemptSequence===a&&(this.playAttemptPromise=null,this.playAttemptStartedAt=0,this.handlePlayFailure(e,t))}),i):null},handlePlayFailure(e,t){const a=e?.name||"Error",i=ce(e);if(this.logPlaybackTelemetry(`play_request_${i}`,{...this.getPlaybackStateSnapshot(),video_play_error_message:e?.message||"Playback request failed",video_play_error_name:a,video_play_outcome:i,video_play_request_origin:t},"failed"===i?"warning":"info"),"blocked"===i)return this.finishStartupSpan("blocked"),this.playbackRequestPending=!1,this.playbackRequested=!1,void this.$emit("loading",!1);
2"interrupted"!==i?this.playbackRequested&&this.isPlaybackResilienceEnabled?this.schedulePlaybackRecovery(`play-promise:${a}`,!0):this.finishStartupSpan("failed"):this.playbackRequested&&this.isPlaybackResilienceEnabled&&this.schedulePlaybackHealthCheck(!0)},enterFullscreen(){return this.$refs.player?this.$refs.player.enterFullscreen():Promise.resolve()},exitFullscreen(){return this.$refs.player?this.$refs.player.exitFullscreen():Promise.resolve()},isFullscreen(){return!!this.$refs.player?.state?.fullscreen},onVolumeChange(e){this.$emit("muted-change",!!e.detail?.muted)},isMuted(){const e=this.getNativeVideoEl();return e?e.muted:!!this.$refs.player?.muted},setMuted(e){const t=this.getNativeVideoEl();t&&(t.muted=e);const a=this.$refs.player;if(a)try{a.muted=e}catch(i){}},playNative(e="native-api"){const t=this.getNativeVideoEl();return t?(this.playbackRequested||this.beginPlaybackRequest(e),this.runPlayAttempt(()=>t.play(),e)):this.play()},seekTo(e){const t=this.getNativeVideoEl();if(t&&t.readyState>0)try{return void(t.currentTime=e)}catch(i){}const a=this.$refs.player;if(a)try{a.currentTime=e}catch(i){}},getCurrentTime(){const e=this.getNativeVideoEl();return e?e.currentTime:this.$refs.player?.currentTime||0},isPaused(){const e=this.getNativeVideoEl();if(e)return e.paused;const t=this.$refs.player;return!t||!1!==t.paused},fastForward(e){this.$refs.player&&this.$refs.player.remoteControl.seek(this.$refs.player.currentTime+10,e)},rewind(e){this.$refs.player&&this.$refs.player.remoteControl.seek(this.$refs.player.currentTime-10,e)},onProviderChange(e){const t=e.detail;"hls"===t?.type&&g.Ay.isSupported()?(t.library=g.Ay,this.isPlaybackResilienceEnabled&&(t.config={...t.config||{},...K(g.Ay.DefaultConfig,this.isLivePlayback)}),this.configureHlsWarmupLoader(t)):this.hlsInstance=null},configureHlsWarmupLoader(e){if(this.live||this.isLiveActive||this.video?.isLiveType)return;const t=g.Ay.DefaultConfig?.loader||g.Ay.XhrLoader,a=Se.P.createWarmupAwareHlsLoader(t);a&&(e.config={...e.config||{},fLoader:a,loader:a,pLoader:a,startFragPrefetch:!0})},onProviderSetup(e){this.$nextTick(this.initializeMuxMonitoring),"YOUTUBE"===e.detail.$$PROVIDER_TYPE&&this.isYoutube&&-1===e.detail._state&&e.detail.scope._state},onControlsChange(e){e.detail?this.$emit("controlShow"):this.$emit("controlHide")},seekToStartPosition(e=!1){if(this.excerptMode||this.live||void 0===this.startPosition||!this.$refs.player)return;const t=Number(this.startPosition);Number.isNaN(t)||t<0||(e||0!==t)&&this.$refs.player.remoteControl.seek(t)},stopAtEndPosition(){const e=Number(this.endPosition);Number.isNaN(e)||e<=0||!this.$refs.player||this.stoppedAtEndPosition||this.$refs.player.currentTime<e||(this.stoppedAtEndPosition=!0,this.pause())},getChapters(){if(void 0===this.video||"string"!==typeof this.video.description)return[];const e=/(?:^|[^0-9])(?:(\d{1,2}):)?(\d{1,2}):(\d{2})\s+(.+)$/gm,t=[...this.video.description.matchAll(e)];return t.map(e=>{const t=e[1]?3600*parseInt(e[1]):0,a=60*parseInt(e[2]),i=parseInt(e[3]),n=t+a+i;let r=e[4].trim().slice(0,80);return r.startsWith(":")&&(r=r.slice(1)),{seconds:n,text:r}}).filter(e=>e.seconds<this.video.duration)},loadChapters(){const e=this.getChapters();if(0===e.length)return;const t=new d.to({kind:"chapters",default:!0});e.forEach((a,i)=>{const n=i<e.length-1?e[i+1].seconds:this.video.duration;t.addCue(new VTTCue(a.seconds,n,a.text))}),this.$refs.player?.textTracks.add(t)},loadCaptions(){const e=this.video?.captions;if(console.log("loadCaptions",e),!Array.isArray(e)||0===e.length)return;if(L.dR.isPlatformSubscriptionLoading())return void L.dR.fetchPlatformSubscriptionIfNeeded().catch(()=>{});let t=e;L.dR.canAccessContributorFeatures()||this.video.forceCaptionAllowed||(t=t.filter(e=>!e.auto));const a=A.resolveCaptionPreference(this.video,t,this.$i18n.locale);t.forEach(e=>{const t=`${e.languageCode||""}:${e.auto}:${e.file?.url||""}`;if(this.loadedCaptionKeys.includes(t))return;const i=new d.to({kind:"subtitles",label:e.label||this.generateCaptionLabel(e),srclang:e.languageCode,src:e.file.url,default:a.autoEnable&&e===a.caption});this.$refs.player?.textTracks.add(i),this.loadedCaptionKeys.push(t)})},generateCaptionLabel(e){const t=_.find(t=>t.languageCode===e.languageCode.toLowerCase());return t?e.auto?t.nativeLanguage+" (auto)":t.nativeLanguage:e.languageCode},loadSrc(e,t=!1){if(e!==this.currentSourceWithoutRetryParam&&(this.abandonPendingTerminalRecovery("source-changed"),this.cancelLiveLatencyVerification("source-changed"),this.finishRecoveryCycle("abandoned","source-changed"),this.finishStartupSpan("source-changed"),this.endPlaybackTelemetry("source_changed"),this.clearPlaybackRecoveryTimer(),clearTimeout(this.legacyRetryTimeout),clearTimeout(this.stablePlaybackTimeout),clearTimeout(this.terminalRetryTimeout),this.terminalRetryTimeout=null,this.videoViewId=Ce(),this.updateMuxVideoMetadata(),this.recoveryAttempts=0,this.hlsRestartAttempts=0,this.firstRecoveryAttemptAt=0,this.recoverySuspendedAt=0,this.recoverySuspendedDurationMs=0,this.recoverySuspensionReason=null,this.recoveryTelemetrySent=!1,this.recoveryPreferencesReset=!1,this.recoveryExhaustionCaptured=!1,this.terminalRetryAttempts=0,this.recoveryInProgress=!1,this.playbackFailure=null,this.playbackRequestPending=!1,this.playbackRequestOrigin=null,this.playbackRequestStartedAt=0,this.pendingRecoveryPosition=null,this.lastHlsError=null,this.lastRecoveryAction=null,this.playAttemptSequence++,this.playAttemptPromise=null,this.playAttemptStartedAt=0,this.lastPlaybackTime=null,this.lastPlaybackProgressAt=Date.now(),this.lastNetworkProgressAt=0,this.lastNetworkProgressEvent=null,this.lastMediaDataProgressAt=0,this.lastMediaDataProgressEvent=null,this.lastBufferedEnd=0,this.recoveryDeferralStartedAt=0,this.lastRecoveryDeferredAt=0,this.startupWaitingStartedAt=0,this.startupWaitingCount=0,this.startupWaitingDurationMs=0,this.startupRecoveryAttempts=0,this.startupRecoveryActions=[],this.lastStallTelemetryAt=0,this.lastLiveTelemetryAt=0,this.lastLiveCorrectionAt=0,this.liveOutOfRangeSince=0,this.liveOutOfRangeObservationCount=0,this.liveInitialPositionApplied=!1,this.offlineTelemetrySent=!1),"youtube"===this.video.platform&&this.video.externallyPlayable&&!t&&!this.embed)return this.src="youtube/"+this.video.externalId,this.isYoutube=!0,this.destroyMuxMonitoring(),void this.$refs.player?.textTracks.clear();this.src=e,this.isYoutube=!1},destroy(){this.abandonPendingTerminalRecovery("destroyed"),this.playbackRequested=!1,this.playbackRequestPending=!1,this.finishRecoveryCycle("abandoned","destroyed"),this.finishStartupSpan("destroyed"),this.endPlaybackTelemetry("destroyed"),clearTimeout(this.statTimeout),this.clearPlaybackRecoveryTimer(),clearTimeout(this.legacyRetryTimeout),clearTimeout(this.stablePlaybackTimeout),clearTimeout(this.terminalRetryTimeout),this.terminalRetryTimeout=null,clearTimeout(this.liveLatencyCorrectionTimeout),this.liveLatencyCorrectionTimeout=null,this.liveLatencyCorrectionForced=!1,this.liveLatencyCorrectionTrigger=null,this.cancelLiveLatencyVerification("player-destroyed"),this.playAttemptSequence++,this.playAttemptPromise=null,this.playAttemptStartedAt=0,this.destroyMuxMonitoring()},forceMobileLayout(){const e=navigator.userAgent||navigator.vendor||window.opera,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i;return!!t.test(e)||"never"}
2,setupRushSettingsMenuTemplates(){const e=(e,t)=>{const a=this.$refs[e];if(!a||a.querySelector("template"))return;const i=document.createElement("template");i.innerHTML=t,a.appendChild(i)};e("qualityRadioGroup",'<media-radio class="vds-quality-radio vds-radio">\n          <span class="vds-radio-label" data-part="label"></span>\n        </media-radio>'),e("speedRadioGroup",'<media-radio class="vds-speed-radio vds-radio">\n          <span class="vds-radio-label" data-part="label"></span>\n        </media-radio>'),customElements.whenDefined("media-speed-radio-group").then(()=>{this.$refs.speedRadioGroup&&(this.$refs.speedRadioGroup.rates=[.5,.75,1,1.25,1.5,2])})}},watch:{sources(e){const t=e[0]?.src||"";t!==this.currentSourceWithoutRetryParam&&this.$nextTick(()=>{this.loadSrc(t)})},startPosition(){this.seekToStartPosition(!0)},endPosition(){this.stoppedAtEndPosition=!1},"$i18n.locale"(){this.$refs.videoLayout&&(this.$refs.videoLayout.translations=C(this.$i18n))},"video.captions"(){this.loadCaptions()},platformSubscriptionLoaded(e){e&&this.loadCaptions()}},created(){this.loadSrc(this.sources[0]?.src)},mounted(){this.$refs.videoLayout&&(this.$refs.videoLayout.translations=C(this.$i18n)),this.configureGoogleCastOptions(),this.patchGoogleCastMediaInfo(),this.configureTouchFullscreen(),this.$nextTick(this.initializeMuxMonitoring),this.logPlaybackTelemetry("player_initialized",{video_hls_version:g.Ay.version,video_media_metadata_fallback:"undefined"!==typeof globalThis&&!!globalThis.__CROWDBUNKER_MEDIA_METADATA_FALLBACK__,video_mux_enabled:!0,video_preferences_repaired:this.preferenceRepair.repaired,video_preference_repair_reason:this.preferenceRepair.reason}),this.preferenceRepair.repaired&&this.logPlaybackTelemetry("preferences_repaired",{video_preference_repair_fields:this.preferenceRepair.fields.join(","),video_preference_repair_reason:this.preferenceRepair.reason},"warning"),this.rushDesktopControls&&this.setupRushSettingsMenuTemplates(),this.playerPlayHandler=e=>{this.uniqueId!==e&&this.pause()},this.$root.$on("playerPlay",this.playerPlayHandler),this.playbackWatchdogInterval=window.setInterval(this.watchPlaybackHealth,2e3),this.liveLatencyInterval=window.setInterval(this.deferLiveLatencyCorrection,5e3),this.onlineHandler=()=>{this.isPlaybackResilienceEnabled&&(this.playbackRequested||this.playbackFailure?.shouldResume)&&(this.offlineTelemetrySent=!1,this.logPlaybackTelemetry("network_restored",this.getPlaybackStateSnapshot()),this.resumePlaybackRecovery("network-online"))},this.offlineHandler=()=>{this.isPlaybackResilienceEnabled&&(this.playbackRequested||this.playbackFailure?.shouldResume)&&(this.playbackFailure?.terminal||(this.playbackFailure={reason:"offline",shouldResume:!0,terminal:!1},this.resumeAfterRecovery=!0,this.$emit("loading",!1)),this.suspendPlaybackRecovery("offline"))},this.visibilityHandler=()=>{this.isPlaybackResilienceEnabled&&("visible"===document.visibilityState?(this.deferLiveLatencyCorrection(!0,"visibility-restored"),this.resumePlaybackRecovery("visibility-restored")):(this.playbackRequested||this.playbackFailure?.shouldResume)&&this.suspendPlaybackRecovery("hidden"))},window.addEventListener("online",this.onlineHandler),window.addEventListener("offline",this.offlineHandler),document.addEventListener("visibilitychange",this.visibilityHandler)},beforeDestroy(){this.$root.$off("playerPlay",this.playerPlayHandler),window.removeEventListener("online",this.onlineHandler),window.removeEventListener("offline",this.offlineHandler),document.removeEventListener("visibilitychange",this.visibilityHandler),this.stopFastPlaybackHold(),this.clearGestureFeedback(),this.detachIntrinsicSizeListener(),this.destroy(),clearInterval(this.playbackWatchdogInterval),clearInterval(this.liveLatencyInterval);const e=this.$refs.player;e&&"function"===typeof e.destroy&&e.destroy()}},Te=Le,we=a(81656),Me=(0,we.A)(Te,s,o,!1,null,null,null),Ee=Me.exports},60800:function(e,t,a){a.d(t,{L_:function(){return d},eO:function(){return p}});a(74423),a(18111),a(22489),a(61701);const i="video_playback_resilience_2026_09_v6",n="cb_video_playback_visitor_v1",r=10,s=12;function o(e,t){const a=Number(e);return Number.isFinite(a)?Math.min(100,Math.max(0,a)):t}function l(e){let t=2166136261;for(let a=0;a<e.length;a++)t^=e.charCodeAt(a),t=Math.imul(t,16777619);return(t>>>0)%1e4}function u({visitorId:e,percentage:t,override:a,forcedTreatment:n=!1,controlTelemetryPercentage:r=s}){const o=["control","treatment"].includes(a)?a:null,u=o?"treatment"===o:n||l(`${i}:${e}`)<100*t,c=u?"treatment":"control",d=o?"url_override":n?"forced_account":"percentage",g=u||l(`${i}:telemetry:${e}`)<100*r;return{assignmentReason:d,enabled:u,experimentId:i,percentage:t,telemetryEnabled:g,variant:c}}function c(e,t){if(!e||!t)return!1;const a=String(e).trim().toLowerCase();return String(t).split(",").map(e=>
2e.trim().toLowerCase()).filter(Boolean).includes(a)}function d(e){if(e?.experimentId&&e?.variant)return`${e.experimentId}:${e.variant}`}function g(){return"undefined"!==typeof window&&window.crypto?.randomUUID?window.crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}function h(){if("undefined"===typeof window)return"server";try{const e=window.localStorage.getItem(n);if(e)return e;const t=g();return window.localStorage.setItem(n,t),t}catch{return window.__CROWDBUNKER_VIDEO_PLAYBACK_VISITOR_ID__||(window.__CROWDBUNKER_VIDEO_PLAYBACK_VISITOR_ID__=g()),window.__CROWDBUNKER_VIDEO_PLAYBACK_VISITOR_ID__}}function y(){if("undefined"===typeof window)return null;try{const e=window.location.search.match(/(?:^|[?&])video-resilience=([^&]*)/);return e?decodeURIComponent(e[1].replace(/\+/g," ")):null}catch{return null}}function v(){if("undefined"===typeof window)return null;try{const e=JSON.parse(window.localStorage.getItem("user"));return e?.user?.username||e?.username||null}catch{return null}}function p({username:e}={}){const t=r,a=o("10",t);return u({forcedTreatment:c(e||v(),"mat8883"),visitorId:h(),percentage:a,override:y()})}},44342:function(e){e.exports=JSON.parse('[{"languageCode":"aa","language":"Afar","nativeLanguage":"Afar"},{"languageCode":"ab","language":"Abkhazian","nativeLanguage":"Аҧсуа"},{"languageCode":"af","language":"Afrikaans","nativeLanguage":"Afrikaans"},{"languageCode":"ak","language":"Akan","nativeLanguage":"Akana"},{"languageCode":"am","language":"Amharic","nativeLanguage":"አማርኛ"},{"languageCode":"an","language":"Aragonese","nativeLanguage":"Aragonés"},{"languageCode":"ar","language":"Arabic","nativeLanguage":"العربية","rtl":1},{"languageCode":"as","language":"Assamese","nativeLanguage":"অসমীয়া"},{"languageCode":"av","language":"Avar","nativeLanguage":"Авар"},{"languageCode":"ay","language":"Aymara","nativeLanguage":"Aymar"},{"languageCode":"az","language":"Azerbaijani","nativeLanguage":"Azərbaycanca"},{"languageCode":"ba","language":"Bashkir","nativeLanguage":"Башҡорт"},{"languageCode":"be","language":"Belarusian","nativeLanguage":"Беларуская"},{"languageCode":"bg","language":"Bulgarian","nativeLanguage":"Български"},{"languageCode":"bh","language":"Bihari","nativeLanguage":"भोजपुरी"},{"languageCode":"bi","language":"Bislama","nativeLanguage":"Bislama"},{"languageCode":"bm","language":"Bambara","nativeLanguage":"Bamanankan"},{"languageCode":"bn","language":"Bengali","nativeLanguage":"বাংলা"},{"languageCode":"bo","language":"Tibetan","nativeLanguage":"བོད་ཡིག / Bod skad"},{"languageCode":"br","language":"Breton","nativeLanguage":"Brezhoneg"},{"languageCode":"bs","language":"Bosnian","nativeLanguage":"Bosanski"},{"languageCode":"ca","language":"Catalan","nativeLanguage":"Català"},{"languageCode":"ce","language":"Chechen","nativeLanguage":"Нохчийн"},{"languageCode":"ch","language":"Chamorro","nativeLanguage":"Chamoru"},{"languageCode":"co","language":"Corsican","nativeLanguage":"Corsu"},{"languageCode":"cr","language":"Cree","nativeLanguage":"Nehiyaw"},{"languageCode":"cs","language":"Czech","nativeLanguage":"Česky"},{"languageCode":"cu","language":"Old Church Slavonic / Old Bulgarian","nativeLanguage":"словѣньскъ / slověnĭskŭ"},{"languageCode":"cv","language":"Chuvash","nativeLanguage":"Чăваш"},{"languageCode":"cy","language":"Welsh","nativeLanguage":"Cymraeg"},{"languageCode":"da","language":"Danish","nativeLanguage":"Dansk"},{"languageCode":"de","language":"German","nativeLanguage":"Deutsch"},{"languageCode":"dv","language":"Divehi","nativeLanguage":"ދިވެހިބަސް","rtl":1},{"languageCode":"dz","language":"Dzongkha","nativeLanguage":"ཇོང་ཁ"},{"languageCode":"ee","language":"Ewe","nativeLanguage":"Ɛʋɛ"},{"languageCode":"el","language":"Greek","nativeLanguage":"Ελληνικά"},{"languageCode":"en","language":"English","nativeLanguage":"English"},{"languageCode":"eo","language":"Esperanto","nativeLanguage":"Esperanto"},{"languageCode":"es","language":"Spanish","nativeLanguage":"Español"},{"languageCode":"et","language":"Estonian","nativeLanguage":"Eesti"},{"languageCode":"eu","language":"Basque","nativeLanguage":"Euskara"},{"languageCode":"fa","language":"Persian","nativeLanguage":"فارسی","rtl":1},{"languageCode":"ff","language":"Peul","nativeLanguage":"Fulfulde"},{"languageCode":"fi","language":"Finnish","nativeLanguage":"Suomi"},{"languageCode":"fj","language":"Fijian","nativeLanguage":"Na Vosa Vakaviti"},{"languageCode":"fo","language":"Faroese","nativeLanguage":"Føroyskt"},{"languageCode":"fr","language":"French","nativeLanguage":"Français"},{"languageCode":"fy","language":"West Frisian","nativeLanguage":"Frysk"},{"languageCode":"ga","language":"Irish","nativeLanguage":"Gaeilge"},{"languageCode":"gd","language":"Scottish Gaelic","nativeLanguage":"Gàidhlig"},{"languageCode":"gl","language":"Galician","nativeLanguage":"Galego"},{"languageCode":"gn","language":"Guarani","nativeLanguage":"Avañe\'ẽ"},{"languageCode":"gu","language":"Gujarati","nativeLanguage":"ગુજરાતી"},{"languageCode":"gv","language":"Manx","nativeLanguage":"Gaelg"},{"languageCode":"ha","language":"Hausa","nativeLanguage":"هَوُسَ","rtl":1},{"languageCode":"he","language":"Hebrew","nativeLanguage":"עברית","rtl":1},{"languageCode":"hi","language":"Hindi","nativeLanguage":"हिन्दी"},{"languageCode":"ho","language":"Hiri Motu","nativeLanguage":"Hiri Motu"},{"languageCode":"hr","language":"Croatian","nativeLanguage":"Hrvatski"},{"languageCode":"ht","language":"Haitian","nativeLanguage":"Krèyol ayisyen"},{"languageCode":"hu","language":"Hungarian","nativeLanguage":"Magyar"},{"languageCode":"hy","language":"Armenian","nativeLanguage":"Հայերեն"},{"languageCode":"hz","language":"Herero","nativeLanguage":"Otsiherero"},{"languageCode":"ia","language":"Interlingua","nativeLanguage":"Interlingua"},{"languageCode":"id","language":"Indonesian","nativeLanguage":"Bahasa Indonesia"},{"languageCode":"ie","language":"Interlingue","nativeLanguage":"Interlingue"},{"languageCode":"ig","language":"Igbo","nativeLanguage":"Igbo"},{"languageCode":"ii","language":"Sichuan Yi","nativeLanguage":"ꆇꉙ / 四川彝语"},{"languageCode":"ik","language":"Inupiak","nativeLanguage":"Iñupiak"},{"languageCode":"io","language":"Ido","nativeLanguage":"Ido"},{"languageCode":"is","language":"Icelandic","nativeLanguage":"Íslenska"},{"languageCode":"it","language":"Italian","nativeLanguage":"Italiano"},{"languageCode":"iu","language":"Inuktitut","nativeLanguage":"ᐃᓄᒃᑎᑐᑦ"},{"languageCode":"ja","language":"Japanese","nativeLanguage":"日本語"},{"languageCode":"jv","language":"Javanese","nativeLanguage":"Basa Jawa"},{"languageCode":"ka","language":"Georgian","nativeLanguage":"ქართული"},{"languageCode":"kg","language":"Kongo","nativeLanguage":"KiKongo"},{"languageCode":"ki","language":"Kikuyu","nativeLanguage":"Gĩkũyũ"},{"languageCode":"kj","language":"Kuanyama","nativeLanguage":"Kuanyama"},{"languageCode":"kk","language":"Kazakh","nativeLanguage":"Қазақша"},{"languageCode":"kl","language":"Greenlandic","nativeLanguage":"Kalaallisut"},{"languageCode":"km","language":"Cambodian","nativeLanguage":"ភាសាខ្មែរ"},{"languageCode":"kn","language":"Kannada","nativeLanguage":"ಕನ್ನಡ"},{"languageCode":"ko","language":"Korean","nativeLanguage":"한국어"},{"languageCode":"kr","language":"Kanuri","nativeLanguage":"Kanuri"},{"languageCode":"ks","language":"Kashmiri","nativeLanguage":"कश्मीरी / كشميري","rtl":1},{"languageCode":"ku","language":"Kurdish","nativeLanguage":"Kurdî / كوردی","rtl":1},{"languageCode":"kv","language":"Komi","nativeLanguage":"Коми"},{"languageCode":"kw","language":"Cornish","nativeLanguage":"Kernewek"},{"languageCode":"ky","language":"Kirghiz","nativeLanguage":"Kırgızca / Кыргызча"},{"languageCode":"la","language":"Latin","nativeLanguage":"Latina"},{"languageCode":"lb","language":"Luxembourgish","nativeLanguage":"Lëtzebuergesch"},{"languageCode":"lg","language":"Ganda","nativeLanguage":"Luganda"},{"languageCode":"li","language":"Limburgian","nativeLanguage":"Limburgs"},{"languageCode":"ln","language":"Lingala","nativeLanguage":"Lingála"},{"languageCode":"lo","language":"Laotian","nativeLanguage":"ລາວ / Pha xa lao"},{"languageCode":"lt","language":"Lithuanian","nativeLanguage":"Lietuvių"},{"languageCode":"lu","language":"Luba-Katanga","nativeLanguage":"Tshiluba"},{"languageCode":"lv","language":"Latvian","nativeLanguage":"Latviešu"},{"languageCode":"mg","language":"Malagasy","nativeLanguage":"Malagasy"},{"languageCode":"mh","language":"Marshallese","nativeLanguage":"Kajin Majel / Ebon"},{"languageCode":"mi","language":"Maori","nativeLanguage":"Māori"},{"languageCode":"mk","language":"Macedonian","nativeLanguage":"Македонски"},{"languageCode":"ml","language":"Malayalam","nativeLanguage":"മലയാളം"},{"languageCode":"mn","language":"Mongolian","nativeLanguage":"Монгол"},{"languageCode":"mo","language":"Moldovan","nativeLanguage":"Moldovenească"},{"languageCode":"mr","language":"Marathi","nativeLanguage":"मराठी"},{"languageCode":"ms","language":"Malay","nativeLanguage":"Bahasa Melayu"},{"languageCode":"mt","language":"Maltese","nativeLanguage":"bil-Malti"},{"languageCode":"my","language":"Burmese","nativeLanguage":"မြန်မာစာ"},{"languageCode":"na","language":"Nauruan","nativeLanguage":"Dorerin Naoero"},{"languageCode":"nb","language":"Norwegian Bokmål","nativeLanguage":"Norsk bokmål"},{"languageCode":"nd","language":"North Ndebele","nativeLanguage":"Sindebele"},{"languageCode":"ne","language":"Nepali","nativeLanguage":"नेपाली"},{"languageCode":"ng","language":"Ndonga","nativeLanguage":"Oshiwambo"},{"languageCode":"nl","language":"Dutch","nativeLanguage":"Nederlands"},{"languageCode":"nn","language":"Norwegian Nynorsk","nativeLanguage":"Norsk nynorsk"},{"languageCode":"no","language":"Norwegian","nativeLanguage":"Norsk"},{"languageCode":"nr","language":"South Ndebele","nativeLanguage":"isiNdebele"},{"languageCode":"nv","language":"Navajo","nativeLanguage":"Diné bizaad"},{"languageCode":"ny","language":"Chichewa","nativeLanguage":"Chi-Chewa"},{"languageCode":"oc","language":"Occitan","nativeLanguage":"Occitan"},{"languageCode":"oj","language":"Ojibwa","nativeLanguage":"ᐊᓂᔑᓈᐯᒧᐎᓐ / Anishinaabemowin"},{"languageCode":"om","language":"Oromo","nativeLanguage":"Oromoo"},{"languageCode":"or","language":"Oriya","nativeLanguage":"ଓଡ଼ିଆ"},{"languageCode":"os","language":"Ossetian / Ossetic","nativeLanguage":"Иронау"},{"languageCode":"pa","language":"Panjabi / Punjabi","nativeLanguage":"ਪੰਜਾਬੀ / पंजाबी / پنجابي"},{"languageCode":"pi","language":"Pali","nativeLanguage":"Pāli / पाऴि"},{"languageCode":"pl","language":"Polish","nativeLanguage":"Polski"},{"languageCode":"ps","language":"Pashto","nativeLanguage":"پښتو","rtl":1},{"languageCode":"pt","language":"Portuguese","nativeLanguage":"Português"},{"languageCode":"qu","language":"Quechua","nativeLanguage":"Runa Simi"},{"languageCode":"rm","language":"Raeto Romance","nativeLanguage":"Rumantsch"},{"languageCode":"rn","language":"Kirundi","nativeLanguage":"Kirundi"},{"languageCode":"ro","language":"Romanian","nativeLanguage":"Română"},{"languageCode":"ru","language":"Russian","nativeLanguage":"Русский"},{"languageCode":"rw","language":"Rwandi","nativeLanguage":"Kinyarwandi"},{"languageCode":"sa","language":"Sanskrit","nativeLanguage":"संस्कृतम्"},{"languageCode":"sc","language":"Sardinian","nativeLanguage":"Sardu"},{"languageCode":"sd","language":"Sindhi","nativeLanguage":"सिनधि"},{"languageCode":"se","language":"Northern Sami","nativeLanguage":"Sámegiella"},{"languageCode":"sg","language":"Sango","nativeLanguage":"Sängö"},{"languageCode":"sh","language":"Serbo-Croatian","nativeLanguage":"Srpskohrvatski / Српскохрватски"},{"languageCode":"si","language":"Sinhalese","nativeLanguage":"සිංහල"},{"languageCode":"sk","language":"Slovak","nativeLanguage":"Slovenčina"},{"languageCode":"sl","language":"Slovenian","nativeLanguage":"Slovenščina"},{"languageCode":"sm","language":"Samoan","nativeLanguage":"Gagana Samoa"},{"languageCode":"sn","language":"Shona","nativeLanguage":"chiShona"},{"languageCode":"so","language":"Somalia","nativeLanguage":"Soomaaliga"},{"languageCode":"sq","language":"Albanian","nativeLanguage":"Shqip"},{"languageCode":"sr","language":"Serbian","nativeLanguage":"Српски"},{"languageCode":"ss","language":"Swati","nativeLanguage":"SiSwati"},{"languageCode":"st","language":"Southern Sotho","nativeLanguage":"Sesotho"},{"languageCode":"su","language":"Sundanese","nativeLanguage":"Basa Sunda"},{"languageCode":"sv","language":"Swedish","nativeLanguage":"Svenska"},{"languageCode":"sw","language":"Swahili","nativeLanguage":"Kiswahil
2i"},{"languageCode":"ta","language":"Tamil","nativeLanguage":"தமிழ்"},{"languageCode":"te","language":"Telugu","nativeLanguage":"తెలుగు"},{"languageCode":"tg","language":"Tajik","nativeLanguage":"Тоҷикӣ"},{"languageCode":"th","language":"Thai","nativeLanguage":"ไทย / Phasa Thai"},{"languageCode":"ti","language":"Tigrinya","nativeLanguage":"ትግርኛ"},{"languageCode":"tk","language":"Turkmen","nativeLanguage":"Туркмен / تركمن"},{"languageCode":"tl","language":"Tagalog / Filipino","nativeLanguage":"Tagalog"},{"languageCode":"tn","language":"Tswana","nativeLanguage":"Setswana"},{"languageCode":"to","language":"Tonga","nativeLanguage":"Lea Faka-Tonga"},{"languageCode":"tr","language":"Turkish","nativeLanguage":"Türkçe"},{"languageCode":"ts","language":"Tsonga","nativeLanguage":"Xitsonga"},{"languageCode":"tt","language":"Tatar","nativeLanguage":"Tatarça"},{"languageCode":"tw","language":"Twi","nativeLanguage":"Twi"},{"languageCode":"ty","language":"Tahitian","nativeLanguage":"Reo Mā`ohi"},{"languageCode":"ug","language":"Uyghur","nativeLanguage":"Uyƣurqə / ئۇيغۇرچە"},{"languageCode":"uk","language":"Ukrainian","nativeLanguage":"Українська"},{"languageCode":"ur","language":"Urdu","nativeLanguage":"اردو","rtl":1},{"languageCode":"uz","language":"Uzbek","nativeLanguage":"Ўзбек"},{"languageCode":"ve","language":"Venda","nativeLanguage":"Tshivenḓa"},{"languageCode":"vi","language":"Vietlanguagese","nativeLanguage":"Tiếng Việt"},{"languageCode":"vo","language":"Volapük","nativeLanguage":"Volapük"},{"languageCode":"wa","language":"Walloon","nativeLanguage":"Walon"},{"languageCode":"wo","language":"Wolof","nativeLanguage":"Wollof"},{"languageCode":"xh","language":"Xhosa","nativeLanguage":"isiXhosa"},{"languageCode":"yi","language":"Yiddish","nativeLanguage":"ייִדיש","rtl":1},{"languageCode":"yo","language":"Yoruba","nativeLanguage":"Yorùbá"},{"languageCode":"za","language":"Zhuang","nativeLanguage":"Cuengh / Tôô / 壮语"},{"languageCode":"zh","language":"Chinese","nativeLanguage":"中文"},{"languageCode":"zu","language":"Zulu","nativeLanguage":"isiZulu"}]')}}]);
3//# sourceMappingURL=player-vidstack.bdba2732.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.